@keystrokehq/freshservice 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/bulk-update-tickets.cjs +4 -4
- package/dist/actions/bulk-update-tickets.cjs.map +1 -1
- package/dist/actions/bulk-update-tickets.d.cts +23 -3
- package/dist/actions/bulk-update-tickets.d.cts.map +1 -1
- package/dist/actions/bulk-update-tickets.d.mts +23 -3
- package/dist/actions/bulk-update-tickets.d.mts.map +1 -1
- package/dist/actions/bulk-update-tickets.mjs +4 -4
- 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 +115 -3
- package/dist/actions/create-service-request.d.cts.map +1 -1
- package/dist/actions/create-service-request.d.mts +115 -3
- 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 +34 -34
- package/dist/actions/create-ticket.cjs.map +1 -1
- package/dist/actions/create-ticket.d.cts +169 -3
- package/dist/actions/create-ticket.d.cts.map +1 -1
- package/dist/actions/create-ticket.d.mts +169 -3
- package/dist/actions/create-ticket.d.mts.map +1 -1
- package/dist/actions/create-ticket.mjs +34 -34
- package/dist/actions/create-ticket.mjs.map +1 -1
- package/dist/actions/delete-release.cjs +1 -1
- package/dist/actions/delete-release.cjs.map +1 -1
- package/dist/actions/delete-release.d.cts +11 -3
- package/dist/actions/delete-release.d.cts.map +1 -1
- package/dist/actions/delete-release.d.mts +11 -3
- package/dist/actions/delete-release.d.mts.map +1 -1
- package/dist/actions/delete-release.mjs +1 -1
- package/dist/actions/delete-release.mjs.map +1 -1
- package/dist/actions/delete-solution-article.cjs +2 -2
- package/dist/actions/delete-solution-article.cjs.map +1 -1
- package/dist/actions/delete-solution-article.d.cts +13 -3
- package/dist/actions/delete-solution-article.d.cts.map +1 -1
- package/dist/actions/delete-solution-article.d.mts +13 -3
- package/dist/actions/delete-solution-article.d.mts.map +1 -1
- package/dist/actions/delete-solution-article.mjs +2 -2
- package/dist/actions/delete-solution-article.mjs.map +1 -1
- 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 +13 -3
- package/dist/actions/delete-solution-category.d.cts.map +1 -1
- package/dist/actions/delete-solution-category.d.mts +13 -3
- package/dist/actions/delete-solution-category.d.mts.map +1 -1
- 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 +19 -19
- package/dist/actions/get-problem-form-fields-by-workspace.cjs.map +1 -1
- package/dist/actions/get-problem-form-fields-by-workspace.d.cts +55 -3
- package/dist/actions/get-problem-form-fields-by-workspace.d.cts.map +1 -1
- package/dist/actions/get-problem-form-fields-by-workspace.d.mts +55 -3
- package/dist/actions/get-problem-form-fields-by-workspace.d.mts.map +1 -1
- package/dist/actions/get-problem-form-fields-by-workspace.mjs +19 -19
- package/dist/actions/get-problem-form-fields-by-workspace.mjs.map +1 -1
- package/dist/actions/get-release-form-fields.cjs +14 -14
- package/dist/actions/get-release-form-fields.cjs.map +1 -1
- package/dist/actions/get-release-form-fields.d.cts +41 -3
- package/dist/actions/get-release-form-fields.d.cts.map +1 -1
- package/dist/actions/get-release-form-fields.d.mts +41 -3
- package/dist/actions/get-release-form-fields.d.mts.map +1 -1
- package/dist/actions/get-release-form-fields.mjs +14 -14
- package/dist/actions/get-release-form-fields.mjs.map +1 -1
- package/dist/actions/get-ticket.cjs +34 -34
- package/dist/actions/get-ticket.cjs.map +1 -1
- package/dist/actions/get-ticket.d.cts +118 -3
- package/dist/actions/get-ticket.d.cts.map +1 -1
- package/dist/actions/get-ticket.d.mts +118 -3
- package/dist/actions/get-ticket.d.mts.map +1 -1
- package/dist/actions/get-ticket.mjs +34 -34
- package/dist/actions/get-ticket.mjs.map +1 -1
- package/dist/actions/list-locations.cjs +16 -16
- package/dist/actions/list-locations.cjs.map +1 -1
- package/dist/actions/list-locations.d.cts +47 -3
- package/dist/actions/list-locations.d.cts.map +1 -1
- package/dist/actions/list-locations.d.mts +47 -3
- package/dist/actions/list-locations.d.mts.map +1 -1
- package/dist/actions/list-locations.mjs +16 -16
- 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 +47 -3
- package/dist/actions/list-service-catalog-items.d.cts.map +1 -1
- package/dist/actions/list-service-catalog-items.d.mts +47 -3
- package/dist/actions/list-service-catalog-items.d.mts.map +1 -1
- 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 +34 -34
- package/dist/actions/list-tickets.cjs.map +1 -1
- package/dist/actions/list-tickets.d.cts +136 -3
- package/dist/actions/list-tickets.d.cts.map +1 -1
- package/dist/actions/list-tickets.d.mts +136 -3
- package/dist/actions/list-tickets.d.mts.map +1 -1
- package/dist/actions/list-tickets.mjs +34 -34
- package/dist/actions/list-tickets.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["freshservice","executeFreshserviceTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { freshservice } from \"./app\";\nimport { executeFreshserviceTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["freshservice","executeFreshserviceTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { freshservice } from \"./app\";\nimport { executeFreshserviceTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return freshservice.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeFreshserviceTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { freshservice } from \"./app\";\nimport { executeFreshserviceTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { freshservice } from \"./app\";\nimport { executeFreshserviceTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n) {\n return freshservice.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeFreshserviceTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,aAAa,OAAO;EACzB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,wBAAwB,MAAM,KAAgC,CAAC;EAC/F;CACF,CAAC;AACH"}
|
|
@@ -6,12 +6,12 @@ const FreshserviceBulkUpdateTicketsInput = zod.z.object({
|
|
|
6
6
|
update_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dictionary of ticket fields to update. Allowed keys include 'subject', 'description', 'status', 'priority', 'responder_id', 'group_id', 'type', 'tags', 'custom_fields', etc.")
|
|
7
7
|
});
|
|
8
8
|
const FreshserviceBulkUpdateTickets_FailedTicketSchema = zod.z.object({
|
|
9
|
-
error: zod.z.string().describe("Error message returned by Freshservice API or parsing error message"),
|
|
10
|
-
ticket_id: zod.z.number().int().describe("ID of the ticket that failed to update"),
|
|
11
|
-
status_code: zod.z.number().int().describe("HTTP status code returned for the failure")
|
|
9
|
+
error: zod.z.string().describe("Error message returned by Freshservice API or parsing error message").nullable(),
|
|
10
|
+
ticket_id: zod.z.number().int().describe("ID of the ticket that failed to update").nullable(),
|
|
11
|
+
status_code: zod.z.number().int().describe("HTTP status code returned for the failure").nullable()
|
|
12
12
|
});
|
|
13
13
|
const FreshserviceBulkUpdateTicketsOutput = zod.z.object({
|
|
14
|
-
failed: zod.z.array(FreshserviceBulkUpdateTickets_FailedTicketSchema).describe("List of tickets that failed to update with error details").
|
|
14
|
+
failed: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FreshserviceBulkUpdateTickets_FailedTicketSchema).describe("List of tickets that failed to update with error details").optional()),
|
|
15
15
|
updated: zod.z.array(zod.z.number().int()).describe("List of ticket IDs successfully updated")
|
|
16
16
|
});
|
|
17
17
|
const freshserviceBulkUpdateTickets = require_action.action("FRESHSERVICE_BULK_UPDATE_TICKETS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-update-tickets.cjs","names":["z","action"],"sources":["../../src/actions/bulk-update-tickets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceBulkUpdateTicketsInput
|
|
1
|
+
{"version":3,"file":"bulk-update-tickets.cjs","names":["z","action"],"sources":["../../src/actions/bulk-update-tickets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceBulkUpdateTicketsInput = z.object({\n ids: z.array(z.number().int()).describe(\"List of Freshservice ticket IDs to update\"),\n update_fields: z.record(z.string(), z.unknown()).describe(\"Dictionary of ticket fields to update. Allowed keys include 'subject', 'description', 'status', 'priority', 'responder_id', 'group_id', 'type', 'tags', 'custom_fields', etc.\"),\n});\nconst FreshserviceBulkUpdateTickets_FailedTicketSchema = z.object({\n error: z.string().describe(\"Error message returned by Freshservice API or parsing error message\").nullable(),\n ticket_id: z.number().int().describe(\"ID of the ticket that failed to update\").nullable(),\n status_code: z.number().int().describe(\"HTTP status code returned for the failure\").nullable(),\n});\nexport const FreshserviceBulkUpdateTicketsOutput = z.object({\n failed: z.preprocess((value) => (value === null ? undefined : value), z.array(FreshserviceBulkUpdateTickets_FailedTicketSchema).describe(\"List of tickets that failed to update with error details\").optional()),\n updated: z.array(z.number().int()).describe(\"List of ticket IDs successfully updated\"),\n});\n\nexport const freshserviceBulkUpdateTickets = action(\"FRESHSERVICE_BULK_UPDATE_TICKETS\", {\n slug: \"freshservice-bulk-update-tickets\",\n name: \"Bulk Update Tickets\",\n description: \"Tool to bulk update multiple Freshservice tickets by sequential update calls. Use when you need to update fields across many tickets in absence of a native bulk API.\",\n input: FreshserviceBulkUpdateTicketsInput,\n output: FreshserviceBulkUpdateTicketsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,2CAA2C;CACnF,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+KAA+K;AAC3O,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC/F,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC;CAC/M,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACvF,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/bulk-update-tickets.d.ts
|
|
4
|
-
declare const FreshserviceBulkUpdateTicketsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FreshserviceBulkUpdateTicketsInput: z.ZodObject<{
|
|
5
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
6
|
+
update_fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const FreshserviceBulkUpdateTicketsOutput: z.ZodObject<{
|
|
9
|
+
failed: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
error: z.ZodNullable<z.ZodString>;
|
|
11
|
+
ticket_id: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
status_code: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strip>>>>;
|
|
14
|
+
updated: z.ZodArray<z.ZodNumber>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const freshserviceBulkUpdateTickets: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
ids: number[];
|
|
18
|
+
update_fields: Record<string, unknown>;
|
|
19
|
+
}, {
|
|
20
|
+
updated: number[];
|
|
21
|
+
failed?: {
|
|
22
|
+
error: string | null;
|
|
23
|
+
ticket_id: number | null;
|
|
24
|
+
status_code: number | null;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { freshserviceBulkUpdateTickets };
|
|
9
29
|
//# sourceMappingURL=bulk-update-tickets.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-update-tickets.d.cts","names":[],"sources":["../../src/actions/bulk-update-tickets.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"bulk-update-tickets.d.cts","names":[],"sources":["../../src/actions/bulk-update-tickets.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cASlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA;;iBAMxC,MAAA;AAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/bulk-update-tickets.d.ts
|
|
4
|
-
declare const FreshserviceBulkUpdateTicketsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FreshserviceBulkUpdateTicketsInput: z.ZodObject<{
|
|
5
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
6
|
+
update_fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const FreshserviceBulkUpdateTicketsOutput: z.ZodObject<{
|
|
9
|
+
failed: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
error: z.ZodNullable<z.ZodString>;
|
|
11
|
+
ticket_id: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
status_code: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strip>>>>;
|
|
14
|
+
updated: z.ZodArray<z.ZodNumber>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const freshserviceBulkUpdateTickets: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
ids: number[];
|
|
18
|
+
update_fields: Record<string, unknown>;
|
|
19
|
+
}, {
|
|
20
|
+
updated: number[];
|
|
21
|
+
failed?: {
|
|
22
|
+
error: string | null;
|
|
23
|
+
ticket_id: number | null;
|
|
24
|
+
status_code: number | null;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { freshserviceBulkUpdateTickets };
|
|
9
29
|
//# sourceMappingURL=bulk-update-tickets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-update-tickets.d.mts","names":[],"sources":["../../src/actions/bulk-update-tickets.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"bulk-update-tickets.d.mts","names":[],"sources":["../../src/actions/bulk-update-tickets.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cASlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA;;iBAMxC,MAAA;AAAA"}
|
|
@@ -6,9 +6,9 @@ const FreshserviceBulkUpdateTicketsInput = z.object({
|
|
|
6
6
|
update_fields: z.record(z.string(), z.unknown()).describe("Dictionary of ticket fields to update. Allowed keys include 'subject', 'description', 'status', 'priority', 'responder_id', 'group_id', 'type', 'tags', 'custom_fields', etc.")
|
|
7
7
|
});
|
|
8
8
|
const FreshserviceBulkUpdateTickets_FailedTicketSchema = z.object({
|
|
9
|
-
error: z.string().describe("Error message returned by Freshservice API or parsing error message"),
|
|
10
|
-
ticket_id: z.number().int().describe("ID of the ticket that failed to update"),
|
|
11
|
-
status_code: z.number().int().describe("HTTP status code returned for the failure")
|
|
9
|
+
error: z.string().describe("Error message returned by Freshservice API or parsing error message").nullable(),
|
|
10
|
+
ticket_id: z.number().int().describe("ID of the ticket that failed to update").nullable(),
|
|
11
|
+
status_code: z.number().int().describe("HTTP status code returned for the failure").nullable()
|
|
12
12
|
});
|
|
13
13
|
const freshserviceBulkUpdateTickets = action("FRESHSERVICE_BULK_UPDATE_TICKETS", {
|
|
14
14
|
slug: "freshservice-bulk-update-tickets",
|
|
@@ -16,7 +16,7 @@ const freshserviceBulkUpdateTickets = action("FRESHSERVICE_BULK_UPDATE_TICKETS",
|
|
|
16
16
|
description: "Tool to bulk update multiple Freshservice tickets by sequential update calls. Use when you need to update fields across many tickets in absence of a native bulk API.",
|
|
17
17
|
input: FreshserviceBulkUpdateTicketsInput,
|
|
18
18
|
output: z.object({
|
|
19
|
-
failed: z.array(FreshserviceBulkUpdateTickets_FailedTicketSchema).describe("List of tickets that failed to update with error details").
|
|
19
|
+
failed: z.preprocess((value) => value === null ? void 0 : value, z.array(FreshserviceBulkUpdateTickets_FailedTicketSchema).describe("List of tickets that failed to update with error details").optional()),
|
|
20
20
|
updated: z.array(z.number().int()).describe("List of ticket IDs successfully updated")
|
|
21
21
|
})
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-update-tickets.mjs","names":[],"sources":["../../src/actions/bulk-update-tickets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceBulkUpdateTicketsInput
|
|
1
|
+
{"version":3,"file":"bulk-update-tickets.mjs","names":[],"sources":["../../src/actions/bulk-update-tickets.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceBulkUpdateTicketsInput = z.object({\n ids: z.array(z.number().int()).describe(\"List of Freshservice ticket IDs to update\"),\n update_fields: z.record(z.string(), z.unknown()).describe(\"Dictionary of ticket fields to update. Allowed keys include 'subject', 'description', 'status', 'priority', 'responder_id', 'group_id', 'type', 'tags', 'custom_fields', etc.\"),\n});\nconst FreshserviceBulkUpdateTickets_FailedTicketSchema = z.object({\n error: z.string().describe(\"Error message returned by Freshservice API or parsing error message\").nullable(),\n ticket_id: z.number().int().describe(\"ID of the ticket that failed to update\").nullable(),\n status_code: z.number().int().describe(\"HTTP status code returned for the failure\").nullable(),\n});\nexport const FreshserviceBulkUpdateTicketsOutput = z.object({\n failed: z.preprocess((value) => (value === null ? undefined : value), z.array(FreshserviceBulkUpdateTickets_FailedTicketSchema).describe(\"List of tickets that failed to update with error details\").optional()),\n updated: z.array(z.number().int()).describe(\"List of ticket IDs successfully updated\"),\n});\n\nexport const freshserviceBulkUpdateTickets = action(\"FRESHSERVICE_BULK_UPDATE_TICKETS\", {\n slug: \"freshservice-bulk-update-tickets\",\n name: \"Bulk Update Tickets\",\n description: \"Tool to bulk update multiple Freshservice tickets by sequential update calls. Use when you need to update fields across many tickets in absence of a native bulk API.\",\n input: FreshserviceBulkUpdateTicketsInput,\n output: FreshserviceBulkUpdateTicketsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,2CAA2C;CACnF,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+KAA+K;AAC3O,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC/F,CAAC;AAMD,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,QAAQ,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC;EAC/M,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,yCAAyC;CACvF,CAOU;AACV,CAAC"}
|
|
@@ -40,43 +40,43 @@ const FreshserviceCreateServiceRequest_TicketPrioritySchema = zod.z.enum([
|
|
|
40
40
|
"urgent"
|
|
41
41
|
]).describe("Enum for Freshservice ticket priority values.");
|
|
42
42
|
const FreshserviceCreateServiceRequest_RequestedCatalogItemSchema = zod.z.object({
|
|
43
|
-
id: zod.z.number().int().describe("Unique ID of the requested catalog item entry").
|
|
44
|
-
stage: zod.z.number().int().describe("Stage of the catalog item in the service request workflow").
|
|
45
|
-
item_id: zod.z.number().int().describe("ID of the catalog item").
|
|
46
|
-
remarks: zod.z.string().describe("Any remarks added for the item").
|
|
47
|
-
quantity: zod.z.number().int().describe("Quantity of the catalog item requested").
|
|
48
|
-
is_parent: zod.z.boolean().describe("Indicator if this item is a parent item in a bundle").
|
|
49
|
-
created_at: zod.z.string().describe("Datetime when the catalog item was created on the service request").
|
|
50
|
-
updated_at: zod.z.string().describe("Datetime when the catalog item entry was last updated").
|
|
51
|
-
service_request_id: zod.z.number().int().describe("ID of the parent service request").
|
|
52
|
-
custom_field_values: zod.z.object({}).describe("Custom field values returned for the catalog item").
|
|
43
|
+
id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Unique ID of the requested catalog item entry").optional()),
|
|
44
|
+
stage: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Stage of the catalog item in the service request workflow").optional()),
|
|
45
|
+
item_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("ID of the catalog item").optional()),
|
|
46
|
+
remarks: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Any remarks added for the item").optional()),
|
|
47
|
+
quantity: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Quantity of the catalog item requested").optional()),
|
|
48
|
+
is_parent: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Indicator if this item is a parent item in a bundle").optional()),
|
|
49
|
+
created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Datetime when the catalog item was created on the service request").optional()),
|
|
50
|
+
updated_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Datetime when the catalog item entry was last updated").optional()),
|
|
51
|
+
service_request_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("ID of the parent service request").optional()),
|
|
52
|
+
custom_field_values: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.object({}).describe("Custom field values returned for the catalog item").optional())
|
|
53
53
|
}).describe("Represents a catalog item returned within a service request.");
|
|
54
54
|
const FreshserviceCreateServiceRequestOutput = zod.z.object({
|
|
55
|
-
id: zod.z.number().int().describe("System ID of the service request").
|
|
56
|
-
spam: zod.z.boolean().describe("Indicator if the service request is marked as spam").
|
|
57
|
-
due_by: zod.z.string().describe("Datetime by which the service request is due").
|
|
58
|
-
impact:
|
|
59
|
-
source:
|
|
60
|
-
status:
|
|
61
|
-
deleted: zod.z.boolean().describe("Whether the service request is deleted").
|
|
62
|
-
frDueBy: zod.z.string().describe("Freshservice SLA due by datetime").
|
|
63
|
-
subject: zod.z.string().describe("Subject or title of the service request").
|
|
64
|
-
urgency:
|
|
65
|
-
group_id: zod.z.number().int().describe("Group ID assigned to the service request").
|
|
66
|
-
owner_id: zod.z.number().int().describe("Owner user ID of the service request").
|
|
67
|
-
priority:
|
|
68
|
-
to_email: zod.z.string().describe("Email to which notifications are sent").
|
|
69
|
-
created_at: zod.z.string().describe("Datetime when the service request was created").
|
|
70
|
-
display_id: zod.z.number().int().describe("Display ID of the service request").
|
|
71
|
-
updated_at: zod.z.string().describe("Datetime when the service request was last updated").
|
|
72
|
-
isescalated: zod.z.boolean().describe("Whether the request has been escalated").
|
|
73
|
-
ticket_type: zod.z.string().describe("Type of ticket, typically 'Service Request'").
|
|
74
|
-
fr_escalated: zod.z.boolean().describe("Whether the SLA has escalated").
|
|
75
|
-
requester_id: zod.z.number().int().describe("Requester user ID of the service request").
|
|
76
|
-
responder_id: zod.z.number().int().describe("Responder user ID assigned to the request").
|
|
77
|
-
email_config_id: zod.z.number().int().describe("Email configuration ID used for notifications").
|
|
78
|
-
requested_items: zod.z.array(FreshserviceCreateServiceRequest_RequestedCatalogItemSchema).describe("List of catalog items associated with the service request").
|
|
79
|
-
department_id_value: zod.z.number().int().describe("Department ID value associated with the service request").
|
|
55
|
+
id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("System ID of the service request").optional()),
|
|
56
|
+
spam: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Indicator if the service request is marked as spam").optional()),
|
|
57
|
+
due_by: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Datetime by which the service request is due").optional()),
|
|
58
|
+
impact: zod.z.preprocess((value) => value === null ? void 0 : value, FreshserviceCreateServiceRequest_TicketImpactSchema.optional()),
|
|
59
|
+
source: zod.z.preprocess((value) => value === null ? void 0 : value, FreshserviceCreateServiceRequest_TicketSourceSchema.optional()),
|
|
60
|
+
status: zod.z.preprocess((value) => value === null ? void 0 : value, FreshserviceCreateServiceRequest_TicketStatusSchema.optional()),
|
|
61
|
+
deleted: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether the service request is deleted").optional()),
|
|
62
|
+
frDueBy: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Freshservice SLA due by datetime").optional()),
|
|
63
|
+
subject: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Subject or title of the service request").optional()),
|
|
64
|
+
urgency: zod.z.preprocess((value) => value === null ? void 0 : value, FreshserviceCreateServiceRequest_TicketUrgencySchema.optional()),
|
|
65
|
+
group_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Group ID assigned to the service request").optional()),
|
|
66
|
+
owner_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Owner user ID of the service request").optional()),
|
|
67
|
+
priority: zod.z.preprocess((value) => value === null ? void 0 : value, FreshserviceCreateServiceRequest_TicketPrioritySchema.optional()),
|
|
68
|
+
to_email: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Email to which notifications are sent").optional()),
|
|
69
|
+
created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Datetime when the service request was created").optional()),
|
|
70
|
+
display_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Display ID of the service request").optional()),
|
|
71
|
+
updated_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Datetime when the service request was last updated").optional()),
|
|
72
|
+
isescalated: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether the request has been escalated").optional()),
|
|
73
|
+
ticket_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Type of ticket, typically 'Service Request'").optional()),
|
|
74
|
+
fr_escalated: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.boolean().describe("Whether the SLA has escalated").optional()),
|
|
75
|
+
requester_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Requester user ID of the service request").optional()),
|
|
76
|
+
responder_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Responder user ID assigned to the request").optional()),
|
|
77
|
+
email_config_id: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Email configuration ID used for notifications").optional()),
|
|
78
|
+
requested_items: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(FreshserviceCreateServiceRequest_RequestedCatalogItemSchema).describe("List of catalog items associated with the service request").optional()),
|
|
79
|
+
department_id_value: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.number().int().describe("Department ID value associated with the service request").optional())
|
|
80
80
|
}).describe("Response model for the created service request.");
|
|
81
81
|
const freshserviceCreateServiceRequest = require_action.action("FRESHSERVICE_CREATE_SERVICE_REQUEST", {
|
|
82
82
|
slug: "freshservice-create-service-request",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-service-request.cjs","names":["z","action"],"sources":["../../src/actions/create-service-request.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceCreateServiceRequestInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the requester. If not provided, the authenticated user is used.\").optional(),\n quantity: z.number().int().describe(\"Quantity of the catalog item to request. Defaults to 1 if not specified.\").optional(),\n custom_fields: z.object({}).describe(\"Custom field values for the service item form. Keys are the custom field names.\").optional(),\n item_display_id: z.number().int().describe(\"Display ID of the catalog item to request. Find it in Admin > Service Catalog > Item URL.\"),\n parent_ticket_id: z.number().int().describe(\"Display ID of the parent ticket when creating as a child service request.\").optional(),\n}).describe(\"Request model to create a service request for a catalog item in Freshservice.\\nUses the v2 API endpoint: POST /service_catalog/items/{display_id}/place_request\");\nconst FreshserviceCreateServiceRequest_TicketImpactSchema: z.ZodTypeAny = z.enum([\"low\", \"medium\", \"high\"]).describe(\"Enum for Freshservice ticket impact values.\");\nconst FreshserviceCreateServiceRequest_TicketSourceSchema: z.ZodTypeAny = z.enum([\"email\", \"portal\", \"phone\", \"chat\", \"twitter\", \"facebook\"]).describe(\"Enum for Freshservice ticket source values.\");\nconst FreshserviceCreateServiceRequest_TicketStatusSchema: z.ZodTypeAny = z.enum([\"open\", \"pending\", \"resolved\", \"closed\"]).describe(\"Enum for Freshservice ticket status values.\");\nconst FreshserviceCreateServiceRequest_TicketUrgencySchema: z.ZodTypeAny = z.enum([\"low\", \"medium\", \"high\", \"critical\"]).describe(\"Enum for Freshservice ticket urgency values.\");\nconst FreshserviceCreateServiceRequest_TicketPrioritySchema: z.ZodTypeAny = z.enum([\"low\", \"medium\", \"high\", \"urgent\"]).describe(\"Enum for Freshservice ticket priority values.\");\nconst FreshserviceCreateServiceRequest_RequestedCatalogItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the requested catalog item entry\").nullable().optional(),\n stage: z.number().int().describe(\"Stage of the catalog item in the service request workflow\").nullable().optional(),\n item_id: z.number().int().describe(\"ID of the catalog item\").nullable().optional(),\n remarks: z.string().describe(\"Any remarks added for the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of the catalog item requested\").nullable().optional(),\n is_parent: z.boolean().describe(\"Indicator if this item is a parent item in a bundle\").nullable().optional(),\n created_at: z.string().describe(\"Datetime when the catalog item was created on the service request\").nullable().optional(),\n updated_at: z.string().describe(\"Datetime when the catalog item entry was last updated\").nullable().optional(),\n service_request_id: z.number().int().describe(\"ID of the parent service request\").nullable().optional(),\n custom_field_values: z.object({}).describe(\"Custom field values returned for the catalog item\").nullable().optional(),\n}).describe(\"Represents a catalog item returned within a service request.\");\nexport const FreshserviceCreateServiceRequestOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"System ID of the service request\").nullable().optional(),\n spam: z.boolean().describe(\"Indicator if the service request is marked as spam\").nullable().optional(),\n due_by: z.string().describe(\"Datetime by which the service request is due\").nullable().optional(),\n impact: FreshserviceCreateServiceRequest_TicketImpactSchema.nullable().optional(),\n source: FreshserviceCreateServiceRequest_TicketSourceSchema.nullable().optional(),\n status: FreshserviceCreateServiceRequest_TicketStatusSchema.nullable().optional(),\n deleted: z.boolean().describe(\"Whether the service request is deleted\").nullable().optional(),\n frDueBy: z.string().describe(\"Freshservice SLA due by datetime\").nullable().optional(),\n subject: z.string().describe(\"Subject or title of the service request\").nullable().optional(),\n urgency: FreshserviceCreateServiceRequest_TicketUrgencySchema.nullable().optional(),\n group_id: z.number().int().describe(\"Group ID assigned to the service request\").nullable().optional(),\n owner_id: z.number().int().describe(\"Owner user ID of the service request\").nullable().optional(),\n priority: FreshserviceCreateServiceRequest_TicketPrioritySchema.nullable().optional(),\n to_email: z.string().describe(\"Email to which notifications are sent\").nullable().optional(),\n created_at: z.string().describe(\"Datetime when the service request was created\").nullable().optional(),\n display_id: z.number().int().describe(\"Display ID of the service request\").nullable().optional(),\n updated_at: z.string().describe(\"Datetime when the service request was last updated\").nullable().optional(),\n isescalated: z.boolean().describe(\"Whether the request has been escalated\").nullable().optional(),\n ticket_type: z.string().describe(\"Type of ticket, typically 'Service Request'\").nullable().optional(),\n fr_escalated: z.boolean().describe(\"Whether the SLA has escalated\").nullable().optional(),\n requester_id: z.number().int().describe(\"Requester user ID of the service request\").nullable().optional(),\n responder_id: z.number().int().describe(\"Responder user ID assigned to the request\").nullable().optional(),\n email_config_id: z.number().int().describe(\"Email configuration ID used for notifications\").nullable().optional(),\n requested_items: z.array(FreshserviceCreateServiceRequest_RequestedCatalogItemSchema).describe(\"List of catalog items associated with the service request\").nullable().optional(),\n department_id_value: z.number().int().describe(\"Department ID value associated with the service request\").nullable().optional(),\n}).describe(\"Response model for the created service request.\");\n\nexport const freshserviceCreateServiceRequest = action(\"FRESHSERVICE_CREATE_SERVICE_REQUEST\", {\n slug: \"freshservice-create-service-request\",\n name: \"Create Service Request\",\n description: \"Create a service request for a catalog item in Freshservice using the v2 API. The catalog item display_id can be found in Admin > Service Catalog by clicking on an item and checking the URL (e.g., /service_catalog/items/1 means display_id=1).\",\n input: FreshserviceCreateServiceRequestInput,\n output: FreshserviceCreateServiceRequestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACzH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACjI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F;CACtI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,iKAAiK;AAC7K,MAAM,sDAAoEA,IAAAA,EAAE,KAAK;CAAC;CAAO;CAAU;AAAM,CAAC,CAAC,CA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AC,SAAS;CAChH,iBAAiBA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChL,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-service-request.cjs","names":["z","action"],"sources":["../../src/actions/create-service-request.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FreshserviceCreateServiceRequestInput = z.object({\n email: z.string().describe(\"Email address of the requester. If not provided, the authenticated user is used.\").optional(),\n quantity: z.number().int().describe(\"Quantity of the catalog item to request. Defaults to 1 if not specified.\").optional(),\n custom_fields: z.object({}).describe(\"Custom field values for the service item form. Keys are the custom field names.\").optional(),\n item_display_id: z.number().int().describe(\"Display ID of the catalog item to request. Find it in Admin > Service Catalog > Item URL.\"),\n parent_ticket_id: z.number().int().describe(\"Display ID of the parent ticket when creating as a child service request.\").optional(),\n}).describe(\"Request model to create a service request for a catalog item in Freshservice.\\nUses the v2 API endpoint: POST /service_catalog/items/{display_id}/place_request\");\nconst FreshserviceCreateServiceRequest_TicketImpactSchema = z.enum([\"low\", \"medium\", \"high\"]).describe(\"Enum for Freshservice ticket impact values.\");\nconst FreshserviceCreateServiceRequest_TicketSourceSchema = z.enum([\"email\", \"portal\", \"phone\", \"chat\", \"twitter\", \"facebook\"]).describe(\"Enum for Freshservice ticket source values.\");\nconst FreshserviceCreateServiceRequest_TicketStatusSchema = z.enum([\"open\", \"pending\", \"resolved\", \"closed\"]).describe(\"Enum for Freshservice ticket status values.\");\nconst FreshserviceCreateServiceRequest_TicketUrgencySchema = z.enum([\"low\", \"medium\", \"high\", \"critical\"]).describe(\"Enum for Freshservice ticket urgency values.\");\nconst FreshserviceCreateServiceRequest_TicketPrioritySchema = z.enum([\"low\", \"medium\", \"high\", \"urgent\"]).describe(\"Enum for Freshservice ticket priority values.\");\nconst FreshserviceCreateServiceRequest_RequestedCatalogItemSchema = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Unique ID of the requested catalog item entry\").optional()),\n stage: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Stage of the catalog item in the service request workflow\").optional()),\n item_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the catalog item\").optional()),\n remarks: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Any remarks added for the item\").optional()),\n quantity: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Quantity of the catalog item requested\").optional()),\n is_parent: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Indicator if this item is a parent item in a bundle\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Datetime when the catalog item was created on the service request\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Datetime when the catalog item entry was last updated\").optional()),\n service_request_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the parent service request\").optional()),\n custom_field_values: z.preprocess((value) => (value === null ? undefined : value), z.object({}).describe(\"Custom field values returned for the catalog item\").optional()),\n}).describe(\"Represents a catalog item returned within a service request.\");\nexport const FreshserviceCreateServiceRequestOutput = z.object({\n id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"System ID of the service request\").optional()),\n spam: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Indicator if the service request is marked as spam\").optional()),\n due_by: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Datetime by which the service request is due\").optional()),\n impact: z.preprocess((value) => (value === null ? undefined : value), FreshserviceCreateServiceRequest_TicketImpactSchema.optional()),\n source: z.preprocess((value) => (value === null ? undefined : value), FreshserviceCreateServiceRequest_TicketSourceSchema.optional()),\n status: z.preprocess((value) => (value === null ? undefined : value), FreshserviceCreateServiceRequest_TicketStatusSchema.optional()),\n deleted: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the service request is deleted\").optional()),\n frDueBy: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Freshservice SLA due by datetime\").optional()),\n subject: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Subject or title of the service request\").optional()),\n urgency: z.preprocess((value) => (value === null ? undefined : value), FreshserviceCreateServiceRequest_TicketUrgencySchema.optional()),\n group_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Group ID assigned to the service request\").optional()),\n owner_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Owner user ID of the service request\").optional()),\n priority: z.preprocess((value) => (value === null ? undefined : value), FreshserviceCreateServiceRequest_TicketPrioritySchema.optional()),\n to_email: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Email to which notifications are sent\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Datetime when the service request was created\").optional()),\n display_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Display ID of the service request\").optional()),\n updated_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Datetime when the service request was last updated\").optional()),\n isescalated: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the request has been escalated\").optional()),\n ticket_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Type of ticket, typically 'Service Request'\").optional()),\n fr_escalated: z.preprocess((value) => (value === null ? undefined : value), z.boolean().describe(\"Whether the SLA has escalated\").optional()),\n requester_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Requester user ID of the service request\").optional()),\n responder_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Responder user ID assigned to the request\").optional()),\n email_config_id: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Email configuration ID used for notifications\").optional()),\n requested_items: z.preprocess((value) => (value === null ? undefined : value), z.array(FreshserviceCreateServiceRequest_RequestedCatalogItemSchema).describe(\"List of catalog items associated with the service request\").optional()),\n department_id_value: z.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"Department ID value associated with the service request\").optional()),\n}).describe(\"Response model for the created service request.\");\n\nexport const freshserviceCreateServiceRequest = action(\"FRESHSERVICE_CREATE_SERVICE_REQUEST\", {\n slug: \"freshservice-create-service-request\",\n name: \"Create Service Request\",\n description: \"Create a service request for a catalog item in Freshservice using the v2 API. The catalog item display_id can be found in Admin > Service Catalog by clicking on an item and checking the URL (e.g., /service_catalog/items/1 means display_id=1).\",\n input: FreshserviceCreateServiceRequestInput,\n output: FreshserviceCreateServiceRequestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACzH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACjI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F;CACtI,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,iKAAiK;AAC7K,MAAM,sDAAsDA,IAAAA,EAAE,KAAK;CAAC;CAAO;CAAU;AAAM,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACpJ,MAAM,sDAAsDA,IAAAA,EAAE,KAAK;CAAC;CAAS;CAAU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BAAiBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC;CACpO,qBAAqBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC;AACpL,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,121 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-service-request.d.ts
|
|
4
|
-
declare const FreshserviceCreateServiceRequestInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FreshserviceCreateServiceRequestInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
8
|
+
item_display_id: z.ZodNumber;
|
|
9
|
+
parent_ticket_id: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const FreshserviceCreateServiceRequestOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
spam: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
due_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
impact: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
low: "low";
|
|
17
|
+
medium: "medium";
|
|
18
|
+
high: "high";
|
|
19
|
+
}>>>;
|
|
20
|
+
source: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
email: "email";
|
|
22
|
+
portal: "portal";
|
|
23
|
+
phone: "phone";
|
|
24
|
+
chat: "chat";
|
|
25
|
+
twitter: "twitter";
|
|
26
|
+
facebook: "facebook";
|
|
27
|
+
}>>>;
|
|
28
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
open: "open";
|
|
30
|
+
pending: "pending";
|
|
31
|
+
resolved: "resolved";
|
|
32
|
+
closed: "closed";
|
|
33
|
+
}>>>;
|
|
34
|
+
deleted: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
35
|
+
frDueBy: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
subject: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
urgency: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
low: "low";
|
|
39
|
+
medium: "medium";
|
|
40
|
+
high: "high";
|
|
41
|
+
critical: "critical";
|
|
42
|
+
}>>>;
|
|
43
|
+
group_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
44
|
+
owner_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
+
priority: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
low: "low";
|
|
47
|
+
medium: "medium";
|
|
48
|
+
high: "high";
|
|
49
|
+
urgent: "urgent";
|
|
50
|
+
}>>>;
|
|
51
|
+
to_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
52
|
+
created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
53
|
+
display_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
54
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
isescalated: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
56
|
+
ticket_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
57
|
+
fr_escalated: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
58
|
+
requester_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
59
|
+
responder_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
60
|
+
email_config_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
requested_items: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
63
|
+
stage: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
+
item_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
65
|
+
remarks: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
66
|
+
quantity: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
67
|
+
is_parent: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
68
|
+
created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
69
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
service_request_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
71
|
+
custom_field_values: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
|
|
72
|
+
}, z.core.$strip>>>>;
|
|
73
|
+
department_id_value: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
declare const freshserviceCreateServiceRequest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
76
|
+
item_display_id: number;
|
|
77
|
+
email?: string | undefined;
|
|
78
|
+
quantity?: number | undefined;
|
|
79
|
+
custom_fields?: Record<string, never> | undefined;
|
|
80
|
+
parent_ticket_id?: number | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
id?: number | undefined;
|
|
83
|
+
spam?: boolean | undefined;
|
|
84
|
+
due_by?: string | undefined;
|
|
85
|
+
impact?: "low" | "medium" | "high" | undefined;
|
|
86
|
+
source?: "email" | "portal" | "phone" | "chat" | "twitter" | "facebook" | undefined;
|
|
87
|
+
status?: "open" | "pending" | "resolved" | "closed" | undefined;
|
|
88
|
+
deleted?: boolean | undefined;
|
|
89
|
+
frDueBy?: string | undefined;
|
|
90
|
+
subject?: string | undefined;
|
|
91
|
+
urgency?: "low" | "medium" | "high" | "critical" | undefined;
|
|
92
|
+
group_id?: number | undefined;
|
|
93
|
+
owner_id?: number | undefined;
|
|
94
|
+
priority?: "low" | "medium" | "high" | "urgent" | undefined;
|
|
95
|
+
to_email?: string | undefined;
|
|
96
|
+
created_at?: string | undefined;
|
|
97
|
+
display_id?: number | undefined;
|
|
98
|
+
updated_at?: string | undefined;
|
|
99
|
+
isescalated?: boolean | undefined;
|
|
100
|
+
ticket_type?: string | undefined;
|
|
101
|
+
fr_escalated?: boolean | undefined;
|
|
102
|
+
requester_id?: number | undefined;
|
|
103
|
+
responder_id?: number | undefined;
|
|
104
|
+
email_config_id?: number | undefined;
|
|
105
|
+
requested_items?: {
|
|
106
|
+
id?: number | undefined;
|
|
107
|
+
stage?: number | undefined;
|
|
108
|
+
item_id?: number | undefined;
|
|
109
|
+
remarks?: string | undefined;
|
|
110
|
+
quantity?: number | undefined;
|
|
111
|
+
is_parent?: boolean | undefined;
|
|
112
|
+
created_at?: string | undefined;
|
|
113
|
+
updated_at?: string | undefined;
|
|
114
|
+
service_request_id?: number | undefined;
|
|
115
|
+
custom_field_values?: Record<string, never> | undefined;
|
|
116
|
+
}[] | undefined;
|
|
117
|
+
department_id_value?: number | undefined;
|
|
118
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
119
|
//#endregion
|
|
8
120
|
export { freshserviceCreateServiceRequest };
|
|
9
121
|
//# sourceMappingURL=create-service-request.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-service-request.d.cts","names":[],"sources":["../../src/actions/create-service-request.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"create-service-request.d.cts","names":[],"sources":["../../src/actions/create-service-request.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;cAwBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BtC,gCAAA,gCAAgC,wBAAA;;;;kBAM3C,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAA,MAAA;EAAA"}
|
|
@@ -1,9 +1,121 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-service-request.d.ts
|
|
4
|
-
declare const FreshserviceCreateServiceRequestInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FreshserviceCreateServiceRequestInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
8
|
+
item_display_id: z.ZodNumber;
|
|
9
|
+
parent_ticket_id: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const FreshserviceCreateServiceRequestOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
spam: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
14
|
+
due_by: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
impact: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
low: "low";
|
|
17
|
+
medium: "medium";
|
|
18
|
+
high: "high";
|
|
19
|
+
}>>>;
|
|
20
|
+
source: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
email: "email";
|
|
22
|
+
portal: "portal";
|
|
23
|
+
phone: "phone";
|
|
24
|
+
chat: "chat";
|
|
25
|
+
twitter: "twitter";
|
|
26
|
+
facebook: "facebook";
|
|
27
|
+
}>>>;
|
|
28
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
open: "open";
|
|
30
|
+
pending: "pending";
|
|
31
|
+
resolved: "resolved";
|
|
32
|
+
closed: "closed";
|
|
33
|
+
}>>>;
|
|
34
|
+
deleted: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
35
|
+
frDueBy: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
subject: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
urgency: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
low: "low";
|
|
39
|
+
medium: "medium";
|
|
40
|
+
high: "high";
|
|
41
|
+
critical: "critical";
|
|
42
|
+
}>>>;
|
|
43
|
+
group_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
44
|
+
owner_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
+
priority: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
low: "low";
|
|
47
|
+
medium: "medium";
|
|
48
|
+
high: "high";
|
|
49
|
+
urgent: "urgent";
|
|
50
|
+
}>>>;
|
|
51
|
+
to_email: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
52
|
+
created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
53
|
+
display_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
54
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
isescalated: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
56
|
+
ticket_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
57
|
+
fr_escalated: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
58
|
+
requester_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
59
|
+
responder_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
60
|
+
email_config_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
requested_items: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
63
|
+
stage: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
+
item_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
65
|
+
remarks: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
66
|
+
quantity: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
67
|
+
is_parent: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>>;
|
|
68
|
+
created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
69
|
+
updated_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
service_request_id: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
71
|
+
custom_field_values: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>>;
|
|
72
|
+
}, z.core.$strip>>>>;
|
|
73
|
+
department_id_value: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
declare const freshserviceCreateServiceRequest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
76
|
+
item_display_id: number;
|
|
77
|
+
email?: string | undefined;
|
|
78
|
+
quantity?: number | undefined;
|
|
79
|
+
custom_fields?: Record<string, never> | undefined;
|
|
80
|
+
parent_ticket_id?: number | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
id?: number | undefined;
|
|
83
|
+
spam?: boolean | undefined;
|
|
84
|
+
due_by?: string | undefined;
|
|
85
|
+
impact?: "low" | "medium" | "high" | undefined;
|
|
86
|
+
source?: "email" | "portal" | "phone" | "chat" | "twitter" | "facebook" | undefined;
|
|
87
|
+
status?: "open" | "pending" | "resolved" | "closed" | undefined;
|
|
88
|
+
deleted?: boolean | undefined;
|
|
89
|
+
frDueBy?: string | undefined;
|
|
90
|
+
subject?: string | undefined;
|
|
91
|
+
urgency?: "low" | "medium" | "high" | "critical" | undefined;
|
|
92
|
+
group_id?: number | undefined;
|
|
93
|
+
owner_id?: number | undefined;
|
|
94
|
+
priority?: "low" | "medium" | "high" | "urgent" | undefined;
|
|
95
|
+
to_email?: string | undefined;
|
|
96
|
+
created_at?: string | undefined;
|
|
97
|
+
display_id?: number | undefined;
|
|
98
|
+
updated_at?: string | undefined;
|
|
99
|
+
isescalated?: boolean | undefined;
|
|
100
|
+
ticket_type?: string | undefined;
|
|
101
|
+
fr_escalated?: boolean | undefined;
|
|
102
|
+
requester_id?: number | undefined;
|
|
103
|
+
responder_id?: number | undefined;
|
|
104
|
+
email_config_id?: number | undefined;
|
|
105
|
+
requested_items?: {
|
|
106
|
+
id?: number | undefined;
|
|
107
|
+
stage?: number | undefined;
|
|
108
|
+
item_id?: number | undefined;
|
|
109
|
+
remarks?: string | undefined;
|
|
110
|
+
quantity?: number | undefined;
|
|
111
|
+
is_parent?: boolean | undefined;
|
|
112
|
+
created_at?: string | undefined;
|
|
113
|
+
updated_at?: string | undefined;
|
|
114
|
+
service_request_id?: number | undefined;
|
|
115
|
+
custom_field_values?: Record<string, never> | undefined;
|
|
116
|
+
}[] | undefined;
|
|
117
|
+
department_id_value?: number | undefined;
|
|
118
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
119
|
//#endregion
|
|
8
120
|
export { freshserviceCreateServiceRequest };
|
|
9
121
|
//# sourceMappingURL=create-service-request.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-service-request.d.mts","names":[],"sources":["../../src/actions/create-service-request.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"create-service-request.d.mts","names":[],"sources":["../../src/actions/create-service-request.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;cAwBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BtC,gCAAA,gCAAgC,wBAAA;;;;kBAM3C,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAA,MAAA;EAAA"}
|