@keystrokehq/zendesk 0.0.7 → 0.0.9
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/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/_runtime/index.d.mts +59 -59
- package/dist/_runtime/index.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/custom/connection.d.mts +1 -1
- package/dist/custom/connection.mjs +1 -1
- package/dist/custom/jobs.d.mts +1 -1
- package/dist/custom/jobs.mjs +1 -1
- package/dist/custom/organizations.d.mts +1 -1
- package/dist/custom/organizations.mjs +1 -1
- package/dist/custom/search.d.mts +1 -1
- package/dist/custom/search.mjs +1 -1
- package/dist/custom/tickets.d.mts +1 -1
- package/dist/custom/tickets.mjs +1 -1
- package/dist/custom/triggers.d.mts +1 -1
- package/dist/custom/triggers.mjs +1 -1
- package/dist/custom/users.d.mts +1 -1
- package/dist/custom/users.mjs +1 -1
- package/dist/custom.d.mts +1 -1
- package/dist/custom.mjs +1 -1
- package/dist/{factory-BkTVtxO3.mjs → factory-ou1q975N.mjs} +1 -2
- package/dist/{integration-CtcJn--7.d.mts → integration-CdHa-pMh.d.mts} +7 -9
- package/dist/integration-DwdrlwuX.mjs +174 -0
- package/dist/{jobs-Bnu-juJI.mjs → jobs-C_g4owe2.mjs} +3 -3
- package/dist/{jobs-b1iHVfk8.d.mts → jobs-Dl9hHlgC.d.mts} +3 -3
- package/dist/{organizations-BhzeGbyt.d.mts → organizations-DdUvE-1B.d.mts} +17 -17
- package/dist/{organizations-CkUOhxeR.mjs → organizations-sN29x0eG.mjs} +17 -17
- package/dist/platform/connection.d.mts +1 -1
- package/dist/platform/connection.mjs +1 -1
- package/dist/platform/jobs.d.mts +1 -1
- package/dist/platform/jobs.mjs +1 -1
- package/dist/platform/organizations.d.mts +1 -1
- package/dist/platform/organizations.mjs +1 -1
- package/dist/platform/search.d.mts +1 -1
- package/dist/platform/search.mjs +1 -1
- package/dist/platform/tickets.d.mts +1 -1
- package/dist/platform/tickets.mjs +1 -1
- package/dist/platform/triggers.d.mts +1 -1
- package/dist/platform/triggers.mjs +1 -1
- package/dist/platform/users.d.mts +1 -1
- package/dist/platform/users.mjs +1 -1
- package/dist/platform.d.mts +1 -1
- package/dist/platform.mjs +1 -1
- package/dist/{search-BhDCvZbH.d.mts → search-68vtAp_t.d.mts} +5 -5
- package/dist/{search-SvN-I0KL.mjs → search-D41iedQX.mjs} +3 -3
- package/dist/{tickets-wDcstuX-.mjs → tickets-DJQf0-Dk.mjs} +19 -19
- package/dist/{tickets-PVnTF9mU.d.mts → tickets-a8IOtaZF.d.mts} +19 -19
- package/dist/{triggers-cLdYl78y.d.mts → triggers-YRytUtLd.d.mts} +3 -4
- package/dist/{triggers-B-QDHWMY.mjs → triggers-oJe3l-Nj.mjs} +52 -2
- package/dist/{users-CKVH1BDt.mjs → users-7GgP08U7.mjs} +19 -19
- package/dist/{users-wFde5fME.d.mts → users-BbnHg3UX.d.mts} +19 -19
- package/package.json +3 -3
- package/dist/integration-Dl2aSMKz.mjs +0 -83
package/dist/platform/jobs.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
|
|
2
|
-
import { n as platformGetJobStatus } from "../jobs-
|
|
2
|
+
import { n as platformGetJobStatus } from "../jobs-C_g4owe2.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/platform/jobs.ts
|
|
5
5
|
var jobs_exports = /* @__PURE__ */ __exportAll({ getJobStatus: () => platformGetJobStatus });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as platformCreateManyOrganizations, f as platformCreateOrganization, g as platformUpdateOrganization, h as platformListOrganizations, l as platformAutocompleteOrganizations, m as platformGetOrganization, p as platformDeleteOrganization, u as platformCountOrganizations } from "../organizations-
|
|
1
|
+
import { d as platformCreateManyOrganizations, f as platformCreateOrganization, g as platformUpdateOrganization, h as platformListOrganizations, l as platformAutocompleteOrganizations, m as platformGetOrganization, p as platformDeleteOrganization, u as platformCountOrganizations } from "../organizations-DdUvE-1B.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/platform/organizations.d.ts
|
|
4
4
|
declare namespace organizations_d_exports {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
|
|
2
|
-
import { d as platformCreateManyOrganizations, f as platformCreateOrganization, g as platformUpdateOrganization, h as platformListOrganizations, l as platformAutocompleteOrganizations, m as platformGetOrganization, p as platformDeleteOrganization, u as platformCountOrganizations } from "../organizations-
|
|
2
|
+
import { d as platformCreateManyOrganizations, f as platformCreateOrganization, g as platformUpdateOrganization, h as platformListOrganizations, l as platformAutocompleteOrganizations, m as platformGetOrganization, p as platformDeleteOrganization, u as platformCountOrganizations } from "../organizations-sN29x0eG.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/platform/organizations.ts
|
|
5
5
|
var organizations_exports = /* @__PURE__ */ __exportAll({
|
package/dist/platform/search.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
|
|
2
|
-
import { i as platformSearch, r as platformCountSearchResults } from "../search-
|
|
2
|
+
import { i as platformSearch, r as platformCountSearchResults } from "../search-D41iedQX.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/platform/search.ts
|
|
5
5
|
var search_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as platformUpdateManyTickets, d as platformCreateTicket, f as platformDeleteTicket, g as platformReplyToTicket, h as platformMergeTickets, m as platformListTickets, p as platformGetTicket, u as platformCreateManyTickets, v as platformUpdateTicket } from "../tickets-
|
|
1
|
+
import { _ as platformUpdateManyTickets, d as platformCreateTicket, f as platformDeleteTicket, g as platformReplyToTicket, h as platformMergeTickets, m as platformListTickets, p as platformGetTicket, u as platformCreateManyTickets, v as platformUpdateTicket } from "../tickets-a8IOtaZF.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/platform/tickets.d.ts
|
|
4
4
|
declare namespace tickets_d_exports {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
|
|
2
|
-
import { _ as platformUpdateManyTickets, d as platformCreateTicket, f as platformDeleteTicket, g as platformReplyToTicket, h as platformMergeTickets, m as platformListTickets, p as platformGetTicket, u as platformCreateManyTickets, v as platformUpdateTicket } from "../tickets-
|
|
2
|
+
import { _ as platformUpdateManyTickets, d as platformCreateTicket, f as platformDeleteTicket, g as platformReplyToTicket, h as platformMergeTickets, m as platformListTickets, p as platformGetTicket, u as platformCreateManyTickets, v as platformUpdateTicket } from "../tickets-DJQf0-Dk.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/platform/tickets.ts
|
|
5
5
|
var tickets_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as platformPolling } from "../triggers-
|
|
1
|
+
import { n as platformPolling } from "../triggers-YRytUtLd.mjs";
|
|
2
2
|
export { platformPolling as polling };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as platformUpdateManyUsers, d as platformCreateUser, f as platformDeleteUser, g as platformSearchUsers, h as platformListUsers, m as platformGetUser, p as platformGetCurrentUser, u as platformCreateManyUsers, v as platformUpdateUser } from "../users-
|
|
1
|
+
import { _ as platformUpdateManyUsers, d as platformCreateUser, f as platformDeleteUser, g as platformSearchUsers, h as platformListUsers, m as platformGetUser, p as platformGetCurrentUser, u as platformCreateManyUsers, v as platformUpdateUser } from "../users-BbnHg3UX.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/platform/users.d.ts
|
|
4
4
|
declare namespace users_d_exports {
|
package/dist/platform/users.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
|
|
2
|
-
import { _ as platformUpdateManyUsers, d as platformCreateUser, f as platformDeleteUser, g as platformSearchUsers, h as platformListUsers, m as platformGetUser, p as platformGetCurrentUser, u as platformCreateManyUsers, v as platformUpdateUser } from "../users-
|
|
2
|
+
import { _ as platformUpdateManyUsers, d as platformCreateUser, f as platformDeleteUser, g as platformSearchUsers, h as platformListUsers, m as platformGetUser, p as platformGetCurrentUser, u as platformCreateManyUsers, v as platformUpdateUser } from "../users-7GgP08U7.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/platform/users.ts
|
|
5
5
|
var users_exports = /* @__PURE__ */ __exportAll({
|
package/dist/platform.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as platformPolling } from "./triggers-
|
|
1
|
+
import { n as platformPolling } from "./triggers-YRytUtLd.mjs";
|
|
2
2
|
import { t as jobs_d_exports } from "./platform/jobs.mjs";
|
|
3
3
|
import { t as organizations_d_exports } from "./platform/organizations.mjs";
|
|
4
4
|
import { t as search_d_exports } from "./platform/search.mjs";
|
package/dist/platform.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { t as jobs_exports } from "./platform/jobs.mjs";
|
|
|
2
2
|
import { t as organizations_exports } from "./platform/organizations.mjs";
|
|
3
3
|
import { t as search_exports } from "./platform/search.mjs";
|
|
4
4
|
import { t as tickets_exports } from "./platform/tickets.mjs";
|
|
5
|
-
import { n as platformPolling } from "./triggers-
|
|
5
|
+
import { n as platformPolling } from "./triggers-oJe3l-Nj.mjs";
|
|
6
6
|
import { t as users_exports } from "./platform/users.mjs";
|
|
7
7
|
|
|
8
8
|
export { jobs_exports as jobs, organizations_exports as organizations, platformPolling as polling, search_exports as search, tickets_exports as tickets, users_exports as users };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/search.d.ts
|
|
@@ -21,7 +21,7 @@ declare const platformSearch: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
21
21
|
result_type: z.ZodOptional<z.ZodString>;
|
|
22
22
|
url: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
24
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
25
25
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
26
26
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
27
27
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -46,7 +46,7 @@ declare const customSearch: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
46
46
|
result_type: z.ZodOptional<z.ZodString>;
|
|
47
47
|
url: z.ZodOptional<z.ZodString>;
|
|
48
48
|
}, z.core.$strip>>;
|
|
49
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
49
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
50
50
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
51
51
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
52
52
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -59,7 +59,7 @@ declare const platformCountSearchResults: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
59
59
|
query: z.ZodString;
|
|
60
60
|
}, z.core.$strip>, z.ZodObject<{
|
|
61
61
|
count: z.ZodCoercedNumber<unknown>;
|
|
62
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
62
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
63
63
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
64
64
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
65
65
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -70,7 +70,7 @@ declare const customCountSearchResults: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
70
70
|
query: z.ZodString;
|
|
71
71
|
}, z.core.$strip>, z.ZodObject<{
|
|
72
72
|
count: z.ZodCoercedNumber<unknown>;
|
|
73
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
73
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
74
74
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
75
75
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
76
76
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { zendeskSearchCountResponseSchema, zendeskSearchResponseSchema } from "./schemas.mjs";
|
|
2
|
-
import { n as zendeskPlatformOperation, t as zendeskCustomOperation } from "./factory-
|
|
2
|
+
import { n as zendeskPlatformOperation, t as zendeskCustomOperation } from "./factory-ou1q975N.mjs";
|
|
3
3
|
import { n as createPlatformZendeskClient, t as createCustomZendeskClient } from "./shared-BmxcJmfq.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -53,7 +53,7 @@ const customSearch = zendeskCustomOperation({
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
const platformCountSearchResults = zendeskPlatformOperation({
|
|
56
|
-
id: "
|
|
56
|
+
id: "zendesk-platform.count-search-results",
|
|
57
57
|
name: "Count Zendesk Search Results",
|
|
58
58
|
description: "Count Zendesk Support search results for a query",
|
|
59
59
|
input: countSearchResultsInputSchema,
|
|
@@ -67,7 +67,7 @@ const platformCountSearchResults = zendeskPlatformOperation({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
const customCountSearchResults = zendeskCustomOperation({
|
|
70
|
-
id: "
|
|
70
|
+
id: "zendesk-platform.count-search-results",
|
|
71
71
|
name: "Count Zendesk Search Results",
|
|
72
72
|
description: "Count Zendesk Support search results for a query",
|
|
73
73
|
input: countSearchResultsInputSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { zendeskBulkJobResponseSchema, zendeskTicketEnvelopeSchema, zendeskTicketListResponseSchema, zendeskTicketSchema } from "./schemas.mjs";
|
|
2
|
-
import { n as zendeskPlatformOperation, t as zendeskCustomOperation } from "./factory-
|
|
2
|
+
import { n as zendeskPlatformOperation, t as zendeskCustomOperation } from "./factory-ou1q975N.mjs";
|
|
3
3
|
import { n as createPlatformZendeskClient, t as createCustomZendeskClient } from "./shared-BmxcJmfq.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -79,7 +79,7 @@ function mapTicketWriteInput(input) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
const platformGetTicket = zendeskPlatformOperation({
|
|
82
|
-
id: "
|
|
82
|
+
id: "zendesk-platform.get-ticket",
|
|
83
83
|
name: "Get Zendesk Ticket",
|
|
84
84
|
description: "Get a single Zendesk ticket by ID",
|
|
85
85
|
input: getTicketInputSchema,
|
|
@@ -92,7 +92,7 @@ const platformGetTicket = zendeskPlatformOperation({
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
const customGetTicket = zendeskCustomOperation({
|
|
95
|
-
id: "
|
|
95
|
+
id: "zendesk-platform.get-ticket",
|
|
96
96
|
name: "Get Zendesk Ticket",
|
|
97
97
|
description: "Get a single Zendesk ticket by ID",
|
|
98
98
|
input: getTicketInputSchema,
|
|
@@ -105,7 +105,7 @@ const customGetTicket = zendeskCustomOperation({
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
const platformListTickets = zendeskPlatformOperation({
|
|
108
|
-
id: "
|
|
108
|
+
id: "zendesk-platform.list-tickets",
|
|
109
109
|
name: "List Zendesk Tickets",
|
|
110
110
|
description: "List Zendesk tickets with pagination controls",
|
|
111
111
|
input: listTicketsInputSchema,
|
|
@@ -125,7 +125,7 @@ const platformListTickets = zendeskPlatformOperation({
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
const customListTickets = zendeskCustomOperation({
|
|
128
|
-
id: "
|
|
128
|
+
id: "zendesk-platform.list-tickets",
|
|
129
129
|
name: "List Zendesk Tickets",
|
|
130
130
|
description: "List Zendesk tickets with pagination controls",
|
|
131
131
|
input: listTicketsInputSchema,
|
|
@@ -145,7 +145,7 @@ const customListTickets = zendeskCustomOperation({
|
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
const platformCreateTicket = zendeskPlatformOperation({
|
|
148
|
-
id: "
|
|
148
|
+
id: "zendesk-platform.create-ticket",
|
|
149
149
|
name: "Create Zendesk Ticket",
|
|
150
150
|
description: "Create a new Zendesk ticket",
|
|
151
151
|
input: ticketCreateInputSchema,
|
|
@@ -160,7 +160,7 @@ const platformCreateTicket = zendeskPlatformOperation({
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
const customCreateTicket = zendeskCustomOperation({
|
|
163
|
-
id: "
|
|
163
|
+
id: "zendesk-platform.create-ticket",
|
|
164
164
|
name: "Create Zendesk Ticket",
|
|
165
165
|
description: "Create a new Zendesk ticket",
|
|
166
166
|
input: ticketCreateInputSchema,
|
|
@@ -175,7 +175,7 @@ const customCreateTicket = zendeskCustomOperation({
|
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
const platformUpdateTicket = zendeskPlatformOperation({
|
|
178
|
-
id: "
|
|
178
|
+
id: "zendesk-platform.update-ticket",
|
|
179
179
|
name: "Update Zendesk Ticket",
|
|
180
180
|
description: "Update an existing Zendesk ticket",
|
|
181
181
|
input: ticketUpdateInputSchema,
|
|
@@ -190,7 +190,7 @@ const platformUpdateTicket = zendeskPlatformOperation({
|
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
const customUpdateTicket = zendeskCustomOperation({
|
|
193
|
-
id: "
|
|
193
|
+
id: "zendesk-platform.update-ticket",
|
|
194
194
|
name: "Update Zendesk Ticket",
|
|
195
195
|
description: "Update an existing Zendesk ticket",
|
|
196
196
|
input: ticketUpdateInputSchema,
|
|
@@ -205,7 +205,7 @@ const customUpdateTicket = zendeskCustomOperation({
|
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
const platformDeleteTicket = zendeskPlatformOperation({
|
|
208
|
-
id: "
|
|
208
|
+
id: "zendesk-platform.delete-ticket",
|
|
209
209
|
name: "Delete Zendesk Ticket",
|
|
210
210
|
description: "Delete a Zendesk ticket",
|
|
211
211
|
input: getTicketInputSchema,
|
|
@@ -220,7 +220,7 @@ const platformDeleteTicket = zendeskPlatformOperation({
|
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
const customDeleteTicket = zendeskCustomOperation({
|
|
223
|
-
id: "
|
|
223
|
+
id: "zendesk-platform.delete-ticket",
|
|
224
224
|
name: "Delete Zendesk Ticket",
|
|
225
225
|
description: "Delete a Zendesk ticket",
|
|
226
226
|
input: getTicketInputSchema,
|
|
@@ -235,7 +235,7 @@ const customDeleteTicket = zendeskCustomOperation({
|
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
237
|
const platformReplyToTicket = zendeskPlatformOperation({
|
|
238
|
-
id: "
|
|
238
|
+
id: "zendesk-platform.reply-to-ticket",
|
|
239
239
|
name: "Reply To Zendesk Ticket",
|
|
240
240
|
description: "Add a public or private reply to an existing Zendesk ticket",
|
|
241
241
|
input: ticketReplyInputSchema,
|
|
@@ -253,7 +253,7 @@ const platformReplyToTicket = zendeskPlatformOperation({
|
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
255
|
const customReplyToTicket = zendeskCustomOperation({
|
|
256
|
-
id: "
|
|
256
|
+
id: "zendesk-platform.reply-to-ticket",
|
|
257
257
|
name: "Reply To Zendesk Ticket",
|
|
258
258
|
description: "Add a public or private reply to an existing Zendesk ticket",
|
|
259
259
|
input: ticketReplyInputSchema,
|
|
@@ -271,7 +271,7 @@ const customReplyToTicket = zendeskCustomOperation({
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
const platformCreateManyTickets = zendeskPlatformOperation({
|
|
274
|
-
id: "
|
|
274
|
+
id: "zendesk-platform.create-many-tickets",
|
|
275
275
|
name: "Create Many Zendesk Tickets",
|
|
276
276
|
description: "Create multiple Zendesk tickets asynchronously",
|
|
277
277
|
input: createManyTicketsInputSchema,
|
|
@@ -286,7 +286,7 @@ const platformCreateManyTickets = zendeskPlatformOperation({
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
const customCreateManyTickets = zendeskCustomOperation({
|
|
289
|
-
id: "
|
|
289
|
+
id: "zendesk-platform.create-many-tickets",
|
|
290
290
|
name: "Create Many Zendesk Tickets",
|
|
291
291
|
description: "Create multiple Zendesk tickets asynchronously",
|
|
292
292
|
input: createManyTicketsInputSchema,
|
|
@@ -301,7 +301,7 @@ const customCreateManyTickets = zendeskCustomOperation({
|
|
|
301
301
|
}
|
|
302
302
|
});
|
|
303
303
|
const platformUpdateManyTickets = zendeskPlatformOperation({
|
|
304
|
-
id: "
|
|
304
|
+
id: "zendesk-platform.update-many-tickets",
|
|
305
305
|
name: "Update Many Zendesk Tickets",
|
|
306
306
|
description: "Update multiple Zendesk tickets asynchronously",
|
|
307
307
|
input: updateManyTicketsInputSchema,
|
|
@@ -321,7 +321,7 @@ const platformUpdateManyTickets = zendeskPlatformOperation({
|
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
const customUpdateManyTickets = zendeskCustomOperation({
|
|
324
|
-
id: "
|
|
324
|
+
id: "zendesk-platform.update-many-tickets",
|
|
325
325
|
name: "Update Many Zendesk Tickets",
|
|
326
326
|
description: "Update multiple Zendesk tickets asynchronously",
|
|
327
327
|
input: updateManyTicketsInputSchema,
|
|
@@ -341,7 +341,7 @@ const customUpdateManyTickets = zendeskCustomOperation({
|
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
343
|
const platformMergeTickets = zendeskPlatformOperation({
|
|
344
|
-
id: "
|
|
344
|
+
id: "zendesk-platform.merge-tickets",
|
|
345
345
|
name: "Merge Zendesk Tickets",
|
|
346
346
|
description: "Merge one or more source tickets into a target Zendesk ticket",
|
|
347
347
|
input: mergeTicketsInputSchema,
|
|
@@ -362,7 +362,7 @@ const platformMergeTickets = zendeskPlatformOperation({
|
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
const customMergeTickets = zendeskCustomOperation({
|
|
365
|
-
id: "
|
|
365
|
+
id: "zendesk-platform.merge-tickets",
|
|
366
366
|
name: "Merge Zendesk Tickets",
|
|
367
367
|
description: "Merge one or more source tickets into a target Zendesk ticket",
|
|
368
368
|
input: mergeTicketsInputSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/tickets.d.ts
|
|
@@ -29,7 +29,7 @@ declare const platformGetTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
29
29
|
author_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
30
30
|
created_at: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, z.core.$strip>>;
|
|
32
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
32
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
33
33
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
34
34
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
35
35
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -62,7 +62,7 @@ declare const customGetTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
62
62
|
author_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
63
63
|
created_at: z.ZodOptional<z.ZodString>;
|
|
64
64
|
}, z.core.$strip>>;
|
|
65
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
65
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
66
66
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
67
67
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
68
68
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -109,7 +109,7 @@ declare const platformListTickets: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
109
109
|
created_at: z.ZodOptional<z.ZodString>;
|
|
110
110
|
}, z.core.$strip>>;
|
|
111
111
|
}, z.core.$strip>>;
|
|
112
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
112
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
113
113
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
114
114
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
115
115
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -154,7 +154,7 @@ declare const customListTickets: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
154
154
|
created_at: z.ZodOptional<z.ZodString>;
|
|
155
155
|
}, z.core.$strip>>;
|
|
156
156
|
}, z.core.$strip>>;
|
|
157
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
157
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
158
158
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
159
159
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
160
160
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -200,7 +200,7 @@ declare const platformCreateTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
200
200
|
author_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
201
201
|
created_at: z.ZodOptional<z.ZodString>;
|
|
202
202
|
}, z.core.$strip>>;
|
|
203
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
203
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
204
204
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
205
205
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
206
206
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -244,7 +244,7 @@ declare const customCreateTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
244
244
|
author_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
245
245
|
created_at: z.ZodOptional<z.ZodString>;
|
|
246
246
|
}, z.core.$strip>>;
|
|
247
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
247
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
248
248
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
249
249
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
250
250
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -291,7 +291,7 @@ declare const platformUpdateTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
291
291
|
author_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
292
292
|
created_at: z.ZodOptional<z.ZodString>;
|
|
293
293
|
}, z.core.$strip>>;
|
|
294
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
294
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
295
295
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
296
296
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
297
297
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -336,7 +336,7 @@ declare const customUpdateTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
336
336
|
author_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
337
337
|
created_at: z.ZodOptional<z.ZodString>;
|
|
338
338
|
}, z.core.$strip>>;
|
|
339
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
339
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
340
340
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
341
341
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
342
342
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -349,7 +349,7 @@ declare const platformDeleteTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
349
349
|
id: z.ZodNumber;
|
|
350
350
|
}, z.core.$strip>, z.ZodObject<{
|
|
351
351
|
success: z.ZodBoolean;
|
|
352
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
352
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
353
353
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
354
354
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
355
355
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -360,7 +360,7 @@ declare const customDeleteTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
360
360
|
id: z.ZodNumber;
|
|
361
361
|
}, z.core.$strip>, z.ZodObject<{
|
|
362
362
|
success: z.ZodBoolean;
|
|
363
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
363
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
364
364
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
365
365
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
366
366
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -397,7 +397,7 @@ declare const platformReplyToTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
397
397
|
author_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
398
398
|
created_at: z.ZodOptional<z.ZodString>;
|
|
399
399
|
}, z.core.$strip>>;
|
|
400
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
400
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
401
401
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
402
402
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
403
403
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -432,7 +432,7 @@ declare const customReplyToTicket: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
432
432
|
author_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
433
433
|
created_at: z.ZodOptional<z.ZodString>;
|
|
434
434
|
}, z.core.$strip>>;
|
|
435
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
435
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
436
436
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
437
437
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
438
438
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -466,7 +466,7 @@ declare const platformCreateManyTickets: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
466
466
|
url: z.ZodOptional<z.ZodString>;
|
|
467
467
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
468
468
|
}, z.core.$strip>;
|
|
469
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
469
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
470
470
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
471
471
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
472
472
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -498,7 +498,7 @@ declare const customCreateManyTickets: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
498
498
|
url: z.ZodOptional<z.ZodString>;
|
|
499
499
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
500
500
|
}, z.core.$strip>;
|
|
501
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
501
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
502
502
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
503
503
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
504
504
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -535,7 +535,7 @@ declare const platformUpdateManyTickets: _keystrokehq_core0.Operation<z.ZodObjec
|
|
|
535
535
|
url: z.ZodOptional<z.ZodString>;
|
|
536
536
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
537
537
|
}, z.core.$strip>;
|
|
538
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
538
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
539
539
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
540
540
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
541
541
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -570,7 +570,7 @@ declare const customUpdateManyTickets: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
570
570
|
url: z.ZodOptional<z.ZodString>;
|
|
571
571
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
572
572
|
}, z.core.$strip>;
|
|
573
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
573
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
574
574
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
575
575
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
576
576
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -596,7 +596,7 @@ declare const platformMergeTickets: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
596
596
|
url: z.ZodOptional<z.ZodString>;
|
|
597
597
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
598
598
|
}, z.core.$strip>;
|
|
599
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
599
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.platform-oauth", z.ZodObject<{
|
|
600
600
|
ZENDESK_ACCESS_TOKEN: z.ZodString;
|
|
601
601
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
602
602
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
@@ -620,7 +620,7 @@ declare const customMergeTickets: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
620
620
|
url: z.ZodOptional<z.ZodString>;
|
|
621
621
|
results: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
622
622
|
}, z.core.$strip>;
|
|
623
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
623
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"zendesk.custom-token", z.ZodObject<{
|
|
624
624
|
ZENDESK_SUBDOMAIN: z.ZodString;
|
|
625
625
|
ZENDESK_EMAIL: z.ZodEmail;
|
|
626
626
|
ZENDESK_API_TOKEN: z.ZodString;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { o as zendeskPlatform, r as zendeskCustom } from "./integration-
|
|
1
|
+
import { o as zendeskPlatform, r as zendeskCustom } from "./integration-CdHa-pMh.mjs";
|
|
2
2
|
import { zendeskTicketListResponseSchema } from "./schemas.mjs";
|
|
3
3
|
import { ZendeskRecentTicketsEvent } from "./events.mjs";
|
|
4
|
+
import { BoundTrigger, Operation } from "@keystrokehq/core";
|
|
4
5
|
import { z } from "zod";
|
|
5
|
-
import { BoundTrigger } from "@keystrokehq/core";
|
|
6
|
-
import { IntegrationTriggerBindingOptions } from "@keystrokehq/integration-authoring";
|
|
7
|
-
import { AnyCredentialSet } from "@keystrokehq/core/credential-set";
|
|
8
6
|
import { PollingTriggerManifest } from "@keystrokehq/core/trigger";
|
|
7
|
+
import { AnyCredentialSet } from "@keystrokehq/core/credential-set";
|
|
9
8
|
|
|
10
9
|
//#region src/triggers.d.ts
|
|
11
10
|
type ZendeskPollingSchedule = number | `${number}s` | `${number}m` | `${number}h` | `${number}d` | `${number}w` | `${number}y`;
|
|
@@ -1,9 +1,59 @@
|
|
|
1
|
-
import { i as zendeskPlatform, t as zendeskCustom } from "./integration-
|
|
1
|
+
import { i as zendeskPlatform, t as zendeskCustom } from "./integration-DwdrlwuX.mjs";
|
|
2
2
|
import { zendeskTicketListResponseSchema } from "./schemas.mjs";
|
|
3
3
|
import { mapZendeskRecentTicketsEvent } from "./events.mjs";
|
|
4
4
|
import { n as createPlatformZendeskClient, t as createCustomZendeskClient } from "./shared-BmxcJmfq.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { Operation } from "@keystrokehq/core";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { pollingTrigger } from "@keystrokehq/core/trigger";
|
|
6
8
|
|
|
9
|
+
//#region ../../packages/integration-authoring/dist/index.mjs
|
|
10
|
+
const IntegrationConfigSchema = z.object({
|
|
11
|
+
id: z.string().min(1),
|
|
12
|
+
name: z.string().min(1),
|
|
13
|
+
description: z.string().optional()
|
|
14
|
+
});
|
|
15
|
+
function resolveMetadata(metadata, defaults) {
|
|
16
|
+
return {
|
|
17
|
+
id: metadata?.id ?? defaults.defaultId,
|
|
18
|
+
description: metadata?.description ?? defaults.defaultDescription
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function resolveAuthorPayload(payload, mapPayload) {
|
|
22
|
+
if (!mapPayload) return payload;
|
|
23
|
+
return mapPayload(payload);
|
|
24
|
+
}
|
|
25
|
+
function createIntegrationTriggerBindingFactory(config) {
|
|
26
|
+
const bind = (options) => {
|
|
27
|
+
const resolvedMetadata = resolveMetadata(options, config);
|
|
28
|
+
const baseTrigger = config.createBaseTrigger(resolvedMetadata);
|
|
29
|
+
const userTransform = options?.transform;
|
|
30
|
+
return baseTrigger({ transform: userTransform || config.mapPayload ? (runtimePayload, request) => {
|
|
31
|
+
const authorPayload = resolveAuthorPayload(runtimePayload, config.mapPayload);
|
|
32
|
+
if (authorPayload === null) throw new Error(`Trigger "${resolvedMetadata.id}" mapPayload returned null after the trigger filter passed; tighten the trigger filter schema.`);
|
|
33
|
+
if (!userTransform) return authorPayload;
|
|
34
|
+
return userTransform(authorPayload, request);
|
|
35
|
+
} : void 0 });
|
|
36
|
+
};
|
|
37
|
+
return Object.freeze(bind);
|
|
38
|
+
}
|
|
39
|
+
function createPollingTriggerBindingFactory(config) {
|
|
40
|
+
return createIntegrationTriggerBindingFactory({
|
|
41
|
+
defaultId: config.defaultId,
|
|
42
|
+
defaultDescription: config.defaultDescription,
|
|
43
|
+
mapPayload: config.mapPayload,
|
|
44
|
+
createBaseTrigger: (metadata) => pollingTrigger({
|
|
45
|
+
id: metadata.id,
|
|
46
|
+
description: metadata.description,
|
|
47
|
+
schedule: config.schedule,
|
|
48
|
+
response: config.response,
|
|
49
|
+
poll: config.poll,
|
|
50
|
+
...config.credentialSets ? { credentialSets: config.credentialSets } : {},
|
|
51
|
+
...config.filter ? { filter: config.filter } : {}
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
7
57
|
//#region src/triggers.ts
|
|
8
58
|
function buildPlatformRecentTicketsBind(options) {
|
|
9
59
|
return createPollingTriggerBindingFactory({
|