@keystrokehq/formsite 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/get-form-items.cjs +3 -3
- package/dist/actions/get-form-items.cjs.map +1 -1
- package/dist/actions/get-form-items.d.cts +18 -3
- package/dist/actions/get-form-items.d.cts.map +1 -1
- package/dist/actions/get-form-items.d.mts +18 -3
- package/dist/actions/get-form-items.d.mts.map +1 -1
- package/dist/actions/get-form-items.mjs +3 -3
- package/dist/actions/get-form-items.mjs.map +1 -1
- package/dist/actions/get-form-results.cjs +8 -8
- package/dist/actions/get-form-results.cjs.map +1 -1
- package/dist/actions/get-form-results.d.cts +35 -3
- package/dist/actions/get-form-results.d.cts.map +1 -1
- package/dist/actions/get-form-results.d.mts +35 -3
- package/dist/actions/get-form-results.d.mts.map +1 -1
- package/dist/actions/get-form-results.mjs +8 -8
- package/dist/actions/get-form-results.mjs.map +1 -1
- package/dist/actions/get-form.cjs.map +1 -1
- package/dist/actions/get-form.d.cts +24 -3
- package/dist/actions/get-form.d.cts.map +1 -1
- package/dist/actions/get-form.d.mts +24 -3
- package/dist/actions/get-form.d.mts.map +1 -1
- package/dist/actions/get-form.mjs.map +1 -1
- package/dist/actions/get-webhooks.cjs +2 -2
- package/dist/actions/get-webhooks.cjs.map +1 -1
- package/dist/actions/get-webhooks.d.cts +15 -3
- package/dist/actions/get-webhooks.d.cts.map +1 -1
- package/dist/actions/get-webhooks.d.mts +15 -3
- package/dist/actions/get-webhooks.d.mts.map +1 -1
- package/dist/actions/get-webhooks.mjs +2 -2
- package/dist/actions/get-webhooks.mjs.map +1 -1
- package/dist/actions/list-all-forms.cjs +7 -7
- package/dist/actions/list-all-forms.cjs.map +1 -1
- package/dist/actions/list-all-forms.d.cts +22 -3
- package/dist/actions/list-all-forms.d.cts.map +1 -1
- package/dist/actions/list-all-forms.d.mts +22 -3
- package/dist/actions/list-all-forms.d.mts.map +1 -1
- package/dist/actions/list-all-forms.mjs +7 -7
- package/dist/actions/list-all-forms.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\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 as z.ZodTypeAny,\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"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -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:
|
|
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\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 as z.ZodTypeAny,\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"}
|
|
@@ -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"),
|
|
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
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")
|
|
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
|
|
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.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\").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,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,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,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-form-items.d.ts
|
|
4
|
-
declare const FormsiteGetFormItemsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
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.ZodOptional<z.ZodNullable<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
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { formsiteGetFormItems };
|
|
9
24
|
//# 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,
|
|
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,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-form-items.d.ts
|
|
4
|
-
declare const FormsiteGetFormItemsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
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.ZodOptional<z.ZodNullable<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
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { formsiteGetFormItems };
|
|
9
24
|
//# 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,
|
|
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"),
|
|
10
|
+
id: z.string().describe("The item's unique identifier").nullable(),
|
|
11
|
+
label: z.string().describe("The item's question label").nullable(),
|
|
12
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")
|
|
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
|
|
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.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\").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,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,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"),
|
|
12
|
+
id: zod.z.string().describe("The item's ID").nullable(),
|
|
13
13
|
value: zod.z.string().describe("The value for text item types").nullable().optional(),
|
|
14
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")
|
|
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"),
|
|
20
|
+
user_ip: zod.z.string().describe("The user's IP address").nullable(),
|
|
21
21
|
date_start: zod.z.string().describe("The date the result was started (ISO 8601 UTC format)").nullable().optional(),
|
|
22
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")
|
|
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
|
|
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.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\").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.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)\").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,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,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,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,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,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-form-results.d.ts
|
|
4
|
-
declare const FormsiteGetFormResultsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
values: z.ZodOptional<z.ZodNullable<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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
date_finish: z.ZodOptional<z.ZodNullable<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
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { formsiteGetFormResults };
|
|
9
41
|
//# 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,
|
|
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"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-form-results.d.ts
|
|
4
|
-
declare const FormsiteGetFormResultsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
values: z.ZodOptional<z.ZodNullable<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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
date_finish: z.ZodOptional<z.ZodNullable<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
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { formsiteGetFormResults };
|
|
9
41
|
//# 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,
|
|
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"}
|
|
@@ -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"),
|
|
12
|
+
id: z.string().describe("The item's ID").nullable(),
|
|
13
13
|
value: z.string().describe("The value for text item types").nullable().optional(),
|
|
14
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")
|
|
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"),
|
|
20
|
+
user_ip: z.string().describe("The user's IP address").nullable(),
|
|
21
21
|
date_start: z.string().describe("The date the result was started (ISO 8601 UTC format)").nullable().optional(),
|
|
22
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")
|
|
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
|
|
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.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\").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.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)\").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,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,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,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,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"}
|
|
@@ -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
|
|
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.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.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.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.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,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,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,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,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,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,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,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-form.d.ts
|
|
4
|
-
declare const FormsiteGetFormInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
filesSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
resultsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
16
|
+
publish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
embed_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
description: z.ZodOptional<z.ZodNullable<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
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { formsiteGetForm };
|
|
9
30
|
//# 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,
|
|
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"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-form.d.ts
|
|
4
|
-
declare const FormsiteGetFormInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
filesSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
resultsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
16
|
+
publish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
embed_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
directory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
description: z.ZodOptional<z.ZodNullable<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
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { formsiteGetForm };
|
|
9
30
|
//# sourceMappingURL=get-form.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-form.d.mts","names":[],"sources":["../../src/actions/get-form.ts"],"mappings":";;;cAIa,oBAAA,
|
|
1
|
+
{"version":3,"file":"get-form.d.mts","names":[],"sources":["../../src/actions/get-form.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAoBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIrB,eAAA,gCAAe,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-form.mjs","names":[],"sources":["../../src/actions/get-form.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetFormInput
|
|
1
|
+
{"version":3,"file":"get-form.mjs","names":[],"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.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.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.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.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,uBAAuB,EAAE,OAAO;CAC3C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM;CAChO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;AACrT,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,kCAAkC,EAAE,OAAO;CAC/C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,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,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAKrC,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmC,EAAE,OAAO,EAC5C,OAAO,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mCAAmC,EAChG,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -6,8 +6,8 @@ const FormsiteGetWebhooksInput = 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 webhooks.");
|
|
8
8
|
const FormsiteGetWebhooks_WebhookConfigSchema = zod.z.object({
|
|
9
|
-
url: zod.z.string().describe("The URL where webhook notifications are sent"),
|
|
10
|
-
event: zod.z.string().describe("The event type that triggers the webhook (e.g., 'result_completed')"),
|
|
9
|
+
url: zod.z.string().describe("The URL where webhook notifications are sent").nullable(),
|
|
10
|
+
event: zod.z.string().describe("The event type that triggers the webhook (e.g., 'result_completed')").nullable(),
|
|
11
11
|
handshake_key: zod.z.string().describe("Optional handshake key for webhook security validation").nullable().optional()
|
|
12
12
|
}).describe("Model for a webhook configuration.");
|
|
13
13
|
const FormsiteGetWebhooksOutput = zod.z.object({ webhooks: zod.z.array(FormsiteGetWebhooks_WebhookConfigSchema).describe("List of webhook configurations") }).describe("Response model for getting form webhooks.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetWebhooksInput
|
|
1
|
+
{"version":3,"file":"get-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetWebhooksInput = z.object({\n form_id: z.string().describe(\"The form directory/ID to fetch webhooks 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}).describe(\"Request model for getting form webhooks.\");\nconst FormsiteGetWebhooks_WebhookConfigSchema = z.object({\n url: z.string().describe(\"The URL where webhook notifications are sent\").nullable(),\n event: z.string().describe(\"The event type that triggers the webhook (e.g., 'result_completed')\").nullable(),\n handshake_key: z.string().describe(\"Optional handshake key for webhook security validation\").nullable().optional(),\n}).describe(\"Model for a webhook configuration.\");\nexport const FormsiteGetWebhooksOutput = z.object({\n webhooks: z.array(FormsiteGetWebhooks_WebhookConfigSchema).describe(\"List of webhook configurations\"),\n}).describe(\"Response model for getting form webhooks.\");\n\nexport const formsiteGetWebhooks = action(\"FORMSITE_GET_WEBHOOKS\", {\n slug: \"formsite-get-webhooks\",\n name: \"Get Form Webhooks\",\n description: \"Retrieves all webhooks configured for a specific form in FormSite. This action returns webhook configurations including URL, event type (e.g., 'result_completed'), and optional handshake_key for security. Webhooks notify external URLs when form events occur. **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: FormsiteGetWebhooksInput,\n output: FormsiteGetWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;AACrT,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,UAAUA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,gCAAgC,EACtG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-webhooks.d.ts
|
|
4
|
-
declare const FormsiteGetWebhooksInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteGetWebhooksInput: z.ZodObject<{
|
|
5
|
+
form_id: z.ZodString;
|
|
6
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const FormsiteGetWebhooksOutput: z.ZodObject<{
|
|
9
|
+
webhooks: z.ZodArray<z.ZodObject<{
|
|
10
|
+
url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
event: z.ZodNullable<z.ZodString>;
|
|
12
|
+
handshake_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const formsiteGetWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
form_id: string;
|
|
17
|
+
user_dir?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { formsiteGetWebhooks };
|
|
9
21
|
//# sourceMappingURL=get-webhooks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhooks.d.cts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-webhooks.d.cts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-webhooks.d.ts
|
|
4
|
-
declare const FormsiteGetWebhooksInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteGetWebhooksInput: z.ZodObject<{
|
|
5
|
+
form_id: z.ZodString;
|
|
6
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const FormsiteGetWebhooksOutput: z.ZodObject<{
|
|
9
|
+
webhooks: z.ZodArray<z.ZodObject<{
|
|
10
|
+
url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
event: z.ZodNullable<z.ZodString>;
|
|
12
|
+
handshake_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const formsiteGetWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
form_id: string;
|
|
17
|
+
user_dir?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { formsiteGetWebhooks };
|
|
9
21
|
//# sourceMappingURL=get-webhooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhooks.d.mts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-webhooks.d.mts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -6,8 +6,8 @@ const FormsiteGetWebhooksInput = z.object({
|
|
|
6
6
|
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()
|
|
7
7
|
}).describe("Request model for getting form webhooks.");
|
|
8
8
|
const FormsiteGetWebhooks_WebhookConfigSchema = z.object({
|
|
9
|
-
url: z.string().describe("The URL where webhook notifications are sent"),
|
|
10
|
-
event: z.string().describe("The event type that triggers the webhook (e.g., 'result_completed')"),
|
|
9
|
+
url: z.string().describe("The URL where webhook notifications are sent").nullable(),
|
|
10
|
+
event: z.string().describe("The event type that triggers the webhook (e.g., 'result_completed')").nullable(),
|
|
11
11
|
handshake_key: z.string().describe("Optional handshake key for webhook security validation").nullable().optional()
|
|
12
12
|
}).describe("Model for a webhook configuration.");
|
|
13
13
|
const formsiteGetWebhooks = action("FORMSITE_GET_WEBHOOKS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhooks.mjs","names":[],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetWebhooksInput
|
|
1
|
+
{"version":3,"file":"get-webhooks.mjs","names":[],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteGetWebhooksInput = z.object({\n form_id: z.string().describe(\"The form directory/ID to fetch webhooks 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}).describe(\"Request model for getting form webhooks.\");\nconst FormsiteGetWebhooks_WebhookConfigSchema = z.object({\n url: z.string().describe(\"The URL where webhook notifications are sent\").nullable(),\n event: z.string().describe(\"The event type that triggers the webhook (e.g., 'result_completed')\").nullable(),\n handshake_key: z.string().describe(\"Optional handshake key for webhook security validation\").nullable().optional(),\n}).describe(\"Model for a webhook configuration.\");\nexport const FormsiteGetWebhooksOutput = z.object({\n webhooks: z.array(FormsiteGetWebhooks_WebhookConfigSchema).describe(\"List of webhook configurations\"),\n}).describe(\"Response model for getting form webhooks.\");\n\nexport const formsiteGetWebhooks = action(\"FORMSITE_GET_WEBHOOKS\", {\n slug: \"formsite-get-webhooks\",\n name: \"Get Form Webhooks\",\n description: \"Retrieves all webhooks configured for a specific form in FormSite. This action returns webhook configurations including URL, event type (e.g., 'result_completed'), and optional handshake_key for security. Webhooks notify external URLs when form events occur. **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: FormsiteGetWebhooksInput,\n output: FormsiteGetWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;AACrT,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,0CAA0C,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAKhD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,UAAU,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,gCAAgC,EACtG,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -3,19 +3,19 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-all-forms.ts
|
|
4
4
|
const FormsiteListAllFormsInput = zod.z.object({ 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() }).describe("Request model for List All Forms action.");
|
|
5
5
|
const FormsiteListAllForms_FormStatsSchema = zod.z.object({
|
|
6
|
-
filesSize: zod.z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing."),
|
|
7
|
-
resultsCount: zod.z.number().int().describe("The number of results the form is storing.")
|
|
6
|
+
filesSize: zod.z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing.").nullable(),
|
|
7
|
+
resultsCount: zod.z.number().int().describe("The number of results the form is storing.").nullable()
|
|
8
8
|
}).describe("Model for form statistics.");
|
|
9
9
|
const FormsiteListAllForms_FormPublishSchema = zod.z.object({
|
|
10
|
-
link: zod.z.string().describe("The form's share link."),
|
|
11
|
-
embed_code: zod.z.string().describe("The form's share embed code.")
|
|
10
|
+
link: zod.z.string().describe("The form's share link.").nullable(),
|
|
11
|
+
embed_code: zod.z.string().describe("The form's share embed code.").nullable()
|
|
12
12
|
}).describe("Model for form publish information.");
|
|
13
13
|
const FormsiteListAllForms_FormInfoSchema = zod.z.object({
|
|
14
|
-
name: zod.z.string().describe("The form's name."),
|
|
15
|
-
state: zod.z.string().describe("The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason."),
|
|
14
|
+
name: zod.z.string().describe("The form's name.").nullable(),
|
|
15
|
+
state: zod.z.string().describe("The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason.").nullable(),
|
|
16
16
|
stats: FormsiteListAllForms_FormStatsSchema.nullable(),
|
|
17
17
|
publish: FormsiteListAllForms_FormPublishSchema.nullable(),
|
|
18
|
-
directory: zod.z.string().describe("The form's URL directory."),
|
|
18
|
+
directory: zod.z.string().describe("The form's URL directory.").nullable(),
|
|
19
19
|
description: zod.z.string().describe("Optional. The form's description, if set on form's Settings -> General page.").nullable().optional()
|
|
20
20
|
}).describe("Model for individual form information.");
|
|
21
21
|
const FormsiteListAllFormsOutput = zod.z.object({ forms: zod.z.array(FormsiteListAllForms_FormInfoSchema).describe("List of forms with their details.") }).describe("Response model for List All Forms action.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteListAllFormsInput
|
|
1
|
+
{"version":3,"file":"list-all-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteListAllFormsInput = z.object({\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 List All Forms action.\");\nconst FormsiteListAllForms_FormStatsSchema = z.object({\n filesSize: z.number().int().describe(\"The total size, in bytes, of any uploaded files the form is storing.\").nullable(),\n resultsCount: z.number().int().describe(\"The number of results the form is storing.\").nullable(),\n}).describe(\"Model for form statistics.\");\nconst FormsiteListAllForms_FormPublishSchema = z.object({\n link: z.string().describe(\"The form's share link.\").nullable(),\n embed_code: z.string().describe(\"The form's share embed code.\").nullable(),\n}).describe(\"Model for form publish information.\");\nconst FormsiteListAllForms_FormInfoSchema = z.object({\n name: z.string().describe(\"The form's name.\").nullable(),\n state: z.string().describe(\"The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason.\").nullable(),\n stats: FormsiteListAllForms_FormStatsSchema.nullable(),\n publish: FormsiteListAllForms_FormPublishSchema.nullable(),\n directory: z.string().describe(\"The form's URL directory.\").nullable(),\n description: z.string().describe(\"Optional. The form's description, if set on form's Settings -> General page.\").nullable().optional(),\n}).describe(\"Model for individual form information.\");\nexport const FormsiteListAllFormsOutput = z.object({\n forms: z.array(FormsiteListAllForms_FormInfoSchema).describe(\"List of forms with their details.\"),\n}).describe(\"Response model for List All Forms action.\");\n\nexport const formsiteListAllForms = action(\"FORMSITE_LIST_ALL_FORMS\", {\n slug: \"formsite-list-all-forms\",\n name: \"List All Forms\",\n description: \"Retrieves a list of all forms in the user's Formsite account. This action returns detailed information about each form including: - Form directory (identifier for accessing the form via API) - Form name (the display name of the form) - Description (optional internal description) - Publish information (embed code and public link) - State (open/closed status) - Statistics (file storage size and results count) The form directory returned by this action can be used with other Formsite actions like Get Form Details, Get Form Items, and Get Form 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: FormsiteListAllFormsInput,\n output: FormsiteListAllFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS,EACrT,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,OAAO,qCAAqC,SAAS;CACrD,SAAS,uCAAuC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,OAAOA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EAClG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-all-forms.d.ts
|
|
4
|
-
declare const FormsiteListAllFormsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteListAllFormsInput: z.ZodObject<{
|
|
5
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const FormsiteListAllFormsOutput: z.ZodObject<{
|
|
8
|
+
forms: z.ZodArray<z.ZodObject<{
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
state: z.ZodNullable<z.ZodString>;
|
|
11
|
+
stats: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
filesSize: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
resultsCount: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
publish: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
link: z.ZodNullable<z.ZodString>;
|
|
17
|
+
embed_code: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
directory: z.ZodNullable<z.ZodString>;
|
|
20
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const formsiteListAllForms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
user_dir?: string | undefined;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { formsiteListAllForms };
|
|
9
28
|
//# sourceMappingURL=list-all-forms.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-forms.d.cts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"list-all-forms.d.cts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-all-forms.d.ts
|
|
4
|
-
declare const FormsiteListAllFormsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FormsiteListAllFormsInput: z.ZodObject<{
|
|
5
|
+
user_dir: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const FormsiteListAllFormsOutput: z.ZodObject<{
|
|
8
|
+
forms: z.ZodArray<z.ZodObject<{
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
state: z.ZodNullable<z.ZodString>;
|
|
11
|
+
stats: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
filesSize: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
resultsCount: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
publish: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
link: z.ZodNullable<z.ZodString>;
|
|
17
|
+
embed_code: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
directory: z.ZodNullable<z.ZodString>;
|
|
20
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const formsiteListAllForms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
user_dir?: string | undefined;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { formsiteListAllForms };
|
|
9
28
|
//# sourceMappingURL=list-all-forms.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-forms.d.mts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"list-all-forms.d.mts","names":[],"sources":["../../src/actions/list-all-forms.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAmBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -3,19 +3,19 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-all-forms.ts
|
|
4
4
|
const FormsiteListAllFormsInput = z.object({ 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() }).describe("Request model for List All Forms action.");
|
|
5
5
|
const FormsiteListAllForms_FormStatsSchema = z.object({
|
|
6
|
-
filesSize: z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing."),
|
|
7
|
-
resultsCount: z.number().int().describe("The number of results the form is storing.")
|
|
6
|
+
filesSize: z.number().int().describe("The total size, in bytes, of any uploaded files the form is storing.").nullable(),
|
|
7
|
+
resultsCount: z.number().int().describe("The number of results the form is storing.").nullable()
|
|
8
8
|
}).describe("Model for form statistics.");
|
|
9
9
|
const FormsiteListAllForms_FormPublishSchema = z.object({
|
|
10
|
-
link: z.string().describe("The form's share link."),
|
|
11
|
-
embed_code: z.string().describe("The form's share embed code.")
|
|
10
|
+
link: z.string().describe("The form's share link.").nullable(),
|
|
11
|
+
embed_code: z.string().describe("The form's share embed code.").nullable()
|
|
12
12
|
}).describe("Model for form publish information.");
|
|
13
13
|
const FormsiteListAllForms_FormInfoSchema = z.object({
|
|
14
|
-
name: z.string().describe("The form's name."),
|
|
15
|
-
state: z.string().describe("The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason."),
|
|
14
|
+
name: z.string().describe("The form's name.").nullable(),
|
|
15
|
+
state: z.string().describe("The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason.").nullable(),
|
|
16
16
|
stats: FormsiteListAllForms_FormStatsSchema.nullable(),
|
|
17
17
|
publish: FormsiteListAllForms_FormPublishSchema.nullable(),
|
|
18
|
-
directory: z.string().describe("The form's URL directory."),
|
|
18
|
+
directory: z.string().describe("The form's URL directory.").nullable(),
|
|
19
19
|
description: z.string().describe("Optional. The form's description, if set on form's Settings -> General page.").nullable().optional()
|
|
20
20
|
}).describe("Model for individual form information.");
|
|
21
21
|
const formsiteListAllForms = action("FORMSITE_LIST_ALL_FORMS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-forms.mjs","names":[],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteListAllFormsInput
|
|
1
|
+
{"version":3,"file":"list-all-forms.mjs","names":[],"sources":["../../src/actions/list-all-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FormsiteListAllFormsInput = z.object({\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 List All Forms action.\");\nconst FormsiteListAllForms_FormStatsSchema = z.object({\n filesSize: z.number().int().describe(\"The total size, in bytes, of any uploaded files the form is storing.\").nullable(),\n resultsCount: z.number().int().describe(\"The number of results the form is storing.\").nullable(),\n}).describe(\"Model for form statistics.\");\nconst FormsiteListAllForms_FormPublishSchema = z.object({\n link: z.string().describe(\"The form's share link.\").nullable(),\n embed_code: z.string().describe(\"The form's share embed code.\").nullable(),\n}).describe(\"Model for form publish information.\");\nconst FormsiteListAllForms_FormInfoSchema = z.object({\n name: z.string().describe(\"The form's name.\").nullable(),\n state: z.string().describe(\"The form's open/close state. If open, value is 'open'. If closed, begins with 'closed' followed by reason.\").nullable(),\n stats: FormsiteListAllForms_FormStatsSchema.nullable(),\n publish: FormsiteListAllForms_FormPublishSchema.nullable(),\n directory: z.string().describe(\"The form's URL directory.\").nullable(),\n description: z.string().describe(\"Optional. The form's description, if set on form's Settings -> General page.\").nullable().optional(),\n}).describe(\"Model for individual form information.\");\nexport const FormsiteListAllFormsOutput = z.object({\n forms: z.array(FormsiteListAllForms_FormInfoSchema).describe(\"List of forms with their details.\"),\n}).describe(\"Response model for List All Forms action.\");\n\nexport const formsiteListAllForms = action(\"FORMSITE_LIST_ALL_FORMS\", {\n slug: \"formsite-list-all-forms\",\n name: \"List All Forms\",\n description: \"Retrieves a list of all forms in the user's Formsite account. This action returns detailed information about each form including: - Form directory (identifier for accessing the form via API) - Form name (the display name of the form) - Description (optional internal description) - Publish information (embed code and public link) - State (open/closed status) - Statistics (file storage size and results count) The form directory returned by this action can be used with other Formsite actions like Get Form Details, Get Form Items, and Get Form 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: FormsiteListAllFormsInput,\n output: FormsiteListAllFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS,EACrT,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,uCAAuC,EAAE,OAAO;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClJ,OAAO,qCAAqC,SAAS;CACrD,SAAS,uCAAuC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAKpD,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,OAAO,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,mCAAmC,EAClG,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,19 @@ const formsiteCatalog = {
|
|
|
7
7
|
"category": "Forms & Surveys",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/formsite",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"full": {
|
|
13
|
+
"label": "Formsite API Base URL",
|
|
14
|
+
"description": "Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID"
|
|
15
|
+
},
|
|
16
|
+
"api_key": {
|
|
17
|
+
"label": "API Key",
|
|
18
|
+
"secret": true,
|
|
19
|
+
"description": "The API key generated from your Formsite account."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"credentialScheme": "API_KEY"
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
exports.formsiteCatalog = formsiteCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const formsiteCatalog = {\n \"slug\": \"formsite\",\n \"name\": \"Formsite\",\n \"description\": \"Formsite helps users create online forms and surveys with drag-and-drop tools, secure data capture, and integrations to simplify workflows\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/formsite\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const formsiteCatalog = {\n \"slug\": \"formsite\",\n \"name\": \"Formsite\",\n \"description\": \"Formsite helps users create online forms and surveys with drag-and-drop tools, secure data capture, and integrations to simplify workflows\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/formsite\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"full\": {\n \"label\": \"Formsite API Base URL\",\n \"description\": \"Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID\"\n },\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"The API key generated from your Formsite account.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,18 @@ declare const formsiteCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/formsite";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly full: {
|
|
13
|
+
readonly label: "Formsite API Base URL";
|
|
14
|
+
readonly description: "Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID";
|
|
15
|
+
};
|
|
16
|
+
readonly api_key: {
|
|
17
|
+
readonly label: "API Key";
|
|
18
|
+
readonly secret: true;
|
|
19
|
+
readonly description: "The API key generated from your Formsite account.";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly credentialScheme: "API_KEY";
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
export { formsiteCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,18 @@ declare const formsiteCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/formsite";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly full: {
|
|
13
|
+
readonly label: "Formsite API Base URL";
|
|
14
|
+
readonly description: "Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID";
|
|
15
|
+
};
|
|
16
|
+
readonly api_key: {
|
|
17
|
+
readonly label: "API Key";
|
|
18
|
+
readonly secret: true;
|
|
19
|
+
readonly description: "The API key generated from your Formsite account.";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly credentialScheme: "API_KEY";
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
export { formsiteCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,19 @@ const formsiteCatalog = {
|
|
|
7
7
|
"category": "Forms & Surveys",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/formsite",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"full": {
|
|
13
|
+
"label": "Formsite API Base URL",
|
|
14
|
+
"description": "Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID"
|
|
15
|
+
},
|
|
16
|
+
"api_key": {
|
|
17
|
+
"label": "API Key",
|
|
18
|
+
"secret": true,
|
|
19
|
+
"description": "The API key generated from your Formsite account."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"credentialScheme": "API_KEY"
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
export { formsiteCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const formsiteCatalog = {\n \"slug\": \"formsite\",\n \"name\": \"Formsite\",\n \"description\": \"Formsite helps users create online forms and surveys with drag-and-drop tools, secure data capture, and integrations to simplify workflows\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/formsite\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const formsiteCatalog = {\n \"slug\": \"formsite\",\n \"name\": \"Formsite\",\n \"description\": \"Formsite helps users create online forms and surveys with drag-and-drop tools, secure data capture, and integrations to simplify workflows\",\n \"category\": \"Forms & Surveys\",\n \"logo\": \"https://logos.composio.dev/api/formsite\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"full\": {\n \"label\": \"Formsite API Base URL\",\n \"description\": \"Your Formsite API base URL. Example: https://fs8.formsite.com/api/v2/YOUR_USER_ID\"\n },\n \"api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"The API key generated from your Formsite account.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,QAAQ;GACN,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/formsite",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|