@keystrokehq/refiner 0.1.0 → 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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +11 -3
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +11 -3
- package/dist/actions/delete-contact.d.mts.map +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 +21 -21
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +26 -3
- package/dist/actions/get-account-info.d.cts.map +1 -1
- package/dist/actions/get-account-info.d.mts +26 -3
- package/dist/actions/get-account-info.d.mts.map +1 -1
- package/dist/actions/get-account-info.mjs +21 -21
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +11 -11
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +32 -3
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +32 -3
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +11 -11
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-contacts.cjs +11 -11
- package/dist/actions/get-contacts.cjs.map +1 -1
- package/dist/actions/get-contacts.d.cts +57 -3
- package/dist/actions/get-contacts.d.cts.map +1 -1
- package/dist/actions/get-contacts.d.mts +57 -3
- package/dist/actions/get-contacts.d.mts.map +1 -1
- package/dist/actions/get-contacts.mjs +11 -11
- package/dist/actions/get-contacts.mjs.map +1 -1
- package/dist/actions/get-forms.cjs +9 -9
- package/dist/actions/get-forms.cjs.map +1 -1
- package/dist/actions/get-forms.d.cts +45 -3
- package/dist/actions/get-forms.d.cts.map +1 -1
- package/dist/actions/get-forms.d.mts +45 -3
- package/dist/actions/get-forms.d.mts.map +1 -1
- package/dist/actions/get-forms.mjs +9 -9
- package/dist/actions/get-forms.mjs.map +1 -1
- package/dist/actions/get-reporting.cjs +4 -4
- package/dist/actions/get-reporting.cjs.map +1 -1
- package/dist/actions/get-reporting.d.cts +37 -3
- package/dist/actions/get-reporting.d.cts.map +1 -1
- package/dist/actions/get-reporting.d.mts +37 -3
- package/dist/actions/get-reporting.d.mts.map +1 -1
- package/dist/actions/get-reporting.mjs +4 -4
- package/dist/actions/get-reporting.mjs.map +1 -1
- package/dist/actions/get-responses.cjs +24 -24
- package/dist/actions/get-responses.cjs.map +1 -1
- package/dist/actions/get-responses.d.cts +69 -3
- package/dist/actions/get-responses.d.cts.map +1 -1
- package/dist/actions/get-responses.d.mts +69 -3
- package/dist/actions/get-responses.d.mts.map +1 -1
- package/dist/actions/get-responses.mjs +24 -24
- package/dist/actions/get-responses.mjs.map +1 -1
- package/dist/actions/get-segments.cjs +10 -10
- package/dist/actions/get-segments.cjs.map +1 -1
- package/dist/actions/get-segments.d.cts +24 -3
- package/dist/actions/get-segments.d.cts.map +1 -1
- package/dist/actions/get-segments.d.mts +24 -3
- package/dist/actions/get-segments.d.mts.map +1 -1
- package/dist/actions/get-segments.mjs +10 -10
- 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 +13 -3
- package/dist/actions/track-event.d.cts.map +1 -1
- package/dist/actions/track-event.d.mts +13 -3
- package/dist/actions/track-event.d.mts.map +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 +4 -4
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +22 -3
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +22 -3
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +4 -4
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
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,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAClN,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,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15 +20,15 @@ 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(),
|
|
27
27
|
responses: zod.z.number().int().describe("Number of responses (only for 'distribution' report).").nullable().optional(),
|
|
28
28
|
datapoints: zod.z.number().int().describe("Number of total data points considered (only for 'distribution' report).").nullable().optional(),
|
|
29
|
-
date_range_end: zod.z.string().describe("End of the date range for the report (ISO8601 format)."),
|
|
30
|
-
date_range_start: zod.z.string().describe("Start of the date range for the report (ISO8601 format).")
|
|
31
|
-
}).describe("Response schema for GET_REPORTING.");
|
|
29
|
+
date_range_end: zod.z.string().describe("End of the date range for the report (ISO8601 format).").nullable(),
|
|
30
|
+
date_range_start: zod.z.string().describe("Start of the date range for the report (ISO8601 format).").nullable()
|
|
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
|
|
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,E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AAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-reporting.d.ts
|
|
4
|
-
declare const RefinerGetReportingInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RefinerGetReportingInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
nps: "nps";
|
|
7
|
+
csat: "csat";
|
|
8
|
+
ratings: "ratings";
|
|
9
|
+
distribution: "distribution";
|
|
10
|
+
count: "count";
|
|
11
|
+
}>;
|
|
12
|
+
tag_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
segment_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
date_range_end: z.ZodOptional<z.ZodString>;
|
|
16
|
+
date_range_start: z.ZodOptional<z.ZodString>;
|
|
17
|
+
question_identifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const RefinerGetReportingOutput: z.ZodObject<{
|
|
20
|
+
nps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
sum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
csat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
24
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
views: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
average: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
responses: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
datapoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
date_range_end: z.ZodNullable<z.ZodString>;
|
|
30
|
+
date_range_start: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
declare const refinerGetReporting: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
type: "nps" | "csat" | "ratings" | "distribution" | "count";
|
|
34
|
+
tag_uuids?: string[] | undefined;
|
|
35
|
+
form_uuids?: string[] | undefined;
|
|
36
|
+
segment_uuids?: string[] | undefined;
|
|
37
|
+
date_range_end?: string | undefined;
|
|
38
|
+
date_range_start?: string | undefined;
|
|
39
|
+
question_identifiers?: string[] | undefined;
|
|
40
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { refinerGetReporting };
|
|
9
43
|
//# sourceMappingURL=get-reporting.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reporting.d.cts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-reporting.d.cts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-reporting.d.ts
|
|
4
|
-
declare const RefinerGetReportingInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RefinerGetReportingInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
nps: "nps";
|
|
7
|
+
csat: "csat";
|
|
8
|
+
ratings: "ratings";
|
|
9
|
+
distribution: "distribution";
|
|
10
|
+
count: "count";
|
|
11
|
+
}>;
|
|
12
|
+
tag_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
segment_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
date_range_end: z.ZodOptional<z.ZodString>;
|
|
16
|
+
date_range_start: z.ZodOptional<z.ZodString>;
|
|
17
|
+
question_identifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const RefinerGetReportingOutput: z.ZodObject<{
|
|
20
|
+
nps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
sum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
csat: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
24
|
+
count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
views: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
average: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
responses: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
datapoints: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
date_range_end: z.ZodNullable<z.ZodString>;
|
|
30
|
+
date_range_start: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
declare const refinerGetReporting: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
type: "nps" | "csat" | "ratings" | "distribution" | "count";
|
|
34
|
+
tag_uuids?: string[] | undefined;
|
|
35
|
+
form_uuids?: string[] | undefined;
|
|
36
|
+
segment_uuids?: string[] | undefined;
|
|
37
|
+
date_range_end?: string | undefined;
|
|
38
|
+
date_range_start?: string | undefined;
|
|
39
|
+
question_identifiers?: string[] | undefined;
|
|
40
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { refinerGetReporting };
|
|
9
43
|
//# sourceMappingURL=get-reporting.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reporting.d.mts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-reporting.d.mts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -23,15 +23,15 @@ 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(),
|
|
30
30
|
responses: z.number().int().describe("Number of responses (only for 'distribution' report).").nullable().optional(),
|
|
31
31
|
datapoints: z.number().int().describe("Number of total data points considered (only for 'distribution' report).").nullable().optional(),
|
|
32
|
-
date_range_end: z.string().describe("End of the date range for the report (ISO8601 format)."),
|
|
33
|
-
date_range_start: z.string().describe("Start of the date range for the report (ISO8601 format).")
|
|
34
|
-
}).describe("Response schema for GET_REPORTING.")
|
|
32
|
+
date_range_end: z.string().describe("End of the date range for the report (ISO8601 format).").nullable(),
|
|
33
|
+
date_range_start: z.string().describe("Start of the date range for the report (ISO8601 format).").nullable()
|
|
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
|
|
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;C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DAAqD,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"}
|
|
@@ -20,47 +20,47 @@ const RefinerGetResponsesInput = zod.z.object({
|
|
|
20
20
|
date_range_start: zod.z.string().describe("ISO-8601 start date (inclusive) for last_data_reception_at.").optional()
|
|
21
21
|
}).describe("Parameters to filter, search, and paginate survey responses.");
|
|
22
22
|
const RefinerGetResponses_FormInfoSchema = zod.z.object({
|
|
23
|
-
name: zod.z.string().describe("Survey form name."),
|
|
24
|
-
uuid: zod.z.string().describe("Survey form UUID.")
|
|
25
|
-
});
|
|
23
|
+
name: zod.z.string().describe("Survey form name.").nullable(),
|
|
24
|
+
uuid: zod.z.string().describe("Survey form UUID.").nullable()
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const RefinerGetResponses_AccountInfoSchema = zod.z.object({
|
|
27
|
-
uuid: zod.z.string().describe("Account UUID."),
|
|
27
|
+
uuid: zod.z.string().describe("Account UUID.").nullable(),
|
|
28
28
|
domain: zod.z.string().describe("Account domain if available.").nullable().optional(),
|
|
29
|
-
remote_id: zod.z.string().describe("External account ID."),
|
|
30
|
-
display_name: zod.z.string().describe("Account display name.")
|
|
31
|
-
});
|
|
29
|
+
remote_id: zod.z.string().describe("External account ID.").nullable(),
|
|
30
|
+
display_name: zod.z.string().describe("Account display name.").nullable()
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const RefinerGetResponses_ContactInfoSchema = zod.z.object({
|
|
33
|
-
uuid: zod.z.string().describe("Contact UUID."),
|
|
34
|
-
email: zod.z.string().describe("Contact email address."),
|
|
33
|
+
uuid: zod.z.string().describe("Contact UUID.").nullable(),
|
|
34
|
+
email: zod.z.string().describe("Contact email address.").nullable(),
|
|
35
35
|
account: RefinerGetResponses_AccountInfoSchema.nullable(),
|
|
36
|
-
remote_id: zod.z.string().describe("External user ID."),
|
|
37
|
-
display_name: zod.z.string().describe("Contact display name.")
|
|
38
|
-
});
|
|
36
|
+
remote_id: zod.z.string().describe("External user ID.").nullable(),
|
|
37
|
+
display_name: zod.z.string().describe("Contact display name.").nullable()
|
|
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
|
-
uuid: zod.z.string().describe("Response UUID."),
|
|
42
|
+
uuid: zod.z.string().describe("Response UUID.").nullable(),
|
|
43
43
|
contact: RefinerGetResponses_ContactInfoSchema.nullable(),
|
|
44
|
-
received_at: zod.z.string().describe("Timestamp when response was received."),
|
|
45
|
-
completed_at: zod.z.string().describe("Timestamp when survey was completed."),
|
|
44
|
+
received_at: zod.z.string().describe("Timestamp when response was received.").nullable(),
|
|
45
|
+
completed_at: zod.z.string().describe("Timestamp when survey was completed.").nullable(),
|
|
46
46
|
dismissed_at: zod.z.string().describe("Timestamp when survey was dismissed, if any.").nullable().optional(),
|
|
47
|
-
show_counter: zod.z.number().int().describe("Number of times the survey was shown."),
|
|
48
|
-
last_shown_at: zod.z.string().describe("Timestamp when survey was last shown."),
|
|
49
|
-
first_shown_at: zod.z.string().describe("Timestamp when survey was first shown."),
|
|
50
|
-
last_data_reception_at: zod.z.string().describe("Timestamp when data was last received."),
|
|
51
|
-
first_data_reception_at: zod.z.string().describe("Timestamp when data was first received.")
|
|
52
|
-
});
|
|
47
|
+
show_counter: zod.z.number().int().describe("Number of times the survey was shown.").nullable(),
|
|
48
|
+
last_shown_at: zod.z.string().describe("Timestamp when survey was last shown.").nullable(),
|
|
49
|
+
first_shown_at: zod.z.string().describe("Timestamp when survey was first shown.").nullable(),
|
|
50
|
+
last_data_reception_at: zod.z.string().describe("Timestamp when data was last received.").nullable(),
|
|
51
|
+
first_data_reception_at: zod.z.string().describe("Timestamp when data was first received.").nullable()
|
|
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
|
|
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,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC1G,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC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AAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;CAC3F,YAAY,qCAAqC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,75 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-responses.d.ts
|
|
4
|
-
declare const RefinerGetResponsesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RefinerGetResponsesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
search: z.ZodOptional<z.ZodString>;
|
|
7
|
+
include: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
all: "all";
|
|
9
|
+
completed: "completed";
|
|
10
|
+
partials: "partials";
|
|
11
|
+
}>>>;
|
|
12
|
+
form_uuid: z.ZodOptional<z.ZodString>;
|
|
13
|
+
form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
page_cursor: z.ZodOptional<z.ZodString>;
|
|
15
|
+
page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
16
|
+
segment_uuid: z.ZodOptional<z.ZodString>;
|
|
17
|
+
segment_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
date_range_end: z.ZodOptional<z.ZodString>;
|
|
19
|
+
with_attributes: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
20
|
+
date_range_start: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
23
|
+
items: z.ZodArray<z.ZodObject<{
|
|
24
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
|
+
form: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
name: z.ZodNullable<z.ZodString>;
|
|
27
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
30
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
32
|
+
email: z.ZodNullable<z.ZodString>;
|
|
33
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
35
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
remote_id: z.ZodNullable<z.ZodString>;
|
|
37
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
|
+
remote_id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
|
+
received_at: z.ZodNullable<z.ZodString>;
|
|
43
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
44
|
+
dismissed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
show_counter: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
last_shown_at: z.ZodNullable<z.ZodString>;
|
|
47
|
+
first_shown_at: z.ZodNullable<z.ZodString>;
|
|
48
|
+
last_data_reception_at: z.ZodNullable<z.ZodString>;
|
|
49
|
+
first_data_reception_at: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
items_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
page_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
declare const refinerGetResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
|
+
page?: number | undefined;
|
|
61
|
+
search?: string | undefined;
|
|
62
|
+
include?: "all" | "completed" | "partials" | undefined;
|
|
63
|
+
form_uuid?: string | undefined;
|
|
64
|
+
form_uuids?: string[] | undefined;
|
|
65
|
+
page_cursor?: string | undefined;
|
|
66
|
+
page_length?: number | undefined;
|
|
67
|
+
segment_uuid?: string | undefined;
|
|
68
|
+
segment_uuids?: string[] | undefined;
|
|
69
|
+
date_range_end?: string | undefined;
|
|
70
|
+
with_attributes?: boolean | undefined;
|
|
71
|
+
date_range_start?: string | undefined;
|
|
72
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
73
|
//#endregion
|
|
8
74
|
export { refinerGetResponses };
|
|
9
75
|
//# sourceMappingURL=get-responses.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-responses.d.cts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-responses.d.cts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAoDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,75 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-responses.d.ts
|
|
4
|
-
declare const RefinerGetResponsesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RefinerGetResponsesInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
search: z.ZodOptional<z.ZodString>;
|
|
7
|
+
include: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
all: "all";
|
|
9
|
+
completed: "completed";
|
|
10
|
+
partials: "partials";
|
|
11
|
+
}>>>;
|
|
12
|
+
form_uuid: z.ZodOptional<z.ZodString>;
|
|
13
|
+
form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
page_cursor: z.ZodOptional<z.ZodString>;
|
|
15
|
+
page_length: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
16
|
+
segment_uuid: z.ZodOptional<z.ZodString>;
|
|
17
|
+
segment_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
date_range_end: z.ZodOptional<z.ZodString>;
|
|
19
|
+
with_attributes: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
20
|
+
date_range_start: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
23
|
+
items: z.ZodArray<z.ZodObject<{
|
|
24
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
|
+
form: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
name: z.ZodNullable<z.ZodString>;
|
|
27
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
30
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
32
|
+
email: z.ZodNullable<z.ZodString>;
|
|
33
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
35
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
remote_id: z.ZodNullable<z.ZodString>;
|
|
37
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
|
+
remote_id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
|
+
received_at: z.ZodNullable<z.ZodString>;
|
|
43
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
44
|
+
dismissed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
show_counter: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
last_shown_at: z.ZodNullable<z.ZodString>;
|
|
47
|
+
first_shown_at: z.ZodNullable<z.ZodString>;
|
|
48
|
+
last_data_reception_at: z.ZodNullable<z.ZodString>;
|
|
49
|
+
first_data_reception_at: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
last_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
items_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
page_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
current_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
declare const refinerGetResponses: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
|
+
page?: number | undefined;
|
|
61
|
+
search?: string | undefined;
|
|
62
|
+
include?: "all" | "completed" | "partials" | undefined;
|
|
63
|
+
form_uuid?: string | undefined;
|
|
64
|
+
form_uuids?: string[] | undefined;
|
|
65
|
+
page_cursor?: string | undefined;
|
|
66
|
+
page_length?: number | undefined;
|
|
67
|
+
segment_uuid?: string | undefined;
|
|
68
|
+
segment_uuids?: string[] | undefined;
|
|
69
|
+
date_range_end?: string | undefined;
|
|
70
|
+
with_attributes?: boolean | undefined;
|
|
71
|
+
date_range_start?: string | undefined;
|
|
72
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
73
|
//#endregion
|
|
8
74
|
export { refinerGetResponses };
|
|
9
75
|
//# sourceMappingURL=get-responses.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-responses.d.mts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-responses.d.mts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAoDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -20,43 +20,43 @@ const RefinerGetResponsesInput = z.object({
|
|
|
20
20
|
date_range_start: z.string().describe("ISO-8601 start date (inclusive) for last_data_reception_at.").optional()
|
|
21
21
|
}).describe("Parameters to filter, search, and paginate survey responses.");
|
|
22
22
|
const RefinerGetResponses_FormInfoSchema = z.object({
|
|
23
|
-
name: z.string().describe("Survey form name."),
|
|
24
|
-
uuid: z.string().describe("Survey form UUID.")
|
|
25
|
-
});
|
|
23
|
+
name: z.string().describe("Survey form name.").nullable(),
|
|
24
|
+
uuid: z.string().describe("Survey form UUID.").nullable()
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const RefinerGetResponses_AccountInfoSchema = z.object({
|
|
27
|
-
uuid: z.string().describe("Account UUID."),
|
|
27
|
+
uuid: z.string().describe("Account UUID.").nullable(),
|
|
28
28
|
domain: z.string().describe("Account domain if available.").nullable().optional(),
|
|
29
|
-
remote_id: z.string().describe("External account ID."),
|
|
30
|
-
display_name: z.string().describe("Account display name.")
|
|
31
|
-
});
|
|
29
|
+
remote_id: z.string().describe("External account ID.").nullable(),
|
|
30
|
+
display_name: z.string().describe("Account display name.").nullable()
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const RefinerGetResponses_ContactInfoSchema = z.object({
|
|
33
|
-
uuid: z.string().describe("Contact UUID."),
|
|
34
|
-
email: z.string().describe("Contact email address."),
|
|
33
|
+
uuid: z.string().describe("Contact UUID.").nullable(),
|
|
34
|
+
email: z.string().describe("Contact email address.").nullable(),
|
|
35
35
|
account: RefinerGetResponses_AccountInfoSchema.nullable(),
|
|
36
|
-
remote_id: z.string().describe("External user ID."),
|
|
37
|
-
display_name: z.string().describe("Contact display name.")
|
|
38
|
-
});
|
|
36
|
+
remote_id: z.string().describe("External user ID.").nullable(),
|
|
37
|
+
display_name: z.string().describe("Contact display name.").nullable()
|
|
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
|
-
uuid: z.string().describe("Response UUID."),
|
|
42
|
+
uuid: z.string().describe("Response UUID.").nullable(),
|
|
43
43
|
contact: RefinerGetResponses_ContactInfoSchema.nullable(),
|
|
44
|
-
received_at: z.string().describe("Timestamp when response was received."),
|
|
45
|
-
completed_at: z.string().describe("Timestamp when survey was completed."),
|
|
44
|
+
received_at: z.string().describe("Timestamp when response was received.").nullable(),
|
|
45
|
+
completed_at: z.string().describe("Timestamp when survey was completed.").nullable(),
|
|
46
46
|
dismissed_at: z.string().describe("Timestamp when survey was dismissed, if any.").nullable().optional(),
|
|
47
|
-
show_counter: z.number().int().describe("Number of times the survey was shown."),
|
|
48
|
-
last_shown_at: z.string().describe("Timestamp when survey was last shown."),
|
|
49
|
-
first_shown_at: z.string().describe("Timestamp when survey was first shown."),
|
|
50
|
-
last_data_reception_at: z.string().describe("Timestamp when data was last received."),
|
|
51
|
-
first_data_reception_at: z.string().describe("Timestamp when data was first received.")
|
|
52
|
-
});
|
|
47
|
+
show_counter: z.number().int().describe("Number of times the survey was shown.").nullable(),
|
|
48
|
+
last_shown_at: z.string().describe("Timestamp when survey was last shown.").nullable(),
|
|
49
|
+
first_shown_at: z.string().describe("Timestamp when survey was first shown.").nullable(),
|
|
50
|
+
last_data_reception_at: z.string().describe("Timestamp when data was last received.").nullable(),
|
|
51
|
+
first_data_reception_at: z.string().describe("Timestamp when data was first received.").nullable()
|
|
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 };
|