@keystrokehq/softr 0.1.0 → 0.1.3
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 +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 +1 -1
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-record.cjs +7 -7
- 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 +7 -7
- package/dist/actions/create-record.mjs.map +1 -1
- package/dist/actions/create-table-field.cjs +13 -13
- 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 +13 -13
- package/dist/actions/create-table-field.mjs.map +1 -1
- package/dist/actions/create-table.cjs +11 -11
- package/dist/actions/create-table.cjs.map +1 -1
- package/dist/actions/create-table.d.cts +80 -3
- package/dist/actions/create-table.d.cts.map +1 -1
- package/dist/actions/create-table.d.mts +80 -3
- package/dist/actions/create-table.d.mts.map +1 -1
- package/dist/actions/create-table.mjs +11 -11
- package/dist/actions/create-table.mjs.map +1 -1
- package/dist/actions/delete-database.cjs +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- package/dist/actions/delete-table-field.mjs.map +1 -1
- package/dist/actions/delete-table.cjs +3 -3
- 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 +3 -3
- package/dist/actions/delete-table.mjs.map +1 -1
- package/dist/actions/get-database.cjs +7 -7
- 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 +7 -7
- package/dist/actions/get-database.mjs.map +1 -1
- package/dist/actions/get-databases.cjs +7 -7
- 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 +7 -7
- package/dist/actions/get-databases.mjs.map +1 -1
- package/dist/actions/get-record.cjs +6 -6
- 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 +6 -6
- package/dist/actions/get-record.mjs.map +1 -1
- package/dist/actions/get-records.cjs +3 -3
- 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 +3 -3
- package/dist/actions/get-records.mjs.map +1 -1
- package/dist/actions/get-table-field.cjs +5 -5
- 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 +5 -5
- package/dist/actions/get-table-field.mjs.map +1 -1
- package/dist/actions/get-table-views.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-table-views.mjs.map +1 -1
- package/dist/actions/get-table.cjs +11 -11
- 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 +11 -11
- package/dist/actions/get-table.mjs.map +1 -1
- package/dist/actions/get-tables.cjs +4 -4
- 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 +4 -4
- package/dist/actions/get-tables.mjs.map +1 -1
- package/dist/actions/search-records.cjs +9 -9
- 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 +9 -9
- package/dist/actions/search-records.mjs.map +1 -1
- package/dist/actions/update-database.cjs +7 -7
- 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 +7 -7
- package/dist/actions/update-database.mjs.map +1 -1
- package/dist/actions/update-record.cjs +2 -2
- 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 +2 -2
- package/dist/actions/update-record.mjs.map +1 -1
- package/dist/actions/update-table-field.cjs +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 +1 -1
- package/dist/actions/update-table-field.mjs.map +1 -1
- package/dist/actions/update-table.cjs +12 -12
- 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 +12 -12
- 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
|
@@ -12,13 +12,13 @@ const SoftrGetTableViews_TableViewSchema = z.object({
|
|
|
12
12
|
createdAt: z.string().describe("Timestamp when the view was created.").nullable().optional(),
|
|
13
13
|
updatedAt: z.string().describe("Timestamp when the view was last updated.").nullable().optional(),
|
|
14
14
|
description: z.string().describe("Description of the view.").nullable().optional()
|
|
15
|
-
}).describe("Model representing a single table view.");
|
|
15
|
+
}).passthrough().describe("Model representing a single table view.");
|
|
16
16
|
const softrGetTableViews = action("SOFTR_GET_TABLE_VIEWS", {
|
|
17
17
|
slug: "softr-get-table-views",
|
|
18
18
|
name: "Get Table Views",
|
|
19
19
|
description: "Tool to retrieve all views for a specified table in a Softr database. Use when you need to list or inspect available views for a table.",
|
|
20
20
|
input: SoftrGetTableViewsInput,
|
|
21
|
-
output: z.object({ data: z.array(SoftrGetTableViews_TableViewSchema).describe("List of table views.") }).describe("Response model containing all views for a specified table.")
|
|
21
|
+
output: z.object({ data: z.array(SoftrGetTableViews_TableViewSchema).describe("List of table views.") }).passthrough().describe("Response model containing all views for a specified table.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { softrGetTableViews };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-table-views.mjs","names":[],"sources":["../../src/actions/get-table-views.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTableViewsInput
|
|
1
|
+
{"version":3,"file":"get-table-views.mjs","names":[],"sources":["../../src/actions/get-table-views.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTableViewsInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table whose views are to be retrieved.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for retrieving all views for a specified table.\");\nconst SoftrGetTableViews_TableViewSchema = z.object({\n id: z.string().describe(\"The unique identifier of the view.\").nullable().optional(),\n name: z.string().describe(\"The name of the view.\").nullable().optional(),\n tableId: z.string().describe(\"The identifier of the table this view belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the view was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the view was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the view.\").nullable().optional(),\n}).passthrough().describe(\"Model representing a single table view.\");\nexport const SoftrGetTableViewsOutput = z.object({\n data: z.array(SoftrGetTableViews_TableViewSchema).describe(\"List of table views.\"),\n}).passthrough().describe(\"Response model containing all views for a specified table.\");\n\nexport const softrGetTableViews = action(\"SOFTR_GET_TABLE_VIEWS\", {\n slug: \"softr-get-table-views\",\n name: \"Get Table Views\",\n description: \"Tool to retrieve all views for a specified table in a Softr database. Use when you need to list or inspect available views for a table.\",\n input: SoftrGetTableViewsInput,\n output: SoftrGetTableViewsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,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,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,sBAAsB,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
|
|
@@ -39,11 +39,11 @@ const SoftrGetTable_FieldTypeSchema = zod.z.enum([
|
|
|
39
39
|
"USER"
|
|
40
40
|
]).describe("Enumeration of field types supported in Softr tables.");
|
|
41
41
|
const SoftrGetTable_TableFieldSchema = zod.z.object({
|
|
42
|
-
id: zod.z.string().describe("Unique identifier of the field"),
|
|
43
|
-
name: zod.z.string().describe("Name of the field"),
|
|
42
|
+
id: zod.z.string().describe("Unique identifier of the field").nullable(),
|
|
43
|
+
name: zod.z.string().describe("Name of the field").nullable(),
|
|
44
44
|
type: SoftrGetTable_FieldTypeSchema.nullable(),
|
|
45
45
|
locked: zod.z.boolean().describe("Whether the field is locked").nullable().optional(),
|
|
46
|
-
options: zod.z.
|
|
46
|
+
options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Type-specific configuration options for the field").nullable().optional(),
|
|
47
47
|
readonly: zod.z.boolean().describe("Whether the field is read-only").nullable().optional(),
|
|
48
48
|
required: zod.z.boolean().describe("Whether the field is required").nullable().optional(),
|
|
49
49
|
createdAt: zod.z.string().describe("Timestamp when the field was created").nullable().optional(),
|
|
@@ -52,16 +52,16 @@ const SoftrGetTable_TableFieldSchema = zod.z.object({
|
|
|
52
52
|
allowMultipleEntries: zod.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 = zod.z.object({
|
|
55
|
-
id: zod.z.string().describe("Unique identifier of the table"),
|
|
56
|
-
name: zod.z.string().describe("Name of the table"),
|
|
55
|
+
id: zod.z.string().describe("Unique identifier of the table").nullable(),
|
|
56
|
+
name: zod.z.string().describe("Name of the table").nullable(),
|
|
57
57
|
fields: zod.z.array(SoftrGetTable_TableFieldSchema).describe("List of fields defined in the table"),
|
|
58
|
-
createdAt: zod.z.string().describe("Timestamp when the table was created"),
|
|
59
|
-
updatedAt: zod.z.string().describe("Timestamp when the table was last updated"),
|
|
58
|
+
createdAt: zod.z.string().describe("Timestamp when the table was created").nullable(),
|
|
59
|
+
updatedAt: zod.z.string().describe("Timestamp when the table was last updated").nullable(),
|
|
60
60
|
description: zod.z.string().describe("Description of the table").nullable().optional(),
|
|
61
|
-
defaultViewId: zod.z.string().describe("ID of the default view for the table"),
|
|
62
|
-
primaryFieldId: zod.z.string().describe("ID of the primary field in the table")
|
|
63
|
-
}).describe("Represents the data structure of a Softr table.");
|
|
64
|
-
const SoftrGetTableOutput = zod.z.object({ data: SoftrGetTable_TableDataSchema.nullable() }).describe("Response model containing the retrieved table details.");
|
|
61
|
+
defaultViewId: zod.z.string().describe("ID of the default view for the table").nullable(),
|
|
62
|
+
primaryFieldId: zod.z.string().describe("ID of the primary field in the table").nullable()
|
|
63
|
+
}).passthrough().describe("Represents the data structure of a Softr table.");
|
|
64
|
+
const SoftrGetTableOutput = zod.z.object({ data: SoftrGetTable_TableDataSchema.nullable() }).passthrough().describe("Response model containing the retrieved table details.");
|
|
65
65
|
const softrGetTable = require_action.action("SOFTR_GET_TABLE", {
|
|
66
66
|
slug: "softr-get-table",
|
|
67
67
|
name: "Get Table",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-table.cjs","names":["z","action"],"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.cjs","names":["z","action"],"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.record(z.string(), z.unknown()).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}).passthrough().describe(\"Represents the data structure of a Softr table.\");\nexport const SoftrGetTableOutput = z.object({\n data: SoftrGetTable_TableDataSchema.nullable(),\n}).passthrough().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,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gCAAgCA,IAAAA,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,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,8BAA8B,SAAS;CAC7C,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,QAAQA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,qCAAqC;CAC9F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,MAAM,8BAA8B,SAAS,EAC/C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,70 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-table.d.ts
|
|
4
|
-
declare const SoftrGetTableInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrGetTableInput: z.ZodObject<{
|
|
5
|
+
table_id: z.ZodString;
|
|
6
|
+
database_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SoftrGetTableOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
SINGLE_LINE_TEXT: "SINGLE_LINE_TEXT";
|
|
17
|
+
CHECKBOX: "CHECKBOX";
|
|
18
|
+
CURRENCY: "CURRENCY";
|
|
19
|
+
DATETIME: "DATETIME";
|
|
20
|
+
DURATION: "DURATION";
|
|
21
|
+
EMAIL: "EMAIL";
|
|
22
|
+
SELECT: "SELECT";
|
|
23
|
+
NUMBER: "NUMBER";
|
|
24
|
+
ATTACHMENT: "ATTACHMENT";
|
|
25
|
+
RATING: "RATING";
|
|
26
|
+
LINKED_RECORD: "LINKED_RECORD";
|
|
27
|
+
LONG_TEXT: "LONG_TEXT";
|
|
28
|
+
URL: "URL";
|
|
29
|
+
PERCENT: "PERCENT";
|
|
30
|
+
BUTTON: "BUTTON";
|
|
31
|
+
PROGRESS: "PROGRESS";
|
|
32
|
+
PHONE: "PHONE";
|
|
33
|
+
DATE_RANGE: "DATE_RANGE";
|
|
34
|
+
ADDRESS: "ADDRESS";
|
|
35
|
+
TIME: "TIME";
|
|
36
|
+
LOOKUP: "LOOKUP";
|
|
37
|
+
ROLLUP: "ROLLUP";
|
|
38
|
+
FORMULA: "FORMULA";
|
|
39
|
+
COUNT: "COUNT";
|
|
40
|
+
CREATED_AT: "CREATED_AT";
|
|
41
|
+
UPDATED_AT: "UPDATED_AT";
|
|
42
|
+
CREATED_BY: "CREATED_BY";
|
|
43
|
+
UPDATED_BY: "UPDATED_BY";
|
|
44
|
+
AUTONUMBER: "AUTONUMBER";
|
|
45
|
+
RECORD_ID: "RECORD_ID";
|
|
46
|
+
USER: "USER";
|
|
47
|
+
}>>;
|
|
48
|
+
locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
49
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
50
|
+
readonly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
51
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
allowMultipleEntries: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
58
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
59
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
defaultViewId: z.ZodNullable<z.ZodString>;
|
|
61
|
+
primaryFieldId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
|
+
}, z.core.$loose>;
|
|
64
|
+
declare const softrGetTable: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
|
+
table_id: string;
|
|
66
|
+
database_id: string;
|
|
67
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
68
|
//#endregion
|
|
8
69
|
export { softrGetTable };
|
|
9
70
|
//# sourceMappingURL=get-table.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-table.d.cts","names":[],"sources":["../../src/actions/get-table.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"get-table.d.cts","names":[],"sources":["../../src/actions/get-table.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA"}
|
|
@@ -1,9 +1,70 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-table.d.ts
|
|
4
|
-
declare const SoftrGetTableInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SoftrGetTableInput: z.ZodObject<{
|
|
5
|
+
table_id: z.ZodString;
|
|
6
|
+
database_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SoftrGetTableOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodNullable<z.ZodString>;
|
|
14
|
+
name: z.ZodNullable<z.ZodString>;
|
|
15
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
SINGLE_LINE_TEXT: "SINGLE_LINE_TEXT";
|
|
17
|
+
CHECKBOX: "CHECKBOX";
|
|
18
|
+
CURRENCY: "CURRENCY";
|
|
19
|
+
DATETIME: "DATETIME";
|
|
20
|
+
DURATION: "DURATION";
|
|
21
|
+
EMAIL: "EMAIL";
|
|
22
|
+
SELECT: "SELECT";
|
|
23
|
+
NUMBER: "NUMBER";
|
|
24
|
+
ATTACHMENT: "ATTACHMENT";
|
|
25
|
+
RATING: "RATING";
|
|
26
|
+
LINKED_RECORD: "LINKED_RECORD";
|
|
27
|
+
LONG_TEXT: "LONG_TEXT";
|
|
28
|
+
URL: "URL";
|
|
29
|
+
PERCENT: "PERCENT";
|
|
30
|
+
BUTTON: "BUTTON";
|
|
31
|
+
PROGRESS: "PROGRESS";
|
|
32
|
+
PHONE: "PHONE";
|
|
33
|
+
DATE_RANGE: "DATE_RANGE";
|
|
34
|
+
ADDRESS: "ADDRESS";
|
|
35
|
+
TIME: "TIME";
|
|
36
|
+
LOOKUP: "LOOKUP";
|
|
37
|
+
ROLLUP: "ROLLUP";
|
|
38
|
+
FORMULA: "FORMULA";
|
|
39
|
+
COUNT: "COUNT";
|
|
40
|
+
CREATED_AT: "CREATED_AT";
|
|
41
|
+
UPDATED_AT: "UPDATED_AT";
|
|
42
|
+
CREATED_BY: "CREATED_BY";
|
|
43
|
+
UPDATED_BY: "UPDATED_BY";
|
|
44
|
+
AUTONUMBER: "AUTONUMBER";
|
|
45
|
+
RECORD_ID: "RECORD_ID";
|
|
46
|
+
USER: "USER";
|
|
47
|
+
}>>;
|
|
48
|
+
locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
49
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
50
|
+
readonly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
51
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
52
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
allowMultipleEntries: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
58
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
59
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
defaultViewId: z.ZodNullable<z.ZodString>;
|
|
61
|
+
primaryFieldId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
|
+
}, z.core.$loose>;
|
|
64
|
+
declare const softrGetTable: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
|
+
table_id: string;
|
|
66
|
+
database_id: string;
|
|
67
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
68
|
//#endregion
|
|
8
69
|
export { softrGetTable };
|
|
9
70
|
//# sourceMappingURL=get-table.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-table.d.mts","names":[],"sources":["../../src/actions/get-table.ts"],"mappings":";;;cAIa,kBAAA,
|
|
1
|
+
{"version":3,"file":"get-table.d.mts","names":[],"sources":["../../src/actions/get-table.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA"}
|
|
@@ -39,11 +39,11 @@ 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
|
-
options: z.
|
|
46
|
+
options: z.record(z.string(), z.unknown()).describe("Type-specific configuration options for the field").nullable().optional(),
|
|
47
47
|
readonly: z.boolean().describe("Whether the field is read-only").nullable().optional(),
|
|
48
48
|
required: z.boolean().describe("Whether the field is required").nullable().optional(),
|
|
49
49
|
createdAt: z.string().describe("Timestamp when the field was created").nullable().optional(),
|
|
@@ -52,21 +52,21 @@ 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")
|
|
63
|
-
}).describe("Represents the data structure of a Softr 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
|
+
}).passthrough().describe("Represents the data structure of a Softr table.");
|
|
64
64
|
const softrGetTable = action("SOFTR_GET_TABLE", {
|
|
65
65
|
slug: "softr-get-table",
|
|
66
66
|
name: "Get Table",
|
|
67
67
|
description: "Tool to retrieve details for a specific table by ID. Use when you need to inspect table structure, fields, or metadata.",
|
|
68
68
|
input: SoftrGetTableInput,
|
|
69
|
-
output: z.object({ data: SoftrGetTable_TableDataSchema.nullable() }).describe("Response model containing the retrieved table details.")
|
|
69
|
+
output: z.object({ data: SoftrGetTable_TableDataSchema.nullable() }).passthrough().describe("Response model containing the retrieved table details.")
|
|
70
70
|
});
|
|
71
71
|
//#endregion
|
|
72
72
|
export { softrGetTable };
|
|
@@ -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.record(z.string(), z.unknown()).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}).passthrough().describe(\"Represents the data structure of a Softr table.\");\nexport const SoftrGetTableOutput = z.object({\n data: SoftrGetTable_TableDataSchema.nullable(),\n}).passthrough().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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,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,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAK3E,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,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -3,15 +3,15 @@ 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(),
|
|
11
11
|
defaultViewId: zod.z.string().describe("Identifier of the default view for the table.").nullable().optional(),
|
|
12
12
|
primaryFieldId: zod.z.string().describe("Identifier of the primary field in the table.").nullable().optional()
|
|
13
|
-
}).describe("Represents a table within a Softr database.");
|
|
14
|
-
const SoftrGetTablesOutput = zod.z.object({ data: zod.z.array(SoftrGetTables_TableSchema).describe("Array of table objects within the specified database.") }).describe("Response containing all tables in a database.");
|
|
13
|
+
}).passthrough().describe("Represents a table within a Softr database.");
|
|
14
|
+
const SoftrGetTablesOutput = zod.z.object({ data: zod.z.array(SoftrGetTables_TableSchema).describe("Array of table objects within the specified database.") }).passthrough().describe("Response containing all tables in a database.");
|
|
15
15
|
const softrGetTables = require_action.action("SOFTR_GET_TABLES", {
|
|
16
16
|
slug: "softr-get-tables",
|
|
17
17
|
name: "Get Tables",
|
|
@@ -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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAMA,IAAAA,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,uDAAuD,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,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.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
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.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
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,20 +3,20 @@ 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(),
|
|
11
11
|
defaultViewId: z.string().describe("Identifier of the default view for the table.").nullable().optional(),
|
|
12
12
|
primaryFieldId: z.string().describe("Identifier of the primary field in the table.").nullable().optional()
|
|
13
|
-
}).describe("Represents a table within a Softr database.");
|
|
13
|
+
}).passthrough().describe("Represents a table within a Softr database.");
|
|
14
14
|
const softrGetTables = action("SOFTR_GET_TABLES", {
|
|
15
15
|
slug: "softr-get-tables",
|
|
16
16
|
name: "Get Tables",
|
|
17
17
|
description: "Retrieves all tables within a specified Softr database. Use when you need to list or explore the tables available in a database.",
|
|
18
18
|
input: SoftrGetTablesInput,
|
|
19
|
-
output: z.object({ data: z.array(SoftrGetTables_TableSchema).describe("Array of table objects within the specified database.") }).describe("Response containing all tables in a database.")
|
|
19
|
+
output: z.object({ data: z.array(SoftrGetTables_TableSchema).describe("Array of table objects within the specified database.") }).passthrough().describe("Response containing all tables in a database.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { softrGetTables };
|
|
@@ -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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAKvE,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,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -12,21 +12,21 @@ 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.")
|
|
20
|
-
}).describe("Represents a single record from a Softr table.");
|
|
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
|
+
}).passthrough().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.")
|
|
25
|
-
}).describe("Metadata about the search results and pagination.");
|
|
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
|
+
}).passthrough().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."),
|
|
28
28
|
metadata: SoftrSearchRecords_SearchMetadataSchema.nullable()
|
|
29
|
-
}).describe("Response model containing search results and metadata.");
|
|
29
|
+
}).passthrough().describe("Response model containing search results and metadata.");
|
|
30
30
|
const softrSearchRecords = require_action.action("SOFTR_SEARCH_RECORDS", {
|
|
31
31
|
slug: "softr-search-records",
|
|
32
32
|
name: "Search Records",
|
|
@@ -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}).passthrough().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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,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,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,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.$loose>>;
|
|
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.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
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"}
|