@deliverart/sdk-js-webhook 2.2.3 → 2.2.4

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 CHANGED
@@ -56,6 +56,8 @@ __export(index_exports, {
56
56
  webhookConfigurationNullableIriSchema: () => webhookConfigurationNullableIriSchema,
57
57
  webhookConfigurationSchema: () => webhookConfigurationSchema,
58
58
  webhookConfigurationsQuerySchema: () => webhookConfigurationsQuerySchema,
59
+ webhookEntities: () => webhookEntities,
60
+ webhookEntitySchema: () => webhookEntitySchema,
59
61
  webhookEventSchema: () => webhookEventSchema,
60
62
  webhookEvents: () => webhookEvents,
61
63
  webhookLogIriSchema: () => webhookLogIriSchema,
@@ -11221,6 +11223,19 @@ var webhookEvents = ["create", "update", "delete"];
11221
11223
  var webhookEventSchema = external_exports.enum(webhookEvents);
11222
11224
  var webhookLogStatuses = ["pending", "success", "failed", "timeout"];
11223
11225
  var webhookLogStatusSchema = external_exports.enum(webhookLogStatuses);
11226
+ var webhookEntities = [
11227
+ "App\\Entity\\Bundle",
11228
+ "App\\Entity\\Customer",
11229
+ "App\\Entity\\CustomerAddress",
11230
+ "App\\Entity\\CustomerBusinessProfile",
11231
+ "App\\Entity\\Delivery",
11232
+ "App\\Entity\\DeliveryPosition",
11233
+ "App\\Entity\\Integration",
11234
+ "App\\Entity\\IntegrationActivationRequest",
11235
+ "App\\Entity\\Order",
11236
+ "App\\Entity\\PointOfSale"
11237
+ ];
11238
+ var webhookEntitySchema = external_exports.enum(webhookEntities);
11224
11239
  var webhookConfigurationIriSchema = (0, import_sdk_js_global_types.iriSchema)("/webhooks/configurations/:id");
11225
11240
  var webhookConfigurationNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
11226
11241
  "/webhooks/configurations/:id"
@@ -11232,7 +11247,7 @@ var webhookLogNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSche
11232
11247
  var webhookConfigurationSchema = external_exports.object({
11233
11248
  id: external_exports.string(),
11234
11249
  pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
11235
- entityClass: external_exports.string().min(1, "entityClass.required"),
11250
+ entityClass: webhookEntitySchema,
11236
11251
  events: external_exports.array(webhookEventSchema).min(1, "events.required"),
11237
11252
  callbackUrl: external_exports.url("callbackUrl.invalid").min(1, "callbackUrl.required"),
11238
11253
  secretKey: external_exports.string().min(1, "secretKey.required"),
@@ -11561,6 +11576,8 @@ var GetWebhookLogsFromWebhookConfiguration = class extends import_sdk_js_core9.A
11561
11576
  webhookConfigurationNullableIriSchema,
11562
11577
  webhookConfigurationSchema,
11563
11578
  webhookConfigurationsQuerySchema,
11579
+ webhookEntities,
11580
+ webhookEntitySchema,
11564
11581
  webhookEventSchema,
11565
11582
  webhookEvents,
11566
11583
  webhookLogIriSchema,
package/dist/index.d.cts CHANGED
@@ -6,7 +6,18 @@ import { AbstractApiRequest } from '@deliverart/sdk-js-core';
6
6
  declare const webhookConfigurationSchema: z.ZodObject<{
7
7
  id: z.ZodString;
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
- entityClass: z.ZodString;
9
+ entityClass: z.ZodEnum<{
10
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
11
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
12
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
13
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
14
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
15
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
16
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
17
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
18
+ "App\\Entity\\Order": "App\\Entity\\Order";
19
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
20
+ }>;
10
21
  events: z.ZodArray<z.ZodEnum<{
11
22
  create: "create";
12
23
  update: "update";
@@ -21,10 +32,21 @@ declare const webhookConfigurationSchema: z.ZodObject<{
21
32
  }, z.core.$strip>;
22
33
  type WebhookConfiguration = z.infer<typeof webhookConfigurationSchema>;
23
34
  declare const webhookConfigurationListItemSchema: z.ZodObject<{
35
+ entityClass: z.ZodEnum<{
36
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
37
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
38
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
39
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
40
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
41
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
42
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
43
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
44
+ "App\\Entity\\Order": "App\\Entity\\Order";
45
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
46
+ }>;
24
47
  createdAt: z.ZodString;
25
48
  updatedAt: z.ZodString;
26
49
  id: z.ZodString;
27
- entityClass: z.ZodString;
28
50
  events: z.ZodArray<z.ZodEnum<{
29
51
  create: "create";
30
52
  update: "update";
@@ -94,9 +116,9 @@ declare const webhookLogSchema: z.ZodObject<{
94
116
  }, z.core.$strip>;
95
117
  type WebhookLog = z.infer<typeof webhookLogSchema>;
96
118
  declare const webhookLogListItemSchema: z.ZodObject<{
119
+ entityClass: z.ZodString;
97
120
  createdAt: z.ZodString;
98
121
  id: z.ZodString;
99
- entityClass: z.ZodString;
100
122
  event: z.ZodEnum<{
101
123
  create: "create";
102
124
  update: "update";
@@ -152,7 +174,18 @@ type WebhookLogsQueryParams = z.infer<typeof webhookLogsQuerySchema>;
152
174
 
153
175
  declare const createWebhookConfigurationInputSchema: z.ZodObject<{
154
176
  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
- entityClass: z.ZodNonOptional<z.ZodString>;
177
+ entityClass: z.ZodNonOptional<z.ZodEnum<{
178
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
179
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
180
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
181
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
182
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
183
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
184
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
185
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
186
+ "App\\Entity\\Order": "App\\Entity\\Order";
187
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
188
+ }>>;
156
189
  events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
157
190
  create: "create";
158
191
  update: "update";
@@ -167,7 +200,18 @@ type CreateWebhookConfigurationInput = z.input<typeof createWebhookConfiguration
167
200
  declare const createWebhookConfigurationResponseSchema: z.ZodObject<{
168
201
  id: z.ZodString;
169
202
  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
- entityClass: z.ZodString;
203
+ entityClass: z.ZodEnum<{
204
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
205
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
206
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
207
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
208
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
209
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
210
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
211
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
212
+ "App\\Entity\\Order": "App\\Entity\\Order";
213
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
214
+ }>;
171
215
  events: z.ZodArray<z.ZodEnum<{
172
216
  create: "create";
173
217
  update: "update";
@@ -187,7 +231,18 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
187
231
  readonly accept = "application/json";
188
232
  readonly inputSchema: z.ZodObject<{
189
233
  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
- entityClass: z.ZodNonOptional<z.ZodString>;
234
+ entityClass: z.ZodNonOptional<z.ZodEnum<{
235
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
236
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
237
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
238
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
239
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
240
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
241
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
242
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
243
+ "App\\Entity\\Order": "App\\Entity\\Order";
244
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
245
+ }>>;
191
246
  events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
192
247
  create: "create";
193
248
  update: "update";
@@ -201,7 +256,18 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
201
256
  readonly outputSchema: z.ZodObject<{
202
257
  id: z.ZodString;
203
258
  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
- entityClass: z.ZodString;
259
+ entityClass: z.ZodEnum<{
260
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
261
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
262
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
263
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
264
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
265
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
266
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
267
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
268
+ "App\\Entity\\Order": "App\\Entity\\Order";
269
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
270
+ }>;
205
271
  events: z.ZodArray<z.ZodEnum<{
206
272
  create: "create";
207
273
  update: "update";
@@ -240,7 +306,18 @@ type GetWebhookConfigurationDetailsInput = z.input<typeof getWebhookConfiguratio
240
306
  declare const getWebhookConfigurationDetailsResponseSchema: z.ZodObject<{
241
307
  id: z.ZodString;
242
308
  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
- entityClass: z.ZodString;
309
+ entityClass: z.ZodEnum<{
310
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
311
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
312
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
313
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
314
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
315
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
316
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
317
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
318
+ "App\\Entity\\Order": "App\\Entity\\Order";
319
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
320
+ }>;
244
321
  events: z.ZodArray<z.ZodEnum<{
245
322
  create: "create";
246
323
  update: "update";
@@ -262,7 +339,18 @@ declare class GetWebhookConfigurationDetails extends AbstractApiRequest<typeof g
262
339
  readonly outputSchema: z.ZodObject<{
263
340
  id: z.ZodString;
264
341
  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
- entityClass: z.ZodString;
342
+ entityClass: z.ZodEnum<{
343
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
344
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
345
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
346
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
347
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
348
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
349
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
350
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
351
+ "App\\Entity\\Order": "App\\Entity\\Order";
352
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
353
+ }>;
266
354
  events: z.ZodArray<z.ZodEnum<{
267
355
  create: "create";
268
356
  update: "update";
@@ -316,10 +404,21 @@ declare const getWebhookConfigurationsInputSchema: z.ZodUndefined;
316
404
  type GetWebhookConfigurationsInput = z.infer<typeof getWebhookConfigurationsInputSchema>;
317
405
  declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
318
406
  data: z.ZodArray<z.ZodObject<{
407
+ entityClass: z.ZodEnum<{
408
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
409
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
410
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
411
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
412
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
413
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
414
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
415
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
416
+ "App\\Entity\\Order": "App\\Entity\\Order";
417
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
418
+ }>;
319
419
  createdAt: z.ZodString;
320
420
  updatedAt: z.ZodString;
321
421
  id: z.ZodString;
322
- entityClass: z.ZodString;
323
422
  events: z.ZodArray<z.ZodEnum<{
324
423
  create: "create";
325
424
  update: "update";
@@ -347,10 +446,21 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
347
446
  readonly inputSchema: z.ZodUndefined;
348
447
  readonly outputSchema: z.ZodObject<{
349
448
  data: z.ZodArray<z.ZodObject<{
449
+ entityClass: z.ZodEnum<{
450
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
451
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
452
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
453
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
454
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
455
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
456
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
457
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
458
+ "App\\Entity\\Order": "App\\Entity\\Order";
459
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
460
+ }>;
350
461
  createdAt: z.ZodString;
351
462
  updatedAt: z.ZodString;
352
463
  id: z.ZodString;
353
- entityClass: z.ZodString;
354
464
  events: z.ZodArray<z.ZodEnum<{
355
465
  create: "create";
356
466
  update: "update";
@@ -440,10 +550,21 @@ type GetWebhookConfigurationsFromPointOfSaleQueryParams = z.infer<typeof getWebh
440
550
  declare const getWebhookConfigurationsFromPointOfSaleInputSchema: z.ZodUndefined;
441
551
  type GetWebhookConfigurationsFromPointOfSaleInput = z.input<typeof getWebhookConfigurationsFromPointOfSaleInputSchema>;
442
552
  declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
553
+ entityClass: z.ZodEnum<{
554
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
555
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
556
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
557
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
558
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
559
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
560
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
561
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
562
+ "App\\Entity\\Order": "App\\Entity\\Order";
563
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
564
+ }>;
443
565
  createdAt: z.ZodString;
444
566
  updatedAt: z.ZodString;
445
567
  id: z.ZodString;
446
- entityClass: z.ZodString;
447
568
  events: z.ZodArray<z.ZodEnum<{
448
569
  create: "create";
449
570
  update: "update";
@@ -461,10 +582,21 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
461
582
  readonly accept = "application/json";
462
583
  readonly inputSchema: z.ZodUndefined;
463
584
  readonly outputSchema: z.ZodArray<z.ZodObject<{
585
+ entityClass: z.ZodEnum<{
586
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
587
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
588
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
589
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
590
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
591
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
592
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
593
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
594
+ "App\\Entity\\Order": "App\\Entity\\Order";
595
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
596
+ }>;
464
597
  createdAt: z.ZodString;
465
598
  updatedAt: z.ZodString;
466
599
  id: z.ZodString;
467
- entityClass: z.ZodString;
468
600
  events: z.ZodArray<z.ZodEnum<{
469
601
  create: "create";
470
602
  update: "update";
@@ -514,7 +646,18 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
514
646
  }
515
647
 
516
648
  declare const updateWebhookConfigurationInputSchema: z.ZodObject<{
517
- entityClass: z.ZodOptional<z.ZodString>;
649
+ entityClass: z.ZodOptional<z.ZodEnum<{
650
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
651
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
652
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
653
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
654
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
655
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
656
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
657
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
658
+ "App\\Entity\\Order": "App\\Entity\\Order";
659
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
660
+ }>>;
518
661
  events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
519
662
  create: "create";
520
663
  update: "update";
@@ -529,7 +672,18 @@ type UpdateWebhookConfigurationInput = z.input<typeof updateWebhookConfiguration
529
672
  declare const updateWebhookConfigurationResponseSchema: z.ZodObject<{
530
673
  id: z.ZodString;
531
674
  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
- entityClass: z.ZodString;
675
+ entityClass: z.ZodEnum<{
676
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
677
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
678
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
679
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
680
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
681
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
682
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
683
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
684
+ "App\\Entity\\Order": "App\\Entity\\Order";
685
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
686
+ }>;
533
687
  events: z.ZodArray<z.ZodEnum<{
534
688
  create: "create";
535
689
  update: "update";
@@ -548,7 +702,18 @@ declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updat
548
702
  readonly contentType = "application/merge-patch+json";
549
703
  readonly accept = "application/json";
550
704
  readonly inputSchema: z.ZodObject<{
551
- entityClass: z.ZodOptional<z.ZodString>;
705
+ entityClass: z.ZodOptional<z.ZodEnum<{
706
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
707
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
708
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
709
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
710
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
711
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
712
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
713
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
714
+ "App\\Entity\\Order": "App\\Entity\\Order";
715
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
716
+ }>>;
552
717
  events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
553
718
  create: "create";
554
719
  update: "update";
@@ -562,7 +727,18 @@ declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updat
562
727
  readonly outputSchema: z.ZodObject<{
563
728
  id: z.ZodString;
564
729
  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
- entityClass: z.ZodString;
730
+ entityClass: z.ZodEnum<{
731
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
732
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
733
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
734
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
735
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
736
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
737
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
738
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
739
+ "App\\Entity\\Order": "App\\Entity\\Order";
740
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
741
+ }>;
566
742
  events: z.ZodArray<z.ZodEnum<{
567
743
  create: "create";
568
744
  update: "update";
@@ -683,9 +859,9 @@ declare const getWebhookLogsInputSchema: z.ZodUndefined;
683
859
  type GetWebhookLogsInput = z.infer<typeof getWebhookLogsInputSchema>;
684
860
  declare const getWebhookLogsResponseSchema: z.ZodObject<{
685
861
  data: z.ZodArray<z.ZodObject<{
862
+ entityClass: z.ZodString;
686
863
  createdAt: z.ZodString;
687
864
  id: z.ZodString;
688
- entityClass: z.ZodString;
689
865
  event: z.ZodEnum<{
690
866
  create: "create";
691
867
  update: "update";
@@ -724,9 +900,9 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
724
900
  readonly inputSchema: z.ZodUndefined;
725
901
  readonly outputSchema: z.ZodObject<{
726
902
  data: z.ZodArray<z.ZodObject<{
903
+ entityClass: z.ZodString;
727
904
  createdAt: z.ZodString;
728
905
  id: z.ZodString;
729
- entityClass: z.ZodString;
730
906
  event: z.ZodEnum<{
731
907
  create: "create";
732
908
  update: "update";
@@ -828,9 +1004,9 @@ declare const getWebhookLogsFromWebhookConfigurationInputSchema: z.ZodUndefined;
828
1004
  type GetWebhookLogsFromWebhookConfigurationInput = z.input<typeof getWebhookLogsFromWebhookConfigurationInputSchema>;
829
1005
  declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<{
830
1006
  data: z.ZodArray<z.ZodObject<{
1007
+ entityClass: z.ZodString;
831
1008
  createdAt: z.ZodString;
832
1009
  id: z.ZodString;
833
- entityClass: z.ZodString;
834
1010
  event: z.ZodEnum<{
835
1011
  create: "create";
836
1012
  update: "update";
@@ -869,9 +1045,9 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
869
1045
  readonly inputSchema: z.ZodUndefined;
870
1046
  readonly outputSchema: z.ZodObject<{
871
1047
  data: z.ZodArray<z.ZodObject<{
1048
+ entityClass: z.ZodString;
872
1049
  createdAt: z.ZodString;
873
1050
  id: z.ZodString;
874
- entityClass: z.ZodString;
875
1051
  event: z.ZodEnum<{
876
1052
  create: "create";
877
1053
  update: "update";
@@ -955,6 +1131,20 @@ declare const webhookLogStatusSchema: z.ZodEnum<{
955
1131
  timeout: "timeout";
956
1132
  }>;
957
1133
  type WebhookLogStatus = z.infer<typeof webhookLogStatusSchema>;
1134
+ declare const webhookEntities: readonly ["App\\Entity\\Bundle", "App\\Entity\\Customer", "App\\Entity\\CustomerAddress", "App\\Entity\\CustomerBusinessProfile", "App\\Entity\\Delivery", "App\\Entity\\DeliveryPosition", "App\\Entity\\Integration", "App\\Entity\\IntegrationActivationRequest", "App\\Entity\\Order", "App\\Entity\\PointOfSale"];
1135
+ declare const webhookEntitySchema: z.ZodEnum<{
1136
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
1137
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
1138
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
1139
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
1140
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
1141
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
1142
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
1143
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
1144
+ "App\\Entity\\Order": "App\\Entity\\Order";
1145
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
1146
+ }>;
1147
+ type WebhookEntity = z.infer<typeof webhookEntitySchema>;
958
1148
  declare const webhookConfigurationIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
959
1149
  type WebhookConfigurationIri = z.infer<typeof webhookConfigurationIriSchema>;
960
1150
  declare const webhookConfigurationNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id"> | null, unknown>>;
@@ -964,4 +1154,4 @@ type WebhookLogIri = z.infer<typeof webhookLogIriSchema>;
964
1154
  declare const webhookLogNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/logs/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/logs/:id"> | null, unknown>>;
965
1155
  type WebhookLogNullableIri = z.infer<typeof webhookLogNullableIriSchema>;
966
1156
 
967
- export { CreateWebhookConfiguration, type CreateWebhookConfigurationInput, type CreateWebhookConfigurationResponse, DeleteWebhookConfiguration, GetWebhookConfigurationDetails, type GetWebhookConfigurationDetailsInput, type GetWebhookConfigurationDetailsResponse, GetWebhookConfigurations, GetWebhookConfigurationsFromPointOfSale, type GetWebhookConfigurationsFromPointOfSaleInput, type GetWebhookConfigurationsFromPointOfSaleQueryParams, type GetWebhookConfigurationsFromPointOfSaleResponse, type GetWebhookConfigurationsInput, type GetWebhookConfigurationsQueryParams, type GetWebhookConfigurationsResponse, GetWebhookLogDetails, type GetWebhookLogDetailsInput, type GetWebhookLogDetailsResponse, GetWebhookLogs, GetWebhookLogsFromWebhookConfiguration, type GetWebhookLogsFromWebhookConfigurationInput, type GetWebhookLogsFromWebhookConfigurationQueryParams, type GetWebhookLogsFromWebhookConfigurationResponse, type GetWebhookLogsInput, type GetWebhookLogsQueryParams, type GetWebhookLogsResponse, UpdateWebhookConfiguration, type UpdateWebhookConfigurationInput, type UpdateWebhookConfigurationResponse, type WebhookConfiguration, type WebhookConfigurationIri, type WebhookConfigurationListItem, type WebhookConfigurationNullableIri, type WebhookConfigurationsQueryParams, type WebhookEvent, type WebhookLog, type WebhookLogIri, type WebhookLogListItem, type WebhookLogNullableIri, type WebhookLogStatus, type WebhookLogsQueryParams, createWebhookConfigurationInputSchema, createWebhookConfigurationResponseSchema, deleteWebhookConfigurationInputSchema, deleteWebhookConfigurationResponseSchema, getWebhookConfigurationDetailsInputSchema, getWebhookConfigurationDetailsResponseSchema, getWebhookConfigurationsFromPointOfSaleInputSchema, getWebhookConfigurationsFromPointOfSaleQuerySchema, getWebhookConfigurationsFromPointOfSaleResponseSchema, getWebhookConfigurationsInputSchema, getWebhookConfigurationsQuerySchema, getWebhookConfigurationsResponseSchema, getWebhookLogDetailsInputSchema, getWebhookLogDetailsResponseSchema, getWebhookLogsFromWebhookConfigurationInputSchema, getWebhookLogsFromWebhookConfigurationQuerySchema, getWebhookLogsFromWebhookConfigurationResponseSchema, getWebhookLogsInputSchema, getWebhookLogsQuerySchema, getWebhookLogsResponseSchema, updateWebhookConfigurationInputSchema, updateWebhookConfigurationResponseSchema, webhookConfigurationIriSchema, webhookConfigurationListItemSchema, webhookConfigurationNullableIriSchema, webhookConfigurationSchema, webhookConfigurationsQuerySchema, webhookEventSchema, webhookEvents, webhookLogIriSchema, webhookLogListItemSchema, webhookLogNullableIriSchema, webhookLogSchema, webhookLogStatusSchema, webhookLogStatuses, webhookLogsQuerySchema };
1157
+ export { CreateWebhookConfiguration, type CreateWebhookConfigurationInput, type CreateWebhookConfigurationResponse, DeleteWebhookConfiguration, GetWebhookConfigurationDetails, type GetWebhookConfigurationDetailsInput, type GetWebhookConfigurationDetailsResponse, GetWebhookConfigurations, GetWebhookConfigurationsFromPointOfSale, type GetWebhookConfigurationsFromPointOfSaleInput, type GetWebhookConfigurationsFromPointOfSaleQueryParams, type GetWebhookConfigurationsFromPointOfSaleResponse, type GetWebhookConfigurationsInput, type GetWebhookConfigurationsQueryParams, type GetWebhookConfigurationsResponse, GetWebhookLogDetails, type GetWebhookLogDetailsInput, type GetWebhookLogDetailsResponse, GetWebhookLogs, GetWebhookLogsFromWebhookConfiguration, type GetWebhookLogsFromWebhookConfigurationInput, type GetWebhookLogsFromWebhookConfigurationQueryParams, type GetWebhookLogsFromWebhookConfigurationResponse, type GetWebhookLogsInput, type GetWebhookLogsQueryParams, type GetWebhookLogsResponse, UpdateWebhookConfiguration, type UpdateWebhookConfigurationInput, type UpdateWebhookConfigurationResponse, type WebhookConfiguration, type WebhookConfigurationIri, type WebhookConfigurationListItem, type WebhookConfigurationNullableIri, type WebhookConfigurationsQueryParams, type WebhookEntity, type WebhookEvent, type WebhookLog, type WebhookLogIri, type WebhookLogListItem, type WebhookLogNullableIri, type WebhookLogStatus, type WebhookLogsQueryParams, createWebhookConfigurationInputSchema, createWebhookConfigurationResponseSchema, deleteWebhookConfigurationInputSchema, deleteWebhookConfigurationResponseSchema, getWebhookConfigurationDetailsInputSchema, getWebhookConfigurationDetailsResponseSchema, getWebhookConfigurationsFromPointOfSaleInputSchema, getWebhookConfigurationsFromPointOfSaleQuerySchema, getWebhookConfigurationsFromPointOfSaleResponseSchema, getWebhookConfigurationsInputSchema, getWebhookConfigurationsQuerySchema, getWebhookConfigurationsResponseSchema, getWebhookLogDetailsInputSchema, getWebhookLogDetailsResponseSchema, getWebhookLogsFromWebhookConfigurationInputSchema, getWebhookLogsFromWebhookConfigurationQuerySchema, getWebhookLogsFromWebhookConfigurationResponseSchema, getWebhookLogsInputSchema, getWebhookLogsQuerySchema, getWebhookLogsResponseSchema, updateWebhookConfigurationInputSchema, updateWebhookConfigurationResponseSchema, webhookConfigurationIriSchema, webhookConfigurationListItemSchema, webhookConfigurationNullableIriSchema, webhookConfigurationSchema, webhookConfigurationsQuerySchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogIriSchema, webhookLogListItemSchema, webhookLogNullableIriSchema, webhookLogSchema, webhookLogStatusSchema, webhookLogStatuses, webhookLogsQuerySchema };
package/dist/index.d.ts CHANGED
@@ -6,7 +6,18 @@ import { AbstractApiRequest } from '@deliverart/sdk-js-core';
6
6
  declare const webhookConfigurationSchema: z.ZodObject<{
7
7
  id: z.ZodString;
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
- entityClass: z.ZodString;
9
+ entityClass: z.ZodEnum<{
10
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
11
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
12
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
13
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
14
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
15
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
16
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
17
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
18
+ "App\\Entity\\Order": "App\\Entity\\Order";
19
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
20
+ }>;
10
21
  events: z.ZodArray<z.ZodEnum<{
11
22
  create: "create";
12
23
  update: "update";
@@ -21,10 +32,21 @@ declare const webhookConfigurationSchema: z.ZodObject<{
21
32
  }, z.core.$strip>;
22
33
  type WebhookConfiguration = z.infer<typeof webhookConfigurationSchema>;
23
34
  declare const webhookConfigurationListItemSchema: z.ZodObject<{
35
+ entityClass: z.ZodEnum<{
36
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
37
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
38
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
39
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
40
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
41
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
42
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
43
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
44
+ "App\\Entity\\Order": "App\\Entity\\Order";
45
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
46
+ }>;
24
47
  createdAt: z.ZodString;
25
48
  updatedAt: z.ZodString;
26
49
  id: z.ZodString;
27
- entityClass: z.ZodString;
28
50
  events: z.ZodArray<z.ZodEnum<{
29
51
  create: "create";
30
52
  update: "update";
@@ -94,9 +116,9 @@ declare const webhookLogSchema: z.ZodObject<{
94
116
  }, z.core.$strip>;
95
117
  type WebhookLog = z.infer<typeof webhookLogSchema>;
96
118
  declare const webhookLogListItemSchema: z.ZodObject<{
119
+ entityClass: z.ZodString;
97
120
  createdAt: z.ZodString;
98
121
  id: z.ZodString;
99
- entityClass: z.ZodString;
100
122
  event: z.ZodEnum<{
101
123
  create: "create";
102
124
  update: "update";
@@ -152,7 +174,18 @@ type WebhookLogsQueryParams = z.infer<typeof webhookLogsQuerySchema>;
152
174
 
153
175
  declare const createWebhookConfigurationInputSchema: z.ZodObject<{
154
176
  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
- entityClass: z.ZodNonOptional<z.ZodString>;
177
+ entityClass: z.ZodNonOptional<z.ZodEnum<{
178
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
179
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
180
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
181
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
182
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
183
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
184
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
185
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
186
+ "App\\Entity\\Order": "App\\Entity\\Order";
187
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
188
+ }>>;
156
189
  events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
157
190
  create: "create";
158
191
  update: "update";
@@ -167,7 +200,18 @@ type CreateWebhookConfigurationInput = z.input<typeof createWebhookConfiguration
167
200
  declare const createWebhookConfigurationResponseSchema: z.ZodObject<{
168
201
  id: z.ZodString;
169
202
  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
- entityClass: z.ZodString;
203
+ entityClass: z.ZodEnum<{
204
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
205
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
206
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
207
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
208
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
209
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
210
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
211
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
212
+ "App\\Entity\\Order": "App\\Entity\\Order";
213
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
214
+ }>;
171
215
  events: z.ZodArray<z.ZodEnum<{
172
216
  create: "create";
173
217
  update: "update";
@@ -187,7 +231,18 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
187
231
  readonly accept = "application/json";
188
232
  readonly inputSchema: z.ZodObject<{
189
233
  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
- entityClass: z.ZodNonOptional<z.ZodString>;
234
+ entityClass: z.ZodNonOptional<z.ZodEnum<{
235
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
236
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
237
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
238
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
239
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
240
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
241
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
242
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
243
+ "App\\Entity\\Order": "App\\Entity\\Order";
244
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
245
+ }>>;
191
246
  events: z.ZodNonOptional<z.ZodArray<z.ZodEnum<{
192
247
  create: "create";
193
248
  update: "update";
@@ -201,7 +256,18 @@ declare class CreateWebhookConfiguration extends AbstractApiRequest<typeof creat
201
256
  readonly outputSchema: z.ZodObject<{
202
257
  id: z.ZodString;
203
258
  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
- entityClass: z.ZodString;
259
+ entityClass: z.ZodEnum<{
260
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
261
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
262
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
263
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
264
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
265
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
266
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
267
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
268
+ "App\\Entity\\Order": "App\\Entity\\Order";
269
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
270
+ }>;
205
271
  events: z.ZodArray<z.ZodEnum<{
206
272
  create: "create";
207
273
  update: "update";
@@ -240,7 +306,18 @@ type GetWebhookConfigurationDetailsInput = z.input<typeof getWebhookConfiguratio
240
306
  declare const getWebhookConfigurationDetailsResponseSchema: z.ZodObject<{
241
307
  id: z.ZodString;
242
308
  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
- entityClass: z.ZodString;
309
+ entityClass: z.ZodEnum<{
310
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
311
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
312
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
313
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
314
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
315
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
316
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
317
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
318
+ "App\\Entity\\Order": "App\\Entity\\Order";
319
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
320
+ }>;
244
321
  events: z.ZodArray<z.ZodEnum<{
245
322
  create: "create";
246
323
  update: "update";
@@ -262,7 +339,18 @@ declare class GetWebhookConfigurationDetails extends AbstractApiRequest<typeof g
262
339
  readonly outputSchema: z.ZodObject<{
263
340
  id: z.ZodString;
264
341
  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
- entityClass: z.ZodString;
342
+ entityClass: z.ZodEnum<{
343
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
344
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
345
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
346
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
347
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
348
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
349
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
350
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
351
+ "App\\Entity\\Order": "App\\Entity\\Order";
352
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
353
+ }>;
266
354
  events: z.ZodArray<z.ZodEnum<{
267
355
  create: "create";
268
356
  update: "update";
@@ -316,10 +404,21 @@ declare const getWebhookConfigurationsInputSchema: z.ZodUndefined;
316
404
  type GetWebhookConfigurationsInput = z.infer<typeof getWebhookConfigurationsInputSchema>;
317
405
  declare const getWebhookConfigurationsResponseSchema: z.ZodObject<{
318
406
  data: z.ZodArray<z.ZodObject<{
407
+ entityClass: z.ZodEnum<{
408
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
409
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
410
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
411
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
412
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
413
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
414
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
415
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
416
+ "App\\Entity\\Order": "App\\Entity\\Order";
417
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
418
+ }>;
319
419
  createdAt: z.ZodString;
320
420
  updatedAt: z.ZodString;
321
421
  id: z.ZodString;
322
- entityClass: z.ZodString;
323
422
  events: z.ZodArray<z.ZodEnum<{
324
423
  create: "create";
325
424
  update: "update";
@@ -347,10 +446,21 @@ declare class GetWebhookConfigurations extends AbstractApiRequest<typeof getWebh
347
446
  readonly inputSchema: z.ZodUndefined;
348
447
  readonly outputSchema: z.ZodObject<{
349
448
  data: z.ZodArray<z.ZodObject<{
449
+ entityClass: z.ZodEnum<{
450
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
451
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
452
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
453
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
454
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
455
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
456
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
457
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
458
+ "App\\Entity\\Order": "App\\Entity\\Order";
459
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
460
+ }>;
350
461
  createdAt: z.ZodString;
351
462
  updatedAt: z.ZodString;
352
463
  id: z.ZodString;
353
- entityClass: z.ZodString;
354
464
  events: z.ZodArray<z.ZodEnum<{
355
465
  create: "create";
356
466
  update: "update";
@@ -440,10 +550,21 @@ type GetWebhookConfigurationsFromPointOfSaleQueryParams = z.infer<typeof getWebh
440
550
  declare const getWebhookConfigurationsFromPointOfSaleInputSchema: z.ZodUndefined;
441
551
  type GetWebhookConfigurationsFromPointOfSaleInput = z.input<typeof getWebhookConfigurationsFromPointOfSaleInputSchema>;
442
552
  declare const getWebhookConfigurationsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
553
+ entityClass: z.ZodEnum<{
554
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
555
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
556
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
557
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
558
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
559
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
560
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
561
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
562
+ "App\\Entity\\Order": "App\\Entity\\Order";
563
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
564
+ }>;
443
565
  createdAt: z.ZodString;
444
566
  updatedAt: z.ZodString;
445
567
  id: z.ZodString;
446
- entityClass: z.ZodString;
447
568
  events: z.ZodArray<z.ZodEnum<{
448
569
  create: "create";
449
570
  update: "update";
@@ -461,10 +582,21 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
461
582
  readonly accept = "application/json";
462
583
  readonly inputSchema: z.ZodUndefined;
463
584
  readonly outputSchema: z.ZodArray<z.ZodObject<{
585
+ entityClass: z.ZodEnum<{
586
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
587
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
588
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
589
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
590
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
591
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
592
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
593
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
594
+ "App\\Entity\\Order": "App\\Entity\\Order";
595
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
596
+ }>;
464
597
  createdAt: z.ZodString;
465
598
  updatedAt: z.ZodString;
466
599
  id: z.ZodString;
467
- entityClass: z.ZodString;
468
600
  events: z.ZodArray<z.ZodEnum<{
469
601
  create: "create";
470
602
  update: "update";
@@ -514,7 +646,18 @@ declare class GetWebhookConfigurationsFromPointOfSale extends AbstractApiRequest
514
646
  }
515
647
 
516
648
  declare const updateWebhookConfigurationInputSchema: z.ZodObject<{
517
- entityClass: z.ZodOptional<z.ZodString>;
649
+ entityClass: z.ZodOptional<z.ZodEnum<{
650
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
651
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
652
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
653
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
654
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
655
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
656
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
657
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
658
+ "App\\Entity\\Order": "App\\Entity\\Order";
659
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
660
+ }>>;
518
661
  events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
519
662
  create: "create";
520
663
  update: "update";
@@ -529,7 +672,18 @@ type UpdateWebhookConfigurationInput = z.input<typeof updateWebhookConfiguration
529
672
  declare const updateWebhookConfigurationResponseSchema: z.ZodObject<{
530
673
  id: z.ZodString;
531
674
  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
- entityClass: z.ZodString;
675
+ entityClass: z.ZodEnum<{
676
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
677
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
678
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
679
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
680
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
681
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
682
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
683
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
684
+ "App\\Entity\\Order": "App\\Entity\\Order";
685
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
686
+ }>;
533
687
  events: z.ZodArray<z.ZodEnum<{
534
688
  create: "create";
535
689
  update: "update";
@@ -548,7 +702,18 @@ declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updat
548
702
  readonly contentType = "application/merge-patch+json";
549
703
  readonly accept = "application/json";
550
704
  readonly inputSchema: z.ZodObject<{
551
- entityClass: z.ZodOptional<z.ZodString>;
705
+ entityClass: z.ZodOptional<z.ZodEnum<{
706
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
707
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
708
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
709
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
710
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
711
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
712
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
713
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
714
+ "App\\Entity\\Order": "App\\Entity\\Order";
715
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
716
+ }>>;
552
717
  events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
553
718
  create: "create";
554
719
  update: "update";
@@ -562,7 +727,18 @@ declare class UpdateWebhookConfiguration extends AbstractApiRequest<typeof updat
562
727
  readonly outputSchema: z.ZodObject<{
563
728
  id: z.ZodString;
564
729
  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
- entityClass: z.ZodString;
730
+ entityClass: z.ZodEnum<{
731
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
732
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
733
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
734
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
735
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
736
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
737
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
738
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
739
+ "App\\Entity\\Order": "App\\Entity\\Order";
740
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
741
+ }>;
566
742
  events: z.ZodArray<z.ZodEnum<{
567
743
  create: "create";
568
744
  update: "update";
@@ -683,9 +859,9 @@ declare const getWebhookLogsInputSchema: z.ZodUndefined;
683
859
  type GetWebhookLogsInput = z.infer<typeof getWebhookLogsInputSchema>;
684
860
  declare const getWebhookLogsResponseSchema: z.ZodObject<{
685
861
  data: z.ZodArray<z.ZodObject<{
862
+ entityClass: z.ZodString;
686
863
  createdAt: z.ZodString;
687
864
  id: z.ZodString;
688
- entityClass: z.ZodString;
689
865
  event: z.ZodEnum<{
690
866
  create: "create";
691
867
  update: "update";
@@ -724,9 +900,9 @@ declare class GetWebhookLogs extends AbstractApiRequest<typeof getWebhookLogsInp
724
900
  readonly inputSchema: z.ZodUndefined;
725
901
  readonly outputSchema: z.ZodObject<{
726
902
  data: z.ZodArray<z.ZodObject<{
903
+ entityClass: z.ZodString;
727
904
  createdAt: z.ZodString;
728
905
  id: z.ZodString;
729
- entityClass: z.ZodString;
730
906
  event: z.ZodEnum<{
731
907
  create: "create";
732
908
  update: "update";
@@ -828,9 +1004,9 @@ declare const getWebhookLogsFromWebhookConfigurationInputSchema: z.ZodUndefined;
828
1004
  type GetWebhookLogsFromWebhookConfigurationInput = z.input<typeof getWebhookLogsFromWebhookConfigurationInputSchema>;
829
1005
  declare const getWebhookLogsFromWebhookConfigurationResponseSchema: z.ZodObject<{
830
1006
  data: z.ZodArray<z.ZodObject<{
1007
+ entityClass: z.ZodString;
831
1008
  createdAt: z.ZodString;
832
1009
  id: z.ZodString;
833
- entityClass: z.ZodString;
834
1010
  event: z.ZodEnum<{
835
1011
  create: "create";
836
1012
  update: "update";
@@ -869,9 +1045,9 @@ declare class GetWebhookLogsFromWebhookConfiguration extends AbstractApiRequest<
869
1045
  readonly inputSchema: z.ZodUndefined;
870
1046
  readonly outputSchema: z.ZodObject<{
871
1047
  data: z.ZodArray<z.ZodObject<{
1048
+ entityClass: z.ZodString;
872
1049
  createdAt: z.ZodString;
873
1050
  id: z.ZodString;
874
- entityClass: z.ZodString;
875
1051
  event: z.ZodEnum<{
876
1052
  create: "create";
877
1053
  update: "update";
@@ -955,6 +1131,20 @@ declare const webhookLogStatusSchema: z.ZodEnum<{
955
1131
  timeout: "timeout";
956
1132
  }>;
957
1133
  type WebhookLogStatus = z.infer<typeof webhookLogStatusSchema>;
1134
+ declare const webhookEntities: readonly ["App\\Entity\\Bundle", "App\\Entity\\Customer", "App\\Entity\\CustomerAddress", "App\\Entity\\CustomerBusinessProfile", "App\\Entity\\Delivery", "App\\Entity\\DeliveryPosition", "App\\Entity\\Integration", "App\\Entity\\IntegrationActivationRequest", "App\\Entity\\Order", "App\\Entity\\PointOfSale"];
1135
+ declare const webhookEntitySchema: z.ZodEnum<{
1136
+ "App\\Entity\\Bundle": "App\\Entity\\Bundle";
1137
+ "App\\Entity\\Customer": "App\\Entity\\Customer";
1138
+ "App\\Entity\\CustomerAddress": "App\\Entity\\CustomerAddress";
1139
+ "App\\Entity\\CustomerBusinessProfile": "App\\Entity\\CustomerBusinessProfile";
1140
+ "App\\Entity\\Delivery": "App\\Entity\\Delivery";
1141
+ "App\\Entity\\DeliveryPosition": "App\\Entity\\DeliveryPosition";
1142
+ "App\\Entity\\Integration": "App\\Entity\\Integration";
1143
+ "App\\Entity\\IntegrationActivationRequest": "App\\Entity\\IntegrationActivationRequest";
1144
+ "App\\Entity\\Order": "App\\Entity\\Order";
1145
+ "App\\Entity\\PointOfSale": "App\\Entity\\PointOfSale";
1146
+ }>;
1147
+ type WebhookEntity = z.infer<typeof webhookEntitySchema>;
958
1148
  declare const webhookConfigurationIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id">, unknown>>;
959
1149
  type WebhookConfigurationIri = z.infer<typeof webhookConfigurationIriSchema>;
960
1150
  declare const webhookConfigurationNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/configurations/:id"> | null, unknown>>;
@@ -964,4 +1154,4 @@ type WebhookLogIri = z.infer<typeof webhookLogIriSchema>;
964
1154
  declare const webhookLogNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/webhooks/logs/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/webhooks/logs/:id"> | null, unknown>>;
965
1155
  type WebhookLogNullableIri = z.infer<typeof webhookLogNullableIriSchema>;
966
1156
 
967
- export { CreateWebhookConfiguration, type CreateWebhookConfigurationInput, type CreateWebhookConfigurationResponse, DeleteWebhookConfiguration, GetWebhookConfigurationDetails, type GetWebhookConfigurationDetailsInput, type GetWebhookConfigurationDetailsResponse, GetWebhookConfigurations, GetWebhookConfigurationsFromPointOfSale, type GetWebhookConfigurationsFromPointOfSaleInput, type GetWebhookConfigurationsFromPointOfSaleQueryParams, type GetWebhookConfigurationsFromPointOfSaleResponse, type GetWebhookConfigurationsInput, type GetWebhookConfigurationsQueryParams, type GetWebhookConfigurationsResponse, GetWebhookLogDetails, type GetWebhookLogDetailsInput, type GetWebhookLogDetailsResponse, GetWebhookLogs, GetWebhookLogsFromWebhookConfiguration, type GetWebhookLogsFromWebhookConfigurationInput, type GetWebhookLogsFromWebhookConfigurationQueryParams, type GetWebhookLogsFromWebhookConfigurationResponse, type GetWebhookLogsInput, type GetWebhookLogsQueryParams, type GetWebhookLogsResponse, UpdateWebhookConfiguration, type UpdateWebhookConfigurationInput, type UpdateWebhookConfigurationResponse, type WebhookConfiguration, type WebhookConfigurationIri, type WebhookConfigurationListItem, type WebhookConfigurationNullableIri, type WebhookConfigurationsQueryParams, type WebhookEvent, type WebhookLog, type WebhookLogIri, type WebhookLogListItem, type WebhookLogNullableIri, type WebhookLogStatus, type WebhookLogsQueryParams, createWebhookConfigurationInputSchema, createWebhookConfigurationResponseSchema, deleteWebhookConfigurationInputSchema, deleteWebhookConfigurationResponseSchema, getWebhookConfigurationDetailsInputSchema, getWebhookConfigurationDetailsResponseSchema, getWebhookConfigurationsFromPointOfSaleInputSchema, getWebhookConfigurationsFromPointOfSaleQuerySchema, getWebhookConfigurationsFromPointOfSaleResponseSchema, getWebhookConfigurationsInputSchema, getWebhookConfigurationsQuerySchema, getWebhookConfigurationsResponseSchema, getWebhookLogDetailsInputSchema, getWebhookLogDetailsResponseSchema, getWebhookLogsFromWebhookConfigurationInputSchema, getWebhookLogsFromWebhookConfigurationQuerySchema, getWebhookLogsFromWebhookConfigurationResponseSchema, getWebhookLogsInputSchema, getWebhookLogsQuerySchema, getWebhookLogsResponseSchema, updateWebhookConfigurationInputSchema, updateWebhookConfigurationResponseSchema, webhookConfigurationIriSchema, webhookConfigurationListItemSchema, webhookConfigurationNullableIriSchema, webhookConfigurationSchema, webhookConfigurationsQuerySchema, webhookEventSchema, webhookEvents, webhookLogIriSchema, webhookLogListItemSchema, webhookLogNullableIriSchema, webhookLogSchema, webhookLogStatusSchema, webhookLogStatuses, webhookLogsQuerySchema };
1157
+ export { CreateWebhookConfiguration, type CreateWebhookConfigurationInput, type CreateWebhookConfigurationResponse, DeleteWebhookConfiguration, GetWebhookConfigurationDetails, type GetWebhookConfigurationDetailsInput, type GetWebhookConfigurationDetailsResponse, GetWebhookConfigurations, GetWebhookConfigurationsFromPointOfSale, type GetWebhookConfigurationsFromPointOfSaleInput, type GetWebhookConfigurationsFromPointOfSaleQueryParams, type GetWebhookConfigurationsFromPointOfSaleResponse, type GetWebhookConfigurationsInput, type GetWebhookConfigurationsQueryParams, type GetWebhookConfigurationsResponse, GetWebhookLogDetails, type GetWebhookLogDetailsInput, type GetWebhookLogDetailsResponse, GetWebhookLogs, GetWebhookLogsFromWebhookConfiguration, type GetWebhookLogsFromWebhookConfigurationInput, type GetWebhookLogsFromWebhookConfigurationQueryParams, type GetWebhookLogsFromWebhookConfigurationResponse, type GetWebhookLogsInput, type GetWebhookLogsQueryParams, type GetWebhookLogsResponse, UpdateWebhookConfiguration, type UpdateWebhookConfigurationInput, type UpdateWebhookConfigurationResponse, type WebhookConfiguration, type WebhookConfigurationIri, type WebhookConfigurationListItem, type WebhookConfigurationNullableIri, type WebhookConfigurationsQueryParams, type WebhookEntity, type WebhookEvent, type WebhookLog, type WebhookLogIri, type WebhookLogListItem, type WebhookLogNullableIri, type WebhookLogStatus, type WebhookLogsQueryParams, createWebhookConfigurationInputSchema, createWebhookConfigurationResponseSchema, deleteWebhookConfigurationInputSchema, deleteWebhookConfigurationResponseSchema, getWebhookConfigurationDetailsInputSchema, getWebhookConfigurationDetailsResponseSchema, getWebhookConfigurationsFromPointOfSaleInputSchema, getWebhookConfigurationsFromPointOfSaleQuerySchema, getWebhookConfigurationsFromPointOfSaleResponseSchema, getWebhookConfigurationsInputSchema, getWebhookConfigurationsQuerySchema, getWebhookConfigurationsResponseSchema, getWebhookLogDetailsInputSchema, getWebhookLogDetailsResponseSchema, getWebhookLogsFromWebhookConfigurationInputSchema, getWebhookLogsFromWebhookConfigurationQuerySchema, getWebhookLogsFromWebhookConfigurationResponseSchema, getWebhookLogsInputSchema, getWebhookLogsQuerySchema, getWebhookLogsResponseSchema, updateWebhookConfigurationInputSchema, updateWebhookConfigurationResponseSchema, webhookConfigurationIriSchema, webhookConfigurationListItemSchema, webhookConfigurationNullableIriSchema, webhookConfigurationSchema, webhookConfigurationsQuerySchema, webhookEntities, webhookEntitySchema, webhookEventSchema, webhookEvents, webhookLogIriSchema, webhookLogListItemSchema, webhookLogNullableIriSchema, webhookLogSchema, webhookLogStatusSchema, webhookLogStatuses, webhookLogsQuerySchema };
package/dist/index.js CHANGED
@@ -11161,6 +11161,19 @@ 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);
11164
+ var webhookEntities = [
11165
+ "App\\Entity\\Bundle",
11166
+ "App\\Entity\\Customer",
11167
+ "App\\Entity\\CustomerAddress",
11168
+ "App\\Entity\\CustomerBusinessProfile",
11169
+ "App\\Entity\\Delivery",
11170
+ "App\\Entity\\DeliveryPosition",
11171
+ "App\\Entity\\Integration",
11172
+ "App\\Entity\\IntegrationActivationRequest",
11173
+ "App\\Entity\\Order",
11174
+ "App\\Entity\\PointOfSale"
11175
+ ];
11176
+ var webhookEntitySchema = external_exports.enum(webhookEntities);
11164
11177
  var webhookConfigurationIriSchema = iriSchema("/webhooks/configurations/:id");
11165
11178
  var webhookConfigurationNullableIriSchema = iriNullableSchema(
11166
11179
  "/webhooks/configurations/:id"
@@ -11172,7 +11185,7 @@ var webhookLogNullableIriSchema = iriNullableSchema("/webhooks/logs/:id");
11172
11185
  var webhookConfigurationSchema = external_exports.object({
11173
11186
  id: external_exports.string(),
11174
11187
  pointOfSale: pointOfSaleIriSchema,
11175
- entityClass: external_exports.string().min(1, "entityClass.required"),
11188
+ entityClass: webhookEntitySchema,
11176
11189
  events: external_exports.array(webhookEventSchema).min(1, "events.required"),
11177
11190
  callbackUrl: external_exports.url("callbackUrl.invalid").min(1, "callbackUrl.required"),
11178
11191
  secretKey: external_exports.string().min(1, "secretKey.required"),
@@ -11509,6 +11522,8 @@ export {
11509
11522
  webhookConfigurationNullableIriSchema,
11510
11523
  webhookConfigurationSchema,
11511
11524
  webhookConfigurationsQuerySchema,
11525
+ webhookEntities,
11526
+ webhookEntitySchema,
11512
11527
  webhookEventSchema,
11513
11528
  webhookEvents,
11514
11529
  webhookLogIriSchema,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-webhook",
3
3
  "description": "Deliverart JavaScript SDK for Webhook Management",
4
- "version": "2.2.3",
4
+ "version": "2.2.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",