@keystrokehq/softr 0.1.5 → 0.1.6

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.
Files changed (181) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-database.cjs +1 -0
  4. package/dist/actions/create-database.cjs.map +1 -1
  5. package/dist/actions/create-database.d.cts +3 -19
  6. package/dist/actions/create-database.d.cts.map +1 -1
  7. package/dist/actions/create-database.d.mts +3 -19
  8. package/dist/actions/create-database.d.mts.map +1 -1
  9. package/dist/actions/create-database.mjs +1 -0
  10. package/dist/actions/create-database.mjs.map +1 -1
  11. package/dist/actions/create-record.cjs +1 -0
  12. package/dist/actions/create-record.cjs.map +1 -1
  13. package/dist/actions/create-record.d.cts +3 -19
  14. package/dist/actions/create-record.d.cts.map +1 -1
  15. package/dist/actions/create-record.d.mts +3 -19
  16. package/dist/actions/create-record.d.mts.map +1 -1
  17. package/dist/actions/create-record.mjs +1 -0
  18. package/dist/actions/create-record.mjs.map +1 -1
  19. package/dist/actions/create-table-field.cjs +1 -0
  20. package/dist/actions/create-table-field.cjs.map +1 -1
  21. package/dist/actions/create-table-field.d.cts +3 -21
  22. package/dist/actions/create-table-field.d.cts.map +1 -1
  23. package/dist/actions/create-table-field.d.mts +3 -21
  24. package/dist/actions/create-table-field.d.mts.map +1 -1
  25. package/dist/actions/create-table-field.mjs +1 -0
  26. package/dist/actions/create-table-field.mjs.map +1 -1
  27. package/dist/actions/create-table.cjs +1 -0
  28. package/dist/actions/create-table.cjs.map +1 -1
  29. package/dist/actions/create-table.d.cts +3 -26
  30. package/dist/actions/create-table.d.cts.map +1 -1
  31. package/dist/actions/create-table.d.mts +3 -26
  32. package/dist/actions/create-table.d.mts.map +1 -1
  33. package/dist/actions/create-table.mjs +1 -0
  34. package/dist/actions/create-table.mjs.map +1 -1
  35. package/dist/actions/delete-database.cjs +1 -0
  36. package/dist/actions/delete-database.cjs.map +1 -1
  37. package/dist/actions/delete-database.d.cts +3 -18
  38. package/dist/actions/delete-database.d.cts.map +1 -1
  39. package/dist/actions/delete-database.d.mts +3 -18
  40. package/dist/actions/delete-database.d.mts.map +1 -1
  41. package/dist/actions/delete-database.mjs +1 -0
  42. package/dist/actions/delete-database.mjs.map +1 -1
  43. package/dist/actions/delete-record.cjs +1 -0
  44. package/dist/actions/delete-record.cjs.map +1 -1
  45. package/dist/actions/delete-record.d.cts +3 -19
  46. package/dist/actions/delete-record.d.cts.map +1 -1
  47. package/dist/actions/delete-record.d.mts +3 -19
  48. package/dist/actions/delete-record.d.mts.map +1 -1
  49. package/dist/actions/delete-record.mjs +1 -0
  50. package/dist/actions/delete-record.mjs.map +1 -1
  51. package/dist/actions/delete-table-field.cjs +1 -0
  52. package/dist/actions/delete-table-field.cjs.map +1 -1
  53. package/dist/actions/delete-table-field.d.cts +3 -19
  54. package/dist/actions/delete-table-field.d.cts.map +1 -1
  55. package/dist/actions/delete-table-field.d.mts +3 -19
  56. package/dist/actions/delete-table-field.d.mts.map +1 -1
  57. package/dist/actions/delete-table-field.mjs +1 -0
  58. package/dist/actions/delete-table-field.mjs.map +1 -1
  59. package/dist/actions/delete-table.cjs +1 -0
  60. package/dist/actions/delete-table.cjs.map +1 -1
  61. package/dist/actions/delete-table.d.cts +3 -19
  62. package/dist/actions/delete-table.d.cts.map +1 -1
  63. package/dist/actions/delete-table.d.mts +3 -19
  64. package/dist/actions/delete-table.d.mts.map +1 -1
  65. package/dist/actions/delete-table.mjs +1 -0
  66. package/dist/actions/delete-table.mjs.map +1 -1
  67. package/dist/actions/get-database.cjs +1 -0
  68. package/dist/actions/get-database.cjs.map +1 -1
  69. package/dist/actions/get-database.d.cts +3 -17
  70. package/dist/actions/get-database.d.cts.map +1 -1
  71. package/dist/actions/get-database.d.mts +3 -17
  72. package/dist/actions/get-database.d.mts.map +1 -1
  73. package/dist/actions/get-database.mjs +1 -0
  74. package/dist/actions/get-database.mjs.map +1 -1
  75. package/dist/actions/get-databases.cjs +1 -0
  76. package/dist/actions/get-databases.cjs.map +1 -1
  77. package/dist/actions/get-databases.d.cts +3 -18
  78. package/dist/actions/get-databases.d.cts.map +1 -1
  79. package/dist/actions/get-databases.d.mts +3 -18
  80. package/dist/actions/get-databases.d.mts.map +1 -1
  81. package/dist/actions/get-databases.mjs +1 -0
  82. package/dist/actions/get-databases.mjs.map +1 -1
  83. package/dist/actions/get-record.cjs +1 -0
  84. package/dist/actions/get-record.cjs.map +1 -1
  85. package/dist/actions/get-record.d.cts +3 -19
  86. package/dist/actions/get-record.d.cts.map +1 -1
  87. package/dist/actions/get-record.d.mts +3 -19
  88. package/dist/actions/get-record.d.mts.map +1 -1
  89. package/dist/actions/get-record.mjs +1 -0
  90. package/dist/actions/get-record.mjs.map +1 -1
  91. package/dist/actions/get-records.cjs +1 -0
  92. package/dist/actions/get-records.cjs.map +1 -1
  93. package/dist/actions/get-records.d.cts +3 -20
  94. package/dist/actions/get-records.d.cts.map +1 -1
  95. package/dist/actions/get-records.d.mts +3 -20
  96. package/dist/actions/get-records.d.mts.map +1 -1
  97. package/dist/actions/get-records.mjs +1 -0
  98. package/dist/actions/get-records.mjs.map +1 -1
  99. package/dist/actions/get-table-field.cjs +1 -0
  100. package/dist/actions/get-table-field.cjs.map +1 -1
  101. package/dist/actions/get-table-field.d.cts +3 -19
  102. package/dist/actions/get-table-field.d.cts.map +1 -1
  103. package/dist/actions/get-table-field.d.mts +3 -19
  104. package/dist/actions/get-table-field.d.mts.map +1 -1
  105. package/dist/actions/get-table-field.mjs +1 -0
  106. package/dist/actions/get-table-field.mjs.map +1 -1
  107. package/dist/actions/get-table-views.cjs +1 -0
  108. package/dist/actions/get-table-views.cjs.map +1 -1
  109. package/dist/actions/get-table-views.d.cts +3 -18
  110. package/dist/actions/get-table-views.d.cts.map +1 -1
  111. package/dist/actions/get-table-views.d.mts +3 -18
  112. package/dist/actions/get-table-views.d.mts.map +1 -1
  113. package/dist/actions/get-table-views.mjs +1 -0
  114. package/dist/actions/get-table-views.mjs.map +1 -1
  115. package/dist/actions/get-table.cjs +1 -0
  116. package/dist/actions/get-table.cjs.map +1 -1
  117. package/dist/actions/get-table.d.cts +3 -18
  118. package/dist/actions/get-table.d.cts.map +1 -1
  119. package/dist/actions/get-table.d.mts +3 -18
  120. package/dist/actions/get-table.d.mts.map +1 -1
  121. package/dist/actions/get-table.mjs +1 -0
  122. package/dist/actions/get-table.mjs.map +1 -1
  123. package/dist/actions/get-tables.cjs +1 -0
  124. package/dist/actions/get-tables.cjs.map +1 -1
  125. package/dist/actions/get-tables.d.cts +3 -17
  126. package/dist/actions/get-tables.d.cts.map +1 -1
  127. package/dist/actions/get-tables.d.mts +3 -17
  128. package/dist/actions/get-tables.d.mts.map +1 -1
  129. package/dist/actions/get-tables.mjs +1 -0
  130. package/dist/actions/get-tables.mjs.map +1 -1
  131. package/dist/actions/search-records.cjs +1 -0
  132. package/dist/actions/search-records.cjs.map +1 -1
  133. package/dist/actions/search-records.d.cts +3 -23
  134. package/dist/actions/search-records.d.cts.map +1 -1
  135. package/dist/actions/search-records.d.mts +3 -23
  136. package/dist/actions/search-records.d.mts.map +1 -1
  137. package/dist/actions/search-records.mjs +1 -0
  138. package/dist/actions/search-records.mjs.map +1 -1
  139. package/dist/actions/update-database.cjs +1 -0
  140. package/dist/actions/update-database.cjs.map +1 -1
  141. package/dist/actions/update-database.d.cts +3 -19
  142. package/dist/actions/update-database.d.cts.map +1 -1
  143. package/dist/actions/update-database.d.mts +3 -19
  144. package/dist/actions/update-database.d.mts.map +1 -1
  145. package/dist/actions/update-database.mjs +1 -0
  146. package/dist/actions/update-database.mjs.map +1 -1
  147. package/dist/actions/update-record.cjs +1 -0
  148. package/dist/actions/update-record.cjs.map +1 -1
  149. package/dist/actions/update-record.d.cts +3 -20
  150. package/dist/actions/update-record.d.cts.map +1 -1
  151. package/dist/actions/update-record.d.mts +3 -20
  152. package/dist/actions/update-record.d.mts.map +1 -1
  153. package/dist/actions/update-record.mjs +1 -0
  154. package/dist/actions/update-record.mjs.map +1 -1
  155. package/dist/actions/update-table-field.cjs +1 -0
  156. package/dist/actions/update-table-field.cjs.map +1 -1
  157. package/dist/actions/update-table-field.d.cts +3 -22
  158. package/dist/actions/update-table-field.d.cts.map +1 -1
  159. package/dist/actions/update-table-field.d.mts +3 -22
  160. package/dist/actions/update-table-field.d.mts.map +1 -1
  161. package/dist/actions/update-table-field.mjs +1 -0
  162. package/dist/actions/update-table-field.mjs.map +1 -1
  163. package/dist/actions/update-table.cjs +1 -0
  164. package/dist/actions/update-table.cjs.map +1 -1
  165. package/dist/actions/update-table.d.cts +3 -20
  166. package/dist/actions/update-table.d.cts.map +1 -1
  167. package/dist/actions/update-table.d.mts +3 -20
  168. package/dist/actions/update-table.d.mts.map +1 -1
  169. package/dist/actions/update-table.mjs +1 -0
  170. package/dist/actions/update-table.mjs.map +1 -1
  171. package/dist/app.cjs +5 -4
  172. package/dist/app.cjs.map +1 -1
  173. package/dist/app.d.cts +4 -6
  174. package/dist/app.d.cts.map +1 -1
  175. package/dist/app.d.mts +4 -6
  176. package/dist/app.d.mts.map +1 -1
  177. package/dist/app.mjs +0 -1
  178. package/dist/app.mjs.map +1 -1
  179. package/dist/index.d.cts +1 -1
  180. package/dist/index.d.mts +1 -1
  181. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-record.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-record.cjs","names":["z","action"],"sources":["../../src/actions/update-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateRecordInput = z.object({\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their new values. Field IDs are unique identifiers for each column in the table (e.g., 'o0JWv'). The values can be strings, numbers, booleans, or other types depending on the field type in your Softr table schema.\"),\n table_id: z.string().describe(\"The unique identifier of the table containing the record.\"),\n record_id: z.string().describe(\"The unique identifier of the record to update.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for updating an existing record in a Softr table.\");\nconst SoftrUpdateRecord_RecordDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the record.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their values for this record.\").nullable().optional(),\n tableId: z.string().describe(\"The unique identifier of the table the record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"The timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n updatedAt: z.string().describe(\"The timestamp when the record was last updated (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Record data structure returned by the API.\");\nexport const SoftrUpdateRecordOutput = z.object({\n data: SoftrUpdateRecord_RecordDataSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated record data.\");\n\nexport const softrUpdateRecord = action(\"SOFTR_UPDATE_RECORD\", {\n slug: \"softr-update-record\",\n name: \"Update a record\",\n description: \"Tool to update an existing record's field values in a Softr table. Use when you need to modify specific fields of a record by providing the database ID, table ID, record ID, and the new field values.\",\n input: SoftrUpdateRecordInput,\n output: SoftrUpdateRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6OAA6O;CAChS,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,mCAAmC,SAAS,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-record.cjs","names":["z","action"],"sources":["../../src/actions/update-record.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrUpdateRecordInput = z.object({\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their new values. Field IDs are unique identifiers for each column in the table (e.g., 'o0JWv'). The values can be strings, numbers, booleans, or other types depending on the field type in your Softr table schema.\"),\n table_id: z.string().describe(\"The unique identifier of the table containing the record.\"),\n record_id: z.string().describe(\"The unique identifier of the record to update.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for updating an existing record in a Softr table.\");\nconst SoftrUpdateRecord_RecordDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the record.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their values for this record.\").nullable().optional(),\n tableId: z.string().describe(\"The unique identifier of the table the record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"The timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n updatedAt: z.string().describe(\"The timestamp when the record was last updated (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Record data structure returned by the API.\");\nexport const SoftrUpdateRecordOutput = z.object({\n data: SoftrUpdateRecord_RecordDataSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated record data.\");\n\nexport const softrUpdateRecord: AppAction<\n typeof SoftrUpdateRecordInput,\n typeof SoftrUpdateRecordOutput,\n typeof softr.credential\n> = 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":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6OAA6O;CAChS,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,mCAAmC,SAAS,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-record.d.ts
@@ -16,26 +18,7 @@ declare const SoftrUpdateRecordOutput: z.ZodObject<{
16
18
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, z.core.$loose>>>;
18
20
  }, z.core.$loose>;
19
- declare const softrUpdateRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- fields: Record<string, unknown>;
21
- table_id: string;
22
- record_id: string;
23
- database_id: string;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- generic_id: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- generic_id: z.ZodString;
38
- }, z.core.$strip>>]>;
21
+ declare const softrUpdateRecord: AppAction<typeof SoftrUpdateRecordInput, typeof SoftrUpdateRecordOutput, typeof softr.credential>;
39
22
  //#endregion
40
23
  export { softrUpdateRecord };
41
24
  //# sourceMappingURL=update-record.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-record.d.cts","names":[],"sources":["../../src/actions/update-record.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;cAatB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"update-record.d.cts","names":[],"sources":["../../src/actions/update-record.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;cAatB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-record.d.ts
@@ -16,26 +18,7 @@ declare const SoftrUpdateRecordOutput: z.ZodObject<{
16
18
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, z.core.$loose>>>;
18
20
  }, z.core.$loose>;
19
- declare const softrUpdateRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- fields: Record<string, unknown>;
21
- table_id: string;
22
- record_id: string;
23
- database_id: string;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- generic_id: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- generic_id: z.ZodString;
38
- }, z.core.$strip>>]>;
21
+ declare const softrUpdateRecord: AppAction<typeof SoftrUpdateRecordInput, typeof SoftrUpdateRecordOutput, typeof softr.credential>;
39
22
  //#endregion
40
23
  export { softrUpdateRecord };
41
24
  //# sourceMappingURL=update-record.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-record.d.mts","names":[],"sources":["../../src/actions/update-record.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;cAatB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"update-record.d.mts","names":[],"sources":["../../src/actions/update-record.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;cAatB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-record.ts
@@ -1 +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.object({\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their new values. Field IDs are unique identifiers for each column in the table (e.g., 'o0JWv'). The values can be strings, numbers, booleans, or other types depending on the field type in your Softr table schema.\"),\n table_id: z.string().describe(\"The unique identifier of the table containing the record.\"),\n record_id: z.string().describe(\"The unique identifier of the record to update.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for updating an existing record in a Softr table.\");\nconst SoftrUpdateRecord_RecordDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the record.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their values for this record.\").nullable().optional(),\n tableId: z.string().describe(\"The unique identifier of the table the record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"The timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n updatedAt: z.string().describe(\"The timestamp when the record was last updated (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Record data structure returned by the API.\");\nexport const SoftrUpdateRecordOutput = z.object({\n data: SoftrUpdateRecord_RecordDataSchema.nullable().optional(),\n}).passthrough().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,yBAAyB,EAAE,OAAO;CAC7C,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,qCAAqC,EAAE,OAAO;CAClD,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,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAKtE,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,MAAM,mCAAmC,SAAS,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-record.mjs","names":[],"sources":["../../src/actions/update-record.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrUpdateRecordInput = z.object({\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their new values. Field IDs are unique identifiers for each column in the table (e.g., 'o0JWv'). The values can be strings, numbers, booleans, or other types depending on the field type in your Softr table schema.\"),\n table_id: z.string().describe(\"The unique identifier of the table containing the record.\"),\n record_id: z.string().describe(\"The unique identifier of the record to update.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for updating an existing record in a Softr table.\");\nconst SoftrUpdateRecord_RecordDataSchema = z.object({\n id: z.string().describe(\"The unique identifier of the record.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"A map of field IDs to their values for this record.\").nullable().optional(),\n tableId: z.string().describe(\"The unique identifier of the table the record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"The timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n updatedAt: z.string().describe(\"The timestamp when the record was last updated (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Record data structure returned by the API.\");\nexport const SoftrUpdateRecordOutput = z.object({\n data: SoftrUpdateRecord_RecordDataSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated record data.\");\n\nexport const softrUpdateRecord: AppAction<\n typeof SoftrUpdateRecordInput,\n typeof SoftrUpdateRecordOutput,\n typeof softr.credential\n> = 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":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,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,qCAAqC,EAAE,OAAO;CAClD,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,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAKtE,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqC,EAAE,OAAO,EAC9C,MAAM,mCAAmC,SAAS,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-table-field.ts
@@ -1 +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.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.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}).passthrough().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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-table-field.cjs","names":["z","action"],"sources":["../../src/actions/update-table-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrUpdateTableFieldInput = 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.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}).passthrough().describe(\"Response model for the updated table field.\");\n\nexport const softrUpdateTableField: AppAction<\n typeof SoftrUpdateTableFieldInput,\n typeof SoftrUpdateTableFieldOutput,\n typeof softr.credential\n> = 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":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAA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
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-table-field.d.ts
@@ -54,28 +56,7 @@ declare const SoftrUpdateTableFieldOutput: z.ZodObject<{
54
56
  defaultValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
55
57
  allowMultipleEntries: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
56
58
  }, z.core.$loose>;
57
- declare const softrUpdateTableField: import("@keystrokehq/action").WorkflowActionDefinition<{
58
- type: "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";
59
- options: Record<string, unknown>;
60
- field_id: string;
61
- table_id: string;
62
- database_id: string;
63
- name?: string | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
65
- connectionId: z.ZodString;
66
- entityId: z.ZodString;
67
- instanceId: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- generic_api_key: z.ZodString;
70
- generic_id: z.ZodString;
71
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
72
- connectionId: z.ZodString;
73
- entityId: z.ZodString;
74
- instanceId: z.ZodString;
75
- }, z.core.$strip>, z.ZodObject<{
76
- generic_api_key: z.ZodString;
77
- generic_id: z.ZodString;
78
- }, z.core.$strip>>]>;
59
+ declare const softrUpdateTableField: AppAction<typeof SoftrUpdateTableFieldInput, typeof SoftrUpdateTableFieldOutput, typeof softr.credential>;
79
60
  //#endregion
80
61
  export { softrUpdateTableField };
81
62
  //# sourceMappingURL=update-table-field.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-table-field.d.cts","names":[],"sources":["../../src/actions/update-table-field.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"update-table-field.d.cts","names":[],"sources":["../../src/actions/update-table-field.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-table-field.d.ts
@@ -54,28 +56,7 @@ declare const SoftrUpdateTableFieldOutput: z.ZodObject<{
54
56
  defaultValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
55
57
  allowMultipleEntries: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
56
58
  }, z.core.$loose>;
57
- declare const softrUpdateTableField: import("@keystrokehq/action").WorkflowActionDefinition<{
58
- type: "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";
59
- options: Record<string, unknown>;
60
- field_id: string;
61
- table_id: string;
62
- database_id: string;
63
- name?: string | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
65
- connectionId: z.ZodString;
66
- entityId: z.ZodString;
67
- instanceId: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- generic_api_key: z.ZodString;
70
- generic_id: z.ZodString;
71
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
72
- connectionId: z.ZodString;
73
- entityId: z.ZodString;
74
- instanceId: z.ZodString;
75
- }, z.core.$strip>, z.ZodObject<{
76
- generic_api_key: z.ZodString;
77
- generic_id: z.ZodString;
78
- }, z.core.$strip>>]>;
59
+ declare const softrUpdateTableField: AppAction<typeof SoftrUpdateTableFieldInput, typeof SoftrUpdateTableFieldOutput, typeof softr.credential>;
79
60
  //#endregion
80
61
  export { softrUpdateTableField };
81
62
  //# sourceMappingURL=update-table-field.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-table-field.d.mts","names":[],"sources":["../../src/actions/update-table-field.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"update-table-field.d.mts","names":[],"sources":["../../src/actions/update-table-field.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQ1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const softrUpdateTableField = action("SOFTR_UPDATE_TABLE_FIELD", {
@@ -1 +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.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.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}).passthrough().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,OA1BwC,EAAE,OAAO;EACjD,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,SA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S;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-table-field.mjs","names":[],"sources":["../../src/actions/update-table-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrUpdateTableFieldInput = 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.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}).passthrough().describe(\"Response model for the updated table field.\");\n\nexport const softrUpdateTableField: AppAction<\n typeof SoftrUpdateTableFieldInput,\n typeof SoftrUpdateTableFieldOutput,\n typeof softr.credential\n> = 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":";;;AA4BA,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,EAAE,OAAO;EACjD,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,S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AS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-table.ts
@@ -1 +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.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.record(z.string(), z.unknown()).describe(\"Type-specific configuration for table fields\");\nconst SoftrUpdateTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Field identifier\").nullable(),\n name: z.string().describe(\"Field name\").nullable(),\n type: z.string().describe(\"Field type (e.g., SINGLE_LINE_TEXT, CHECKBOX, EMAIL, etc.)\").nullable(),\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}).passthrough();\nconst SoftrUpdateTable_TableSchema = z.object({\n id: z.string().describe(\"Table identifier\").nullable(),\n name: z.string().describe(\"Table name\").nullable(),\n fields: z.array(SoftrUpdateTable_TableFieldSchema).describe(\"Array of table fields\"),\n createdAt: z.string().describe(\"Creation timestamp\").nullable(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable(),\n description: z.string().describe(\"Table description\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of default view\").nullable(),\n primaryFieldId: z.string().describe(\"ID of primary field\").nullable(),\n}).passthrough();\nexport const SoftrUpdateTableOutput = z.object({\n data: SoftrUpdateTable_TableSchema.nullable(),\n}).passthrough();\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,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,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,2CAA2CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1I,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,SAAS,yCA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gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,6BAA6B,SAAS,EAC9C,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-table.cjs","names":["z","action"],"sources":["../../src/actions/update-table.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrUpdateTableInput = 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.record(z.string(), z.unknown()).describe(\"Type-specific configuration for table fields\");\nconst SoftrUpdateTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Field identifier\").nullable(),\n name: z.string().describe(\"Field name\").nullable(),\n type: z.string().describe(\"Field type (e.g., SINGLE_LINE_TEXT, CHECKBOX, EMAIL, etc.)\").nullable(),\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}).passthrough();\nconst SoftrUpdateTable_TableSchema = z.object({\n id: z.string().describe(\"Table identifier\").nullable(),\n name: z.string().describe(\"Table name\").nullable(),\n fields: z.array(SoftrUpdateTable_TableFieldSchema).describe(\"Array of table fields\"),\n createdAt: z.string().describe(\"Creation timestamp\").nullable(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable(),\n description: z.string().describe(\"Table description\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of default view\").nullable(),\n primaryFieldId: z.string().describe(\"ID of primary field\").nullable(),\n}).passthrough();\nexport const SoftrUpdateTableOutput = z.object({\n data: SoftrUpdateTable_TableSchema.nullable(),\n}).passthrough();\n\nexport const softrUpdateTable: AppAction<\n typeof SoftrUpdateTableInput,\n typeof SoftrUpdateTableOutput,\n typeof softr.credential\n> = 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":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,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,2CAA2CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1I,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,MAAMA,IA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AAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAClE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,6BAA6B,SAAS,EAC9C,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-table.d.ts
@@ -31,26 +33,7 @@ declare const SoftrUpdateTableOutput: z.ZodObject<{
31
33
  primaryFieldId: z.ZodNullable<z.ZodString>;
32
34
  }, z.core.$loose>>;
33
35
  }, z.core.$loose>;
34
- declare const softrUpdateTable: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- name: string;
36
- table_id: string;
37
- database_id: string;
38
- description?: string | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- generic_api_key: z.ZodString;
45
- generic_id: z.ZodString;
46
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
47
- connectionId: z.ZodString;
48
- entityId: z.ZodString;
49
- instanceId: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- generic_api_key: z.ZodString;
52
- generic_id: z.ZodString;
53
- }, z.core.$strip>>]>;
36
+ declare const softrUpdateTable: AppAction<typeof SoftrUpdateTableInput, typeof SoftrUpdateTableOutput, typeof softr.credential>;
54
37
  //#endregion
55
38
  export { softrUpdateTable };
56
39
  //# sourceMappingURL=update-table.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-table.d.cts","names":[],"sources":["../../src/actions/update-table.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;cA8BrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"update-table.d.cts","names":[],"sources":["../../src/actions/update-table.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;cA8BrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-table.d.ts
@@ -31,26 +33,7 @@ declare const SoftrUpdateTableOutput: z.ZodObject<{
31
33
  primaryFieldId: z.ZodNullable<z.ZodString>;
32
34
  }, z.core.$loose>>;
33
35
  }, z.core.$loose>;
34
- declare const softrUpdateTable: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- name: string;
36
- table_id: string;
37
- database_id: string;
38
- description?: string | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- generic_api_key: z.ZodString;
45
- generic_id: z.ZodString;
46
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
47
- connectionId: z.ZodString;
48
- entityId: z.ZodString;
49
- instanceId: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- generic_api_key: z.ZodString;
52
- generic_id: z.ZodString;
53
- }, z.core.$strip>>]>;
36
+ declare const softrUpdateTable: AppAction<typeof SoftrUpdateTableInput, typeof SoftrUpdateTableOutput, typeof softr.credential>;
54
37
  //#endregion
55
38
  export { softrUpdateTable };
56
39
  //# sourceMappingURL=update-table.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-table.d.mts","names":[],"sources":["../../src/actions/update-table.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;cA8BrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"update-table.d.mts","names":[],"sources":["../../src/actions/update-table.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;cA8BrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-table.ts
@@ -1 +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.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.record(z.string(), z.unknown()).describe(\"Type-specific configuration for table fields\");\nconst SoftrUpdateTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Field identifier\").nullable(),\n name: z.string().describe(\"Field name\").nullable(),\n type: z.string().describe(\"Field type (e.g., SINGLE_LINE_TEXT, CHECKBOX, EMAIL, etc.)\").nullable(),\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}).passthrough();\nconst SoftrUpdateTable_TableSchema = z.object({\n id: z.string().describe(\"Table identifier\").nullable(),\n name: z.string().describe(\"Table name\").nullable(),\n fields: z.array(SoftrUpdateTable_TableFieldSchema).describe(\"Array of table fields\"),\n createdAt: z.string().describe(\"Creation timestamp\").nullable(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable(),\n description: z.string().describe(\"Table description\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of default view\").nullable(),\n primaryFieldId: z.string().describe(\"ID of primary field\").nullable(),\n}).passthrough();\nexport const SoftrUpdateTableOutput = z.object({\n data: SoftrUpdateTable_TableSchema.nullable(),\n}).passthrough();\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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AsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+BAA+B,EAAE,OAAO;CAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,QAAQ,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uBAAuB;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAClE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,6BAA6B,SAAS,EAC9C,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"update-table.mjs","names":[],"sources":["../../src/actions/update-table.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrUpdateTableInput = 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.record(z.string(), z.unknown()).describe(\"Type-specific configuration for table fields\");\nconst SoftrUpdateTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Field identifier\").nullable(),\n name: z.string().describe(\"Field name\").nullable(),\n type: z.string().describe(\"Field type (e.g., SINGLE_LINE_TEXT, CHECKBOX, EMAIL, etc.)\").nullable(),\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}).passthrough();\nconst SoftrUpdateTable_TableSchema = z.object({\n id: z.string().describe(\"Table identifier\").nullable(),\n name: z.string().describe(\"Table name\").nullable(),\n fields: z.array(SoftrUpdateTable_TableFieldSchema).describe(\"Array of table fields\"),\n createdAt: z.string().describe(\"Creation timestamp\").nullable(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable(),\n description: z.string().describe(\"Table description\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of default view\").nullable(),\n primaryFieldId: z.string().describe(\"ID of primary field\").nullable(),\n}).passthrough();\nexport const SoftrUpdateTableOutput = z.object({\n data: SoftrUpdateTable_TableSchema.nullable(),\n}).passthrough();\n\nexport const softrUpdateTable: AppAction<\n typeof SoftrUpdateTableInput,\n typeof SoftrUpdateTableOutput,\n typeof softr.credential\n> = 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":";;;;AAMA,MAAa,wB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C,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+BAA+B,EAAE,OAAO;CAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,QAAQ,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,uBAAuB;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAClE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboC,EAAE,OAAO,EAC7C,MAAM,6BAA6B,SAAS,EAC9C,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,13 +1,14 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
2
  let zod = require("zod");
3
3
  //#region src/app.ts
4
+ const credential = {
5
+ generic_api_key: zod.z.string(),
6
+ generic_id: zod.z.string()
7
+ };
4
8
  const softr = (0, _keystrokehq_keystroke_app.defineApp)({
5
9
  slug: "softr",
6
10
  auth: "keystroke",
7
- credential: {
8
- generic_api_key: zod.z.string(),
9
- generic_id: zod.z.string()
10
- }
11
+ credential
11
12
  });
12
13
  //#endregion
13
14
  exports.softr = softr;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const softr = defineApp({\n slug: \"softr\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n generic_id: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,SAAA,GAAA,2BAAA,UAAA,CAAkB;CAC7B,MAAM;CACN,MAAM;CACN,YAAY;EACV,iBAAiBA,IAAAA,EAAE,OAAO;EAC1B,YAAYA,IAAAA,EAAE,OAAO;CACvB;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const softr: KeystrokeApp<\"softr\", typeof credential> = defineApp({\n slug: \"softr\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,YAAYA,IAAAA,EAAE,OAAO;AACvB;AAEA,MAAa,SAAA,GAAA,2BAAA,UAAA,CAA4D;CACvE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,14 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const softr: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
7
  generic_id: z.ZodString;
11
- }, z.core.$strip>>>;
8
+ };
9
+ declare const softr: KeystrokeApp<"softr", typeof credential>;
12
10
  //#endregion
13
11
  export { softr };
14
12
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,KAAA,6BAAK,GAAA,+BAAA,UAAA,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,KAAA,EAAO,YAAY,iBAAiB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,14 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const softr: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
7
  generic_id: z.ZodString;
11
- }, z.core.$strip>>>;
8
+ };
9
+ declare const softr: KeystrokeApp<"softr", typeof credential>;
12
10
  //#endregion
13
11
  export { softr };
14
12
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,KAAA,6BAAK,GAAA,+BAAA,UAAA,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,KAAA,EAAO,YAAY,iBAAiB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const softr = defineApp({
5
4
  slug: "softr",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const softr = defineApp({\n slug: \"softr\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n generic_id: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,QAAQ,UAAU;CAC7B,MAAM;CACN,MAAM;CACN,YAAY;EACV,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CACvB;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const softr: KeystrokeApp<\"softr\", typeof credential> = defineApp({\n slug: \"softr\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,QAAkD,UAAU;CACvE,MAAM;CACN,MAAM;CACN;EAPA,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CAMrB;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { softr } from "./app.cjs";
1
2
  import { softrCreateDatabase } from "./actions/create-database.cjs";
2
3
  import { softrCreateRecord } from "./actions/create-record.cjs";
3
4
  import { softrCreateTable } from "./actions/create-table.cjs";
@@ -19,6 +20,5 @@ import { softrUpdateDatabase } from "./actions/update-database.cjs";
19
20
  import { softrUpdateRecord } from "./actions/update-record.cjs";
20
21
  import { softrUpdateTable } from "./actions/update-table.cjs";
21
22
  import { softrUpdateTableField } from "./actions/update-table-field.cjs";
22
- import { softr } from "./app.cjs";
23
23
  import { softrCatalog } from "./catalog.cjs";
24
24
  export { softr, softrCatalog, softrCreateDatabase, softrCreateRecord, softrCreateTable, softrCreateTableField, softrDeleteDatabase, softrDeleteRecord, softrDeleteTable, softrDeleteTableField, softrGetDatabase, softrGetDatabases, softrGetRecord, softrGetRecords, softrGetTable, softrGetTableField, softrGetTableViews, softrGetTables, softrSearchRecords, softrUpdateDatabase, softrUpdateRecord, softrUpdateTable, softrUpdateTableField };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { softr } from "./app.mjs";
1
2
  import { softrCreateDatabase } from "./actions/create-database.mjs";
2
3
  import { softrCreateRecord } from "./actions/create-record.mjs";
3
4
  import { softrCreateTable } from "./actions/create-table.mjs";
@@ -19,6 +20,5 @@ import { softrUpdateDatabase } from "./actions/update-database.mjs";
19
20
  import { softrUpdateRecord } from "./actions/update-record.mjs";
20
21
  import { softrUpdateTable } from "./actions/update-table.mjs";
21
22
  import { softrUpdateTableField } from "./actions/update-table-field.mjs";
22
- import { softr } from "./app.mjs";
23
23
  import { softrCatalog } from "./catalog.mjs";
24
24
  export { softr, softrCatalog, softrCreateDatabase, softrCreateRecord, softrCreateTable, softrCreateTableField, softrDeleteDatabase, softrDeleteRecord, softrDeleteTable, softrDeleteTableField, softrGetDatabase, softrGetDatabases, softrGetRecord, softrGetRecords, softrGetTable, softrGetTableField, softrGetTableViews, softrGetTables, softrSearchRecords, softrUpdateDatabase, softrUpdateRecord, softrUpdateTable, softrUpdateTableField };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/softr",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {