@shophost/rest-api 2.0.60 → 2.0.62

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.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/src/bootstrap.js +1 -1
  3. package/src/bootstrap.js.map +1 -1
  4. package/src/container.d.ts +4 -0
  5. package/src/container.js +1 -1
  6. package/src/container.js.map +1 -1
  7. package/src/core/lib/prisma.d.ts +24 -24
  8. package/src/core/notifications/email.service.d.ts +12 -14
  9. package/src/core/notifications/email.service.js +1 -1
  10. package/src/core/notifications/email.service.js.map +1 -1
  11. package/src/features/access/access.route.d.ts +6 -6
  12. package/src/features/cart/cart.route.d.ts +15 -15
  13. package/src/features/cart/cart.schema.d.ts +27 -27
  14. package/src/features/cart/cart.service.d.ts +4 -4
  15. package/src/features/customer/customer.route.d.ts +9 -9
  16. package/src/features/customer/customer.schema.d.ts +9 -9
  17. package/src/features/customer/customer.service.d.ts +1 -1
  18. package/src/features/integration/integration-registry.d.ts +10 -10
  19. package/src/features/integration/integration-registry.js +1 -1
  20. package/src/features/integration/integration-registry.js.map +1 -1
  21. package/src/features/integration/integration.service.d.ts +5 -1
  22. package/src/features/integration/integration.service.js +1 -1
  23. package/src/features/integration/integration.service.js.map +1 -1
  24. package/src/features/manufacturer/manufacturer.route.d.ts +14 -14
  25. package/src/features/manufacturer/manufacturer.schema.d.ts +1 -1
  26. package/src/features/manufacturer/manufacturer.service.d.ts +2 -2
  27. package/src/features/order/order-fulfillment.service.d.ts +12 -0
  28. package/src/features/order/order-fulfillment.service.js +1 -0
  29. package/src/features/order/order-fulfillment.service.js.map +1 -0
  30. package/src/features/order/order.route.d.ts +61 -61
  31. package/src/features/order/order.schema.d.ts +14 -14
  32. package/src/features/order/order.service.d.ts +10 -6
  33. package/src/features/order/order.service.js +1 -1
  34. package/src/features/order/order.service.js.map +1 -1
  35. package/src/features/order/recipient.schema.d.ts +2 -2
  36. package/src/features/organization/organization-configuration.schema.d.ts +25 -25
  37. package/src/features/organization/organization.route.d.ts +67 -67
  38. package/src/features/organization/organization.schema.d.ts +25 -25
  39. package/src/features/organization/organization.service.d.ts +8 -8
  40. package/src/features/payment/payment-webhook.service.d.ts +12 -0
  41. package/src/features/payment/payment-webhook.service.js +1 -0
  42. package/src/features/payment/payment-webhook.service.js.map +1 -0
  43. package/src/features/payment/payment.service.d.ts +3 -11
  44. package/src/features/payment/payment.service.js +1 -1
  45. package/src/features/payment/payment.service.js.map +1 -1
  46. package/src/features/payment/stripe.service.d.ts +22 -31
  47. package/src/features/payment/stripe.service.js +1 -1
  48. package/src/features/payment/stripe.service.js.map +1 -1
  49. package/src/features/product/product-modifier.schema.d.ts +30 -30
  50. package/src/features/product/product.route.d.ts +182 -182
  51. package/src/features/product/product.schema.d.ts +65 -65
  52. package/src/features/product/product.service.d.ts +26 -26
  53. package/src/features/product-category/product-category.route.d.ts +14 -14
  54. package/src/features/product-category/product-category.schema.d.ts +1 -1
  55. package/src/features/product-category/product-category.service.d.ts +2 -2
  56. package/src/features/reservation/reservation.route.d.ts +12 -12
  57. package/src/features/reservation/reservation.schema.d.ts +6 -6
  58. package/src/features/reservation/reservation.service.d.ts +3 -5
  59. package/src/features/reservation/reservation.service.js +1 -1
  60. package/src/features/reservation/reservation.service.js.map +1 -1
  61. package/src/features/shipping-method/shipping-method.route.d.ts +6 -6
  62. package/src/features/webhook/webhook.handler.d.ts +2 -2
  63. package/src/features/webhook/webhook.handler.js +1 -1
  64. package/src/features/webhook/webhook.handler.js.map +1 -1
  65. package/src/schemas/locales.schema.d.ts +6 -6
  66. package/src/schemas/pagination.schema.d.ts +6 -6
  67. package/src/schemas/queries.schema.d.ts +6 -6
@@ -10,7 +10,13 @@ export declare const ModifierGroupSchema: z.ZodObject<{
10
10
  selectMin: z.ZodCoercedNumber<unknown>;
11
11
  selectMax: z.ZodCoercedNumber<unknown>;
12
12
  defaultLocale: z.ZodOptional<z.ZodEnum<{
13
+ hr: "hr";
14
+ th: "th";
15
+ tr: "tr";
13
16
  id: "id";
17
+ is: "is";
18
+ mt: "mt";
19
+ ml: "ml";
14
20
  af: "af";
15
21
  sq: "sq";
16
22
  ar_dz: "ar_dz";
@@ -37,7 +43,6 @@ export declare const ModifierGroupSchema: z.ZodObject<{
37
43
  zh_cn: "zh_cn";
38
44
  zh_sg: "zh_sg";
39
45
  zh_tw: "zh_tw";
40
- hr: "hr";
41
46
  cs: "cs";
42
47
  da: "da";
43
48
  nl_be: "nl_be";
@@ -72,7 +77,6 @@ export declare const ModifierGroupSchema: z.ZodObject<{
72
77
  he: "he";
73
78
  hi: "hi";
74
79
  hu: "hu";
75
- is: "is";
76
80
  ga: "ga";
77
81
  it: "it";
78
82
  it_ch: "it_ch";
@@ -82,9 +86,7 @@ export declare const ModifierGroupSchema: z.ZodObject<{
82
86
  lv: "lv";
83
87
  lt: "lt";
84
88
  mk: "mk";
85
- ml: "ml";
86
89
  ms: "ms";
87
- mt: "mt";
88
90
  no: "no";
89
91
  nb: "nb";
90
92
  nn: "nn";
@@ -115,8 +117,6 @@ export declare const ModifierGroupSchema: z.ZodObject<{
115
117
  es: "es";
116
118
  sv: "sv";
117
119
  sv_fi: "sv_fi";
118
- th: "th";
119
- tr: "tr";
120
120
  uk: "uk";
121
121
  ur: "ur";
122
122
  vi: "vi";
@@ -132,7 +132,13 @@ export declare const ModifierGroupSchema: z.ZodObject<{
132
132
  }, z.core.$strip>>>;
133
133
  translations: z.ZodArray<z.ZodObject<{
134
134
  locale: z.ZodEnum<{
135
+ hr: "hr";
136
+ th: "th";
137
+ tr: "tr";
135
138
  id: "id";
139
+ is: "is";
140
+ mt: "mt";
141
+ ml: "ml";
136
142
  af: "af";
137
143
  sq: "sq";
138
144
  ar_dz: "ar_dz";
@@ -159,7 +165,6 @@ export declare const ModifierGroupSchema: z.ZodObject<{
159
165
  zh_cn: "zh_cn";
160
166
  zh_sg: "zh_sg";
161
167
  zh_tw: "zh_tw";
162
- hr: "hr";
163
168
  cs: "cs";
164
169
  da: "da";
165
170
  nl_be: "nl_be";
@@ -194,7 +199,6 @@ export declare const ModifierGroupSchema: z.ZodObject<{
194
199
  he: "he";
195
200
  hi: "hi";
196
201
  hu: "hu";
197
- is: "is";
198
202
  ga: "ga";
199
203
  it: "it";
200
204
  it_ch: "it_ch";
@@ -204,9 +208,7 @@ export declare const ModifierGroupSchema: z.ZodObject<{
204
208
  lv: "lv";
205
209
  lt: "lt";
206
210
  mk: "mk";
207
- ml: "ml";
208
211
  ms: "ms";
209
- mt: "mt";
210
212
  no: "no";
211
213
  nb: "nb";
212
214
  nn: "nn";
@@ -237,8 +239,6 @@ export declare const ModifierGroupSchema: z.ZodObject<{
237
239
  es: "es";
238
240
  sv: "sv";
239
241
  sv_fi: "sv_fi";
240
- th: "th";
241
- tr: "tr";
242
242
  uk: "uk";
243
243
  ur: "ur";
244
244
  vi: "vi";
@@ -253,7 +253,13 @@ export declare const LocalizedModifierGroupSchema: z.ZodObject<{
253
253
  title: z.ZodNullable<z.ZodDefault<z.ZodString>>;
254
254
  id: z.ZodString;
255
255
  defaultLocale: z.ZodOptional<z.ZodEnum<{
256
+ hr: "hr";
257
+ th: "th";
258
+ tr: "tr";
256
259
  id: "id";
260
+ is: "is";
261
+ mt: "mt";
262
+ ml: "ml";
257
263
  af: "af";
258
264
  sq: "sq";
259
265
  ar_dz: "ar_dz";
@@ -280,7 +286,6 @@ export declare const LocalizedModifierGroupSchema: z.ZodObject<{
280
286
  zh_cn: "zh_cn";
281
287
  zh_sg: "zh_sg";
282
288
  zh_tw: "zh_tw";
283
- hr: "hr";
284
289
  cs: "cs";
285
290
  da: "da";
286
291
  nl_be: "nl_be";
@@ -315,7 +320,6 @@ export declare const LocalizedModifierGroupSchema: z.ZodObject<{
315
320
  he: "he";
316
321
  hi: "hi";
317
322
  hu: "hu";
318
- is: "is";
319
323
  ga: "ga";
320
324
  it: "it";
321
325
  it_ch: "it_ch";
@@ -325,9 +329,7 @@ export declare const LocalizedModifierGroupSchema: z.ZodObject<{
325
329
  lv: "lv";
326
330
  lt: "lt";
327
331
  mk: "mk";
328
- ml: "ml";
329
332
  ms: "ms";
330
- mt: "mt";
331
333
  no: "no";
332
334
  nb: "nb";
333
335
  nn: "nn";
@@ -358,8 +360,6 @@ export declare const LocalizedModifierGroupSchema: z.ZodObject<{
358
360
  es: "es";
359
361
  sv: "sv";
360
362
  sv_fi: "sv_fi";
361
- th: "th";
362
- tr: "tr";
363
363
  uk: "uk";
364
364
  ur: "ur";
365
365
  vi: "vi";
@@ -380,7 +380,13 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
380
380
  selectMin: z.ZodCoercedNumber<unknown>;
381
381
  selectMax: z.ZodCoercedNumber<unknown>;
382
382
  defaultLocale: z.ZodOptional<z.ZodEnum<{
383
+ hr: "hr";
384
+ th: "th";
385
+ tr: "tr";
383
386
  id: "id";
387
+ is: "is";
388
+ mt: "mt";
389
+ ml: "ml";
384
390
  af: "af";
385
391
  sq: "sq";
386
392
  ar_dz: "ar_dz";
@@ -407,7 +413,6 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
407
413
  zh_cn: "zh_cn";
408
414
  zh_sg: "zh_sg";
409
415
  zh_tw: "zh_tw";
410
- hr: "hr";
411
416
  cs: "cs";
412
417
  da: "da";
413
418
  nl_be: "nl_be";
@@ -442,7 +447,6 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
442
447
  he: "he";
443
448
  hi: "hi";
444
449
  hu: "hu";
445
- is: "is";
446
450
  ga: "ga";
447
451
  it: "it";
448
452
  it_ch: "it_ch";
@@ -452,9 +456,7 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
452
456
  lv: "lv";
453
457
  lt: "lt";
454
458
  mk: "mk";
455
- ml: "ml";
456
459
  ms: "ms";
457
- mt: "mt";
458
460
  no: "no";
459
461
  nb: "nb";
460
462
  nn: "nn";
@@ -485,8 +487,6 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
485
487
  es: "es";
486
488
  sv: "sv";
487
489
  sv_fi: "sv_fi";
488
- th: "th";
489
- tr: "tr";
490
490
  uk: "uk";
491
491
  ur: "ur";
492
492
  vi: "vi";
@@ -502,7 +502,13 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
502
502
  }, z.core.$strip>>>;
503
503
  translations: z.ZodArray<z.ZodObject<{
504
504
  locale: z.ZodEnum<{
505
+ hr: "hr";
506
+ th: "th";
507
+ tr: "tr";
505
508
  id: "id";
509
+ is: "is";
510
+ mt: "mt";
511
+ ml: "ml";
506
512
  af: "af";
507
513
  sq: "sq";
508
514
  ar_dz: "ar_dz";
@@ -529,7 +535,6 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
529
535
  zh_cn: "zh_cn";
530
536
  zh_sg: "zh_sg";
531
537
  zh_tw: "zh_tw";
532
- hr: "hr";
533
538
  cs: "cs";
534
539
  da: "da";
535
540
  nl_be: "nl_be";
@@ -564,7 +569,6 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
564
569
  he: "he";
565
570
  hi: "hi";
566
571
  hu: "hu";
567
- is: "is";
568
572
  ga: "ga";
569
573
  it: "it";
570
574
  it_ch: "it_ch";
@@ -574,9 +578,7 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
574
578
  lv: "lv";
575
579
  lt: "lt";
576
580
  mk: "mk";
577
- ml: "ml";
578
581
  ms: "ms";
579
- mt: "mt";
580
582
  no: "no";
581
583
  nb: "nb";
582
584
  nn: "nn";
@@ -607,8 +609,6 @@ export declare const CreateOrUpdateModifierGroupSchema: z.ZodObject<{
607
609
  es: "es";
608
610
  sv: "sv";
609
611
  sv_fi: "sv_fi";
610
- th: "th";
611
- tr: "tr";
612
612
  uk: "uk";
613
613
  ur: "ur";
614
614
  vi: "vi";