@keystrokehq/softr 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-database.cjs +27 -0
- package/dist/actions/create-database.cjs.map +1 -0
- package/dist/actions/create-database.d.cts +9 -0
- package/dist/actions/create-database.d.cts.map +1 -0
- package/dist/actions/create-database.d.mts +9 -0
- package/dist/actions/create-database.d.mts.map +1 -0
- package/dist/actions/create-database.mjs +24 -0
- package/dist/actions/create-database.mjs.map +1 -0
- package/dist/actions/create-record.cjs +26 -0
- package/dist/actions/create-record.cjs.map +1 -0
- package/dist/actions/create-record.d.cts +9 -0
- package/dist/actions/create-record.d.cts.map +1 -0
- package/dist/actions/create-record.d.mts +9 -0
- package/dist/actions/create-record.d.mts.map +1 -0
- package/dist/actions/create-record.mjs +25 -0
- package/dist/actions/create-record.mjs.map +1 -0
- package/dist/actions/create-table-field.cjs +72 -0
- package/dist/actions/create-table-field.cjs.map +1 -0
- package/dist/actions/create-table-field.d.cts +9 -0
- package/dist/actions/create-table-field.d.cts.map +1 -0
- package/dist/actions/create-table-field.d.mts +9 -0
- package/dist/actions/create-table-field.d.mts.map +1 -0
- package/dist/actions/create-table-field.mjs +71 -0
- package/dist/actions/create-table-field.mjs.map +1 -0
- package/dist/actions/create-table.cjs +82 -0
- package/dist/actions/create-table.cjs.map +1 -0
- package/dist/actions/create-table.d.cts +9 -0
- package/dist/actions/create-table.d.cts.map +1 -0
- package/dist/actions/create-table.d.mts +9 -0
- package/dist/actions/create-table.d.mts.map +1 -0
- package/dist/actions/create-table.mjs +81 -0
- package/dist/actions/create-table.mjs.map +1 -0
- package/dist/actions/delete-database.cjs +22 -0
- package/dist/actions/delete-database.cjs.map +1 -0
- package/dist/actions/delete-database.d.cts +9 -0
- package/dist/actions/delete-database.d.cts.map +1 -0
- package/dist/actions/delete-database.d.mts +9 -0
- package/dist/actions/delete-database.d.mts.map +1 -0
- package/dist/actions/delete-database.mjs +19 -0
- package/dist/actions/delete-database.mjs.map +1 -0
- package/dist/actions/delete-record.cjs +20 -0
- package/dist/actions/delete-record.cjs.map +1 -0
- package/dist/actions/delete-record.d.cts +9 -0
- package/dist/actions/delete-record.d.cts.map +1 -0
- package/dist/actions/delete-record.d.mts +9 -0
- package/dist/actions/delete-record.d.mts.map +1 -0
- package/dist/actions/delete-record.mjs +17 -0
- package/dist/actions/delete-record.mjs.map +1 -0
- package/dist/actions/delete-table-field.cjs +23 -0
- package/dist/actions/delete-table-field.cjs.map +1 -0
- package/dist/actions/delete-table-field.d.cts +9 -0
- package/dist/actions/delete-table-field.d.cts.map +1 -0
- package/dist/actions/delete-table-field.d.mts +9 -0
- package/dist/actions/delete-table-field.d.mts.map +1 -0
- package/dist/actions/delete-table-field.mjs +20 -0
- package/dist/actions/delete-table-field.mjs.map +1 -0
- package/dist/actions/delete-table.cjs +23 -0
- package/dist/actions/delete-table.cjs.map +1 -0
- package/dist/actions/delete-table.d.cts +9 -0
- package/dist/actions/delete-table.d.cts.map +1 -0
- package/dist/actions/delete-table.d.mts +9 -0
- package/dist/actions/delete-table.d.mts.map +1 -0
- package/dist/actions/delete-table.mjs +20 -0
- package/dist/actions/delete-table.mjs.map +1 -0
- package/dist/actions/get-database.cjs +24 -0
- package/dist/actions/get-database.cjs.map +1 -0
- package/dist/actions/get-database.d.cts +9 -0
- package/dist/actions/get-database.d.cts.map +1 -0
- package/dist/actions/get-database.d.mts +9 -0
- package/dist/actions/get-database.d.mts.map +1 -0
- package/dist/actions/get-database.mjs +23 -0
- package/dist/actions/get-database.mjs.map +1 -0
- package/dist/actions/get-databases.cjs +27 -0
- package/dist/actions/get-databases.cjs.map +1 -0
- package/dist/actions/get-databases.d.cts +9 -0
- package/dist/actions/get-databases.d.cts.map +1 -0
- package/dist/actions/get-databases.d.mts +9 -0
- package/dist/actions/get-databases.d.mts.map +1 -0
- package/dist/actions/get-databases.mjs +26 -0
- package/dist/actions/get-databases.mjs.map +1 -0
- package/dist/actions/get-record.cjs +27 -0
- package/dist/actions/get-record.cjs.map +1 -0
- package/dist/actions/get-record.d.cts +9 -0
- package/dist/actions/get-record.d.cts.map +1 -0
- package/dist/actions/get-record.d.mts +9 -0
- package/dist/actions/get-record.d.mts.map +1 -0
- package/dist/actions/get-record.mjs +26 -0
- package/dist/actions/get-record.mjs.map +1 -0
- package/dist/actions/get-records.cjs +36 -0
- package/dist/actions/get-records.cjs.map +1 -0
- package/dist/actions/get-records.d.cts +9 -0
- package/dist/actions/get-records.d.cts.map +1 -0
- package/dist/actions/get-records.d.mts +9 -0
- package/dist/actions/get-records.d.mts.map +1 -0
- package/dist/actions/get-records.mjs +35 -0
- package/dist/actions/get-records.mjs.map +1 -0
- package/dist/actions/get-table-field.cjs +33 -0
- package/dist/actions/get-table-field.cjs.map +1 -0
- package/dist/actions/get-table-field.d.cts +9 -0
- package/dist/actions/get-table-field.d.cts.map +1 -0
- package/dist/actions/get-table-field.d.mts +9 -0
- package/dist/actions/get-table-field.d.mts.map +1 -0
- package/dist/actions/get-table-field.mjs +32 -0
- package/dist/actions/get-table-field.mjs.map +1 -0
- package/dist/actions/get-table-views.cjs +27 -0
- package/dist/actions/get-table-views.cjs.map +1 -0
- package/dist/actions/get-table-views.d.cts +9 -0
- package/dist/actions/get-table-views.d.cts.map +1 -0
- package/dist/actions/get-table-views.d.mts +9 -0
- package/dist/actions/get-table-views.d.mts.map +1 -0
- package/dist/actions/get-table-views.mjs +26 -0
- package/dist/actions/get-table-views.mjs.map +1 -0
- package/dist/actions/get-table.cjs +75 -0
- package/dist/actions/get-table.cjs.map +1 -0
- package/dist/actions/get-table.d.cts +9 -0
- package/dist/actions/get-table.d.cts.map +1 -0
- package/dist/actions/get-table.d.mts +9 -0
- package/dist/actions/get-table.d.mts.map +1 -0
- package/dist/actions/get-table.mjs +74 -0
- package/dist/actions/get-table.mjs.map +1 -0
- package/dist/actions/get-tables.cjs +25 -0
- package/dist/actions/get-tables.cjs.map +1 -0
- package/dist/actions/get-tables.d.cts +9 -0
- package/dist/actions/get-tables.d.cts.map +1 -0
- package/dist/actions/get-tables.d.mts +9 -0
- package/dist/actions/get-tables.d.mts.map +1 -0
- package/dist/actions/get-tables.mjs +24 -0
- package/dist/actions/get-tables.mjs.map +1 -0
- package/dist/actions/index.cjs +43 -0
- package/dist/actions/index.d.cts +22 -0
- package/dist/actions/index.d.mts +22 -0
- package/dist/actions/index.mjs +22 -0
- package/dist/actions/search-records.cjs +40 -0
- package/dist/actions/search-records.cjs.map +1 -0
- package/dist/actions/search-records.d.cts +9 -0
- package/dist/actions/search-records.d.cts.map +1 -0
- package/dist/actions/search-records.d.mts +9 -0
- package/dist/actions/search-records.d.mts.map +1 -0
- package/dist/actions/search-records.mjs +39 -0
- package/dist/actions/search-records.mjs.map +1 -0
- package/dist/actions/update-database.cjs +28 -0
- package/dist/actions/update-database.cjs.map +1 -0
- package/dist/actions/update-database.d.cts +9 -0
- package/dist/actions/update-database.d.cts.map +1 -0
- package/dist/actions/update-database.d.mts +9 -0
- package/dist/actions/update-database.d.mts.map +1 -0
- package/dist/actions/update-database.mjs +27 -0
- package/dist/actions/update-database.mjs.map +1 -0
- package/dist/actions/update-record.cjs +28 -0
- package/dist/actions/update-record.cjs.map +1 -0
- package/dist/actions/update-record.d.cts +9 -0
- package/dist/actions/update-record.d.cts.map +1 -0
- package/dist/actions/update-record.d.mts +9 -0
- package/dist/actions/update-record.d.mts.map +1 -0
- package/dist/actions/update-record.mjs +27 -0
- package/dist/actions/update-record.mjs.map +1 -0
- package/dist/actions/update-table-field.cjs +67 -0
- package/dist/actions/update-table-field.cjs.map +1 -0
- package/dist/actions/update-table-field.d.cts +9 -0
- package/dist/actions/update-table-field.d.cts.map +1 -0
- package/dist/actions/update-table-field.d.mts +9 -0
- package/dist/actions/update-table-field.d.mts.map +1 -0
- package/dist/actions/update-table-field.mjs +64 -0
- package/dist/actions/update-table-field.mjs.map +1 -0
- package/dist/actions/update-table.cjs +45 -0
- package/dist/actions/update-table.cjs.map +1 -0
- package/dist/actions/update-table.d.cts +9 -0
- package/dist/actions/update-table.d.cts.map +1 -0
- package/dist/actions/update-table.d.mts +9 -0
- package/dist/actions/update-table.d.mts.map +1 -0
- package/dist/actions/update-table.mjs +44 -0
- package/dist/actions/update-table.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +48 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +25 -0
- package/package.json +49 -0
|
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,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,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-record.d.ts
|
|
4
|
+
declare const SoftrUpdateRecordInput: z.ZodTypeAny;
|
|
5
|
+
declare const SoftrUpdateRecordOutput: z.ZodTypeAny;
|
|
6
|
+
declare const softrUpdateRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { softrUpdateRecord };
|
|
9
|
+
//# sourceMappingURL=update-record.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-record.d.cts","names":[],"sources":["../../src/actions/update-record.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAKuC;AAAA,cAQjE,uBAAA,EAAyB,CAAA,CAAE,UAEyB;AAAA,cAEpD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-record.d.ts
|
|
4
|
+
declare const SoftrUpdateRecordInput: z.ZodTypeAny;
|
|
5
|
+
declare const SoftrUpdateRecordOutput: z.ZodTypeAny;
|
|
6
|
+
declare const softrUpdateRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { softrUpdateRecord };
|
|
9
|
+
//# sourceMappingURL=update-record.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-record.d.mts","names":[],"sources":["../../src/actions/update-record.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAKuC;AAAA,cAQjE,uBAAA,EAAyB,CAAA,CAAE,UAEyB;AAAA,cAEpD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-record.ts
|
|
4
|
+
const SoftrUpdateRecordInput = z.object({
|
|
5
|
+
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."),
|
|
6
|
+
table_id: z.string().describe("The unique identifier of the table containing the record."),
|
|
7
|
+
record_id: z.string().describe("The unique identifier of the record to update."),
|
|
8
|
+
database_id: z.string().describe("The unique identifier of the database containing the table.")
|
|
9
|
+
}).describe("Request model for updating an existing record in a Softr table.");
|
|
10
|
+
const SoftrUpdateRecord_RecordDataSchema = z.object({
|
|
11
|
+
id: z.string().describe("The unique identifier of the record.").nullable().optional(),
|
|
12
|
+
fields: z.record(z.string(), z.unknown()).describe("A map of field IDs to their values for this record.").nullable().optional(),
|
|
13
|
+
tableId: z.string().describe("The unique identifier of the table the record belongs to.").nullable().optional(),
|
|
14
|
+
createdAt: z.string().describe("The timestamp when the record was created (ISO 8601 format).").nullable().optional(),
|
|
15
|
+
updatedAt: z.string().describe("The timestamp when the record was last updated (ISO 8601 format).").nullable().optional()
|
|
16
|
+
}).describe("Record data structure returned by the API.");
|
|
17
|
+
const softrUpdateRecord = action("SOFTR_UPDATE_RECORD", {
|
|
18
|
+
slug: "softr-update-record",
|
|
19
|
+
name: "Update a record",
|
|
20
|
+
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.",
|
|
21
|
+
input: SoftrUpdateRecordInput,
|
|
22
|
+
output: z.object({ data: SoftrUpdateRecord_RecordDataSchema.nullable().optional() }).describe("Response model containing the updated record data.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { softrUpdateRecord };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=update-record.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-record.mjs","names":[],"sources":["../../src/actions/update-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateRecordInput: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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,yBAAuC,EAAE,OAAO;CAC3D,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6OAA6O;CAChS,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAKxD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmD,EAAE,OAAO,EAC5D,MAAM,mCAAmC,SAAS,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-table-field.ts
|
|
4
|
+
const SoftrUpdateTableFieldInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("The new name of the field. If not provided, the field name remains unchanged.").optional(),
|
|
6
|
+
type: zod.z.enum([
|
|
7
|
+
"SINGLE_LINE_TEXT",
|
|
8
|
+
"CHECKBOX",
|
|
9
|
+
"CURRENCY",
|
|
10
|
+
"DATETIME",
|
|
11
|
+
"DURATION",
|
|
12
|
+
"EMAIL",
|
|
13
|
+
"SELECT",
|
|
14
|
+
"NUMBER",
|
|
15
|
+
"ATTACHMENT",
|
|
16
|
+
"RATING",
|
|
17
|
+
"LINKED_RECORD",
|
|
18
|
+
"LONG_TEXT",
|
|
19
|
+
"URL",
|
|
20
|
+
"PERCENT",
|
|
21
|
+
"BUTTON",
|
|
22
|
+
"PROGRESS",
|
|
23
|
+
"PHONE",
|
|
24
|
+
"DATE_RANGE",
|
|
25
|
+
"ADDRESS",
|
|
26
|
+
"TIME",
|
|
27
|
+
"LOOKUP",
|
|
28
|
+
"ROLLUP",
|
|
29
|
+
"FORMULA",
|
|
30
|
+
"COUNT",
|
|
31
|
+
"CREATED_AT",
|
|
32
|
+
"UPDATED_AT",
|
|
33
|
+
"CREATED_BY",
|
|
34
|
+
"UPDATED_BY",
|
|
35
|
+
"AUTONUMBER",
|
|
36
|
+
"RECORD_ID",
|
|
37
|
+
"USER"
|
|
38
|
+
]).describe("The field type. Must be provided even if not changing the type. Common types: SINGLE_LINE_TEXT (text), EMAIL (email validation), NUMBER (numeric), CHECKBOX (boolean), SELECT (dropdown), LONG_TEXT (multi-line text)."),
|
|
39
|
+
options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration options specific to the field type. For SINGLE_LINE_TEXT: {minLength: 0, maxLength: 1024}. For NUMBER: {precision: 2}. For SELECT: {choices: ['Option1', 'Option2']}. Structure varies by field type."),
|
|
40
|
+
field_id: zod.z.string().describe("The unique identifier of the field to update."),
|
|
41
|
+
table_id: zod.z.string().describe("The unique identifier of the table."),
|
|
42
|
+
database_id: zod.z.string().describe("The unique identifier of the database.")
|
|
43
|
+
}).describe("Request model for updating an existing field in a Softr table.");
|
|
44
|
+
const SoftrUpdateTableFieldOutput = zod.z.object({
|
|
45
|
+
id: zod.z.string().describe("The unique identifier of the updated field.").nullable().optional(),
|
|
46
|
+
name: zod.z.string().describe("The name of the updated field.").nullable().optional(),
|
|
47
|
+
type: zod.z.string().describe("The type of the field.").nullable().optional(),
|
|
48
|
+
locked: zod.z.boolean().describe("Whether the field is locked.").nullable().optional(),
|
|
49
|
+
options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration options specific to the field type.").nullable().optional(),
|
|
50
|
+
readonly: zod.z.boolean().describe("Whether the field is read-only.").nullable().optional(),
|
|
51
|
+
required: zod.z.boolean().describe("Whether the field is required.").nullable().optional(),
|
|
52
|
+
createdAt: zod.z.string().describe("Timestamp when the field was created.").nullable().optional(),
|
|
53
|
+
updatedAt: zod.z.string().describe("Timestamp when the field was last updated.").nullable().optional(),
|
|
54
|
+
defaultValue: zod.z.unknown().describe("The default value for the field.").nullable().optional(),
|
|
55
|
+
allowMultipleEntries: zod.z.boolean().describe("Whether the field allows multiple entries.").nullable().optional()
|
|
56
|
+
}).describe("Response model for the updated table field.");
|
|
57
|
+
const softrUpdateTableField = require_action.action("SOFTR_UPDATE_TABLE_FIELD", {
|
|
58
|
+
slug: "softr-update-table-field",
|
|
59
|
+
name: "Update table field",
|
|
60
|
+
description: "Updates an existing field in a Softr table. Use when you need to modify a field's name, type, or configuration options. Note: The API requires both 'type' and 'options' fields even if only updating the name.",
|
|
61
|
+
input: SoftrUpdateTableFieldInput,
|
|
62
|
+
output: SoftrUpdateTableFieldOutput
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
exports.softrUpdateTableField = softrUpdateTableField;
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=update-table-field.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-table-field.cjs","names":["z","action"],"sources":["../../src/actions/update-table-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateTableFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The new name of the field. If not provided, the field name remains unchanged.\").optional(),\n type: 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(\"The field type. Must be provided even if not changing the type. Common types: SINGLE_LINE_TEXT (text), EMAIL (email validation), NUMBER (numeric), CHECKBOX (boolean), SELECT (dropdown), LONG_TEXT (multi-line text).\"),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options specific to the field type. For SINGLE_LINE_TEXT: {minLength: 0, maxLength: 1024}. For NUMBER: {precision: 2}. For SELECT: {choices: ['Option1', 'Option2']}. Structure varies by field type.\"),\n field_id: z.string().describe(\"The unique identifier of the field to update.\"),\n table_id: z.string().describe(\"The unique identifier of the table.\"),\n database_id: z.string().describe(\"The unique identifier of the database.\"),\n}).describe(\"Request model for updating an existing field in a Softr table.\");\nexport const SoftrUpdateTableFieldOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the updated field.\").nullable().optional(),\n name: z.string().describe(\"The name of the updated field.\").nullable().optional(),\n type: z.string().describe(\"The type of the field.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the field is locked.\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options specific to the field type.\").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.unknown().describe(\"The default value for the field.\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether the field allows multiple entries.\").nullable().optional(),\n}).describe(\"Response model for the updated table field.\");\n\nexport const softrUpdateTableField = action(\"SOFTR_UPDATE_TABLE_FIELD\", {\n slug: \"softr-update-table-field\",\n name: \"Update table field\",\n description: \"Updates an existing field in a Softr table. Use when you need to modify a field's name, type, or configuration options. Note: The API requires both 'type' and 'options' fields even if only updating the name.\",\n input: SoftrUpdateTableFieldInput,\n output: SoftrUpdateTableFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAoB;EAAY;EAAY;EAAY;EAAY;EAAS;EAAU;EAAU;EAAc;EAAU;EAAiB;EAAa;EAAO;EAAW;EAAU;EAAY;EAAS;EAAc;EAAW;EAAQ;EAAU;EAAU;EAAW;EAAS;EAAc;EAAc;EAAc;EAAc;EAAc;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,wNAAwN;CAC5lB,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qNAAqN;CACzQ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC3E,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,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,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-table-field.d.ts
|
|
4
|
+
declare const SoftrUpdateTableFieldInput: z.ZodTypeAny;
|
|
5
|
+
declare const SoftrUpdateTableFieldOutput: z.ZodTypeAny;
|
|
6
|
+
declare const softrUpdateTableField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { softrUpdateTableField };
|
|
9
|
+
//# sourceMappingURL=update-table-field.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-table-field.d.cts","names":[],"sources":["../../src/actions/update-table-field.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAOkC;AAAA,cAChE,2BAAA,EAA6B,CAAA,CAAE,UAYc;AAAA,cAE7C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-table-field.d.ts
|
|
4
|
+
declare const SoftrUpdateTableFieldInput: z.ZodTypeAny;
|
|
5
|
+
declare const SoftrUpdateTableFieldOutput: z.ZodTypeAny;
|
|
6
|
+
declare const softrUpdateTableField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { softrUpdateTableField };
|
|
9
|
+
//# sourceMappingURL=update-table-field.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-table-field.d.mts","names":[],"sources":["../../src/actions/update-table-field.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAOkC;AAAA,cAChE,2BAAA,EAA6B,CAAA,CAAE,UAYc;AAAA,cAE7C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const softrUpdateTableField = action("SOFTR_UPDATE_TABLE_FIELD", {
|
|
4
|
+
slug: "softr-update-table-field",
|
|
5
|
+
name: "Update table field",
|
|
6
|
+
description: "Updates an existing field in a Softr table. Use when you need to modify a field's name, type, or configuration options. Note: The API requires both 'type' and 'options' fields even if only updating the name.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
name: z.string().describe("The new name of the field. If not provided, the field name remains unchanged.").optional(),
|
|
9
|
+
type: z.enum([
|
|
10
|
+
"SINGLE_LINE_TEXT",
|
|
11
|
+
"CHECKBOX",
|
|
12
|
+
"CURRENCY",
|
|
13
|
+
"DATETIME",
|
|
14
|
+
"DURATION",
|
|
15
|
+
"EMAIL",
|
|
16
|
+
"SELECT",
|
|
17
|
+
"NUMBER",
|
|
18
|
+
"ATTACHMENT",
|
|
19
|
+
"RATING",
|
|
20
|
+
"LINKED_RECORD",
|
|
21
|
+
"LONG_TEXT",
|
|
22
|
+
"URL",
|
|
23
|
+
"PERCENT",
|
|
24
|
+
"BUTTON",
|
|
25
|
+
"PROGRESS",
|
|
26
|
+
"PHONE",
|
|
27
|
+
"DATE_RANGE",
|
|
28
|
+
"ADDRESS",
|
|
29
|
+
"TIME",
|
|
30
|
+
"LOOKUP",
|
|
31
|
+
"ROLLUP",
|
|
32
|
+
"FORMULA",
|
|
33
|
+
"COUNT",
|
|
34
|
+
"CREATED_AT",
|
|
35
|
+
"UPDATED_AT",
|
|
36
|
+
"CREATED_BY",
|
|
37
|
+
"UPDATED_BY",
|
|
38
|
+
"AUTONUMBER",
|
|
39
|
+
"RECORD_ID",
|
|
40
|
+
"USER"
|
|
41
|
+
]).describe("The field type. Must be provided even if not changing the type. Common types: SINGLE_LINE_TEXT (text), EMAIL (email validation), NUMBER (numeric), CHECKBOX (boolean), SELECT (dropdown), LONG_TEXT (multi-line text)."),
|
|
42
|
+
options: z.record(z.string(), z.unknown()).describe("Configuration options specific to the field type. For SINGLE_LINE_TEXT: {minLength: 0, maxLength: 1024}. For NUMBER: {precision: 2}. For SELECT: {choices: ['Option1', 'Option2']}. Structure varies by field type."),
|
|
43
|
+
field_id: z.string().describe("The unique identifier of the field to update."),
|
|
44
|
+
table_id: z.string().describe("The unique identifier of the table."),
|
|
45
|
+
database_id: z.string().describe("The unique identifier of the database.")
|
|
46
|
+
}).describe("Request model for updating an existing field in a Softr table."),
|
|
47
|
+
output: z.object({
|
|
48
|
+
id: z.string().describe("The unique identifier of the updated field.").nullable().optional(),
|
|
49
|
+
name: z.string().describe("The name of the updated field.").nullable().optional(),
|
|
50
|
+
type: z.string().describe("The type of the field.").nullable().optional(),
|
|
51
|
+
locked: z.boolean().describe("Whether the field is locked.").nullable().optional(),
|
|
52
|
+
options: z.record(z.string(), z.unknown()).describe("Configuration options specific to the field type.").nullable().optional(),
|
|
53
|
+
readonly: z.boolean().describe("Whether the field is read-only.").nullable().optional(),
|
|
54
|
+
required: z.boolean().describe("Whether the field is required.").nullable().optional(),
|
|
55
|
+
createdAt: z.string().describe("Timestamp when the field was created.").nullable().optional(),
|
|
56
|
+
updatedAt: z.string().describe("Timestamp when the field was last updated.").nullable().optional(),
|
|
57
|
+
defaultValue: z.unknown().describe("The default value for the field.").nullable().optional(),
|
|
58
|
+
allowMultipleEntries: z.boolean().describe("Whether the field allows multiple entries.").nullable().optional()
|
|
59
|
+
}).describe("Response model for the updated table field.")
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { softrUpdateTableField };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=update-table-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-table-field.mjs","names":[],"sources":["../../src/actions/update-table-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateTableFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The new name of the field. If not provided, the field name remains unchanged.\").optional(),\n type: 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(\"The field type. Must be provided even if not changing the type. Common types: SINGLE_LINE_TEXT (text), EMAIL (email validation), NUMBER (numeric), CHECKBOX (boolean), SELECT (dropdown), LONG_TEXT (multi-line text).\"),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options specific to the field type. For SINGLE_LINE_TEXT: {minLength: 0, maxLength: 1024}. For NUMBER: {precision: 2}. For SELECT: {choices: ['Option1', 'Option2']}. Structure varies by field type.\"),\n field_id: z.string().describe(\"The unique identifier of the field to update.\"),\n table_id: z.string().describe(\"The unique identifier of the table.\"),\n database_id: z.string().describe(\"The unique identifier of the database.\"),\n}).describe(\"Request model for updating an existing field in a Softr table.\");\nexport const SoftrUpdateTableFieldOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the updated field.\").nullable().optional(),\n name: z.string().describe(\"The name of the updated field.\").nullable().optional(),\n type: z.string().describe(\"The type of the field.\").nullable().optional(),\n locked: z.boolean().describe(\"Whether the field is locked.\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options specific to the field type.\").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.unknown().describe(\"The default value for the field.\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether the field allows multiple entries.\").nullable().optional(),\n}).describe(\"Response model for the updated table field.\");\n\nexport const softrUpdateTableField = action(\"SOFTR_UPDATE_TABLE_FIELD\", {\n slug: \"softr-update-table-field\",\n name: \"Update table field\",\n description: \"Updates an existing field in a Softr table. Use when you need to modify a field's name, type, or configuration options. Note: The API requires both 'type' and 'options' fields even if only updating the name.\",\n input: SoftrUpdateTableFieldInput,\n output: SoftrUpdateTableFieldOutput,\n});\n"],"mappings":";;AA0BA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACpH,MAAM,EAAE,KAAK;GAAC;GAAoB;GAAY;GAAY;GAAY;GAAY;GAAS;GAAU;GAAU;GAAc;GAAU;GAAiB;GAAa;GAAO;GAAW;GAAU;GAAY;GAAS;GAAc;GAAW;GAAQ;GAAU;GAAU;GAAW;GAAS;GAAc;GAAc;GAAc;GAAc;GAAc;GAAa;EAAM,CAAC,CAAC,CAAC,SAAS,wNAAwN;EAC5lB,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qNAAqN;EACzQ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACnE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC3E,CAAC,CAAC,CAAC,SAAS,gEAmBH;CACP,QAnBuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-table.ts
|
|
4
|
+
const SoftrUpdateTableInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("The name of the table (required by API)"),
|
|
6
|
+
table_id: zod.z.string().describe("The unique identifier of the table"),
|
|
7
|
+
database_id: zod.z.string().describe("The unique identifier of the database"),
|
|
8
|
+
description: zod.z.string().describe("The new description of the table").optional()
|
|
9
|
+
});
|
|
10
|
+
const SoftrUpdateTable_TableFieldOptionsSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Type-specific configuration for table fields");
|
|
11
|
+
const SoftrUpdateTable_TableFieldSchema = zod.z.object({
|
|
12
|
+
id: zod.z.string().describe("Field identifier"),
|
|
13
|
+
name: zod.z.string().describe("Field name"),
|
|
14
|
+
type: zod.z.string().describe("Field type (e.g., SINGLE_LINE_TEXT, CHECKBOX, EMAIL, etc.)"),
|
|
15
|
+
locked: zod.z.boolean().describe("Whether field is locked").nullable().optional(),
|
|
16
|
+
options: SoftrUpdateTable_TableFieldOptionsSchema.nullable().optional(),
|
|
17
|
+
readonly: zod.z.boolean().describe("Whether field is read-only").nullable().optional(),
|
|
18
|
+
required: zod.z.boolean().describe("Whether field is required").nullable().optional(),
|
|
19
|
+
createdAt: zod.z.string().describe("Field creation timestamp").nullable().optional(),
|
|
20
|
+
updatedAt: zod.z.string().describe("Field update timestamp").nullable().optional(),
|
|
21
|
+
defaultValue: zod.z.string().describe("Default value for field").nullable().optional(),
|
|
22
|
+
allowMultipleEntries: zod.z.boolean().describe("Whether multiple entries are allowed").nullable().optional()
|
|
23
|
+
});
|
|
24
|
+
const SoftrUpdateTable_TableSchema = zod.z.object({
|
|
25
|
+
id: zod.z.string().describe("Table identifier"),
|
|
26
|
+
name: zod.z.string().describe("Table name"),
|
|
27
|
+
fields: zod.z.array(SoftrUpdateTable_TableFieldSchema).describe("Array of table fields"),
|
|
28
|
+
createdAt: zod.z.string().describe("Creation timestamp"),
|
|
29
|
+
updatedAt: zod.z.string().describe("Last update timestamp"),
|
|
30
|
+
description: zod.z.string().describe("Table description").nullable().optional(),
|
|
31
|
+
defaultViewId: zod.z.string().describe("ID of default view"),
|
|
32
|
+
primaryFieldId: zod.z.string().describe("ID of primary field")
|
|
33
|
+
});
|
|
34
|
+
const SoftrUpdateTableOutput = zod.z.object({ data: SoftrUpdateTable_TableSchema.nullable() });
|
|
35
|
+
const softrUpdateTable = require_action.action("SOFTR_UPDATE_TABLE", {
|
|
36
|
+
slug: "softr-update-table",
|
|
37
|
+
name: "Update Table",
|
|
38
|
+
description: "Tool to update a table's name and/or description in Softr Database. Use when you need to modify table metadata. To modify fields, use the field-specific endpoints instead.",
|
|
39
|
+
input: SoftrUpdateTableInput,
|
|
40
|
+
output: SoftrUpdateTableOutput
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.softrUpdateTable = softrUpdateTable;
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=update-table.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-table.cjs","names":["z","action"],"sources":["../../src/actions/update-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateTableInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the table (required by API)\"),\n table_id: z.string().describe(\"The unique identifier of the table\"),\n database_id: z.string().describe(\"The unique identifier of the database\"),\n description: z.string().describe(\"The new description of the table\").optional(),\n});\nconst SoftrUpdateTable_TableFieldOptionsSchema: z.ZodTypeAny = z.record(z.string(), z.unknown()).describe(\"Type-specific configuration for table fields\");\nconst SoftrUpdateTable_TableFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Field identifier\"),\n name: z.string().describe(\"Field name\"),\n type: z.string().describe(\"Field type (e.g., SINGLE_LINE_TEXT, CHECKBOX, EMAIL, etc.)\"),\n locked: z.boolean().describe(\"Whether field is locked\").nullable().optional(),\n options: SoftrUpdateTable_TableFieldOptionsSchema.nullable().optional(),\n readonly: z.boolean().describe(\"Whether field is read-only\").nullable().optional(),\n required: z.boolean().describe(\"Whether field is required\").nullable().optional(),\n createdAt: z.string().describe(\"Field creation timestamp\").nullable().optional(),\n updatedAt: z.string().describe(\"Field update timestamp\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for field\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether multiple entries are allowed\").nullable().optional(),\n});\nconst SoftrUpdateTable_TableSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Table identifier\"),\n name: z.string().describe(\"Table name\"),\n fields: z.array(SoftrUpdateTable_TableFieldSchema).describe(\"Array of table fields\"),\n createdAt: z.string().describe(\"Creation timestamp\"),\n updatedAt: z.string().describe(\"Last update timestamp\"),\n description: z.string().describe(\"Table description\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of default view\"),\n primaryFieldId: z.string().describe(\"ID of primary field\"),\n});\nexport const SoftrUpdateTableOutput: z.ZodTypeAny = z.object({\n data: SoftrUpdateTable_TableSchema.nullable(),\n});\n\nexport const softrUpdateTable = action(\"SOFTR_UPDATE_TABLE\", {\n slug: \"softr-update-table\",\n name: \"Update Table\",\n description: \"Tool to update a table's name and/or description in Softr Database. Use when you need to modify table metadata. To modify fields, use the field-specific endpoints instead.\",\n input: SoftrUpdateTableInput,\n output: SoftrUpdateTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAChF,CAAC;AACD,MAAM,2CAAyDA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AACxJ,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACtF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,SAAS,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC;AACD,MAAM,+BAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,QAAQA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uBAAuB;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACtD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACvD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AAC3D,CAAC;AACD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAM,6BAA6B,SAAS,EAC9C,CAAC;AAED,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-table.d.ts
|
|
4
|
+
declare const SoftrUpdateTableInput: z.ZodTypeAny;
|
|
5
|
+
declare const SoftrUpdateTableOutput: z.ZodTypeAny;
|
|
6
|
+
declare const softrUpdateTable: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { softrUpdateTable };
|
|
9
|
+
//# sourceMappingURL=update-table.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-table.d.cts","names":[],"sources":["../../src/actions/update-table.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAKpC;AAAA,cAyBW,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-table.d.ts
|
|
4
|
+
declare const SoftrUpdateTableInput: z.ZodTypeAny;
|
|
5
|
+
declare const SoftrUpdateTableOutput: z.ZodTypeAny;
|
|
6
|
+
declare const softrUpdateTable: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { softrUpdateTable };
|
|
9
|
+
//# sourceMappingURL=update-table.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-table.d.mts","names":[],"sources":["../../src/actions/update-table.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAKpC;AAAA,cAyBW,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-table.ts
|
|
4
|
+
const SoftrUpdateTableInput = z.object({
|
|
5
|
+
name: z.string().describe("The name of the table (required by API)"),
|
|
6
|
+
table_id: z.string().describe("The unique identifier of the table"),
|
|
7
|
+
database_id: z.string().describe("The unique identifier of the database"),
|
|
8
|
+
description: z.string().describe("The new description of the table").optional()
|
|
9
|
+
});
|
|
10
|
+
const SoftrUpdateTable_TableFieldOptionsSchema = z.record(z.string(), z.unknown()).describe("Type-specific configuration for table fields");
|
|
11
|
+
const SoftrUpdateTable_TableFieldSchema = z.object({
|
|
12
|
+
id: z.string().describe("Field identifier"),
|
|
13
|
+
name: z.string().describe("Field name"),
|
|
14
|
+
type: z.string().describe("Field type (e.g., SINGLE_LINE_TEXT, CHECKBOX, EMAIL, etc.)"),
|
|
15
|
+
locked: z.boolean().describe("Whether field is locked").nullable().optional(),
|
|
16
|
+
options: SoftrUpdateTable_TableFieldOptionsSchema.nullable().optional(),
|
|
17
|
+
readonly: z.boolean().describe("Whether field is read-only").nullable().optional(),
|
|
18
|
+
required: z.boolean().describe("Whether field is required").nullable().optional(),
|
|
19
|
+
createdAt: z.string().describe("Field creation timestamp").nullable().optional(),
|
|
20
|
+
updatedAt: z.string().describe("Field update timestamp").nullable().optional(),
|
|
21
|
+
defaultValue: z.string().describe("Default value for field").nullable().optional(),
|
|
22
|
+
allowMultipleEntries: z.boolean().describe("Whether multiple entries are allowed").nullable().optional()
|
|
23
|
+
});
|
|
24
|
+
const SoftrUpdateTable_TableSchema = z.object({
|
|
25
|
+
id: z.string().describe("Table identifier"),
|
|
26
|
+
name: z.string().describe("Table name"),
|
|
27
|
+
fields: z.array(SoftrUpdateTable_TableFieldSchema).describe("Array of table fields"),
|
|
28
|
+
createdAt: z.string().describe("Creation timestamp"),
|
|
29
|
+
updatedAt: z.string().describe("Last update timestamp"),
|
|
30
|
+
description: z.string().describe("Table description").nullable().optional(),
|
|
31
|
+
defaultViewId: z.string().describe("ID of default view"),
|
|
32
|
+
primaryFieldId: z.string().describe("ID of primary field")
|
|
33
|
+
});
|
|
34
|
+
const softrUpdateTable = action("SOFTR_UPDATE_TABLE", {
|
|
35
|
+
slug: "softr-update-table",
|
|
36
|
+
name: "Update Table",
|
|
37
|
+
description: "Tool to update a table's name and/or description in Softr Database. Use when you need to modify table metadata. To modify fields, use the field-specific endpoints instead.",
|
|
38
|
+
input: SoftrUpdateTableInput,
|
|
39
|
+
output: z.object({ data: SoftrUpdateTable_TableSchema.nullable() })
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { softrUpdateTable };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=update-table.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-table.mjs","names":[],"sources":["../../src/actions/update-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateTableInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the table (required by API)\"),\n table_id: z.string().describe(\"The unique identifier of the table\"),\n database_id: z.string().describe(\"The unique identifier of the database\"),\n description: z.string().describe(\"The new description of the table\").optional(),\n});\nconst SoftrUpdateTable_TableFieldOptionsSchema: z.ZodTypeAny = z.record(z.string(), z.unknown()).describe(\"Type-specific configuration for table fields\");\nconst SoftrUpdateTable_TableFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Field identifier\"),\n name: z.string().describe(\"Field name\"),\n type: z.string().describe(\"Field type (e.g., SINGLE_LINE_TEXT, CHECKBOX, EMAIL, etc.)\"),\n locked: z.boolean().describe(\"Whether field is locked\").nullable().optional(),\n options: SoftrUpdateTable_TableFieldOptionsSchema.nullable().optional(),\n readonly: z.boolean().describe(\"Whether field is read-only\").nullable().optional(),\n required: z.boolean().describe(\"Whether field is required\").nullable().optional(),\n createdAt: z.string().describe(\"Field creation timestamp\").nullable().optional(),\n updatedAt: z.string().describe(\"Field update timestamp\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for field\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether multiple entries are allowed\").nullable().optional(),\n});\nconst SoftrUpdateTable_TableSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Table identifier\"),\n name: z.string().describe(\"Table name\"),\n fields: z.array(SoftrUpdateTable_TableFieldSchema).describe(\"Array of table fields\"),\n createdAt: z.string().describe(\"Creation timestamp\"),\n updatedAt: z.string().describe(\"Last update timestamp\"),\n description: z.string().describe(\"Table description\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of default view\"),\n primaryFieldId: z.string().describe(\"ID of primary field\"),\n});\nexport const SoftrUpdateTableOutput: z.ZodTypeAny = z.object({\n data: SoftrUpdateTable_TableSchema.nullable(),\n});\n\nexport const softrUpdateTable = action(\"SOFTR_UPDATE_TABLE\", {\n slug: \"softr-update-table\",\n name: \"Update Table\",\n description: \"Tool to update a table's name and/or description in Softr Database. Use when you need to modify table metadata. To modify fields, use the field-specific endpoints instead.\",\n input: SoftrUpdateTableInput,\n output: SoftrUpdateTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAChF,CAAC;AACD,MAAM,2CAAyD,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AACxJ,MAAM,oCAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACtF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,SAAS,yCAAyC,SAAS,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC;AACD,MAAM,+BAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,QAAQ,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uBAAuB;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACnD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACtD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACvD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AAC3D,CAAC;AAKD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,6BAA6B,SAAS,EAC9C,CAOU;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const softr = defineApp({\n slug: \"softr\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,SAAA,uCAAA,CAAA,CAAA,UAAA,CAAkB;CAC7B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,KAAA,6BAAK,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,KAAA,6BAAK,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const softr = defineApp({\n slug: \"softr\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,QAAQ,UAAU;CAC7B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const softrCatalog = {
|
|
4
|
+
"slug": "softr",
|
|
5
|
+
"name": "Softr",
|
|
6
|
+
"description": "Build custom apps and portals from Airtable in minutes with no-code. Softr provides user management and database APIs for building client portals, internal tools, and web applications.",
|
|
7
|
+
"category": "App Builder",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/softr",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.softrCatalog = softrCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const softrCatalog = {\n \"slug\": \"softr\",\n \"name\": \"Softr\",\n \"description\": \"Build custom apps and portals from Airtable in minutes with no-code. Softr provides user management and database APIs for building client portals, internal tools, and web applications.\",\n \"category\": \"App Builder\",\n \"logo\": \"https://logos.composio.dev/api/softr\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const softrCatalog: {
|
|
4
|
+
readonly slug: "softr";
|
|
5
|
+
readonly name: "Softr";
|
|
6
|
+
readonly description: "Build custom apps and portals from Airtable in minutes with no-code. Softr provides user management and database APIs for building client portals, internal tools, and web applications.";
|
|
7
|
+
readonly category: "App Builder";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/softr";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { softrCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,YAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const softrCatalog: {
|
|
4
|
+
readonly slug: "softr";
|
|
5
|
+
readonly name: "Softr";
|
|
6
|
+
readonly description: "Build custom apps and portals from Airtable in minutes with no-code. Softr provides user management and database APIs for building client portals, internal tools, and web applications.";
|
|
7
|
+
readonly category: "App Builder";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/softr";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { softrCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,YAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const softrCatalog = {
|
|
4
|
+
"slug": "softr",
|
|
5
|
+
"name": "Softr",
|
|
6
|
+
"description": "Build custom apps and portals from Airtable in minutes with no-code. Softr provides user management and database APIs for building client portals, internal tools, and web applications.",
|
|
7
|
+
"category": "App Builder",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/softr",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { softrCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const softrCatalog = {\n \"slug\": \"softr\",\n \"name\": \"Softr\",\n \"description\": \"Build custom apps and portals from Airtable in minutes with no-code. Softr provides user management and database APIs for building client portals, internal tools, and web applications.\",\n \"category\": \"App Builder\",\n \"logo\": \"https://logos.composio.dev/api/softr\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "softr";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSoftrTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeSoftrTool = executeSoftrTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"softr\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSoftrTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,iBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "softr";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSoftrTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeSoftrTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"softr\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSoftrTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,iBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|