@keystrokehq/softr 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +18 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +18 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-record.cjs +3 -3
- package/dist/actions/create-record.cjs.map +1 -1
- package/dist/actions/create-record.d.cts +18 -3
- package/dist/actions/create-record.d.cts.map +1 -1
- package/dist/actions/create-record.d.mts +18 -3
- package/dist/actions/create-record.d.mts.map +1 -1
- package/dist/actions/create-record.mjs +3 -3
- package/dist/actions/create-record.mjs.map +1 -1
- package/dist/actions/create-table-field.cjs +9 -9
- package/dist/actions/create-table-field.cjs.map +1 -1
- package/dist/actions/create-table-field.d.cts +61 -3
- package/dist/actions/create-table-field.d.cts.map +1 -1
- package/dist/actions/create-table-field.d.mts +61 -3
- package/dist/actions/create-table-field.d.mts.map +1 -1
- package/dist/actions/create-table-field.mjs +9 -9
- package/dist/actions/create-table-field.mjs.map +1 -1
- package/dist/actions/create-table.cjs +7 -7
- package/dist/actions/create-table.cjs.map +1 -1
- package/dist/actions/create-table.d.cts +79 -3
- package/dist/actions/create-table.d.cts.map +1 -1
- package/dist/actions/create-table.d.mts +79 -3
- package/dist/actions/create-table.d.mts.map +1 -1
- package/dist/actions/create-table.mjs +7 -7
- package/dist/actions/create-table.mjs.map +1 -1
- package/dist/actions/delete-database.cjs +1 -1
- package/dist/actions/delete-database.cjs.map +1 -1
- package/dist/actions/delete-database.d.cts +12 -3
- package/dist/actions/delete-database.d.cts.map +1 -1
- package/dist/actions/delete-database.d.mts +12 -3
- package/dist/actions/delete-database.d.mts.map +1 -1
- package/dist/actions/delete-database.mjs +1 -1
- package/dist/actions/delete-database.mjs.map +1 -1
- package/dist/actions/delete-record.cjs +1 -1
- package/dist/actions/delete-record.cjs.map +1 -1
- package/dist/actions/delete-record.d.cts +13 -3
- package/dist/actions/delete-record.d.cts.map +1 -1
- package/dist/actions/delete-record.d.mts +13 -3
- package/dist/actions/delete-record.d.mts.map +1 -1
- package/dist/actions/delete-record.mjs +1 -1
- package/dist/actions/delete-record.mjs.map +1 -1
- package/dist/actions/delete-table-field.cjs +2 -2
- package/dist/actions/delete-table-field.cjs.map +1 -1
- package/dist/actions/delete-table-field.d.cts +14 -3
- package/dist/actions/delete-table-field.d.cts.map +1 -1
- package/dist/actions/delete-table-field.d.mts +14 -3
- package/dist/actions/delete-table-field.d.mts.map +1 -1
- package/dist/actions/delete-table-field.mjs +2 -2
- package/dist/actions/delete-table-field.mjs.map +1 -1
- package/dist/actions/delete-table.cjs +2 -2
- package/dist/actions/delete-table.cjs.map +1 -1
- package/dist/actions/delete-table.d.cts +14 -3
- package/dist/actions/delete-table.d.cts.map +1 -1
- package/dist/actions/delete-table.d.mts +14 -3
- package/dist/actions/delete-table.d.mts.map +1 -1
- package/dist/actions/delete-table.mjs +2 -2
- package/dist/actions/delete-table.mjs.map +1 -1
- package/dist/actions/get-database.cjs +5 -5
- package/dist/actions/get-database.cjs.map +1 -1
- package/dist/actions/get-database.d.cts +16 -3
- package/dist/actions/get-database.d.cts.map +1 -1
- package/dist/actions/get-database.d.mts +16 -3
- package/dist/actions/get-database.d.mts.map +1 -1
- package/dist/actions/get-database.mjs +5 -5
- package/dist/actions/get-database.mjs.map +1 -1
- package/dist/actions/get-databases.cjs +5 -5
- package/dist/actions/get-databases.cjs.map +1 -1
- package/dist/actions/get-databases.d.cts +18 -3
- package/dist/actions/get-databases.d.cts.map +1 -1
- package/dist/actions/get-databases.d.mts +18 -3
- package/dist/actions/get-databases.d.mts.map +1 -1
- package/dist/actions/get-databases.mjs +5 -5
- package/dist/actions/get-databases.mjs.map +1 -1
- package/dist/actions/get-record.cjs +3 -3
- package/dist/actions/get-record.cjs.map +1 -1
- package/dist/actions/get-record.d.cts +19 -3
- package/dist/actions/get-record.d.cts.map +1 -1
- package/dist/actions/get-record.d.mts +19 -3
- package/dist/actions/get-record.d.mts.map +1 -1
- package/dist/actions/get-record.mjs +3 -3
- package/dist/actions/get-record.mjs.map +1 -1
- package/dist/actions/get-records.cjs.map +1 -1
- package/dist/actions/get-records.d.cts +26 -3
- package/dist/actions/get-records.d.cts.map +1 -1
- package/dist/actions/get-records.d.mts +26 -3
- package/dist/actions/get-records.d.mts.map +1 -1
- package/dist/actions/get-records.mjs.map +1 -1
- package/dist/actions/get-table-field.cjs +3 -3
- package/dist/actions/get-table-field.cjs.map +1 -1
- package/dist/actions/get-table-field.d.cts +25 -3
- package/dist/actions/get-table-field.d.cts.map +1 -1
- package/dist/actions/get-table-field.d.mts +25 -3
- package/dist/actions/get-table-field.d.mts.map +1 -1
- package/dist/actions/get-table-field.mjs +3 -3
- package/dist/actions/get-table-field.mjs.map +1 -1
- package/dist/actions/get-table-views.cjs.map +1 -1
- package/dist/actions/get-table-views.d.cts +18 -3
- package/dist/actions/get-table-views.d.cts.map +1 -1
- package/dist/actions/get-table-views.d.mts +18 -3
- package/dist/actions/get-table-views.d.mts.map +1 -1
- package/dist/actions/get-table-views.mjs.map +1 -1
- package/dist/actions/get-table.cjs +8 -8
- package/dist/actions/get-table.cjs.map +1 -1
- package/dist/actions/get-table.d.cts +64 -3
- package/dist/actions/get-table.d.cts.map +1 -1
- package/dist/actions/get-table.d.mts +64 -3
- package/dist/actions/get-table.d.mts.map +1 -1
- package/dist/actions/get-table.mjs +8 -8
- package/dist/actions/get-table.mjs.map +1 -1
- package/dist/actions/get-tables.cjs +2 -2
- package/dist/actions/get-tables.cjs.map +1 -1
- package/dist/actions/get-tables.d.cts +17 -3
- package/dist/actions/get-tables.d.cts.map +1 -1
- package/dist/actions/get-tables.d.mts +17 -3
- package/dist/actions/get-tables.d.mts.map +1 -1
- package/dist/actions/get-tables.mjs +2 -2
- package/dist/actions/get-tables.mjs.map +1 -1
- package/dist/actions/search-records.cjs +6 -6
- package/dist/actions/search-records.cjs.map +1 -1
- package/dist/actions/search-records.d.cts +32 -3
- package/dist/actions/search-records.d.cts.map +1 -1
- package/dist/actions/search-records.d.mts +32 -3
- package/dist/actions/search-records.d.mts.map +1 -1
- package/dist/actions/search-records.mjs +6 -6
- package/dist/actions/search-records.mjs.map +1 -1
- package/dist/actions/update-database.cjs +5 -5
- package/dist/actions/update-database.cjs.map +1 -1
- package/dist/actions/update-database.d.cts +20 -3
- package/dist/actions/update-database.d.cts.map +1 -1
- package/dist/actions/update-database.d.mts +20 -3
- package/dist/actions/update-database.d.mts.map +1 -1
- package/dist/actions/update-database.mjs +5 -5
- package/dist/actions/update-database.mjs.map +1 -1
- package/dist/actions/update-record.cjs.map +1 -1
- package/dist/actions/update-record.d.cts +21 -3
- package/dist/actions/update-record.d.cts.map +1 -1
- package/dist/actions/update-record.d.mts +21 -3
- package/dist/actions/update-record.d.mts.map +1 -1
- package/dist/actions/update-record.mjs.map +1 -1
- package/dist/actions/update-table-field.cjs.map +1 -1
- package/dist/actions/update-table-field.d.cts +61 -3
- package/dist/actions/update-table-field.d.cts.map +1 -1
- package/dist/actions/update-table-field.d.mts +61 -3
- package/dist/actions/update-table-field.d.mts.map +1 -1
- package/dist/actions/update-table-field.mjs.map +1 -1
- package/dist/actions/update-table.cjs +9 -9
- package/dist/actions/update-table.cjs.map +1 -1
- package/dist/actions/update-table.d.cts +36 -3
- package/dist/actions/update-table.d.cts.map +1 -1
- package/dist/actions/update-table.d.mts +36 -3
- package/dist/actions/update-table.d.mts.map +1 -1
- package/dist/actions/update-table.mjs +9 -9
- package/dist/actions/update-table.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -39,8 +39,8 @@ const SoftrGetTable_FieldTypeSchema = z.enum([
|
|
|
39
39
|
"USER"
|
|
40
40
|
]).describe("Enumeration of field types supported in Softr tables.");
|
|
41
41
|
const SoftrGetTable_TableFieldSchema = z.object({
|
|
42
|
-
id: z.string().describe("Unique identifier of the field"),
|
|
43
|
-
name: z.string().describe("Name of the field"),
|
|
42
|
+
id: z.string().describe("Unique identifier of the field").nullable(),
|
|
43
|
+
name: z.string().describe("Name of the field").nullable(),
|
|
44
44
|
type: SoftrGetTable_FieldTypeSchema.nullable(),
|
|
45
45
|
locked: z.boolean().describe("Whether the field is locked").nullable().optional(),
|
|
46
46
|
options: z.object({}).describe("Type-specific configuration options for the field").nullable().optional(),
|
|
@@ -52,14 +52,14 @@ const SoftrGetTable_TableFieldSchema = z.object({
|
|
|
52
52
|
allowMultipleEntries: z.boolean().describe("Whether multiple entries are allowed for this field").nullable().optional()
|
|
53
53
|
}).passthrough().describe("Represents a field in a Softr table.");
|
|
54
54
|
const SoftrGetTable_TableDataSchema = z.object({
|
|
55
|
-
id: z.string().describe("Unique identifier of the table"),
|
|
56
|
-
name: z.string().describe("Name of the table"),
|
|
55
|
+
id: z.string().describe("Unique identifier of the table").nullable(),
|
|
56
|
+
name: z.string().describe("Name of the table").nullable(),
|
|
57
57
|
fields: z.array(SoftrGetTable_TableFieldSchema).describe("List of fields defined in the table"),
|
|
58
|
-
createdAt: z.string().describe("Timestamp when the table was created"),
|
|
59
|
-
updatedAt: z.string().describe("Timestamp when the table was last updated"),
|
|
58
|
+
createdAt: z.string().describe("Timestamp when the table was created").nullable(),
|
|
59
|
+
updatedAt: z.string().describe("Timestamp when the table was last updated").nullable(),
|
|
60
60
|
description: z.string().describe("Description of the table").nullable().optional(),
|
|
61
|
-
defaultViewId: z.string().describe("ID of the default view for the table"),
|
|
62
|
-
primaryFieldId: z.string().describe("ID of the primary field in the table")
|
|
61
|
+
defaultViewId: z.string().describe("ID of the default view for the table").nullable(),
|
|
62
|
+
primaryFieldId: z.string().describe("ID of the primary field in the table").nullable()
|
|
63
63
|
}).describe("Represents the data structure of a Softr table.");
|
|
64
64
|
const softrGetTable = action("SOFTR_GET_TABLE", {
|
|
65
65
|
slug: "softr-get-table",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-table.mjs","names":[],"sources":["../../src/actions/get-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTableInput
|
|
1
|
+
{"version":3,"file":"get-table.mjs","names":[],"sources":["../../src/actions/get-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTableInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table to retrieve\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table\"),\n}).describe(\"Request model for retrieving a specific table by ID.\");\nconst SoftrGetTable_FieldTypeSchema = z.enum([\"SINGLE_LINE_TEXT\", \"CHECKBOX\", \"CURRENCY\", \"DATETIME\", \"DURATION\", \"EMAIL\", \"SELECT\", \"NUMBER\", \"ATTACHMENT\", \"RATING\", \"LINKED_RECORD\", \"LONG_TEXT\", \"URL\", \"PERCENT\", \"BUTTON\", \"PROGRESS\", \"PHONE\", \"DATE_RANGE\", \"ADDRESS\", \"TIME\", \"LOOKUP\", \"ROLLUP\", \"FORMULA\", \"COUNT\", \"CREATED_AT\", \"UPDATED_AT\", \"CREATED_BY\", \"UPDATED_BY\", \"AUTONUMBER\", \"RECORD_ID\", \"USER\"]).describe(\"Enumeration of field types supported in Softr tables.\");\nconst SoftrGetTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Unique identifier of the field\").nullable(),\n name: z.string().describe(\"Name of the field\").nullable(),\n type: SoftrGetTable_FieldTypeSchema.nullable(),\n locked: z.boolean().describe(\"Whether the field is locked\").nullable().optional(),\n options: z.object({}).describe(\"Type-specific configuration options for the field\").nullable().optional(),\n readonly: z.boolean().describe(\"Whether the field is read-only\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the field was created\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the field was last updated\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for the field\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether multiple entries are allowed for this field\").nullable().optional(),\n}).passthrough().describe(\"Represents a field in a Softr table.\");\nconst SoftrGetTable_TableDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n fields: z.array(SoftrGetTable_TableFieldSchema).describe(\"List of fields defined in the table\"),\n createdAt: z.string().describe(\"Timestamp when the table was created\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the table was last updated\").nullable(),\n description: z.string().describe(\"Description of the table\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of the default view for the table\").nullable(),\n primaryFieldId: z.string().describe(\"ID of the primary field in the table\").nullable(),\n}).describe(\"Represents the data structure of a Softr table.\");\nexport const SoftrGetTableOutput = z.object({\n data: SoftrGetTable_TableDataSchema.nullable(),\n}).describe(\"Response model containing the retrieved table details.\");\n\nexport const softrGetTable = action(\"SOFTR_GET_TABLE\", {\n slug: \"softr-get-table\",\n name: \"Get Table\",\n description: \"Tool to retrieve details for a specific table by ID. Use when you need to inspect table structure, fields, or metadata.\",\n input: SoftrGetTableInput,\n output: SoftrGetTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqB,EAAE,OAAO;CACzC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gCAAgC,EAAE,KAAK;CAAC;CAAoB;CAAY;CAAY;CAAY;CAAY;CAAS;CAAU;CAAU;CAAc;CAAU;CAAiB;CAAa;CAAO;CAAW;CAAU;CAAY;CAAS;CAAc;CAAW;CAAQ;CAAU;CAAU;CAAW;CAAS;CAAc;CAAc;CAAc;CAAc;CAAc;CAAa;AAAM,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAC3d,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,8BAA8B,SAAS;CAC7C,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,qCAAqC;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAK7D,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiC,EAAE,OAAO,EAC1C,MAAM,8BAA8B,SAAS,EAC/C,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-tables.ts
|
|
4
4
|
const SoftrGetTablesInput = zod.z.object({ databaseId: zod.z.string().describe("The unique identifier of the database to retrieve tables from.") });
|
|
5
5
|
const SoftrGetTables_TableSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Unique identifier for the table."),
|
|
7
|
-
name: zod.z.string().describe("Name of the table."),
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the table.").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Name of the table.").nullable(),
|
|
8
8
|
createdAt: zod.z.string().describe("ISO 8601 timestamp of when the table was created.").nullable().optional(),
|
|
9
9
|
updatedAt: zod.z.string().describe("ISO 8601 timestamp of when the table was last updated.").nullable().optional(),
|
|
10
10
|
description: zod.z.string().describe("Optional description of the table.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tables.cjs","names":["z","action"],"sources":["../../src/actions/get-tables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTablesInput
|
|
1
|
+
{"version":3,"file":"get-tables.cjs","names":["z","action"],"sources":["../../src/actions/get-tables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTablesInput = z.object({\n databaseId: z.string().describe(\"The unique identifier of the database to retrieve tables from.\"),\n});\nconst SoftrGetTables_TableSchema = z.object({\n id: z.string().describe(\"Unique identifier for the table.\").nullable(),\n name: z.string().describe(\"Name of the table.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp of when the table was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the table was last updated.\").nullable().optional(),\n description: z.string().describe(\"Optional description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"Identifier of the default view for the table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"Identifier of the primary field in the table.\").nullable().optional(),\n}).describe(\"Represents a table within a Softr database.\");\nexport const SoftrGetTablesOutput = z.object({\n data: z.array(SoftrGetTables_TableSchema).describe(\"Array of table objects within the specified database.\"),\n}).describe(\"Response containing all tables in a database.\");\n\nexport const softrGetTables = action(\"SOFTR_GET_TABLES\", {\n slug: \"softr-get-tables\",\n name: \"Get Tables\",\n description: \"Retrieves all tables within a specified Softr database. Use when you need to list or explore the tables available in a database.\",\n input: SoftrGetTablesInput,\n output: SoftrGetTablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAClG,CAAC;AACD,MAAM,6BAA6BA,IAAAA,EAAE,OAAO;CAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAMA,IAAAA,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,uDAAuD,EAC5G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-tables.d.ts
|
|
4
|
-
declare const SoftrGetTablesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrGetTablesInput: z.ZodObject<{
|
|
5
|
+
databaseId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SoftrGetTablesOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
defaultViewId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
primaryFieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const softrGetTables: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
databaseId: string;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { softrGetTables };
|
|
9
23
|
//# sourceMappingURL=get-tables.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tables.d.cts","names":[],"sources":["../../src/actions/get-tables.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"get-tables.d.cts","names":[],"sources":["../../src/actions/get-tables.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-tables.d.ts
|
|
4
|
-
declare const SoftrGetTablesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrGetTablesInput: z.ZodObject<{
|
|
5
|
+
databaseId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SoftrGetTablesOutput: z.ZodObject<{
|
|
8
|
+
data: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
defaultViewId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
primaryFieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const softrGetTables: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
databaseId: string;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { softrGetTables };
|
|
9
23
|
//# sourceMappingURL=get-tables.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tables.d.mts","names":[],"sources":["../../src/actions/get-tables.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"get-tables.d.mts","names":[],"sources":["../../src/actions/get-tables.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-tables.ts
|
|
4
4
|
const SoftrGetTablesInput = z.object({ databaseId: z.string().describe("The unique identifier of the database to retrieve tables from.") });
|
|
5
5
|
const SoftrGetTables_TableSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier for the table."),
|
|
7
|
-
name: z.string().describe("Name of the table."),
|
|
6
|
+
id: z.string().describe("Unique identifier for the table.").nullable(),
|
|
7
|
+
name: z.string().describe("Name of the table.").nullable(),
|
|
8
8
|
createdAt: z.string().describe("ISO 8601 timestamp of when the table was created.").nullable().optional(),
|
|
9
9
|
updatedAt: z.string().describe("ISO 8601 timestamp of when the table was last updated.").nullable().optional(),
|
|
10
10
|
description: z.string().describe("Optional description of the table.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tables.mjs","names":[],"sources":["../../src/actions/get-tables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTablesInput
|
|
1
|
+
{"version":3,"file":"get-tables.mjs","names":[],"sources":["../../src/actions/get-tables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTablesInput = z.object({\n databaseId: z.string().describe(\"The unique identifier of the database to retrieve tables from.\"),\n});\nconst SoftrGetTables_TableSchema = z.object({\n id: z.string().describe(\"Unique identifier for the table.\").nullable(),\n name: z.string().describe(\"Name of the table.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp of when the table was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the table was last updated.\").nullable().optional(),\n description: z.string().describe(\"Optional description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"Identifier of the default view for the table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"Identifier of the primary field in the table.\").nullable().optional(),\n}).describe(\"Represents a table within a Softr database.\");\nexport const SoftrGetTablesOutput = z.object({\n data: z.array(SoftrGetTables_TableSchema).describe(\"Array of table objects within the specified database.\"),\n}).describe(\"Response containing all tables in a database.\");\n\nexport const softrGetTables = action(\"SOFTR_GET_TABLES\", {\n slug: \"softr-get-tables\",\n name: \"Get Tables\",\n description: \"Retrieves all tables within a specified Softr database. Use when you need to list or explore the tables available in a database.\",\n input: SoftrGetTablesInput,\n output: SoftrGetTablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAClG,CAAC;AACD,MAAM,6BAA6B,EAAE,OAAO;CAC1C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAKzD,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkC,EAAE,OAAO,EAC3C,MAAM,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,uDAAuD,EAC5G,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -12,16 +12,16 @@ const SoftrSearchRecordsInput = zod.z.object({
|
|
|
12
12
|
}).describe("Request model for searching records in a Softr database table.");
|
|
13
13
|
const SoftrSearchRecords_RecordFieldsSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields for a record. Structure varies based on the table schema.");
|
|
14
14
|
const SoftrSearchRecords_RecordSchema = zod.z.object({
|
|
15
|
-
id: zod.z.string().describe("Unique identifier of the record."),
|
|
15
|
+
id: zod.z.string().describe("Unique identifier of the record.").nullable(),
|
|
16
16
|
fields: SoftrSearchRecords_RecordFieldsSchema.nullable(),
|
|
17
17
|
tableId: zod.z.string().describe("Identifier of the table this record belongs to.").nullable().optional(),
|
|
18
|
-
createdAt: zod.z.string().describe("ISO 8601 timestamp when the record was created."),
|
|
19
|
-
updatedAt: zod.z.string().describe("ISO 8601 timestamp when the record was last updated.")
|
|
18
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the record was created.").nullable(),
|
|
19
|
+
updatedAt: zod.z.string().describe("ISO 8601 timestamp when the record was last updated.").nullable()
|
|
20
20
|
}).describe("Represents a single record from a Softr table.");
|
|
21
21
|
const SoftrSearchRecords_SearchMetadataSchema = zod.z.object({
|
|
22
|
-
limit: zod.z.number().int().describe("Maximum number of records requested."),
|
|
23
|
-
total: zod.z.number().int().describe("Total number of records matching the filter criteria."),
|
|
24
|
-
offset: zod.z.number().int().describe("Number of records skipped in this result set.")
|
|
22
|
+
limit: zod.z.number().int().describe("Maximum number of records requested.").nullable(),
|
|
23
|
+
total: zod.z.number().int().describe("Total number of records matching the filter criteria.").nullable(),
|
|
24
|
+
offset: zod.z.number().int().describe("Number of records skipped in this result set.").nullable()
|
|
25
25
|
}).describe("Metadata about the search results and pagination.");
|
|
26
26
|
const SoftrSearchRecordsOutput = zod.z.object({
|
|
27
27
|
data: zod.z.array(SoftrSearchRecords_RecordSchema).describe("List of records matching the search criteria."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-records.cjs","names":["z","action"],"sources":["../../src/actions/search-records.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrSearchRecordsInput
|
|
1
|
+
{"version":3,"file":"search-records.cjs","names":["z","action"],"sources":["../../src/actions/search-records.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrSearchRecordsInput = z.object({\n filter: z.record(z.string(), z.unknown()).describe(\"Filter conditions for searching records. Structure varies based on table schema and filter requirements.\").optional(),\n paging: z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of records to return per request. Must be between 1 and 100. Defaults to 10.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of records to skip. Use for pagination. Defaults to 0.\").optional(),\n}).describe(\"Pagination options for record search.\").optional(),\n table_id: z.string().describe(\"The unique identifier of the table to search records in.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for searching records in a Softr database table.\");\nconst SoftrSearchRecords_RecordFieldsSchema = z.record(z.string(), z.unknown()).describe(\"Custom fields for a record. Structure varies based on the table schema.\");\nconst SoftrSearchRecords_RecordSchema = z.object({\n id: z.string().describe(\"Unique identifier of the record.\").nullable(),\n fields: SoftrSearchRecords_RecordFieldsSchema.nullable(),\n tableId: z.string().describe(\"Identifier of the table this record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the record was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the record was last updated.\").nullable(),\n}).describe(\"Represents a single record from a Softr table.\");\nconst SoftrSearchRecords_SearchMetadataSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of records requested.\").nullable(),\n total: z.number().int().describe(\"Total number of records matching the filter criteria.\").nullable(),\n offset: z.number().int().describe(\"Number of records skipped in this result set.\").nullable(),\n}).describe(\"Metadata about the search results and pagination.\");\nexport const SoftrSearchRecordsOutput = z.object({\n data: z.array(SoftrSearchRecords_RecordSchema).describe(\"List of records matching the search criteria.\"),\n metadata: SoftrSearchRecords_SearchMetadataSchema.nullable(),\n}).describe(\"Response model containing search results and metadata.\");\n\nexport const softrSearchRecords = action(\"SOFTR_SEARCH_RECORDS\", {\n slug: \"softr-search-records\",\n name: \"Search Records\",\n description: \"Tool to search records in a Softr database table with filtering and pagination. Use when you need to retrieve records from a specific table, optionally filtered by field values and paginated for large result sets.\",\n input: SoftrSearchRecordsInput,\n output: SoftrSearchRecordsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxK,QAAQA,IAAAA,EAAE,OAAO;EACjB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACrJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wCAAwCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAClK,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,QAAQ,sCAAsC,SAAS;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,+CAA+C;CACvG,UAAU,wCAAwC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-records.d.ts
|
|
4
|
-
declare const SoftrSearchRecordsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrSearchRecordsInput: z.ZodObject<{
|
|
5
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
table_id: z.ZodString;
|
|
11
|
+
database_id: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SoftrSearchRecordsOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
fields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17
|
+
tableId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
19
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
metadata: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
offset: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const softrSearchRecords: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
table_id: string;
|
|
29
|
+
database_id: string;
|
|
30
|
+
filter?: Record<string, unknown> | undefined;
|
|
31
|
+
paging?: {
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
offset?: number | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { softrSearchRecords };
|
|
9
38
|
//# sourceMappingURL=search-records.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-records.d.cts","names":[],"sources":["../../src/actions/search-records.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"search-records.d.cts","names":[],"sources":["../../src/actions/search-records.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA;;;WAM7B,MAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-records.d.ts
|
|
4
|
-
declare const SoftrSearchRecordsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrSearchRecordsInput: z.ZodObject<{
|
|
5
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
+
paging: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
table_id: z.ZodString;
|
|
11
|
+
database_id: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SoftrSearchRecordsOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
fields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17
|
+
tableId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
19
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
metadata: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
offset: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const softrSearchRecords: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
table_id: string;
|
|
29
|
+
database_id: string;
|
|
30
|
+
filter?: Record<string, unknown> | undefined;
|
|
31
|
+
paging?: {
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
offset?: number | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { softrSearchRecords };
|
|
9
38
|
//# sourceMappingURL=search-records.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-records.d.mts","names":[],"sources":["../../src/actions/search-records.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"search-records.d.mts","names":[],"sources":["../../src/actions/search-records.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA;;;WAM7B,MAAA"}
|
|
@@ -12,16 +12,16 @@ const SoftrSearchRecordsInput = z.object({
|
|
|
12
12
|
}).describe("Request model for searching records in a Softr database table.");
|
|
13
13
|
const SoftrSearchRecords_RecordFieldsSchema = z.record(z.string(), z.unknown()).describe("Custom fields for a record. Structure varies based on the table schema.");
|
|
14
14
|
const SoftrSearchRecords_RecordSchema = z.object({
|
|
15
|
-
id: z.string().describe("Unique identifier of the record."),
|
|
15
|
+
id: z.string().describe("Unique identifier of the record.").nullable(),
|
|
16
16
|
fields: SoftrSearchRecords_RecordFieldsSchema.nullable(),
|
|
17
17
|
tableId: z.string().describe("Identifier of the table this record belongs to.").nullable().optional(),
|
|
18
|
-
createdAt: z.string().describe("ISO 8601 timestamp when the record was created."),
|
|
19
|
-
updatedAt: z.string().describe("ISO 8601 timestamp when the record was last updated.")
|
|
18
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the record was created.").nullable(),
|
|
19
|
+
updatedAt: z.string().describe("ISO 8601 timestamp when the record was last updated.").nullable()
|
|
20
20
|
}).describe("Represents a single record from a Softr table.");
|
|
21
21
|
const SoftrSearchRecords_SearchMetadataSchema = z.object({
|
|
22
|
-
limit: z.number().int().describe("Maximum number of records requested."),
|
|
23
|
-
total: z.number().int().describe("Total number of records matching the filter criteria."),
|
|
24
|
-
offset: z.number().int().describe("Number of records skipped in this result set.")
|
|
22
|
+
limit: z.number().int().describe("Maximum number of records requested.").nullable(),
|
|
23
|
+
total: z.number().int().describe("Total number of records matching the filter criteria.").nullable(),
|
|
24
|
+
offset: z.number().int().describe("Number of records skipped in this result set.").nullable()
|
|
25
25
|
}).describe("Metadata about the search results and pagination.");
|
|
26
26
|
const softrSearchRecords = action("SOFTR_SEARCH_RECORDS", {
|
|
27
27
|
slug: "softr-search-records",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-records.mjs","names":[],"sources":["../../src/actions/search-records.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrSearchRecordsInput
|
|
1
|
+
{"version":3,"file":"search-records.mjs","names":[],"sources":["../../src/actions/search-records.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrSearchRecordsInput = z.object({\n filter: z.record(z.string(), z.unknown()).describe(\"Filter conditions for searching records. Structure varies based on table schema and filter requirements.\").optional(),\n paging: z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of records to return per request. Must be between 1 and 100. Defaults to 10.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of records to skip. Use for pagination. Defaults to 0.\").optional(),\n}).describe(\"Pagination options for record search.\").optional(),\n table_id: z.string().describe(\"The unique identifier of the table to search records in.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for searching records in a Softr database table.\");\nconst SoftrSearchRecords_RecordFieldsSchema = z.record(z.string(), z.unknown()).describe(\"Custom fields for a record. Structure varies based on the table schema.\");\nconst SoftrSearchRecords_RecordSchema = z.object({\n id: z.string().describe(\"Unique identifier of the record.\").nullable(),\n fields: SoftrSearchRecords_RecordFieldsSchema.nullable(),\n tableId: z.string().describe(\"Identifier of the table this record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the record was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the record was last updated.\").nullable(),\n}).describe(\"Represents a single record from a Softr table.\");\nconst SoftrSearchRecords_SearchMetadataSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of records requested.\").nullable(),\n total: z.number().int().describe(\"Total number of records matching the filter criteria.\").nullable(),\n offset: z.number().int().describe(\"Number of records skipped in this result set.\").nullable(),\n}).describe(\"Metadata about the search results and pagination.\");\nexport const SoftrSearchRecordsOutput = z.object({\n data: z.array(SoftrSearchRecords_RecordSchema).describe(\"List of records matching the search criteria.\"),\n metadata: SoftrSearchRecords_SearchMetadataSchema.nullable(),\n}).describe(\"Response model containing search results and metadata.\");\n\nexport const softrSearchRecords = action(\"SOFTR_SEARCH_RECORDS\", {\n slug: \"softr-search-records\",\n name: \"Search Records\",\n description: \"Tool to search records in a Softr database table with filtering and pagination. Use when you need to retrieve records from a specific table, optionally filtered by field values and paginated for large result sets.\",\n input: SoftrSearchRecordsInput,\n output: SoftrSearchRecordsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxK,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACrJ,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wCAAwC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAClK,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,QAAQ,sCAAsC,SAAS;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAM/D,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,+CAA+C;EACvG,UAAU,wCAAwC,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -7,12 +7,12 @@ const SoftrUpdateDatabaseInput = zod.z.object({
|
|
|
7
7
|
description: zod.z.string().describe("The new description for the database").optional()
|
|
8
8
|
}).describe("Request model for updating a database's name and/or description.");
|
|
9
9
|
const SoftrUpdateDatabase_DatabaseSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique identifier of the database"),
|
|
11
|
-
name: zod.z.string().describe("Name of the database"),
|
|
12
|
-
createdAt: zod.z.string().describe("Timestamp when the database was created"),
|
|
13
|
-
updatedAt: zod.z.string().describe("Timestamp when the database was last updated"),
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the database").nullable(),
|
|
11
|
+
name: zod.z.string().describe("Name of the database").nullable(),
|
|
12
|
+
createdAt: zod.z.string().describe("Timestamp when the database was created").nullable(),
|
|
13
|
+
updatedAt: zod.z.string().describe("Timestamp when the database was last updated").nullable(),
|
|
14
14
|
description: zod.z.string().describe("Description of the database").nullable().optional(),
|
|
15
|
-
workspaceId: zod.z.string().describe("ID of the workspace this database belongs to")
|
|
15
|
+
workspaceId: zod.z.string().describe("ID of the workspace this database belongs to").nullable()
|
|
16
16
|
}).describe("Database object model");
|
|
17
17
|
const SoftrUpdateDatabaseOutput = zod.z.object({ data: SoftrUpdateDatabase_DatabaseSchema.nullable() }).describe("Response model for update database action");
|
|
18
18
|
const softrUpdateDatabase = require_action.action("SOFTR_UPDATE_DATABASE", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-database.cjs","names":["z","action"],"sources":["../../src/actions/update-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateDatabaseInput
|
|
1
|
+
{"version":3,"file":"update-database.cjs","names":["z","action"],"sources":["../../src/actions/update-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateDatabaseInput = z.object({\n name: z.string().describe(\"The new name for the database\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to update\"),\n description: z.string().describe(\"The new description for the database\").optional(),\n}).describe(\"Request model for updating a database's name and/or description.\");\nconst SoftrUpdateDatabase_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database\").nullable(),\n name: z.string().describe(\"Name of the database\").nullable(),\n createdAt: z.string().describe(\"Timestamp when the database was created\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the database was last updated\").nullable(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace this database belongs to\").nullable(),\n}).describe(\"Database object model\");\nexport const SoftrUpdateDatabaseOutput = z.object({\n data: SoftrUpdateDatabase_DatabaseSchema.nullable(),\n}).describe(\"Response model for update database action\");\n\nexport const softrUpdateDatabase = action(\"SOFTR_UPDATE_DATABASE\", {\n slug: \"softr-update-database\",\n name: \"Update Database\",\n description: \"Tool to update an existing database's name and/or description. Use when you need to modify database metadata after creation.\",\n input: SoftrUpdateDatabaseInput,\n output: SoftrUpdateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-database.d.ts
|
|
4
|
-
declare const SoftrUpdateDatabaseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrUpdateDatabaseInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
database_id: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SoftrUpdateDatabaseOutput: z.ZodObject<{
|
|
10
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
14
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
15
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const softrUpdateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
database_id: string;
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
description?: string | undefined;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { softrUpdateDatabase };
|
|
9
26
|
//# sourceMappingURL=update-database.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-database.d.cts","names":[],"sources":["../../src/actions/update-database.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-database.d.cts","names":[],"sources":["../../src/actions/update-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-database.d.ts
|
|
4
|
-
declare const SoftrUpdateDatabaseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrUpdateDatabaseInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
database_id: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SoftrUpdateDatabaseOutput: z.ZodObject<{
|
|
10
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
14
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
15
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const softrUpdateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
database_id: string;
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
description?: string | undefined;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { softrUpdateDatabase };
|
|
9
26
|
//# sourceMappingURL=update-database.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-database.d.mts","names":[],"sources":["../../src/actions/update-database.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-database.d.mts","names":[],"sources":["../../src/actions/update-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -7,12 +7,12 @@ const SoftrUpdateDatabaseInput = z.object({
|
|
|
7
7
|
description: z.string().describe("The new description for the database").optional()
|
|
8
8
|
}).describe("Request model for updating a database's name and/or description.");
|
|
9
9
|
const SoftrUpdateDatabase_DatabaseSchema = z.object({
|
|
10
|
-
id: z.string().describe("Unique identifier of the database"),
|
|
11
|
-
name: z.string().describe("Name of the database"),
|
|
12
|
-
createdAt: z.string().describe("Timestamp when the database was created"),
|
|
13
|
-
updatedAt: z.string().describe("Timestamp when the database was last updated"),
|
|
10
|
+
id: z.string().describe("Unique identifier of the database").nullable(),
|
|
11
|
+
name: z.string().describe("Name of the database").nullable(),
|
|
12
|
+
createdAt: z.string().describe("Timestamp when the database was created").nullable(),
|
|
13
|
+
updatedAt: z.string().describe("Timestamp when the database was last updated").nullable(),
|
|
14
14
|
description: z.string().describe("Description of the database").nullable().optional(),
|
|
15
|
-
workspaceId: z.string().describe("ID of the workspace this database belongs to")
|
|
15
|
+
workspaceId: z.string().describe("ID of the workspace this database belongs to").nullable()
|
|
16
16
|
}).describe("Database object model");
|
|
17
17
|
const softrUpdateDatabase = action("SOFTR_UPDATE_DATABASE", {
|
|
18
18
|
slug: "softr-update-database",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-database.mjs","names":[],"sources":["../../src/actions/update-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateDatabaseInput
|
|
1
|
+
{"version":3,"file":"update-database.mjs","names":[],"sources":["../../src/actions/update-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateDatabaseInput = z.object({\n name: z.string().describe(\"The new name for the database\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to update\"),\n description: z.string().describe(\"The new description for the database\").optional(),\n}).describe(\"Request model for updating a database's name and/or description.\");\nconst SoftrUpdateDatabase_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database\").nullable(),\n name: z.string().describe(\"Name of the database\").nullable(),\n createdAt: z.string().describe(\"Timestamp when the database was created\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the database was last updated\").nullable(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace this database belongs to\").nullable(),\n}).describe(\"Database object model\");\nexport const SoftrUpdateDatabaseOutput = z.object({\n data: SoftrUpdateDatabase_DatabaseSchema.nullable(),\n}).describe(\"Response model for update database action\");\n\nexport const softrUpdateDatabase = action(\"SOFTR_UPDATE_DATABASE\", {\n slug: \"softr-update-database\",\n name: \"Update Database\",\n description: \"Tool to update an existing database's name and/or description. Use when you need to modify database metadata after creation.\",\n input: SoftrUpdateDatabaseInput,\n output: SoftrUpdateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,uBAAuB;AAKnC,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-record.cjs","names":["z","action"],"sources":["../../src/actions/update-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateRecordInput
|
|
1
|
+
{"version":3,"file":"update-record.cjs","names":["z","action"],"sources":["../../src/actions/update-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateRecordInput = z.object({\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their new values. Field IDs are unique identifiers for each column in the table (e.g., 'o0JWv'). The values can be strings, numbers, booleans, or other types depending on the field type in your Softr table schema.\"),\n table_id: z.string().describe(\"The unique identifier of the table containing the record.\"),\n record_id: z.string().describe(\"The unique identifier of the record to update.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for updating an existing record in a Softr table.\");\nconst SoftrUpdateRecord_RecordDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the record.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their values for this record.\").nullable().optional(),\n tableId: z.string().describe(\"The unique identifier of the table the record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"The timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n updatedAt: z.string().describe(\"The timestamp when the record was last updated (ISO 8601 format).\").nullable().optional(),\n}).describe(\"Record data structure returned by the API.\");\nexport const SoftrUpdateRecordOutput = z.object({\n data: SoftrUpdateRecord_RecordDataSchema.nullable().optional(),\n}).describe(\"Response model containing the updated record data.\");\n\nexport const softrUpdateRecord = action(\"SOFTR_UPDATE_RECORD\", {\n slug: \"softr-update-record\",\n name: \"Update a record\",\n description: \"Tool to update an existing record's field values in a Softr table. Use when you need to modify specific fields of a record by providing the database ID, table ID, record ID, and the new field values.\",\n input: SoftrUpdateRecordInput,\n output: SoftrUpdateRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6OAA6O;CAChS,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,mCAAmC,SAAS,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-record.d.ts
|
|
4
|
-
declare const SoftrUpdateRecordInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrUpdateRecordInput: z.ZodObject<{
|
|
5
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
table_id: z.ZodString;
|
|
7
|
+
record_id: z.ZodString;
|
|
8
|
+
database_id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const SoftrUpdateRecordOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
|
+
tableId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const softrUpdateRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
fields: Record<string, unknown>;
|
|
21
|
+
table_id: string;
|
|
22
|
+
record_id: string;
|
|
23
|
+
database_id: string;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { softrUpdateRecord };
|
|
9
27
|
//# sourceMappingURL=update-record.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-record.d.cts","names":[],"sources":["../../src/actions/update-record.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"update-record.d.cts","names":[],"sources":["../../src/actions/update-record.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;cAatB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA;UAM5B,MAAA"}
|