@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 +1 @@
1
- {"version":3,"file":"list-locations.cjs","names":["z","action"],"sources":["../../src/actions/list-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceListLocationsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed; must be >=1)\").optional(),\n per_page: z.number().int().describe(\"Number of locations per page (must be between 1 and 100)\").optional(),\n}).describe(\"Request model for listing Freshservice locations with pagination.\");\nconst FreshserviceListLocations_LocationSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the location\"),\n fax: z.string().describe(\"Fax number of the location\").nullable().optional(),\n city: z.string().describe(\"City of the location\").nullable().optional(),\n name: z.string().describe(\"Name of the location\"),\n phone: z.string().describe(\"Phone number of the location\").nullable().optional(),\n state: z.string().describe(\"State of the location\").nullable().optional(),\n status: z.union([z.literal(0), z.literal(1)]).describe(\"Status of the location (1=Active, 0=Inactive)\"),\n address: z.string().describe(\"Street address of the location\").nullable().optional(),\n country: z.string().describe(\"Country of the location\").nullable().optional(),\n zip_code: z.string().describe(\"ZIP or postal code of the location\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the location was created (ISO 8601 UTC)\"),\n updated_at: z.string().describe(\"Timestamp when the location was last updated (ISO 8601 UTC)\"),\n domain_name: z.string().describe(\"Domain name associated with the location\").nullable().optional(),\n}).describe(\"Represents a location in Freshservice.\");\nexport const FreshserviceListLocationsOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n total: z.number().int().describe(\"Total number of locations available\"),\n per_page: z.number().int().describe(\"Number of locations per page returned\"),\n locations: z.array(FreshserviceListLocations_LocationSchema).describe(\"List of location records retrieved\"),\n}).describe(\"Response model for listing locations in Freshservice.\");\n\nexport const freshserviceListLocations = action(\"FRESHSERVICE_LIST_LOCATIONS\", {\n slug: \"freshservice-list-locations\",\n name: \"List Freshservice Locations\",\n description: \"Tool to list all locations in Freshservice. Use when you need to retrieve paginated location data.\",\n input: FreshserviceListLocationsInput,\n output: FreshserviceListLocationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACtG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CAC3E,WAAWA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,oCAAoC;AAC5G,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-locations.cjs","names":["z","action"],"sources":["../../src/actions/list-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceListLocationsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed; must be >=1)\").optional(),\n per_page: z.number().int().describe(\"Number of locations per page (must be between 1 and 100)\").optional(),\n}).describe(\"Request model for listing Freshservice locations with pagination.\");\nconst FreshserviceListLocations_LocationSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the location\").nullable(),\n fax: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Fax number of the location\").optional()),\n city: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"City of the location\").optional()),\n name: z.string().describe(\"Name of the location\").nullable(),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Phone number of the location\").optional()),\n state: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"State of the location\").optional()),\n status: z.union([z.literal(0), z.literal(1)]).describe(\"Status of the location (1=Active, 0=Inactive)\").nullable(),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Street address of the location\").optional()),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country of the location\").optional()),\n zip_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ZIP or postal code of the location\").optional()),\n created_at: z.string().describe(\"Timestamp when the location was created (ISO 8601 UTC)\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the location was last updated (ISO 8601 UTC)\").nullable(),\n domain_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Domain name associated with the location\").optional()),\n}).describe(\"Represents a location in Freshservice.\");\nexport const FreshserviceListLocationsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n total: z.number().int().describe(\"Total number of locations available\").nullable(),\n per_page: z.number().int().describe(\"Number of locations per page returned\").nullable(),\n locations: z.array(FreshserviceListLocations_LocationSchema).describe(\"List of location records retrieved\"),\n}).describe(\"Response model for listing locations in Freshservice.\");\n\nexport const freshserviceListLocations = action(\"FRESHSERVICE_LIST_LOCATIONS\", {\n slug: \"freshservice-list-locations\",\n name: \"List Freshservice Locations\",\n description: \"Tool to list all locations in Freshservice. Use when you need to retrieve paginated location data.\",\n input: FreshserviceListLocationsInput,\n output: FreshserviceListLocationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,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
- declare const FreshserviceListLocationsOutput: z.ZodTypeAny;
6
- declare const freshserviceListLocations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceListLocationsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const FreshserviceListLocationsOutput: z.ZodObject<{
9
+ page: z.ZodNullable<z.ZodNumber>;
10
+ total: z.ZodNullable<z.ZodNumber>;
11
+ per_page: z.ZodNullable<z.ZodNumber>;
12
+ locations: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodNumber>;
14
+ fax: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
20
+ address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ zip_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
+ created_at: z.ZodNullable<z.ZodString>;
24
+ updated_at: z.ZodNullable<z.ZodString>;
25
+ domain_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ declare const freshserviceListLocations: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ page?: number | undefined;
30
+ per_page?: number | undefined;
31
+ }, {
32
+ page: number | null;
33
+ total: number | null;
34
+ per_page: number | null;
35
+ locations: {
36
+ id: number | null;
37
+ name: string | null;
38
+ status: 0 | 1 | null;
39
+ created_at: string | null;
40
+ updated_at: string | null;
41
+ fax?: string | undefined;
42
+ city?: string | undefined;
43
+ phone?: string | undefined;
44
+ state?: string | undefined;
45
+ address?: string | undefined;
46
+ country?: string | undefined;
47
+ zip_code?: string | undefined;
48
+ domain_name?: string | undefined;
49
+ }[];
50
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
51
  //#endregion
8
52
  export { freshserviceListLocations };
9
53
  //# sourceMappingURL=list-locations.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-locations.d.cts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAGiC;AAAA,cAgBnE,+BAAA,EAAiC,CAAA,CAAE,UAKoB;AAAA,cAEvD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-locations.d.cts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAmB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,53 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-locations.d.ts
4
- declare const FreshserviceListLocationsInput: z.ZodTypeAny;
5
- declare const FreshserviceListLocationsOutput: z.ZodTypeAny;
6
- declare const freshserviceListLocations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceListLocationsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const FreshserviceListLocationsOutput: z.ZodObject<{
9
+ page: z.ZodNullable<z.ZodNumber>;
10
+ total: z.ZodNullable<z.ZodNumber>;
11
+ per_page: z.ZodNullable<z.ZodNumber>;
12
+ locations: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodNumber>;
14
+ fax: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
+ city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ status: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
20
+ address: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ country: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ zip_code: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
+ created_at: z.ZodNullable<z.ZodString>;
24
+ updated_at: z.ZodNullable<z.ZodString>;
25
+ domain_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ declare const freshserviceListLocations: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ page?: number | undefined;
30
+ per_page?: number | undefined;
31
+ }, {
32
+ page: number | null;
33
+ total: number | null;
34
+ per_page: number | null;
35
+ locations: {
36
+ id: number | null;
37
+ name: string | null;
38
+ status: 0 | 1 | null;
39
+ created_at: string | null;
40
+ updated_at: string | null;
41
+ fax?: string | undefined;
42
+ city?: string | undefined;
43
+ phone?: string | undefined;
44
+ state?: string | undefined;
45
+ address?: string | undefined;
46
+ country?: string | undefined;
47
+ zip_code?: string | undefined;
48
+ domain_name?: string | undefined;
49
+ }[];
50
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
51
  //#endregion
8
52
  export { freshserviceListLocations };
9
53
  //# sourceMappingURL=list-locations.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-locations.d.mts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAGiC;AAAA,cAgBnE,+BAAA,EAAiC,CAAA,CAAE,UAKoB;AAAA,cAEvD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-locations.d.mts","names":[],"sources":["../../src/actions/list-locations.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAmB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
@@ -6,19 +6,19 @@ const FreshserviceListLocationsInput = z.object({
6
6
  per_page: z.number().int().describe("Number of locations per page (must be between 1 and 100)").optional()
7
7
  }).describe("Request model for listing Freshservice locations with pagination.");
8
8
  const FreshserviceListLocations_LocationSchema = z.object({
9
- id: z.number().int().describe("Unique identifier of the location"),
10
- fax: z.string().describe("Fax number of the location").nullable().optional(),
11
- city: z.string().describe("City of the location").nullable().optional(),
12
- name: z.string().describe("Name of the location"),
13
- phone: z.string().describe("Phone number of the location").nullable().optional(),
14
- state: z.string().describe("State of the location").nullable().optional(),
15
- status: z.union([z.literal(0), z.literal(1)]).describe("Status of the location (1=Active, 0=Inactive)"),
16
- address: z.string().describe("Street address of the location").nullable().optional(),
17
- country: z.string().describe("Country of the location").nullable().optional(),
18
- zip_code: z.string().describe("ZIP or postal code of the location").nullable().optional(),
19
- created_at: z.string().describe("Timestamp when the location was created (ISO 8601 UTC)"),
20
- updated_at: z.string().describe("Timestamp when the location was last updated (ISO 8601 UTC)"),
21
- domain_name: z.string().describe("Domain name associated with the location").nullable().optional()
9
+ id: z.number().int().describe("Unique identifier of the location").nullable(),
10
+ fax: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Fax number of the location").optional()),
11
+ city: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("City of the location").optional()),
12
+ name: z.string().describe("Name of the location").nullable(),
13
+ phone: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Phone number of the location").optional()),
14
+ state: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("State of the location").optional()),
15
+ status: z.union([z.literal(0), z.literal(1)]).describe("Status of the location (1=Active, 0=Inactive)").nullable(),
16
+ address: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Street address of the location").optional()),
17
+ country: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Country of the location").optional()),
18
+ zip_code: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ZIP or postal code of the location").optional()),
19
+ created_at: z.string().describe("Timestamp when the location was created (ISO 8601 UTC)").nullable(),
20
+ updated_at: z.string().describe("Timestamp when the location was last updated (ISO 8601 UTC)").nullable(),
21
+ domain_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Domain name associated with the location").optional())
22
22
  }).describe("Represents a location in Freshservice.");
23
23
  const freshserviceListLocations = action("FRESHSERVICE_LIST_LOCATIONS", {
24
24
  slug: "freshservice-list-locations",
@@ -26,9 +26,9 @@ const freshserviceListLocations = action("FRESHSERVICE_LIST_LOCATIONS", {
26
26
  description: "Tool to list all locations in Freshservice. Use when you need to retrieve paginated location data.",
27
27
  input: FreshserviceListLocationsInput,
28
28
  output: z.object({
29
- page: z.number().int().describe("Current page number"),
30
- total: z.number().int().describe("Total number of locations available"),
31
- per_page: z.number().int().describe("Number of locations per page returned"),
29
+ page: z.number().int().describe("Current page number").nullable(),
30
+ total: z.number().int().describe("Total number of locations available").nullable(),
31
+ per_page: z.number().int().describe("Number of locations per page returned").nullable(),
32
32
  locations: z.array(FreshserviceListLocations_LocationSchema).describe("List of location records retrieved")
33
33
  }).describe("Response model for listing locations in Freshservice.")
34
34
  });
@@ -1 +1 @@
1
- {"version":3,"file":"list-locations.mjs","names":[],"sources":["../../src/actions/list-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceListLocationsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed; must be >=1)\").optional(),\n per_page: z.number().int().describe(\"Number of locations per page (must be between 1 and 100)\").optional(),\n}).describe(\"Request model for listing Freshservice locations with pagination.\");\nconst FreshserviceListLocations_LocationSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the location\"),\n fax: z.string().describe(\"Fax number of the location\").nullable().optional(),\n city: z.string().describe(\"City of the location\").nullable().optional(),\n name: z.string().describe(\"Name of the location\"),\n phone: z.string().describe(\"Phone number of the location\").nullable().optional(),\n state: z.string().describe(\"State of the location\").nullable().optional(),\n status: z.union([z.literal(0), z.literal(1)]).describe(\"Status of the location (1=Active, 0=Inactive)\"),\n address: z.string().describe(\"Street address of the location\").nullable().optional(),\n country: z.string().describe(\"Country of the location\").nullable().optional(),\n zip_code: z.string().describe(\"ZIP or postal code of the location\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the location was created (ISO 8601 UTC)\"),\n updated_at: z.string().describe(\"Timestamp when the location was last updated (ISO 8601 UTC)\"),\n domain_name: z.string().describe(\"Domain name associated with the location\").nullable().optional(),\n}).describe(\"Represents a location in Freshservice.\");\nexport const FreshserviceListLocationsOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n total: z.number().int().describe(\"Total number of locations available\"),\n per_page: z.number().int().describe(\"Number of locations per page returned\"),\n locations: z.array(FreshserviceListLocations_LocationSchema).describe(\"List of location records retrieved\"),\n}).describe(\"Response model for listing locations in Freshservice.\");\n\nexport const freshserviceListLocations = action(\"FRESHSERVICE_LIST_LOCATIONS\", {\n slug: \"freshservice-list-locations\",\n name: \"List Freshservice Locations\",\n description: \"Tool to list all locations in Freshservice. Use when you need to retrieve paginated location data.\",\n input: FreshserviceListLocation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AAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAQpD,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;EAC3E,WAAW,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,oCAAoC;CAC5G,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-locations.mjs","names":[],"sources":["../../src/actions/list-locations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceListLocationsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed; must be >=1)\").optional(),\n per_page: z.number().int().describe(\"Number of locations per page (must be between 1 and 100)\").optional(),\n}).describe(\"Request model for listing Freshservice locations with pagination.\");\nconst FreshserviceListLocations_LocationSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the location\").nullable(),\n fax: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Fax number of the location\").optional()),\n city: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"City of the location\").optional()),\n name: z.string().describe(\"Name of the location\").nullable(),\n phone: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Phone number of the location\").optional()),\n state: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"State of the location\").optional()),\n status: z.union([z.literal(0), z.literal(1)]).describe(\"Status of the location (1=Active, 0=Inactive)\").nullable(),\n address: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Street address of the location\").optional()),\n country: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Country of the location\").optional()),\n zip_code: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ZIP or postal code of the location\").optional()),\n created_at: z.string().describe(\"Timestamp when the location was created (ISO 8601 UTC)\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the location was last updated (ISO 8601 UTC)\").nullable(),\n domain_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Domain name associated with the location\").optional()),\n}).describe(\"Represents a location in Freshservice.\");\nexport const FreshserviceListLocationsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n total: z.number().int().describe(\"Total number of locations available\").nullable(),\n per_page: z.number().int().describe(\"Number of locations per page returned\").nullable(),\n locations: z.array(FreshserviceListLocations_LocationSchema).describe(\"List of location records retrieved\"),\n}).describe(\"Response model for listing locations in Freshservice.\");\n\nexport const freshserviceListLocations = action(\"FRESHSERVICE_LIST_LOCATIONS\", {\n slug: \"freshservice-list-locations\",\n name: \"List Freshservice Locations\",\n description: \"Tool to list all locations in Freshservice. Use when you need to retrieve paginated location data.\",\n input: FreshserviceListLocationsInput,\n output: FreshserviceListLocationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,KAAK,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OA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AAC;AACvJ,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAQpD,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,oCAAoC;CAC5G,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -6,22 +6,22 @@ const FreshserviceListServiceCatalogItemsInput = zod.z.object({
6
6
  per_page: zod.z.number().int().describe("Number of items per page (must be between 1 and 100)").optional()
7
7
  }).describe("Request model for listing service catalog items in Freshservice.");
8
8
  const FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema = zod.z.object({
9
- name: zod.z.string().describe("Name of the catalog item").nullable().optional(),
10
- deleted: zod.z.boolean().describe("Whether the catalog item is deleted").nullable().optional(),
11
- icon_name: zod.z.string().describe("Icon name for the item").nullable().optional(),
12
- is_bundle: zod.z.boolean().describe("Whether this is a bundle item").nullable().optional(),
13
- item_type: zod.z.number().int().describe("Type of the catalog item").nullable().optional(),
14
- display_id: zod.z.number().int().describe("Display ID of the catalog item").nullable().optional(),
15
- visibility: zod.z.number().int().describe("Visibility level of the catalog item").nullable().optional(),
16
- category_id: zod.z.number().int().describe("ID of the category this item belongs to").nullable().optional(),
17
- description: zod.z.string().describe("Full description of the catalog item").nullable().optional(),
18
- create_child: zod.z.boolean().describe("Whether to create child tickets").nullable().optional(),
19
- allow_quantity: zod.z.boolean().describe("Whether quantity selection is allowed").nullable().optional(),
20
- cost_visibility: zod.z.boolean().describe("Whether cost is visible").nullable().optional(),
21
- group_visibility: zod.z.number().int().describe("Group visibility setting").nullable().optional(),
22
- allow_attachments: zod.z.boolean().describe("Whether attachments are allowed").nullable().optional(),
23
- short_description: zod.z.string().describe("Short description of the catalog item").nullable().optional(),
24
- delivery_time_visibility: zod.z.boolean().describe("Whether delivery time is visible").nullable().optional()
9
+ name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name of the catalog item").optional()),
10
+ deleted: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether the catalog item is deleted").optional()),
11
+ icon_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Icon name for the item").optional()),
12
+ is_bundle: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether this is a bundle item").optional()),
13
+ item_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Type of the catalog item").optional()),
14
+ display_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Display ID of the catalog item").optional()),
15
+ visibility: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Visibility level of the catalog item").optional()),
16
+ category_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("ID of the category this item belongs to").optional()),
17
+ description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Full description of the catalog item").optional()),
18
+ create_child: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether to create child tickets").optional()),
19
+ allow_quantity: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether quantity selection is allowed").optional()),
20
+ cost_visibility: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether cost is visible").optional()),
21
+ group_visibility: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Group visibility setting").optional()),
22
+ allow_attachments: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether attachments are allowed").optional()),
23
+ short_description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Short description of the catalog item").optional()),
24
+ delivery_time_visibility: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether delivery time is visible").optional())
25
25
  }).describe("Model representing a Freshservice service catalog item.");
26
26
  const FreshserviceListServiceCatalogItemsOutput = zod.z.object({ items: zod.z.array(FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema).describe("List of service catalog items retrieved") }).describe("Response model for listing service catalog items.");
27
27
  const freshserviceListServiceCatalogItems = require_action.action("FRESHSERVICE_LIST_SERVICE_CATALOG_ITEMS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-service-catalog-items.cjs","names":["z","action"],"sources":["../../src/actions/list-service-catalog-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceListServiceCatalogItemsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed; must be >=1)\").optional(),\n per_page: z.number().int().describe(\"Number of items per page (must be between 1 and 100)\").optional(),\n}).describe(\"Request model for listing service catalog items in Freshservice.\");\nconst FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the catalog item\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the catalog item is deleted\").nullable().optional(),\n icon_name: z.string().describe(\"Icon name for the item\").nullable().optional(),\n is_bundle: z.boolean().describe(\"Whether this is a bundle item\").nullable().optional(),\n item_type: z.number().int().describe(\"Type of the catalog item\").nullable().optional(),\n display_id: z.number().int().describe(\"Display ID of the catalog item\").nullable().optional(),\n visibility: z.number().int().describe(\"Visibility level of the catalog item\").nullable().optional(),\n category_id: z.number().int().describe(\"ID of the category this item belongs to\").nullable().optional(),\n description: z.string().describe(\"Full description of the catalog item\").nullable().optional(),\n create_child: z.boolean().describe(\"Whether to create child tickets\").nullable().optional(),\n allow_quantity: z.boolean().describe(\"Whether quantity selection is allowed\").nullable().optional(),\n cost_visibility: z.boolean().describe(\"Whether cost is visible\").nullable().optional(),\n group_visibility: z.number().int().describe(\"Group visibility setting\").nullable().optional(),\n allow_attachments: z.boolean().describe(\"Whether attachments are allowed\").nullable().optional(),\n short_description: z.string().describe(\"Short description of the catalog item\").nullable().optional(),\n delivery_time_visibility: z.boolean().describe(\"Whether delivery time is visible\").nullable().optional(),\n}).describe(\"Model representing a Freshservice service catalog item.\");\nexport const FreshserviceListServiceCatalogItemsOutput: z.ZodTypeAny = z.object({\n items: z.array(FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema).describe(\"List of service catalog items retrieved\"),\n}).describe(\"Response model for listing service catalog items.\");\n\nexport const freshserviceListServiceCatalogItems = action(\"FRESHSERVICE_LIST_SERVICE_CATALOG_ITEMS\", {\n slug: \"freshservice-list-service-catalog-items\",\n name: \"List Service Catalog Items\",\n description: \"Tool to list all service catalog items in Freshservice. Use when you need to discover available catalog items and their display_ids before creating service requests.\",\n input: FreshserviceListServiceCatalogItemsInput,\n output: FreshserviceListServiceCatalogItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,+DAA6EA,IAAAA,EAAE,OAAO;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA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;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,0BAA0BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,4CAA0DA,IAAAA,EAAE,OAAO,EAC9E,OAAOA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,yCAAyC,EACjI,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-service-catalog-items.cjs","names":["z","action"],"sources":["../../src/actions/list-service-catalog-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceListServiceCatalogItemsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed; must be >=1)\").optional(),\n per_page: z.number().int().describe(\"Number of items per page (must be between 1 and 100)\").optional(),\n}).describe(\"Request model for listing service catalog items in Freshservice.\");\nconst FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the catalog item\").optional()),\n deleted: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the catalog item is deleted\").optional()),\n icon_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Icon name for the item\").optional()),\n is_bundle: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether this is a bundle item\").optional()),\n item_type: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Type of the catalog item\").optional()),\n display_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Display ID of the catalog item\").optional()),\n visibility: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Visibility level of the catalog item\").optional()),\n category_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the category this item belongs to\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full description of the catalog item\").optional()),\n create_child: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether to create child tickets\").optional()),\n allow_quantity: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether quantity selection is allowed\").optional()),\n cost_visibility: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether cost is visible\").optional()),\n group_visibility: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Group visibility setting\").optional()),\n allow_attachments: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether attachments are allowed\").optional()),\n short_description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Short description of the catalog item\").optional()),\n delivery_time_visibility: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether delivery time is visible\").optional()),\n}).describe(\"Model representing a Freshservice service catalog item.\");\nexport const FreshserviceListServiceCatalogItemsOutput = z.object({\n items: z.array(FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema).describe(\"List of service catalog items retrieved\"),\n}).describe(\"Response model for listing service catalog items.\");\n\nexport const freshserviceListServiceCatalogItems = action(\"FRESHSERVICE_LIST_SERVICE_CATALOG_ITEMS\", {\n slug: \"freshservice-list-service-catalog-items\",\n name: \"List Service Catalog Items\",\n description: \"Tool to list all service catalog items in Freshservice. Use when you need to discover available catalog items and their display_ids before creating service requests.\",\n input: FreshserviceListServiceCatalogItemsInput,\n output: FreshserviceListServiceCatalogItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,UA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AAyD;AACrE,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,OAAOA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,yCAAyC,EACjI,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,53 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-service-catalog-items.d.ts
4
- declare const FreshserviceListServiceCatalogItemsInput: z.ZodTypeAny;
5
- declare const FreshserviceListServiceCatalogItemsOutput: z.ZodTypeAny;
6
- declare const freshserviceListServiceCatalogItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceListServiceCatalogItemsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const FreshserviceListServiceCatalogItemsOutput: z.ZodObject<{
9
+ items: z.ZodArray<z.ZodObject<{
10
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
+ deleted: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
12
+ icon_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ is_bundle: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
14
+ item_type: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
15
+ display_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
16
+ visibility: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
17
+ category_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ create_child: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
20
+ allow_quantity: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
21
+ cost_visibility: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
22
+ group_visibility: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
23
+ allow_attachments: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
24
+ short_description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ delivery_time_visibility: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ declare const freshserviceListServiceCatalogItems: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ page?: number | undefined;
30
+ per_page?: number | undefined;
31
+ }, {
32
+ items: {
33
+ name?: string | undefined;
34
+ deleted?: boolean | undefined;
35
+ icon_name?: string | undefined;
36
+ is_bundle?: boolean | undefined;
37
+ item_type?: number | undefined;
38
+ display_id?: number | undefined;
39
+ visibility?: number | undefined;
40
+ category_id?: number | undefined;
41
+ description?: string | undefined;
42
+ create_child?: boolean | undefined;
43
+ allow_quantity?: boolean | undefined;
44
+ cost_visibility?: boolean | undefined;
45
+ group_visibility?: number | undefined;
46
+ allow_attachments?: boolean | undefined;
47
+ short_description?: string | undefined;
48
+ delivery_time_visibility?: boolean | undefined;
49
+ }[];
50
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
51
  //#endregion
8
52
  export { freshserviceListServiceCatalogItems };
9
53
  //# sourceMappingURL=list-service-catalog-items.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-service-catalog-items.d.cts","names":[],"sources":["../../src/actions/list-service-catalog-items.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAGsB;AAAA,cAmBlE,yCAAA,EAA2C,CAAA,CAAE,UAEM;AAAA,cAEnD,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-service-catalog-items.d.cts","names":[],"sources":["../../src/actions/list-service-catalog-items.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAsBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIzC,mCAAA,gCAAmC,wBAAA"}
@@ -1,9 +1,53 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-service-catalog-items.d.ts
4
- declare const FreshserviceListServiceCatalogItemsInput: z.ZodTypeAny;
5
- declare const FreshserviceListServiceCatalogItemsOutput: z.ZodTypeAny;
6
- declare const freshserviceListServiceCatalogItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const FreshserviceListServiceCatalogItemsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const FreshserviceListServiceCatalogItemsOutput: z.ZodObject<{
9
+ items: z.ZodArray<z.ZodObject<{
10
+ name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
+ deleted: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
12
+ icon_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
13
+ is_bundle: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
14
+ item_type: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
15
+ display_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
16
+ visibility: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
17
+ category_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
18
+ description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ create_child: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
20
+ allow_quantity: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
21
+ cost_visibility: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
22
+ group_visibility: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
23
+ allow_attachments: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
24
+ short_description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ delivery_time_visibility: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ declare const freshserviceListServiceCatalogItems: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ page?: number | undefined;
30
+ per_page?: number | undefined;
31
+ }, {
32
+ items: {
33
+ name?: string | undefined;
34
+ deleted?: boolean | undefined;
35
+ icon_name?: string | undefined;
36
+ is_bundle?: boolean | undefined;
37
+ item_type?: number | undefined;
38
+ display_id?: number | undefined;
39
+ visibility?: number | undefined;
40
+ category_id?: number | undefined;
41
+ description?: string | undefined;
42
+ create_child?: boolean | undefined;
43
+ allow_quantity?: boolean | undefined;
44
+ cost_visibility?: boolean | undefined;
45
+ group_visibility?: number | undefined;
46
+ allow_attachments?: boolean | undefined;
47
+ short_description?: string | undefined;
48
+ delivery_time_visibility?: boolean | undefined;
49
+ }[];
50
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
51
  //#endregion
8
52
  export { freshserviceListServiceCatalogItems };
9
53
  //# sourceMappingURL=list-service-catalog-items.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-service-catalog-items.d.mts","names":[],"sources":["../../src/actions/list-service-catalog-items.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAGsB;AAAA,cAmBlE,yCAAA,EAA2C,CAAA,CAAE,UAEM;AAAA,cAEnD,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-service-catalog-items.d.mts","names":[],"sources":["../../src/actions/list-service-catalog-items.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAsBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIzC,mCAAA,gCAAmC,wBAAA"}
@@ -6,22 +6,22 @@ const FreshserviceListServiceCatalogItemsInput = z.object({
6
6
  per_page: z.number().int().describe("Number of items per page (must be between 1 and 100)").optional()
7
7
  }).describe("Request model for listing service catalog items in Freshservice.");
8
8
  const FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema = z.object({
9
- name: z.string().describe("Name of the catalog item").nullable().optional(),
10
- deleted: z.boolean().describe("Whether the catalog item is deleted").nullable().optional(),
11
- icon_name: z.string().describe("Icon name for the item").nullable().optional(),
12
- is_bundle: z.boolean().describe("Whether this is a bundle item").nullable().optional(),
13
- item_type: z.number().int().describe("Type of the catalog item").nullable().optional(),
14
- display_id: z.number().int().describe("Display ID of the catalog item").nullable().optional(),
15
- visibility: z.number().int().describe("Visibility level of the catalog item").nullable().optional(),
16
- category_id: z.number().int().describe("ID of the category this item belongs to").nullable().optional(),
17
- description: z.string().describe("Full description of the catalog item").nullable().optional(),
18
- create_child: z.boolean().describe("Whether to create child tickets").nullable().optional(),
19
- allow_quantity: z.boolean().describe("Whether quantity selection is allowed").nullable().optional(),
20
- cost_visibility: z.boolean().describe("Whether cost is visible").nullable().optional(),
21
- group_visibility: z.number().int().describe("Group visibility setting").nullable().optional(),
22
- allow_attachments: z.boolean().describe("Whether attachments are allowed").nullable().optional(),
23
- short_description: z.string().describe("Short description of the catalog item").nullable().optional(),
24
- delivery_time_visibility: z.boolean().describe("Whether delivery time is visible").nullable().optional()
9
+ name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the catalog item").optional()),
10
+ deleted: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether the catalog item is deleted").optional()),
11
+ icon_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Icon name for the item").optional()),
12
+ is_bundle: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether this is a bundle item").optional()),
13
+ item_type: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Type of the catalog item").optional()),
14
+ display_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Display ID of the catalog item").optional()),
15
+ visibility: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Visibility level of the catalog item").optional()),
16
+ category_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("ID of the category this item belongs to").optional()),
17
+ description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Full description of the catalog item").optional()),
18
+ create_child: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether to create child tickets").optional()),
19
+ allow_quantity: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether quantity selection is allowed").optional()),
20
+ cost_visibility: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether cost is visible").optional()),
21
+ group_visibility: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Group visibility setting").optional()),
22
+ allow_attachments: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether attachments are allowed").optional()),
23
+ short_description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Short description of the catalog item").optional()),
24
+ delivery_time_visibility: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether delivery time is visible").optional())
25
25
  }).describe("Model representing a Freshservice service catalog item.");
26
26
  const freshserviceListServiceCatalogItems = action("FRESHSERVICE_LIST_SERVICE_CATALOG_ITEMS", {
27
27
  slug: "freshservice-list-service-catalog-items",
@@ -1 +1 @@
1
- {"version":3,"file":"list-service-catalog-items.mjs","names":[],"sources":["../../src/actions/list-service-catalog-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceListServiceCatalogItemsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed; must be >=1)\").optional(),\n per_page: z.number().int().describe(\"Number of items per page (must be between 1 and 100)\").optional(),\n}).describe(\"Request model for listing service catalog items in Freshservice.\");\nconst FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the catalog item\").nullable().optional(),\n deleted: z.boolean().describe(\"Whether the catalog item is deleted\").nullable().optional(),\n icon_name: z.string().describe(\"Icon name for the item\").nullable().optional(),\n is_bundle: z.boolean().describe(\"Whether this is a bundle item\").nullable().optional(),\n item_type: z.number().int().describe(\"Type of the catalog item\").nullable().optional(),\n display_id: z.number().int().describe(\"Display ID of the catalog item\").nullable().optional(),\n visibility: z.number().int().describe(\"Visibility level of the catalog item\").nullable().optional(),\n category_id: z.number().int().describe(\"ID of the category this item belongs to\").nullable().optional(),\n description: z.string().describe(\"Full description of the catalog item\").nullable().optional(),\n create_child: z.boolean().describe(\"Whether to create child tickets\").nullable().optional(),\n allow_quantity: z.boolean().describe(\"Whether quantity selection is allowed\").nullable().optional(),\n cost_visibility: z.boolean().describe(\"Whether cost is visible\").nullable().optional(),\n group_visibility: z.number().int().describe(\"Group visibility setting\").nullable().optional(),\n allow_attachments: z.boolean().describe(\"Whether attachments are allowed\").nullable().optional(),\n short_description: z.string().describe(\"Short description of the catalog item\").nullable().optional(),\n delivery_time_visibility: z.boolean().describe(\"Whether delivery time is visible\").nullable().optional(),\n}).describe(\"Model representing a Freshservice service catalog item.\");\nexport const FreshserviceListServiceCatalogItemsOutput: z.ZodTypeAny = z.object({\n items: z.array(FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema).describe(\"List of service catalog items retrieved\"),\n}).describe(\"Response model for listing service catalog items.\");\n\nexport const freshserviceListServiceCatalogItems = action(\"FRESHSERVICE_LIST_SERVICE_CATALOG_ITEMS\", {\n slug: \"freshservice-list-service-catalog-items\",\n name: \"List Service Catalog Items\",\n description: \"Tool to list all service catalog items in Freshservice. Use when you need to discover available catalog items and their display_ids before creating service requests.\",\n input: FreshserviceListServiceCatalogItemsInput,\n output: FreshserviceListServiceCatalogItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyD,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,+DAA6E,EAAE,OAAO;CAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAKrE,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqE,EAAE,OAAO,EAC9E,OAAO,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,yCAAyC,EACjI,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-service-catalog-items.mjs","names":[],"sources":["../../src/actions/list-service-catalog-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceListServiceCatalogItemsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed; must be >=1)\").optional(),\n per_page: z.number().int().describe(\"Number of items per page (must be between 1 and 100)\").optional(),\n}).describe(\"Request model for listing service catalog items in Freshservice.\");\nconst FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema = z.object({\n name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the catalog item\").optional()),\n deleted: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the catalog item is deleted\").optional()),\n icon_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Icon name for the item\").optional()),\n is_bundle: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether this is a bundle item\").optional()),\n item_type: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Type of the catalog item\").optional()),\n display_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Display ID of the catalog item\").optional()),\n visibility: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Visibility level of the catalog item\").optional()),\n category_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the category this item belongs to\").optional()),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Full description of the catalog item\").optional()),\n create_child: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether to create child tickets\").optional()),\n allow_quantity: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether quantity selection is allowed\").optional()),\n cost_visibility: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether cost is visible\").optional()),\n group_visibility: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Group visibility setting\").optional()),\n allow_attachments: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether attachments are allowed\").optional()),\n short_description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Short description of the catalog item\").optional()),\n delivery_time_visibility: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether delivery time is visible\").optional()),\n}).describe(\"Model representing a Freshservice service catalog item.\");\nexport const FreshserviceListServiceCatalogItemsOutput = z.object({\n items: z.array(FreshserviceListServiceCatalogItems_ServiceCatalogItemSchema).describe(\"List of service catalog items retrieved\"),\n}).describe(\"Response model for listing service catalog items.\");\n\nexport const freshserviceListServiceCatalogItems = action(\"FRESHSERVICE_LIST_SERVICE_CATALOG_ITEMS\", {\n slug: \"freshservice-list-service-catalog-items\",\n name: \"List Service Catalog Items\",\n description: \"Tool to list all service catalog items in Freshservice. Use when you need to discover available catalog items and their display_ids before creating service requests.\",\n input: FreshserviceListServiceCatalogItemsInput,\n output: FreshserviceListServiceCatalogItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,+DAA+D,EAAE,OAAO;CAC5E,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC;CAC9H,SAAS,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC;CAC7I,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC;CACjI,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC;CACzI,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC;CACzI,YA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AAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CACxJ,0BAA0B,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC;AAC7J,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAKrE,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,OAAO,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,yCAAyC,EACjI,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
@@ -48,43 +48,43 @@ const FreshserviceListTickets_TicketPrioritySchema = zod.z.enum([
48
48
  "urgent"
49
49
  ]).describe("Enum for Freshservice ticket priority values.");
50
50
  const FreshserviceListTickets_TicketSchema = zod.z.object({
51
- id: zod.z.number().int().describe("Unique ticket ID"),
52
- spam: zod.z.boolean().describe("Whether the ticket is marked as spam").nullable().optional(),
53
- tags: zod.z.array(zod.z.string()).describe("Tags on the ticket").nullable().optional(),
54
- type: FreshserviceListTickets_TicketTypeSchema.nullable().optional(),
55
- due_by: zod.z.string().describe("Due-by timestamp").nullable().optional(),
56
- impact: FreshserviceListTickets_TicketImpactSchema.nullable().optional(),
51
+ id: zod.z.number().int().describe("Unique ticket ID").nullable(),
52
+ spam: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether the ticket is marked as spam").optional()),
53
+ tags: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Tags on the ticket").optional()),
54
+ type: zod.z.preprocess((value) => value === null ? void 0 : value, FreshserviceListTickets_TicketTypeSchema.optional()),
55
+ due_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Due-by timestamp").optional()),
56
+ impact: zod.z.preprocess((value) => value === null ? void 0 : value, FreshserviceListTickets_TicketImpactSchema.optional()),
57
57
  source: FreshserviceListTickets_TicketSourceSchema.nullable(),
58
58
  status: FreshserviceListTickets_TicketStatusSchema.nullable(),
59
- subject: zod.z.string().describe("Subject of the ticket"),
60
- urgency: FreshserviceListTickets_TicketUrgencySchema.nullable().optional(),
61
- group_id: zod.z.number().int().describe("ID of the support group").nullable().optional(),
59
+ subject: zod.z.string().describe("Subject of the ticket").nullable(),
60
+ urgency: zod.z.preprocess((value) => value === null ? void 0 : value, FreshserviceListTickets_TicketUrgencySchema.optional()),
61
+ group_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("ID of the support group").optional()),
62
62
  priority: FreshserviceListTickets_TicketPrioritySchema.nullable(),
63
- fr_due_by: zod.z.string().describe("SLA due-by timestamp").nullable().optional(),
64
- to_emails: zod.z.array(zod.z.string()).describe("Email addresses the ticket was sent to").nullable().optional(),
65
- created_at: zod.z.string().describe("Ticket creation timestamp"),
66
- display_id: zod.z.number().int().describe("Display ID of the ticket"),
67
- group_name: zod.z.string().describe("Name of the support group").nullable().optional(),
68
- updated_at: zod.z.string().describe("Last updated timestamp"),
69
- description: zod.z.string().describe("HTML description of the ticket").nullable().optional(),
70
- impact_name: zod.z.string().describe("Impact name").nullable().optional(),
71
- source_name: zod.z.string().describe("Source name").nullable().optional(),
72
- status_name: zod.z.string().describe("Status name").nullable().optional(),
73
- is_escalated: zod.z.boolean().describe("Whether the ticket was escalated").nullable().optional(),
74
- requester_id: zod.z.number().int().describe("User ID of the requester"),
75
- responder_id: zod.z.number().int().describe("User ID of the assigned agent").nullable().optional(),
76
- urgency_name: zod.z.string().describe("Urgency name").nullable().optional(),
77
- custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields of the ticket").nullable().optional(),
78
- department_id: zod.z.number().int().describe("ID of the department").nullable().optional(),
79
- priority_name: zod.z.string().describe("Priority name").nullable().optional(),
80
- assoc_asset_id: zod.z.number().int().describe("Associated asset ID").nullable().optional(),
81
- requester_name: zod.z.string().describe("Name of the requester").nullable().optional(),
82
- responder_name: zod.z.string().describe("Name of the assigned agent").nullable().optional(),
83
- assoc_change_id: zod.z.number().int().describe("Associated change ID").nullable().optional(),
84
- department_name: zod.z.string().describe("Name of the department").nullable().optional(),
85
- assoc_problem_id: zod.z.number().int().describe("Associated problem ID").nullable().optional(),
86
- description_text: zod.z.string().describe("Plain text description of the ticket").nullable().optional(),
87
- assoc_change_cause_id: zod.z.number().int().describe("Associated change cause ID").nullable().optional()
63
+ fr_due_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("SLA due-by timestamp").optional()),
64
+ to_emails: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.string()).describe("Email addresses the ticket was sent to").optional()),
65
+ created_at: zod.z.string().describe("Ticket creation timestamp").nullable(),
66
+ display_id: zod.z.number().int().describe("Display ID of the ticket").nullable(),
67
+ group_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name of the support group").optional()),
68
+ updated_at: zod.z.string().describe("Last updated timestamp").nullable(),
69
+ description: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("HTML description of the ticket").optional()),
70
+ impact_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Impact name").optional()),
71
+ source_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Source name").optional()),
72
+ status_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Status name").optional()),
73
+ is_escalated: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether the ticket was escalated").optional()),
74
+ requester_id: zod.z.number().int().describe("User ID of the requester").nullable(),
75
+ responder_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("User ID of the assigned agent").optional()),
76
+ urgency_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Urgency name").optional()),
77
+ custom_fields: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields of the ticket").optional()),
78
+ department_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("ID of the department").optional()),
79
+ priority_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Priority name").optional()),
80
+ assoc_asset_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Associated asset ID").optional()),
81
+ requester_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name of the requester").optional()),
82
+ responder_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name of the assigned agent").optional()),
83
+ assoc_change_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Associated change ID").optional()),
84
+ department_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Name of the department").optional()),
85
+ assoc_problem_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Associated problem ID").optional()),
86
+ description_text: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Plain text description of the ticket").optional()),
87
+ assoc_change_cause_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Associated change cause ID").optional())
88
88
  }).describe("Model representing a Freshservice ticket.");
89
89
  const FreshserviceListTicketsOutput = zod.z.object({ tickets: zod.z.array(FreshserviceListTickets_TicketSchema).describe("List of ticket records retrieved") }).describe("Response model for listing tickets in Freshservice.");
90
90
  const freshserviceListTickets = require_action.action("FRESHSERVICE_LIST_TICKETS", {