@keystrokehq/freshservice 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) 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 +3 -3
  4. package/dist/actions/bulk-update-tickets.cjs.map +1 -1
  5. package/dist/actions/bulk-update-tickets.d.cts +4 -11
  6. package/dist/actions/bulk-update-tickets.d.mts +4 -11
  7. package/dist/actions/bulk-update-tickets.mjs +3 -3
  8. package/dist/actions/bulk-update-tickets.mjs.map +1 -1
  9. package/dist/actions/create-service-request.cjs +38 -38
  10. package/dist/actions/create-service-request.cjs.map +1 -1
  11. package/dist/actions/create-service-request.d.cts +40 -77
  12. package/dist/actions/create-service-request.d.cts.map +1 -1
  13. package/dist/actions/create-service-request.d.mts +40 -77
  14. package/dist/actions/create-service-request.d.mts.map +1 -1
  15. package/dist/actions/create-service-request.mjs +38 -38
  16. package/dist/actions/create-service-request.mjs.map +1 -1
  17. package/dist/actions/create-ticket.cjs +26 -26
  18. package/dist/actions/create-ticket.cjs.map +1 -1
  19. package/dist/actions/create-ticket.d.cts +27 -67
  20. package/dist/actions/create-ticket.d.cts.map +1 -1
  21. package/dist/actions/create-ticket.d.mts +27 -67
  22. package/dist/actions/create-ticket.d.mts.map +1 -1
  23. package/dist/actions/create-ticket.mjs +26 -26
  24. package/dist/actions/create-ticket.mjs.map +1 -1
  25. package/dist/actions/delete-release.cjs +1 -1
  26. package/dist/actions/delete-release.cjs.map +1 -1
  27. package/dist/actions/delete-release.d.cts +2 -4
  28. package/dist/actions/delete-release.d.mts +2 -4
  29. package/dist/actions/delete-release.mjs +1 -1
  30. package/dist/actions/delete-release.mjs.map +1 -1
  31. package/dist/actions/delete-solution-article.cjs +1 -1
  32. package/dist/actions/delete-solution-article.cjs.map +1 -1
  33. package/dist/actions/delete-solution-article.d.cts +2 -5
  34. package/dist/actions/delete-solution-article.d.mts +2 -5
  35. package/dist/actions/delete-solution-article.mjs +1 -1
  36. package/dist/actions/delete-solution-article.mjs.map +1 -1
  37. package/dist/actions/delete-solution-category.cjs +3 -3
  38. package/dist/actions/delete-solution-category.cjs.map +1 -1
  39. package/dist/actions/delete-solution-category.d.cts +4 -7
  40. package/dist/actions/delete-solution-category.d.mts +4 -7
  41. package/dist/actions/delete-solution-category.mjs +3 -3
  42. package/dist/actions/delete-solution-category.mjs.map +1 -1
  43. package/dist/actions/get-problem-form-fields-by-workspace.cjs +7 -7
  44. package/dist/actions/get-problem-form-fields-by-workspace.cjs.map +1 -1
  45. package/dist/actions/get-problem-form-fields-by-workspace.d.cts +8 -32
  46. package/dist/actions/get-problem-form-fields-by-workspace.d.mts +8 -32
  47. package/dist/actions/get-problem-form-fields-by-workspace.mjs +7 -7
  48. package/dist/actions/get-problem-form-fields-by-workspace.mjs.map +1 -1
  49. package/dist/actions/get-release-form-fields.cjs +7 -7
  50. package/dist/actions/get-release-form-fields.cjs.map +1 -1
  51. package/dist/actions/get-release-form-fields.d.cts +8 -25
  52. package/dist/actions/get-release-form-fields.d.cts.map +1 -1
  53. package/dist/actions/get-release-form-fields.d.mts +8 -25
  54. package/dist/actions/get-release-form-fields.d.mts.map +1 -1
  55. package/dist/actions/get-release-form-fields.mjs +7 -7
  56. package/dist/actions/get-release-form-fields.mjs.map +1 -1
  57. package/dist/actions/get-ticket.cjs +30 -30
  58. package/dist/actions/get-ticket.cjs.map +1 -1
  59. package/dist/actions/get-ticket.d.cts +31 -71
  60. package/dist/actions/get-ticket.d.cts.map +1 -1
  61. package/dist/actions/get-ticket.d.mts +31 -71
  62. package/dist/actions/get-ticket.d.mts.map +1 -1
  63. package/dist/actions/get-ticket.mjs +30 -30
  64. package/dist/actions/get-ticket.mjs.map +1 -1
  65. package/dist/actions/list-locations.cjs +10 -10
  66. package/dist/actions/list-locations.cjs.map +1 -1
  67. package/dist/actions/list-locations.d.cts +11 -30
  68. package/dist/actions/list-locations.d.mts +11 -30
  69. package/dist/actions/list-locations.mjs +10 -10
  70. package/dist/actions/list-locations.mjs.map +1 -1
  71. package/dist/actions/list-service-catalog-items.cjs +18 -18
  72. package/dist/actions/list-service-catalog-items.cjs.map +1 -1
  73. package/dist/actions/list-service-catalog-items.d.cts +19 -38
  74. package/dist/actions/list-service-catalog-items.d.mts +19 -38
  75. package/dist/actions/list-service-catalog-items.mjs +18 -18
  76. package/dist/actions/list-service-catalog-items.mjs.map +1 -1
  77. package/dist/actions/list-tickets.cjs +30 -30
  78. package/dist/actions/list-tickets.cjs.map +1 -1
  79. package/dist/actions/list-tickets.d.cts +31 -71
  80. package/dist/actions/list-tickets.d.cts.map +1 -1
  81. package/dist/actions/list-tickets.d.mts +31 -71
  82. package/dist/actions/list-tickets.d.mts.map +1 -1
  83. package/dist/actions/list-tickets.mjs +30 -30
  84. package/dist/actions/list-tickets.mjs.map +1 -1
  85. package/package.json +1 -1
@@ -8,14 +8,14 @@ declare const FreshserviceGetTicketInput: z.ZodObject<{
8
8
  declare const FreshserviceGetTicketOutput: z.ZodObject<{
9
9
  ticket: z.ZodNullable<z.ZodObject<{
10
10
  id: z.ZodNullable<z.ZodNumber>;
11
- spam: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
12
- tags: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
13
- type: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
11
+ spam: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
12
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
14
14
  Incident: "Incident";
15
15
  "Service Request": "Service Request";
16
16
  }>>>;
17
- due_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- impact: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
17
+ due_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ impact: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
19
19
  low: "low";
20
20
  medium: "medium";
21
21
  high: "high";
@@ -35,90 +35,50 @@ declare const FreshserviceGetTicketOutput: z.ZodObject<{
35
35
  closed: "closed";
36
36
  }>>;
37
37
  subject: z.ZodNullable<z.ZodString>;
38
- urgency: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
38
+ urgency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
39
39
  low: "low";
40
40
  medium: "medium";
41
41
  high: "high";
42
42
  critical: "critical";
43
43
  }>>>;
44
- group_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
44
+ group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
45
  priority: z.ZodNullable<z.ZodEnum<{
46
46
  low: "low";
47
47
  medium: "medium";
48
48
  high: "high";
49
49
  urgent: "urgent";
50
50
  }>>;
51
- fr_due_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
52
- to_emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
51
+ fr_due_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ to_emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
53
53
  created_at: z.ZodNullable<z.ZodString>;
54
54
  display_id: z.ZodNullable<z.ZodNumber>;
55
- group_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
55
+ group_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  updated_at: z.ZodNullable<z.ZodString>;
57
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
58
- impact_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
59
- source_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
60
- status_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
61
- is_escalated: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
57
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ impact_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ source_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ status_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ is_escalated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
62
62
  requester_id: z.ZodNullable<z.ZodNumber>;
63
- responder_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
64
- urgency_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
65
- custom_fields: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
- department_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
67
- priority_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
68
- assoc_asset_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
69
- requester_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
70
- responder_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
71
- assoc_change_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
72
- department_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
73
- assoc_problem_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
74
- description_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
75
- assoc_change_cause_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
76
- }, z.core.$strip>>;
77
- }, z.core.$strip>;
63
+ responder_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
64
+ urgency_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
+ department_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
+ priority_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ assoc_asset_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
+ requester_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ responder_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ assoc_change_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
72
+ department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ assoc_problem_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
+ description_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ assoc_change_cause_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
+ }, z.core.$loose>>;
77
+ }, z.core.$loose>;
78
78
  declare const freshserviceGetTicket: import("@keystrokehq/action").WorkflowActionDefinition<{
79
79
  ticket_id: number;
80
80
  include?: string | undefined;
81
- }, {
82
- ticket: {
83
- id: number | null;
84
- source: "email" | "portal" | "phone" | "chat" | "twitter" | "facebook" | null;
85
- status: "open" | "pending" | "resolved" | "closed" | null;
86
- subject: string | null;
87
- priority: "low" | "medium" | "high" | "urgent" | null;
88
- created_at: string | null;
89
- display_id: number | null;
90
- updated_at: string | null;
91
- requester_id: number | null;
92
- spam?: boolean | undefined;
93
- tags?: string[] | undefined;
94
- type?: "Incident" | "Service Request" | undefined;
95
- due_by?: string | undefined;
96
- impact?: "low" | "medium" | "high" | undefined;
97
- urgency?: "low" | "medium" | "high" | "critical" | undefined;
98
- group_id?: number | undefined;
99
- fr_due_by?: string | undefined;
100
- to_emails?: string[] | undefined;
101
- group_name?: string | undefined;
102
- description?: string | undefined;
103
- impact_name?: string | undefined;
104
- source_name?: string | undefined;
105
- status_name?: string | undefined;
106
- is_escalated?: boolean | undefined;
107
- responder_id?: number | undefined;
108
- urgency_name?: string | undefined;
109
- custom_fields?: Record<string, unknown> | undefined;
110
- department_id?: number | undefined;
111
- priority_name?: string | undefined;
112
- assoc_asset_id?: number | undefined;
113
- requester_name?: string | undefined;
114
- responder_name?: string | undefined;
115
- assoc_change_id?: number | undefined;
116
- department_name?: string | undefined;
117
- assoc_problem_id?: number | undefined;
118
- description_text?: string | undefined;
119
- assoc_change_cause_id?: number | undefined;
120
- } | null;
121
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
81
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
122
82
  //#endregion
123
83
  export { freshserviceGetTicket };
124
84
  //# sourceMappingURL=get-ticket.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-ticket.d.cts","names":[],"sources":["../../src/actions/get-ticket.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAiD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAMhC,MAAA"}
1
+ {"version":3,"file":"get-ticket.d.cts","names":[],"sources":["../../src/actions/get-ticket.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAiD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
@@ -8,14 +8,14 @@ declare const FreshserviceGetTicketInput: z.ZodObject<{
8
8
  declare const FreshserviceGetTicketOutput: z.ZodObject<{
9
9
  ticket: z.ZodNullable<z.ZodObject<{
10
10
  id: z.ZodNullable<z.ZodNumber>;
11
- spam: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
12
- tags: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
13
- type: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
11
+ spam: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
12
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
13
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
14
14
  Incident: "Incident";
15
15
  "Service Request": "Service Request";
16
16
  }>>>;
17
- due_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- impact: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
17
+ due_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ impact: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
19
19
  low: "low";
20
20
  medium: "medium";
21
21
  high: "high";
@@ -35,90 +35,50 @@ declare const FreshserviceGetTicketOutput: z.ZodObject<{
35
35
  closed: "closed";
36
36
  }>>;
37
37
  subject: z.ZodNullable<z.ZodString>;
38
- urgency: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
38
+ urgency: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
39
39
  low: "low";
40
40
  medium: "medium";
41
41
  high: "high";
42
42
  critical: "critical";
43
43
  }>>>;
44
- group_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
44
+ group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
45
  priority: z.ZodNullable<z.ZodEnum<{
46
46
  low: "low";
47
47
  medium: "medium";
48
48
  high: "high";
49
49
  urgent: "urgent";
50
50
  }>>;
51
- fr_due_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
52
- to_emails: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
51
+ fr_due_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ to_emails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
53
53
  created_at: z.ZodNullable<z.ZodString>;
54
54
  display_id: z.ZodNullable<z.ZodNumber>;
55
- group_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
55
+ group_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  updated_at: z.ZodNullable<z.ZodString>;
57
- description: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
58
- impact_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
59
- source_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
60
- status_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
61
- is_escalated: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
57
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ impact_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ source_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ status_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ is_escalated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
62
62
  requester_id: z.ZodNullable<z.ZodNumber>;
63
- responder_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
64
- urgency_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
65
- custom_fields: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
- department_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
67
- priority_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
68
- assoc_asset_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
69
- requester_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
70
- responder_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
71
- assoc_change_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
72
- department_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
73
- assoc_problem_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
74
- description_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
75
- assoc_change_cause_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
76
- }, z.core.$strip>>;
77
- }, z.core.$strip>;
63
+ responder_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
64
+ urgency_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
+ department_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
+ priority_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ assoc_asset_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
69
+ requester_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ responder_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ assoc_change_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
72
+ department_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ assoc_problem_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
+ description_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ assoc_change_cause_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
+ }, z.core.$loose>>;
77
+ }, z.core.$loose>;
78
78
  declare const freshserviceGetTicket: import("@keystrokehq/action").WorkflowActionDefinition<{
79
79
  ticket_id: number;
80
80
  include?: string | undefined;
81
- }, {
82
- ticket: {
83
- id: number | null;
84
- source: "email" | "portal" | "phone" | "chat" | "twitter" | "facebook" | null;
85
- status: "open" | "pending" | "resolved" | "closed" | null;
86
- subject: string | null;
87
- priority: "low" | "medium" | "high" | "urgent" | null;
88
- created_at: string | null;
89
- display_id: number | null;
90
- updated_at: string | null;
91
- requester_id: number | null;
92
- spam?: boolean | undefined;
93
- tags?: string[] | undefined;
94
- type?: "Incident" | "Service Request" | undefined;
95
- due_by?: string | undefined;
96
- impact?: "low" | "medium" | "high" | undefined;
97
- urgency?: "low" | "medium" | "high" | "critical" | undefined;
98
- group_id?: number | undefined;
99
- fr_due_by?: string | undefined;
100
- to_emails?: string[] | undefined;
101
- group_name?: string | undefined;
102
- description?: string | undefined;
103
- impact_name?: string | undefined;
104
- source_name?: string | undefined;
105
- status_name?: string | undefined;
106
- is_escalated?: boolean | undefined;
107
- responder_id?: number | undefined;
108
- urgency_name?: string | undefined;
109
- custom_fields?: Record<string, unknown> | undefined;
110
- department_id?: number | undefined;
111
- priority_name?: string | undefined;
112
- assoc_asset_id?: number | undefined;
113
- requester_name?: string | undefined;
114
- responder_name?: string | undefined;
115
- assoc_change_id?: number | undefined;
116
- department_name?: string | undefined;
117
- assoc_problem_id?: number | undefined;
118
- description_text?: string | undefined;
119
- assoc_change_cause_id?: number | undefined;
120
- } | null;
121
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
81
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
122
82
  //#endregion
123
83
  export { freshserviceGetTicket };
124
84
  //# sourceMappingURL=get-ticket.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-ticket.d.mts","names":[],"sources":["../../src/actions/get-ticket.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAiD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAMhC,MAAA"}
1
+ {"version":3,"file":"get-ticket.d.mts","names":[],"sources":["../../src/actions/get-ticket.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAiD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
@@ -39,49 +39,49 @@ const FreshserviceGetTicket_TicketPrioritySchema = z.enum([
39
39
  ]).describe("Enum for Freshservice ticket priority values.");
40
40
  const FreshserviceGetTicket_TicketSchema = z.object({
41
41
  id: z.number().int().describe("Unique ticket ID").nullable(),
42
- spam: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether the ticket is marked as spam").optional()),
43
- tags: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Tags on the ticket").optional()),
44
- type: z.preprocess((value) => value === null ? void 0 : value, FreshserviceGetTicket_TicketTypeSchema.optional()),
45
- due_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Due-by timestamp").optional()),
46
- impact: z.preprocess((value) => value === null ? void 0 : value, FreshserviceGetTicket_TicketImpactSchema.optional()),
42
+ spam: z.boolean().describe("Whether the ticket is marked as spam").nullable().optional(),
43
+ tags: z.array(z.string()).describe("Tags on the ticket").nullable().optional(),
44
+ type: FreshserviceGetTicket_TicketTypeSchema.nullable().optional(),
45
+ due_by: z.string().describe("Due-by timestamp").nullable().optional(),
46
+ impact: FreshserviceGetTicket_TicketImpactSchema.nullable().optional(),
47
47
  source: FreshserviceGetTicket_TicketSourceSchema.nullable(),
48
48
  status: FreshserviceGetTicket_TicketStatusSchema.nullable(),
49
49
  subject: z.string().describe("Subject of the ticket").nullable(),
50
- urgency: z.preprocess((value) => value === null ? void 0 : value, FreshserviceGetTicket_TicketUrgencySchema.optional()),
51
- group_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("ID of the support group").optional()),
50
+ urgency: FreshserviceGetTicket_TicketUrgencySchema.nullable().optional(),
51
+ group_id: z.number().int().describe("ID of the support group").nullable().optional(),
52
52
  priority: FreshserviceGetTicket_TicketPrioritySchema.nullable(),
53
- fr_due_by: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("SLA due-by timestamp").optional()),
54
- to_emails: z.preprocess((value) => value === null ? void 0 : value, z.array(z.string()).describe("Email addresses the ticket was sent to").optional()),
53
+ fr_due_by: z.string().describe("SLA due-by timestamp").nullable().optional(),
54
+ to_emails: z.array(z.string()).describe("Email addresses the ticket was sent to").nullable().optional(),
55
55
  created_at: z.string().describe("Ticket creation timestamp").nullable(),
56
56
  display_id: z.number().int().describe("Display ID of the ticket").nullable(),
57
- group_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the support group").optional()),
57
+ group_name: z.string().describe("Name of the support group").nullable().optional(),
58
58
  updated_at: z.string().describe("Last updated timestamp").nullable(),
59
- description: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("HTML description of the ticket").optional()),
60
- impact_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Impact name").optional()),
61
- source_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Source name").optional()),
62
- status_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Status name").optional()),
63
- is_escalated: z.preprocess((value) => value === null ? void 0 : value, z.boolean().describe("Whether the ticket was escalated").optional()),
59
+ description: z.string().describe("HTML description of the ticket").nullable().optional(),
60
+ impact_name: z.string().describe("Impact name").nullable().optional(),
61
+ source_name: z.string().describe("Source name").nullable().optional(),
62
+ status_name: z.string().describe("Status name").nullable().optional(),
63
+ is_escalated: z.boolean().describe("Whether the ticket was escalated").nullable().optional(),
64
64
  requester_id: z.number().int().describe("User ID of the requester").nullable(),
65
- responder_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("User ID of the assigned agent").optional()),
66
- urgency_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Urgency name").optional()),
67
- custom_fields: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).describe("Custom fields of the ticket").optional()),
68
- department_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("ID of the department").optional()),
69
- priority_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Priority name").optional()),
70
- assoc_asset_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Associated asset ID").optional()),
71
- requester_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the requester").optional()),
72
- responder_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the assigned agent").optional()),
73
- assoc_change_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Associated change ID").optional()),
74
- department_name: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Name of the department").optional()),
75
- assoc_problem_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Associated problem ID").optional()),
76
- description_text: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Plain text description of the ticket").optional()),
77
- assoc_change_cause_id: z.preprocess((value) => value === null ? void 0 : value, z.number().int().describe("Associated change cause ID").optional())
78
- }).describe("Model representing a Freshservice ticket with detailed information.");
65
+ responder_id: z.number().int().describe("User ID of the assigned agent").nullable().optional(),
66
+ urgency_name: z.string().describe("Urgency name").nullable().optional(),
67
+ custom_fields: z.record(z.string(), z.unknown()).describe("Custom fields of the ticket").nullable().optional(),
68
+ department_id: z.number().int().describe("ID of the department").nullable().optional(),
69
+ priority_name: z.string().describe("Priority name").nullable().optional(),
70
+ assoc_asset_id: z.number().int().describe("Associated asset ID").nullable().optional(),
71
+ requester_name: z.string().describe("Name of the requester").nullable().optional(),
72
+ responder_name: z.string().describe("Name of the assigned agent").nullable().optional(),
73
+ assoc_change_id: z.number().int().describe("Associated change ID").nullable().optional(),
74
+ department_name: z.string().describe("Name of the department").nullable().optional(),
75
+ assoc_problem_id: z.number().int().describe("Associated problem ID").nullable().optional(),
76
+ description_text: z.string().describe("Plain text description of the ticket").nullable().optional(),
77
+ assoc_change_cause_id: z.number().int().describe("Associated change cause ID").nullable().optional()
78
+ }).passthrough().describe("Model representing a Freshservice ticket with detailed information.");
79
79
  const freshserviceGetTicket = action("FRESHSERVICE_GET_TICKET", {
80
80
  slug: "freshservice-get-ticket",
81
81
  name: "Get Freshservice Ticket",
82
82
  description: "Tool to retrieve detailed information about a specific ticket by ID. Use when you need to get full details of a ticket including its status, priority, requester, and other attributes.",
83
83
  input: FreshserviceGetTicketInput,
84
- output: z.object({ ticket: FreshserviceGetTicket_TicketSchema.nullable() }).describe("Response model for retrieving a single ticket.")
84
+ output: z.object({ ticket: FreshserviceGetTicket_TicketSchema.nullable() }).passthrough().describe("Response model for retrieving a single ticket.")
85
85
  });
86
86
  //#endregion
87
87
  export { freshserviceGetTicket };
@@ -1 +1 @@
1
- {"version":3,"file":"get-ticket.mjs","names":[],"sources":["../../src/actions/get-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetTicketInput = z.object({\n include: z.string().describe(\"Comma-separated list of additional fields to include (e.g., 'requester', 'stats', 'description', 'conversations', 'assets'). Each include consumes additional credits.\").optional(),\n ticket_id: z.number().int().describe(\"The unique ID or display_id of the ticket to retrieve\"),\n}).describe(\"Request model for retrieving a specific Freshservice ticket by ID.\");\nconst FreshserviceGetTicket_TicketTypeSchema = z.enum([\"Incident\", \"Service Request\"]).describe(\"Enum for Freshservice ticket type values.\");\nconst FreshserviceGetTicket_TicketImpactSchema = z.enum([\"low\", \"medium\", \"high\"]).describe(\"Enum for Freshservice ticket impact values.\");\nconst FreshserviceGetTicket_TicketSourceSchema = z.enum([\"email\", \"portal\", \"phone\", \"chat\", \"twitter\", \"facebook\"]).describe(\"Enum for Freshservice ticket source values.\");\nconst FreshserviceGetTicket_TicketStatusSchema = z.enum([\"open\", \"pending\", \"resolved\", \"closed\"]).describe(\"Enum for Freshservice ticket status values.\");\nconst FreshserviceGetTicket_TicketUrgencySchema = z.enum([\"low\", \"medium\", \"high\", \"critical\"]).describe(\"Enum for Freshservice ticket urgency values.\");\nconst FreshserviceGetTicket_TicketPrioritySchema = z.enum([\"low\", \"medium\", \"high\", \"urgent\"]).describe(\"Enum for Freshservice ticket priority values.\");\nconst FreshserviceGetTicket_TicketSchema = z.object({\n id: z.number().int().describe(\"Unique ticket ID\").nullable(),\n spam: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the ticket is marked as spam\").optional()),\n tags: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Tags on the ticket\").optional()),\n type: z.preprocess((value) => (value === null ? undefined : value), FreshserviceGetTicket_TicketTypeSchema.optional()),\n due_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Due-by timestamp\").optional()),\n impact: z.preprocess((value) => (value === null ? undefined : value), FreshserviceGetTicket_TicketImpactSchema.optional()),\n source: FreshserviceGetTicket_TicketSourceSchema.nullable(),\n status: FreshserviceGetTicket_TicketStatusSchema.nullable(),\n subject: z.string().describe(\"Subject of the ticket\").nullable(),\n urgency: z.preprocess((value) => (value === null ? undefined : value), FreshserviceGetTicket_TicketUrgencySchema.optional()),\n group_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the support group\").optional()),\n priority: FreshserviceGetTicket_TicketPrioritySchema.nullable(),\n fr_due_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"SLA due-by timestamp\").optional()),\n to_emails: z.preprocess((value) => (value === null ? undefined : value), z.array(z.string()).describe(\"Email addresses the ticket was sent to\").optional()),\n created_at: z.string().describe(\"Ticket creation timestamp\").nullable(),\n display_id: z.number().int().describe(\"Display ID of the ticket\").nullable(),\n group_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the support group\").optional()),\n updated_at: z.string().describe(\"Last updated timestamp\").nullable(),\n description: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"HTML description of the ticket\").optional()),\n impact_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Impact name\").optional()),\n source_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Source name\").optional()),\n status_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Status name\").optional()),\n is_escalated: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the ticket was escalated\").optional()),\n requester_id: z.number().int().describe(\"User ID of the requester\").nullable(),\n responder_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"User ID of the assigned agent\").optional()),\n urgency_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Urgency name\").optional()),\n custom_fields: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).describe(\"Custom fields of the ticket\").optional()),\n department_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the department\").optional()),\n priority_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Priority name\").optional()),\n assoc_asset_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Associated asset ID\").optional()),\n requester_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the requester\").optional()),\n responder_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the assigned agent\").optional()),\n assoc_change_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Associated change ID\").optional()),\n department_name: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Name of the department\").optional()),\n assoc_problem_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Associated problem ID\").optional()),\n description_text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Plain text description of the ticket\").optional()),\n assoc_change_cause_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Associated change cause ID\").optional()),\n}).describe(\"Model representing a Freshservice ticket with detailed information.\");\nexport const FreshserviceGetTicketOutput = z.object({\n ticket: FreshserviceGetTicket_TicketSchema.nullable(),\n}).describe(\"Response model for retrieving a single ticket.\");\n\nexport const freshserviceGetTicket = action(\"FRESHSERVICE_GET_TICKET\", {\n slug: \"freshservice-get-ticket\",\n name: \"Get Freshservice Ticket\",\n description: \"Tool to retrieve detailed information about a specific ticket by ID. Use when you need to get full details of a ticket including its status, priority, requester, and other attributes.\",\n input: FreshserviceGetTicketInput,\n output: FreshserviceGetTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CA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":[],"sources":["../../src/actions/get-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetTicketInput = z.object({\n include: z.string().describe(\"Comma-separated list of additional fields to include (e.g., 'requester', 'stats', 'description', 'conversations', 'assets'). Each include consumes additional credits.\").optional(),\n ticket_id: z.number().int().describe(\"The unique ID or display_id of the ticket to retrieve\"),\n}).describe(\"Request model for retrieving a specific Freshservice ticket by ID.\");\nconst FreshserviceGetTicket_TicketTypeSchema = z.enum([\"Incident\", \"Service Request\"]).describe(\"Enum for Freshservice ticket type values.\");\nconst FreshserviceGetTicket_TicketImpactSchema = z.enum([\"low\", \"medium\", \"high\"]).describe(\"Enum for Freshservice ticket impact values.\");\nconst FreshserviceGetTicket_TicketSourceSchema = z.enum([\"email\", \"portal\", \"phone\", \"chat\", \"twitter\", \"facebook\"]).describe(\"Enum for Freshservice ticket source values.\");\nconst FreshserviceGetTicket_TicketStatusSchema = z.enum([\"open\", \"pending\", \"resolved\", \"closed\"]).describe(\"Enum for Freshservice ticket status values.\");\nconst FreshserviceGetTicket_TicketUrgencySchema = z.enum([\"low\", \"medium\", \"high\", \"critical\"]).describe(\"Enum for Freshservice ticket urgency values.\");\nconst FreshserviceGetTicket_TicketPrioritySchema = z.enum([\"low\", \"medium\", \"high\", \"urgent\"]).describe(\"Enum for Freshservice ticket priority values.\");\nconst FreshserviceGetTicket_TicketSchema = z.object({\n id: z.number().int().describe(\"Unique ticket ID\").nullable(),\n spam: z.boolean().describe(\"Whether the ticket is marked as spam\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags on the ticket\").nullable().optional(),\n type: FreshserviceGetTicket_TicketTypeSchema.nullable().optional(),\n due_by: z.string().describe(\"Due-by timestamp\").nullable().optional(),\n impact: FreshserviceGetTicket_TicketImpactSchema.nullable().optional(),\n source: FreshserviceGetTicket_TicketSourceSchema.nullable(),\n status: FreshserviceGetTicket_TicketStatusSchema.nullable(),\n subject: z.string().describe(\"Subject of the ticket\").nullable(),\n urgency: FreshserviceGetTicket_TicketUrgencySchema.nullable().optional(),\n group_id: z.number().int().describe(\"ID of the support group\").nullable().optional(),\n priority: FreshserviceGetTicket_TicketPrioritySchema.nullable(),\n fr_due_by: z.string().describe(\"SLA due-by timestamp\").nullable().optional(),\n to_emails: z.array(z.string()).describe(\"Email addresses the ticket was sent to\").nullable().optional(),\n created_at: z.string().describe(\"Ticket creation timestamp\").nullable(),\n display_id: z.number().int().describe(\"Display ID of the ticket\").nullable(),\n group_name: z.string().describe(\"Name of the support group\").nullable().optional(),\n updated_at: z.string().describe(\"Last updated timestamp\").nullable(),\n description: z.string().describe(\"HTML description of the ticket\").nullable().optional(),\n impact_name: z.string().describe(\"Impact name\").nullable().optional(),\n source_name: z.string().describe(\"Source name\").nullable().optional(),\n status_name: z.string().describe(\"Status name\").nullable().optional(),\n is_escalated: z.boolean().describe(\"Whether the ticket was escalated\").nullable().optional(),\n requester_id: z.number().int().describe(\"User ID of the requester\").nullable(),\n responder_id: z.number().int().describe(\"User ID of the assigned agent\").nullable().optional(),\n urgency_name: z.string().describe(\"Urgency name\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields of the ticket\").nullable().optional(),\n department_id: z.number().int().describe(\"ID of the department\").nullable().optional(),\n priority_name: z.string().describe(\"Priority name\").nullable().optional(),\n assoc_asset_id: z.number().int().describe(\"Associated asset ID\").nullable().optional(),\n requester_name: z.string().describe(\"Name of the requester\").nullable().optional(),\n responder_name: z.string().describe(\"Name of the assigned agent\").nullable().optional(),\n assoc_change_id: z.number().int().describe(\"Associated change ID\").nullable().optional(),\n department_name: z.string().describe(\"Name of the department\").nullable().optional(),\n assoc_problem_id: z.number().int().describe(\"Associated problem ID\").nullable().optional(),\n description_text: z.string().describe(\"Plain text description of the ticket\").nullable().optional(),\n assoc_change_cause_id: z.number().int().describe(\"Associated change cause ID\").nullable().optional(),\n}).passthrough().describe(\"Model representing a Freshservice ticket with detailed information.\");\nexport const FreshserviceGetTicketOutput = z.object({\n ticket: FreshserviceGetTicket_TicketSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a single ticket.\");\n\nexport const freshserviceGetTicket = action(\"FRESHSERVICE_GET_TICKET\", {\n slug: \"freshservice-get-ticket\",\n name: \"Get Freshservice Ticket\",\n description: \"Tool to retrieve detailed information about a specific ticket by ID. Use when you need to get full details of a ticket including its status, priority, requester, and other attributes.\",\n input: FreshserviceGetTicketInput,\n output: FreshserviceGetTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CAChN,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;AAC9F,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,yCAAyC,EAAE,KAAK,CAAC,YAAY,iBAAiB,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC3I,MAAM,2CAA2C,EAAE,KAAK;CAAC;CAAO;CAAU;AAAM,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzI,MAAM,2CAA2C,EAAE,KAAK;CAAC;CAAS;CAAU;CAAS;CAAQ;CAAW;AAAU,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAC3K,MAAM,2CAA2C,EAAE,KAAK;CAAC;CAAQ;CAAW;CAAY;AAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzJ,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAO;CAAU;CAAQ;AAAU,CAAC,CAAC,CAAC,SAAS,8CAA8C;AACvJ,MAAM,6CAA6C,EAAE,KAAK;CAAC;CAAO;CAAU;CAAQ;AAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;AACvJ,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAA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,SAAS,CAAC,CAAC,SAAS;CACtF,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAK/F,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,QAAQ,mCAAmC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -7,25 +7,25 @@ const FreshserviceListLocationsInput = zod.z.object({
7
7
  }).describe("Request model for listing Freshservice locations with pagination.");
8
8
  const FreshserviceListLocations_LocationSchema = zod.z.object({
9
9
  id: zod.z.number().int().describe("Unique identifier of the location").nullable(),
10
- fax: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Fax number of the location").optional()),
11
- city: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("City of the location").optional()),
10
+ fax: zod.z.string().describe("Fax number of the location").nullable().optional(),
11
+ city: zod.z.string().describe("City of the location").nullable().optional(),
12
12
  name: zod.z.string().describe("Name of the location").nullable(),
13
- phone: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Phone number of the location").optional()),
14
- state: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("State of the location").optional()),
13
+ phone: zod.z.string().describe("Phone number of the location").nullable().optional(),
14
+ state: zod.z.string().describe("State of the location").nullable().optional(),
15
15
  status: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Status of the location (1=Active, 0=Inactive)").nullable(),
16
- address: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Street address of the location").optional()),
17
- country: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Country of the location").optional()),
18
- zip_code: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ZIP or postal code of the location").optional()),
16
+ address: zod.z.string().describe("Street address of the location").nullable().optional(),
17
+ country: zod.z.string().describe("Country of the location").nullable().optional(),
18
+ zip_code: zod.z.string().describe("ZIP or postal code of the location").nullable().optional(),
19
19
  created_at: zod.z.string().describe("Timestamp when the location was created (ISO 8601 UTC)").nullable(),
20
20
  updated_at: zod.z.string().describe("Timestamp when the location was last updated (ISO 8601 UTC)").nullable(),
21
- domain_name: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Domain name associated with the location").optional())
22
- }).describe("Represents a location in Freshservice.");
21
+ domain_name: zod.z.string().describe("Domain name associated with the location").nullable().optional()
22
+ }).passthrough().describe("Represents a location in Freshservice.");
23
23
  const FreshserviceListLocationsOutput = zod.z.object({
24
24
  page: zod.z.number().int().describe("Current page number").nullable(),
25
25
  total: zod.z.number().int().describe("Total number of locations available").nullable(),
26
26
  per_page: zod.z.number().int().describe("Number of locations per page returned").nullable(),
27
27
  locations: zod.z.array(FreshserviceListLocations_LocationSchema).describe("List of location records retrieved")
28
- }).describe("Response model for listing locations in Freshservice.");
28
+ }).passthrough().describe("Response model for listing locations in Freshservice.");
29
29
  const freshserviceListLocations = require_action.action("FRESHSERVICE_LIST_LOCATIONS", {
30
30
  slug: "freshservice-list-locations",
31
31
  name: "List Freshservice Locations",
@@ -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.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,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,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,KAAKA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;CAC/H,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC;CAC1H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC;CACnI,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAA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AAS;CACtF,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.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\").nullable(),\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)\").nullable(),\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)\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the location was last updated (ISO 8601 UTC)\").nullable(),\n domain_name: z.string().describe(\"Domain name associated with the location\").nullable().optional(),\n}).passthrough().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}).passthrough().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,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,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,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,CAAC,CAAC,SAAS;CAC3D,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,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;AACV,CAAC"}
@@ -11,43 +11,24 @@ declare const FreshserviceListLocationsOutput: z.ZodObject<{
11
11
  per_page: z.ZodNullable<z.ZodNumber>;
12
12
  locations: z.ZodArray<z.ZodObject<{
13
13
  id: z.ZodNullable<z.ZodNumber>;
14
- fax: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  name: z.ZodNullable<z.ZodString>;
17
- phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
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>>;
20
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ zip_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  created_at: z.ZodNullable<z.ZodString>;
24
24
  updated_at: z.ZodNullable<z.ZodString>;
25
- domain_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- }, z.core.$strip>>;
27
- }, z.core.$strip>;
25
+ domain_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>;
27
+ }, z.core.$loose>;
28
28
  declare const freshserviceListLocations: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  page?: number | undefined;
30
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]>;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
32
  //#endregion
52
33
  export { freshserviceListLocations };
53
34
  //# sourceMappingURL=list-locations.d.cts.map
@@ -11,43 +11,24 @@ declare const FreshserviceListLocationsOutput: z.ZodObject<{
11
11
  per_page: z.ZodNullable<z.ZodNumber>;
12
12
  locations: z.ZodArray<z.ZodObject<{
13
13
  id: z.ZodNullable<z.ZodNumber>;
14
- fax: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
15
- city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
14
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  name: z.ZodNullable<z.ZodString>;
17
- phone: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
- state: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
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>>;
20
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ zip_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  created_at: z.ZodNullable<z.ZodString>;
24
24
  updated_at: z.ZodNullable<z.ZodString>;
25
- domain_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
- }, z.core.$strip>>;
27
- }, z.core.$strip>;
25
+ domain_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>;
27
+ }, z.core.$loose>;
28
28
  declare const freshserviceListLocations: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  page?: number | undefined;
30
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]>;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
32
  //#endregion
52
33
  export { freshserviceListLocations };
53
34
  //# sourceMappingURL=list-locations.d.mts.map