@shophost/rest-api 2.0.58 → 2.0.60

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 (46) 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 +3 -1
  5. package/src/container.js +1 -1
  6. package/src/container.js.map +1 -1
  7. package/src/core/notifications/email.service.d.ts +1 -1
  8. package/src/core/notifications/email.service.js +1 -1
  9. package/src/core/notifications/email.service.js.map +1 -1
  10. package/src/features/customer/customer.handler.d.ts +2 -0
  11. package/src/features/customer/customer.handler.js +1 -0
  12. package/src/features/customer/customer.handler.js.map +1 -0
  13. package/src/features/customer/customer.route.d.ts +712 -0
  14. package/src/features/customer/customer.route.js +1 -0
  15. package/src/features/customer/customer.route.js.map +1 -0
  16. package/src/features/customer/customer.schema.d.ts +576 -0
  17. package/src/features/customer/customer.schema.js +1 -0
  18. package/src/features/customer/customer.schema.js.map +1 -0
  19. package/src/features/customer/customer.service.d.ts +166 -0
  20. package/src/features/customer/customer.service.js +1 -0
  21. package/src/features/customer/customer.service.js.map +1 -0
  22. package/src/features/index.d.ts +1 -0
  23. package/src/features/index.js +1 -1
  24. package/src/features/index.js.map +1 -1
  25. package/src/features/integration/integration.handler.js +1 -1
  26. package/src/features/integration/integration.handler.js.map +1 -1
  27. package/src/features/integration/integration.route.d.ts +175 -0
  28. package/src/features/integration/integration.route.js +1 -1
  29. package/src/features/integration/integration.route.js.map +1 -1
  30. package/src/features/integration/integration.schema.d.ts +13 -0
  31. package/src/features/integration/integration.schema.js +1 -1
  32. package/src/features/integration/integration.schema.js.map +1 -1
  33. package/src/features/integration/integration.service.d.ts +7 -0
  34. package/src/features/integration/integration.service.js +1 -1
  35. package/src/features/integration/integration.service.js.map +1 -1
  36. package/src/features/payment/payment.service.js +1 -1
  37. package/src/features/payment/payment.service.js.map +1 -1
  38. package/src/features/payment/stripe.service.d.ts +10 -0
  39. package/src/features/payment/stripe.service.js +1 -1
  40. package/src/features/payment/stripe.service.js.map +1 -1
  41. package/src/features/reservation/reservation.service.d.ts +1 -0
  42. package/src/features/reservation/reservation.service.js +1 -1
  43. package/src/features/reservation/reservation.service.js.map +1 -1
  44. package/src/schemas/index.d.ts +1 -0
  45. package/src/schemas/index.js +1 -1
  46. package/src/schemas/index.js.map +1 -1
@@ -0,0 +1,712 @@
1
+ import { z } from "@hono/zod-openapi";
2
+ export declare const customerRoute: {
3
+ getCustomer: {
4
+ description: string | undefined;
5
+ method: import("@hono/zod-openapi").RouteConfig["method"];
6
+ operationId: string;
7
+ path: string;
8
+ request: Record<never, never> & {
9
+ headers: z.ZodObject<{
10
+ "accept-language": z.ZodOptional<z.ZodString>;
11
+ cookie: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ } & {
14
+ params: z.ZodObject<{
15
+ organizationId: z.ZodString;
16
+ id: z.ZodString;
17
+ }, z.core.$strip>;
18
+ };
19
+ responses: {
20
+ 200: {
21
+ content: {
22
+ "application/json": {
23
+ schema: z.ZodObject<{
24
+ customer: z.ZodObject<{
25
+ id: z.ZodString;
26
+ email: z.ZodString;
27
+ firstname: z.ZodString;
28
+ lastname: z.ZodString;
29
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ createdAt: z.ZodDate;
32
+ orderCount: z.ZodNumber;
33
+ reservationCount: z.ZodNumber;
34
+ }, z.core.$strip>;
35
+ orders: z.ZodArray<z.ZodPipe<z.ZodObject<{
36
+ id: z.ZodString;
37
+ referenceId: z.ZodString;
38
+ status: z.ZodOptional<z.ZodEnum<{
39
+ pending: "pending";
40
+ draft: "draft";
41
+ accepted: "accepted";
42
+ "ready-for-dispatch": "ready-for-dispatch";
43
+ dispatched: "dispatched";
44
+ completed: "completed";
45
+ cancelled: "cancelled";
46
+ }>>;
47
+ token: z.ZodString;
48
+ expiresAt: z.ZodDate;
49
+ items: z.ZodArray<z.ZodObject<{
50
+ translations: z.ZodArray<z.ZodObject<{
51
+ locale: z.ZodEnum<{
52
+ id: "id";
53
+ af: "af";
54
+ sq: "sq";
55
+ ar_dz: "ar_dz";
56
+ ar_bh: "ar_bh";
57
+ ar_eg: "ar_eg";
58
+ ar_iq: "ar_iq";
59
+ ar_jo: "ar_jo";
60
+ ar_kw: "ar_kw";
61
+ ar_lb: "ar_lb";
62
+ ar_ly: "ar_ly";
63
+ ar_ma: "ar_ma";
64
+ ar_om: "ar_om";
65
+ ar_qa: "ar_qa";
66
+ ar_sa: "ar_sa";
67
+ ar_sy: "ar_sy";
68
+ ar_tn: "ar_tn";
69
+ ar_ae: "ar_ae";
70
+ ar_ye: "ar_ye";
71
+ eu: "eu";
72
+ be: "be";
73
+ bg: "bg";
74
+ ca: "ca";
75
+ zh_hk: "zh_hk";
76
+ zh_cn: "zh_cn";
77
+ zh_sg: "zh_sg";
78
+ zh_tw: "zh_tw";
79
+ hr: "hr";
80
+ cs: "cs";
81
+ da: "da";
82
+ nl_be: "nl_be";
83
+ nl: "nl";
84
+ en: "en";
85
+ en_au: "en_au";
86
+ en_bz: "en_bz";
87
+ en_ca: "en_ca";
88
+ en_ie: "en_ie";
89
+ en_jm: "en_jm";
90
+ en_nz: "en_nz";
91
+ en_za: "en_za";
92
+ en_tt: "en_tt";
93
+ en_gb: "en_gb";
94
+ en_us: "en_us";
95
+ et: "et";
96
+ fo: "fo";
97
+ fa: "fa";
98
+ fi: "fi";
99
+ fr_be: "fr_be";
100
+ fr_ca: "fr_ca";
101
+ fr_lu: "fr_lu";
102
+ fr: "fr";
103
+ fr_ch: "fr_ch";
104
+ gd: "gd";
105
+ de_at: "de_at";
106
+ de_li: "de_li";
107
+ de_lu: "de_lu";
108
+ de: "de";
109
+ de_ch: "de_ch";
110
+ el: "el";
111
+ he: "he";
112
+ hi: "hi";
113
+ hu: "hu";
114
+ is: "is";
115
+ ga: "ga";
116
+ it: "it";
117
+ it_ch: "it_ch";
118
+ ja: "ja";
119
+ ko: "ko";
120
+ ku: "ku";
121
+ lv: "lv";
122
+ lt: "lt";
123
+ mk: "mk";
124
+ ml: "ml";
125
+ ms: "ms";
126
+ mt: "mt";
127
+ no: "no";
128
+ nb: "nb";
129
+ nn: "nn";
130
+ pl: "pl";
131
+ pt_br: "pt_br";
132
+ pt: "pt";
133
+ pa: "pa";
134
+ rm: "rm";
135
+ ro: "ro";
136
+ ro_md: "ro_md";
137
+ ru: "ru";
138
+ ru_md: "ru_md";
139
+ sr: "sr";
140
+ sk: "sk";
141
+ sl: "sl";
142
+ sb: "sb";
143
+ es_ar: "es_ar";
144
+ es_bo: "es_bo";
145
+ es_cl: "es_cl";
146
+ es_co: "es_co";
147
+ es_cr: "es_cr";
148
+ es_do: "es_do";
149
+ es_ec: "es_ec";
150
+ es_sv: "es_sv";
151
+ es_gt: "es_gt";
152
+ es_hn: "es_hn";
153
+ es_mx: "es_mx";
154
+ es: "es";
155
+ sv: "sv";
156
+ sv_fi: "sv_fi";
157
+ th: "th";
158
+ tr: "tr";
159
+ uk: "uk";
160
+ ur: "ur";
161
+ vi: "vi";
162
+ cy: "cy";
163
+ ji: "ji";
164
+ zu: "zu";
165
+ }>;
166
+ title: z.ZodString;
167
+ subtitle: z.ZodString;
168
+ }, z.core.$strip>>;
169
+ rawData: z.ZodObject<{
170
+ productId: z.ZodString;
171
+ quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
172
+ modifierGroups: z.ZodArray<z.ZodObject<{
173
+ id: z.ZodString;
174
+ modifiers: z.ZodArray<z.ZodObject<{
175
+ id: z.ZodString;
176
+ quantity: z.ZodDefault<z.ZodNumber>;
177
+ }, z.core.$strip>>;
178
+ }, z.core.$strip>>;
179
+ }, z.core.$strip>;
180
+ unitPrice: z.ZodNumber;
181
+ image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
182
+ id: z.ZodString;
183
+ url: z.ZodString;
184
+ mimeType: z.ZodString;
185
+ size: z.ZodNumber;
186
+ filename: z.ZodString;
187
+ }, z.core.$strip>>>;
188
+ totalPrice: z.ZodNumber;
189
+ quantity: z.ZodNumber;
190
+ productSnapshotId: z.ZodString;
191
+ }, z.core.$strip>>;
192
+ shippingMethod: z.ZodNullable<z.ZodObject<{
193
+ id: z.ZodString;
194
+ title: z.ZodString;
195
+ providerName: z.ZodString;
196
+ providerLogo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
197
+ id: z.ZodString;
198
+ url: z.ZodString;
199
+ mimeType: z.ZodString;
200
+ size: z.ZodNumber;
201
+ filename: z.ZodString;
202
+ }, z.core.$strip>>>;
203
+ requireDateOfDelivery: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
204
+ shippingZones: z.ZodArray<z.ZodObject<{
205
+ id: z.ZodOptional<z.ZodString>;
206
+ title: z.ZodString;
207
+ distanceUpto: z.ZodCoercedNumber<unknown>;
208
+ price: z.ZodCoercedNumber<unknown>;
209
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
210
+ eta: z.ZodString;
211
+ }, z.core.$strip>>;
212
+ eligibleShippingZone: z.ZodOptional<z.ZodObject<{
213
+ id: z.ZodOptional<z.ZodString>;
214
+ title: z.ZodString;
215
+ distanceUpto: z.ZodCoercedNumber<unknown>;
216
+ price: z.ZodCoercedNumber<unknown>;
217
+ minimumOrderAmount: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>, z.ZodTransform<string | number | null, string | number | null | undefined>>, z.ZodNullable<z.ZodNumber>>;
218
+ eta: z.ZodString;
219
+ }, z.core.$strip>>;
220
+ createdAt: z.ZodDate;
221
+ updatedAt: z.ZodDate;
222
+ }, z.core.$strip>>;
223
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
224
+ dispatchedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
225
+ readyForDispatchAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
226
+ createdAt: z.ZodDate;
227
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
228
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
229
+ inventoryDeductedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
230
+ inventoryConflictAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
231
+ inventoryConflictItems: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
232
+ productId: z.ZodString;
233
+ title: z.ZodString;
234
+ requestedQuantity: z.ZodNumber;
235
+ availableQuantity: z.ZodNumber;
236
+ }, z.core.$strip>>>>;
237
+ shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
238
+ id: z.ZodString;
239
+ firstname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
240
+ lastname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
241
+ phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
242
+ addressLineOne: z.ZodString;
243
+ doorNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ addressLineTwo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
+ zipCode: z.ZodOptional<z.ZodString>;
246
+ city: z.ZodString;
247
+ country: z.ZodString;
248
+ placeId: z.ZodString;
249
+ deliveryInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ }, z.core.$strip>>>;
251
+ fulfilmentMethod: z.ZodEnum<{
252
+ delivery: "delivery";
253
+ pickup: "pickup";
254
+ }>;
255
+ currency: z.ZodEnum<{
256
+ USD: "USD";
257
+ EUR: "EUR";
258
+ GBP: "GBP";
259
+ JPY: "JPY";
260
+ AUD: "AUD";
261
+ CAD: "CAD";
262
+ CHF: "CHF";
263
+ CNY: "CNY";
264
+ SEK: "SEK";
265
+ NZD: "NZD";
266
+ MXN: "MXN";
267
+ SGD: "SGD";
268
+ HKD: "HKD";
269
+ NOK: "NOK";
270
+ KRW: "KRW";
271
+ TRY: "TRY";
272
+ RUB: "RUB";
273
+ INR: "INR";
274
+ BRL: "BRL";
275
+ ZAR: "ZAR";
276
+ DKK: "DKK";
277
+ PLN: "PLN";
278
+ THB: "THB";
279
+ IDR: "IDR";
280
+ HUF: "HUF";
281
+ CZK: "CZK";
282
+ ILS: "ILS";
283
+ PHP: "PHP";
284
+ AED: "AED";
285
+ COP: "COP";
286
+ SAR: "SAR";
287
+ MYR: "MYR";
288
+ RON: "RON";
289
+ }>;
290
+ payment: z.ZodObject<{
291
+ id: z.ZodString;
292
+ method: z.ZodEnum<{
293
+ card: "card";
294
+ blik: "blik";
295
+ paypal: "paypal";
296
+ cash_on_delivery: "cash_on_delivery";
297
+ }>;
298
+ provider: z.ZodEnum<{
299
+ stripe: "stripe";
300
+ revolut: "revolut";
301
+ payu: "payu";
302
+ not_applicable: "not_applicable";
303
+ }>;
304
+ status: z.ZodEnum<{
305
+ pending: "pending";
306
+ succeeded: "succeeded";
307
+ refunded: "refunded";
308
+ failed: "failed";
309
+ canceled: "canceled";
310
+ }>;
311
+ shipping: z.ZodDefault<z.ZodNumber>;
312
+ subtotal: z.ZodNumber;
313
+ total: z.ZodNumber;
314
+ discount: z.ZodDefault<z.ZodNumber>;
315
+ currency: z.ZodEnum<{
316
+ USD: "USD";
317
+ EUR: "EUR";
318
+ GBP: "GBP";
319
+ JPY: "JPY";
320
+ AUD: "AUD";
321
+ CAD: "CAD";
322
+ CHF: "CHF";
323
+ CNY: "CNY";
324
+ SEK: "SEK";
325
+ NZD: "NZD";
326
+ MXN: "MXN";
327
+ SGD: "SGD";
328
+ HKD: "HKD";
329
+ NOK: "NOK";
330
+ KRW: "KRW";
331
+ TRY: "TRY";
332
+ RUB: "RUB";
333
+ INR: "INR";
334
+ BRL: "BRL";
335
+ ZAR: "ZAR";
336
+ DKK: "DKK";
337
+ PLN: "PLN";
338
+ THB: "THB";
339
+ IDR: "IDR";
340
+ HUF: "HUF";
341
+ CZK: "CZK";
342
+ ILS: "ILS";
343
+ PHP: "PHP";
344
+ AED: "AED";
345
+ COP: "COP";
346
+ SAR: "SAR";
347
+ MYR: "MYR";
348
+ RON: "RON";
349
+ }>;
350
+ }, z.core.$strip>;
351
+ }, z.core.$strip>, z.ZodTransform<{
352
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
353
+ id: string;
354
+ referenceId: string;
355
+ token: string;
356
+ expiresAt: Date;
357
+ items: {
358
+ translations: {
359
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
360
+ title: string;
361
+ subtitle: string;
362
+ }[];
363
+ rawData: {
364
+ productId: string;
365
+ modifierGroups: {
366
+ id: string;
367
+ modifiers: {
368
+ id: string;
369
+ quantity: number;
370
+ }[];
371
+ }[];
372
+ quantity?: number | undefined;
373
+ };
374
+ unitPrice: number;
375
+ totalPrice: number;
376
+ quantity: number;
377
+ productSnapshotId: string;
378
+ image?: {
379
+ id: string;
380
+ url: string;
381
+ mimeType: string;
382
+ size: number;
383
+ filename: string;
384
+ } | null | undefined;
385
+ }[];
386
+ shippingMethod: {
387
+ id: string;
388
+ title: string;
389
+ providerName: string;
390
+ shippingZones: {
391
+ title: string;
392
+ distanceUpto: number;
393
+ price: number;
394
+ minimumOrderAmount: number | null;
395
+ eta: string;
396
+ id?: string | undefined;
397
+ }[];
398
+ createdAt: Date;
399
+ updatedAt: Date;
400
+ providerLogo?: {
401
+ id: string;
402
+ url: string;
403
+ mimeType: string;
404
+ size: number;
405
+ filename: string;
406
+ } | null | undefined;
407
+ requireDateOfDelivery?: boolean | undefined;
408
+ eligibleShippingZone?: {
409
+ title: string;
410
+ distanceUpto: number;
411
+ price: number;
412
+ minimumOrderAmount: number | null;
413
+ eta: string;
414
+ id?: string | undefined;
415
+ } | undefined;
416
+ } | null;
417
+ createdAt: Date;
418
+ fulfilmentMethod: "delivery" | "pickup";
419
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
420
+ payment: {
421
+ id: string;
422
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
423
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
424
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
425
+ shipping: number;
426
+ subtotal: number;
427
+ total: number;
428
+ discount: number;
429
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
430
+ };
431
+ acceptedAt?: Date | null | undefined;
432
+ dispatchedAt?: Date | null | undefined;
433
+ readyForDispatchAt?: Date | null | undefined;
434
+ completedAt?: Date | null | undefined;
435
+ cancelledAt?: Date | null | undefined;
436
+ inventoryDeductedAt?: Date | null | undefined;
437
+ inventoryConflictAt?: Date | null | undefined;
438
+ inventoryConflictItems?: {
439
+ productId: string;
440
+ title: string;
441
+ requestedQuantity: number;
442
+ availableQuantity: number;
443
+ }[] | null | undefined;
444
+ shippingAddress?: {
445
+ id: string;
446
+ addressLineOne: string;
447
+ city: string;
448
+ country: string;
449
+ placeId: string;
450
+ firstname?: string | null | undefined;
451
+ lastname?: string | null | undefined;
452
+ phone?: string | null | undefined;
453
+ doorNumber?: string | null | undefined;
454
+ addressLineTwo?: string | null | undefined;
455
+ zipCode?: string | undefined;
456
+ deliveryInstructions?: string | null | undefined;
457
+ } | null | undefined;
458
+ }, {
459
+ id: string;
460
+ referenceId: string;
461
+ token: string;
462
+ expiresAt: Date;
463
+ items: {
464
+ translations: {
465
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
466
+ title: string;
467
+ subtitle: string;
468
+ }[];
469
+ rawData: {
470
+ productId: string;
471
+ modifierGroups: {
472
+ id: string;
473
+ modifiers: {
474
+ id: string;
475
+ quantity: number;
476
+ }[];
477
+ }[];
478
+ quantity?: number | undefined;
479
+ };
480
+ unitPrice: number;
481
+ totalPrice: number;
482
+ quantity: number;
483
+ productSnapshotId: string;
484
+ image?: {
485
+ id: string;
486
+ url: string;
487
+ mimeType: string;
488
+ size: number;
489
+ filename: string;
490
+ } | null | undefined;
491
+ }[];
492
+ shippingMethod: {
493
+ id: string;
494
+ title: string;
495
+ providerName: string;
496
+ shippingZones: {
497
+ title: string;
498
+ distanceUpto: number;
499
+ price: number;
500
+ minimumOrderAmount: number | null;
501
+ eta: string;
502
+ id?: string | undefined;
503
+ }[];
504
+ createdAt: Date;
505
+ updatedAt: Date;
506
+ providerLogo?: {
507
+ id: string;
508
+ url: string;
509
+ mimeType: string;
510
+ size: number;
511
+ filename: string;
512
+ } | null | undefined;
513
+ requireDateOfDelivery?: boolean | undefined;
514
+ eligibleShippingZone?: {
515
+ title: string;
516
+ distanceUpto: number;
517
+ price: number;
518
+ minimumOrderAmount: number | null;
519
+ eta: string;
520
+ id?: string | undefined;
521
+ } | undefined;
522
+ } | null;
523
+ createdAt: Date;
524
+ fulfilmentMethod: "delivery" | "pickup";
525
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
526
+ payment: {
527
+ id: string;
528
+ method: "card" | "blik" | "paypal" | "cash_on_delivery";
529
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
530
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
531
+ shipping: number;
532
+ subtotal: number;
533
+ total: number;
534
+ discount: number;
535
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
536
+ };
537
+ status?: "pending" | "draft" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled" | undefined;
538
+ acceptedAt?: Date | null | undefined;
539
+ dispatchedAt?: Date | null | undefined;
540
+ readyForDispatchAt?: Date | null | undefined;
541
+ completedAt?: Date | null | undefined;
542
+ cancelledAt?: Date | null | undefined;
543
+ inventoryDeductedAt?: Date | null | undefined;
544
+ inventoryConflictAt?: Date | null | undefined;
545
+ inventoryConflictItems?: {
546
+ productId: string;
547
+ title: string;
548
+ requestedQuantity: number;
549
+ availableQuantity: number;
550
+ }[] | null | undefined;
551
+ shippingAddress?: {
552
+ id: string;
553
+ addressLineOne: string;
554
+ city: string;
555
+ country: string;
556
+ placeId: string;
557
+ firstname?: string | null | undefined;
558
+ lastname?: string | null | undefined;
559
+ phone?: string | null | undefined;
560
+ doorNumber?: string | null | undefined;
561
+ addressLineTwo?: string | null | undefined;
562
+ zipCode?: string | undefined;
563
+ deliveryInstructions?: string | null | undefined;
564
+ } | null | undefined;
565
+ }>>>;
566
+ reservations: z.ZodArray<z.ZodObject<{
567
+ id: z.ZodString;
568
+ firstname: z.ZodString;
569
+ lastname: z.ZodString;
570
+ guests: z.ZodCoercedNumber<unknown>;
571
+ phone: z.ZodString;
572
+ date: z.ZodCoercedDate<unknown>;
573
+ referenceId: z.ZodString;
574
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
575
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
576
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
577
+ }, z.core.$strip>>;
578
+ }, z.core.$strip>;
579
+ };
580
+ };
581
+ description: string;
582
+ };
583
+ 400: {
584
+ content: {
585
+ "application/json": {
586
+ schema: z.ZodObject<{
587
+ status: z.ZodNumber;
588
+ message: z.ZodString;
589
+ }, z.core.$strip>;
590
+ };
591
+ };
592
+ description: string;
593
+ };
594
+ 401: {
595
+ content: {
596
+ "application/json": {
597
+ schema: z.ZodObject<{
598
+ status: z.ZodNumber;
599
+ message: z.ZodString;
600
+ }, z.core.$strip>;
601
+ };
602
+ };
603
+ description: string;
604
+ };
605
+ 404: {
606
+ content: {
607
+ "application/json": {
608
+ schema: z.ZodObject<{
609
+ status: z.ZodNumber;
610
+ message: z.ZodString;
611
+ }, z.core.$strip>;
612
+ };
613
+ };
614
+ description: string;
615
+ };
616
+ };
617
+ summary: string;
618
+ tags: string[];
619
+ } & {
620
+ getRoutingPath(): string;
621
+ };
622
+ getCustomers: {
623
+ description: string | undefined;
624
+ method: import("@hono/zod-openapi").RouteConfig["method"];
625
+ operationId: string;
626
+ path: string;
627
+ request: Record<never, never> & {
628
+ headers: z.ZodObject<{
629
+ "accept-language": z.ZodOptional<z.ZodString>;
630
+ cookie: z.ZodOptional<z.ZodString>;
631
+ }, z.core.$strip>;
632
+ } & {
633
+ params: z.ZodObject<{
634
+ organizationId: z.ZodString;
635
+ }, z.core.$strip>;
636
+ } & {
637
+ query: z.ZodObject<{
638
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
639
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
640
+ search: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strip>;
642
+ };
643
+ responses: {
644
+ 200: {
645
+ content: {
646
+ "application/json": {
647
+ schema: z.ZodObject<{
648
+ list: z.ZodArray<z.ZodObject<{
649
+ id: z.ZodString;
650
+ email: z.ZodString;
651
+ firstname: z.ZodString;
652
+ lastname: z.ZodString;
653
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
654
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
+ createdAt: z.ZodDate;
656
+ orderCount: z.ZodNumber;
657
+ reservationCount: z.ZodNumber;
658
+ }, z.core.$strip>>;
659
+ meta: z.ZodObject<{
660
+ isFirstPage: z.ZodBoolean;
661
+ isLastPage: z.ZodBoolean;
662
+ currentPage: z.ZodNumber;
663
+ previousPage: z.ZodNullable<z.ZodNumber>;
664
+ nextPage: z.ZodNullable<z.ZodNumber>;
665
+ pageCount: z.ZodNumber;
666
+ totalCount: z.ZodNumber;
667
+ }, z.core.$strip>;
668
+ }, z.core.$strip>;
669
+ };
670
+ };
671
+ description: string;
672
+ };
673
+ 400: {
674
+ content: {
675
+ "application/json": {
676
+ schema: z.ZodObject<{
677
+ status: z.ZodNumber;
678
+ message: z.ZodString;
679
+ }, z.core.$strip>;
680
+ };
681
+ };
682
+ description: string;
683
+ };
684
+ 401: {
685
+ content: {
686
+ "application/json": {
687
+ schema: z.ZodObject<{
688
+ status: z.ZodNumber;
689
+ message: z.ZodString;
690
+ }, z.core.$strip>;
691
+ };
692
+ };
693
+ description: string;
694
+ };
695
+ 404: {
696
+ content: {
697
+ "application/json": {
698
+ schema: z.ZodObject<{
699
+ status: z.ZodNumber;
700
+ message: z.ZodString;
701
+ }, z.core.$strip>;
702
+ };
703
+ };
704
+ description: string;
705
+ };
706
+ };
707
+ summary: string;
708
+ tags: string[];
709
+ } & {
710
+ getRoutingPath(): string;
711
+ };
712
+ };