@deliverart/sdk-js-webhook 0.0.0-dev-20260721002647
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/index.cjs +428 -0
- package/dist/index.d.cts +1398 -0
- package/dist/index.d.ts +1398 -0
- package/dist/index.js +367 -0
- package/package.json +33 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
CreateWebhookConfiguration: () => CreateWebhookConfiguration,
|
|
24
|
+
DeleteWebhookConfiguration: () => DeleteWebhookConfiguration,
|
|
25
|
+
GetWebhookConfigurationDetails: () => GetWebhookConfigurationDetails,
|
|
26
|
+
GetWebhookConfigurations: () => GetWebhookConfigurations,
|
|
27
|
+
GetWebhookConfigurationsFromPointOfSale: () => GetWebhookConfigurationsFromPointOfSale,
|
|
28
|
+
GetWebhookLogDetails: () => GetWebhookLogDetails,
|
|
29
|
+
GetWebhookLogs: () => GetWebhookLogs,
|
|
30
|
+
GetWebhookLogsFromWebhookConfiguration: () => GetWebhookLogsFromWebhookConfiguration,
|
|
31
|
+
UpdateWebhookConfiguration: () => UpdateWebhookConfiguration,
|
|
32
|
+
createWebhookConfigurationInputSchema: () => createWebhookConfigurationInputSchema,
|
|
33
|
+
createWebhookConfigurationResponseSchema: () => createWebhookConfigurationResponseSchema,
|
|
34
|
+
deleteWebhookConfigurationInputSchema: () => deleteWebhookConfigurationInputSchema,
|
|
35
|
+
deleteWebhookConfigurationResponseSchema: () => deleteWebhookConfigurationResponseSchema,
|
|
36
|
+
getWebhookConfigurationDetailsInputSchema: () => getWebhookConfigurationDetailsInputSchema,
|
|
37
|
+
getWebhookConfigurationDetailsResponseSchema: () => getWebhookConfigurationDetailsResponseSchema,
|
|
38
|
+
getWebhookConfigurationsFromPointOfSaleInputSchema: () => getWebhookConfigurationsFromPointOfSaleInputSchema,
|
|
39
|
+
getWebhookConfigurationsFromPointOfSaleQuerySchema: () => getWebhookConfigurationsFromPointOfSaleQuerySchema,
|
|
40
|
+
getWebhookConfigurationsFromPointOfSaleResponseSchema: () => getWebhookConfigurationsFromPointOfSaleResponseSchema,
|
|
41
|
+
getWebhookConfigurationsInputSchema: () => getWebhookConfigurationsInputSchema,
|
|
42
|
+
getWebhookConfigurationsQuerySchema: () => getWebhookConfigurationsQuerySchema,
|
|
43
|
+
getWebhookConfigurationsResponseSchema: () => getWebhookConfigurationsResponseSchema,
|
|
44
|
+
getWebhookLogDetailsInputSchema: () => getWebhookLogDetailsInputSchema,
|
|
45
|
+
getWebhookLogDetailsResponseSchema: () => getWebhookLogDetailsResponseSchema,
|
|
46
|
+
getWebhookLogsFromWebhookConfigurationInputSchema: () => getWebhookLogsFromWebhookConfigurationInputSchema,
|
|
47
|
+
getWebhookLogsFromWebhookConfigurationQuerySchema: () => getWebhookLogsFromWebhookConfigurationQuerySchema,
|
|
48
|
+
getWebhookLogsFromWebhookConfigurationResponseSchema: () => getWebhookLogsFromWebhookConfigurationResponseSchema,
|
|
49
|
+
getWebhookLogsInputSchema: () => getWebhookLogsInputSchema,
|
|
50
|
+
getWebhookLogsQuerySchema: () => getWebhookLogsQuerySchema,
|
|
51
|
+
getWebhookLogsResponseSchema: () => getWebhookLogsResponseSchema,
|
|
52
|
+
updateWebhookConfigurationInputSchema: () => updateWebhookConfigurationInputSchema,
|
|
53
|
+
updateWebhookConfigurationResponseSchema: () => updateWebhookConfigurationResponseSchema,
|
|
54
|
+
webhookConfigurationIriSchema: () => webhookConfigurationIriSchema,
|
|
55
|
+
webhookConfigurationListItemSchema: () => webhookConfigurationListItemSchema,
|
|
56
|
+
webhookConfigurationNullableIriSchema: () => webhookConfigurationNullableIriSchema,
|
|
57
|
+
webhookConfigurationSchema: () => webhookConfigurationSchema,
|
|
58
|
+
webhookConfigurationsQuerySchema: () => webhookConfigurationsQuerySchema,
|
|
59
|
+
webhookEntities: () => import_sdk_js_global_types2.webhookEntities,
|
|
60
|
+
webhookEntitySchema: () => import_sdk_js_global_types2.webhookEntitySchema,
|
|
61
|
+
webhookEventSchema: () => import_sdk_js_global_types2.webhookEventSchema,
|
|
62
|
+
webhookEvents: () => import_sdk_js_global_types2.webhookEvents,
|
|
63
|
+
webhookLogIriSchema: () => webhookLogIriSchema,
|
|
64
|
+
webhookLogListItemSchema: () => webhookLogListItemSchema,
|
|
65
|
+
webhookLogNullableIriSchema: () => webhookLogNullableIriSchema,
|
|
66
|
+
webhookLogSchema: () => webhookLogSchema,
|
|
67
|
+
webhookLogStatusSchema: () => import_sdk_js_global_types2.webhookLogStatusSchema,
|
|
68
|
+
webhookLogStatuses: () => import_sdk_js_global_types2.webhookLogStatuses,
|
|
69
|
+
webhookLogsQuerySchema: () => webhookLogsQuerySchema
|
|
70
|
+
});
|
|
71
|
+
module.exports = __toCommonJS(index_exports);
|
|
72
|
+
|
|
73
|
+
// src/models.ts
|
|
74
|
+
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
75
|
+
var import_sdk_js_point_of_sale = require("@deliverart/sdk-js-point-of-sale");
|
|
76
|
+
var import_zod = require("zod");
|
|
77
|
+
|
|
78
|
+
// src/types.ts
|
|
79
|
+
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
80
|
+
var import_sdk_js_global_types2 = require("@deliverart/sdk-js-global-types");
|
|
81
|
+
var webhookConfigurationIriSchema = (0, import_sdk_js_global_types.iriSchema)("/webhooks/configurations/:id");
|
|
82
|
+
var webhookConfigurationNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
83
|
+
"/webhooks/configurations/:id"
|
|
84
|
+
);
|
|
85
|
+
var webhookLogIriSchema = (0, import_sdk_js_global_types.iriSchema)("/webhooks/logs/:id");
|
|
86
|
+
var webhookLogNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/webhooks/logs/:id");
|
|
87
|
+
|
|
88
|
+
// src/models.ts
|
|
89
|
+
var webhookConfigurationSchema = import_zod.z.object({
|
|
90
|
+
id: import_zod.z.string(),
|
|
91
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
92
|
+
entityClass: import_sdk_js_global_types2.webhookEntitySchema,
|
|
93
|
+
events: import_zod.z.array(import_sdk_js_global_types2.webhookEventSchema).min(1, "events.required"),
|
|
94
|
+
callbackUrl: import_zod.z.url("callbackUrl.invalid").min(1, "callbackUrl.required"),
|
|
95
|
+
secretKey: import_zod.z.string().min(1, "secretKey.required"),
|
|
96
|
+
isActive: import_zod.z.boolean().default(true),
|
|
97
|
+
description: import_zod.z.string().optional().nullable().default(null),
|
|
98
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
99
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
100
|
+
});
|
|
101
|
+
var webhookConfigurationListItemSchema = webhookConfigurationSchema.omit({
|
|
102
|
+
pointOfSale: true,
|
|
103
|
+
secretKey: true
|
|
104
|
+
});
|
|
105
|
+
var webhookConfigurationsQuerySchema = import_zod.z.object({
|
|
106
|
+
entityClass: import_zod.z.string().optional(),
|
|
107
|
+
events: import_zod.z.union([import_sdk_js_global_types2.webhookEventSchema, import_zod.z.array(import_sdk_js_global_types2.webhookEventSchema)]).optional(),
|
|
108
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
109
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
110
|
+
page: import_zod.z.coerce.number().optional()
|
|
111
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
112
|
+
var webhookLogSchema = import_zod.z.object({
|
|
113
|
+
id: import_zod.z.string(),
|
|
114
|
+
configuration: webhookConfigurationIriSchema,
|
|
115
|
+
entityClass: import_sdk_js_global_types2.webhookEntitySchema,
|
|
116
|
+
externalEntityId: import_zod.z.uuid(),
|
|
117
|
+
event: import_sdk_js_global_types2.webhookEventSchema,
|
|
118
|
+
status: import_sdk_js_global_types2.webhookLogStatusSchema,
|
|
119
|
+
requestS3Key: import_zod.z.string().nullable(),
|
|
120
|
+
responseS3Key: import_zod.z.string().nullable(),
|
|
121
|
+
httpStatusCode: import_zod.z.coerce.number().nullable(),
|
|
122
|
+
errorMessage: import_zod.z.string().nullable(),
|
|
123
|
+
responseTimeMs: import_zod.z.coerce.number().nullable(),
|
|
124
|
+
requestFileUrl: import_zod.z.url().nullable(),
|
|
125
|
+
responseFileUrl: import_zod.z.url().nullable(),
|
|
126
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
127
|
+
completedAt: import_sdk_js_global_types3.datetimeSchema.nullable()
|
|
128
|
+
});
|
|
129
|
+
var webhookLogListItemSchema = webhookLogSchema.omit({
|
|
130
|
+
configuration: true
|
|
131
|
+
});
|
|
132
|
+
var webhookLogsQuerySchema = import_zod.z.object({
|
|
133
|
+
entityClass: import_zod.z.string().optional(),
|
|
134
|
+
externalEntityId: import_zod.z.string().optional(),
|
|
135
|
+
"exists[completedAt]": import_sdk_js_global_types3.booleanSchema.optional(),
|
|
136
|
+
events: import_zod.z.union([import_sdk_js_global_types2.webhookEventSchema, import_zod.z.array(import_sdk_js_global_types2.webhookEventSchema)]).optional(),
|
|
137
|
+
status: import_zod.z.union([import_sdk_js_global_types2.webhookLogStatusSchema, import_zod.z.array(import_sdk_js_global_types2.webhookLogStatusSchema)]).optional(),
|
|
138
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
139
|
+
"order[completedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
140
|
+
page: import_zod.z.coerce.number().optional()
|
|
141
|
+
}).extend({
|
|
142
|
+
"createdAt[before]": import_zod.z.string().optional(),
|
|
143
|
+
"createdAt[strictly_before]": import_zod.z.string().optional(),
|
|
144
|
+
"createdAt[after]": import_zod.z.string().optional(),
|
|
145
|
+
"createdAt[strictly_after]": import_zod.z.string().optional(),
|
|
146
|
+
"completedAt[before]": import_zod.z.string().optional(),
|
|
147
|
+
"completedAt[strictly_before]": import_zod.z.string().optional(),
|
|
148
|
+
"completedAt[after]": import_zod.z.string().optional(),
|
|
149
|
+
"completedAt[strictly_after]": import_zod.z.string().optional()
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
// src/requests/webhook-configurations/CreateWebhookConfiguration.ts
|
|
153
|
+
var import_sdk_js_core = require("@deliverart/sdk-js-core");
|
|
154
|
+
var createWebhookConfigurationInputSchema = webhookConfigurationSchema.pick({
|
|
155
|
+
pointOfSale: true,
|
|
156
|
+
entityClass: true,
|
|
157
|
+
events: true,
|
|
158
|
+
callbackUrl: true,
|
|
159
|
+
secretKey: true,
|
|
160
|
+
isActive: true,
|
|
161
|
+
description: true
|
|
162
|
+
}).required();
|
|
163
|
+
var createWebhookConfigurationResponseSchema = webhookConfigurationSchema;
|
|
164
|
+
var CreateWebhookConfiguration = class extends import_sdk_js_core.AbstractApiRequest {
|
|
165
|
+
constructor(input) {
|
|
166
|
+
super(input);
|
|
167
|
+
this.method = "POST";
|
|
168
|
+
this.contentType = "application/json";
|
|
169
|
+
this.accept = "application/json";
|
|
170
|
+
this.inputSchema = createWebhookConfigurationInputSchema;
|
|
171
|
+
this.outputSchema = createWebhookConfigurationResponseSchema;
|
|
172
|
+
this.querySchema = void 0;
|
|
173
|
+
this.headersSchema = void 0;
|
|
174
|
+
}
|
|
175
|
+
getPath() {
|
|
176
|
+
return "/webhooks/configurations";
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
// src/requests/webhook-configurations/DeleteWebhookConfiguration.ts
|
|
181
|
+
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
182
|
+
var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
|
|
183
|
+
var import_zod2 = require("zod");
|
|
184
|
+
var deleteWebhookConfigurationInputSchema = import_zod2.z.undefined();
|
|
185
|
+
var deleteWebhookConfigurationResponseSchema = import_sdk_js_global_types4.emptyResponseSchema;
|
|
186
|
+
var DeleteWebhookConfiguration = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
187
|
+
constructor(webhookConfigurationId) {
|
|
188
|
+
super(void 0);
|
|
189
|
+
this.method = "DELETE";
|
|
190
|
+
this.contentType = "application/json";
|
|
191
|
+
this.accept = "application/json";
|
|
192
|
+
this.inputSchema = deleteWebhookConfigurationInputSchema;
|
|
193
|
+
this.outputSchema = deleteWebhookConfigurationResponseSchema;
|
|
194
|
+
this.querySchema = void 0;
|
|
195
|
+
this.headersSchema = void 0;
|
|
196
|
+
this.webhookConfigurationId = webhookConfigurationId;
|
|
197
|
+
}
|
|
198
|
+
getPath() {
|
|
199
|
+
return `/webhooks/configurations/${this.webhookConfigurationId}`;
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
// src/requests/webhook-configurations/GetWebhookConfigurationDetails.ts
|
|
204
|
+
var import_sdk_js_core3 = require("@deliverart/sdk-js-core");
|
|
205
|
+
var import_zod3 = require("zod");
|
|
206
|
+
var getWebhookConfigurationDetailsInputSchema = import_zod3.z.undefined();
|
|
207
|
+
var getWebhookConfigurationDetailsResponseSchema = webhookConfigurationSchema;
|
|
208
|
+
var GetWebhookConfigurationDetails = class extends import_sdk_js_core3.AbstractApiRequest {
|
|
209
|
+
constructor(webhookConfigurationId) {
|
|
210
|
+
super(void 0);
|
|
211
|
+
this.method = "GET";
|
|
212
|
+
this.contentType = "application/json";
|
|
213
|
+
this.accept = "application/json";
|
|
214
|
+
this.inputSchema = getWebhookConfigurationDetailsInputSchema;
|
|
215
|
+
this.outputSchema = getWebhookConfigurationDetailsResponseSchema;
|
|
216
|
+
this.querySchema = void 0;
|
|
217
|
+
this.headersSchema = void 0;
|
|
218
|
+
this.webhookConfigurationId = webhookConfigurationId;
|
|
219
|
+
}
|
|
220
|
+
getPath() {
|
|
221
|
+
return `/webhooks/configurations/${this.webhookConfigurationId}`;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
// src/requests/webhook-configurations/GetWebhookConfigurations.ts
|
|
226
|
+
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
227
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
228
|
+
var import_zod4 = require("zod");
|
|
229
|
+
var getWebhookConfigurationsQuerySchema = webhookConfigurationsQuerySchema;
|
|
230
|
+
var getWebhookConfigurationsInputSchema = import_zod4.z.undefined();
|
|
231
|
+
var getWebhookConfigurationsResponseSchema = (0, import_sdk_js_global_types5.createPaginatedSchema)(
|
|
232
|
+
webhookConfigurationListItemSchema
|
|
233
|
+
);
|
|
234
|
+
var GetWebhookConfigurations = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
235
|
+
constructor(options) {
|
|
236
|
+
super(void 0, options);
|
|
237
|
+
this.method = "GET";
|
|
238
|
+
this.contentType = "application/json";
|
|
239
|
+
this.accept = "application/json";
|
|
240
|
+
this.inputSchema = getWebhookConfigurationsInputSchema;
|
|
241
|
+
this.outputSchema = getWebhookConfigurationsResponseSchema;
|
|
242
|
+
this.querySchema = getWebhookConfigurationsQuerySchema;
|
|
243
|
+
this.headersSchema = void 0;
|
|
244
|
+
this.listItemSchema = webhookConfigurationListItemSchema;
|
|
245
|
+
this.paginationDefaultEnabled = true;
|
|
246
|
+
}
|
|
247
|
+
getPath() {
|
|
248
|
+
return "/webhooks/configurations";
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
// src/requests/webhook-configurations/GetWebhookConfigurationsFromPointOfSale.ts
|
|
253
|
+
var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
254
|
+
var import_zod5 = require("zod");
|
|
255
|
+
var getWebhookConfigurationsFromPointOfSaleQuerySchema = webhookConfigurationsQuerySchema;
|
|
256
|
+
var getWebhookConfigurationsFromPointOfSaleInputSchema = import_zod5.z.undefined();
|
|
257
|
+
var getWebhookConfigurationsFromPointOfSaleResponseSchema = import_zod5.z.array(
|
|
258
|
+
webhookConfigurationListItemSchema
|
|
259
|
+
);
|
|
260
|
+
var GetWebhookConfigurationsFromPointOfSale = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
261
|
+
constructor(pointOfSaleId, options) {
|
|
262
|
+
super(void 0, options);
|
|
263
|
+
this.method = "GET";
|
|
264
|
+
this.contentType = "application/json";
|
|
265
|
+
this.accept = "application/json";
|
|
266
|
+
this.inputSchema = getWebhookConfigurationsFromPointOfSaleInputSchema;
|
|
267
|
+
this.outputSchema = getWebhookConfigurationsFromPointOfSaleResponseSchema;
|
|
268
|
+
this.querySchema = getWebhookConfigurationsFromPointOfSaleQuerySchema;
|
|
269
|
+
this.headersSchema = void 0;
|
|
270
|
+
this.listItemSchema = webhookConfigurationListItemSchema;
|
|
271
|
+
this.paginationDefaultEnabled = false;
|
|
272
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
273
|
+
}
|
|
274
|
+
getPath() {
|
|
275
|
+
return `/point_of_sales/${this.pointOfSaleId}/webhooks/configurations`;
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
// src/requests/webhook-configurations/UpdateWebhookConfiguration.ts
|
|
280
|
+
var import_sdk_js_core6 = require("@deliverart/sdk-js-core");
|
|
281
|
+
var updateWebhookConfigurationInputSchema = webhookConfigurationSchema.pick({
|
|
282
|
+
entityClass: true,
|
|
283
|
+
events: true,
|
|
284
|
+
callbackUrl: true,
|
|
285
|
+
secretKey: true,
|
|
286
|
+
isActive: true,
|
|
287
|
+
description: true
|
|
288
|
+
}).partial();
|
|
289
|
+
var updateWebhookConfigurationResponseSchema = webhookConfigurationSchema;
|
|
290
|
+
var UpdateWebhookConfiguration = class extends import_sdk_js_core6.AbstractApiRequest {
|
|
291
|
+
constructor(webhookConfigurationId, input) {
|
|
292
|
+
super(input);
|
|
293
|
+
this.method = "PATCH";
|
|
294
|
+
this.contentType = "application/merge-patch+json";
|
|
295
|
+
this.accept = "application/json";
|
|
296
|
+
this.inputSchema = updateWebhookConfigurationInputSchema;
|
|
297
|
+
this.outputSchema = updateWebhookConfigurationResponseSchema;
|
|
298
|
+
this.querySchema = void 0;
|
|
299
|
+
this.headersSchema = void 0;
|
|
300
|
+
this.webhookConfigurationId = webhookConfigurationId;
|
|
301
|
+
}
|
|
302
|
+
getPath() {
|
|
303
|
+
return `/webhooks/configurations/${this.webhookConfigurationId}`;
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
// src/requests/webhook-logs/GetWebhookLogDetails.ts
|
|
308
|
+
var import_sdk_js_core7 = require("@deliverart/sdk-js-core");
|
|
309
|
+
var import_zod6 = require("zod");
|
|
310
|
+
var getWebhookLogDetailsInputSchema = import_zod6.z.undefined();
|
|
311
|
+
var getWebhookLogDetailsResponseSchema = webhookLogSchema;
|
|
312
|
+
var GetWebhookLogDetails = class extends import_sdk_js_core7.AbstractApiRequest {
|
|
313
|
+
constructor(webhookLogId) {
|
|
314
|
+
super(void 0);
|
|
315
|
+
this.method = "GET";
|
|
316
|
+
this.contentType = "application/json";
|
|
317
|
+
this.accept = "application/json";
|
|
318
|
+
this.inputSchema = getWebhookLogDetailsInputSchema;
|
|
319
|
+
this.outputSchema = getWebhookLogDetailsResponseSchema;
|
|
320
|
+
this.querySchema = void 0;
|
|
321
|
+
this.headersSchema = void 0;
|
|
322
|
+
this.webhookLogId = webhookLogId;
|
|
323
|
+
}
|
|
324
|
+
getPath() {
|
|
325
|
+
return `/webhooks/logs/${this.webhookLogId}`;
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
// src/requests/webhook-logs/GetWebhookLogs.ts
|
|
330
|
+
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
331
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
332
|
+
var import_zod7 = require("zod");
|
|
333
|
+
var getWebhookLogsQuerySchema = webhookLogsQuerySchema;
|
|
334
|
+
var getWebhookLogsInputSchema = import_zod7.z.undefined();
|
|
335
|
+
var getWebhookLogsResponseSchema = (0, import_sdk_js_global_types6.createPaginatedSchema)(webhookLogListItemSchema);
|
|
336
|
+
var GetWebhookLogs = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
337
|
+
constructor(options) {
|
|
338
|
+
super(void 0, options);
|
|
339
|
+
this.method = "GET";
|
|
340
|
+
this.contentType = "application/json";
|
|
341
|
+
this.accept = "application/json";
|
|
342
|
+
this.inputSchema = getWebhookLogsInputSchema;
|
|
343
|
+
this.outputSchema = getWebhookLogsResponseSchema;
|
|
344
|
+
this.querySchema = getWebhookLogsQuerySchema;
|
|
345
|
+
this.headersSchema = void 0;
|
|
346
|
+
this.listItemSchema = webhookLogListItemSchema;
|
|
347
|
+
this.paginationDefaultEnabled = true;
|
|
348
|
+
}
|
|
349
|
+
getPath() {
|
|
350
|
+
return "/webhooks/logs";
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
// src/requests/webhook-logs/GetWebhookLogsFromWebhookConfiguration.ts
|
|
355
|
+
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
356
|
+
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
357
|
+
var import_zod8 = require("zod");
|
|
358
|
+
var getWebhookLogsFromWebhookConfigurationQuerySchema = webhookLogsQuerySchema;
|
|
359
|
+
var getWebhookLogsFromWebhookConfigurationInputSchema = import_zod8.z.undefined();
|
|
360
|
+
var getWebhookLogsFromWebhookConfigurationResponseSchema = (0, import_sdk_js_global_types7.createPaginatedSchema)(webhookLogListItemSchema);
|
|
361
|
+
var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
362
|
+
constructor(webhookConfigurationId, options) {
|
|
363
|
+
super(void 0, options);
|
|
364
|
+
this.method = "GET";
|
|
365
|
+
this.contentType = "application/json";
|
|
366
|
+
this.accept = "application/json";
|
|
367
|
+
this.inputSchema = getWebhookLogsFromWebhookConfigurationInputSchema;
|
|
368
|
+
this.outputSchema = getWebhookLogsFromWebhookConfigurationResponseSchema;
|
|
369
|
+
this.querySchema = getWebhookLogsFromWebhookConfigurationQuerySchema;
|
|
370
|
+
this.headersSchema = void 0;
|
|
371
|
+
this.listItemSchema = webhookLogListItemSchema;
|
|
372
|
+
this.paginationDefaultEnabled = true;
|
|
373
|
+
this.webhookConfigurationId = webhookConfigurationId;
|
|
374
|
+
}
|
|
375
|
+
getPath() {
|
|
376
|
+
return `/webhooks/configurations/${this.webhookConfigurationId}/logs`;
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
380
|
+
0 && (module.exports = {
|
|
381
|
+
CreateWebhookConfiguration,
|
|
382
|
+
DeleteWebhookConfiguration,
|
|
383
|
+
GetWebhookConfigurationDetails,
|
|
384
|
+
GetWebhookConfigurations,
|
|
385
|
+
GetWebhookConfigurationsFromPointOfSale,
|
|
386
|
+
GetWebhookLogDetails,
|
|
387
|
+
GetWebhookLogs,
|
|
388
|
+
GetWebhookLogsFromWebhookConfiguration,
|
|
389
|
+
UpdateWebhookConfiguration,
|
|
390
|
+
createWebhookConfigurationInputSchema,
|
|
391
|
+
createWebhookConfigurationResponseSchema,
|
|
392
|
+
deleteWebhookConfigurationInputSchema,
|
|
393
|
+
deleteWebhookConfigurationResponseSchema,
|
|
394
|
+
getWebhookConfigurationDetailsInputSchema,
|
|
395
|
+
getWebhookConfigurationDetailsResponseSchema,
|
|
396
|
+
getWebhookConfigurationsFromPointOfSaleInputSchema,
|
|
397
|
+
getWebhookConfigurationsFromPointOfSaleQuerySchema,
|
|
398
|
+
getWebhookConfigurationsFromPointOfSaleResponseSchema,
|
|
399
|
+
getWebhookConfigurationsInputSchema,
|
|
400
|
+
getWebhookConfigurationsQuerySchema,
|
|
401
|
+
getWebhookConfigurationsResponseSchema,
|
|
402
|
+
getWebhookLogDetailsInputSchema,
|
|
403
|
+
getWebhookLogDetailsResponseSchema,
|
|
404
|
+
getWebhookLogsFromWebhookConfigurationInputSchema,
|
|
405
|
+
getWebhookLogsFromWebhookConfigurationQuerySchema,
|
|
406
|
+
getWebhookLogsFromWebhookConfigurationResponseSchema,
|
|
407
|
+
getWebhookLogsInputSchema,
|
|
408
|
+
getWebhookLogsQuerySchema,
|
|
409
|
+
getWebhookLogsResponseSchema,
|
|
410
|
+
updateWebhookConfigurationInputSchema,
|
|
411
|
+
updateWebhookConfigurationResponseSchema,
|
|
412
|
+
webhookConfigurationIriSchema,
|
|
413
|
+
webhookConfigurationListItemSchema,
|
|
414
|
+
webhookConfigurationNullableIriSchema,
|
|
415
|
+
webhookConfigurationSchema,
|
|
416
|
+
webhookConfigurationsQuerySchema,
|
|
417
|
+
webhookEntities,
|
|
418
|
+
webhookEntitySchema,
|
|
419
|
+
webhookEventSchema,
|
|
420
|
+
webhookEvents,
|
|
421
|
+
webhookLogIriSchema,
|
|
422
|
+
webhookLogListItemSchema,
|
|
423
|
+
webhookLogNullableIriSchema,
|
|
424
|
+
webhookLogSchema,
|
|
425
|
+
webhookLogStatusSchema,
|
|
426
|
+
webhookLogStatuses,
|
|
427
|
+
webhookLogsQuerySchema
|
|
428
|
+
});
|