@keystrokehq/formsite 0.1.0 → 0.1.1

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 (49) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-form-items.cjs +4 -4
  4. package/dist/actions/get-form-items.cjs.map +1 -1
  5. package/dist/actions/get-form-items.d.cts +25 -3
  6. package/dist/actions/get-form-items.d.cts.map +1 -1
  7. package/dist/actions/get-form-items.d.mts +25 -3
  8. package/dist/actions/get-form-items.d.mts.map +1 -1
  9. package/dist/actions/get-form-items.mjs +4 -4
  10. package/dist/actions/get-form-items.mjs.map +1 -1
  11. package/dist/actions/get-form-results.cjs +12 -12
  12. package/dist/actions/get-form-results.cjs.map +1 -1
  13. package/dist/actions/get-form-results.d.cts +52 -3
  14. package/dist/actions/get-form-results.d.cts.map +1 -1
  15. package/dist/actions/get-form-results.d.mts +52 -3
  16. package/dist/actions/get-form-results.d.mts.map +1 -1
  17. package/dist/actions/get-form-results.mjs +12 -12
  18. package/dist/actions/get-form-results.mjs.map +1 -1
  19. package/dist/actions/get-form.cjs +10 -10
  20. package/dist/actions/get-form.cjs.map +1 -1
  21. package/dist/actions/get-form.d.cts +39 -3
  22. package/dist/actions/get-form.d.cts.map +1 -1
  23. package/dist/actions/get-form.d.mts +39 -3
  24. package/dist/actions/get-form.d.mts.map +1 -1
  25. package/dist/actions/get-form.mjs +10 -10
  26. package/dist/actions/get-form.mjs.map +1 -1
  27. package/dist/actions/get-webhooks.cjs +3 -3
  28. package/dist/actions/get-webhooks.cjs.map +1 -1
  29. package/dist/actions/get-webhooks.d.cts +21 -3
  30. package/dist/actions/get-webhooks.d.cts.map +1 -1
  31. package/dist/actions/get-webhooks.d.mts +21 -3
  32. package/dist/actions/get-webhooks.d.mts.map +1 -1
  33. package/dist/actions/get-webhooks.mjs +3 -3
  34. package/dist/actions/get-webhooks.mjs.map +1 -1
  35. package/dist/actions/list-all-forms.cjs +8 -8
  36. package/dist/actions/list-all-forms.cjs.map +1 -1
  37. package/dist/actions/list-all-forms.d.cts +37 -3
  38. package/dist/actions/list-all-forms.d.cts.map +1 -1
  39. package/dist/actions/list-all-forms.d.mts +37 -3
  40. package/dist/actions/list-all-forms.d.mts.map +1 -1
  41. package/dist/actions/list-all-forms.mjs +8 -8
  42. package/dist/actions/list-all-forms.mjs.map +1 -1
  43. package/dist/catalog.cjs +13 -1
  44. package/dist/catalog.cjs.map +1 -1
  45. package/dist/catalog.d.cts +12 -0
  46. package/dist/catalog.d.mts +12 -0
  47. package/dist/catalog.mjs +13 -1
  48. package/dist/catalog.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["formsite","executeFormsiteTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { formsite } from \"./app\";\nimport { executeFormsiteTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return formsite.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeFormsiteTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["formsite","executeFormsiteTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { formsite } from \"./app\";\nimport { executeFormsiteTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return formsite.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeFormsiteTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { formsite } from \"./app\";\nimport { executeFormsiteTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return formsite.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeFormsiteTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { formsite } from \"./app\";\nimport { executeFormsiteTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return formsite.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeFormsiteTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -7,10 +7,10 @@ const FormsiteGetFormItemsInput = zod.z.object({
7
7
  results_labels: zod.z.string().describe("Optional. Results Labels ID to apply for item labels").optional()
8
8
  }).describe("Model representing the request parameters for getting form items.");
9
9
  const FormsiteGetFormItems_FormItemSchema = zod.z.object({
10
- id: zod.z.string().describe("The item's unique identifier"),
11
- label: zod.z.string().describe("The item's question label"),
12
- children: zod.z.array(zod.z.string()).describe("Optional. For item types composed of sub-items (Matrix and Multi Scale items)").nullable().optional(),
13
- position: zod.z.number().int().describe("The item's sequential position in the form")
10
+ id: zod.z.string().describe("The item's unique identifier").nullable(),
11
+ label: zod.z.string().describe("The item's question label").nullable(),
12
+ children: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Optional. For item types composed of sub-items (Matrix and Multi Scale items)").optional()),
13
+ position: zod.z.number().int().describe("The item's sequential position in the form").nullable()
14
14
  }).describe("Model representing a form item in the response.");
15
15
  const FormsiteGetFormItemsOutput = zod.z.object({ items: zod.z.array(FormsiteGetFormItems_FormItemSchema).describe("List of form items containing their IDs, positions, and labels") }).describe("Model representing the response from the get form items endpoint.");
16
16
  const formsiteGetFormItems = require_action.action("FORMSITE_GET_FORM_ITEMS", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-form-items.cjs","names":["z","action"],"sources":["../../src/actions/get-form-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormItemsInput: z.ZodTypeAny = z.object({\n form_dir: z.string().describe(\"The form's directory/ID to retrieve items from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n results_labels: z.string().describe(\"Optional. Results Labels ID to apply for item labels\").optional(),\n}).describe(\"Model representing the request parameters for getting form items.\");\nconst FormsiteGetFormItems_FormItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The item's unique identifier\"),\n label: z.string().describe(\"The item's question label\"),\n children: z.array(z.string()).describe(\"Optional. For item types composed of sub-items (Matrix and Multi Scale items)\").nullable().optional(),\n position: z.number().int().describe(\"The item's sequential position in the form\"),\n}).describe(\"Model representing a form item in the response.\");\nexport const FormsiteGetFormItemsOutput: z.ZodTypeAny = z.object({\n items: z.array(FormsiteGetFormItems_FormItemSchema).describe(\"List of form items containing their IDs, positions, and labels\"),\n}).describe(\"Model representing the response from the get form items endpoint.\");\n\nexport const formsiteGetFormItems = action(\"FORMSITE_GET_FORM_ITEMS\", {\n slug: \"formsite-get-form-items\",\n name: \"Get Form Items\",\n description: \"Retrieves all items (questions) for a specific form using the Formsite API. This action returns detailed information about each form item including: - Item ID (unique identifier for the form question) - Position (sequential order in the form) - Label (the question text) - Children (optional, for Matrix and Multi Scale items with sub-items) The item data can be used to label results data by matching item IDs from this action to item IDs from the Get Form Results action. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormItemsInput,\n output: FormsiteGetFormItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACnT,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AAClF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,OAAOA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gEAAgE,EAC/H,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-form-items.cjs","names":["z","action"],"sources":["../../src/actions/get-form-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormItemsInput = z.object({\n form_dir: z.string().describe(\"The form's directory/ID to retrieve items from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n results_labels: z.string().describe(\"Optional. Results Labels ID to apply for item labels\").optional(),\n}).describe(\"Model representing the request parameters for getting form items.\");\nconst FormsiteGetFormItems_FormItemSchema = z.object({\n id: z.string().describe(\"The item's unique identifier\").nullable(),\n label: z.string().describe(\"The item's question label\").nullable(),\n children: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Optional. For item types composed of sub-items (Matrix and Multi Scale items)\").optional()),\n position: z.number().int().describe(\"The item's sequential position in the form\").nullable(),\n}).describe(\"Model representing a form item in the response.\");\nexport const FormsiteGetFormItemsOutput = z.object({\n items: z.array(FormsiteGetFormItems_FormItemSchema).describe(\"List of form items containing their IDs, positions, and labels\"),\n}).describe(\"Model representing the response from the get form items endpoint.\");\n\nexport const formsiteGetFormItems = action(\"FORMSITE_GET_FORM_ITEMS\", {\n slug: \"formsite-get-form-items\",\n name: \"Get Form Items\",\n description: \"Retrieves all items (questions) for a specific form using the Formsite API. This action returns detailed information about each form item including: - Item ID (unique identifier for the form question) - Position (sequential order in the form) - Label (the question text) - Children (optional, for Matrix and Multi Scale items with sub-items) The item data can be used to label results data by matching item IDs from this action to item IDs from the Get Form Results action. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormItemsInput,\n output: FormsiteGetFormItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACnT,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;CAChM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,OAAOA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gEAAgE,EAC/H,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-form-items.d.ts
4
- declare const FormsiteGetFormItemsInput: z.ZodTypeAny;
5
- declare const FormsiteGetFormItemsOutput: z.ZodTypeAny;
6
- declare const formsiteGetFormItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FormsiteGetFormItemsInput: z.ZodObject<{
5
+ form_dir: z.ZodString;
6
+ user_dir: z.ZodOptional<z.ZodString>;
7
+ results_labels: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const FormsiteGetFormItemsOutput: z.ZodObject<{
10
+ items: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ label: z.ZodNullable<z.ZodString>;
13
+ children: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
14
+ position: z.ZodNullable<z.ZodNumber>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ declare const formsiteGetFormItems: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ form_dir: string;
19
+ user_dir?: string | undefined;
20
+ results_labels?: string | undefined;
21
+ }, {
22
+ items: {
23
+ id: string | null;
24
+ label: string | null;
25
+ position: number | null;
26
+ children?: string[] | undefined;
27
+ }[];
28
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { formsiteGetFormItems };
9
31
  //# sourceMappingURL=get-form-items.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-form-items.d.cts","names":[],"sources":["../../src/actions/get-form-items.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAIsC;AAAA,cAOnE,0BAAA,EAA4B,CAAA,CAAE,UAEqC;AAAA,cAEnE,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-form-items.d.cts","names":[],"sources":["../../src/actions/get-form-items.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-form-items.d.ts
4
- declare const FormsiteGetFormItemsInput: z.ZodTypeAny;
5
- declare const FormsiteGetFormItemsOutput: z.ZodTypeAny;
6
- declare const formsiteGetFormItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FormsiteGetFormItemsInput: z.ZodObject<{
5
+ form_dir: z.ZodString;
6
+ user_dir: z.ZodOptional<z.ZodString>;
7
+ results_labels: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ declare const FormsiteGetFormItemsOutput: z.ZodObject<{
10
+ items: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ label: z.ZodNullable<z.ZodString>;
13
+ children: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
14
+ position: z.ZodNullable<z.ZodNumber>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ declare const formsiteGetFormItems: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ form_dir: string;
19
+ user_dir?: string | undefined;
20
+ results_labels?: string | undefined;
21
+ }, {
22
+ items: {
23
+ id: string | null;
24
+ label: string | null;
25
+ position: number | null;
26
+ children?: string[] | undefined;
27
+ }[];
28
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { formsiteGetFormItems };
9
31
  //# sourceMappingURL=get-form-items.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-form-items.d.mts","names":[],"sources":["../../src/actions/get-form-items.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAIsC;AAAA,cAOnE,0BAAA,EAA4B,CAAA,CAAE,UAEqC;AAAA,cAEnE,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-form-items.d.mts","names":[],"sources":["../../src/actions/get-form-items.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
@@ -7,10 +7,10 @@ const FormsiteGetFormItemsInput = z.object({
7
7
  results_labels: z.string().describe("Optional. Results Labels ID to apply for item labels").optional()
8
8
  }).describe("Model representing the request parameters for getting form items.");
9
9
  const FormsiteGetFormItems_FormItemSchema = z.object({
10
- id: z.string().describe("The item's unique identifier"),
11
- label: z.string().describe("The item's question label"),
12
- children: z.array(z.string()).describe("Optional. For item types composed of sub-items (Matrix and Multi Scale items)").nullable().optional(),
13
- position: z.number().int().describe("The item's sequential position in the form")
10
+ id: z.string().describe("The item's unique identifier").nullable(),
11
+ label: z.string().describe("The item's question label").nullable(),
12
+ children: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Optional. For item types composed of sub-items (Matrix and Multi Scale items)").optional()),
13
+ position: z.number().int().describe("The item's sequential position in the form").nullable()
14
14
  }).describe("Model representing a form item in the response.");
15
15
  const formsiteGetFormItems = action("FORMSITE_GET_FORM_ITEMS", {
16
16
  slug: "formsite-get-form-items",
@@ -1 +1 @@
1
- {"version":3,"file":"get-form-items.mjs","names":[],"sources":["../../src/actions/get-form-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormItemsInput: z.ZodTypeAny = z.object({\n form_dir: z.string().describe(\"The form's directory/ID to retrieve items from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n results_labels: z.string().describe(\"Optional. Results Labels ID to apply for item labels\").optional(),\n}).describe(\"Model representing the request parameters for getting form items.\");\nconst FormsiteGetFormItems_FormItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The item's unique identifier\"),\n label: z.string().describe(\"The item's question label\"),\n children: z.array(z.string()).describe(\"Optional. For item types composed of sub-items (Matrix and Multi Scale items)\").nullable().optional(),\n position: z.number().int().describe(\"The item's sequential position in the form\"),\n}).describe(\"Model representing a form item in the response.\");\nexport const FormsiteGetFormItemsOutput: z.ZodTypeAny = z.object({\n items: z.array(FormsiteGetFormItems_FormItemSchema).describe(\"List of form items containing their IDs, positions, and labels\"),\n}).describe(\"Model representing the response from the get form items endpoint.\");\n\nexport const formsiteGetFormItems = action(\"FORMSITE_GET_FORM_ITEMS\", {\n slug: \"formsite-get-form-items\",\n name: \"Get Form Items\",\n description: \"Retrieves all items (questions) for a specific form using the Formsite API. This action returns detailed information about each form item including: - Item ID (unique identifier for the form question) - Position (sequential order in the form) - Label (the question text) - Children (optional, for Matrix and Multi Scale items with sub-items) The item data can be used to label results data by matching item IDs from this action to item IDs from the Get Form Results action. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormItemsInput,\n output: FormsiteGetFormItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACnT,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AAClF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAK7D,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,OAAO,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gEAAgE,EAC/H,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-form-items.mjs","names":[],"sources":["../../src/actions/get-form-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormItemsInput = z.object({\n form_dir: z.string().describe(\"The form's directory/ID to retrieve items from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n results_labels: z.string().describe(\"Optional. Results Labels ID to apply for item labels\").optional(),\n}).describe(\"Model representing the request parameters for getting form items.\");\nconst FormsiteGetFormItems_FormItemSchema = z.object({\n id: z.string().describe(\"The item's unique identifier\").nullable(),\n label: z.string().describe(\"The item's question label\").nullable(),\n children: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Optional. For item types composed of sub-items (Matrix and Multi Scale items)\").optional()),\n position: z.number().int().describe(\"The item's sequential position in the form\").nullable(),\n}).describe(\"Model representing a form item in the response.\");\nexport const FormsiteGetFormItemsOutput = z.object({\n items: z.array(FormsiteGetFormItems_FormItemSchema).describe(\"List of form items containing their IDs, positions, and labels\"),\n}).describe(\"Model representing the response from the get form items endpoint.\");\n\nexport const formsiteGetFormItems = action(\"FORMSITE_GET_FORM_ITEMS\", {\n slug: \"formsite-get-form-items\",\n name: \"Get Form Items\",\n description: \"Retrieves all items (questions) for a specific form using the Formsite API. This action returns detailed information about each form item including: - Item ID (unique identifier for the form question) - Position (sequential order in the form) - Label (the question text) - Children (optional, for Matrix and Multi Scale items with sub-items) The item data can be used to label results data by matching item IDs from this action to item IDs from the Get Form Results action. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormItemsInput,\n output: FormsiteGetFormItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACnT,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;CAChM,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAK7D,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,OAAO,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gEAAgE,EAC/H,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
@@ -9,21 +9,21 @@ const FormsiteGetFormResultsInput = zod.z.object({
9
9
  sort_direction: zod.z.enum(["asc", "desc"]).default("desc").describe("Sort direction for results (asc or desc)").optional()
10
10
  }).describe("Request model for getting form results.");
11
11
  const FormsiteGetFormResults_FormResultItemSchema = zod.z.object({
12
- id: zod.z.string().describe("The item's ID"),
13
- value: zod.z.string().describe("The value for text item types").nullable().optional(),
14
- values: zod.z.array(zod.z.object({})).describe("The values for multiple choice item types").nullable().optional(),
15
- position: zod.z.number().int().describe("The item's sequential position on the form")
12
+ id: zod.z.string().describe("The item's ID").nullable(),
13
+ value: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The value for text item types").optional()),
14
+ values: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.object({})).describe("The values for multiple choice item types").optional()),
15
+ position: zod.z.number().int().describe("The item's sequential position on the form").nullable()
16
16
  }).describe("Model for a form result item.");
17
17
  const FormsiteGetFormResults_FormResultSchema = zod.z.object({
18
- id: zod.z.string().describe("The result's unique ID"),
18
+ id: zod.z.string().describe("The result's unique ID").nullable(),
19
19
  items: zod.z.array(FormsiteGetFormResults_FormResultItemSchema).describe("List of form items with their values"),
20
- user_ip: zod.z.string().describe("The user's IP address"),
21
- date_start: zod.z.string().describe("The date the result was started (ISO 8601 UTC format)").nullable().optional(),
22
- date_finish: zod.z.string().describe("The date the result was finished (ISO 8601 UTC format)").nullable().optional(),
23
- date_update: zod.z.string().describe("The date the result was most recently modified (ISO 8601 UTC format)"),
24
- user_device: zod.z.string().describe("The user's device (Desktop, Tablet, or Mobile)"),
25
- user_browser: zod.z.string().describe("The user's browser"),
26
- result_status: zod.z.string().describe("The status of the result")
20
+ user_ip: zod.z.string().describe("The user's IP address").nullable(),
21
+ date_start: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The date the result was started (ISO 8601 UTC format)").optional()),
22
+ date_finish: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The date the result was finished (ISO 8601 UTC format)").optional()),
23
+ date_update: zod.z.string().describe("The date the result was most recently modified (ISO 8601 UTC format)").nullable(),
24
+ user_device: zod.z.string().describe("The user's device (Desktop, Tablet, or Mobile)").nullable(),
25
+ user_browser: zod.z.string().describe("The user's browser").nullable(),
26
+ result_status: zod.z.string().describe("The status of the result").nullable()
27
27
  }).describe("Model for a single form result.");
28
28
  const FormsiteGetFormResultsOutput = zod.z.object({ results: zod.z.array(FormsiteGetFormResults_FormResultSchema).describe("List of form results") }).describe("Response model for getting form results.");
29
29
  const formsiteGetFormResults = require_action.action("FORMSITE_GET_FORM_RESULTS", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-form-results.cjs","names":["z","action"],"sources":["../../src/actions/get-form-results.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormResultsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number if results exceed limit\").optional(),\n limit: z.number().int().default(100).describe(\"Maximum number of results to get (1-500, API max is 500)\").optional(),\n form_id: z.string().describe(\"The form directory/ID to fetch results from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n sort_direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction for results (asc or desc)\").optional(),\n}).describe(\"Request model for getting form results.\");\nconst FormsiteGetFormResults_FormResultItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The item's ID\"),\n value: z.string().describe(\"The value for text item types\").nullable().optional(),\n values: z.array(z.object({})).describe(\"The values for multiple choice item types\").nullable().optional(),\n position: z.number().int().describe(\"The item's sequential position on the form\"),\n}).describe(\"Model for a form result item.\");\nconst FormsiteGetFormResults_FormResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The result's unique ID\"),\n items: z.array(FormsiteGetFormResults_FormResultItemSchema).describe(\"List of form items with their values\"),\n user_ip: z.string().describe(\"The user's IP address\"),\n date_start: z.string().describe(\"The date the result was started (ISO 8601 UTC format)\").nullable().optional(),\n date_finish: z.string().describe(\"The date the result was finished (ISO 8601 UTC format)\").nullable().optional(),\n date_update: z.string().describe(\"The date the result was most recently modified (ISO 8601 UTC format)\"),\n user_device: z.string().describe(\"The user's device (Desktop, Tablet, or Mobile)\"),\n user_browser: z.string().describe(\"The user's browser\"),\n result_status: z.string().describe(\"The status of the result\"),\n}).describe(\"Model for a single form result.\");\nexport const FormsiteGetFormResultsOutput: z.ZodTypeAny = z.object({\n results: z.array(FormsiteGetFormResults_FormResultSchema).describe(\"List of form results\"),\n}).describe(\"Response model for getting form results.\");\n\nexport const formsiteGetFormResults = action(\"FORMSITE_GET_FORM_RESULTS\", {\n slug: \"formsite-get-form-results\",\n name: \"Get Form Results\",\n description: \"This tool retrieves form results from a specified FormSite form. It uses the GET https://{server}.formsite.com/api/v2/{user_dir}/forms/{form_id}/results endpoint to fetch results, handling required parameters such as form_id, user_dir, limit, page, and sort direction. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormResultsInput,\n output: FormsiteGetFormResultsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACnT,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACvC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AAClF,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAChD,OAAOA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,sCAAsC;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACtD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AAC/D,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sBAAsB,EAC3F,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-form-results.cjs","names":["z","action"],"sources":["../../src/actions/get-form-results.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormResultsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number if results exceed limit\").optional(),\n limit: z.number().int().default(100).describe(\"Maximum number of results to get (1-500, API max is 500)\").optional(),\n form_id: z.string().describe(\"The form directory/ID to fetch results from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n sort_direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction for results (asc or desc)\").optional(),\n}).describe(\"Request model for getting form results.\");\nconst FormsiteGetFormResults_FormResultItemSchema = z.object({\n id: z.string().describe(\"The item's ID\").nullable(),\n value: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The value for text item types\").optional()),\n values: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"The values for multiple choice item types\").optional()),\n position: z.number().int().describe(\"The item's sequential position on the form\").nullable(),\n}).describe(\"Model for a form result item.\");\nconst FormsiteGetFormResults_FormResultSchema = z.object({\n id: z.string().describe(\"The result's unique ID\").nullable(),\n items: z.array(FormsiteGetFormResults_FormResultItemSchema).describe(\"List of form items with their values\"),\n user_ip: z.string().describe(\"The user's IP address\").nullable(),\n date_start: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The date the result was started (ISO 8601 UTC format)\").optional()),\n date_finish: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The date the result was finished (ISO 8601 UTC format)\").optional()),\n date_update: z.string().describe(\"The date the result was most recently modified (ISO 8601 UTC format)\").nullable(),\n user_device: z.string().describe(\"The user's device (Desktop, Tablet, or Mobile)\").nullable(),\n user_browser: z.string().describe(\"The user's browser\").nullable(),\n result_status: z.string().describe(\"The status of the result\").nullable(),\n}).describe(\"Model for a single form result.\");\nexport const FormsiteGetFormResultsOutput = z.object({\n results: z.array(FormsiteGetFormResults_FormResultSchema).describe(\"List of form results\"),\n}).describe(\"Response model for getting form results.\");\n\nexport const formsiteGetFormResults = action(\"FORMSITE_GET_FORM_RESULTS\", {\n slug: \"formsite-get-form-results\",\n name: \"Get Form Results\",\n description: \"This tool retrieves form results from a specified FormSite form. It uses the GET https://{server}.formsite.com/api/v2/{user_dir}/forms/{form_id}/results endpoint to fetch results, handling required parameters such as form_id, user_dir, limit, page, and sort direction. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormResultsInput,\n output: FormsiteGetFormResultsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACnT,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAClD,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACpI,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CAC5J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,OAAOA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,sCAAsC;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC;CACjK,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC;CACnK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACjE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAASA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sBAAsB,EAC3F,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,58 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-form-results.d.ts
4
- declare const FormsiteGetFormResultsInput: z.ZodTypeAny;
5
- declare const FormsiteGetFormResultsOutput: z.ZodTypeAny;
6
- declare const formsiteGetFormResults: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FormsiteGetFormResultsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ form_id: z.ZodString;
8
+ user_dir: z.ZodOptional<z.ZodString>;
9
+ sort_direction: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
10
+ asc: "asc";
11
+ desc: "desc";
12
+ }>>>;
13
+ }, z.core.$strip>;
14
+ declare const FormsiteGetFormResultsOutput: z.ZodObject<{
15
+ results: z.ZodArray<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ items: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodString>;
19
+ value: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ values: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
21
+ position: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$strip>>;
23
+ user_ip: z.ZodNullable<z.ZodString>;
24
+ date_start: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ date_finish: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ date_update: z.ZodNullable<z.ZodString>;
27
+ user_device: z.ZodNullable<z.ZodString>;
28
+ user_browser: z.ZodNullable<z.ZodString>;
29
+ result_status: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ declare const formsiteGetFormResults: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ form_id: string;
34
+ page?: number | undefined;
35
+ limit?: number | undefined;
36
+ user_dir?: string | undefined;
37
+ sort_direction?: "asc" | "desc" | undefined;
38
+ }, {
39
+ results: {
40
+ id: string | null;
41
+ items: {
42
+ id: string | null;
43
+ position: number | null;
44
+ value?: string | undefined;
45
+ values?: Record<string, never>[] | undefined;
46
+ }[];
47
+ user_ip: string | null;
48
+ date_update: string | null;
49
+ user_device: string | null;
50
+ user_browser: string | null;
51
+ result_status: string | null;
52
+ date_start?: string | undefined;
53
+ date_finish?: string | undefined;
54
+ }[];
55
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
56
  //#endregion
8
57
  export { formsiteGetFormResults };
9
58
  //# sourceMappingURL=get-form-results.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-form-results.d.cts","names":[],"sources":["../../src/actions/get-form-results.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAMU;AAAA,cAkBzC,4BAAA,EAA8B,CAAA,CAAE,UAEU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-form-results.d.cts","names":[],"sources":["../../src/actions/get-form-results.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAwB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;eAMjC,MAAA;IAAA"}
@@ -1,9 +1,58 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-form-results.d.ts
4
- declare const FormsiteGetFormResultsInput: z.ZodTypeAny;
5
- declare const FormsiteGetFormResultsOutput: z.ZodTypeAny;
6
- declare const formsiteGetFormResults: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FormsiteGetFormResultsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ form_id: z.ZodString;
8
+ user_dir: z.ZodOptional<z.ZodString>;
9
+ sort_direction: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
10
+ asc: "asc";
11
+ desc: "desc";
12
+ }>>>;
13
+ }, z.core.$strip>;
14
+ declare const FormsiteGetFormResultsOutput: z.ZodObject<{
15
+ results: z.ZodArray<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ items: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodString>;
19
+ value: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ values: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
21
+ position: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$strip>>;
23
+ user_ip: z.ZodNullable<z.ZodString>;
24
+ date_start: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ date_finish: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ date_update: z.ZodNullable<z.ZodString>;
27
+ user_device: z.ZodNullable<z.ZodString>;
28
+ user_browser: z.ZodNullable<z.ZodString>;
29
+ result_status: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ declare const formsiteGetFormResults: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ form_id: string;
34
+ page?: number | undefined;
35
+ limit?: number | undefined;
36
+ user_dir?: string | undefined;
37
+ sort_direction?: "asc" | "desc" | undefined;
38
+ }, {
39
+ results: {
40
+ id: string | null;
41
+ items: {
42
+ id: string | null;
43
+ position: number | null;
44
+ value?: string | undefined;
45
+ values?: Record<string, never>[] | undefined;
46
+ }[];
47
+ user_ip: string | null;
48
+ date_update: string | null;
49
+ user_device: string | null;
50
+ user_browser: string | null;
51
+ result_status: string | null;
52
+ date_start?: string | undefined;
53
+ date_finish?: string | undefined;
54
+ }[];
55
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
56
  //#endregion
8
57
  export { formsiteGetFormResults };
9
58
  //# sourceMappingURL=get-form-results.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-form-results.d.mts","names":[],"sources":["../../src/actions/get-form-results.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAMU;AAAA,cAkBzC,4BAAA,EAA8B,CAAA,CAAE,UAEU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-form-results.d.mts","names":[],"sources":["../../src/actions/get-form-results.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAwB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;eAMjC,MAAA;IAAA"}
@@ -9,21 +9,21 @@ const FormsiteGetFormResultsInput = z.object({
9
9
  sort_direction: z.enum(["asc", "desc"]).default("desc").describe("Sort direction for results (asc or desc)").optional()
10
10
  }).describe("Request model for getting form results.");
11
11
  const FormsiteGetFormResults_FormResultItemSchema = z.object({
12
- id: z.string().describe("The item's ID"),
13
- value: z.string().describe("The value for text item types").nullable().optional(),
14
- values: z.array(z.object({})).describe("The values for multiple choice item types").nullable().optional(),
15
- position: z.number().int().describe("The item's sequential position on the form")
12
+ id: z.string().describe("The item's ID").nullable(),
13
+ value: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The value for text item types").optional()),
14
+ values: z.preprocess((value) => value === null ? void 0 : value, z.array(z.object({})).describe("The values for multiple choice item types").optional()),
15
+ position: z.number().int().describe("The item's sequential position on the form").nullable()
16
16
  }).describe("Model for a form result item.");
17
17
  const FormsiteGetFormResults_FormResultSchema = z.object({
18
- id: z.string().describe("The result's unique ID"),
18
+ id: z.string().describe("The result's unique ID").nullable(),
19
19
  items: z.array(FormsiteGetFormResults_FormResultItemSchema).describe("List of form items with their values"),
20
- user_ip: z.string().describe("The user's IP address"),
21
- date_start: z.string().describe("The date the result was started (ISO 8601 UTC format)").nullable().optional(),
22
- date_finish: z.string().describe("The date the result was finished (ISO 8601 UTC format)").nullable().optional(),
23
- date_update: z.string().describe("The date the result was most recently modified (ISO 8601 UTC format)"),
24
- user_device: z.string().describe("The user's device (Desktop, Tablet, or Mobile)"),
25
- user_browser: z.string().describe("The user's browser"),
26
- result_status: z.string().describe("The status of the result")
20
+ user_ip: z.string().describe("The user's IP address").nullable(),
21
+ date_start: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The date the result was started (ISO 8601 UTC format)").optional()),
22
+ date_finish: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("The date the result was finished (ISO 8601 UTC format)").optional()),
23
+ date_update: z.string().describe("The date the result was most recently modified (ISO 8601 UTC format)").nullable(),
24
+ user_device: z.string().describe("The user's device (Desktop, Tablet, or Mobile)").nullable(),
25
+ user_browser: z.string().describe("The user's browser").nullable(),
26
+ result_status: z.string().describe("The status of the result").nullable()
27
27
  }).describe("Model for a single form result.");
28
28
  const formsiteGetFormResults = action("FORMSITE_GET_FORM_RESULTS", {
29
29
  slug: "formsite-get-form-results",
@@ -1 +1 @@
1
- {"version":3,"file":"get-form-results.mjs","names":[],"sources":["../../src/actions/get-form-results.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormResultsInput: z.ZodTypeAny = z.object({\n page: z.number().int().default(1).describe(\"Page number if results exceed limit\").optional(),\n limit: z.number().int().default(100).describe(\"Maximum number of results to get (1-500, API max is 500)\").optional(),\n form_id: z.string().describe(\"The form directory/ID to fetch results from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n sort_direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction for results (asc or desc)\").optional(),\n}).describe(\"Request model for getting form results.\");\nconst FormsiteGetFormResults_FormResultItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The item's ID\"),\n value: z.string().describe(\"The value for text item types\").nullable().optional(),\n values: z.array(z.object({})).describe(\"The values for multiple choice item types\").nullable().optional(),\n position: z.number().int().describe(\"The item's sequential position on the form\"),\n}).describe(\"Model for a form result item.\");\nconst FormsiteGetFormResults_FormResultSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The result's unique ID\"),\n items: z.array(FormsiteGetFormResults_FormResultItemSchema).describe(\"List of form items with their values\"),\n user_ip: z.string().describe(\"The user's IP address\"),\n date_start: z.string().describe(\"The date the result was started (ISO 8601 UTC format)\").nullable().optional(),\n date_finish: z.string().describe(\"The date the result was finished (ISO 8601 UTC format)\").nullable().optional(),\n date_update: z.string().describe(\"The date the result was most recently modified (ISO 8601 UTC format)\"),\n user_device: z.string().describe(\"The user's device (Desktop, Tablet, or Mobile)\"),\n user_browser: z.string().describe(\"The user's browser\"),\n result_status: z.string().describe(\"The status of the result\"),\n}).describe(\"Model for a single form result.\");\nexport const FormsiteGetFormResultsOutput: z.ZodTypeAny = z.object({\n results: z.array(FormsiteGetFormResults_FormResultSchema).describe(\"List of form results\"),\n}).describe(\"Response model for getting form results.\");\n\nexport const formsiteGetFormResults = action(\"FORMSITE_GET_FORM_RESULTS\", {\n slug: \"formsite-get-form-results\",\n name: \"Get Form Results\",\n description: \"This tool retrieves form results from a specified FormSite form. It uses the GET https://{server}.formsite.com/api/v2/{user_dir}/forms/{form_id}/results endpoint to fetch results, handling required parameters such as form_id, user_dir, limit, page, and sort direction. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormResultsInput,\n output: FormsiteGetFormResultsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACnT,gBAAgB,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACvC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AAClF,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAChD,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,sCAAsC;CAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACtD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AAC/D,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAK7C,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sBAAsB,EAC3F,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-form-results.mjs","names":[],"sources":["../../src/actions/get-form-results.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormResultsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number if results exceed limit\").optional(),\n limit: z.number().int().default(100).describe(\"Maximum number of results to get (1-500, API max is 500)\").optional(),\n form_id: z.string().describe(\"The form directory/ID to fetch results from\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n sort_direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction for results (asc or desc)\").optional(),\n}).describe(\"Request model for getting form results.\");\nconst FormsiteGetFormResults_FormResultItemSchema = z.object({\n id: z.string().describe(\"The item's ID\").nullable(),\n value: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The value for text item types\").optional()),\n values: z.preprocess((value) => (value === null ? undefined : value), z.array(z.object({})).describe(\"The values for multiple choice item types\").optional()),\n position: z.number().int().describe(\"The item's sequential position on the form\").nullable(),\n}).describe(\"Model for a form result item.\");\nconst FormsiteGetFormResults_FormResultSchema = z.object({\n id: z.string().describe(\"The result's unique ID\").nullable(),\n items: z.array(FormsiteGetFormResults_FormResultItemSchema).describe(\"List of form items with their values\"),\n user_ip: z.string().describe(\"The user's IP address\").nullable(),\n date_start: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The date the result was started (ISO 8601 UTC format)\").optional()),\n date_finish: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The date the result was finished (ISO 8601 UTC format)\").optional()),\n date_update: z.string().describe(\"The date the result was most recently modified (ISO 8601 UTC format)\").nullable(),\n user_device: z.string().describe(\"The user's device (Desktop, Tablet, or Mobile)\").nullable(),\n user_browser: z.string().describe(\"The user's browser\").nullable(),\n result_status: z.string().describe(\"The status of the result\").nullable(),\n}).describe(\"Model for a single form result.\");\nexport const FormsiteGetFormResultsOutput = z.object({\n results: z.array(FormsiteGetFormResults_FormResultSchema).describe(\"List of form results\"),\n}).describe(\"Response model for getting form results.\");\n\nexport const formsiteGetFormResults = action(\"FORMSITE_GET_FORM_RESULTS\", {\n slug: \"formsite-get-form-results\",\n name: \"Get Form Results\",\n description: \"This tool retrieves form results from a specified FormSite form. It uses the GET https://{server}.formsite.com/api/v2/{user_dir}/forms/{form_id}/results endpoint to fetch results, handling required parameters such as form_id, user_dir, limit, page, and sort direction. **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormResultsInput,\n output: FormsiteGetFormResultsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CACnT,gBAAgB,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAClD,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACpI,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CAC5J,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC3D,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,sCAAsC;CAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC/D,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC;CACjK,aAAa,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC;CACnK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACjE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAK7C,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,SAAS,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,sBAAsB,EAC3F,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
@@ -6,20 +6,20 @@ const FormsiteGetFormInput = zod.z.object({
6
6
  user_dir: zod.z.string().describe("The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.").optional()
7
7
  }).describe("Request model for getting form details.");
8
8
  const FormsiteGetForm_FormStatsSchema = zod.z.object({
9
- filesSize: zod.z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing.").nullable().optional(),
10
- resultsCount: zod.z.number().int().describe("The number of results the form is storing.").nullable().optional()
9
+ filesSize: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing.").optional()),
10
+ resultsCount: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("The number of results the form is storing.").optional())
11
11
  }).describe("Model for form statistics.");
12
12
  const FormsiteGetForm_FormPublishSchema = zod.z.object({
13
- link: zod.z.string().describe("The public URL link to access the form.").nullable().optional(),
14
- embed_code: zod.z.string().describe("The form's embeddable HTML/JavaScript code for embedding the form on websites.").nullable().optional()
13
+ link: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The public URL link to access the form.").optional()),
14
+ embed_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The form's embeddable HTML/JavaScript code for embedding the form on websites.").optional())
15
15
  }).describe("Model for form publishing information.");
16
16
  const FormsiteGetForm_FormDetailsSchema = zod.z.object({
17
- name: zod.z.string().describe("The form's name.").nullable().optional(),
18
- state: zod.z.string().describe("The form's status. Value is 'open' if the form is accepting responses, or begins with 'closed' followed by a reason if the form is not accepting responses.").nullable().optional(),
19
- stats: FormsiteGetForm_FormStatsSchema.nullable().optional(),
20
- publish: FormsiteGetForm_FormPublishSchema.nullable().optional(),
21
- directory: zod.z.string().describe("The form's URL directory.").nullable().optional(),
22
- description: zod.z.string().describe("The form's internal description.").nullable().optional()
17
+ name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The form's name.").optional()),
18
+ state: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The form's status. Value is 'open' if the form is accepting responses, or begins with 'closed' followed by a reason if the form is not accepting responses.").optional()),
19
+ stats: zod.z.preprocess((value) => value === null ? void 0 : value, FormsiteGetForm_FormStatsSchema.optional()),
20
+ publish: zod.z.preprocess((value) => value === null ? void 0 : value, FormsiteGetForm_FormPublishSchema.optional()),
21
+ directory: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The form's URL directory.").optional()),
22
+ description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("The form's internal description.").optional())
23
23
  }).describe("Model for form details.");
24
24
  const FormsiteGetFormOutput = zod.z.object({ forms: zod.z.array(FormsiteGetForm_FormDetailsSchema).describe("List containing the form details.") }).describe("Response model for getting form details.");
25
25
  const formsiteGetForm = require_action.action("FORMSITE_GET_FORM", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-form.cjs","names":["z","action"],"sources":["../../src/actions/get-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormInput: z.ZodTypeAny = z.object({\n form_dir: z.string().describe(\"The form's directory identifier (also called form ID). This can be found in your form's URL after '/forms/' (e.g., in 'https://fs8.formsite.com/abc123/forms/xyz789', the form_dir is 'xyz789').\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n}).describe(\"Request model for getting form details.\");\nconst FormsiteGetForm_FormStatsSchema: z.ZodTypeAny = z.object({\n filesSize: z.number().int().describe(\"The total size, in bytes, of any uploaded files the form is storing.\").nullable().optional(),\n resultsCount: z.number().int().describe(\"The number of results the form is storing.\").nullable().optional(),\n}).describe(\"Model for form statistics.\");\nconst FormsiteGetForm_FormPublishSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"The public URL link to access the form.\").nullable().optional(),\n embed_code: z.string().describe(\"The form's embeddable HTML/JavaScript code for embedding the form on websites.\").nullable().optional(),\n}).describe(\"Model for form publishing information.\");\nconst FormsiteGetForm_FormDetailsSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The form's name.\").nullable().optional(),\n state: z.string().describe(\"The form's status. Value is 'open' if the form is accepting responses, or begins with 'closed' followed by a reason if the form is not accepting responses.\").nullable().optional(),\n stats: FormsiteGetForm_FormStatsSchema.nullable().optional(),\n publish: FormsiteGetForm_FormPublishSchema.nullable().optional(),\n directory: z.string().describe(\"The form's URL directory.\").nullable().optional(),\n description: z.string().describe(\"The form's internal description.\").nullable().optional(),\n}).describe(\"Model for form details.\");\nexport const FormsiteGetFormOutput: z.ZodTypeAny = z.object({\n forms: z.array(FormsiteGetForm_FormDetailsSchema).describe(\"List containing the form details.\"),\n}).describe(\"Response model for getting form details.\");\n\nexport const formsiteGetForm = action(\"FORMSITE_GET_FORM\", {\n slug: \"formsite-get-form\",\n name: \"Get Form Details\",\n description: \"This tool retrieves detailed information about a specific form in Formsite. It provides comprehensive details including the form's internal description, directory identifier, name, publishing information (embed code and form link), current state (e.g., \\\"open\\\"), and statistics (file size and number of results). **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormInput,\n output: FormsiteGetFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM;CAChO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;AACrT,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9M,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC3D,SAAS,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,OAAOA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mCAAmC,EAChG,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-form.cjs","names":["z","action"],"sources":["../../src/actions/get-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormInput = z.object({\n form_dir: z.string().describe(\"The form's directory identifier (also called form ID). This can be found in your form's URL after '/forms/' (e.g., in 'https://fs8.formsite.com/abc123/forms/xyz789', the form_dir is 'xyz789').\"),\n user_dir: z.string().describe(\"The user directory for your Formsite account. If not provided, it will be extracted from the base_url. You can find this in your form URLs (e.g., if your form URL contains '/vSkOfz/forms/', your user_dir is 'vSkOfz') or in Settings -> Integrations -> Formsite API.\").optional(),\n}).describe(\"Request model for getting form details.\");\nconst FormsiteGetForm_FormStatsSchema = z.object({\n filesSize: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"The total size, in bytes, of any uploaded files the form is storing.\").optional()),\n resultsCount: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"The number of results the form is storing.\").optional()),\n}).describe(\"Model for form statistics.\");\nconst FormsiteGetForm_FormPublishSchema = z.object({\n link: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The public URL link to access the form.\").optional()),\n embed_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's embeddable HTML/JavaScript code for embedding the form on websites.\").optional()),\n}).describe(\"Model for form publishing information.\");\nconst FormsiteGetForm_FormDetailsSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's name.\").optional()),\n state: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's status. Value is 'open' if the form is accepting responses, or begins with 'closed' followed by a reason if the form is not accepting responses.\").optional()),\n stats: z.preprocess((value) => (value === null ? undefined : value), FormsiteGetForm_FormStatsSchema.optional()),\n publish: z.preprocess((value) => (value === null ? undefined : value), FormsiteGetForm_FormPublishSchema.optional()),\n directory: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's URL directory.\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"The form's internal description.\").optional()),\n}).describe(\"Model for form details.\");\nexport const FormsiteGetFormOutput = z.object({\n forms: z.array(FormsiteGetForm_FormDetailsSchema).describe(\"List containing the form details.\"),\n}).describe(\"Response model for getting form details.\");\n\nexport const formsiteGetForm = action(\"FORMSITE_GET_FORM\", {\n slug: \"formsite-get-form\",\n name: \"Get Form Details\",\n description: \"This tool retrieves detailed information about a specific form in Formsite. It provides comprehensive details including the form's internal description, directory identifier, name, publishing information (embed code and form link), current state (e.g., \\\"open\\\"), and statistics (file size and number of results). **Important**: If the connection's base_url doesn't include the user directory, you must provide the 'user_dir' parameter. Find this in your Formsite form URLs (e.g., if URL is https://fs8.formsite.com/user123/forms/abc, user_dir is 'user123') or in Settings -> Integrations -> Formsite API.\",\n input: FormsiteGetFormInput,\n output: FormsiteGetFormOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM;CAChO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;AACrT,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC;CACrL,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;AAChK,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CAC7I,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC;AAC5L,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC;CACtH,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS,CAAC;CAClQ,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,gCAAgC,SAAS,CAAC;CAC/G,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,kCAAkC,SAAS,CAAC;CACnH,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC;CACpI,aAAaA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC;AAC/I,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,OAAOA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mCAAmC,EAChG,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,45 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-form.d.ts
4
- declare const FormsiteGetFormInput: z.ZodTypeAny;
5
- declare const FormsiteGetFormOutput: z.ZodTypeAny;
6
- declare const formsiteGetForm: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FormsiteGetFormInput: z.ZodObject<{
5
+ form_dir: z.ZodString;
6
+ user_dir: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const FormsiteGetFormOutput: z.ZodObject<{
9
+ forms: z.ZodArray<z.ZodObject<{
10
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
+ state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
12
+ stats: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
13
+ filesSize: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
+ resultsCount: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
15
+ }, z.core.$strip>>>;
16
+ publish: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
17
+ link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ embed_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ }, z.core.$strip>>>;
20
+ directory: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ }, z.core.$strip>>;
23
+ }, z.core.$strip>;
24
+ declare const formsiteGetForm: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ form_dir: string;
26
+ user_dir?: string | undefined;
27
+ }, {
28
+ forms: {
29
+ name?: string | undefined;
30
+ state?: string | undefined;
31
+ stats?: {
32
+ filesSize?: number | undefined;
33
+ resultsCount?: number | undefined;
34
+ } | undefined;
35
+ publish?: {
36
+ link?: string | undefined;
37
+ embed_code?: string | undefined;
38
+ } | undefined;
39
+ directory?: string | undefined;
40
+ description?: string | undefined;
41
+ }[];
42
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
43
  //#endregion
8
44
  export { formsiteGetForm };
9
45
  //# sourceMappingURL=get-form.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-form.d.cts","names":[],"sources":["../../src/actions/get-form.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAGiB;AAAA,cAiBzC,qBAAA,EAAuB,CAAA,CAAE,UAEiB;AAAA,cAE1C,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-form.d.cts","names":[],"sources":["../../src/actions/get-form.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAoBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIrB,eAAA,gCAAe,wBAAA"}