@keystrokehq/freshservice 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/bulk-update-tickets.cjs +4 -4
  4. package/dist/actions/bulk-update-tickets.cjs.map +1 -1
  5. package/dist/actions/bulk-update-tickets.d.cts +23 -3
  6. package/dist/actions/bulk-update-tickets.d.cts.map +1 -1
  7. package/dist/actions/bulk-update-tickets.d.mts +23 -3
  8. package/dist/actions/bulk-update-tickets.d.mts.map +1 -1
  9. package/dist/actions/bulk-update-tickets.mjs +4 -4
  10. package/dist/actions/bulk-update-tickets.mjs.map +1 -1
  11. package/dist/actions/create-service-request.cjs +35 -35
  12. package/dist/actions/create-service-request.cjs.map +1 -1
  13. package/dist/actions/create-service-request.d.cts +115 -3
  14. package/dist/actions/create-service-request.d.cts.map +1 -1
  15. package/dist/actions/create-service-request.d.mts +115 -3
  16. package/dist/actions/create-service-request.d.mts.map +1 -1
  17. package/dist/actions/create-service-request.mjs +35 -35
  18. package/dist/actions/create-service-request.mjs.map +1 -1
  19. package/dist/actions/create-ticket.cjs +34 -34
  20. package/dist/actions/create-ticket.cjs.map +1 -1
  21. package/dist/actions/create-ticket.d.cts +169 -3
  22. package/dist/actions/create-ticket.d.cts.map +1 -1
  23. package/dist/actions/create-ticket.d.mts +169 -3
  24. package/dist/actions/create-ticket.d.mts.map +1 -1
  25. package/dist/actions/create-ticket.mjs +34 -34
  26. package/dist/actions/create-ticket.mjs.map +1 -1
  27. package/dist/actions/delete-release.cjs +1 -1
  28. package/dist/actions/delete-release.cjs.map +1 -1
  29. package/dist/actions/delete-release.d.cts +11 -3
  30. package/dist/actions/delete-release.d.cts.map +1 -1
  31. package/dist/actions/delete-release.d.mts +11 -3
  32. package/dist/actions/delete-release.d.mts.map +1 -1
  33. package/dist/actions/delete-release.mjs +1 -1
  34. package/dist/actions/delete-release.mjs.map +1 -1
  35. package/dist/actions/delete-solution-article.cjs +2 -2
  36. package/dist/actions/delete-solution-article.cjs.map +1 -1
  37. package/dist/actions/delete-solution-article.d.cts +13 -3
  38. package/dist/actions/delete-solution-article.d.cts.map +1 -1
  39. package/dist/actions/delete-solution-article.d.mts +13 -3
  40. package/dist/actions/delete-solution-article.d.mts.map +1 -1
  41. package/dist/actions/delete-solution-article.mjs +2 -2
  42. package/dist/actions/delete-solution-article.mjs.map +1 -1
  43. package/dist/actions/delete-solution-category.cjs +2 -2
  44. package/dist/actions/delete-solution-category.cjs.map +1 -1
  45. package/dist/actions/delete-solution-category.d.cts +13 -3
  46. package/dist/actions/delete-solution-category.d.cts.map +1 -1
  47. package/dist/actions/delete-solution-category.d.mts +13 -3
  48. package/dist/actions/delete-solution-category.d.mts.map +1 -1
  49. package/dist/actions/delete-solution-category.mjs +2 -2
  50. package/dist/actions/delete-solution-category.mjs.map +1 -1
  51. package/dist/actions/get-problem-form-fields-by-workspace.cjs +19 -19
  52. package/dist/actions/get-problem-form-fields-by-workspace.cjs.map +1 -1
  53. package/dist/actions/get-problem-form-fields-by-workspace.d.cts +55 -3
  54. package/dist/actions/get-problem-form-fields-by-workspace.d.cts.map +1 -1
  55. package/dist/actions/get-problem-form-fields-by-workspace.d.mts +55 -3
  56. package/dist/actions/get-problem-form-fields-by-workspace.d.mts.map +1 -1
  57. package/dist/actions/get-problem-form-fields-by-workspace.mjs +19 -19
  58. package/dist/actions/get-problem-form-fields-by-workspace.mjs.map +1 -1
  59. package/dist/actions/get-release-form-fields.cjs +14 -14
  60. package/dist/actions/get-release-form-fields.cjs.map +1 -1
  61. package/dist/actions/get-release-form-fields.d.cts +41 -3
  62. package/dist/actions/get-release-form-fields.d.cts.map +1 -1
  63. package/dist/actions/get-release-form-fields.d.mts +41 -3
  64. package/dist/actions/get-release-form-fields.d.mts.map +1 -1
  65. package/dist/actions/get-release-form-fields.mjs +14 -14
  66. package/dist/actions/get-release-form-fields.mjs.map +1 -1
  67. package/dist/actions/get-ticket.cjs +34 -34
  68. package/dist/actions/get-ticket.cjs.map +1 -1
  69. package/dist/actions/get-ticket.d.cts +118 -3
  70. package/dist/actions/get-ticket.d.cts.map +1 -1
  71. package/dist/actions/get-ticket.d.mts +118 -3
  72. package/dist/actions/get-ticket.d.mts.map +1 -1
  73. package/dist/actions/get-ticket.mjs +34 -34
  74. package/dist/actions/get-ticket.mjs.map +1 -1
  75. package/dist/actions/list-locations.cjs +16 -16
  76. package/dist/actions/list-locations.cjs.map +1 -1
  77. package/dist/actions/list-locations.d.cts +47 -3
  78. package/dist/actions/list-locations.d.cts.map +1 -1
  79. package/dist/actions/list-locations.d.mts +47 -3
  80. package/dist/actions/list-locations.d.mts.map +1 -1
  81. package/dist/actions/list-locations.mjs +16 -16
  82. package/dist/actions/list-locations.mjs.map +1 -1
  83. package/dist/actions/list-service-catalog-items.cjs +16 -16
  84. package/dist/actions/list-service-catalog-items.cjs.map +1 -1
  85. package/dist/actions/list-service-catalog-items.d.cts +47 -3
  86. package/dist/actions/list-service-catalog-items.d.cts.map +1 -1
  87. package/dist/actions/list-service-catalog-items.d.mts +47 -3
  88. package/dist/actions/list-service-catalog-items.d.mts.map +1 -1
  89. package/dist/actions/list-service-catalog-items.mjs +16 -16
  90. package/dist/actions/list-service-catalog-items.mjs.map +1 -1
  91. package/dist/actions/list-tickets.cjs +34 -34
  92. package/dist/actions/list-tickets.cjs.map +1 -1
  93. package/dist/actions/list-tickets.d.cts +136 -3
  94. package/dist/actions/list-tickets.d.cts.map +1 -1
  95. package/dist/actions/list-tickets.d.mts +136 -3
  96. package/dist/actions/list-tickets.d.mts.map +1 -1
  97. package/dist/actions/list-tickets.mjs +34 -34
  98. package/dist/actions/list-tickets.mjs.map +1 -1
  99. package/dist/catalog.cjs +13 -1
  100. package/dist/catalog.cjs.map +1 -1
  101. package/dist/catalog.d.cts +12 -0
  102. package/dist/catalog.d.mts +12 -0
  103. package/dist/catalog.mjs +13 -1
  104. package/dist/catalog.mjs.map +1 -1
  105. package/package.json +2 -2
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-solution-category.d.ts
4
- declare const FreshserviceDeleteSolutionCategoryInput: z.ZodTypeAny;
5
- declare const FreshserviceDeleteSolutionCategoryOutput: z.ZodTypeAny;
6
- declare const freshserviceDeleteSolutionCategory: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceDeleteSolutionCategoryInput: z.ZodObject<{
5
+ category_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const FreshserviceDeleteSolutionCategoryOutput: z.ZodObject<{
8
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ }, z.core.$strip>;
11
+ declare const freshserviceDeleteSolutionCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ category_id: number;
13
+ }, {
14
+ status?: string | undefined;
15
+ message?: string | undefined;
16
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { freshserviceDeleteSolutionCategory };
9
19
  //# sourceMappingURL=delete-solution-category.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-solution-category.d.mts","names":[],"sources":["../../src/actions/delete-solution-category.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAEsB;AAAA,cACjE,wCAAA,EAA0C,CAAA,CAAE,UAGI;AAAA,cAEhD,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-solution-category.d.mts","names":[],"sources":["../../src/actions/delete-solution-category.ts"],"mappings":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;cAGvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAKxC,kCAAA,gCAAkC,wBAAA"}
@@ -6,8 +6,8 @@ const freshserviceDeleteSolutionCategory = action("FRESHSERVICE_DELETE_SOLUTION_
6
6
  description: "Tool to delete a solution category in Freshservice. Use this action when you need to remove a solution category that is no longer needed. This action is irreversible — the category cannot be recovered once deleted.",
7
7
  input: z.object({ category_id: z.number().int().describe("The unique ID of the solution category to delete") }).describe("Request model for deleting a solution category in Freshservice."),
8
8
  output: z.object({
9
- status: z.string().describe("Status of the deletion operation").nullable().optional(),
10
- message: z.string().describe("Message describing the deletion result").nullable().optional()
9
+ status: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Status of the deletion operation").optional()),
10
+ message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Message describing the deletion result").optional())
11
11
  }).describe("Response model for solution category deletion.")
12
12
  });
13
13
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"delete-solution-category.mjs","names":[],"sources":["../../src/actions/delete-solution-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionCategoryInput: z.ZodTypeAny = z.object({\n category_id: z.number().int().describe(\"The unique ID of the solution category to delete\"),\n}).describe(\"Request model for deleting a solution category in Freshservice.\");\nexport const FreshserviceDeleteSolutionCategoryOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the deletion operation\").nullable().optional(),\n message: z.string().describe(\"Message describing the deletion result\").nullable().optional(),\n}).describe(\"Response model for solution category deletion.\");\n\nexport const freshserviceDeleteSolutionCategory = action(\"FRESHSERVICE_DELETE_SOLUTION_CATEGORY\", {\n slug: \"freshservice-delete-solution-category\",\n name: \"Delete Solution Category\",\n description: \"Tool to delete a solution category in Freshservice. Use this action when you need to remove a solution category that is no longer needed. This action is irreversible — the category cannot be recovered once deleted.\",\n input: FreshserviceDeleteSolutionCategoryInput,\n output: FreshserviceDeleteSolutionCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,qCAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZmE,EAAE,OAAO,EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAC3F,CAAC,CAAC,CAAC,SAAS,iEAUH;CACP,QAVoE,EAAE,OAAO;EAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-solution-category.mjs","names":[],"sources":["../../src/actions/delete-solution-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceDeleteSolutionCategoryInput = z.object({\n category_id: z.number().int().describe(\"The unique ID of the solution category to delete\"),\n}).describe(\"Request model for deleting a solution category in Freshservice.\");\nexport const FreshserviceDeleteSolutionCategoryOutput = z.object({\n status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Status of the deletion operation\").optional()),\n message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Message describing the deletion result\").optional()),\n}).describe(\"Response model for solution category deletion.\");\n\nexport const freshserviceDeleteSolutionCategory = action(\"FRESHSERVICE_DELETE_SOLUTION_CATEGORY\", {\n slug: \"freshservice-delete-solution-category\",\n name: \"Delete Solution Category\",\n description: \"Tool to delete a solution category in Freshservice. Use this action when you need to remove a solution category that is no longer needed. This action is irreversible — the category cannot be recovered once deleted.\",\n input: FreshserviceDeleteSolutionCategoryInput,\n output: FreshserviceDeleteSolutionCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,qCAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO,EAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAC3F,CAAC,CAAC,CAAC,SAAS,iEAUH;CACP,QAVsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC;EACxI,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CACjJ,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -2,28 +2,28 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/get-problem-form-fields-by-workspace.ts
4
4
  const FreshserviceGetProblemFormFieldsByWorkspaceInput = zod.z.object({ workspace_id: zod.z.number().int().describe("ID of the workspace to list problem form fields for. If omitted, returns global and primary workspace fields.").optional() }).describe("Request model for listing problem form fields by workspace.");
5
- const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema = zod.z.object({ value: zod.z.string().describe("Allowed value for the choice field") }).describe("Choice option for a choice-type problem field.");
5
+ const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema = zod.z.object({ value: zod.z.string().describe("Allowed value for the choice field").nullable() }).describe("Choice option for a choice-type problem field.");
6
6
  const FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema = zod.z.object({
7
- id: zod.z.number().int().describe("Unique ID of the nested field"),
8
- name: zod.z.string().describe("Internal name of the nested field"),
9
- label: zod.z.string().describe("Display label of the nested field"),
10
- required: zod.z.boolean().describe("Whether the nested field is mandatory"),
11
- field_type: zod.z.string().describe("Type of the nested field, e.g., checkbox, text, etc.")
7
+ id: zod.z.number().int().describe("Unique ID of the nested field").nullable(),
8
+ name: zod.z.string().describe("Internal name of the nested field").nullable(),
9
+ label: zod.z.string().describe("Display label of the nested field").nullable(),
10
+ required: zod.z.boolean().describe("Whether the nested field is mandatory").nullable(),
11
+ field_type: zod.z.string().describe("Type of the nested field, e.g., checkbox, text, etc.").nullable()
12
12
  }).describe("Nested field within a problem field.");
13
13
  const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema = zod.z.object({
14
- id: zod.z.number().int().describe("Unique ID of the field"),
15
- name: zod.z.string().describe("Internal name of the field"),
16
- label: zod.z.string().describe("Display label of the field"),
17
- choices: zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe("Allowed values for choice-type fields").nullable().optional(),
18
- required: zod.z.boolean().describe("Whether the field is mandatory"),
19
- created_at: zod.z.string().describe("Timestamp when the field was created (ISO 8601)"),
20
- field_type: zod.z.string().describe("Type of the field, e.g., checkbox, dropdown, text"),
21
- updated_at: zod.z.string().describe("Timestamp when the field was last updated (ISO 8601)"),
22
- description: zod.z.string().describe("Description of the field").nullable().optional(),
23
- workspace_id: zod.z.number().int().describe("Workspace to which the field belongs"),
24
- default_field: zod.z.boolean().describe("Whether the field is a default field (true) or custom (false)"),
25
- nested_fields: zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe("Nested fields within this field, if applicable").nullable().optional(),
26
- required_for_closure: zod.z.boolean().describe("Whether the field is mandatory for problem closure")
14
+ id: zod.z.number().int().describe("Unique ID of the field").nullable(),
15
+ name: zod.z.string().describe("Internal name of the field").nullable(),
16
+ label: zod.z.string().describe("Display label of the field").nullable(),
17
+ choices: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe("Allowed values for choice-type fields").optional()),
18
+ required: zod.z.boolean().describe("Whether the field is mandatory").nullable(),
19
+ created_at: zod.z.string().describe("Timestamp when the field was created (ISO 8601)").nullable(),
20
+ field_type: zod.z.string().describe("Type of the field, e.g., checkbox, dropdown, text").nullable(),
21
+ updated_at: zod.z.string().describe("Timestamp when the field was last updated (ISO 8601)").nullable(),
22
+ description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Description of the field").optional()),
23
+ workspace_id: zod.z.number().int().describe("Workspace to which the field belongs").nullable(),
24
+ default_field: zod.z.boolean().describe("Whether the field is a default field (true) or custom (false)").nullable(),
25
+ nested_fields: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe("Nested fields within this field, if applicable").optional()),
26
+ required_for_closure: zod.z.boolean().describe("Whether the field is mandatory for problem closure").nullable()
27
27
  }).describe("Model representing a Freshservice problem form field.");
28
28
  const FreshserviceGetProblemFormFieldsByWorkspaceOutput = zod.z.object({ problem_fields: zod.z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema).describe("List of problem form field definitions for the workspace") }).describe("Response model for listing problem form fields by workspace.");
29
29
  const freshserviceGetProblemFormFieldsByWorkspace = require_action.action("FRESHSERVICE_GET_PROBLEM_FORM_FIELDS_BY_WORKSPACE", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-problem-form-fields-by-workspace.cjs","names":["z","action"],"sources":["../../src/actions/get-problem-form-fields-by-workspace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetProblemFormFieldsByWorkspaceInput: z.ZodTypeAny = z.object({\n workspace_id: z.number().int().describe(\"ID of the workspace to list problem form fields for. If omitted, returns global and primary workspace fields.\").optional(),\n}).describe(\"Request model for listing problem form fields by workspace.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"Allowed value for the choice field\"),\n}).describe(\"Choice option for a choice-type problem field.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the nested field\"),\n name: z.string().describe(\"Internal name of the nested field\"),\n label: z.string().describe(\"Display label of the nested field\"),\n required: z.boolean().describe(\"Whether the nested field is mandatory\"),\n field_type: z.string().describe(\"Type of the nested field, e.g., checkbox, text, etc.\"),\n}).describe(\"Nested field within a problem field.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the field\"),\n name: z.string().describe(\"Internal name of the field\"),\n label: z.string().describe(\"Display label of the field\"),\n choices: z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe(\"Allowed values for choice-type fields\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is mandatory\"),\n created_at: z.string().describe(\"Timestamp when the field was created (ISO 8601)\"),\n field_type: z.string().describe(\"Type of the field, e.g., checkbox, dropdown, text\"),\n updated_at: z.string().describe(\"Timestamp when the field was last updated (ISO 8601)\"),\n description: z.string().describe(\"Description of the field\").nullable().optional(),\n workspace_id: z.number().int().describe(\"Workspace to which the field belongs\"),\n default_field: z.boolean().describe(\"Whether the field is a default field (true) or custom (false)\"),\n nested_fields: z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe(\"Nested fields within this field, if applicable\").nullable().optional(),\n required_for_closure: z.boolean().describe(\"Whether the field is mandatory for problem closure\"),\n}).describe(\"Model representing a Freshservice problem form field.\");\nexport const FreshserviceGetProblemFormFieldsByWorkspaceOutput: z.ZodTypeAny = z.object({\n problem_fields: z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema).describe(\"List of problem form field definitions for the workspace\"),\n}).describe(\"Response model for listing problem form fields by workspace.\");\n\nexport const freshserviceGetProblemFormFieldsByWorkspace = action(\"FRESHSERVICE_GET_PROBLEM_FORM_FIELDS_BY_WORKSPACE\", {\n slug: \"freshservice-get-problem-form-fields-by-workspace\",\n name: \"Get Problem Form Fields by Workspace\",\n description: \"Tool to list problem form fields. Use when you need to retrieve the form fields available for problems in a specific workspace.\",\n input: FreshserviceGetProblemFormFieldsByWorkspaceInput,\n output: FreshserviceGetProblemFormFieldsByWorkspaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mDAAiEA,IAAAA,EAAE,OAAO,EACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,EACpK,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,uEAAqFA,IAAAA,EAAE,OAAO,EAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACjE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;CAC3F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACxF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,iEAA+EA,IAAAA,EAAE,OAAO;CAC5F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,SAASA,IAAAA,EAAE,MAAM,oEAAoE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CAC9E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D;CACnG,eAAeA,IAAAA,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD;AACjG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,oDAAkEA,IAAAA,EAAE,OAAO,EACtF,gBAAgBA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,0DAA0D,EAC7J,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,8CAA8CC,eAAAA,OAAO,qDAAqD;CACrH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-problem-form-fields-by-workspace.cjs","names":["z","action"],"sources":["../../src/actions/get-problem-form-fields-by-workspace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetProblemFormFieldsByWorkspaceInput = z.object({\n workspace_id: z.number().int().describe(\"ID of the workspace to list problem form fields for. If omitted, returns global and primary workspace fields.\").optional(),\n}).describe(\"Request model for listing problem form fields by workspace.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema = z.object({\n value: z.string().describe(\"Allowed value for the choice field\").nullable(),\n}).describe(\"Choice option for a choice-type problem field.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the nested field\").nullable(),\n name: z.string().describe(\"Internal name of the nested field\").nullable(),\n label: z.string().describe(\"Display label of the nested field\").nullable(),\n required: z.boolean().describe(\"Whether the nested field is mandatory\").nullable(),\n field_type: z.string().describe(\"Type of the nested field, e.g., checkbox, text, etc.\").nullable(),\n}).describe(\"Nested field within a problem field.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the field\").nullable(),\n name: z.string().describe(\"Internal name of the field\").nullable(),\n label: z.string().describe(\"Display label of the field\").nullable(),\n choices: z.preprocess((value) => (value === null ? undefined : value), z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe(\"Allowed values for choice-type fields\").optional()),\n required: z.boolean().describe(\"Whether the field is mandatory\").nullable(),\n created_at: z.string().describe(\"Timestamp when the field was created (ISO 8601)\").nullable(),\n field_type: z.string().describe(\"Type of the field, e.g., checkbox, dropdown, text\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the field was last updated (ISO 8601)\").nullable(),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the field\").optional()),\n workspace_id: z.number().int().describe(\"Workspace to which the field belongs\").nullable(),\n default_field: z.boolean().describe(\"Whether the field is a default field (true) or custom (false)\").nullable(),\n nested_fields: z.preprocess((value) => (value === null ? undefined : value), z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe(\"Nested fields within this field, if applicable\").optional()),\n required_for_closure: z.boolean().describe(\"Whether the field is mandatory for problem closure\").nullable(),\n}).describe(\"Model representing a Freshservice problem form field.\");\nexport const FreshserviceGetProblemFormFieldsByWorkspaceOutput = z.object({\n problem_fields: z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema).describe(\"List of problem form field definitions for the workspace\"),\n}).describe(\"Response model for listing problem form fields by workspace.\");\n\nexport const freshserviceGetProblemFormFieldsByWorkspace = action(\"FRESHSERVICE_GET_PROBLEM_FORM_FIELDS_BY_WORKSPACE\", {\n slug: \"freshservice-get-problem-form-fields-by-workspace\",\n name: \"Get Problem Form Fields by Workspace\",\n description: \"Tool to list problem form fields. Use when you need to retrieve the form fields available for problems in a specific workspace.\",\n input: FreshserviceGetProblemFormFieldsByWorkspaceInput,\n output: FreshserviceGetProblemFormFieldsByWorkspaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mDAAmDA,IAAAA,EAAE,OAAO,EACvE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,EACpK,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,uEAAuEA,IAAAA,EAAE,OAAO,EACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,gEAAgEA,IAAAA,EAAE,OAAO;CAC7E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,iEAAiEA,IAAAA,EAAE,OAAO;CAC9E,IA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CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,oDAAoDA,IAAAA,EAAE,OAAO,EACxE,gBAAgBA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,0DAA0D,EAC7J,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,8CAA8CC,eAAAA,OAAO,qDAAqD;CACrH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,61 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-problem-form-fields-by-workspace.d.ts
4
- declare const FreshserviceGetProblemFormFieldsByWorkspaceInput: z.ZodTypeAny;
5
- declare const FreshserviceGetProblemFormFieldsByWorkspaceOutput: z.ZodTypeAny;
6
- declare const freshserviceGetProblemFormFieldsByWorkspace: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceGetProblemFormFieldsByWorkspaceInput: z.ZodObject<{
5
+ workspace_id: z.ZodOptional<z.ZodNumber>;
6
+ }, z.core.$strip>;
7
+ declare const FreshserviceGetProblemFormFieldsByWorkspaceOutput: z.ZodObject<{
8
+ problem_fields: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodNumber>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ label: z.ZodNullable<z.ZodString>;
12
+ choices: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ value: z.ZodNullable<z.ZodString>;
14
+ }, z.core.$strip>>>>;
15
+ required: z.ZodNullable<z.ZodBoolean>;
16
+ created_at: z.ZodNullable<z.ZodString>;
17
+ field_type: z.ZodNullable<z.ZodString>;
18
+ updated_at: z.ZodNullable<z.ZodString>;
19
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ workspace_id: z.ZodNullable<z.ZodNumber>;
21
+ default_field: z.ZodNullable<z.ZodBoolean>;
22
+ nested_fields: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodNullable<z.ZodNumber>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ label: z.ZodNullable<z.ZodString>;
26
+ required: z.ZodNullable<z.ZodBoolean>;
27
+ field_type: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$strip>>>>;
29
+ required_for_closure: z.ZodNullable<z.ZodBoolean>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ declare const freshserviceGetProblemFormFieldsByWorkspace: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ workspace_id?: number | undefined;
34
+ }, {
35
+ problem_fields: {
36
+ id: number | null;
37
+ name: string | null;
38
+ label: string | null;
39
+ required: boolean | null;
40
+ created_at: string | null;
41
+ field_type: string | null;
42
+ updated_at: string | null;
43
+ workspace_id: number | null;
44
+ default_field: boolean | null;
45
+ required_for_closure: boolean | null;
46
+ choices?: {
47
+ value: string | null;
48
+ }[] | undefined;
49
+ description?: string | undefined;
50
+ nested_fields?: {
51
+ id: number | null;
52
+ name: string | null;
53
+ label: string | null;
54
+ required: boolean | null;
55
+ field_type: string | null;
56
+ }[] | undefined;
57
+ }[];
58
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
59
  //#endregion
8
60
  export { freshserviceGetProblemFormFieldsByWorkspace };
9
61
  //# sourceMappingURL=get-problem-form-fields-by-workspace.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-problem-form-fields-by-workspace.d.cts","names":[],"sources":["../../src/actions/get-problem-form-fields-by-workspace.ts"],"mappings":";;;cAIa,gDAAA,EAAkD,CAAA,CAAE,UAES;AAAA,cA0B7D,iDAAA,EAAmD,CAAA,CAAE,UAES;AAAA,cAE9D,2CAAA,gCAA2C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-problem-form-fields-by-workspace.d.cts","names":[],"sources":["../../src/actions/get-problem-form-fields-by-workspace.ts"],"mappings":";;;cAIa,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;cA4BhD,iDAAA,EAAiD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAIjD,2CAAA,gCAA2C,wBAAA"}
@@ -1,9 +1,61 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-problem-form-fields-by-workspace.d.ts
4
- declare const FreshserviceGetProblemFormFieldsByWorkspaceInput: z.ZodTypeAny;
5
- declare const FreshserviceGetProblemFormFieldsByWorkspaceOutput: z.ZodTypeAny;
6
- declare const freshserviceGetProblemFormFieldsByWorkspace: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceGetProblemFormFieldsByWorkspaceInput: z.ZodObject<{
5
+ workspace_id: z.ZodOptional<z.ZodNumber>;
6
+ }, z.core.$strip>;
7
+ declare const FreshserviceGetProblemFormFieldsByWorkspaceOutput: z.ZodObject<{
8
+ problem_fields: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodNumber>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ label: z.ZodNullable<z.ZodString>;
12
+ choices: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ value: z.ZodNullable<z.ZodString>;
14
+ }, z.core.$strip>>>>;
15
+ required: z.ZodNullable<z.ZodBoolean>;
16
+ created_at: z.ZodNullable<z.ZodString>;
17
+ field_type: z.ZodNullable<z.ZodString>;
18
+ updated_at: z.ZodNullable<z.ZodString>;
19
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ workspace_id: z.ZodNullable<z.ZodNumber>;
21
+ default_field: z.ZodNullable<z.ZodBoolean>;
22
+ nested_fields: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodNullable<z.ZodNumber>;
24
+ name: z.ZodNullable<z.ZodString>;
25
+ label: z.ZodNullable<z.ZodString>;
26
+ required: z.ZodNullable<z.ZodBoolean>;
27
+ field_type: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$strip>>>>;
29
+ required_for_closure: z.ZodNullable<z.ZodBoolean>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ declare const freshserviceGetProblemFormFieldsByWorkspace: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ workspace_id?: number | undefined;
34
+ }, {
35
+ problem_fields: {
36
+ id: number | null;
37
+ name: string | null;
38
+ label: string | null;
39
+ required: boolean | null;
40
+ created_at: string | null;
41
+ field_type: string | null;
42
+ updated_at: string | null;
43
+ workspace_id: number | null;
44
+ default_field: boolean | null;
45
+ required_for_closure: boolean | null;
46
+ choices?: {
47
+ value: string | null;
48
+ }[] | undefined;
49
+ description?: string | undefined;
50
+ nested_fields?: {
51
+ id: number | null;
52
+ name: string | null;
53
+ label: string | null;
54
+ required: boolean | null;
55
+ field_type: string | null;
56
+ }[] | undefined;
57
+ }[];
58
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
59
  //#endregion
8
60
  export { freshserviceGetProblemFormFieldsByWorkspace };
9
61
  //# sourceMappingURL=get-problem-form-fields-by-workspace.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-problem-form-fields-by-workspace.d.mts","names":[],"sources":["../../src/actions/get-problem-form-fields-by-workspace.ts"],"mappings":";;;cAIa,gDAAA,EAAkD,CAAA,CAAE,UAES;AAAA,cA0B7D,iDAAA,EAAmD,CAAA,CAAE,UAES;AAAA,cAE9D,2CAAA,gCAA2C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-problem-form-fields-by-workspace.d.mts","names":[],"sources":["../../src/actions/get-problem-form-fields-by-workspace.ts"],"mappings":";;;cAIa,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;cA4BhD,iDAAA,EAAiD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAIjD,2CAAA,gCAA2C,wBAAA"}
@@ -2,28 +2,28 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/get-problem-form-fields-by-workspace.ts
4
4
  const FreshserviceGetProblemFormFieldsByWorkspaceInput = z.object({ workspace_id: z.number().int().describe("ID of the workspace to list problem form fields for. If omitted, returns global and primary workspace fields.").optional() }).describe("Request model for listing problem form fields by workspace.");
5
- const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema = z.object({ value: z.string().describe("Allowed value for the choice field") }).describe("Choice option for a choice-type problem field.");
5
+ const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema = z.object({ value: z.string().describe("Allowed value for the choice field").nullable() }).describe("Choice option for a choice-type problem field.");
6
6
  const FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema = z.object({
7
- id: z.number().int().describe("Unique ID of the nested field"),
8
- name: z.string().describe("Internal name of the nested field"),
9
- label: z.string().describe("Display label of the nested field"),
10
- required: z.boolean().describe("Whether the nested field is mandatory"),
11
- field_type: z.string().describe("Type of the nested field, e.g., checkbox, text, etc.")
7
+ id: z.number().int().describe("Unique ID of the nested field").nullable(),
8
+ name: z.string().describe("Internal name of the nested field").nullable(),
9
+ label: z.string().describe("Display label of the nested field").nullable(),
10
+ required: z.boolean().describe("Whether the nested field is mandatory").nullable(),
11
+ field_type: z.string().describe("Type of the nested field, e.g., checkbox, text, etc.").nullable()
12
12
  }).describe("Nested field within a problem field.");
13
13
  const FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema = z.object({
14
- id: z.number().int().describe("Unique ID of the field"),
15
- name: z.string().describe("Internal name of the field"),
16
- label: z.string().describe("Display label of the field"),
17
- choices: z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe("Allowed values for choice-type fields").nullable().optional(),
18
- required: z.boolean().describe("Whether the field is mandatory"),
19
- created_at: z.string().describe("Timestamp when the field was created (ISO 8601)"),
20
- field_type: z.string().describe("Type of the field, e.g., checkbox, dropdown, text"),
21
- updated_at: z.string().describe("Timestamp when the field was last updated (ISO 8601)"),
22
- description: z.string().describe("Description of the field").nullable().optional(),
23
- workspace_id: z.number().int().describe("Workspace to which the field belongs"),
24
- default_field: z.boolean().describe("Whether the field is a default field (true) or custom (false)"),
25
- nested_fields: z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe("Nested fields within this field, if applicable").nullable().optional(),
26
- required_for_closure: z.boolean().describe("Whether the field is mandatory for problem closure")
14
+ id: z.number().int().describe("Unique ID of the field").nullable(),
15
+ name: z.string().describe("Internal name of the field").nullable(),
16
+ label: z.string().describe("Display label of the field").nullable(),
17
+ choices: z.preprocess((value) => value === null ? void 0 : value, z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe("Allowed values for choice-type fields").optional()),
18
+ required: z.boolean().describe("Whether the field is mandatory").nullable(),
19
+ created_at: z.string().describe("Timestamp when the field was created (ISO 8601)").nullable(),
20
+ field_type: z.string().describe("Type of the field, e.g., checkbox, dropdown, text").nullable(),
21
+ updated_at: z.string().describe("Timestamp when the field was last updated (ISO 8601)").nullable(),
22
+ description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Description of the field").optional()),
23
+ workspace_id: z.number().int().describe("Workspace to which the field belongs").nullable(),
24
+ default_field: z.boolean().describe("Whether the field is a default field (true) or custom (false)").nullable(),
25
+ nested_fields: z.preprocess((value) => value === null ? void 0 : value, z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe("Nested fields within this field, if applicable").optional()),
26
+ required_for_closure: z.boolean().describe("Whether the field is mandatory for problem closure").nullable()
27
27
  }).describe("Model representing a Freshservice problem form field.");
28
28
  const freshserviceGetProblemFormFieldsByWorkspace = action("FRESHSERVICE_GET_PROBLEM_FORM_FIELDS_BY_WORKSPACE", {
29
29
  slug: "freshservice-get-problem-form-fields-by-workspace",
@@ -1 +1 @@
1
- {"version":3,"file":"get-problem-form-fields-by-workspace.mjs","names":[],"sources":["../../src/actions/get-problem-form-fields-by-workspace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetProblemFormFieldsByWorkspaceInput: z.ZodTypeAny = z.object({\n workspace_id: z.number().int().describe(\"ID of the workspace to list problem form fields for. If omitted, returns global and primary workspace fields.\").optional(),\n}).describe(\"Request model for listing problem form fields by workspace.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"Allowed value for the choice field\"),\n}).describe(\"Choice option for a choice-type problem field.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the nested field\"),\n name: z.string().describe(\"Internal name of the nested field\"),\n label: z.string().describe(\"Display label of the nested field\"),\n required: z.boolean().describe(\"Whether the nested field is mandatory\"),\n field_type: z.string().describe(\"Type of the nested field, e.g., checkbox, text, etc.\"),\n}).describe(\"Nested field within a problem field.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the field\"),\n name: z.string().describe(\"Internal name of the field\"),\n label: z.string().describe(\"Display label of the field\"),\n choices: z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe(\"Allowed values for choice-type fields\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is mandatory\"),\n created_at: z.string().describe(\"Timestamp when the field was created (ISO 8601)\"),\n field_type: z.string().describe(\"Type of the field, e.g., checkbox, dropdown, text\"),\n updated_at: z.string().describe(\"Timestamp when the field was last updated (ISO 8601)\"),\n description: z.string().describe(\"Description of the field\").nullable().optional(),\n workspace_id: z.number().int().describe(\"Workspace to which the field belongs\"),\n default_field: z.boolean().describe(\"Whether the field is a default field (true) or custom (false)\"),\n nested_fields: z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe(\"Nested fields within this field, if applicable\").nullable().optional(),\n required_for_closure: z.boolean().describe(\"Whether the field is mandatory for problem closure\"),\n}).describe(\"Model representing a Freshservice problem form field.\");\nexport const FreshserviceGetProblemFormFieldsByWorkspaceOutput: z.ZodTypeAny = z.object({\n problem_fields: z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema).describe(\"List of problem form field definitions for the workspace\"),\n}).describe(\"Response model for listing problem form fields by workspace.\");\n\nexport const freshserviceGetProblemFormFieldsByWorkspace = action(\"FRESHSERVICE_GET_PROBLEM_FORM_FIELDS_BY_WORKSPACE\", {\n slug: \"freshservice-get-problem-form-fields-by-workspace\",\n name: \"Get Problem Form Fields by Workspace\",\n description: \"Tool to list problem form fields. Use when you need to retrieve the form fields available for problems in a specific workspace.\",\n input: FreshserviceGetProblemFormFieldsByWorkspaceInput,\n output: FreshserviceGetProblemFormFieldsByWorkspaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mDAAiE,EAAE,OAAO,EACrF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,EACpK,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,uEAAqF,EAAE,OAAO,EAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACjE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,gEAA8E,EAAE,OAAO;CAC3F,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAM,EAAE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EACtF,gBAAgB,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,0DAA0D,EAC7J,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-problem-form-fields-by-workspace.mjs","names":[],"sources":["../../src/actions/get-problem-form-fields-by-workspace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetProblemFormFieldsByWorkspaceInput = z.object({\n workspace_id: z.number().int().describe(\"ID of the workspace to list problem form fields for. If omitted, returns global and primary workspace fields.\").optional(),\n}).describe(\"Request model for listing problem form fields by workspace.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema = z.object({\n value: z.string().describe(\"Allowed value for the choice field\").nullable(),\n}).describe(\"Choice option for a choice-type problem field.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the nested field\").nullable(),\n name: z.string().describe(\"Internal name of the nested field\").nullable(),\n label: z.string().describe(\"Display label of the nested field\").nullable(),\n required: z.boolean().describe(\"Whether the nested field is mandatory\").nullable(),\n field_type: z.string().describe(\"Type of the nested field, e.g., checkbox, text, etc.\").nullable(),\n}).describe(\"Nested field within a problem field.\");\nconst FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the field\").nullable(),\n name: z.string().describe(\"Internal name of the field\").nullable(),\n label: z.string().describe(\"Display label of the field\").nullable(),\n choices: z.preprocess((value) => (value === null ? undefined : value), z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldChoiceSchema).describe(\"Allowed values for choice-type fields\").optional()),\n required: z.boolean().describe(\"Whether the field is mandatory\").nullable(),\n created_at: z.string().describe(\"Timestamp when the field was created (ISO 8601)\").nullable(),\n field_type: z.string().describe(\"Type of the field, e.g., checkbox, dropdown, text\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the field was last updated (ISO 8601)\").nullable(),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the field\").optional()),\n workspace_id: z.number().int().describe(\"Workspace to which the field belongs\").nullable(),\n default_field: z.boolean().describe(\"Whether the field is a default field (true) or custom (false)\").nullable(),\n nested_fields: z.preprocess((value) => (value === null ? undefined : value), z.array(FreshserviceGetProblemFormFieldsByWorkspace_NestedFieldSchema).describe(\"Nested fields within this field, if applicable\").optional()),\n required_for_closure: z.boolean().describe(\"Whether the field is mandatory for problem closure\").nullable(),\n}).describe(\"Model representing a Freshservice problem form field.\");\nexport const FreshserviceGetProblemFormFieldsByWorkspaceOutput = z.object({\n problem_fields: z.array(FreshserviceGetProblemFormFieldsByWorkspace_ProblemFieldSchema).describe(\"List of problem form field definitions for the workspace\"),\n}).describe(\"Response model for listing problem form fields by workspace.\");\n\nexport const freshserviceGetProblemFormFieldsByWorkspace = action(\"FRESHSERVICE_GET_PROBLEM_FORM_FIELDS_BY_WORKSPACE\", {\n slug: \"freshservice-get-problem-form-fields-by-workspace\",\n name: \"Get Problem Form Fields by Workspace\",\n description: \"Tool to list problem form fields. Use when you need to retrieve the form fields available for problems in a specific workspace.\",\n input: FreshserviceGetProblemFormFieldsByWorkspaceInput,\n output: FreshserviceGetProblemFormFieldsByWorkspaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mDAAmD,EAAE,OAAO,EACvE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,EACpK,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,uEAAuE,EAAE,OAAO,EACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,gEAAgE,EAAE,OAAO;CAC7E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SA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A+D,CAAC,CAAC,SAAS;CAC9G,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CACzN,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAKnE,MAAa,8CAA8C,OAAO,qDAAqD;CACrH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+D,EAAE,OAAO,EACxE,gBAAgB,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,0DAA0D,EAC7J,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
@@ -3,20 +3,20 @@ let zod = require("zod");
3
3
  //#region src/actions/get-release-form-fields.ts
4
4
  const FreshserviceGetReleaseFormFieldsInput = zod.z.object({ workspace_id: zod.z.number().int().describe("Filter fields for a specific workspace. By default only global fields and primary workspace fields are returned in Employee Support Mode.").optional() }).describe("Request model for listing release form fields metadata.");
5
5
  const FreshserviceGetReleaseFormFields_ReleaseFieldSchema = zod.z.object({
6
- id: zod.z.number().int().describe("Unique ID of the field"),
7
- name: zod.z.string().describe("API name of the field"),
8
- label: zod.z.string().describe("Display label of the field"),
9
- choices: zod.z.array(zod.z.string()).describe("List of allowed values (for choice fields)").nullable().optional(),
10
- position: zod.z.number().int().describe("Display order of the field").nullable().optional(),
11
- required: zod.z.boolean().describe("True if the field is mandatory"),
12
- created_at: zod.z.string().describe("Timestamp when the field was added"),
13
- field_type: zod.z.string().describe("Field type (e.g., default_subject, custom types)"),
14
- updated_at: zod.z.string().describe("Timestamp when the field was last modified"),
15
- description: zod.z.string().describe("Description of the field").nullable().optional(),
16
- workspace_id: zod.z.number().int().describe("ID of the workspace this field belongs to (Employee Support Mode only)").nullable().optional(),
17
- default_field: zod.z.boolean().describe("True if the field is a default system field"),
18
- nested_fields: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Details of nested fields (if any)").nullable().optional(),
19
- required_for_closure: zod.z.boolean().describe("True if the field is mandatory while closing the item")
6
+ id: zod.z.number().int().describe("Unique ID of the field").nullable(),
7
+ name: zod.z.string().describe("API name of the field").nullable(),
8
+ label: zod.z.string().describe("Display label of the field").nullable(),
9
+ choices: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("List of allowed values (for choice fields)").optional()),
10
+ position: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Display order of the field").optional()),
11
+ required: zod.z.boolean().describe("True if the field is mandatory").nullable(),
12
+ created_at: zod.z.string().describe("Timestamp when the field was added").nullable(),
13
+ field_type: zod.z.string().describe("Field type (e.g., default_subject, custom types)").nullable(),
14
+ updated_at: zod.z.string().describe("Timestamp when the field was last modified").nullable(),
15
+ description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Description of the field").optional()),
16
+ workspace_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("ID of the workspace this field belongs to (Employee Support Mode only)").optional()),
17
+ default_field: zod.z.boolean().describe("True if the field is a default system field").nullable(),
18
+ nested_fields: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Details of nested fields (if any)").optional()),
19
+ required_for_closure: zod.z.boolean().describe("True if the field is mandatory while closing the item").nullable()
20
20
  }).describe("Metadata for a single release form field.");
21
21
  const FreshserviceGetReleaseFormFieldsOutput = zod.z.object({ release_fields: zod.z.array(FreshserviceGetReleaseFormFields_ReleaseFieldSchema).describe("Array of release form field definitions") }).describe("Response model for listing release form fields metadata.");
22
22
  const freshserviceGetReleaseFormFields = require_action.action("FRESHSERVICE_GET_RELEASE_FORM_FIELDS", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-release-form-fields.cjs","names":["z","action"],"sources":["../../src/actions/get-release-form-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetReleaseFormFieldsInput: z.ZodTypeAny = z.object({\n workspace_id: z.number().int().describe(\"Filter fields for a specific workspace. By default only global fields and primary workspace fields are returned in Employee Support Mode.\").optional(),\n}).describe(\"Request model for listing release form fields metadata.\");\nconst FreshserviceGetReleaseFormFields_ReleaseFieldSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the field\"),\n name: z.string().describe(\"API name of the field\"),\n label: z.string().describe(\"Display label of the field\"),\n choices: z.array(z.string()).describe(\"List of allowed values (for choice fields)\").nullable().optional(),\n position: z.number().int().describe(\"Display order of the field\").nullable().optional(),\n required: z.boolean().describe(\"True if the field is mandatory\"),\n created_at: z.string().describe(\"Timestamp when the field was added\"),\n field_type: z.string().describe(\"Field type (e.g., default_subject, custom types)\"),\n updated_at: z.string().describe(\"Timestamp when the field was last modified\"),\n description: z.string().describe(\"Description of the field\").nullable().optional(),\n workspace_id: z.number().int().describe(\"ID of the workspace this field belongs to (Employee Support Mode only)\").nullable().optional(),\n default_field: z.boolean().describe(\"True if the field is a default system field\"),\n nested_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Details of nested fields (if any)\").nullable().optional(),\n required_for_closure: z.boolean().describe(\"True if the field is mandatory while closing the item\"),\n}).describe(\"Metadata for a single release form field.\");\nexport const FreshserviceGetReleaseFormFieldsOutput: z.ZodTypeAny = z.object({\n release_fields: z.array(FreshserviceGetReleaseFormFields_ReleaseFieldSchema).describe(\"Array of release form field definitions\"),\n}).describe(\"Response model for listing release form fields metadata.\");\n\nexport const freshserviceGetReleaseFormFields = action(\"FRESHSERVICE_GET_RELEASE_FORM_FIELDS\", {\n slug: \"freshservice-get-release-form-fields\",\n name: \"List Release Form Fields\",\n description: \"Tool to list release form fields metadata. Use when you need to fetch release field definitions before building or validating release forms.\",\n input: FreshserviceGetReleaseFormFieldsInput,\n output: FreshserviceGetReleaseFormFieldsOutput,\n});\n"],"mappings":";;;AAI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AAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD;AACpG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,gBAAgBA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC,EACjI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-release-form-fields.cjs","names":["z","action"],"sources":["../../src/actions/get-release-form-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetReleaseFormFieldsInput = z.object({\n workspace_id: z.number().int().describe(\"Filter fields for a specific workspace. By default only global fields and primary workspace fields are returned in Employee Support Mode.\").optional(),\n}).describe(\"Request model for listing release form fields metadata.\");\nconst FreshserviceGetReleaseFormFields_ReleaseFieldSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the field\").nullable(),\n name: z.string().describe(\"API name of the field\").nullable(),\n label: z.string().describe(\"Display label of the field\").nullable(),\n choices: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"List of allowed values (for choice fields)\").optional()),\n position: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Display order of the field\").optional()),\n required: z.boolean().describe(\"True if the field is mandatory\").nullable(),\n created_at: z.string().describe(\"Timestamp when the field was added\").nullable(),\n field_type: z.string().describe(\"Field type (e.g., default_subject, custom types)\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the field was last modified\").nullable(),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Description of the field\").optional()),\n workspace_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the workspace this field belongs to (Employee Support Mode only)\").optional()),\n default_field: z.boolean().describe(\"True if the field is a default system field\").nullable(),\n nested_fields: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).describe(\"Details of nested fields (if any)\").optional()),\n required_for_closure: z.boolean().describe(\"True if the field is mandatory while closing the item\").nullable(),\n}).describe(\"Metadata for a single release form field.\");\nexport const FreshserviceGetReleaseFormFieldsOutput = z.object({\n release_fields: z.array(FreshserviceGetReleaseFormFields_ReleaseFieldSchema).describe(\"Array of release form field definitions\"),\n}).describe(\"Response model for listing release form fields metadata.\");\n\nexport const freshserviceGetReleaseFormFields = action(\"FRESHSERVICE_GET_RELEASE_FORM_FIELDS\", {\n slug: \"freshservice-get-release-form-fields\",\n name: \"List Release Form Fields\",\n description: \"Tool to list release form fields metadata. Use when you need to fetch release field definitions before building or validating release forms.\",\n input: FreshserviceGetReleaseFormFieldsInput,\n output: FreshserviceGetReleaseFormFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS,EAChM,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,C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AyCA,IAAAA,EAAE,OAAO,EAC7D,gBAAgBA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC,EACjI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-release-form-fields.d.ts
4
- declare const FreshserviceGetReleaseFormFieldsInput: z.ZodTypeAny;
5
- declare const FreshserviceGetReleaseFormFieldsOutput: z.ZodTypeAny;
6
- declare const freshserviceGetReleaseFormFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceGetReleaseFormFieldsInput: z.ZodObject<{
5
+ workspace_id: z.ZodOptional<z.ZodNumber>;
6
+ }, z.core.$strip>;
7
+ declare const FreshserviceGetReleaseFormFieldsOutput: z.ZodObject<{
8
+ release_fields: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodNumber>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ label: z.ZodNullable<z.ZodString>;
12
+ choices: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
13
+ position: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
+ required: z.ZodNullable<z.ZodBoolean>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ field_type: z.ZodNullable<z.ZodString>;
17
+ updated_at: z.ZodNullable<z.ZodString>;
18
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ workspace_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
20
+ default_field: z.ZodNullable<z.ZodBoolean>;
21
+ nested_fields: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
22
+ required_for_closure: z.ZodNullable<z.ZodBoolean>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>;
25
+ declare const freshserviceGetReleaseFormFields: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ workspace_id?: number | undefined;
27
+ }, {
28
+ release_fields: {
29
+ id: number | null;
30
+ name: string | null;
31
+ label: string | null;
32
+ required: boolean | null;
33
+ created_at: string | null;
34
+ field_type: string | null;
35
+ updated_at: string | null;
36
+ default_field: boolean | null;
37
+ required_for_closure: boolean | null;
38
+ choices?: string[] | undefined;
39
+ position?: number | undefined;
40
+ description?: string | undefined;
41
+ workspace_id?: number | undefined;
42
+ nested_fields?: Record<string, unknown>[] | undefined;
43
+ }[];
44
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { freshserviceGetReleaseFormFields };
9
47
  //# sourceMappingURL=get-release-form-fields.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-release-form-fields.d.cts","names":[],"sources":["../../src/actions/get-release-form-fields.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAEgB;AAAA,cAiBzD,sCAAA,EAAwC,CAAA,CAAE,UAEgB;AAAA,cAE1D,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-release-form-fields.d.cts","names":[],"sources":["../../src/actions/get-release-form-fields.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAmBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA;;;;;;;;;;;;;;;;;oBAM3C,MAAA;EAAA;AAAA"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-release-form-fields.d.ts
4
- declare const FreshserviceGetReleaseFormFieldsInput: z.ZodTypeAny;
5
- declare const FreshserviceGetReleaseFormFieldsOutput: z.ZodTypeAny;
6
- declare const freshserviceGetReleaseFormFields: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceGetReleaseFormFieldsInput: z.ZodObject<{
5
+ workspace_id: z.ZodOptional<z.ZodNumber>;
6
+ }, z.core.$strip>;
7
+ declare const FreshserviceGetReleaseFormFieldsOutput: z.ZodObject<{
8
+ release_fields: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodNumber>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ label: z.ZodNullable<z.ZodString>;
12
+ choices: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
13
+ position: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
14
+ required: z.ZodNullable<z.ZodBoolean>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ field_type: z.ZodNullable<z.ZodString>;
17
+ updated_at: z.ZodNullable<z.ZodString>;
18
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ workspace_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
20
+ default_field: z.ZodNullable<z.ZodBoolean>;
21
+ nested_fields: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
22
+ required_for_closure: z.ZodNullable<z.ZodBoolean>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>;
25
+ declare const freshserviceGetReleaseFormFields: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ workspace_id?: number | undefined;
27
+ }, {
28
+ release_fields: {
29
+ id: number | null;
30
+ name: string | null;
31
+ label: string | null;
32
+ required: boolean | null;
33
+ created_at: string | null;
34
+ field_type: string | null;
35
+ updated_at: string | null;
36
+ default_field: boolean | null;
37
+ required_for_closure: boolean | null;
38
+ choices?: string[] | undefined;
39
+ position?: number | undefined;
40
+ description?: string | undefined;
41
+ workspace_id?: number | undefined;
42
+ nested_fields?: Record<string, unknown>[] | undefined;
43
+ }[];
44
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { freshserviceGetReleaseFormFields };
9
47
  //# sourceMappingURL=get-release-form-fields.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-release-form-fields.d.mts","names":[],"sources":["../../src/actions/get-release-form-fields.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAEgB;AAAA,cAiBzD,sCAAA,EAAwC,CAAA,CAAE,UAEgB;AAAA,cAE1D,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-release-form-fields.d.mts","names":[],"sources":["../../src/actions/get-release-form-fields.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAmBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA;;;;;;;;;;;;;;;;;oBAM3C,MAAA;EAAA;AAAA"}
@@ -3,20 +3,20 @@ import { z } from "zod";
3
3
  //#region src/actions/get-release-form-fields.ts
4
4
  const FreshserviceGetReleaseFormFieldsInput = z.object({ workspace_id: z.number().int().describe("Filter fields for a specific workspace. By default only global fields and primary workspace fields are returned in Employee Support Mode.").optional() }).describe("Request model for listing release form fields metadata.");
5
5
  const FreshserviceGetReleaseFormFields_ReleaseFieldSchema = z.object({
6
- id: z.number().int().describe("Unique ID of the field"),
7
- name: z.string().describe("API name of the field"),
8
- label: z.string().describe("Display label of the field"),
9
- choices: z.array(z.string()).describe("List of allowed values (for choice fields)").nullable().optional(),
10
- position: z.number().int().describe("Display order of the field").nullable().optional(),
11
- required: z.boolean().describe("True if the field is mandatory"),
12
- created_at: z.string().describe("Timestamp when the field was added"),
13
- field_type: z.string().describe("Field type (e.g., default_subject, custom types)"),
14
- updated_at: z.string().describe("Timestamp when the field was last modified"),
15
- description: z.string().describe("Description of the field").nullable().optional(),
16
- workspace_id: z.number().int().describe("ID of the workspace this field belongs to (Employee Support Mode only)").nullable().optional(),
17
- default_field: z.boolean().describe("True if the field is a default system field"),
18
- nested_fields: z.array(z.record(z.string(), z.unknown())).describe("Details of nested fields (if any)").nullable().optional(),
19
- required_for_closure: z.boolean().describe("True if the field is mandatory while closing the item")
6
+ id: z.number().int().describe("Unique ID of the field").nullable(),
7
+ name: z.string().describe("API name of the field").nullable(),
8
+ label: z.string().describe("Display label of the field").nullable(),
9
+ choices: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("List of allowed values (for choice fields)").optional()),
10
+ position: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Display order of the field").optional()),
11
+ required: z.boolean().describe("True if the field is mandatory").nullable(),
12
+ created_at: z.string().describe("Timestamp when the field was added").nullable(),
13
+ field_type: z.string().describe("Field type (e.g., default_subject, custom types)").nullable(),
14
+ updated_at: z.string().describe("Timestamp when the field was last modified").nullable(),
15
+ description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Description of the field").optional()),
16
+ workspace_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("ID of the workspace this field belongs to (Employee Support Mode only)").optional()),
17
+ default_field: z.boolean().describe("True if the field is a default system field").nullable(),
18
+ nested_fields: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).describe("Details of nested fields (if any)").optional()),
19
+ required_for_closure: z.boolean().describe("True if the field is mandatory while closing the item").nullable()
20
20
  }).describe("Metadata for a single release form field.");
21
21
  const freshserviceGetReleaseFormFields = action("FRESHSERVICE_GET_RELEASE_FORM_FIELDS", {
22
22
  slug: "freshservice-get-release-form-fields",