@keystrokehq/refiner 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +1 -1
- package/dist/actions/delete-contact.d.mts +1 -1
- package/dist/actions/delete-contact.mjs +1 -1
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/get-account-info.cjs +3 -3
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +3 -3
- package/dist/actions/get-account-info.d.mts +3 -3
- package/dist/actions/get-account-info.mjs +3 -3
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +3 -3
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +3 -3
- package/dist/actions/get-contact.d.mts +3 -3
- package/dist/actions/get-contact.mjs +3 -3
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-contacts.cjs +5 -5
- package/dist/actions/get-contacts.cjs.map +1 -1
- package/dist/actions/get-contacts.d.cts +5 -5
- package/dist/actions/get-contacts.d.mts +5 -5
- package/dist/actions/get-contacts.mjs +5 -5
- package/dist/actions/get-contacts.mjs.map +1 -1
- package/dist/actions/get-forms.cjs +3 -3
- package/dist/actions/get-forms.cjs.map +1 -1
- package/dist/actions/get-forms.d.cts +3 -3
- package/dist/actions/get-forms.d.mts +3 -3
- package/dist/actions/get-forms.mjs +3 -3
- package/dist/actions/get-forms.mjs.map +1 -1
- package/dist/actions/get-reporting.cjs +2 -2
- package/dist/actions/get-reporting.cjs.map +1 -1
- package/dist/actions/get-reporting.d.cts +2 -2
- package/dist/actions/get-reporting.d.mts +2 -2
- package/dist/actions/get-reporting.mjs +2 -2
- package/dist/actions/get-reporting.mjs.map +1 -1
- package/dist/actions/get-responses.cjs +7 -7
- package/dist/actions/get-responses.cjs.map +1 -1
- package/dist/actions/get-responses.d.cts +7 -7
- package/dist/actions/get-responses.d.mts +7 -7
- package/dist/actions/get-responses.mjs +7 -7
- package/dist/actions/get-responses.mjs.map +1 -1
- package/dist/actions/get-segments.cjs +3 -3
- package/dist/actions/get-segments.cjs.map +1 -1
- package/dist/actions/get-segments.d.cts +3 -3
- package/dist/actions/get-segments.d.mts +3 -3
- package/dist/actions/get-segments.mjs +3 -3
- package/dist/actions/get-segments.mjs.map +1 -1
- package/dist/actions/track-event.cjs +1 -1
- package/dist/actions/track-event.cjs.map +1 -1
- package/dist/actions/track-event.d.cts +1 -1
- package/dist/actions/track-event.d.mts +1 -1
- package/dist/actions/track-event.mjs +1 -1
- package/dist/actions/track-event.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +2 -2
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +3 -3
- package/dist/actions/update-contact.d.mts +3 -3
- package/dist/actions/update-contact.mjs +2 -2
- package/dist/actions/update-contact.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -29,18 +29,18 @@ const RefinerGetForms_FormItemSchema = zod.z.object({
|
|
|
29
29
|
responses_count: zod.z.number().int().describe("Number of responses received.").nullable().optional(),
|
|
30
30
|
last_form_view_at: zod.z.string().describe("Timestamp of last form view.").nullable().optional(),
|
|
31
31
|
first_form_view_at: zod.z.string().describe("Timestamp of first form view.").nullable().optional()
|
|
32
|
-
});
|
|
32
|
+
}).passthrough();
|
|
33
33
|
const RefinerGetForms_PaginationSchema = zod.z.object({
|
|
34
34
|
last_page: zod.z.number().int().describe("Last available page number.").nullable(),
|
|
35
35
|
items_count: zod.z.number().int().describe("Total number of forms.").nullable(),
|
|
36
36
|
page_length: zod.z.number().int().describe("Number of items per page.").nullable(),
|
|
37
37
|
current_page: zod.z.number().int().describe("Current page number.").nullable(),
|
|
38
38
|
next_page_cursor: zod.z.string().describe("Cursor for fetching the next page, if available.").nullable().optional()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const RefinerGetFormsOutput = zod.z.object({
|
|
41
41
|
items: zod.z.array(RefinerGetForms_FormItemSchema).describe("List of forms matching the query."),
|
|
42
42
|
pagination: RefinerGetForms_PaginationSchema.nullable()
|
|
43
|
-
});
|
|
43
|
+
}).passthrough();
|
|
44
44
|
const refinerGetForms = require_action.action("REFINER_GET_FORMS", {
|
|
45
45
|
slug: "refiner-get-forms",
|
|
46
46
|
name: "Get Forms",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-forms.cjs","names":["z","action"],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n});\nconst RefinerGetForms_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of forms.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for fetching the next page, if available.\").nullable().optional(),\n});\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n});\n\nexport const refinerGetForms = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n input: RefinerGetFormsInput,\n output: RefinerGetFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAa;EAAU;EAAY;CAAmB,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAClN,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS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AS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC;
|
|
1
|
+
{"version":3,"file":"get-forms.cjs","names":["z","action"],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n}).passthrough();\nconst RefinerGetForms_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of forms.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for fetching the next page, if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetForms = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n input: RefinerGetFormsInput,\n output: RefinerGetFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAa;EAAU;EAAY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,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,OAAOA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,mCAAmC;CAC3F,YAAY,iCAAiC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -30,15 +30,15 @@ declare const RefinerGetFormsOutput: z.ZodObject<{
|
|
|
30
30
|
responses_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
31
|
last_form_view_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
first_form_view_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
pagination: z.ZodNullable<z.ZodObject<{
|
|
35
35
|
last_page: z.ZodNullable<z.ZodNumber>;
|
|
36
36
|
items_count: z.ZodNullable<z.ZodNumber>;
|
|
37
37
|
page_length: z.ZodNullable<z.ZodNumber>;
|
|
38
38
|
current_page: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
}, z.core.$loose>;
|
|
42
42
|
declare const refinerGetForms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
43
43
|
list?: "all" | "published" | "drafts" | "archived" | "all_with_archived" | undefined;
|
|
44
44
|
page?: number | undefined;
|
|
@@ -30,15 +30,15 @@ declare const RefinerGetFormsOutput: z.ZodObject<{
|
|
|
30
30
|
responses_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
31
|
last_form_view_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
first_form_view_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
pagination: z.ZodNullable<z.ZodObject<{
|
|
35
35
|
last_page: z.ZodNullable<z.ZodNumber>;
|
|
36
36
|
items_count: z.ZodNullable<z.ZodNumber>;
|
|
37
37
|
page_length: z.ZodNullable<z.ZodNumber>;
|
|
38
38
|
current_page: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
}, z.core.$loose>;
|
|
42
42
|
declare const refinerGetForms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
43
43
|
list?: "all" | "published" | "drafts" | "archived" | "all_with_archived" | undefined;
|
|
44
44
|
page?: number | undefined;
|
|
@@ -29,14 +29,14 @@ const RefinerGetForms_FormItemSchema = z.object({
|
|
|
29
29
|
responses_count: z.number().int().describe("Number of responses received.").nullable().optional(),
|
|
30
30
|
last_form_view_at: z.string().describe("Timestamp of last form view.").nullable().optional(),
|
|
31
31
|
first_form_view_at: z.string().describe("Timestamp of first form view.").nullable().optional()
|
|
32
|
-
});
|
|
32
|
+
}).passthrough();
|
|
33
33
|
const RefinerGetForms_PaginationSchema = z.object({
|
|
34
34
|
last_page: z.number().int().describe("Last available page number.").nullable(),
|
|
35
35
|
items_count: z.number().int().describe("Total number of forms.").nullable(),
|
|
36
36
|
page_length: z.number().int().describe("Number of items per page.").nullable(),
|
|
37
37
|
current_page: z.number().int().describe("Current page number.").nullable(),
|
|
38
38
|
next_page_cursor: z.string().describe("Cursor for fetching the next page, if available.").nullable().optional()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const refinerGetForms = action("REFINER_GET_FORMS", {
|
|
41
41
|
slug: "refiner-get-forms",
|
|
42
42
|
name: "Get Forms",
|
|
@@ -45,7 +45,7 @@ const refinerGetForms = action("REFINER_GET_FORMS", {
|
|
|
45
45
|
output: z.object({
|
|
46
46
|
items: z.array(RefinerGetForms_FormItemSchema).describe("List of forms matching the query."),
|
|
47
47
|
pagination: RefinerGetForms_PaginationSchema.nullable()
|
|
48
|
-
})
|
|
48
|
+
}).passthrough()
|
|
49
49
|
});
|
|
50
50
|
//#endregion
|
|
51
51
|
export { refinerGetForms };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-forms.mjs","names":[],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n});\nconst RefinerGetForms_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of forms.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for fetching the next page, if available.\").nullable().optional(),\n});\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n});\n\nexport const refinerGetForms = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n input: RefinerGetFormsInput,\n output: RefinerGetFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,KAAK;EAAC;EAAO;EAAa;EAAU;EAAY;CAAmB,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAClN,MAAM,EAAE,OAAO,CAAC,CAAC,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AAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC;
|
|
1
|
+
{"version":3,"file":"get-forms.mjs","names":[],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n}).passthrough();\nconst RefinerGetForms_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of forms.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for fetching the next page, if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetForms = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n input: RefinerGetFormsInput,\n output: RefinerGetFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,KAAK;EAAC;EAAO;EAAa;EAAU;EAAY;CAAmB,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC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O;CACP,QAVmC,EAAE,OAAO;EAC5C,OAAO,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,mCAAmC;EAC3F,YAAY,iCAAiC,SAAS;CACxD,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ const RefinerGetReportingOutput = zod.z.object({
|
|
|
20
20
|
nps: zod.z.number().int().describe("Calculated Net Promoter Score (only for 'nps' report).").nullable().optional(),
|
|
21
21
|
sum: zod.z.number().int().describe("Sum of all rating values (only for 'ratings' report).").nullable().optional(),
|
|
22
22
|
csat: zod.z.number().int().describe("Calculated Customer Satisfaction Score (only for 'csat' report).").nullable().optional(),
|
|
23
|
-
data: zod.z.union([zod.z.
|
|
23
|
+
data: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
24
24
|
count: zod.z.number().int().describe("Total count of data points (e.g., total responses).").nullable().optional(),
|
|
25
25
|
views: zod.z.number().int().describe("Number of survey views (only for 'count' report).").nullable().optional(),
|
|
26
26
|
average: zod.z.number().describe("Average rating value (only for 'ratings' report).").nullable().optional(),
|
|
@@ -28,7 +28,7 @@ const RefinerGetReportingOutput = zod.z.object({
|
|
|
28
28
|
datapoints: zod.z.number().int().describe("Number of total data points considered (only for 'distribution' report).").nullable().optional(),
|
|
29
29
|
date_range_end: zod.z.string().describe("End of the date range for the report (ISO8601 format).").nullable(),
|
|
30
30
|
date_range_start: zod.z.string().describe("Start of the date range for the report (ISO8601 format).").nullable()
|
|
31
|
-
}).describe("Response schema for GET_REPORTING.");
|
|
31
|
+
}).passthrough().describe("Response schema for GET_REPORTING.");
|
|
32
32
|
const refinerGetReporting = require_action.action("REFINER_GET_REPORTING", {
|
|
33
33
|
slug: "refiner-get-reporting",
|
|
34
34
|
name: "Get Reporting",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reporting.cjs","names":["z","action"],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.
|
|
1
|
+
{"version":3,"file":"get-reporting.cjs","names":["z","action"],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAW;EAAgB;CAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;CACrK,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACpL,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACzL,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC1J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACnK,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;AACjP,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAA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ZodNumber>>;
|
|
21
21
|
sum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
22
|
csat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
23
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
24
24
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
views: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
average: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -28,7 +28,7 @@ declare const RefinerGetReportingOutput: z.ZodObject<{
|
|
|
28
28
|
datapoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
date_range_end: z.ZodNullable<z.ZodString>;
|
|
30
30
|
date_range_start: z.ZodNullable<z.ZodString>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const refinerGetReporting: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
type: "nps" | "csat" | "ratings" | "distribution" | "count";
|
|
34
34
|
tag_uuids?: string[] | undefined;
|
|
@@ -20,7 +20,7 @@ declare const RefinerGetReportingOutput: z.ZodObject<{
|
|
|
20
20
|
nps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
21
|
sum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
22
|
csat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
23
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
24
24
|
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
views: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
average: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -28,7 +28,7 @@ declare const RefinerGetReportingOutput: z.ZodObject<{
|
|
|
28
28
|
datapoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
date_range_end: z.ZodNullable<z.ZodString>;
|
|
30
30
|
date_range_start: z.ZodNullable<z.ZodString>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const refinerGetReporting: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
type: "nps" | "csat" | "ratings" | "distribution" | "count";
|
|
34
34
|
tag_uuids?: string[] | undefined;
|
|
@@ -23,7 +23,7 @@ const refinerGetReporting = action("REFINER_GET_REPORTING", {
|
|
|
23
23
|
nps: z.number().int().describe("Calculated Net Promoter Score (only for 'nps' report).").nullable().optional(),
|
|
24
24
|
sum: z.number().int().describe("Sum of all rating values (only for 'ratings' report).").nullable().optional(),
|
|
25
25
|
csat: z.number().int().describe("Calculated Customer Satisfaction Score (only for 'csat' report).").nullable().optional(),
|
|
26
|
-
data: z.union([z.
|
|
26
|
+
data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),
|
|
27
27
|
count: z.number().int().describe("Total count of data points (e.g., total responses).").nullable().optional(),
|
|
28
28
|
views: z.number().int().describe("Number of survey views (only for 'count' report).").nullable().optional(),
|
|
29
29
|
average: z.number().describe("Average rating value (only for 'ratings' report).").nullable().optional(),
|
|
@@ -31,7 +31,7 @@ const refinerGetReporting = action("REFINER_GET_REPORTING", {
|
|
|
31
31
|
datapoints: z.number().int().describe("Number of total data points considered (only for 'distribution' report).").nullable().optional(),
|
|
32
32
|
date_range_end: z.string().describe("End of the date range for the report (ISO8601 format).").nullable(),
|
|
33
33
|
date_range_start: z.string().describe("Start of the date range for the report (ISO8601 format).").nullable()
|
|
34
|
-
}).describe("Response schema for GET_REPORTING.")
|
|
34
|
+
}).passthrough().describe("Response schema for GET_REPORTING.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { refinerGetReporting };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reporting.mjs","names":[],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.
|
|
1
|
+
{"version":3,"file":"get-reporting.mjs","names":[],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":";;AA2BA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BsC,EAAE,OAAO;EAC/C,MAAM,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAW;GAAgB;EAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;EACrK,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EAC9K,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;EACpL,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;EACzL,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EAC1J,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EACnK,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACjP,CAAC,CAAC,CAAC,SAAS,uCAmBH;CACP,QAnBuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
|
|
@@ -22,22 +22,22 @@ const RefinerGetResponsesInput = zod.z.object({
|
|
|
22
22
|
const RefinerGetResponses_FormInfoSchema = zod.z.object({
|
|
23
23
|
name: zod.z.string().describe("Survey form name.").nullable(),
|
|
24
24
|
uuid: zod.z.string().describe("Survey form UUID.").nullable()
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const RefinerGetResponses_AccountInfoSchema = zod.z.object({
|
|
27
27
|
uuid: zod.z.string().describe("Account UUID.").nullable(),
|
|
28
28
|
domain: zod.z.string().describe("Account domain if available.").nullable().optional(),
|
|
29
29
|
remote_id: zod.z.string().describe("External account ID.").nullable(),
|
|
30
30
|
display_name: zod.z.string().describe("Account display name.").nullable()
|
|
31
|
-
});
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const RefinerGetResponses_ContactInfoSchema = zod.z.object({
|
|
33
33
|
uuid: zod.z.string().describe("Contact UUID.").nullable(),
|
|
34
34
|
email: zod.z.string().describe("Contact email address.").nullable(),
|
|
35
35
|
account: RefinerGetResponses_AccountInfoSchema.nullable(),
|
|
36
36
|
remote_id: zod.z.string().describe("External user ID.").nullable(),
|
|
37
37
|
display_name: zod.z.string().describe("Contact display name.").nullable()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const RefinerGetResponses_ResponseItemSchema = zod.z.object({
|
|
40
|
-
data: zod.z.
|
|
40
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Survey answers keyed by question identifiers."),
|
|
41
41
|
form: RefinerGetResponses_FormInfoSchema.nullable(),
|
|
42
42
|
uuid: zod.z.string().describe("Response UUID.").nullable(),
|
|
43
43
|
contact: RefinerGetResponses_ContactInfoSchema.nullable(),
|
|
@@ -49,18 +49,18 @@ const RefinerGetResponses_ResponseItemSchema = zod.z.object({
|
|
|
49
49
|
first_shown_at: zod.z.string().describe("Timestamp when survey was first shown.").nullable(),
|
|
50
50
|
last_data_reception_at: zod.z.string().describe("Timestamp when data was last received.").nullable(),
|
|
51
51
|
first_data_reception_at: zod.z.string().describe("Timestamp when data was first received.").nullable()
|
|
52
|
-
});
|
|
52
|
+
}).passthrough();
|
|
53
53
|
const RefinerGetResponses_PaginationSchema = zod.z.object({
|
|
54
54
|
last_page: zod.z.number().int().describe("Last page number.").nullable().optional(),
|
|
55
55
|
items_count: zod.z.number().int().describe("Total number of items.").nullable().optional(),
|
|
56
56
|
page_length: zod.z.number().int().describe("Items per page.").nullable().optional(),
|
|
57
57
|
current_page: zod.z.number().int().describe("Current page number.").nullable().optional(),
|
|
58
58
|
next_page_cursor: zod.z.string().describe("Cursor for next page if available.").nullable().optional()
|
|
59
|
-
});
|
|
59
|
+
}).passthrough();
|
|
60
60
|
const RefinerGetResponsesOutput = zod.z.object({
|
|
61
61
|
items: zod.z.array(RefinerGetResponses_ResponseItemSchema).describe("List of survey responses."),
|
|
62
62
|
pagination: RefinerGetResponses_PaginationSchema.nullable()
|
|
63
|
-
});
|
|
63
|
+
}).passthrough();
|
|
64
64
|
const refinerGetResponses = require_action.action("REFINER_GET_RESPONSES", {
|
|
65
65
|
slug: "refiner-get-responses",
|
|
66
66
|
name: "Get Survey Responses",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-responses.cjs","names":["z","action"],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n});\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n});\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n});\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.
|
|
1
|
+
{"version":3,"file":"get-responses.cjs","names":["z","action"],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAY;CAAK,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,MAAM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esInput: z.ZodObject<{
|
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
23
23
|
items: z.ZodArray<z.ZodObject<{
|
|
24
|
-
data: z.
|
|
24
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
25
|
form: z.ZodNullable<z.ZodObject<{
|
|
26
26
|
name: z.ZodNullable<z.ZodString>;
|
|
27
27
|
uuid: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
uuid: z.ZodNullable<z.ZodString>;
|
|
30
30
|
contact: z.ZodNullable<z.ZodObject<{
|
|
31
31
|
uuid: z.ZodNullable<z.ZodString>;
|
|
@@ -35,10 +35,10 @@ declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
|
35
35
|
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
remote_id: z.ZodNullable<z.ZodString>;
|
|
37
37
|
display_name: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
39
|
remote_id: z.ZodNullable<z.ZodString>;
|
|
40
40
|
display_name: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
received_at: z.ZodNullable<z.ZodString>;
|
|
43
43
|
completed_at: z.ZodNullable<z.ZodString>;
|
|
44
44
|
dismissed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -47,15 +47,15 @@ declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
|
47
47
|
first_shown_at: z.ZodNullable<z.ZodString>;
|
|
48
48
|
last_data_reception_at: z.ZodNullable<z.ZodString>;
|
|
49
49
|
first_data_reception_at: z.ZodNullable<z.ZodString>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
51
|
pagination: z.ZodNullable<z.ZodObject<{
|
|
52
52
|
last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
53
|
items_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
54
|
page_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
55
|
current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
56
|
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
}, z.core.$
|
|
58
|
-
}, z.core.$
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
59
|
declare const refinerGetResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
60
|
page?: number | undefined;
|
|
61
61
|
search?: string | undefined;
|
|
@@ -21,11 +21,11 @@ declare const RefinerGetResponsesInput: z.ZodObject<{
|
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
23
23
|
items: z.ZodArray<z.ZodObject<{
|
|
24
|
-
data: z.
|
|
24
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
25
|
form: z.ZodNullable<z.ZodObject<{
|
|
26
26
|
name: z.ZodNullable<z.ZodString>;
|
|
27
27
|
uuid: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
uuid: z.ZodNullable<z.ZodString>;
|
|
30
30
|
contact: z.ZodNullable<z.ZodObject<{
|
|
31
31
|
uuid: z.ZodNullable<z.ZodString>;
|
|
@@ -35,10 +35,10 @@ declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
|
35
35
|
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
remote_id: z.ZodNullable<z.ZodString>;
|
|
37
37
|
display_name: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
39
|
remote_id: z.ZodNullable<z.ZodString>;
|
|
40
40
|
display_name: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
received_at: z.ZodNullable<z.ZodString>;
|
|
43
43
|
completed_at: z.ZodNullable<z.ZodString>;
|
|
44
44
|
dismissed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -47,15 +47,15 @@ declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
|
47
47
|
first_shown_at: z.ZodNullable<z.ZodString>;
|
|
48
48
|
last_data_reception_at: z.ZodNullable<z.ZodString>;
|
|
49
49
|
first_data_reception_at: z.ZodNullable<z.ZodString>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
51
|
pagination: z.ZodNullable<z.ZodObject<{
|
|
52
52
|
last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
53
|
items_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
54
|
page_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
55
|
current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
56
|
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
}, z.core.$
|
|
58
|
-
}, z.core.$
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
59
|
declare const refinerGetResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
60
|
page?: number | undefined;
|
|
61
61
|
search?: string | undefined;
|
|
@@ -22,22 +22,22 @@ const RefinerGetResponsesInput = z.object({
|
|
|
22
22
|
const RefinerGetResponses_FormInfoSchema = z.object({
|
|
23
23
|
name: z.string().describe("Survey form name.").nullable(),
|
|
24
24
|
uuid: z.string().describe("Survey form UUID.").nullable()
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const RefinerGetResponses_AccountInfoSchema = z.object({
|
|
27
27
|
uuid: z.string().describe("Account UUID.").nullable(),
|
|
28
28
|
domain: z.string().describe("Account domain if available.").nullable().optional(),
|
|
29
29
|
remote_id: z.string().describe("External account ID.").nullable(),
|
|
30
30
|
display_name: z.string().describe("Account display name.").nullable()
|
|
31
|
-
});
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const RefinerGetResponses_ContactInfoSchema = z.object({
|
|
33
33
|
uuid: z.string().describe("Contact UUID.").nullable(),
|
|
34
34
|
email: z.string().describe("Contact email address.").nullable(),
|
|
35
35
|
account: RefinerGetResponses_AccountInfoSchema.nullable(),
|
|
36
36
|
remote_id: z.string().describe("External user ID.").nullable(),
|
|
37
37
|
display_name: z.string().describe("Contact display name.").nullable()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const RefinerGetResponses_ResponseItemSchema = z.object({
|
|
40
|
-
data: z.
|
|
40
|
+
data: z.record(z.string(), z.unknown()).describe("Survey answers keyed by question identifiers."),
|
|
41
41
|
form: RefinerGetResponses_FormInfoSchema.nullable(),
|
|
42
42
|
uuid: z.string().describe("Response UUID.").nullable(),
|
|
43
43
|
contact: RefinerGetResponses_ContactInfoSchema.nullable(),
|
|
@@ -49,14 +49,14 @@ const RefinerGetResponses_ResponseItemSchema = z.object({
|
|
|
49
49
|
first_shown_at: z.string().describe("Timestamp when survey was first shown.").nullable(),
|
|
50
50
|
last_data_reception_at: z.string().describe("Timestamp when data was last received.").nullable(),
|
|
51
51
|
first_data_reception_at: z.string().describe("Timestamp when data was first received.").nullable()
|
|
52
|
-
});
|
|
52
|
+
}).passthrough();
|
|
53
53
|
const RefinerGetResponses_PaginationSchema = z.object({
|
|
54
54
|
last_page: z.number().int().describe("Last page number.").nullable().optional(),
|
|
55
55
|
items_count: z.number().int().describe("Total number of items.").nullable().optional(),
|
|
56
56
|
page_length: z.number().int().describe("Items per page.").nullable().optional(),
|
|
57
57
|
current_page: z.number().int().describe("Current page number.").nullable().optional(),
|
|
58
58
|
next_page_cursor: z.string().describe("Cursor for next page if available.").nullable().optional()
|
|
59
|
-
});
|
|
59
|
+
}).passthrough();
|
|
60
60
|
const refinerGetResponses = action("REFINER_GET_RESPONSES", {
|
|
61
61
|
slug: "refiner-get-responses",
|
|
62
62
|
name: "Get Survey Responses",
|
|
@@ -65,7 +65,7 @@ const refinerGetResponses = action("REFINER_GET_RESPONSES", {
|
|
|
65
65
|
output: z.object({
|
|
66
66
|
items: z.array(RefinerGetResponses_ResponseItemSchema).describe("List of survey responses."),
|
|
67
67
|
pagination: RefinerGetResponses_PaginationSchema.nullable()
|
|
68
|
-
})
|
|
68
|
+
}).passthrough()
|
|
69
69
|
});
|
|
70
70
|
//#endregion
|
|
71
71
|
export { refinerGetResponses };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-responses.mjs","names":[],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n});\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n});\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n});\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.
|
|
1
|
+
{"version":3,"file":"get-responses.mjs","names":[],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,KAAK;EAAC;EAAa;EAAY;CAAK,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,aAAa,E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,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;EAC3F,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -10,18 +10,18 @@ const RefinerGetSegments_SegmentItemSchema = zod.z.object({
|
|
|
10
10
|
name: zod.z.string().describe("Segment name.").nullable(),
|
|
11
11
|
uuid: zod.z.string().describe("Unique segment identifier.").nullable(),
|
|
12
12
|
is_manual: zod.z.boolean().describe("Whether the segment is manual.").nullable()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const RefinerGetSegments_PaginationSchema = zod.z.object({
|
|
15
15
|
last_page: zod.z.number().int().describe("Last available page number.").nullable(),
|
|
16
16
|
items_count: zod.z.number().int().describe("Total number of items.").nullable(),
|
|
17
17
|
page_length: zod.z.number().int().describe("Number of items per page.").nullable(),
|
|
18
18
|
current_page: zod.z.number().int().describe("Current page number.").nullable(),
|
|
19
19
|
next_page_cursor: zod.z.string().describe("Cursor for the next page, if any.").nullable().optional()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const RefinerGetSegmentsOutput = zod.z.object({
|
|
22
22
|
items: zod.z.array(RefinerGetSegments_SegmentItemSchema).describe("List of segments."),
|
|
23
23
|
pagination: RefinerGetSegments_PaginationSchema.nullable()
|
|
24
|
-
}).describe("Response model for a list of segments with pagination.");
|
|
24
|
+
}).passthrough().describe("Response model for a list of segments with pagination.");
|
|
25
25
|
const refinerGetSegments = require_action.action("REFINER_GET_SEGMENTS", {
|
|
26
26
|
slug: "refiner-get-segments",
|
|
27
27
|
name: "Get Segments",
|