@keystrokehq/simplesat 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.
Files changed (73) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-or-update-customer2.cjs +3 -3
  4. package/dist/actions/create-or-update-customer2.cjs.map +1 -1
  5. package/dist/actions/create-or-update-customer2.d.cts +25 -3
  6. package/dist/actions/create-or-update-customer2.d.cts.map +1 -1
  7. package/dist/actions/create-or-update-customer2.d.mts +25 -3
  8. package/dist/actions/create-or-update-customer2.d.mts.map +1 -1
  9. package/dist/actions/create-or-update-customer2.mjs +3 -3
  10. package/dist/actions/create-or-update-customer2.mjs.map +1 -1
  11. package/dist/actions/create-or-update-team-member.cjs +5 -5
  12. package/dist/actions/create-or-update-team-member.cjs.map +1 -1
  13. package/dist/actions/create-or-update-team-member.d.cts +25 -3
  14. package/dist/actions/create-or-update-team-member.d.cts.map +1 -1
  15. package/dist/actions/create-or-update-team-member.d.mts +25 -3
  16. package/dist/actions/create-or-update-team-member.d.mts.map +1 -1
  17. package/dist/actions/create-or-update-team-member.mjs +5 -5
  18. package/dist/actions/create-or-update-team-member.mjs.map +1 -1
  19. package/dist/actions/get-customer.cjs +3 -3
  20. package/dist/actions/get-customer.cjs.map +1 -1
  21. package/dist/actions/get-customer.d.cts +15 -3
  22. package/dist/actions/get-customer.d.cts.map +1 -1
  23. package/dist/actions/get-customer.d.mts +15 -3
  24. package/dist/actions/get-customer.d.mts.map +1 -1
  25. package/dist/actions/get-customer.mjs +3 -3
  26. package/dist/actions/get-customer.mjs.map +1 -1
  27. package/dist/actions/list-questions.cjs +8 -8
  28. package/dist/actions/list-questions.cjs.map +1 -1
  29. package/dist/actions/list-questions.d.cts +43 -3
  30. package/dist/actions/list-questions.d.cts.map +1 -1
  31. package/dist/actions/list-questions.d.mts +43 -3
  32. package/dist/actions/list-questions.d.mts.map +1 -1
  33. package/dist/actions/list-questions.mjs +8 -8
  34. package/dist/actions/list-questions.mjs.map +1 -1
  35. package/dist/actions/list-surveys.cjs +5 -5
  36. package/dist/actions/list-surveys.cjs.map +1 -1
  37. package/dist/actions/list-surveys.d.cts +15 -3
  38. package/dist/actions/list-surveys.d.cts.map +1 -1
  39. package/dist/actions/list-surveys.d.mts +15 -3
  40. package/dist/actions/list-surveys.d.mts.map +1 -1
  41. package/dist/actions/list-surveys.mjs +5 -5
  42. package/dist/actions/list-surveys.mjs.map +1 -1
  43. package/dist/actions/search-answers.cjs +11 -11
  44. package/dist/actions/search-answers.cjs.map +1 -1
  45. package/dist/actions/search-answers.d.cts +97 -3
  46. package/dist/actions/search-answers.d.cts.map +1 -1
  47. package/dist/actions/search-answers.d.mts +97 -3
  48. package/dist/actions/search-answers.d.mts.map +1 -1
  49. package/dist/actions/search-answers.mjs +11 -11
  50. package/dist/actions/search-answers.mjs.map +1 -1
  51. package/dist/actions/search-responses.cjs +3 -3
  52. package/dist/actions/search-responses.cjs.map +1 -1
  53. package/dist/actions/search-responses.d.cts +63 -3
  54. package/dist/actions/search-responses.d.cts.map +1 -1
  55. package/dist/actions/search-responses.d.mts +63 -3
  56. package/dist/actions/search-responses.d.mts.map +1 -1
  57. package/dist/actions/search-responses.mjs +3 -3
  58. package/dist/actions/search-responses.mjs.map +1 -1
  59. package/dist/actions/update-customer.cjs +3 -3
  60. package/dist/actions/update-customer.cjs.map +1 -1
  61. package/dist/actions/update-customer.d.cts +27 -3
  62. package/dist/actions/update-customer.d.cts.map +1 -1
  63. package/dist/actions/update-customer.d.mts +27 -3
  64. package/dist/actions/update-customer.d.mts.map +1 -1
  65. package/dist/actions/update-customer.mjs +3 -3
  66. package/dist/actions/update-customer.mjs.map +1 -1
  67. package/dist/catalog.cjs +7 -1
  68. package/dist/catalog.cjs.map +1 -1
  69. package/dist/catalog.d.cts +8 -0
  70. package/dist/catalog.d.mts +8 -0
  71. package/dist/catalog.mjs +7 -1
  72. package/dist/catalog.mjs.map +1 -1
  73. package/package.json +2 -2
@@ -1,9 +1,49 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-questions.d.ts
4
- declare const SimplesatListQuestionsInput: z.ZodTypeAny;
5
- declare const SimplesatListQuestionsOutput: z.ZodTypeAny;
6
- declare const simplesatListQuestions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatListQuestionsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ metric: z.ZodOptional<z.ZodEnum<{
7
+ csat: "csat";
8
+ nps: "nps";
9
+ ces: "ces";
10
+ }>>;
11
+ page_size: z.ZodOptional<z.ZodNumber>;
12
+ survey_id: z.ZodOptional<z.ZodNumber>;
13
+ }, z.core.$strip>;
14
+ declare const SimplesatListQuestionsOutput: z.ZodObject<{
15
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ count: z.ZodNullable<z.ZodNumber>;
17
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ questions: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodNumber>;
20
+ text: z.ZodNullable<z.ZodString>;
21
+ order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ rules: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ condition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>>>;
27
+ metric: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ survey: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$loose>>>;
32
+ choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
33
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ }, z.core.$loose>>>>;
37
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
38
+ rating_scale: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>;
41
+ declare const simplesatListQuestions: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ page?: number | undefined;
43
+ metric?: "csat" | "nps" | "ces" | undefined;
44
+ page_size?: number | undefined;
45
+ survey_id?: number | undefined;
46
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
47
  //#endregion
8
48
  export { simplesatListQuestions };
9
49
  //# sourceMappingURL=list-questions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-questions.d.cts","names":[],"sources":["../../src/actions/list-questions.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKO;AAAA,cA0BtC,4BAAA,EAA8B,CAAA,CAAE,UAKO;AAAA,cAEvC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-questions.d.cts","names":[],"sources":["../../src/actions/list-questions.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,49 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-questions.d.ts
4
- declare const SimplesatListQuestionsInput: z.ZodTypeAny;
5
- declare const SimplesatListQuestionsOutput: z.ZodTypeAny;
6
- declare const simplesatListQuestions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatListQuestionsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ metric: z.ZodOptional<z.ZodEnum<{
7
+ csat: "csat";
8
+ nps: "nps";
9
+ ces: "ces";
10
+ }>>;
11
+ page_size: z.ZodOptional<z.ZodNumber>;
12
+ survey_id: z.ZodOptional<z.ZodNumber>;
13
+ }, z.core.$strip>;
14
+ declare const SimplesatListQuestionsOutput: z.ZodObject<{
15
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ count: z.ZodNullable<z.ZodNumber>;
17
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ questions: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodNumber>;
20
+ text: z.ZodNullable<z.ZodString>;
21
+ order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ rules: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ condition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>>>;
27
+ metric: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ survey: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$loose>>>;
32
+ choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
33
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ }, z.core.$loose>>>>;
37
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
38
+ rating_scale: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>;
41
+ declare const simplesatListQuestions: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ page?: number | undefined;
43
+ metric?: "csat" | "nps" | "ces" | undefined;
44
+ page_size?: number | undefined;
45
+ survey_id?: number | undefined;
46
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
47
  //#endregion
8
48
  export { simplesatListQuestions };
9
49
  //# sourceMappingURL=list-questions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-questions.d.mts","names":[],"sources":["../../src/actions/list-questions.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKO;AAAA,cA0BtC,4BAAA,EAA8B,CAAA,CAAE,UAKO;AAAA,cAEvC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-questions.d.mts","names":[],"sources":["../../src/actions/list-questions.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
@@ -15,19 +15,19 @@ const SimplesatListQuestions_QuestionRuleSchema = z.object({
15
15
  id: z.number().int().describe("Rule ID").nullable().optional(),
16
16
  action: z.string().describe("Rule action").nullable().optional(),
17
17
  condition: z.string().describe("Rule condition").nullable().optional()
18
- }).describe("Conditional rule for a question.");
18
+ }).passthrough().describe("Conditional rule for a question.");
19
19
  const SimplesatListQuestions_QuestionSurveySchema = z.object({
20
20
  id: z.number().int().describe("Survey ID").nullable().optional(),
21
21
  name: z.string().describe("Survey name").nullable().optional()
22
- }).describe("Survey details within a question.");
22
+ }).passthrough().describe("Survey details within a question.");
23
23
  const SimplesatListQuestions_QuestionChoiceSchema = z.object({
24
24
  id: z.number().int().describe("Choice ID").nullable().optional(),
25
25
  text: z.string().describe("Choice text").nullable().optional(),
26
26
  order: z.number().int().describe("Order of the choice").nullable().optional()
27
- }).describe("Choice option for a question.");
27
+ }).passthrough().describe("Choice option for a question.");
28
28
  const SimplesatListQuestions_QuestionSchema = z.object({
29
- id: z.number().int().describe("Question ID"),
30
- text: z.string().describe("Question text"),
29
+ id: z.number().int().describe("Question ID").nullable(),
30
+ text: z.string().describe("Question text").nullable(),
31
31
  order: z.number().int().describe("Display order of the question").nullable().optional(),
32
32
  rules: z.array(SimplesatListQuestions_QuestionRuleSchema).describe("List of conditional rules for the question").nullable().optional(),
33
33
  metric: z.string().describe("Metric type (csat, nps, or ces)").nullable().optional(),
@@ -35,7 +35,7 @@ const SimplesatListQuestions_QuestionSchema = z.object({
35
35
  choices: z.array(SimplesatListQuestions_QuestionChoiceSchema).describe("List of choice options for the question").nullable().optional(),
36
36
  required: z.boolean().describe("Whether the question is required").nullable().optional(),
37
37
  rating_scale: z.boolean().describe("Whether the question uses a rating scale").nullable().optional()
38
- }).describe("Individual question details.");
38
+ }).passthrough().describe("Individual question details.");
39
39
  const simplesatListQuestions = action("SIMPLESAT_LIST_QUESTIONS", {
40
40
  slug: "simplesat-list-questions",
41
41
  name: "List Questions",
@@ -43,10 +43,10 @@ const simplesatListQuestions = action("SIMPLESAT_LIST_QUESTIONS", {
43
43
  input: SimplesatListQuestionsInput,
44
44
  output: z.object({
45
45
  next: z.string().describe("URL for the next page of results").nullable().optional(),
46
- count: z.number().int().describe("Total count of questions"),
46
+ count: z.number().int().describe("Total count of questions").nullable(),
47
47
  previous: z.string().describe("URL for the previous page of results").nullable().optional(),
48
48
  questions: z.array(SimplesatListQuestions_QuestionSchema).describe("List of questions")
49
- }).describe("Response model for listing questions.")
49
+ }).passthrough().describe("Response model for listing questions.")
50
50
  });
51
51
  //#endregion
52
52
  export { simplesatListQuestions };
@@ -1 +1 @@
1
- {"version":3,"file":"list-questions.mjs","names":[],"sources":["../../src/actions/list-questions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListQuestionsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n metric: z.enum([\"csat\", \"nps\", \"ces\"]).describe(\"Metric type enum for filtering questions.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n survey_id: z.number().int().describe(\"Filter questions by survey ID\").optional(),\n}).describe(\"Request model for listing questions.\");\nconst SimplesatListQuestions_QuestionRuleSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Rule ID\").nullable().optional(),\n action: z.string().describe(\"Rule action\").nullable().optional(),\n condition: z.string().describe(\"Rule condition\").nullable().optional(),\n}).describe(\"Conditional rule for a question.\");\nconst SimplesatListQuestions_QuestionSurveySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Survey ID\").nullable().optional(),\n name: z.string().describe(\"Survey name\").nullable().optional(),\n}).describe(\"Survey details within a question.\");\nconst SimplesatListQuestions_QuestionChoiceSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Choice ID\").nullable().optional(),\n text: z.string().describe(\"Choice text\").nullable().optional(),\n order: z.number().int().describe(\"Order of the choice\").nullable().optional(),\n}).describe(\"Choice option for a question.\");\nconst SimplesatListQuestions_QuestionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Question ID\"),\n text: z.string().describe(\"Question text\"),\n order: z.number().int().describe(\"Display order of the question\").nullable().optional(),\n rules: z.array(SimplesatListQuestions_QuestionRuleSchema).describe(\"List of conditional rules for the question\").nullable().optional(),\n metric: z.string().describe(\"Metric type (csat, nps, or ces)\").nullable().optional(),\n survey: SimplesatListQuestions_QuestionSurveySchema.nullable().optional(),\n choices: z.array(SimplesatListQuestions_QuestionChoiceSchema).describe(\"List of choice options for the question\").nullable().optional(),\n required: z.boolean().describe(\"Whether the question is required\").nullable().optional(),\n rating_scale: z.boolean().describe(\"Whether the question uses a rating scale\").nullable().optional(),\n}).describe(\"Individual question details.\");\nexport const SimplesatListQuestionsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total count of questions\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n questions: z.array(SimplesatListQuestions_QuestionSchema).describe(\"List of questions\"),\n}).describe(\"Response model for listing questions.\");\n\nexport const simplesatListQuestions = action(\"SIMPLESAT_LIST_QUESTIONS\", {\n slug: \"simplesat-list-questions\",\n name: \"List Questions\",\n description: \"Tool to retrieve a paginated list of all questions in Simplesat. Use when you need to fetch question details including order, metric type, text, rating scale, choices, and conditional rules. Supports filtering by metric (csat, nps, ces) and survey_id.\",\n input: SimplesatListQuestionsInput,\n output: SimplesatListQuestionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SA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AS;CACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAQ1C,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,WAAW,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,mBAAmB;CACxF,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-questions.mjs","names":[],"sources":["../../src/actions/list-questions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListQuestionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n metric: z.enum([\"csat\", \"nps\", \"ces\"]).describe(\"Metric type enum for filtering questions.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n survey_id: z.number().int().describe(\"Filter questions by survey ID\").optional(),\n}).describe(\"Request model for listing questions.\");\nconst SimplesatListQuestions_QuestionRuleSchema = z.object({\n id: z.number().int().describe(\"Rule ID\").nullable().optional(),\n action: z.string().describe(\"Rule action\").nullable().optional(),\n condition: z.string().describe(\"Rule condition\").nullable().optional(),\n}).passthrough().describe(\"Conditional rule for a question.\");\nconst SimplesatListQuestions_QuestionSurveySchema = z.object({\n id: z.number().int().describe(\"Survey ID\").nullable().optional(),\n name: z.string().describe(\"Survey name\").nullable().optional(),\n}).passthrough().describe(\"Survey details within a question.\");\nconst SimplesatListQuestions_QuestionChoiceSchema = z.object({\n id: z.number().int().describe(\"Choice ID\").nullable().optional(),\n text: z.string().describe(\"Choice text\").nullable().optional(),\n order: z.number().int().describe(\"Order of the choice\").nullable().optional(),\n}).passthrough().describe(\"Choice option for a question.\");\nconst SimplesatListQuestions_QuestionSchema = z.object({\n id: z.number().int().describe(\"Question ID\").nullable(),\n text: z.string().describe(\"Question text\").nullable(),\n order: z.number().int().describe(\"Display order of the question\").nullable().optional(),\n rules: z.array(SimplesatListQuestions_QuestionRuleSchema).describe(\"List of conditional rules for the question\").nullable().optional(),\n metric: z.string().describe(\"Metric type (csat, nps, or ces)\").nullable().optional(),\n survey: SimplesatListQuestions_QuestionSurveySchema.nullable().optional(),\n choices: z.array(SimplesatListQuestions_QuestionChoiceSchema).describe(\"List of choice options for the question\").nullable().optional(),\n required: z.boolean().describe(\"Whether the question is required\").nullable().optional(),\n rating_scale: z.boolean().describe(\"Whether the question uses a rating scale\").nullable().optional(),\n}).passthrough().describe(\"Individual question details.\");\nexport const SimplesatListQuestionsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total count of questions\").nullable(),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n questions: z.array(SimplesatListQuestions_QuestionSchema).describe(\"List of questions\"),\n}).passthrough().describe(\"Response model for listing questions.\");\n\nexport const simplesatListQuestions = action(\"SIMPLESAT_LIST_QUESTIONS\", {\n slug: \"simplesat-list-questions\",\n name: \"List Questions\",\n description: \"Tool to retrieve a paginated list of all questions in Simplesat. Use when you need to fetch question details including order, metric type, text, rating scale, choices, and conditional rules. Supports filtering by metric (csat, nps, ces) and survey_id.\",\n input: SimplesatListQuestionsInput,\n output: SimplesatListQuestionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AA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G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAQxD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,WAAW,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,mBAAmB;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -6,11 +6,11 @@ const SimplesatListSurveysInput = zod.z.object({
6
6
  page_size: zod.z.number().int().describe("Number of records per page (default 100, max 100)").optional()
7
7
  });
8
8
  const SimplesatListSurveys_SurveySchema = zod.z.object({
9
- id: zod.z.number().int().describe("Unique identifier of the survey"),
10
- name: zod.z.string().describe("Name of the survey"),
11
- metric: zod.z.string().describe("Type of metric used by the survey (e.g., CSAT, NPS, CES)")
12
- });
13
- const SimplesatListSurveysOutput = zod.z.object({ surveys: zod.z.array(SimplesatListSurveys_SurveySchema).describe("List of surveys in the account") });
9
+ id: zod.z.number().int().describe("Unique identifier of the survey").nullable(),
10
+ name: zod.z.string().describe("Name of the survey").nullable(),
11
+ metric: zod.z.string().describe("Type of metric used by the survey (e.g., CSAT, NPS, CES)").nullable()
12
+ }).passthrough();
13
+ const SimplesatListSurveysOutput = zod.z.object({ surveys: zod.z.array(SimplesatListSurveys_SurveySchema).describe("List of surveys in the account") }).passthrough();
14
14
  const simplesatListSurveys = require_action.action("SIMPLESAT_LIST_SURVEYS", {
15
15
  slug: "simplesat-list-surveys",
16
16
  name: "List Surveys",
@@ -1 +1 @@
1
- {"version":3,"file":"list-surveys.cjs","names":["z","action"],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListSurveysInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (must be positive integer)\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100, max 100)\").optional(),\n});\nconst SimplesatListSurveys_SurveySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\"),\n name: z.string().describe(\"Name of the survey\"),\n metric: z.string().describe(\"Type of metric used by the survey (e.g., CSAT, NPS, CES)\"),\n});\nexport const SimplesatListSurveysOutput: z.ZodTypeAny = z.object({\n surveys: z.array(SimplesatListSurveys_SurveySchema).describe(\"List of surveys in the account\"),\n});\n\nexport const simplesatListSurveys = action(\"SIMPLESAT_LIST_SURVEYS\", {\n slug: \"simplesat-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list all surveys in the Simplesat account. Returns survey details including id, name, and metric type (CSAT, NPS, CES). Use when you need to retrieve available surveys or find a specific survey by name or metric type.\",\n input: SimplesatListSurveysInput,\n output: SimplesatListSurveysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AACxF,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,gCAAgC,EAC/F,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-surveys.cjs","names":["z","action"],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListSurveysInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (must be positive integer)\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100, max 100)\").optional(),\n});\nconst SimplesatListSurveys_SurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable(),\n name: z.string().describe(\"Name of the survey\").nullable(),\n metric: z.string().describe(\"Type of metric used by the survey (e.g., CSAT, NPS, CES)\").nullable(),\n}).passthrough();\nexport const SimplesatListSurveysOutput = z.object({\n surveys: z.array(SimplesatListSurveys_SurveySchema).describe(\"List of surveys in the account\"),\n}).passthrough();\n\nexport const simplesatListSurveys = action(\"SIMPLESAT_LIST_SURVEYS\", {\n slug: \"simplesat-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list all surveys in the Simplesat account. Returns survey details including id, name, and metric type (CSAT, NPS, CES). Use when you need to retrieve available surveys or find a specific survey by name or metric type.\",\n input: SimplesatListSurveysInput,\n output: SimplesatListSurveysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,gCAAgC,EAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-surveys.d.ts
4
- declare const SimplesatListSurveysInput: z.ZodTypeAny;
5
- declare const SimplesatListSurveysOutput: z.ZodTypeAny;
6
- declare const simplesatListSurveys: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatListSurveysInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ page_size: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const SimplesatListSurveysOutput: z.ZodObject<{
9
+ surveys: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ metric: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$loose>>;
14
+ }, z.core.$loose>;
15
+ declare const simplesatListSurveys: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ page?: number | undefined;
17
+ page_size?: number | undefined;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { simplesatListSurveys };
9
21
  //# sourceMappingURL=list-surveys.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-surveys.d.cts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAMW,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-surveys.d.cts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-surveys.d.ts
4
- declare const SimplesatListSurveysInput: z.ZodTypeAny;
5
- declare const SimplesatListSurveysOutput: z.ZodTypeAny;
6
- declare const simplesatListSurveys: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatListSurveysInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ page_size: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const SimplesatListSurveysOutput: z.ZodObject<{
9
+ surveys: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ metric: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$loose>>;
14
+ }, z.core.$loose>;
15
+ declare const simplesatListSurveys: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ page?: number | undefined;
17
+ page_size?: number | undefined;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { simplesatListSurveys };
9
21
  //# sourceMappingURL=list-surveys.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-surveys.d.mts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAMW,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-surveys.d.mts","names":[],"sources":["../../src/actions/list-surveys.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cASzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
@@ -6,16 +6,16 @@ const SimplesatListSurveysInput = z.object({
6
6
  page_size: z.number().int().describe("Number of records per page (default 100, max 100)").optional()
7
7
  });
8
8
  const SimplesatListSurveys_SurveySchema = z.object({
9
- id: z.number().int().describe("Unique identifier of the survey"),
10
- name: z.string().describe("Name of the survey"),
11
- metric: z.string().describe("Type of metric used by the survey (e.g., CSAT, NPS, CES)")
12
- });
9
+ id: z.number().int().describe("Unique identifier of the survey").nullable(),
10
+ name: z.string().describe("Name of the survey").nullable(),
11
+ metric: z.string().describe("Type of metric used by the survey (e.g., CSAT, NPS, CES)").nullable()
12
+ }).passthrough();
13
13
  const simplesatListSurveys = action("SIMPLESAT_LIST_SURVEYS", {
14
14
  slug: "simplesat-list-surveys",
15
15
  name: "List Surveys",
16
16
  description: "Tool to list all surveys in the Simplesat account. Returns survey details including id, name, and metric type (CSAT, NPS, CES). Use when you need to retrieve available surveys or find a specific survey by name or metric type.",
17
17
  input: SimplesatListSurveysInput,
18
- output: z.object({ surveys: z.array(SimplesatListSurveys_SurveySchema).describe("List of surveys in the account") })
18
+ output: z.object({ surveys: z.array(SimplesatListSurveys_SurveySchema).describe("List of surveys in the account") }).passthrough()
19
19
  });
20
20
  //#endregion
21
21
  export { simplesatListSurveys };
@@ -1 +1 @@
1
- {"version":3,"file":"list-surveys.mjs","names":[],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListSurveysInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (must be positive integer)\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100, max 100)\").optional(),\n});\nconst SimplesatListSurveys_SurveySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\"),\n name: z.string().describe(\"Name of the survey\"),\n metric: z.string().describe(\"Type of metric used by the survey (e.g., CSAT, NPS, CES)\"),\n});\nexport const SimplesatListSurveysOutput: z.ZodTypeAny = z.object({\n surveys: z.array(SimplesatListSurveys_SurveySchema).describe(\"List of surveys in the account\"),\n});\n\nexport const simplesatListSurveys = action(\"SIMPLESAT_LIST_SURVEYS\", {\n slug: \"simplesat-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list all surveys in the Simplesat account. Returns survey details including id, name, and metric type (CSAT, NPS, CES). Use when you need to retrieve available surveys or find a specific survey by name or metric type.\",\n input: SimplesatListSurveysInput,\n output: SimplesatListSurveysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAM,oCAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;AACxF,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,gCAAgC,EAC/F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-surveys.mjs","names":[],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListSurveysInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (must be positive integer)\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100, max 100)\").optional(),\n});\nconst SimplesatListSurveys_SurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable(),\n name: z.string().describe(\"Name of the survey\").nullable(),\n metric: z.string().describe(\"Type of metric used by the survey (e.g., CSAT, NPS, CES)\").nullable(),\n}).passthrough();\nexport const SimplesatListSurveysOutput = z.object({\n surveys: z.array(SimplesatListSurveys_SurveySchema).describe(\"List of surveys in the account\"),\n}).passthrough();\n\nexport const simplesatListSurveys = action(\"SIMPLESAT_LIST_SURVEYS\", {\n slug: \"simplesat-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list all surveys in the Simplesat account. Returns survey details including id, name, and metric type (CSAT, NPS, CES). Use when you need to retrieve available surveys or find a specific survey by name or metric type.\",\n input: SimplesatListSurveysInput,\n output: SimplesatListSurveysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,gCAAgC,EAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -16,7 +16,7 @@ const SimplesatSearchAnswersInput = zod.z.object({
16
16
  "lt",
17
17
  "lte"
18
18
  ]).describe("Comparison operator for filter values.").optional()
19
- }).describe("Individual filter object for searching answers.")).describe("Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.").optional(),
19
+ }).passthrough().describe("Individual filter object for searching answers.")).describe("Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.").optional(),
20
20
  end_date: zod.z.string().describe("End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.").optional(),
21
21
  operator: zod.z.enum(["and", "or"]).describe("Operator to apply between multiple filters.").optional(),
22
22
  page_size: zod.z.number().int().describe("Number of records per page (default 100)").optional(),
@@ -26,36 +26,36 @@ const SimplesatSearchAnswers_AnswerChoiceSchema = zod.z.object({
26
26
  id: zod.z.number().int().describe("Unique identifier of the choice").nullable().optional(),
27
27
  label: zod.z.string().describe("Label of the choice").nullable().optional(),
28
28
  value: zod.z.string().describe("Value of the choice").nullable().optional()
29
- }).describe("Choice information in an answer.");
29
+ }).passthrough().describe("Choice information in an answer.");
30
30
  const SimplesatSearchAnswers_AnswerSurveySchema = zod.z.object({
31
31
  id: zod.z.number().int().describe("Unique identifier of the survey").nullable().optional(),
32
32
  name: zod.z.string().describe("Name of the survey").nullable().optional(),
33
33
  type: zod.z.string().describe("Type of the survey").nullable().optional()
34
- }).describe("Survey information in an answer.");
34
+ }).passthrough().describe("Survey information in an answer.");
35
35
  const SimplesatSearchAnswers_AnswerQuestionSchema = zod.z.object({
36
36
  id: zod.z.number().int().describe("Unique identifier of the question").nullable().optional(),
37
37
  text: zod.z.string().describe("Text of the question").nullable().optional(),
38
38
  type: zod.z.string().describe("Type of the question").nullable().optional(),
39
39
  scale: zod.z.string().describe("Scale of the question").nullable().optional()
40
- }).describe("Question information in an answer.");
40
+ }).passthrough().describe("Question information in an answer.");
41
41
  const SimplesatSearchAnswers_AnswerSentimentSchema = zod.z.object({
42
42
  label: zod.z.string().describe("Sentiment label").nullable().optional(),
43
43
  value: zod.z.string().describe("Sentiment value (e.g., 'positive', 'neutral', 'negative')").nullable().optional()
44
- }).describe("Sentiment information in an answer.");
44
+ }).passthrough().describe("Sentiment information in an answer.");
45
45
  const SimplesatSearchAnswers_FollowUpAnswerChoiceSchema = zod.z.object({
46
46
  id: zod.z.number().int().describe("Unique identifier of the choice").nullable().optional(),
47
47
  label: zod.z.string().describe("Label of the choice").nullable().optional(),
48
48
  value: zod.z.string().describe("Value of the choice").nullable().optional()
49
- }).describe("Follow-up answer choice information.");
49
+ }).passthrough().describe("Follow-up answer choice information.");
50
50
  const SimplesatSearchAnswers_FollowUpAnswerSchema = zod.z.object({
51
51
  id: zod.z.number().int().describe("Unique identifier of the follow-up answer").nullable().optional(),
52
52
  choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),
53
53
  rating: zod.z.number().int().describe("Rating given in follow-up").nullable().optional(),
54
54
  comment: zod.z.string().describe("Comment in follow-up").nullable().optional(),
55
55
  created: zod.z.string().describe("Creation timestamp").nullable().optional()
56
- }).describe("Follow-up answer information.");
56
+ }).passthrough().describe("Follow-up answer information.");
57
57
  const SimplesatSearchAnswers_AnswerSchema = zod.z.object({
58
- id: zod.z.number().int().describe("Unique identifier of the answer"),
58
+ id: zod.z.number().int().describe("Unique identifier of the answer").nullable(),
59
59
  choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),
60
60
  survey: SimplesatSearchAnswers_AnswerSurveySchema.nullable().optional(),
61
61
  choices: zod.z.array(SimplesatSearchAnswers_AnswerChoiceSchema).describe("List of choices if multiple choices were available").nullable().optional(),
@@ -70,13 +70,13 @@ const SimplesatSearchAnswers_AnswerSchema = zod.z.object({
70
70
  follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),
71
71
  follow_up_answer_choices: zod.z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe("List of follow-up answer choices if multiple were available").nullable().optional(),
72
72
  published_as_testimonial: zod.z.boolean().describe("Whether this answer is published as a testimonial").nullable().optional()
73
- }).describe("Individual answer object.");
73
+ }).passthrough().describe("Individual answer object.");
74
74
  const SimplesatSearchAnswersOutput = zod.z.object({
75
75
  next: zod.z.string().describe("URL to the next page of results, null if no more pages").nullable().optional(),
76
- count: zod.z.number().int().describe("Total number of answers matching the query"),
76
+ count: zod.z.number().int().describe("Total number of answers matching the query").nullable(),
77
77
  answers: zod.z.array(SimplesatSearchAnswers_AnswerSchema).describe("List of answer objects with detailed information"),
78
78
  previous: zod.z.string().describe("URL to the previous page of results, null if on first page").nullable().optional()
79
- }).describe("Response model for searching answers.");
79
+ }).passthrough().describe("Response model for searching answers.");
80
80
  const simplesatSearchAnswers = require_action.action("SIMPLESAT_SEARCH_ANSWERS", {
81
81
  slug: "simplesat-search-answers",
82
82
  name: "Search Answers",
@@ -1 +1 @@
1
- {"version":3,"file":"search-answers.cjs","names":["z","action"],"sources":["../../src/actions/search-answers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchAnswersInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n filters: z.array(z.object({\n key: z.string().describe(\"Filter key (e.g., 'choice_value', 'collaborator', 'company', 'comment', 'customer', 'sentiment', 'metric', 'survey', 'tag', 'team_member', or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by\"),\n comparison: z.enum([\"eq\", \"ne\", \"contains\", \"not_contains\", \"gt\", \"gte\", \"lt\", \"lte\"]).describe(\"Comparison operator for filter values.\").optional(),\n}).describe(\"Individual filter object for searching answers.\")).describe(\"Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.\").optional(),\n end_date: z.string().describe(\"End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to apply between multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n start_date: z.string().describe(\"Start date and time in ISO 8601 format to filter answers (e.g., '2024-01-01T00:00:00Z'). If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching answers.\");\nconst SimplesatSearchAnswers_AnswerChoiceSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).describe(\"Choice information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSurveySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable().optional(),\n name: z.string().describe(\"Name of the survey\").nullable().optional(),\n type: z.string().describe(\"Type of the survey\").nullable().optional(),\n}).describe(\"Survey information in an answer.\");\nconst SimplesatSearchAnswers_AnswerQuestionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the question\").nullable().optional(),\n text: z.string().describe(\"Text of the question\").nullable().optional(),\n type: z.string().describe(\"Type of the question\").nullable().optional(),\n scale: z.string().describe(\"Scale of the question\").nullable().optional(),\n}).describe(\"Question information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSentimentSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Sentiment label\").nullable().optional(),\n value: z.string().describe(\"Sentiment value (e.g., 'positive', 'neutral', 'negative')\").nullable().optional(),\n}).describe(\"Sentiment information in an answer.\");\nconst SimplesatSearchAnswers_FollowUpAnswerChoiceSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).describe(\"Follow-up answer choice information.\");\nconst SimplesatSearchAnswers_FollowUpAnswerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the follow-up answer\").nullable().optional(),\n choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n rating: z.number().int().describe(\"Rating given in follow-up\").nullable().optional(),\n comment: z.string().describe(\"Comment in follow-up\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n}).describe(\"Follow-up answer information.\");\nconst SimplesatSearchAnswers_AnswerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the answer\"),\n choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),\n survey: SimplesatSearchAnswers_AnswerSurveySchema.nullable().optional(),\n choices: z.array(SimplesatSearchAnswers_AnswerChoiceSchema).describe(\"List of choices if multiple choices were available\").nullable().optional(),\n comment: z.string().describe(\"Comment text provided by the customer\").nullable().optional(),\n created: z.string().describe(\"Timestamp when the answer was created (ISO 8601 format)\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the answer was last modified (ISO 8601 format)\").nullable().optional(),\n question: SimplesatSearchAnswers_AnswerQuestionSchema.nullable().optional(),\n sentiment: SimplesatSearchAnswers_AnswerSentimentSchema.nullable().optional(),\n response_id: z.number().int().describe(\"Unique identifier of the response\").nullable().optional(),\n choice_label: z.string().describe(\"Label for the choice\").nullable().optional(),\n follow_up_answer: SimplesatSearchAnswers_FollowUpAnswerSchema.nullable().optional(),\n follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n follow_up_answer_choices: z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe(\"List of follow-up answer choices if multiple were available\").nullable().optional(),\n published_as_testimonial: z.boolean().describe(\"Whether this answer is published as a testimonial\").nullable().optional(),\n}).describe(\"Individual answer object.\");\nexport const SimplesatSearchAnswersOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page of results, null if no more pages\").nullable().optional(),\n count: z.number().int().describe(\"Total number of answers matching the query\"),\n answers: z.array(SimplesatSearchAnswers_AnswerSchema).describe(\"List of answer objects with detailed information\"),\n previous: z.string().describe(\"URL to the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Response model for searching answers.\");\n\nexport const simplesatSearchAnswers = action(\"SIMPLESAT_SEARCH_ANSWERS\", {\n slug: \"simplesat-search-answers\",\n name: \"Search Answers\",\n description: \"Tool to search and retrieve answers from Simplesat with advanced filtering. Use when you need to find specific answers based on filters like date range, choice value, sentiment, survey, customer, or custom attributes. If no filters are provided, returns all answers from the last 30 days by default.\",\n input: SimplesatSearchAnswersInput,\n output: SimplesatSearchAnswersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,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,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-answers.cjs","names":["z","action"],"sources":["../../src/actions/search-answers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatSearchAnswersInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n filters: z.array(z.object({\n key: z.string().describe(\"Filter key (e.g., 'choice_value', 'collaborator', 'company', 'comment', 'customer', 'sentiment', 'metric', 'survey', 'tag', 'team_member', or custom attributes)\"),\n values: z.array(z.string()).describe(\"List of values to filter by\"),\n comparison: z.enum([\"eq\", \"ne\", \"contains\", \"not_contains\", \"gt\", \"gte\", \"lt\", \"lte\"]).describe(\"Comparison operator for filter values.\").optional(),\n}).passthrough().describe(\"Individual filter object for searching answers.\")).describe(\"Array of filter objects to apply. Each filter has a key (field to filter), values (array of values to match), and comparison operator. Supports filtering by choice_value, collaborator, company, comment, customer, sentiment, metric, survey, tag, team_member, and custom attributes.\").optional(),\n end_date: z.string().describe(\"End date and time in ISO 8601 format to filter answers (e.g., '2024-12-31T23:59:59Z'). If not specified, defaults to current date.\").optional(),\n operator: z.enum([\"and\", \"or\"]).describe(\"Operator to apply between multiple filters.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n start_date: z.string().describe(\"Start date and time in ISO 8601 format to filter answers (e.g., '2024-01-01T00:00:00Z'). If not specified, defaults to 30 days ago.\").optional(),\n}).describe(\"Request model for searching answers.\");\nconst SimplesatSearchAnswers_AnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).passthrough().describe(\"Choice information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable().optional(),\n name: z.string().describe(\"Name of the survey\").nullable().optional(),\n type: z.string().describe(\"Type of the survey\").nullable().optional(),\n}).passthrough().describe(\"Survey information in an answer.\");\nconst SimplesatSearchAnswers_AnswerQuestionSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the question\").nullable().optional(),\n text: z.string().describe(\"Text of the question\").nullable().optional(),\n type: z.string().describe(\"Type of the question\").nullable().optional(),\n scale: z.string().describe(\"Scale of the question\").nullable().optional(),\n}).passthrough().describe(\"Question information in an answer.\");\nconst SimplesatSearchAnswers_AnswerSentimentSchema = z.object({\n label: z.string().describe(\"Sentiment label\").nullable().optional(),\n value: z.string().describe(\"Sentiment value (e.g., 'positive', 'neutral', 'negative')\").nullable().optional(),\n}).passthrough().describe(\"Sentiment information in an answer.\");\nconst SimplesatSearchAnswers_FollowUpAnswerChoiceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the choice\").nullable().optional(),\n label: z.string().describe(\"Label of the choice\").nullable().optional(),\n value: z.string().describe(\"Value of the choice\").nullable().optional(),\n}).passthrough().describe(\"Follow-up answer choice information.\");\nconst SimplesatSearchAnswers_FollowUpAnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the follow-up answer\").nullable().optional(),\n choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n rating: z.number().int().describe(\"Rating given in follow-up\").nullable().optional(),\n comment: z.string().describe(\"Comment in follow-up\").nullable().optional(),\n created: z.string().describe(\"Creation timestamp\").nullable().optional(),\n}).passthrough().describe(\"Follow-up answer information.\");\nconst SimplesatSearchAnswers_AnswerSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the answer\").nullable(),\n choice: SimplesatSearchAnswers_AnswerChoiceSchema.nullable().optional(),\n survey: SimplesatSearchAnswers_AnswerSurveySchema.nullable().optional(),\n choices: z.array(SimplesatSearchAnswers_AnswerChoiceSchema).describe(\"List of choices if multiple choices were available\").nullable().optional(),\n comment: z.string().describe(\"Comment text provided by the customer\").nullable().optional(),\n created: z.string().describe(\"Timestamp when the answer was created (ISO 8601 format)\").nullable().optional(),\n modified: z.string().describe(\"Timestamp when the answer was last modified (ISO 8601 format)\").nullable().optional(),\n question: SimplesatSearchAnswers_AnswerQuestionSchema.nullable().optional(),\n sentiment: SimplesatSearchAnswers_AnswerSentimentSchema.nullable().optional(),\n response_id: z.number().int().describe(\"Unique identifier of the response\").nullable().optional(),\n choice_label: z.string().describe(\"Label for the choice\").nullable().optional(),\n follow_up_answer: SimplesatSearchAnswers_FollowUpAnswerSchema.nullable().optional(),\n follow_up_answer_choice: SimplesatSearchAnswers_FollowUpAnswerChoiceSchema.nullable().optional(),\n follow_up_answer_choices: z.array(SimplesatSearchAnswers_FollowUpAnswerChoiceSchema).describe(\"List of follow-up answer choices if multiple were available\").nullable().optional(),\n published_as_testimonial: z.boolean().describe(\"Whether this answer is published as a testimonial\").nullable().optional(),\n}).passthrough().describe(\"Individual answer object.\");\nexport const SimplesatSearchAnswersOutput = z.object({\n next: z.string().describe(\"URL to the next page of results, null if no more pages\").nullable().optional(),\n count: z.number().int().describe(\"Total number of answers matching the query\").nullable(),\n answers: z.array(SimplesatSearchAnswers_AnswerSchema).describe(\"List of answer objects with detailed information\"),\n previous: z.string().describe(\"URL to the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Response model for searching answers.\");\n\nexport const simplesatSearchAnswers = action(\"SIMPLESAT_SEARCH_ANSWERS\", {\n slug: \"simplesat-search-answers\",\n name: \"Search Answers\",\n description: \"Tool to search and retrieve answers from Simplesat with advanced filtering. Use when you need to find specific answers based on filters like date range, choice value, sentiment, survey, customer, or custom attributes. If no filters are provided, returns all answers from the last 30 days by default.\",\n input: SimplesatSearchAnswersInput,\n output: SimplesatSearchAnswersOutput,\n});\n"],"mappings":";;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,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,kDAAkD;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,103 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/search-answers.d.ts
4
- declare const SimplesatSearchAnswersInput: z.ZodTypeAny;
5
- declare const SimplesatSearchAnswersOutput: z.ZodTypeAny;
6
- declare const simplesatSearchAnswers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatSearchAnswersInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ key: z.ZodString;
8
+ values: z.ZodArray<z.ZodString>;
9
+ comparison: z.ZodOptional<z.ZodEnum<{
10
+ eq: "eq";
11
+ ne: "ne";
12
+ contains: "contains";
13
+ not_contains: "not_contains";
14
+ gt: "gt";
15
+ gte: "gte";
16
+ lt: "lt";
17
+ lte: "lte";
18
+ }>>;
19
+ }, z.core.$loose>>>;
20
+ end_date: z.ZodOptional<z.ZodString>;
21
+ operator: z.ZodOptional<z.ZodEnum<{
22
+ and: "and";
23
+ or: "or";
24
+ }>>;
25
+ page_size: z.ZodOptional<z.ZodNumber>;
26
+ start_date: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ declare const SimplesatSearchAnswersOutput: z.ZodObject<{
29
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ count: z.ZodNullable<z.ZodNumber>;
31
+ answers: z.ZodArray<z.ZodObject<{
32
+ id: z.ZodNullable<z.ZodNumber>;
33
+ choice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, z.core.$loose>>>;
38
+ survey: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$loose>>>;
43
+ choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ }, z.core.$loose>>>>;
48
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ question: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
53
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ scale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ }, z.core.$loose>>>;
57
+ sentiment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ }, z.core.$loose>>>;
61
+ response_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ choice_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ follow_up_answer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
64
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
65
+ choice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
66
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ }, z.core.$loose>>>;
70
+ rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ }, z.core.$loose>>>;
74
+ follow_up_answer_choice: z.ZodOptional<z.ZodNullable<z.ZodObject<{
75
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ }, z.core.$loose>>>;
79
+ follow_up_answer_choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
80
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ }, z.core.$loose>>>>;
84
+ published_as_testimonial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
85
+ }, z.core.$loose>>;
86
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ }, z.core.$loose>;
88
+ declare const simplesatSearchAnswers: import("@keystrokehq/action").WorkflowActionDefinition<{
89
+ page?: number | undefined;
90
+ filters?: {
91
+ [x: string]: unknown;
92
+ key: string;
93
+ values: string[];
94
+ comparison?: "eq" | "ne" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | undefined;
95
+ }[] | undefined;
96
+ end_date?: string | undefined;
97
+ operator?: "and" | "or" | undefined;
98
+ page_size?: number | undefined;
99
+ start_date?: string | undefined;
100
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
101
  //#endregion
8
102
  export { simplesatSearchAnswers };
9
103
  //# sourceMappingURL=search-answers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-answers.d.cts","names":[],"sources":["../../src/actions/search-answers.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAWO;AAAA,cAkDtC,4BAAA,EAA8B,CAAA,CAAE,UAKO;AAAA,cAEvC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"search-answers.d.cts","names":[],"sources":["../../src/actions/search-answers.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cA6D3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}