@deliverart/sdk-js-email-notification-configuration 2.36.0 → 2.37.0-dev.0

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/README.md CHANGED
@@ -22,6 +22,7 @@ Available email template keys:
22
22
  - `delivery_started` - Notification when delivery starts
23
23
  - `delivery_taken_over` - Notification when delivery is taken over
24
24
  - `order_created` - Notification when order is created
25
+ - `order_amended` - Material amendment notification to the original ecommerce buyer or reviewed Hub contact; source filters apply
25
26
  - `order_delivered` - Notification when order is delivered
26
27
  - `order_in_preparation` - Notification when order enters preparation
27
28
  - `order_preparation_done` - Notification when order preparation is complete
package/dist/index.cjs CHANGED
@@ -26,6 +26,7 @@ __export(index_exports, {
26
26
  GetEmailNotificationConfigurations: () => GetEmailNotificationConfigurations,
27
27
  GetEmailNotificationConfigurationsFromPointOfSale: () => GetEmailNotificationConfigurationsFromPointOfSale,
28
28
  UpdateEmailNotificationConfiguration: () => UpdateEmailNotificationConfiguration,
29
+ amendmentEmailNotificationConfigurationConfigSchema: () => amendmentEmailNotificationConfigurationConfigSchema,
29
30
  createEmailNotificationConfigurationInputSchema: () => createEmailNotificationConfigurationInputSchema,
30
31
  createEmailNotificationConfigurationResponseSchema: () => createEmailNotificationConfigurationResponseSchema,
31
32
  deleteEmailNotificationConfigurationInputSchema: () => deleteEmailNotificationConfigurationInputSchema,
@@ -60,6 +61,9 @@ var import_zod = require("zod");
60
61
  var orderEmailNotificationConfigurationConfigSchema = import_zod.z.object({
61
62
  sourcesEnabled: import_zod.z.array(import_sdk_js_global_types.orderSourceSchema)
62
63
  });
64
+ var amendmentEmailNotificationConfigurationConfigSchema = import_zod.z.object({
65
+ sourcesEnabled: import_zod.z.array(import_zod.z.enum(["application", "ecommerce"]))
66
+ });
63
67
  var emptyEmailNotificationConfigurationConfigSchema = import_zod.z.object({});
64
68
  var emailNotificationConfigurationConfigSchema = import_zod.z.union([
65
69
  orderEmailNotificationConfigurationConfigSchema,
@@ -93,6 +97,15 @@ var emailNotificationConfigurationSchema = import_zod.z.discriminatedUnion("temp
93
97
  createdAt: import_sdk_js_global_types.datetimeSchema,
94
98
  updatedAt: import_sdk_js_global_types.datetimeSchema
95
99
  }),
100
+ import_zod.z.object({
101
+ id: import_zod.z.string(),
102
+ pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
103
+ templateKey: import_zod.z.literal("order_amended"),
104
+ config: amendmentEmailNotificationConfigurationConfigSchema,
105
+ isActive: import_zod.z.boolean(),
106
+ createdAt: import_sdk_js_global_types.datetimeSchema,
107
+ updatedAt: import_sdk_js_global_types.datetimeSchema
108
+ }),
96
109
  import_zod.z.object({
97
110
  id: import_zod.z.string(),
98
111
  pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
@@ -182,6 +195,14 @@ var emailNotificationConfigurationSchemaListItem = import_zod.z.discriminatedUni
182
195
  createdAt: import_sdk_js_global_types.datetimeSchema,
183
196
  updatedAt: import_sdk_js_global_types.datetimeSchema
184
197
  }),
198
+ import_zod.z.object({
199
+ id: import_zod.z.string(),
200
+ templateKey: import_zod.z.literal("order_amended"),
201
+ config: amendmentEmailNotificationConfigurationConfigSchema,
202
+ isActive: import_zod.z.boolean(),
203
+ createdAt: import_sdk_js_global_types.datetimeSchema,
204
+ updatedAt: import_sdk_js_global_types.datetimeSchema
205
+ }),
185
206
  import_zod.z.object({
186
207
  id: import_zod.z.string(),
187
208
  templateKey: import_zod.z.literal("order_delivered"),
@@ -255,6 +276,11 @@ var writableUpdateEmailNotificationConfigurationSchema = import_zod.z.union([
255
276
  config: orderEmailNotificationConfigurationConfigSchema.optional(),
256
277
  isActive: import_zod.z.boolean().optional()
257
278
  }),
279
+ import_zod.z.object({
280
+ templateKey: import_zod.z.literal("order_amended"),
281
+ config: amendmentEmailNotificationConfigurationConfigSchema.optional(),
282
+ isActive: import_zod.z.boolean().optional()
283
+ }),
258
284
  import_zod.z.object({
259
285
  templateKey: import_zod.z.literal("order_delivered"),
260
286
  config: orderEmailNotificationConfigurationConfigSchema.optional(),
@@ -310,6 +336,12 @@ var writableCreateEmailNotificationConfigurationSchema = import_zod.z.union([
310
336
  config: orderEmailNotificationConfigurationConfigSchema,
311
337
  isActive: import_zod.z.boolean()
312
338
  }),
339
+ import_zod.z.object({
340
+ pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
341
+ templateKey: import_zod.z.literal("order_amended"),
342
+ config: amendmentEmailNotificationConfigurationConfigSchema,
343
+ isActive: import_zod.z.boolean()
344
+ }),
313
345
  import_zod.z.object({
314
346
  pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
315
347
  templateKey: import_zod.z.literal("order_delivered"),
@@ -517,6 +549,7 @@ var emailNotificationConfigurationNullableIriSchema = (0, import_sdk_js_global_t
517
549
  GetEmailNotificationConfigurations,
518
550
  GetEmailNotificationConfigurationsFromPointOfSale,
519
551
  UpdateEmailNotificationConfiguration,
552
+ amendmentEmailNotificationConfigurationConfigSchema,
520
553
  createEmailNotificationConfigurationInputSchema,
521
554
  createEmailNotificationConfigurationResponseSchema,
522
555
  deleteEmailNotificationConfigurationInputSchema,
package/dist/index.d.cts CHANGED
@@ -9,6 +9,12 @@ declare const orderEmailNotificationConfigurationConfigSchema: z.ZodObject<{
9
9
  partner: "partner";
10
10
  }>>;
11
11
  }, z.core.$strip>;
12
+ declare const amendmentEmailNotificationConfigurationConfigSchema: z.ZodObject<{
13
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
14
+ application: "application";
15
+ ecommerce: "ecommerce";
16
+ }>>;
17
+ }, z.core.$strip>;
12
18
  declare const emptyEmailNotificationConfigurationConfigSchema: z.ZodObject<{}, z.core.$strip>;
13
19
  declare const emailNotificationConfigurationConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
14
20
  sourcesEnabled: z.ZodArray<z.ZodEnum<{
@@ -62,6 +68,19 @@ declare const emailNotificationConfigurationSchema: z.ZodDiscriminatedUnion<[z.Z
62
68
  isActive: z.ZodBoolean;
63
69
  createdAt: z.ZodString;
64
70
  updatedAt: z.ZodString;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ id: z.ZodString;
73
+ 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>>;
74
+ templateKey: z.ZodLiteral<"order_amended">;
75
+ config: z.ZodObject<{
76
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
77
+ application: "application";
78
+ ecommerce: "ecommerce";
79
+ }>>;
80
+ }, z.core.$strip>;
81
+ isActive: z.ZodBoolean;
82
+ createdAt: z.ZodString;
83
+ updatedAt: z.ZodString;
65
84
  }, z.core.$strip>, z.ZodObject<{
66
85
  id: z.ZodString;
67
86
  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>>;
@@ -177,6 +196,18 @@ declare const emailNotificationConfigurationSchemaListItem: z.ZodDiscriminatedUn
177
196
  isActive: z.ZodBoolean;
178
197
  createdAt: z.ZodString;
179
198
  updatedAt: z.ZodString;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ id: z.ZodString;
201
+ templateKey: z.ZodLiteral<"order_amended">;
202
+ config: z.ZodObject<{
203
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
204
+ application: "application";
205
+ ecommerce: "ecommerce";
206
+ }>>;
207
+ }, z.core.$strip>;
208
+ isActive: z.ZodBoolean;
209
+ createdAt: z.ZodString;
210
+ updatedAt: z.ZodString;
180
211
  }, z.core.$strip>, z.ZodObject<{
181
212
  id: z.ZodString;
182
213
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -276,6 +307,15 @@ declare const writableUpdateEmailNotificationConfigurationSchema: z.ZodUnion<rea
276
307
  }>>;
277
308
  }, z.core.$strip>>;
278
309
  isActive: z.ZodOptional<z.ZodBoolean>;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ templateKey: z.ZodLiteral<"order_amended">;
312
+ config: z.ZodOptional<z.ZodObject<{
313
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
314
+ application: "application";
315
+ ecommerce: "ecommerce";
316
+ }>>;
317
+ }, z.core.$strip>>;
318
+ isActive: z.ZodOptional<z.ZodBoolean>;
279
319
  }, z.core.$strip>, z.ZodObject<{
280
320
  templateKey: z.ZodLiteral<"order_delivered">;
281
321
  config: z.ZodOptional<z.ZodObject<{
@@ -357,6 +397,16 @@ declare const writableCreateEmailNotificationConfigurationSchema: z.ZodUnion<rea
357
397
  }>>;
358
398
  }, z.core.$strip>;
359
399
  isActive: z.ZodBoolean;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ 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>>;
402
+ templateKey: z.ZodLiteral<"order_amended">;
403
+ config: z.ZodObject<{
404
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
405
+ application: "application";
406
+ ecommerce: "ecommerce";
407
+ }>>;
408
+ }, z.core.$strip>;
409
+ isActive: z.ZodBoolean;
360
410
  }, z.core.$strip>, z.ZodObject<{
361
411
  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>>;
362
412
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -418,6 +468,7 @@ declare const emailNotificationConfigurationsQuerySchema: z.ZodObject<{
418
468
  delivery_started: "delivery_started";
419
469
  delivery_taken_over: "delivery_taken_over";
420
470
  order_created: "order_created";
471
+ order_amended: "order_amended";
421
472
  order_delivered: "order_delivered";
422
473
  order_in_preparation: "order_in_preparation";
423
474
  order_preparation_done: "order_preparation_done";
@@ -429,6 +480,7 @@ declare const emailNotificationConfigurationsQuerySchema: z.ZodObject<{
429
480
  delivery_started: "delivery_started";
430
481
  delivery_taken_over: "delivery_taken_over";
431
482
  order_created: "order_created";
483
+ order_amended: "order_amended";
432
484
  order_delivered: "order_delivered";
433
485
  order_in_preparation: "order_in_preparation";
434
486
  order_preparation_done: "order_preparation_done";
@@ -490,6 +542,16 @@ declare const createEmailNotificationConfigurationInputSchema: z.ZodUnion<readon
490
542
  }>>;
491
543
  }, z.core.$strip>;
492
544
  isActive: z.ZodBoolean;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ 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>>;
547
+ templateKey: z.ZodLiteral<"order_amended">;
548
+ config: z.ZodObject<{
549
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
550
+ application: "application";
551
+ ecommerce: "ecommerce";
552
+ }>>;
553
+ }, z.core.$strip>;
554
+ isActive: z.ZodBoolean;
493
555
  }, z.core.$strip>, z.ZodObject<{
494
556
  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>>;
495
557
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -587,6 +649,19 @@ declare const createEmailNotificationConfigurationResponseSchema: z.ZodDiscrimin
587
649
  isActive: z.ZodBoolean;
588
650
  createdAt: z.ZodString;
589
651
  updatedAt: z.ZodString;
652
+ }, z.core.$strip>, z.ZodObject<{
653
+ id: z.ZodString;
654
+ 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>>;
655
+ templateKey: z.ZodLiteral<"order_amended">;
656
+ config: z.ZodObject<{
657
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
658
+ application: "application";
659
+ ecommerce: "ecommerce";
660
+ }>>;
661
+ }, z.core.$strip>;
662
+ isActive: z.ZodBoolean;
663
+ createdAt: z.ZodString;
664
+ updatedAt: z.ZodString;
590
665
  }, z.core.$strip>, z.ZodObject<{
591
666
  id: z.ZodString;
592
667
  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>>;
@@ -700,6 +775,16 @@ declare class CreateEmailNotificationConfiguration extends AbstractApiRequest<ty
700
775
  }>>;
701
776
  }, z.core.$strip>;
702
777
  isActive: z.ZodBoolean;
778
+ }, z.core.$strip>, z.ZodObject<{
779
+ 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>>;
780
+ templateKey: z.ZodLiteral<"order_amended">;
781
+ config: z.ZodObject<{
782
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
783
+ application: "application";
784
+ ecommerce: "ecommerce";
785
+ }>>;
786
+ }, z.core.$strip>;
787
+ isActive: z.ZodBoolean;
703
788
  }, z.core.$strip>, z.ZodObject<{
704
789
  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>>;
705
790
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -796,6 +881,19 @@ declare class CreateEmailNotificationConfiguration extends AbstractApiRequest<ty
796
881
  isActive: z.ZodBoolean;
797
882
  createdAt: z.ZodString;
798
883
  updatedAt: z.ZodString;
884
+ }, z.core.$strip>, z.ZodObject<{
885
+ id: z.ZodString;
886
+ 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>>;
887
+ templateKey: z.ZodLiteral<"order_amended">;
888
+ config: z.ZodObject<{
889
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
890
+ application: "application";
891
+ ecommerce: "ecommerce";
892
+ }>>;
893
+ }, z.core.$strip>;
894
+ isActive: z.ZodBoolean;
895
+ createdAt: z.ZodString;
896
+ updatedAt: z.ZodString;
799
897
  }, z.core.$strip>, z.ZodObject<{
800
898
  id: z.ZodString;
801
899
  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>>;
@@ -936,6 +1034,19 @@ declare const getEmailNotificationConfigurationDetailsResponseSchema: z.ZodDiscr
936
1034
  isActive: z.ZodBoolean;
937
1035
  createdAt: z.ZodString;
938
1036
  updatedAt: z.ZodString;
1037
+ }, z.core.$strip>, z.ZodObject<{
1038
+ id: z.ZodString;
1039
+ 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>>;
1040
+ templateKey: z.ZodLiteral<"order_amended">;
1041
+ config: z.ZodObject<{
1042
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1043
+ application: "application";
1044
+ ecommerce: "ecommerce";
1045
+ }>>;
1046
+ }, z.core.$strip>;
1047
+ isActive: z.ZodBoolean;
1048
+ createdAt: z.ZodString;
1049
+ updatedAt: z.ZodString;
939
1050
  }, z.core.$strip>, z.ZodObject<{
940
1051
  id: z.ZodString;
941
1052
  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>>;
@@ -1059,6 +1170,19 @@ declare class GetEmailNotificationConfigurationDetails extends AbstractApiReques
1059
1170
  isActive: z.ZodBoolean;
1060
1171
  createdAt: z.ZodString;
1061
1172
  updatedAt: z.ZodString;
1173
+ }, z.core.$strip>, z.ZodObject<{
1174
+ id: z.ZodString;
1175
+ 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>>;
1176
+ templateKey: z.ZodLiteral<"order_amended">;
1177
+ config: z.ZodObject<{
1178
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1179
+ application: "application";
1180
+ ecommerce: "ecommerce";
1181
+ }>>;
1182
+ }, z.core.$strip>;
1183
+ isActive: z.ZodBoolean;
1184
+ createdAt: z.ZodString;
1185
+ updatedAt: z.ZodString;
1062
1186
  }, z.core.$strip>, z.ZodObject<{
1063
1187
  id: z.ZodString;
1064
1188
  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>>;
@@ -1147,6 +1271,7 @@ declare const getEmailNotificationConfigurationsQuerySchema: z.ZodObject<{
1147
1271
  delivery_started: "delivery_started";
1148
1272
  delivery_taken_over: "delivery_taken_over";
1149
1273
  order_created: "order_created";
1274
+ order_amended: "order_amended";
1150
1275
  order_delivered: "order_delivered";
1151
1276
  order_in_preparation: "order_in_preparation";
1152
1277
  order_preparation_done: "order_preparation_done";
@@ -1158,6 +1283,7 @@ declare const getEmailNotificationConfigurationsQuerySchema: z.ZodObject<{
1158
1283
  delivery_started: "delivery_started";
1159
1284
  delivery_taken_over: "delivery_taken_over";
1160
1285
  order_created: "order_created";
1286
+ order_amended: "order_amended";
1161
1287
  order_delivered: "order_delivered";
1162
1288
  order_in_preparation: "order_in_preparation";
1163
1289
  order_preparation_done: "order_preparation_done";
@@ -1227,6 +1353,18 @@ declare const getEmailNotificationConfigurationsResponseSchema: z.ZodObject<{
1227
1353
  isActive: z.ZodBoolean;
1228
1354
  createdAt: z.ZodString;
1229
1355
  updatedAt: z.ZodString;
1356
+ }, z.core.$strip>, z.ZodObject<{
1357
+ id: z.ZodString;
1358
+ templateKey: z.ZodLiteral<"order_amended">;
1359
+ config: z.ZodObject<{
1360
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1361
+ application: "application";
1362
+ ecommerce: "ecommerce";
1363
+ }>>;
1364
+ }, z.core.$strip>;
1365
+ isActive: z.ZodBoolean;
1366
+ createdAt: z.ZodString;
1367
+ updatedAt: z.ZodString;
1230
1368
  }, z.core.$strip>, z.ZodObject<{
1231
1369
  id: z.ZodString;
1232
1370
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -1350,6 +1488,18 @@ declare class GetEmailNotificationConfigurations extends AbstractApiRequest<type
1350
1488
  isActive: z.ZodBoolean;
1351
1489
  createdAt: z.ZodString;
1352
1490
  updatedAt: z.ZodString;
1491
+ }, z.core.$strip>, z.ZodObject<{
1492
+ id: z.ZodString;
1493
+ templateKey: z.ZodLiteral<"order_amended">;
1494
+ config: z.ZodObject<{
1495
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1496
+ application: "application";
1497
+ ecommerce: "ecommerce";
1498
+ }>>;
1499
+ }, z.core.$strip>;
1500
+ isActive: z.ZodBoolean;
1501
+ createdAt: z.ZodString;
1502
+ updatedAt: z.ZodString;
1353
1503
  }, z.core.$strip>, z.ZodObject<{
1354
1504
  id: z.ZodString;
1355
1505
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -1433,6 +1583,7 @@ declare class GetEmailNotificationConfigurations extends AbstractApiRequest<type
1433
1583
  delivery_started: "delivery_started";
1434
1584
  delivery_taken_over: "delivery_taken_over";
1435
1585
  order_created: "order_created";
1586
+ order_amended: "order_amended";
1436
1587
  order_delivered: "order_delivered";
1437
1588
  order_in_preparation: "order_in_preparation";
1438
1589
  order_preparation_done: "order_preparation_done";
@@ -1444,6 +1595,7 @@ declare class GetEmailNotificationConfigurations extends AbstractApiRequest<type
1444
1595
  delivery_started: "delivery_started";
1445
1596
  delivery_taken_over: "delivery_taken_over";
1446
1597
  order_created: "order_created";
1598
+ order_amended: "order_amended";
1447
1599
  order_delivered: "order_delivered";
1448
1600
  order_in_preparation: "order_in_preparation";
1449
1601
  order_preparation_done: "order_preparation_done";
@@ -1513,6 +1665,19 @@ declare class GetEmailNotificationConfigurations extends AbstractApiRequest<type
1513
1665
  isActive: z.ZodBoolean;
1514
1666
  createdAt: z.ZodString;
1515
1667
  updatedAt: z.ZodString;
1668
+ }, z.core.$strip>, z.ZodObject<{
1669
+ id: z.ZodString;
1670
+ 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>>;
1671
+ templateKey: z.ZodLiteral<"order_amended">;
1672
+ config: z.ZodObject<{
1673
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1674
+ application: "application";
1675
+ ecommerce: "ecommerce";
1676
+ }>>;
1677
+ }, z.core.$strip>;
1678
+ isActive: z.ZodBoolean;
1679
+ createdAt: z.ZodString;
1680
+ updatedAt: z.ZodString;
1516
1681
  }, z.core.$strip>, z.ZodObject<{
1517
1682
  id: z.ZodString;
1518
1683
  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>>;
@@ -1601,6 +1766,7 @@ declare const getEmailNotificationConfigurationsFromPointOfSaleQuerySchema: z.Zo
1601
1766
  delivery_started: "delivery_started";
1602
1767
  delivery_taken_over: "delivery_taken_over";
1603
1768
  order_created: "order_created";
1769
+ order_amended: "order_amended";
1604
1770
  order_delivered: "order_delivered";
1605
1771
  order_in_preparation: "order_in_preparation";
1606
1772
  order_preparation_done: "order_preparation_done";
@@ -1612,6 +1778,7 @@ declare const getEmailNotificationConfigurationsFromPointOfSaleQuerySchema: z.Zo
1612
1778
  delivery_started: "delivery_started";
1613
1779
  delivery_taken_over: "delivery_taken_over";
1614
1780
  order_created: "order_created";
1781
+ order_amended: "order_amended";
1615
1782
  order_delivered: "order_delivered";
1616
1783
  order_in_preparation: "order_in_preparation";
1617
1784
  order_preparation_done: "order_preparation_done";
@@ -1680,6 +1847,18 @@ declare const getEmailNotificationConfigurationsFromPointOfSaleResponseSchema: z
1680
1847
  isActive: z.ZodBoolean;
1681
1848
  createdAt: z.ZodString;
1682
1849
  updatedAt: z.ZodString;
1850
+ }, z.core.$strip>, z.ZodObject<{
1851
+ id: z.ZodString;
1852
+ templateKey: z.ZodLiteral<"order_amended">;
1853
+ config: z.ZodObject<{
1854
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1855
+ application: "application";
1856
+ ecommerce: "ecommerce";
1857
+ }>>;
1858
+ }, z.core.$strip>;
1859
+ isActive: z.ZodBoolean;
1860
+ createdAt: z.ZodString;
1861
+ updatedAt: z.ZodString;
1683
1862
  }, z.core.$strip>, z.ZodObject<{
1684
1863
  id: z.ZodString;
1685
1864
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -1793,6 +1972,18 @@ declare class GetEmailNotificationConfigurationsFromPointOfSale extends Abstract
1793
1972
  isActive: z.ZodBoolean;
1794
1973
  createdAt: z.ZodString;
1795
1974
  updatedAt: z.ZodString;
1975
+ }, z.core.$strip>, z.ZodObject<{
1976
+ id: z.ZodString;
1977
+ templateKey: z.ZodLiteral<"order_amended">;
1978
+ config: z.ZodObject<{
1979
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1980
+ application: "application";
1981
+ ecommerce: "ecommerce";
1982
+ }>>;
1983
+ }, z.core.$strip>;
1984
+ isActive: z.ZodBoolean;
1985
+ createdAt: z.ZodString;
1986
+ updatedAt: z.ZodString;
1796
1987
  }, z.core.$strip>, z.ZodObject<{
1797
1988
  id: z.ZodString;
1798
1989
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -1867,6 +2058,7 @@ declare class GetEmailNotificationConfigurationsFromPointOfSale extends Abstract
1867
2058
  delivery_started: "delivery_started";
1868
2059
  delivery_taken_over: "delivery_taken_over";
1869
2060
  order_created: "order_created";
2061
+ order_amended: "order_amended";
1870
2062
  order_delivered: "order_delivered";
1871
2063
  order_in_preparation: "order_in_preparation";
1872
2064
  order_preparation_done: "order_preparation_done";
@@ -1878,6 +2070,7 @@ declare class GetEmailNotificationConfigurationsFromPointOfSale extends Abstract
1878
2070
  delivery_started: "delivery_started";
1879
2071
  delivery_taken_over: "delivery_taken_over";
1880
2072
  order_created: "order_created";
2073
+ order_amended: "order_amended";
1881
2074
  order_delivered: "order_delivered";
1882
2075
  order_in_preparation: "order_in_preparation";
1883
2076
  order_preparation_done: "order_preparation_done";
@@ -1944,6 +2137,18 @@ declare class GetEmailNotificationConfigurationsFromPointOfSale extends Abstract
1944
2137
  isActive: z.ZodBoolean;
1945
2138
  createdAt: z.ZodString;
1946
2139
  updatedAt: z.ZodString;
2140
+ }, z.core.$strip>, z.ZodObject<{
2141
+ id: z.ZodString;
2142
+ templateKey: z.ZodLiteral<"order_amended">;
2143
+ config: z.ZodObject<{
2144
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2145
+ application: "application";
2146
+ ecommerce: "ecommerce";
2147
+ }>>;
2148
+ }, z.core.$strip>;
2149
+ isActive: z.ZodBoolean;
2150
+ createdAt: z.ZodString;
2151
+ updatedAt: z.ZodString;
1947
2152
  }, z.core.$strip>, z.ZodObject<{
1948
2153
  id: z.ZodString;
1949
2154
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -2050,6 +2255,15 @@ declare const updateEmailNotificationConfigurationInputSchema: z.ZodUnion<readon
2050
2255
  }>>;
2051
2256
  }, z.core.$strip>>;
2052
2257
  isActive: z.ZodOptional<z.ZodBoolean>;
2258
+ }, z.core.$strip>, z.ZodObject<{
2259
+ templateKey: z.ZodLiteral<"order_amended">;
2260
+ config: z.ZodOptional<z.ZodObject<{
2261
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2262
+ application: "application";
2263
+ ecommerce: "ecommerce";
2264
+ }>>;
2265
+ }, z.core.$strip>>;
2266
+ isActive: z.ZodOptional<z.ZodBoolean>;
2053
2267
  }, z.core.$strip>, z.ZodObject<{
2054
2268
  templateKey: z.ZodLiteral<"order_delivered">;
2055
2269
  config: z.ZodOptional<z.ZodObject<{
@@ -2140,6 +2354,19 @@ declare const updateEmailNotificationConfigurationResponseSchema: z.ZodDiscrimin
2140
2354
  isActive: z.ZodBoolean;
2141
2355
  createdAt: z.ZodString;
2142
2356
  updatedAt: z.ZodString;
2357
+ }, z.core.$strip>, z.ZodObject<{
2358
+ id: z.ZodString;
2359
+ 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>>;
2360
+ templateKey: z.ZodLiteral<"order_amended">;
2361
+ config: z.ZodObject<{
2362
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2363
+ application: "application";
2364
+ ecommerce: "ecommerce";
2365
+ }>>;
2366
+ }, z.core.$strip>;
2367
+ isActive: z.ZodBoolean;
2368
+ createdAt: z.ZodString;
2369
+ updatedAt: z.ZodString;
2143
2370
  }, z.core.$strip>, z.ZodObject<{
2144
2371
  id: z.ZodString;
2145
2372
  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>>;
@@ -2250,6 +2477,15 @@ declare class UpdateEmailNotificationConfiguration extends AbstractApiRequest<ty
2250
2477
  }>>;
2251
2478
  }, z.core.$strip>>;
2252
2479
  isActive: z.ZodOptional<z.ZodBoolean>;
2480
+ }, z.core.$strip>, z.ZodObject<{
2481
+ templateKey: z.ZodLiteral<"order_amended">;
2482
+ config: z.ZodOptional<z.ZodObject<{
2483
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2484
+ application: "application";
2485
+ ecommerce: "ecommerce";
2486
+ }>>;
2487
+ }, z.core.$strip>>;
2488
+ isActive: z.ZodOptional<z.ZodBoolean>;
2253
2489
  }, z.core.$strip>, z.ZodObject<{
2254
2490
  templateKey: z.ZodLiteral<"order_delivered">;
2255
2491
  config: z.ZodOptional<z.ZodObject<{
@@ -2339,6 +2575,19 @@ declare class UpdateEmailNotificationConfiguration extends AbstractApiRequest<ty
2339
2575
  isActive: z.ZodBoolean;
2340
2576
  createdAt: z.ZodString;
2341
2577
  updatedAt: z.ZodString;
2578
+ }, z.core.$strip>, z.ZodObject<{
2579
+ id: z.ZodString;
2580
+ 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>>;
2581
+ templateKey: z.ZodLiteral<"order_amended">;
2582
+ config: z.ZodObject<{
2583
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2584
+ application: "application";
2585
+ ecommerce: "ecommerce";
2586
+ }>>;
2587
+ }, z.core.$strip>;
2588
+ isActive: z.ZodBoolean;
2589
+ createdAt: z.ZodString;
2590
+ updatedAt: z.ZodString;
2342
2591
  }, z.core.$strip>, z.ZodObject<{
2343
2592
  id: z.ZodString;
2344
2593
  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>>;
@@ -2426,4 +2675,4 @@ type EmailNotificationConfigurationIri = z.infer<typeof emailNotificationConfigu
2426
2675
  declare const emailNotificationConfigurationNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/email_notifications/configurations/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/email_notifications/configurations/:id"> | null, unknown>>;
2427
2676
  type EmailNotificationConfigurationNullableIri = z.infer<typeof emailNotificationConfigurationNullableIriSchema>;
2428
2677
 
2429
- export { CreateEmailNotificationConfiguration, type CreateEmailNotificationConfigurationInput, type CreateEmailNotificationConfigurationResponse, DeleteEmailNotificationConfiguration, type EmailNotificationConfiguration, type EmailNotificationConfigurationConfig, type EmailNotificationConfigurationIri, type EmailNotificationConfigurationListItem, type EmailNotificationConfigurationNullableIri, type EmailNotificationConfigurationsQueryParams, type EmptyEmailNotificationConfigurationConfig, GetEmailNotificationConfigurationDetails, type GetEmailNotificationConfigurationDetailsInput, type GetEmailNotificationConfigurationDetailsResponse, GetEmailNotificationConfigurations, GetEmailNotificationConfigurationsFromPointOfSale, type GetEmailNotificationConfigurationsFromPointOfSaleInput, type GetEmailNotificationConfigurationsFromPointOfSaleQueryParams, type GetEmailNotificationConfigurationsFromPointOfSaleResponse, type GetEmailNotificationConfigurationsInput, type GetEmailNotificationConfigurationsQueryParams, type GetEmailNotificationConfigurationsResponse, type OrderEmailNotificationConfigurationConfig, UpdateEmailNotificationConfiguration, type UpdateEmailNotificationConfigurationInput, type UpdateEmailNotificationConfigurationResponse, type WritableCreateEmailNotificationConfiguration, type WritableUpdateEmailNotificationConfiguration, createEmailNotificationConfigurationInputSchema, createEmailNotificationConfigurationResponseSchema, deleteEmailNotificationConfigurationInputSchema, deleteEmailNotificationConfigurationResponseSchema, emailNotificationConfigurationConfigSchema, emailNotificationConfigurationIriSchema, emailNotificationConfigurationNullableIriSchema, emailNotificationConfigurationSchema, emailNotificationConfigurationSchemaListItem, emailNotificationConfigurationsQuerySchema, emptyEmailNotificationConfigurationConfigSchema, getEmailNotificationConfigurationDetailsInputSchema, getEmailNotificationConfigurationDetailsResponseSchema, getEmailNotificationConfigurationsFromPointOfSaleInputSchema, getEmailNotificationConfigurationsFromPointOfSaleQuerySchema, getEmailNotificationConfigurationsFromPointOfSaleResponseSchema, getEmailNotificationConfigurationsInputSchema, getEmailNotificationConfigurationsQuerySchema, getEmailNotificationConfigurationsResponseSchema, orderEmailNotificationConfigurationConfigSchema, updateEmailNotificationConfigurationInputSchema, updateEmailNotificationConfigurationResponseSchema, writableCreateEmailNotificationConfigurationSchema, writableUpdateEmailNotificationConfigurationSchema };
2678
+ export { CreateEmailNotificationConfiguration, type CreateEmailNotificationConfigurationInput, type CreateEmailNotificationConfigurationResponse, DeleteEmailNotificationConfiguration, type EmailNotificationConfiguration, type EmailNotificationConfigurationConfig, type EmailNotificationConfigurationIri, type EmailNotificationConfigurationListItem, type EmailNotificationConfigurationNullableIri, type EmailNotificationConfigurationsQueryParams, type EmptyEmailNotificationConfigurationConfig, GetEmailNotificationConfigurationDetails, type GetEmailNotificationConfigurationDetailsInput, type GetEmailNotificationConfigurationDetailsResponse, GetEmailNotificationConfigurations, GetEmailNotificationConfigurationsFromPointOfSale, type GetEmailNotificationConfigurationsFromPointOfSaleInput, type GetEmailNotificationConfigurationsFromPointOfSaleQueryParams, type GetEmailNotificationConfigurationsFromPointOfSaleResponse, type GetEmailNotificationConfigurationsInput, type GetEmailNotificationConfigurationsQueryParams, type GetEmailNotificationConfigurationsResponse, type OrderEmailNotificationConfigurationConfig, UpdateEmailNotificationConfiguration, type UpdateEmailNotificationConfigurationInput, type UpdateEmailNotificationConfigurationResponse, type WritableCreateEmailNotificationConfiguration, type WritableUpdateEmailNotificationConfiguration, amendmentEmailNotificationConfigurationConfigSchema, createEmailNotificationConfigurationInputSchema, createEmailNotificationConfigurationResponseSchema, deleteEmailNotificationConfigurationInputSchema, deleteEmailNotificationConfigurationResponseSchema, emailNotificationConfigurationConfigSchema, emailNotificationConfigurationIriSchema, emailNotificationConfigurationNullableIriSchema, emailNotificationConfigurationSchema, emailNotificationConfigurationSchemaListItem, emailNotificationConfigurationsQuerySchema, emptyEmailNotificationConfigurationConfigSchema, getEmailNotificationConfigurationDetailsInputSchema, getEmailNotificationConfigurationDetailsResponseSchema, getEmailNotificationConfigurationsFromPointOfSaleInputSchema, getEmailNotificationConfigurationsFromPointOfSaleQuerySchema, getEmailNotificationConfigurationsFromPointOfSaleResponseSchema, getEmailNotificationConfigurationsInputSchema, getEmailNotificationConfigurationsQuerySchema, getEmailNotificationConfigurationsResponseSchema, orderEmailNotificationConfigurationConfigSchema, updateEmailNotificationConfigurationInputSchema, updateEmailNotificationConfigurationResponseSchema, writableCreateEmailNotificationConfigurationSchema, writableUpdateEmailNotificationConfigurationSchema };
package/dist/index.d.ts CHANGED
@@ -9,6 +9,12 @@ declare const orderEmailNotificationConfigurationConfigSchema: z.ZodObject<{
9
9
  partner: "partner";
10
10
  }>>;
11
11
  }, z.core.$strip>;
12
+ declare const amendmentEmailNotificationConfigurationConfigSchema: z.ZodObject<{
13
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
14
+ application: "application";
15
+ ecommerce: "ecommerce";
16
+ }>>;
17
+ }, z.core.$strip>;
12
18
  declare const emptyEmailNotificationConfigurationConfigSchema: z.ZodObject<{}, z.core.$strip>;
13
19
  declare const emailNotificationConfigurationConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
14
20
  sourcesEnabled: z.ZodArray<z.ZodEnum<{
@@ -62,6 +68,19 @@ declare const emailNotificationConfigurationSchema: z.ZodDiscriminatedUnion<[z.Z
62
68
  isActive: z.ZodBoolean;
63
69
  createdAt: z.ZodString;
64
70
  updatedAt: z.ZodString;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ id: z.ZodString;
73
+ 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>>;
74
+ templateKey: z.ZodLiteral<"order_amended">;
75
+ config: z.ZodObject<{
76
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
77
+ application: "application";
78
+ ecommerce: "ecommerce";
79
+ }>>;
80
+ }, z.core.$strip>;
81
+ isActive: z.ZodBoolean;
82
+ createdAt: z.ZodString;
83
+ updatedAt: z.ZodString;
65
84
  }, z.core.$strip>, z.ZodObject<{
66
85
  id: z.ZodString;
67
86
  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>>;
@@ -177,6 +196,18 @@ declare const emailNotificationConfigurationSchemaListItem: z.ZodDiscriminatedUn
177
196
  isActive: z.ZodBoolean;
178
197
  createdAt: z.ZodString;
179
198
  updatedAt: z.ZodString;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ id: z.ZodString;
201
+ templateKey: z.ZodLiteral<"order_amended">;
202
+ config: z.ZodObject<{
203
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
204
+ application: "application";
205
+ ecommerce: "ecommerce";
206
+ }>>;
207
+ }, z.core.$strip>;
208
+ isActive: z.ZodBoolean;
209
+ createdAt: z.ZodString;
210
+ updatedAt: z.ZodString;
180
211
  }, z.core.$strip>, z.ZodObject<{
181
212
  id: z.ZodString;
182
213
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -276,6 +307,15 @@ declare const writableUpdateEmailNotificationConfigurationSchema: z.ZodUnion<rea
276
307
  }>>;
277
308
  }, z.core.$strip>>;
278
309
  isActive: z.ZodOptional<z.ZodBoolean>;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ templateKey: z.ZodLiteral<"order_amended">;
312
+ config: z.ZodOptional<z.ZodObject<{
313
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
314
+ application: "application";
315
+ ecommerce: "ecommerce";
316
+ }>>;
317
+ }, z.core.$strip>>;
318
+ isActive: z.ZodOptional<z.ZodBoolean>;
279
319
  }, z.core.$strip>, z.ZodObject<{
280
320
  templateKey: z.ZodLiteral<"order_delivered">;
281
321
  config: z.ZodOptional<z.ZodObject<{
@@ -357,6 +397,16 @@ declare const writableCreateEmailNotificationConfigurationSchema: z.ZodUnion<rea
357
397
  }>>;
358
398
  }, z.core.$strip>;
359
399
  isActive: z.ZodBoolean;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ 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>>;
402
+ templateKey: z.ZodLiteral<"order_amended">;
403
+ config: z.ZodObject<{
404
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
405
+ application: "application";
406
+ ecommerce: "ecommerce";
407
+ }>>;
408
+ }, z.core.$strip>;
409
+ isActive: z.ZodBoolean;
360
410
  }, z.core.$strip>, z.ZodObject<{
361
411
  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>>;
362
412
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -418,6 +468,7 @@ declare const emailNotificationConfigurationsQuerySchema: z.ZodObject<{
418
468
  delivery_started: "delivery_started";
419
469
  delivery_taken_over: "delivery_taken_over";
420
470
  order_created: "order_created";
471
+ order_amended: "order_amended";
421
472
  order_delivered: "order_delivered";
422
473
  order_in_preparation: "order_in_preparation";
423
474
  order_preparation_done: "order_preparation_done";
@@ -429,6 +480,7 @@ declare const emailNotificationConfigurationsQuerySchema: z.ZodObject<{
429
480
  delivery_started: "delivery_started";
430
481
  delivery_taken_over: "delivery_taken_over";
431
482
  order_created: "order_created";
483
+ order_amended: "order_amended";
432
484
  order_delivered: "order_delivered";
433
485
  order_in_preparation: "order_in_preparation";
434
486
  order_preparation_done: "order_preparation_done";
@@ -490,6 +542,16 @@ declare const createEmailNotificationConfigurationInputSchema: z.ZodUnion<readon
490
542
  }>>;
491
543
  }, z.core.$strip>;
492
544
  isActive: z.ZodBoolean;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ 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>>;
547
+ templateKey: z.ZodLiteral<"order_amended">;
548
+ config: z.ZodObject<{
549
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
550
+ application: "application";
551
+ ecommerce: "ecommerce";
552
+ }>>;
553
+ }, z.core.$strip>;
554
+ isActive: z.ZodBoolean;
493
555
  }, z.core.$strip>, z.ZodObject<{
494
556
  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>>;
495
557
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -587,6 +649,19 @@ declare const createEmailNotificationConfigurationResponseSchema: z.ZodDiscrimin
587
649
  isActive: z.ZodBoolean;
588
650
  createdAt: z.ZodString;
589
651
  updatedAt: z.ZodString;
652
+ }, z.core.$strip>, z.ZodObject<{
653
+ id: z.ZodString;
654
+ 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>>;
655
+ templateKey: z.ZodLiteral<"order_amended">;
656
+ config: z.ZodObject<{
657
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
658
+ application: "application";
659
+ ecommerce: "ecommerce";
660
+ }>>;
661
+ }, z.core.$strip>;
662
+ isActive: z.ZodBoolean;
663
+ createdAt: z.ZodString;
664
+ updatedAt: z.ZodString;
590
665
  }, z.core.$strip>, z.ZodObject<{
591
666
  id: z.ZodString;
592
667
  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>>;
@@ -700,6 +775,16 @@ declare class CreateEmailNotificationConfiguration extends AbstractApiRequest<ty
700
775
  }>>;
701
776
  }, z.core.$strip>;
702
777
  isActive: z.ZodBoolean;
778
+ }, z.core.$strip>, z.ZodObject<{
779
+ 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>>;
780
+ templateKey: z.ZodLiteral<"order_amended">;
781
+ config: z.ZodObject<{
782
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
783
+ application: "application";
784
+ ecommerce: "ecommerce";
785
+ }>>;
786
+ }, z.core.$strip>;
787
+ isActive: z.ZodBoolean;
703
788
  }, z.core.$strip>, z.ZodObject<{
704
789
  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>>;
705
790
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -796,6 +881,19 @@ declare class CreateEmailNotificationConfiguration extends AbstractApiRequest<ty
796
881
  isActive: z.ZodBoolean;
797
882
  createdAt: z.ZodString;
798
883
  updatedAt: z.ZodString;
884
+ }, z.core.$strip>, z.ZodObject<{
885
+ id: z.ZodString;
886
+ 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>>;
887
+ templateKey: z.ZodLiteral<"order_amended">;
888
+ config: z.ZodObject<{
889
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
890
+ application: "application";
891
+ ecommerce: "ecommerce";
892
+ }>>;
893
+ }, z.core.$strip>;
894
+ isActive: z.ZodBoolean;
895
+ createdAt: z.ZodString;
896
+ updatedAt: z.ZodString;
799
897
  }, z.core.$strip>, z.ZodObject<{
800
898
  id: z.ZodString;
801
899
  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>>;
@@ -936,6 +1034,19 @@ declare const getEmailNotificationConfigurationDetailsResponseSchema: z.ZodDiscr
936
1034
  isActive: z.ZodBoolean;
937
1035
  createdAt: z.ZodString;
938
1036
  updatedAt: z.ZodString;
1037
+ }, z.core.$strip>, z.ZodObject<{
1038
+ id: z.ZodString;
1039
+ 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>>;
1040
+ templateKey: z.ZodLiteral<"order_amended">;
1041
+ config: z.ZodObject<{
1042
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1043
+ application: "application";
1044
+ ecommerce: "ecommerce";
1045
+ }>>;
1046
+ }, z.core.$strip>;
1047
+ isActive: z.ZodBoolean;
1048
+ createdAt: z.ZodString;
1049
+ updatedAt: z.ZodString;
939
1050
  }, z.core.$strip>, z.ZodObject<{
940
1051
  id: z.ZodString;
941
1052
  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>>;
@@ -1059,6 +1170,19 @@ declare class GetEmailNotificationConfigurationDetails extends AbstractApiReques
1059
1170
  isActive: z.ZodBoolean;
1060
1171
  createdAt: z.ZodString;
1061
1172
  updatedAt: z.ZodString;
1173
+ }, z.core.$strip>, z.ZodObject<{
1174
+ id: z.ZodString;
1175
+ 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>>;
1176
+ templateKey: z.ZodLiteral<"order_amended">;
1177
+ config: z.ZodObject<{
1178
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1179
+ application: "application";
1180
+ ecommerce: "ecommerce";
1181
+ }>>;
1182
+ }, z.core.$strip>;
1183
+ isActive: z.ZodBoolean;
1184
+ createdAt: z.ZodString;
1185
+ updatedAt: z.ZodString;
1062
1186
  }, z.core.$strip>, z.ZodObject<{
1063
1187
  id: z.ZodString;
1064
1188
  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>>;
@@ -1147,6 +1271,7 @@ declare const getEmailNotificationConfigurationsQuerySchema: z.ZodObject<{
1147
1271
  delivery_started: "delivery_started";
1148
1272
  delivery_taken_over: "delivery_taken_over";
1149
1273
  order_created: "order_created";
1274
+ order_amended: "order_amended";
1150
1275
  order_delivered: "order_delivered";
1151
1276
  order_in_preparation: "order_in_preparation";
1152
1277
  order_preparation_done: "order_preparation_done";
@@ -1158,6 +1283,7 @@ declare const getEmailNotificationConfigurationsQuerySchema: z.ZodObject<{
1158
1283
  delivery_started: "delivery_started";
1159
1284
  delivery_taken_over: "delivery_taken_over";
1160
1285
  order_created: "order_created";
1286
+ order_amended: "order_amended";
1161
1287
  order_delivered: "order_delivered";
1162
1288
  order_in_preparation: "order_in_preparation";
1163
1289
  order_preparation_done: "order_preparation_done";
@@ -1227,6 +1353,18 @@ declare const getEmailNotificationConfigurationsResponseSchema: z.ZodObject<{
1227
1353
  isActive: z.ZodBoolean;
1228
1354
  createdAt: z.ZodString;
1229
1355
  updatedAt: z.ZodString;
1356
+ }, z.core.$strip>, z.ZodObject<{
1357
+ id: z.ZodString;
1358
+ templateKey: z.ZodLiteral<"order_amended">;
1359
+ config: z.ZodObject<{
1360
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1361
+ application: "application";
1362
+ ecommerce: "ecommerce";
1363
+ }>>;
1364
+ }, z.core.$strip>;
1365
+ isActive: z.ZodBoolean;
1366
+ createdAt: z.ZodString;
1367
+ updatedAt: z.ZodString;
1230
1368
  }, z.core.$strip>, z.ZodObject<{
1231
1369
  id: z.ZodString;
1232
1370
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -1350,6 +1488,18 @@ declare class GetEmailNotificationConfigurations extends AbstractApiRequest<type
1350
1488
  isActive: z.ZodBoolean;
1351
1489
  createdAt: z.ZodString;
1352
1490
  updatedAt: z.ZodString;
1491
+ }, z.core.$strip>, z.ZodObject<{
1492
+ id: z.ZodString;
1493
+ templateKey: z.ZodLiteral<"order_amended">;
1494
+ config: z.ZodObject<{
1495
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1496
+ application: "application";
1497
+ ecommerce: "ecommerce";
1498
+ }>>;
1499
+ }, z.core.$strip>;
1500
+ isActive: z.ZodBoolean;
1501
+ createdAt: z.ZodString;
1502
+ updatedAt: z.ZodString;
1353
1503
  }, z.core.$strip>, z.ZodObject<{
1354
1504
  id: z.ZodString;
1355
1505
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -1433,6 +1583,7 @@ declare class GetEmailNotificationConfigurations extends AbstractApiRequest<type
1433
1583
  delivery_started: "delivery_started";
1434
1584
  delivery_taken_over: "delivery_taken_over";
1435
1585
  order_created: "order_created";
1586
+ order_amended: "order_amended";
1436
1587
  order_delivered: "order_delivered";
1437
1588
  order_in_preparation: "order_in_preparation";
1438
1589
  order_preparation_done: "order_preparation_done";
@@ -1444,6 +1595,7 @@ declare class GetEmailNotificationConfigurations extends AbstractApiRequest<type
1444
1595
  delivery_started: "delivery_started";
1445
1596
  delivery_taken_over: "delivery_taken_over";
1446
1597
  order_created: "order_created";
1598
+ order_amended: "order_amended";
1447
1599
  order_delivered: "order_delivered";
1448
1600
  order_in_preparation: "order_in_preparation";
1449
1601
  order_preparation_done: "order_preparation_done";
@@ -1513,6 +1665,19 @@ declare class GetEmailNotificationConfigurations extends AbstractApiRequest<type
1513
1665
  isActive: z.ZodBoolean;
1514
1666
  createdAt: z.ZodString;
1515
1667
  updatedAt: z.ZodString;
1668
+ }, z.core.$strip>, z.ZodObject<{
1669
+ id: z.ZodString;
1670
+ 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>>;
1671
+ templateKey: z.ZodLiteral<"order_amended">;
1672
+ config: z.ZodObject<{
1673
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1674
+ application: "application";
1675
+ ecommerce: "ecommerce";
1676
+ }>>;
1677
+ }, z.core.$strip>;
1678
+ isActive: z.ZodBoolean;
1679
+ createdAt: z.ZodString;
1680
+ updatedAt: z.ZodString;
1516
1681
  }, z.core.$strip>, z.ZodObject<{
1517
1682
  id: z.ZodString;
1518
1683
  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>>;
@@ -1601,6 +1766,7 @@ declare const getEmailNotificationConfigurationsFromPointOfSaleQuerySchema: z.Zo
1601
1766
  delivery_started: "delivery_started";
1602
1767
  delivery_taken_over: "delivery_taken_over";
1603
1768
  order_created: "order_created";
1769
+ order_amended: "order_amended";
1604
1770
  order_delivered: "order_delivered";
1605
1771
  order_in_preparation: "order_in_preparation";
1606
1772
  order_preparation_done: "order_preparation_done";
@@ -1612,6 +1778,7 @@ declare const getEmailNotificationConfigurationsFromPointOfSaleQuerySchema: z.Zo
1612
1778
  delivery_started: "delivery_started";
1613
1779
  delivery_taken_over: "delivery_taken_over";
1614
1780
  order_created: "order_created";
1781
+ order_amended: "order_amended";
1615
1782
  order_delivered: "order_delivered";
1616
1783
  order_in_preparation: "order_in_preparation";
1617
1784
  order_preparation_done: "order_preparation_done";
@@ -1680,6 +1847,18 @@ declare const getEmailNotificationConfigurationsFromPointOfSaleResponseSchema: z
1680
1847
  isActive: z.ZodBoolean;
1681
1848
  createdAt: z.ZodString;
1682
1849
  updatedAt: z.ZodString;
1850
+ }, z.core.$strip>, z.ZodObject<{
1851
+ id: z.ZodString;
1852
+ templateKey: z.ZodLiteral<"order_amended">;
1853
+ config: z.ZodObject<{
1854
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1855
+ application: "application";
1856
+ ecommerce: "ecommerce";
1857
+ }>>;
1858
+ }, z.core.$strip>;
1859
+ isActive: z.ZodBoolean;
1860
+ createdAt: z.ZodString;
1861
+ updatedAt: z.ZodString;
1683
1862
  }, z.core.$strip>, z.ZodObject<{
1684
1863
  id: z.ZodString;
1685
1864
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -1793,6 +1972,18 @@ declare class GetEmailNotificationConfigurationsFromPointOfSale extends Abstract
1793
1972
  isActive: z.ZodBoolean;
1794
1973
  createdAt: z.ZodString;
1795
1974
  updatedAt: z.ZodString;
1975
+ }, z.core.$strip>, z.ZodObject<{
1976
+ id: z.ZodString;
1977
+ templateKey: z.ZodLiteral<"order_amended">;
1978
+ config: z.ZodObject<{
1979
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
1980
+ application: "application";
1981
+ ecommerce: "ecommerce";
1982
+ }>>;
1983
+ }, z.core.$strip>;
1984
+ isActive: z.ZodBoolean;
1985
+ createdAt: z.ZodString;
1986
+ updatedAt: z.ZodString;
1796
1987
  }, z.core.$strip>, z.ZodObject<{
1797
1988
  id: z.ZodString;
1798
1989
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -1867,6 +2058,7 @@ declare class GetEmailNotificationConfigurationsFromPointOfSale extends Abstract
1867
2058
  delivery_started: "delivery_started";
1868
2059
  delivery_taken_over: "delivery_taken_over";
1869
2060
  order_created: "order_created";
2061
+ order_amended: "order_amended";
1870
2062
  order_delivered: "order_delivered";
1871
2063
  order_in_preparation: "order_in_preparation";
1872
2064
  order_preparation_done: "order_preparation_done";
@@ -1878,6 +2070,7 @@ declare class GetEmailNotificationConfigurationsFromPointOfSale extends Abstract
1878
2070
  delivery_started: "delivery_started";
1879
2071
  delivery_taken_over: "delivery_taken_over";
1880
2072
  order_created: "order_created";
2073
+ order_amended: "order_amended";
1881
2074
  order_delivered: "order_delivered";
1882
2075
  order_in_preparation: "order_in_preparation";
1883
2076
  order_preparation_done: "order_preparation_done";
@@ -1944,6 +2137,18 @@ declare class GetEmailNotificationConfigurationsFromPointOfSale extends Abstract
1944
2137
  isActive: z.ZodBoolean;
1945
2138
  createdAt: z.ZodString;
1946
2139
  updatedAt: z.ZodString;
2140
+ }, z.core.$strip>, z.ZodObject<{
2141
+ id: z.ZodString;
2142
+ templateKey: z.ZodLiteral<"order_amended">;
2143
+ config: z.ZodObject<{
2144
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2145
+ application: "application";
2146
+ ecommerce: "ecommerce";
2147
+ }>>;
2148
+ }, z.core.$strip>;
2149
+ isActive: z.ZodBoolean;
2150
+ createdAt: z.ZodString;
2151
+ updatedAt: z.ZodString;
1947
2152
  }, z.core.$strip>, z.ZodObject<{
1948
2153
  id: z.ZodString;
1949
2154
  templateKey: z.ZodLiteral<"order_delivered">;
@@ -2050,6 +2255,15 @@ declare const updateEmailNotificationConfigurationInputSchema: z.ZodUnion<readon
2050
2255
  }>>;
2051
2256
  }, z.core.$strip>>;
2052
2257
  isActive: z.ZodOptional<z.ZodBoolean>;
2258
+ }, z.core.$strip>, z.ZodObject<{
2259
+ templateKey: z.ZodLiteral<"order_amended">;
2260
+ config: z.ZodOptional<z.ZodObject<{
2261
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2262
+ application: "application";
2263
+ ecommerce: "ecommerce";
2264
+ }>>;
2265
+ }, z.core.$strip>>;
2266
+ isActive: z.ZodOptional<z.ZodBoolean>;
2053
2267
  }, z.core.$strip>, z.ZodObject<{
2054
2268
  templateKey: z.ZodLiteral<"order_delivered">;
2055
2269
  config: z.ZodOptional<z.ZodObject<{
@@ -2140,6 +2354,19 @@ declare const updateEmailNotificationConfigurationResponseSchema: z.ZodDiscrimin
2140
2354
  isActive: z.ZodBoolean;
2141
2355
  createdAt: z.ZodString;
2142
2356
  updatedAt: z.ZodString;
2357
+ }, z.core.$strip>, z.ZodObject<{
2358
+ id: z.ZodString;
2359
+ 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>>;
2360
+ templateKey: z.ZodLiteral<"order_amended">;
2361
+ config: z.ZodObject<{
2362
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2363
+ application: "application";
2364
+ ecommerce: "ecommerce";
2365
+ }>>;
2366
+ }, z.core.$strip>;
2367
+ isActive: z.ZodBoolean;
2368
+ createdAt: z.ZodString;
2369
+ updatedAt: z.ZodString;
2143
2370
  }, z.core.$strip>, z.ZodObject<{
2144
2371
  id: z.ZodString;
2145
2372
  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>>;
@@ -2250,6 +2477,15 @@ declare class UpdateEmailNotificationConfiguration extends AbstractApiRequest<ty
2250
2477
  }>>;
2251
2478
  }, z.core.$strip>>;
2252
2479
  isActive: z.ZodOptional<z.ZodBoolean>;
2480
+ }, z.core.$strip>, z.ZodObject<{
2481
+ templateKey: z.ZodLiteral<"order_amended">;
2482
+ config: z.ZodOptional<z.ZodObject<{
2483
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2484
+ application: "application";
2485
+ ecommerce: "ecommerce";
2486
+ }>>;
2487
+ }, z.core.$strip>>;
2488
+ isActive: z.ZodOptional<z.ZodBoolean>;
2253
2489
  }, z.core.$strip>, z.ZodObject<{
2254
2490
  templateKey: z.ZodLiteral<"order_delivered">;
2255
2491
  config: z.ZodOptional<z.ZodObject<{
@@ -2339,6 +2575,19 @@ declare class UpdateEmailNotificationConfiguration extends AbstractApiRequest<ty
2339
2575
  isActive: z.ZodBoolean;
2340
2576
  createdAt: z.ZodString;
2341
2577
  updatedAt: z.ZodString;
2578
+ }, z.core.$strip>, z.ZodObject<{
2579
+ id: z.ZodString;
2580
+ 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>>;
2581
+ templateKey: z.ZodLiteral<"order_amended">;
2582
+ config: z.ZodObject<{
2583
+ sourcesEnabled: z.ZodArray<z.ZodEnum<{
2584
+ application: "application";
2585
+ ecommerce: "ecommerce";
2586
+ }>>;
2587
+ }, z.core.$strip>;
2588
+ isActive: z.ZodBoolean;
2589
+ createdAt: z.ZodString;
2590
+ updatedAt: z.ZodString;
2342
2591
  }, z.core.$strip>, z.ZodObject<{
2343
2592
  id: z.ZodString;
2344
2593
  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>>;
@@ -2426,4 +2675,4 @@ type EmailNotificationConfigurationIri = z.infer<typeof emailNotificationConfigu
2426
2675
  declare const emailNotificationConfigurationNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/email_notifications/configurations/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/email_notifications/configurations/:id"> | null, unknown>>;
2427
2676
  type EmailNotificationConfigurationNullableIri = z.infer<typeof emailNotificationConfigurationNullableIriSchema>;
2428
2677
 
2429
- export { CreateEmailNotificationConfiguration, type CreateEmailNotificationConfigurationInput, type CreateEmailNotificationConfigurationResponse, DeleteEmailNotificationConfiguration, type EmailNotificationConfiguration, type EmailNotificationConfigurationConfig, type EmailNotificationConfigurationIri, type EmailNotificationConfigurationListItem, type EmailNotificationConfigurationNullableIri, type EmailNotificationConfigurationsQueryParams, type EmptyEmailNotificationConfigurationConfig, GetEmailNotificationConfigurationDetails, type GetEmailNotificationConfigurationDetailsInput, type GetEmailNotificationConfigurationDetailsResponse, GetEmailNotificationConfigurations, GetEmailNotificationConfigurationsFromPointOfSale, type GetEmailNotificationConfigurationsFromPointOfSaleInput, type GetEmailNotificationConfigurationsFromPointOfSaleQueryParams, type GetEmailNotificationConfigurationsFromPointOfSaleResponse, type GetEmailNotificationConfigurationsInput, type GetEmailNotificationConfigurationsQueryParams, type GetEmailNotificationConfigurationsResponse, type OrderEmailNotificationConfigurationConfig, UpdateEmailNotificationConfiguration, type UpdateEmailNotificationConfigurationInput, type UpdateEmailNotificationConfigurationResponse, type WritableCreateEmailNotificationConfiguration, type WritableUpdateEmailNotificationConfiguration, createEmailNotificationConfigurationInputSchema, createEmailNotificationConfigurationResponseSchema, deleteEmailNotificationConfigurationInputSchema, deleteEmailNotificationConfigurationResponseSchema, emailNotificationConfigurationConfigSchema, emailNotificationConfigurationIriSchema, emailNotificationConfigurationNullableIriSchema, emailNotificationConfigurationSchema, emailNotificationConfigurationSchemaListItem, emailNotificationConfigurationsQuerySchema, emptyEmailNotificationConfigurationConfigSchema, getEmailNotificationConfigurationDetailsInputSchema, getEmailNotificationConfigurationDetailsResponseSchema, getEmailNotificationConfigurationsFromPointOfSaleInputSchema, getEmailNotificationConfigurationsFromPointOfSaleQuerySchema, getEmailNotificationConfigurationsFromPointOfSaleResponseSchema, getEmailNotificationConfigurationsInputSchema, getEmailNotificationConfigurationsQuerySchema, getEmailNotificationConfigurationsResponseSchema, orderEmailNotificationConfigurationConfigSchema, updateEmailNotificationConfigurationInputSchema, updateEmailNotificationConfigurationResponseSchema, writableCreateEmailNotificationConfigurationSchema, writableUpdateEmailNotificationConfigurationSchema };
2678
+ export { CreateEmailNotificationConfiguration, type CreateEmailNotificationConfigurationInput, type CreateEmailNotificationConfigurationResponse, DeleteEmailNotificationConfiguration, type EmailNotificationConfiguration, type EmailNotificationConfigurationConfig, type EmailNotificationConfigurationIri, type EmailNotificationConfigurationListItem, type EmailNotificationConfigurationNullableIri, type EmailNotificationConfigurationsQueryParams, type EmptyEmailNotificationConfigurationConfig, GetEmailNotificationConfigurationDetails, type GetEmailNotificationConfigurationDetailsInput, type GetEmailNotificationConfigurationDetailsResponse, GetEmailNotificationConfigurations, GetEmailNotificationConfigurationsFromPointOfSale, type GetEmailNotificationConfigurationsFromPointOfSaleInput, type GetEmailNotificationConfigurationsFromPointOfSaleQueryParams, type GetEmailNotificationConfigurationsFromPointOfSaleResponse, type GetEmailNotificationConfigurationsInput, type GetEmailNotificationConfigurationsQueryParams, type GetEmailNotificationConfigurationsResponse, type OrderEmailNotificationConfigurationConfig, UpdateEmailNotificationConfiguration, type UpdateEmailNotificationConfigurationInput, type UpdateEmailNotificationConfigurationResponse, type WritableCreateEmailNotificationConfiguration, type WritableUpdateEmailNotificationConfiguration, amendmentEmailNotificationConfigurationConfigSchema, createEmailNotificationConfigurationInputSchema, createEmailNotificationConfigurationResponseSchema, deleteEmailNotificationConfigurationInputSchema, deleteEmailNotificationConfigurationResponseSchema, emailNotificationConfigurationConfigSchema, emailNotificationConfigurationIriSchema, emailNotificationConfigurationNullableIriSchema, emailNotificationConfigurationSchema, emailNotificationConfigurationSchemaListItem, emailNotificationConfigurationsQuerySchema, emptyEmailNotificationConfigurationConfigSchema, getEmailNotificationConfigurationDetailsInputSchema, getEmailNotificationConfigurationDetailsResponseSchema, getEmailNotificationConfigurationsFromPointOfSaleInputSchema, getEmailNotificationConfigurationsFromPointOfSaleQuerySchema, getEmailNotificationConfigurationsFromPointOfSaleResponseSchema, getEmailNotificationConfigurationsInputSchema, getEmailNotificationConfigurationsQuerySchema, getEmailNotificationConfigurationsResponseSchema, orderEmailNotificationConfigurationConfigSchema, updateEmailNotificationConfigurationInputSchema, updateEmailNotificationConfigurationResponseSchema, writableCreateEmailNotificationConfigurationSchema, writableUpdateEmailNotificationConfigurationSchema };
package/dist/index.js CHANGED
@@ -11,6 +11,9 @@ import { z } from "zod";
11
11
  var orderEmailNotificationConfigurationConfigSchema = z.object({
12
12
  sourcesEnabled: z.array(orderSourceSchema)
13
13
  });
14
+ var amendmentEmailNotificationConfigurationConfigSchema = z.object({
15
+ sourcesEnabled: z.array(z.enum(["application", "ecommerce"]))
16
+ });
14
17
  var emptyEmailNotificationConfigurationConfigSchema = z.object({});
15
18
  var emailNotificationConfigurationConfigSchema = z.union([
16
19
  orderEmailNotificationConfigurationConfigSchema,
@@ -44,6 +47,15 @@ var emailNotificationConfigurationSchema = z.discriminatedUnion("templateKey", [
44
47
  createdAt: datetimeSchema,
45
48
  updatedAt: datetimeSchema
46
49
  }),
50
+ z.object({
51
+ id: z.string(),
52
+ pointOfSale: pointOfSaleIriSchema,
53
+ templateKey: z.literal("order_amended"),
54
+ config: amendmentEmailNotificationConfigurationConfigSchema,
55
+ isActive: z.boolean(),
56
+ createdAt: datetimeSchema,
57
+ updatedAt: datetimeSchema
58
+ }),
47
59
  z.object({
48
60
  id: z.string(),
49
61
  pointOfSale: pointOfSaleIriSchema,
@@ -133,6 +145,14 @@ var emailNotificationConfigurationSchemaListItem = z.discriminatedUnion("templat
133
145
  createdAt: datetimeSchema,
134
146
  updatedAt: datetimeSchema
135
147
  }),
148
+ z.object({
149
+ id: z.string(),
150
+ templateKey: z.literal("order_amended"),
151
+ config: amendmentEmailNotificationConfigurationConfigSchema,
152
+ isActive: z.boolean(),
153
+ createdAt: datetimeSchema,
154
+ updatedAt: datetimeSchema
155
+ }),
136
156
  z.object({
137
157
  id: z.string(),
138
158
  templateKey: z.literal("order_delivered"),
@@ -206,6 +226,11 @@ var writableUpdateEmailNotificationConfigurationSchema = z.union([
206
226
  config: orderEmailNotificationConfigurationConfigSchema.optional(),
207
227
  isActive: z.boolean().optional()
208
228
  }),
229
+ z.object({
230
+ templateKey: z.literal("order_amended"),
231
+ config: amendmentEmailNotificationConfigurationConfigSchema.optional(),
232
+ isActive: z.boolean().optional()
233
+ }),
209
234
  z.object({
210
235
  templateKey: z.literal("order_delivered"),
211
236
  config: orderEmailNotificationConfigurationConfigSchema.optional(),
@@ -261,6 +286,12 @@ var writableCreateEmailNotificationConfigurationSchema = z.union([
261
286
  config: orderEmailNotificationConfigurationConfigSchema,
262
287
  isActive: z.boolean()
263
288
  }),
289
+ z.object({
290
+ pointOfSale: pointOfSaleIriSchema,
291
+ templateKey: z.literal("order_amended"),
292
+ config: amendmentEmailNotificationConfigurationConfigSchema,
293
+ isActive: z.boolean()
294
+ }),
264
295
  z.object({
265
296
  pointOfSale: pointOfSaleIriSchema,
266
297
  templateKey: z.literal("order_delivered"),
@@ -467,6 +498,7 @@ export {
467
498
  GetEmailNotificationConfigurations,
468
499
  GetEmailNotificationConfigurationsFromPointOfSale,
469
500
  UpdateEmailNotificationConfiguration,
501
+ amendmentEmailNotificationConfigurationConfigSchema,
470
502
  createEmailNotificationConfigurationInputSchema,
471
503
  createEmailNotificationConfigurationResponseSchema,
472
504
  deleteEmailNotificationConfigurationInputSchema,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-email-notification-configuration",
3
3
  "description": "Deliverart JavaScript SDK for Email Notification Configuration",
4
- "version": "2.36.0",
4
+ "version": "2.37.0-dev.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "zod": "4.3.5",
22
- "@deliverart/sdk-js-core": "2.36.0",
23
- "@deliverart/sdk-js-global-types": "2.36.0",
24
- "@deliverart/sdk-js-point-of-sale": "2.36.0"
22
+ "@deliverart/sdk-js-core": "2.37.0-dev.0",
23
+ "@deliverart/sdk-js-global-types": "2.37.0-dev.0",
24
+ "@deliverart/sdk-js-point-of-sale": "2.37.0-dev.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "vitest": "4.1.11"