@keystrokehq/freshservice 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/bulk-update-tickets.cjs +1 -1
- package/dist/actions/bulk-update-tickets.cjs.map +1 -1
- package/dist/actions/bulk-update-tickets.d.cts +2 -9
- package/dist/actions/bulk-update-tickets.d.mts +2 -9
- package/dist/actions/bulk-update-tickets.mjs +1 -1
- package/dist/actions/bulk-update-tickets.mjs.map +1 -1
- package/dist/actions/create-service-request.cjs +35 -35
- package/dist/actions/create-service-request.cjs.map +1 -1
- package/dist/actions/create-service-request.d.cts +36 -73
- package/dist/actions/create-service-request.d.cts.map +1 -1
- package/dist/actions/create-service-request.d.mts +36 -73
- package/dist/actions/create-service-request.d.mts.map +1 -1
- package/dist/actions/create-service-request.mjs +35 -35
- package/dist/actions/create-service-request.mjs.map +1 -1
- package/dist/actions/create-ticket.cjs +24 -24
- package/dist/actions/create-ticket.cjs.map +1 -1
- package/dist/actions/create-ticket.d.cts +25 -65
- package/dist/actions/create-ticket.d.cts.map +1 -1
- package/dist/actions/create-ticket.d.mts +25 -65
- package/dist/actions/create-ticket.d.mts.map +1 -1
- package/dist/actions/create-ticket.mjs +24 -24
- package/dist/actions/create-ticket.mjs.map +1 -1
- package/dist/actions/delete-release.d.cts +1 -3
- package/dist/actions/delete-release.d.mts +1 -3
- package/dist/actions/delete-solution-article.d.cts +1 -4
- package/dist/actions/delete-solution-article.d.mts +1 -4
- package/dist/actions/delete-solution-category.cjs +2 -2
- package/dist/actions/delete-solution-category.cjs.map +1 -1
- package/dist/actions/delete-solution-category.d.cts +3 -6
- package/dist/actions/delete-solution-category.d.mts +3 -6
- package/dist/actions/delete-solution-category.mjs +2 -2
- package/dist/actions/delete-solution-category.mjs.map +1 -1
- package/dist/actions/get-problem-form-fields-by-workspace.cjs +3 -3
- package/dist/actions/get-problem-form-fields-by-workspace.cjs.map +1 -1
- package/dist/actions/get-problem-form-fields-by-workspace.d.cts +4 -28
- package/dist/actions/get-problem-form-fields-by-workspace.d.mts +4 -28
- package/dist/actions/get-problem-form-fields-by-workspace.mjs +3 -3
- package/dist/actions/get-problem-form-fields-by-workspace.mjs.map +1 -1
- package/dist/actions/get-release-form-fields.cjs +5 -5
- package/dist/actions/get-release-form-fields.cjs.map +1 -1
- package/dist/actions/get-release-form-fields.d.cts +6 -23
- package/dist/actions/get-release-form-fields.d.cts.map +1 -1
- package/dist/actions/get-release-form-fields.d.mts +6 -23
- package/dist/actions/get-release-form-fields.d.mts.map +1 -1
- package/dist/actions/get-release-form-fields.mjs +5 -5
- package/dist/actions/get-release-form-fields.mjs.map +1 -1
- package/dist/actions/get-ticket.cjs +28 -28
- package/dist/actions/get-ticket.cjs.map +1 -1
- package/dist/actions/get-ticket.d.cts +29 -69
- package/dist/actions/get-ticket.d.cts.map +1 -1
- package/dist/actions/get-ticket.d.mts +29 -69
- package/dist/actions/get-ticket.d.mts.map +1 -1
- package/dist/actions/get-ticket.mjs +28 -28
- package/dist/actions/get-ticket.mjs.map +1 -1
- package/dist/actions/list-locations.cjs +8 -8
- package/dist/actions/list-locations.cjs.map +1 -1
- package/dist/actions/list-locations.d.cts +9 -28
- package/dist/actions/list-locations.d.mts +9 -28
- package/dist/actions/list-locations.mjs +8 -8
- package/dist/actions/list-locations.mjs.map +1 -1
- package/dist/actions/list-service-catalog-items.cjs +16 -16
- package/dist/actions/list-service-catalog-items.cjs.map +1 -1
- package/dist/actions/list-service-catalog-items.d.cts +17 -36
- package/dist/actions/list-service-catalog-items.d.mts +17 -36
- package/dist/actions/list-service-catalog-items.mjs +16 -16
- package/dist/actions/list-service-catalog-items.mjs.map +1 -1
- package/dist/actions/list-tickets.cjs +28 -28
- package/dist/actions/list-tickets.cjs.map +1 -1
- package/dist/actions/list-tickets.d.cts +29 -69
- package/dist/actions/list-tickets.d.cts.map +1 -1
- package/dist/actions/list-tickets.d.mts +29 -69
- package/dist/actions/list-tickets.d.mts.map +1 -1
- package/dist/actions/list-tickets.mjs +28 -28
- package/dist/actions/list-tickets.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9,39 +9,22 @@ declare const FreshserviceGetReleaseFormFieldsOutput: z.ZodObject<{
|
|
|
9
9
|
id: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
label: z.ZodNullable<z.ZodString>;
|
|
12
|
-
choices: z.
|
|
13
|
-
position: z.
|
|
12
|
+
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
13
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
14
|
required: z.ZodNullable<z.ZodBoolean>;
|
|
15
15
|
created_at: z.ZodNullable<z.ZodString>;
|
|
16
16
|
field_type: z.ZodNullable<z.ZodString>;
|
|
17
17
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
18
|
-
description: z.
|
|
19
|
-
workspace_id: z.
|
|
18
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
workspace_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
default_field: z.ZodNullable<z.ZodBoolean>;
|
|
21
|
-
nested_fields: z.
|
|
21
|
+
nested_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
22
22
|
required_for_closure: z.ZodNullable<z.ZodBoolean>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
declare const freshserviceGetReleaseFormFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
workspace_id?: number | undefined;
|
|
27
|
-
},
|
|
28
|
-
release_fields: {
|
|
29
|
-
id: number | null;
|
|
30
|
-
name: string | null;
|
|
31
|
-
label: string | null;
|
|
32
|
-
required: boolean | null;
|
|
33
|
-
created_at: string | null;
|
|
34
|
-
field_type: string | null;
|
|
35
|
-
updated_at: string | null;
|
|
36
|
-
default_field: boolean | null;
|
|
37
|
-
required_for_closure: boolean | null;
|
|
38
|
-
choices?: string[] | undefined;
|
|
39
|
-
position?: number | undefined;
|
|
40
|
-
description?: string | undefined;
|
|
41
|
-
workspace_id?: number | undefined;
|
|
42
|
-
nested_fields?: Record<string, unknown>[] | undefined;
|
|
43
|
-
}[];
|
|
44
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
28
|
//#endregion
|
|
46
29
|
export { freshserviceGetReleaseFormFields };
|
|
47
30
|
//# sourceMappingURL=get-release-form-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-release-form-fields.d.mts","names":[],"sources":["../../src/actions/get-release-form-fields.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAmBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA
|
|
1
|
+
{"version":3,"file":"get-release-form-fields.d.mts","names":[],"sources":["../../src/actions/get-release-form-fields.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAmBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA"}
|
|
@@ -6,16 +6,16 @@ const FreshserviceGetReleaseFormFields_ReleaseFieldSchema = z.object({
|
|
|
6
6
|
id: z.number().int().describe("Unique ID of the field").nullable(),
|
|
7
7
|
name: z.string().describe("API name of the field").nullable(),
|
|
8
8
|
label: z.string().describe("Display label of the field").nullable(),
|
|
9
|
-
choices: z.
|
|
10
|
-
position: z.
|
|
9
|
+
choices: z.array(z.string()).describe("List of allowed values (for choice fields)").nullable().optional(),
|
|
10
|
+
position: z.number().int().describe("Display order of the field").nullable().optional(),
|
|
11
11
|
required: z.boolean().describe("True if the field is mandatory").nullable(),
|
|
12
12
|
created_at: z.string().describe("Timestamp when the field was added").nullable(),
|
|
13
13
|
field_type: z.string().describe("Field type (e.g., default_subject, custom types)").nullable(),
|
|
14
14
|
updated_at: z.string().describe("Timestamp when the field was last modified").nullable(),
|
|
15
|
-
description: z.
|
|
16
|
-
workspace_id: z.
|
|
15
|
+
description: z.string().describe("Description of the field").nullable().optional(),
|
|
16
|
+
workspace_id: z.number().int().describe("ID of the workspace this field belongs to (Employee Support Mode only)").nullable().optional(),
|
|
17
17
|
default_field: z.boolean().describe("True if the field is a default system field").nullable(),
|
|
18
|
-
nested_fields: z.
|
|
18
|
+
nested_fields: z.array(z.record(z.string(), z.unknown())).describe("Details of nested fields (if any)").nullable().optional(),
|
|
19
19
|
required_for_closure: z.boolean().describe("True if the field is mandatory while closing the item").nullable()
|
|
20
20
|
}).describe("Metadata for a single release form field.");
|
|
21
21
|
const freshserviceGetReleaseFormFields = action("FRESHSERVICE_GET_RELEASE_FORM_FIELDS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-release-form-fields.mjs","names":[],"sources":["../../src/actions/get-release-form-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetReleaseFormFieldsInput = z.object({\n workspace_id: z.number().int().describe(\"Filter fields for a specific workspace. By default only global fields and primary workspace fields are returned in Employee Support Mode.\").optional(),\n}).describe(\"Request model for listing release form fields metadata.\");\nconst FreshserviceGetReleaseFormFields_ReleaseFieldSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the field\").nullable(),\n name: z.string().describe(\"API name of the field\").nullable(),\n label: z.string().describe(\"Display label of the field\").nullable(),\n choices: z.
|
|
1
|
+
{"version":3,"file":"get-release-form-fields.mjs","names":[],"sources":["../../src/actions/get-release-form-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceGetReleaseFormFieldsInput = z.object({\n workspace_id: z.number().int().describe(\"Filter fields for a specific workspace. By default only global fields and primary workspace fields are returned in Employee Support Mode.\").optional(),\n}).describe(\"Request model for listing release form fields metadata.\");\nconst FreshserviceGetReleaseFormFields_ReleaseFieldSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the field\").nullable(),\n name: z.string().describe(\"API name of the field\").nullable(),\n label: z.string().describe(\"Display label of the field\").nullable(),\n choices: z.array(z.string()).describe(\"List of allowed values (for choice fields)\").nullable().optional(),\n position: z.number().int().describe(\"Display order of the field\").nullable().optional(),\n required: z.boolean().describe(\"True if the field is mandatory\").nullable(),\n created_at: z.string().describe(\"Timestamp when the field was added\").nullable(),\n field_type: z.string().describe(\"Field type (e.g., default_subject, custom types)\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the field was last modified\").nullable(),\n description: z.string().describe(\"Description of the field\").nullable().optional(),\n workspace_id: z.number().int().describe(\"ID of the workspace this field belongs to (Employee Support Mode only)\").nullable().optional(),\n default_field: z.boolean().describe(\"True if the field is a default system field\").nullable(),\n nested_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Details of nested fields (if any)\").nullable().optional(),\n required_for_closure: z.boolean().describe(\"True if the field is mandatory while closing the item\").nullable(),\n}).describe(\"Metadata for a single release form field.\");\nexport const FreshserviceGetReleaseFormFieldsOutput = z.object({\n release_fields: z.array(FreshserviceGetReleaseFormFields_ReleaseFieldSchema).describe(\"Array of release form field definitions\"),\n}).describe(\"Response model for listing release form fields metadata.\");\n\nexport const freshserviceGetReleaseFormFields = action(\"FRESHSERVICE_GET_RELEASE_FORM_FIELDS\", {\n slug: \"freshservice-get-release-form-fields\",\n name: \"List Release Form Fields\",\n description: \"Tool to list release form fields metadata. Use when you need to fetch release field definitions before building or validating release forms.\",\n input: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C,SAAS;CAC5F,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAKvD,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,gBAAgB,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yCAAyC,EACjI,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
|
|
@@ -39,42 +39,42 @@ const FreshserviceGetTicket_TicketPrioritySchema = zod.z.enum([
|
|
|
39
39
|
]).describe("Enum for Freshservice ticket priority values.");
|
|
40
40
|
const FreshserviceGetTicket_TicketSchema = zod.z.object({
|
|
41
41
|
id: zod.z.number().int().describe("Unique ticket ID").nullable(),
|
|
42
|
-
spam: zod.z.
|
|
43
|
-
tags: zod.z.
|
|
44
|
-
type:
|
|
45
|
-
due_by: zod.z.
|
|
46
|
-
impact:
|
|
42
|
+
spam: zod.z.boolean().describe("Whether the ticket is marked as spam").nullable().optional(),
|
|
43
|
+
tags: zod.z.array(zod.z.string()).describe("Tags on the ticket").nullable().optional(),
|
|
44
|
+
type: FreshserviceGetTicket_TicketTypeSchema.nullable().optional(),
|
|
45
|
+
due_by: zod.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: zod.z.string().describe("Subject of the ticket").nullable(),
|
|
50
|
-
urgency:
|
|
51
|
-
group_id: zod.z.
|
|
50
|
+
urgency: FreshserviceGetTicket_TicketUrgencySchema.nullable().optional(),
|
|
51
|
+
group_id: zod.z.number().int().describe("ID of the support group").nullable().optional(),
|
|
52
52
|
priority: FreshserviceGetTicket_TicketPrioritySchema.nullable(),
|
|
53
|
-
fr_due_by: zod.z.
|
|
54
|
-
to_emails: zod.z.
|
|
53
|
+
fr_due_by: zod.z.string().describe("SLA due-by timestamp").nullable().optional(),
|
|
54
|
+
to_emails: zod.z.array(zod.z.string()).describe("Email addresses the ticket was sent to").nullable().optional(),
|
|
55
55
|
created_at: zod.z.string().describe("Ticket creation timestamp").nullable(),
|
|
56
56
|
display_id: zod.z.number().int().describe("Display ID of the ticket").nullable(),
|
|
57
|
-
group_name: zod.z.
|
|
57
|
+
group_name: zod.z.string().describe("Name of the support group").nullable().optional(),
|
|
58
58
|
updated_at: zod.z.string().describe("Last updated timestamp").nullable(),
|
|
59
|
-
description: zod.z.
|
|
60
|
-
impact_name: zod.z.
|
|
61
|
-
source_name: zod.z.
|
|
62
|
-
status_name: zod.z.
|
|
63
|
-
is_escalated: zod.z.
|
|
59
|
+
description: zod.z.string().describe("HTML description of the ticket").nullable().optional(),
|
|
60
|
+
impact_name: zod.z.string().describe("Impact name").nullable().optional(),
|
|
61
|
+
source_name: zod.z.string().describe("Source name").nullable().optional(),
|
|
62
|
+
status_name: zod.z.string().describe("Status name").nullable().optional(),
|
|
63
|
+
is_escalated: zod.z.boolean().describe("Whether the ticket was escalated").nullable().optional(),
|
|
64
64
|
requester_id: zod.z.number().int().describe("User ID of the requester").nullable(),
|
|
65
|
-
responder_id: zod.z.
|
|
66
|
-
urgency_name: zod.z.
|
|
67
|
-
custom_fields: zod.z.
|
|
68
|
-
department_id: zod.z.
|
|
69
|
-
priority_name: zod.z.
|
|
70
|
-
assoc_asset_id: zod.z.
|
|
71
|
-
requester_name: zod.z.
|
|
72
|
-
responder_name: zod.z.
|
|
73
|
-
assoc_change_id: zod.z.
|
|
74
|
-
department_name: zod.z.
|
|
75
|
-
assoc_problem_id: zod.z.
|
|
76
|
-
description_text: zod.z.
|
|
77
|
-
assoc_change_cause_id: zod.z.
|
|
65
|
+
responder_id: zod.z.number().int().describe("User ID of the assigned agent").nullable().optional(),
|
|
66
|
+
urgency_name: zod.z.string().describe("Urgency name").nullable().optional(),
|
|
67
|
+
custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields of the ticket").nullable().optional(),
|
|
68
|
+
department_id: zod.z.number().int().describe("ID of the department").nullable().optional(),
|
|
69
|
+
priority_name: zod.z.string().describe("Priority name").nullable().optional(),
|
|
70
|
+
assoc_asset_id: zod.z.number().int().describe("Associated asset ID").nullable().optional(),
|
|
71
|
+
requester_name: zod.z.string().describe("Name of the requester").nullable().optional(),
|
|
72
|
+
responder_name: zod.z.string().describe("Name of the assigned agent").nullable().optional(),
|
|
73
|
+
assoc_change_id: zod.z.number().int().describe("Associated change ID").nullable().optional(),
|
|
74
|
+
department_name: zod.z.string().describe("Name of the department").nullable().optional(),
|
|
75
|
+
assoc_problem_id: zod.z.number().int().describe("Associated problem ID").nullable().optional(),
|
|
76
|
+
description_text: zod.z.string().describe("Plain text description of the ticket").nullable().optional(),
|
|
77
|
+
assoc_change_cause_id: zod.z.number().int().describe("Associated change cause ID").nullable().optional()
|
|
78
78
|
}).describe("Model representing a Freshservice ticket with detailed information.");
|
|
79
79
|
const FreshserviceGetTicketOutput = zod.z.object({ ticket: FreshserviceGetTicket_TicketSchema.nullable() }).describe("Response model for retrieving a single ticket.");
|
|
80
80
|
const freshserviceGetTicket = require_action.action("FRESHSERVICE_GET_TICKET", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ticket.cjs","names":["z","action"],"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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CAChN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;AAC9F,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,yCAAyCA,IAAAA,EAAE,KAAK,CAAC,YAAY,iBAAiB,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC3I,MAAM,2CAA2CA,IAAAA,EAAE,KAAK;CAAC;CAAO;CAAU;AAAM,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzI,MAAM,2CAA2CA,IAAAA,EAAE,KAAK;CAAC;CAA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MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQ,mCAAmC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-ticket.cjs","names":["z","action"],"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}).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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK,CAAC,CAAC,SAAS;CAChN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;AAC9F,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,yCAAyCA,IAAAA,EAAE,KAAK,CAAC,YAAY,iBAAiB,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAC3I,MAAM,2CAA2CA,IAAAA,EAAE,KAAK;CAAC;CAAO;CAAU;AAAM,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzI,MAAM,2CAA2CA,IAAAA,EAAE,KAAK;CAAC;CAAS;CAAU;CAAS;CAAQ;CAAW;AAAU,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAC3K,MAAM,2CAA2CA,IAAAA,EAAE,KAAK;CAAC;CAAQ;CAAW;CAAY;AAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzJ,MAA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AAQ,mCAAmC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -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.
|
|
12
|
-
tags: z.
|
|
13
|
-
type: z.
|
|
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.
|
|
18
|
-
impact: z.
|
|
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.
|
|
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.
|
|
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.
|
|
52
|
-
to_emails: z.
|
|
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.
|
|
55
|
+
group_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
56
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
57
|
-
description: z.
|
|
58
|
-
impact_name: z.
|
|
59
|
-
source_name: z.
|
|
60
|
-
status_name: z.
|
|
61
|
-
is_escalated: z.
|
|
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.
|
|
64
|
-
urgency_name: z.
|
|
65
|
-
custom_fields: z.
|
|
66
|
-
department_id: z.
|
|
67
|
-
priority_name: z.
|
|
68
|
-
assoc_asset_id: z.
|
|
69
|
-
requester_name: z.
|
|
70
|
-
responder_name: z.
|
|
71
|
-
assoc_change_id: z.
|
|
72
|
-
department_name: z.
|
|
73
|
-
assoc_problem_id: z.
|
|
74
|
-
description_text: z.
|
|
75
|
-
assoc_change_cause_id: z.
|
|
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
76
|
}, z.core.$strip>>;
|
|
77
77
|
}, z.core.$strip>;
|
|
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
|
|
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.
|
|
12
|
-
tags: z.
|
|
13
|
-
type: z.
|
|
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.
|
|
18
|
-
impact: z.
|
|
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.
|
|
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.
|
|
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.
|
|
52
|
-
to_emails: z.
|
|
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.
|
|
55
|
+
group_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
56
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
57
|
-
description: z.
|
|
58
|
-
impact_name: z.
|
|
59
|
-
source_name: z.
|
|
60
|
-
status_name: z.
|
|
61
|
-
is_escalated: z.
|
|
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.
|
|
64
|
-
urgency_name: z.
|
|
65
|
-
custom_fields: z.
|
|
66
|
-
department_id: z.
|
|
67
|
-
priority_name: z.
|
|
68
|
-
assoc_asset_id: z.
|
|
69
|
-
requester_name: z.
|
|
70
|
-
responder_name: z.
|
|
71
|
-
assoc_change_id: z.
|
|
72
|
-
department_name: z.
|
|
73
|
-
assoc_problem_id: z.
|
|
74
|
-
description_text: z.
|
|
75
|
-
assoc_change_cause_id: z.
|
|
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
76
|
}, z.core.$strip>>;
|
|
77
77
|
}, z.core.$strip>;
|
|
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
|
|
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,42 +39,42 @@ 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.
|
|
43
|
-
tags: z.
|
|
44
|
-
type:
|
|
45
|
-
due_by: z.
|
|
46
|
-
impact:
|
|
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:
|
|
51
|
-
group_id: z.
|
|
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.
|
|
54
|
-
to_emails: z.
|
|
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.
|
|
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.
|
|
60
|
-
impact_name: z.
|
|
61
|
-
source_name: z.
|
|
62
|
-
status_name: z.
|
|
63
|
-
is_escalated: z.
|
|
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.
|
|
66
|
-
urgency_name: z.
|
|
67
|
-
custom_fields: z.
|
|
68
|
-
department_id: z.
|
|
69
|
-
priority_name: z.
|
|
70
|
-
assoc_asset_id: z.
|
|
71
|
-
requester_name: z.
|
|
72
|
-
responder_name: z.
|
|
73
|
-
assoc_change_id: z.
|
|
74
|
-
department_name: z.
|
|
75
|
-
assoc_problem_id: z.
|
|
76
|
-
description_text: z.
|
|
77
|
-
assoc_change_cause_id: z.
|
|
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
78
|
}).describe("Model representing a Freshservice ticket with detailed information.");
|
|
79
79
|
const freshserviceGetTicket = action("FRESHSERVICE_GET_TICKET", {
|
|
80
80
|
slug: "freshservice-get-ticket",
|