UNPKG

@softr/sdk

Version:

The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.

21 lines (19 loc) • 538 B
import { createRecord, deleteRecord, exportRecords, getRecord, listRecords, updateRecord } from "./record.js"; import { chart, metric } from "./chart.js"; import { listChoices, listOptions } from "../core/options.js"; import "@tanstack/react-start/server-only"; //#region src/datasource/datasource.ts const ds = { list: listRecords, export: exportRecords, get: getRecord, create: createRecord, update: updateRecord, delete: deleteRecord, metric, chart, options: listOptions, choices: listChoices }; //#endregion export { ds };