@deliverart/sdk-js-webhook 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +136 -136
- package/dist/index.d.ts +136 -136
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11217,7 +11217,7 @@ config(en_default());
|
|
|
11217
11217
|
|
|
11218
11218
|
// src/types.ts
|
|
11219
11219
|
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
11220
|
-
var webhookEvents = ["
|
|
11220
|
+
var webhookEvents = ["create", "update", "delete"];
|
|
11221
11221
|
var webhookEventSchema = external_exports.enum(webhookEvents);
|
|
11222
11222
|
var webhookLogStatuses = ["pending", "success", "failed", "timeout"];
|
|
11223
11223
|
var webhookLogStatusSchema = external_exports.enum(webhookLogStatuses);
|
package/dist/index.d.cts
CHANGED
|
@@ -8,9 +8,9 @@ declare const webhookConfigurationSchema: z.ZodObject<{
|
|
|
8
8
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
9
9
|
entityClass: z.ZodString;
|
|
10
10
|
events: z.ZodArray<z.ZodEnum<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
create: "create";
|
|
12
|
+
update: "update";
|
|
13
|
+
delete: "delete";
|
|
14
14
|
}>>;
|
|
15
15
|
callbackUrl: z.ZodURL;
|
|
16
16
|
secretKey: z.ZodString;
|
|
@@ -26,9 +26,9 @@ declare const webhookConfigurationListItemSchema: z.ZodObject<{
|
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
entityClass: z.ZodString;
|
|
28
28
|
events: z.ZodArray<z.ZodEnum<{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
create: "create";
|
|
30
|
+
update: "update";
|
|
31
|
+
delete: "delete";
|
|
32
32
|
}>>;
|
|
33
33
|
callbackUrl: z.ZodURL;
|
|
34
34
|
secretKey: z.ZodString;
|
|
@@ -39,13 +39,13 @@ type WebhookConfigurationListItem = z.infer<typeof webhookConfigurationListItemS
|
|
|
39
39
|
declare const webhookConfigurationsQuerySchema: z.ZodObject<{
|
|
40
40
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
41
41
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
create: "create";
|
|
43
|
+
update: "update";
|
|
44
|
+
delete: "delete";
|
|
45
45
|
}>, z.ZodArray<z.ZodEnum<{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
create: "create";
|
|
47
|
+
update: "update";
|
|
48
|
+
delete: "delete";
|
|
49
49
|
}>>]>>;
|
|
50
50
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
asc: "asc";
|
|
@@ -72,9 +72,9 @@ declare const webhookLogSchema: z.ZodObject<{
|
|
|
72
72
|
entityClass: z.ZodString;
|
|
73
73
|
externalEntityId: z.ZodUUID;
|
|
74
74
|
event: z.ZodEnum<{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
create: "create";
|
|
76
|
+
update: "update";
|
|
77
|
+
delete: "delete";
|
|
78
78
|
}>;
|
|
79
79
|
status: z.ZodEnum<{
|
|
80
80
|
pending: "pending";
|
|
@@ -98,9 +98,9 @@ declare const webhookLogListItemSchema: z.ZodObject<{
|
|
|
98
98
|
id: z.ZodString;
|
|
99
99
|
entityClass: z.ZodString;
|
|
100
100
|
event: z.ZodEnum<{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
create: "create";
|
|
102
|
+
update: "update";
|
|
103
|
+
delete: "delete";
|
|
104
104
|
}>;
|
|
105
105
|
status: z.ZodEnum<{
|
|
106
106
|
pending: "pending";
|
|
@@ -122,13 +122,13 @@ type WebhookLogListItem = z.infer<typeof webhookLogListItemSchema>;
|
|
|
122
122
|
declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
123
123
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
124
124
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
create: "create";
|
|
126
|
+
update: "update";
|
|
127
|
+
delete: "delete";
|
|
128
128
|
}>, z.ZodArray<z.ZodEnum<{
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
create: "create";
|
|
130
|
+
update: "update";
|
|
131
|
+
delete: "delete";
|
|
132
132
|
}>>]>>;
|
|
133
133
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
134
134
|
asc: "asc";
|
|
@@ -154,9 +154,9 @@ declare const createWebhookConfigurationInputSchema: z.ZodObject<{
|
|
|
154
154
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
155
155
|
entityClass: z.ZodNonOptional<z.ZodString>;
|
|
156
156
|
events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
create: "create";
|
|
158
|
+
update: "update";
|
|
159
|
+
delete: "delete";
|
|
160
160
|
}>>>;
|
|
161
161
|
callbackUrl: z.ZodNonOptional<z.ZodURL>;
|
|
162
162
|
secretKey: z.ZodNonOptional<z.ZodString>;
|
|
@@ -169,9 +169,9 @@ declare const createWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
|
169
169
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
170
170
|
entityClass: z.ZodString;
|
|
171
171
|
events: z.ZodArray<z.ZodEnum<{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
create: "create";
|
|
173
|
+
update: "update";
|
|
174
|
+
delete: "delete";
|
|
175
175
|
}>>;
|
|
176
176
|
callbackUrl: z.ZodURL;
|
|
177
177
|
secretKey: z.ZodString;
|
|
@@ -189,9 +189,9 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
|
|
|
189
189
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
190
190
|
entityClass: z.ZodNonOptional<z.ZodString>;
|
|
191
191
|
events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
create: "create";
|
|
193
|
+
update: "update";
|
|
194
|
+
delete: "delete";
|
|
195
195
|
}>>>;
|
|
196
196
|
callbackUrl: z.ZodNonOptional<z.ZodURL>;
|
|
197
197
|
secretKey: z.ZodNonOptional<z.ZodString>;
|
|
@@ -203,9 +203,9 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
|
|
|
203
203
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
204
204
|
entityClass: z.ZodString;
|
|
205
205
|
events: z.ZodArray<z.ZodEnum<{
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
create: "create";
|
|
207
|
+
update: "update";
|
|
208
|
+
delete: "delete";
|
|
209
209
|
}>>;
|
|
210
210
|
callbackUrl: z.ZodURL;
|
|
211
211
|
secretKey: z.ZodString;
|
|
@@ -242,9 +242,9 @@ declare const getWebhookConfigurationDetailsResponseSchema: z.ZodObject<{
|
|
|
242
242
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
243
243
|
entityClass: z.ZodString;
|
|
244
244
|
events: z.ZodArray<z.ZodEnum<{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
create: "create";
|
|
246
|
+
update: "update";
|
|
247
|
+
delete: "delete";
|
|
248
248
|
}>>;
|
|
249
249
|
callbackUrl: z.ZodURL;
|
|
250
250
|
secretKey: z.ZodString;
|
|
@@ -264,9 +264,9 @@ declare class GetWebhookConfigurationDetails extends AbstractApiRequest<typeof g
|
|
|
264
264
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
265
265
|
entityClass: z.ZodString;
|
|
266
266
|
events: z.ZodArray<z.ZodEnum<{
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
create: "create";
|
|
268
|
+
update: "update";
|
|
269
|
+
delete: "delete";
|
|
270
270
|
}>>;
|
|
271
271
|
callbackUrl: z.ZodURL;
|
|
272
272
|
secretKey: z.ZodString;
|
|
@@ -285,13 +285,13 @@ declare class GetWebhookConfigurationDetails extends AbstractApiRequest<typeof g
|
|
|
285
285
|
declare const getWebhookConfigurationsQuerySchema: z.ZodObject<{
|
|
286
286
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
287
287
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
create: "create";
|
|
289
|
+
update: "update";
|
|
290
|
+
delete: "delete";
|
|
291
291
|
}>, z.ZodArray<z.ZodEnum<{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
create: "create";
|
|
293
|
+
update: "update";
|
|
294
|
+
delete: "delete";
|
|
295
295
|
}>>]>>;
|
|
296
296
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
297
297
|
asc: "asc";
|
|
@@ -321,9 +321,9 @@ declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
|
321
321
|
id: z.ZodString;
|
|
322
322
|
entityClass: z.ZodString;
|
|
323
323
|
events: z.ZodArray<z.ZodEnum<{
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
324
|
+
create: "create";
|
|
325
|
+
update: "update";
|
|
326
|
+
delete: "delete";
|
|
327
327
|
}>>;
|
|
328
328
|
callbackUrl: z.ZodURL;
|
|
329
329
|
secretKey: z.ZodString;
|
|
@@ -352,9 +352,9 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
352
352
|
id: z.ZodString;
|
|
353
353
|
entityClass: z.ZodString;
|
|
354
354
|
events: z.ZodArray<z.ZodEnum<{
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
355
|
+
create: "create";
|
|
356
|
+
update: "update";
|
|
357
|
+
delete: "delete";
|
|
358
358
|
}>>;
|
|
359
359
|
callbackUrl: z.ZodURL;
|
|
360
360
|
secretKey: z.ZodString;
|
|
@@ -373,13 +373,13 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
373
373
|
readonly querySchema: z.ZodObject<{
|
|
374
374
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
375
375
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
create: "create";
|
|
377
|
+
update: "update";
|
|
378
|
+
delete: "delete";
|
|
379
379
|
}>, z.ZodArray<z.ZodEnum<{
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
380
|
+
create: "create";
|
|
381
|
+
update: "update";
|
|
382
|
+
delete: "delete";
|
|
383
383
|
}>>]>>;
|
|
384
384
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
385
385
|
asc: "asc";
|
|
@@ -410,13 +410,13 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
410
410
|
declare const getWebhookConfigurationsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
411
411
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
412
412
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
413
|
+
create: "create";
|
|
414
|
+
update: "update";
|
|
415
|
+
delete: "delete";
|
|
416
416
|
}>, z.ZodArray<z.ZodEnum<{
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
create: "create";
|
|
418
|
+
update: "update";
|
|
419
|
+
delete: "delete";
|
|
420
420
|
}>>]>>;
|
|
421
421
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
422
422
|
asc: "asc";
|
|
@@ -445,9 +445,9 @@ declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<
|
|
|
445
445
|
id: z.ZodString;
|
|
446
446
|
entityClass: z.ZodString;
|
|
447
447
|
events: z.ZodArray<z.ZodEnum<{
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
448
|
+
create: "create";
|
|
449
|
+
update: "update";
|
|
450
|
+
delete: "delete";
|
|
451
451
|
}>>;
|
|
452
452
|
callbackUrl: z.ZodURL;
|
|
453
453
|
secretKey: z.ZodString;
|
|
@@ -466,9 +466,9 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
466
466
|
id: z.ZodString;
|
|
467
467
|
entityClass: z.ZodString;
|
|
468
468
|
events: z.ZodArray<z.ZodEnum<{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
469
|
+
create: "create";
|
|
470
|
+
update: "update";
|
|
471
|
+
delete: "delete";
|
|
472
472
|
}>>;
|
|
473
473
|
callbackUrl: z.ZodURL;
|
|
474
474
|
secretKey: z.ZodString;
|
|
@@ -478,13 +478,13 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
478
478
|
readonly querySchema: z.ZodObject<{
|
|
479
479
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
480
480
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
481
|
+
create: "create";
|
|
482
|
+
update: "update";
|
|
483
|
+
delete: "delete";
|
|
484
484
|
}>, z.ZodArray<z.ZodEnum<{
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
485
|
+
create: "create";
|
|
486
|
+
update: "update";
|
|
487
|
+
delete: "delete";
|
|
488
488
|
}>>]>>;
|
|
489
489
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
490
490
|
asc: "asc";
|
|
@@ -516,9 +516,9 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
516
516
|
declare const updateWebhookConfigurationInputSchema: z.ZodObject<{
|
|
517
517
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
518
518
|
events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
create: "create";
|
|
520
|
+
update: "update";
|
|
521
|
+
delete: "delete";
|
|
522
522
|
}>>>;
|
|
523
523
|
callbackUrl: z.ZodOptional<z.ZodURL>;
|
|
524
524
|
secretKey: z.ZodOptional<z.ZodString>;
|
|
@@ -531,9 +531,9 @@ declare const updateWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
|
531
531
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
532
532
|
entityClass: z.ZodString;
|
|
533
533
|
events: z.ZodArray<z.ZodEnum<{
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
534
|
+
create: "create";
|
|
535
|
+
update: "update";
|
|
536
|
+
delete: "delete";
|
|
537
537
|
}>>;
|
|
538
538
|
callbackUrl: z.ZodURL;
|
|
539
539
|
secretKey: z.ZodString;
|
|
@@ -550,9 +550,9 @@ declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updat
|
|
|
550
550
|
readonly inputSchema: z.ZodObject<{
|
|
551
551
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
552
552
|
events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
553
|
+
create: "create";
|
|
554
|
+
update: "update";
|
|
555
|
+
delete: "delete";
|
|
556
556
|
}>>>;
|
|
557
557
|
callbackUrl: z.ZodOptional<z.ZodURL>;
|
|
558
558
|
secretKey: z.ZodOptional<z.ZodString>;
|
|
@@ -564,9 +564,9 @@ declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updat
|
|
|
564
564
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
565
565
|
entityClass: z.ZodString;
|
|
566
566
|
events: z.ZodArray<z.ZodEnum<{
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
567
|
+
create: "create";
|
|
568
|
+
update: "update";
|
|
569
|
+
delete: "delete";
|
|
570
570
|
}>>;
|
|
571
571
|
callbackUrl: z.ZodURL;
|
|
572
572
|
secretKey: z.ZodString;
|
|
@@ -590,9 +590,9 @@ declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
|
590
590
|
entityClass: z.ZodString;
|
|
591
591
|
externalEntityId: z.ZodUUID;
|
|
592
592
|
event: z.ZodEnum<{
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
593
|
+
create: "create";
|
|
594
|
+
update: "update";
|
|
595
|
+
delete: "delete";
|
|
596
596
|
}>;
|
|
597
597
|
status: z.ZodEnum<{
|
|
598
598
|
pending: "pending";
|
|
@@ -622,9 +622,9 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
622
622
|
entityClass: z.ZodString;
|
|
623
623
|
externalEntityId: z.ZodUUID;
|
|
624
624
|
event: z.ZodEnum<{
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
create: "create";
|
|
626
|
+
update: "update";
|
|
627
|
+
delete: "delete";
|
|
628
628
|
}>;
|
|
629
629
|
status: z.ZodEnum<{
|
|
630
630
|
pending: "pending";
|
|
@@ -652,13 +652,13 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
652
652
|
declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
653
653
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
654
654
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
655
|
+
create: "create";
|
|
656
|
+
update: "update";
|
|
657
|
+
delete: "delete";
|
|
658
658
|
}>, z.ZodArray<z.ZodEnum<{
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
659
|
+
create: "create";
|
|
660
|
+
update: "update";
|
|
661
|
+
delete: "delete";
|
|
662
662
|
}>>]>>;
|
|
663
663
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
664
664
|
asc: "asc";
|
|
@@ -687,9 +687,9 @@ declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
|
687
687
|
id: z.ZodString;
|
|
688
688
|
entityClass: z.ZodString;
|
|
689
689
|
event: z.ZodEnum<{
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
690
|
+
create: "create";
|
|
691
|
+
update: "update";
|
|
692
|
+
delete: "delete";
|
|
693
693
|
}>;
|
|
694
694
|
status: z.ZodEnum<{
|
|
695
695
|
pending: "pending";
|
|
@@ -728,9 +728,9 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
728
728
|
id: z.ZodString;
|
|
729
729
|
entityClass: z.ZodString;
|
|
730
730
|
event: z.ZodEnum<{
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
731
|
+
create: "create";
|
|
732
|
+
update: "update";
|
|
733
|
+
delete: "delete";
|
|
734
734
|
}>;
|
|
735
735
|
status: z.ZodEnum<{
|
|
736
736
|
pending: "pending";
|
|
@@ -760,13 +760,13 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
760
760
|
readonly querySchema: z.ZodObject<{
|
|
761
761
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
762
762
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
763
|
+
create: "create";
|
|
764
|
+
update: "update";
|
|
765
|
+
delete: "delete";
|
|
766
766
|
}>, z.ZodArray<z.ZodEnum<{
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
767
|
+
create: "create";
|
|
768
|
+
update: "update";
|
|
769
|
+
delete: "delete";
|
|
770
770
|
}>>]>>;
|
|
771
771
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
772
772
|
asc: "asc";
|
|
@@ -797,13 +797,13 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
797
797
|
declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
798
798
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
799
799
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
800
|
+
create: "create";
|
|
801
|
+
update: "update";
|
|
802
|
+
delete: "delete";
|
|
803
803
|
}>, z.ZodArray<z.ZodEnum<{
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
804
|
+
create: "create";
|
|
805
|
+
update: "update";
|
|
806
|
+
delete: "delete";
|
|
807
807
|
}>>]>>;
|
|
808
808
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
809
809
|
asc: "asc";
|
|
@@ -832,9 +832,9 @@ declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<
|
|
|
832
832
|
id: z.ZodString;
|
|
833
833
|
entityClass: z.ZodString;
|
|
834
834
|
event: z.ZodEnum<{
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
835
|
+
create: "create";
|
|
836
|
+
update: "update";
|
|
837
|
+
delete: "delete";
|
|
838
838
|
}>;
|
|
839
839
|
status: z.ZodEnum<{
|
|
840
840
|
pending: "pending";
|
|
@@ -873,9 +873,9 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
873
873
|
id: z.ZodString;
|
|
874
874
|
entityClass: z.ZodString;
|
|
875
875
|
event: z.ZodEnum<{
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
876
|
+
create: "create";
|
|
877
|
+
update: "update";
|
|
878
|
+
delete: "delete";
|
|
879
879
|
}>;
|
|
880
880
|
status: z.ZodEnum<{
|
|
881
881
|
pending: "pending";
|
|
@@ -905,13 +905,13 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
905
905
|
readonly querySchema: z.ZodObject<{
|
|
906
906
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
907
907
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
908
|
+
create: "create";
|
|
909
|
+
update: "update";
|
|
910
|
+
delete: "delete";
|
|
911
911
|
}>, z.ZodArray<z.ZodEnum<{
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
912
|
+
create: "create";
|
|
913
|
+
update: "update";
|
|
914
|
+
delete: "delete";
|
|
915
915
|
}>>]>>;
|
|
916
916
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
917
917
|
asc: "asc";
|
|
@@ -940,11 +940,11 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
940
940
|
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
941
941
|
}
|
|
942
942
|
|
|
943
|
-
declare const webhookEvents: readonly ["
|
|
943
|
+
declare const webhookEvents: readonly ["create", "update", "delete"];
|
|
944
944
|
declare const webhookEventSchema: z.ZodEnum<{
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
945
|
+
create: "create";
|
|
946
|
+
update: "update";
|
|
947
|
+
delete: "delete";
|
|
948
948
|
}>;
|
|
949
949
|
type WebhookEvent = z.infer<typeof webhookEventSchema>;
|
|
950
950
|
declare const webhookLogStatuses: readonly ["pending", "success", "failed", "timeout"];
|
package/dist/index.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ declare const webhookConfigurationSchema: z.ZodObject<{
|
|
|
8
8
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
9
9
|
entityClass: z.ZodString;
|
|
10
10
|
events: z.ZodArray<z.ZodEnum<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
create: "create";
|
|
12
|
+
update: "update";
|
|
13
|
+
delete: "delete";
|
|
14
14
|
}>>;
|
|
15
15
|
callbackUrl: z.ZodURL;
|
|
16
16
|
secretKey: z.ZodString;
|
|
@@ -26,9 +26,9 @@ declare const webhookConfigurationListItemSchema: z.ZodObject<{
|
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
entityClass: z.ZodString;
|
|
28
28
|
events: z.ZodArray<z.ZodEnum<{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
create: "create";
|
|
30
|
+
update: "update";
|
|
31
|
+
delete: "delete";
|
|
32
32
|
}>>;
|
|
33
33
|
callbackUrl: z.ZodURL;
|
|
34
34
|
secretKey: z.ZodString;
|
|
@@ -39,13 +39,13 @@ type WebhookConfigurationListItem = z.infer<typeof webhookConfigurationListItemS
|
|
|
39
39
|
declare const webhookConfigurationsQuerySchema: z.ZodObject<{
|
|
40
40
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
41
41
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
create: "create";
|
|
43
|
+
update: "update";
|
|
44
|
+
delete: "delete";
|
|
45
45
|
}>, z.ZodArray<z.ZodEnum<{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
create: "create";
|
|
47
|
+
update: "update";
|
|
48
|
+
delete: "delete";
|
|
49
49
|
}>>]>>;
|
|
50
50
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
asc: "asc";
|
|
@@ -72,9 +72,9 @@ declare const webhookLogSchema: z.ZodObject<{
|
|
|
72
72
|
entityClass: z.ZodString;
|
|
73
73
|
externalEntityId: z.ZodUUID;
|
|
74
74
|
event: z.ZodEnum<{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
create: "create";
|
|
76
|
+
update: "update";
|
|
77
|
+
delete: "delete";
|
|
78
78
|
}>;
|
|
79
79
|
status: z.ZodEnum<{
|
|
80
80
|
pending: "pending";
|
|
@@ -98,9 +98,9 @@ declare const webhookLogListItemSchema: z.ZodObject<{
|
|
|
98
98
|
id: z.ZodString;
|
|
99
99
|
entityClass: z.ZodString;
|
|
100
100
|
event: z.ZodEnum<{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
create: "create";
|
|
102
|
+
update: "update";
|
|
103
|
+
delete: "delete";
|
|
104
104
|
}>;
|
|
105
105
|
status: z.ZodEnum<{
|
|
106
106
|
pending: "pending";
|
|
@@ -122,13 +122,13 @@ type WebhookLogListItem = z.infer<typeof webhookLogListItemSchema>;
|
|
|
122
122
|
declare const webhookLogsQuerySchema: z.ZodObject<{
|
|
123
123
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
124
124
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
create: "create";
|
|
126
|
+
update: "update";
|
|
127
|
+
delete: "delete";
|
|
128
128
|
}>, z.ZodArray<z.ZodEnum<{
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
create: "create";
|
|
130
|
+
update: "update";
|
|
131
|
+
delete: "delete";
|
|
132
132
|
}>>]>>;
|
|
133
133
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
134
134
|
asc: "asc";
|
|
@@ -154,9 +154,9 @@ declare const createWebhookConfigurationInputSchema: z.ZodObject<{
|
|
|
154
154
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
155
155
|
entityClass: z.ZodNonOptional<z.ZodString>;
|
|
156
156
|
events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
create: "create";
|
|
158
|
+
update: "update";
|
|
159
|
+
delete: "delete";
|
|
160
160
|
}>>>;
|
|
161
161
|
callbackUrl: z.ZodNonOptional<z.ZodURL>;
|
|
162
162
|
secretKey: z.ZodNonOptional<z.ZodString>;
|
|
@@ -169,9 +169,9 @@ declare const createWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
|
169
169
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
170
170
|
entityClass: z.ZodString;
|
|
171
171
|
events: z.ZodArray<z.ZodEnum<{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
create: "create";
|
|
173
|
+
update: "update";
|
|
174
|
+
delete: "delete";
|
|
175
175
|
}>>;
|
|
176
176
|
callbackUrl: z.ZodURL;
|
|
177
177
|
secretKey: z.ZodString;
|
|
@@ -189,9 +189,9 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
|
|
|
189
189
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
190
190
|
entityClass: z.ZodNonOptional<z.ZodString>;
|
|
191
191
|
events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
create: "create";
|
|
193
|
+
update: "update";
|
|
194
|
+
delete: "delete";
|
|
195
195
|
}>>>;
|
|
196
196
|
callbackUrl: z.ZodNonOptional<z.ZodURL>;
|
|
197
197
|
secretKey: z.ZodNonOptional<z.ZodString>;
|
|
@@ -203,9 +203,9 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
|
|
|
203
203
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
204
204
|
entityClass: z.ZodString;
|
|
205
205
|
events: z.ZodArray<z.ZodEnum<{
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
create: "create";
|
|
207
|
+
update: "update";
|
|
208
|
+
delete: "delete";
|
|
209
209
|
}>>;
|
|
210
210
|
callbackUrl: z.ZodURL;
|
|
211
211
|
secretKey: z.ZodString;
|
|
@@ -242,9 +242,9 @@ declare const getWebhookConfigurationDetailsResponseSchema: z.ZodObject<{
|
|
|
242
242
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
243
243
|
entityClass: z.ZodString;
|
|
244
244
|
events: z.ZodArray<z.ZodEnum<{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
create: "create";
|
|
246
|
+
update: "update";
|
|
247
|
+
delete: "delete";
|
|
248
248
|
}>>;
|
|
249
249
|
callbackUrl: z.ZodURL;
|
|
250
250
|
secretKey: z.ZodString;
|
|
@@ -264,9 +264,9 @@ declare class GetWebhookConfigurationDetails extends AbstractApiRequest<typeof g
|
|
|
264
264
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
265
265
|
entityClass: z.ZodString;
|
|
266
266
|
events: z.ZodArray<z.ZodEnum<{
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
create: "create";
|
|
268
|
+
update: "update";
|
|
269
|
+
delete: "delete";
|
|
270
270
|
}>>;
|
|
271
271
|
callbackUrl: z.ZodURL;
|
|
272
272
|
secretKey: z.ZodString;
|
|
@@ -285,13 +285,13 @@ declare class GetWebhookConfigurationDetails extends AbstractApiRequest<typeof g
|
|
|
285
285
|
declare const getWebhookConfigurationsQuerySchema: z.ZodObject<{
|
|
286
286
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
287
287
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
create: "create";
|
|
289
|
+
update: "update";
|
|
290
|
+
delete: "delete";
|
|
291
291
|
}>, z.ZodArray<z.ZodEnum<{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
create: "create";
|
|
293
|
+
update: "update";
|
|
294
|
+
delete: "delete";
|
|
295
295
|
}>>]>>;
|
|
296
296
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
297
297
|
asc: "asc";
|
|
@@ -321,9 +321,9 @@ declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
|
|
|
321
321
|
id: z.ZodString;
|
|
322
322
|
entityClass: z.ZodString;
|
|
323
323
|
events: z.ZodArray<z.ZodEnum<{
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
324
|
+
create: "create";
|
|
325
|
+
update: "update";
|
|
326
|
+
delete: "delete";
|
|
327
327
|
}>>;
|
|
328
328
|
callbackUrl: z.ZodURL;
|
|
329
329
|
secretKey: z.ZodString;
|
|
@@ -352,9 +352,9 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
352
352
|
id: z.ZodString;
|
|
353
353
|
entityClass: z.ZodString;
|
|
354
354
|
events: z.ZodArray<z.ZodEnum<{
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
355
|
+
create: "create";
|
|
356
|
+
update: "update";
|
|
357
|
+
delete: "delete";
|
|
358
358
|
}>>;
|
|
359
359
|
callbackUrl: z.ZodURL;
|
|
360
360
|
secretKey: z.ZodString;
|
|
@@ -373,13 +373,13 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
373
373
|
readonly querySchema: z.ZodObject<{
|
|
374
374
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
375
375
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
create: "create";
|
|
377
|
+
update: "update";
|
|
378
|
+
delete: "delete";
|
|
379
379
|
}>, z.ZodArray<z.ZodEnum<{
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
380
|
+
create: "create";
|
|
381
|
+
update: "update";
|
|
382
|
+
delete: "delete";
|
|
383
383
|
}>>]>>;
|
|
384
384
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
385
385
|
asc: "asc";
|
|
@@ -410,13 +410,13 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
|
|
|
410
410
|
declare const getWebhookConfigurationsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
411
411
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
412
412
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
413
|
+
create: "create";
|
|
414
|
+
update: "update";
|
|
415
|
+
delete: "delete";
|
|
416
416
|
}>, z.ZodArray<z.ZodEnum<{
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
create: "create";
|
|
418
|
+
update: "update";
|
|
419
|
+
delete: "delete";
|
|
420
420
|
}>>]>>;
|
|
421
421
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
422
422
|
asc: "asc";
|
|
@@ -445,9 +445,9 @@ declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<
|
|
|
445
445
|
id: z.ZodString;
|
|
446
446
|
entityClass: z.ZodString;
|
|
447
447
|
events: z.ZodArray<z.ZodEnum<{
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
448
|
+
create: "create";
|
|
449
|
+
update: "update";
|
|
450
|
+
delete: "delete";
|
|
451
451
|
}>>;
|
|
452
452
|
callbackUrl: z.ZodURL;
|
|
453
453
|
secretKey: z.ZodString;
|
|
@@ -466,9 +466,9 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
466
466
|
id: z.ZodString;
|
|
467
467
|
entityClass: z.ZodString;
|
|
468
468
|
events: z.ZodArray<z.ZodEnum<{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
469
|
+
create: "create";
|
|
470
|
+
update: "update";
|
|
471
|
+
delete: "delete";
|
|
472
472
|
}>>;
|
|
473
473
|
callbackUrl: z.ZodURL;
|
|
474
474
|
secretKey: z.ZodString;
|
|
@@ -478,13 +478,13 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
478
478
|
readonly querySchema: z.ZodObject<{
|
|
479
479
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
480
480
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
481
|
+
create: "create";
|
|
482
|
+
update: "update";
|
|
483
|
+
delete: "delete";
|
|
484
484
|
}>, z.ZodArray<z.ZodEnum<{
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
485
|
+
create: "create";
|
|
486
|
+
update: "update";
|
|
487
|
+
delete: "delete";
|
|
488
488
|
}>>]>>;
|
|
489
489
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
490
490
|
asc: "asc";
|
|
@@ -516,9 +516,9 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
|
|
|
516
516
|
declare const updateWebhookConfigurationInputSchema: z.ZodObject<{
|
|
517
517
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
518
518
|
events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
create: "create";
|
|
520
|
+
update: "update";
|
|
521
|
+
delete: "delete";
|
|
522
522
|
}>>>;
|
|
523
523
|
callbackUrl: z.ZodOptional<z.ZodURL>;
|
|
524
524
|
secretKey: z.ZodOptional<z.ZodString>;
|
|
@@ -531,9 +531,9 @@ declare const updateWebhookConfigurationResponseSchema: z.ZodObject<{
|
|
|
531
531
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
532
532
|
entityClass: z.ZodString;
|
|
533
533
|
events: z.ZodArray<z.ZodEnum<{
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
534
|
+
create: "create";
|
|
535
|
+
update: "update";
|
|
536
|
+
delete: "delete";
|
|
537
537
|
}>>;
|
|
538
538
|
callbackUrl: z.ZodURL;
|
|
539
539
|
secretKey: z.ZodString;
|
|
@@ -550,9 +550,9 @@ declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updat
|
|
|
550
550
|
readonly inputSchema: z.ZodObject<{
|
|
551
551
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
552
552
|
events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
553
|
+
create: "create";
|
|
554
|
+
update: "update";
|
|
555
|
+
delete: "delete";
|
|
556
556
|
}>>>;
|
|
557
557
|
callbackUrl: z.ZodOptional<z.ZodURL>;
|
|
558
558
|
secretKey: z.ZodOptional<z.ZodString>;
|
|
@@ -564,9 +564,9 @@ declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updat
|
|
|
564
564
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
565
565
|
entityClass: z.ZodString;
|
|
566
566
|
events: z.ZodArray<z.ZodEnum<{
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
567
|
+
create: "create";
|
|
568
|
+
update: "update";
|
|
569
|
+
delete: "delete";
|
|
570
570
|
}>>;
|
|
571
571
|
callbackUrl: z.ZodURL;
|
|
572
572
|
secretKey: z.ZodString;
|
|
@@ -590,9 +590,9 @@ declare const getWebhookLogDetailsResponseSchema: z.ZodObject<{
|
|
|
590
590
|
entityClass: z.ZodString;
|
|
591
591
|
externalEntityId: z.ZodUUID;
|
|
592
592
|
event: z.ZodEnum<{
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
593
|
+
create: "create";
|
|
594
|
+
update: "update";
|
|
595
|
+
delete: "delete";
|
|
596
596
|
}>;
|
|
597
597
|
status: z.ZodEnum<{
|
|
598
598
|
pending: "pending";
|
|
@@ -622,9 +622,9 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
622
622
|
entityClass: z.ZodString;
|
|
623
623
|
externalEntityId: z.ZodUUID;
|
|
624
624
|
event: z.ZodEnum<{
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
create: "create";
|
|
626
|
+
update: "update";
|
|
627
|
+
delete: "delete";
|
|
628
628
|
}>;
|
|
629
629
|
status: z.ZodEnum<{
|
|
630
630
|
pending: "pending";
|
|
@@ -652,13 +652,13 @@ declare class GetWebhookLogDetails extends AbstractApiRequest<typeof getWebhookL
|
|
|
652
652
|
declare const getWebhookLogsQuerySchema: z.ZodObject<{
|
|
653
653
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
654
654
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
655
|
+
create: "create";
|
|
656
|
+
update: "update";
|
|
657
|
+
delete: "delete";
|
|
658
658
|
}>, z.ZodArray<z.ZodEnum<{
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
659
|
+
create: "create";
|
|
660
|
+
update: "update";
|
|
661
|
+
delete: "delete";
|
|
662
662
|
}>>]>>;
|
|
663
663
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
664
664
|
asc: "asc";
|
|
@@ -687,9 +687,9 @@ declare const getWebhookLogsResponseSchema: z.ZodObject<{
|
|
|
687
687
|
id: z.ZodString;
|
|
688
688
|
entityClass: z.ZodString;
|
|
689
689
|
event: z.ZodEnum<{
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
690
|
+
create: "create";
|
|
691
|
+
update: "update";
|
|
692
|
+
delete: "delete";
|
|
693
693
|
}>;
|
|
694
694
|
status: z.ZodEnum<{
|
|
695
695
|
pending: "pending";
|
|
@@ -728,9 +728,9 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
728
728
|
id: z.ZodString;
|
|
729
729
|
entityClass: z.ZodString;
|
|
730
730
|
event: z.ZodEnum<{
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
731
|
+
create: "create";
|
|
732
|
+
update: "update";
|
|
733
|
+
delete: "delete";
|
|
734
734
|
}>;
|
|
735
735
|
status: z.ZodEnum<{
|
|
736
736
|
pending: "pending";
|
|
@@ -760,13 +760,13 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
760
760
|
readonly querySchema: z.ZodObject<{
|
|
761
761
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
762
762
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
763
|
+
create: "create";
|
|
764
|
+
update: "update";
|
|
765
|
+
delete: "delete";
|
|
766
766
|
}>, z.ZodArray<z.ZodEnum<{
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
767
|
+
create: "create";
|
|
768
|
+
update: "update";
|
|
769
|
+
delete: "delete";
|
|
770
770
|
}>>]>>;
|
|
771
771
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
772
772
|
asc: "asc";
|
|
@@ -797,13 +797,13 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
|
|
|
797
797
|
declare const getWebhookLogsFromWebhookConfigurationQuerySchema: z.ZodObject<{
|
|
798
798
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
799
799
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
800
|
+
create: "create";
|
|
801
|
+
update: "update";
|
|
802
|
+
delete: "delete";
|
|
803
803
|
}>, z.ZodArray<z.ZodEnum<{
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
804
|
+
create: "create";
|
|
805
|
+
update: "update";
|
|
806
|
+
delete: "delete";
|
|
807
807
|
}>>]>>;
|
|
808
808
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
809
809
|
asc: "asc";
|
|
@@ -832,9 +832,9 @@ declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<
|
|
|
832
832
|
id: z.ZodString;
|
|
833
833
|
entityClass: z.ZodString;
|
|
834
834
|
event: z.ZodEnum<{
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
835
|
+
create: "create";
|
|
836
|
+
update: "update";
|
|
837
|
+
delete: "delete";
|
|
838
838
|
}>;
|
|
839
839
|
status: z.ZodEnum<{
|
|
840
840
|
pending: "pending";
|
|
@@ -873,9 +873,9 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
873
873
|
id: z.ZodString;
|
|
874
874
|
entityClass: z.ZodString;
|
|
875
875
|
event: z.ZodEnum<{
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
876
|
+
create: "create";
|
|
877
|
+
update: "update";
|
|
878
|
+
delete: "delete";
|
|
879
879
|
}>;
|
|
880
880
|
status: z.ZodEnum<{
|
|
881
881
|
pending: "pending";
|
|
@@ -905,13 +905,13 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
905
905
|
readonly querySchema: z.ZodObject<{
|
|
906
906
|
entityClass: z.ZodOptional<z.ZodString>;
|
|
907
907
|
events: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
908
|
+
create: "create";
|
|
909
|
+
update: "update";
|
|
910
|
+
delete: "delete";
|
|
911
911
|
}>, z.ZodArray<z.ZodEnum<{
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
912
|
+
create: "create";
|
|
913
|
+
update: "update";
|
|
914
|
+
delete: "delete";
|
|
915
915
|
}>>]>>;
|
|
916
916
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
917
917
|
asc: "asc";
|
|
@@ -940,11 +940,11 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
|
|
|
940
940
|
parseResponse(data: unknown, rawResponse: Response): Paginated<WebhookLogListItem>;
|
|
941
941
|
}
|
|
942
942
|
|
|
943
|
-
declare const webhookEvents: readonly ["
|
|
943
|
+
declare const webhookEvents: readonly ["create", "update", "delete"];
|
|
944
944
|
declare const webhookEventSchema: z.ZodEnum<{
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
945
|
+
create: "create";
|
|
946
|
+
update: "update";
|
|
947
|
+
delete: "delete";
|
|
948
948
|
}>;
|
|
949
949
|
type WebhookEvent = z.infer<typeof webhookEventSchema>;
|
|
950
950
|
declare const webhookLogStatuses: readonly ["pending", "success", "failed", "timeout"];
|
package/dist/index.js
CHANGED
|
@@ -11157,7 +11157,7 @@ config(en_default());
|
|
|
11157
11157
|
|
|
11158
11158
|
// src/types.ts
|
|
11159
11159
|
import { iriNullableSchema, iriSchema } from "@deliverart/sdk-js-global-types";
|
|
11160
|
-
var webhookEvents = ["
|
|
11160
|
+
var webhookEvents = ["create", "update", "delete"];
|
|
11161
11161
|
var webhookEventSchema = external_exports.enum(webhookEvents);
|
|
11162
11162
|
var webhookLogStatuses = ["pending", "success", "failed", "timeout"];
|
|
11163
11163
|
var webhookLogStatusSchema = external_exports.enum(webhookLogStatuses);
|