@shophost/rest-api 2.0.35 → 2.0.37

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 (145) hide show
  1. package/LICENSE +17 -13
  2. package/README.md +76 -66
  3. package/package.json +2 -2
  4. package/src/app.js +1 -1
  5. package/src/app.js.map +1 -1
  6. package/src/core/db/__generated__/client/internal/class.js +1 -1
  7. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +2 -2
  8. package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -1
  9. package/src/core/db/__generated__/client/models/Account.d.ts +0 -5
  10. package/src/core/db/__generated__/client/models/Address.d.ts +0 -5
  11. package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -5
  12. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -5
  13. package/src/core/db/__generated__/client/models/File.d.ts +0 -5
  14. package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -5
  15. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -5
  16. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -5
  17. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -5
  18. package/src/core/db/__generated__/client/models/Member.d.ts +0 -5
  19. package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -5
  20. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -5
  21. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -5
  22. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -5
  23. package/src/core/db/__generated__/client/models/Order.d.ts +0 -5
  24. package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -5
  25. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -5
  26. package/src/core/db/__generated__/client/models/Organization.d.ts +0 -5
  27. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -5
  28. package/src/core/db/__generated__/client/models/Payment.d.ts +0 -5
  29. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -5
  30. package/src/core/db/__generated__/client/models/Product.d.ts +0 -5
  31. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -5
  32. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -5
  33. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -5
  34. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -5
  35. package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -5
  36. package/src/core/db/__generated__/client/models/Session.d.ts +0 -5
  37. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -5
  38. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -5
  39. package/src/core/db/__generated__/client/models/User.d.ts +0 -5
  40. package/src/core/db/__generated__/client/models/Verification.d.ts +0 -5
  41. package/src/core/email/components.d.ts +16 -0
  42. package/src/core/email/components.js +1 -0
  43. package/src/core/email/components.js.map +1 -0
  44. package/src/core/hono/hono.d.ts +53 -11
  45. package/src/core/hono/hono.js +1 -1
  46. package/src/core/hono/hono.js.map +1 -1
  47. package/src/core/lib/prisma.d.ts +8 -8
  48. package/src/features/access/access.handler.js.map +1 -1
  49. package/src/features/access/access.route.d.ts +774 -10
  50. package/src/features/analytics/analytics.handler.d.ts +2 -0
  51. package/src/features/analytics/analytics.handler.js +1 -0
  52. package/src/features/analytics/analytics.handler.js.map +1 -0
  53. package/src/features/analytics/analytics.route.d.ts +148 -0
  54. package/src/features/analytics/analytics.route.js +1 -0
  55. package/src/features/analytics/analytics.route.js.map +1 -0
  56. package/src/features/analytics/analytics.schema.d.ts +86 -0
  57. package/src/features/analytics/analytics.schema.js +1 -0
  58. package/src/features/analytics/analytics.schema.js.map +1 -0
  59. package/src/features/analytics/analytics.service.d.ts +45 -0
  60. package/src/features/analytics/analytics.service.js +1 -0
  61. package/src/features/analytics/analytics.service.js.map +1 -0
  62. package/src/features/cart/cart.handler.js.map +1 -1
  63. package/src/features/cart/cart.route.d.ts +349 -1
  64. package/src/features/cart/cart.schema.d.ts +1 -1
  65. package/src/features/cart/cart.service.d.ts +1 -1
  66. package/src/features/file/file.handler.js.map +1 -1
  67. package/src/features/file/file.route.d.ts +104 -2
  68. package/src/features/file/file.service.d.ts +2 -1
  69. package/src/features/file/file.service.js.map +1 -1
  70. package/src/features/health/health.handler.js.map +1 -1
  71. package/src/features/health/health.route.d.ts +40 -1
  72. package/src/features/index.d.ts +1 -0
  73. package/src/features/index.js +1 -1
  74. package/src/features/index.js.map +1 -1
  75. package/src/features/location/location.handler.js +1 -1
  76. package/src/features/location/location.handler.js.map +1 -1
  77. package/src/features/location/location.route.d.ts +118 -2
  78. package/src/features/manufacturer/manufacturer.handler.js.map +1 -1
  79. package/src/features/manufacturer/manufacturer.route.d.ts +675 -5
  80. package/src/features/order/emails/order-confirmation.email.js +1 -1
  81. package/src/features/order/emails/order-confirmation.email.js.map +1 -1
  82. package/src/features/order/emails/order-notification.email.js +1 -1
  83. package/src/features/order/emails/order-notification.email.js.map +1 -1
  84. package/src/features/order/order.handler.js +1 -1
  85. package/src/features/order/order.handler.js.map +1 -1
  86. package/src/features/order/order.route.d.ts +3193 -5
  87. package/src/features/order/order.route.js +1 -1
  88. package/src/features/order/order.route.js.map +1 -1
  89. package/src/features/order/order.schema.d.ts +4 -4
  90. package/src/features/order/order.service.d.ts +119 -4
  91. package/src/features/order/order.service.js +1 -1
  92. package/src/features/order/order.service.js.map +1 -1
  93. package/src/features/organization/organization.handler.js.map +1 -1
  94. package/src/features/organization/organization.route.d.ts +1973 -5
  95. package/src/features/payment/payment.handler.js.map +1 -1
  96. package/src/features/payment/payment.route.d.ts +67 -1
  97. package/src/features/payment/payment.schema.d.ts +3 -3
  98. package/src/features/payment/payment.service.d.ts +1 -1
  99. package/src/features/product/product.handler.js.map +1 -1
  100. package/src/features/product/product.route.d.ts +4267 -7
  101. package/src/features/product/product.schema.d.ts +3 -3
  102. package/src/features/product/product.service.d.ts +2 -2
  103. package/src/features/product-category/product-category.handler.js.map +1 -1
  104. package/src/features/product-category/product-category.route.d.ts +774 -6
  105. package/src/features/reservation/emails/reservation-cancellation.email.js +1 -1
  106. package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -1
  107. package/src/features/reservation/emails/reservation-confirmation.email.js +1 -1
  108. package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -1
  109. package/src/features/reservation/emails/reservation-notification.email.js +1 -1
  110. package/src/features/reservation/emails/reservation-notification.email.js.map +1 -1
  111. package/src/features/reservation/reservation.handler.js +1 -1
  112. package/src/features/reservation/reservation.handler.js.map +1 -1
  113. package/src/features/reservation/reservation.route.d.ts +854 -6
  114. package/src/features/reservation/reservation.route.js +1 -1
  115. package/src/features/reservation/reservation.route.js.map +1 -1
  116. package/src/features/reservation/reservation.schema.d.ts +1 -1
  117. package/src/features/reservation/reservation.service.d.ts +27 -0
  118. package/src/features/reservation/reservation.service.js +1 -1
  119. package/src/features/reservation/reservation.service.js.map +1 -1
  120. package/src/features/shipping/shipping.handler.js.map +1 -1
  121. package/src/features/shipping/shipping.route.d.ts +214 -3
  122. package/src/features/shipping-method/shipping-method.handler.js.map +1 -1
  123. package/src/features/shipping-method/shipping-method.route.d.ts +663 -6
  124. package/src/features/webhook/webhook.handler.d.ts +0 -1
  125. package/src/features/webhook/webhook.handler.js +1 -1
  126. package/src/features/webhook/webhook.handler.js.map +1 -1
  127. package/src/features/webhook/webhook.route.d.ts +64 -1
  128. package/src/schemas/index.d.ts +1 -0
  129. package/src/schemas/index.js +1 -1
  130. package/src/schemas/index.js.map +1 -1
  131. package/src/test/global-setup.d.ts +0 -1
  132. package/src/test/global-setup.js +0 -1
  133. package/src/test/global-setup.js.map +0 -1
  134. package/src/test/integration/api-fixtures.d.ts +0 -147
  135. package/src/test/integration/api-fixtures.js +0 -1
  136. package/src/test/integration/api-fixtures.js.map +0 -1
  137. package/src/test/integration/seed.d.ts +0 -81
  138. package/src/test/integration/seed.js +0 -1
  139. package/src/test/integration/seed.js.map +0 -1
  140. package/src/test/integration/test-helpers.d.ts +0 -144
  141. package/src/test/integration/test-helpers.js +0 -1
  142. package/src/test/integration/test-helpers.js.map +0 -1
  143. package/src/test/setup-test-env.d.ts +0 -1
  144. package/src/test/setup-test-env.js +0 -1
  145. package/src/test/setup-test-env.js.map +0 -1
@@ -1,8 +1,856 @@
1
+ import { z } from "@hono/zod-openapi";
1
2
  export declare const reservationRoute: {
2
- createReservation: any;
3
- getReservation: any;
4
- getReservations: any;
5
- getUserReservations: any;
6
- updateReservationStatus: any;
7
- deleteReservation: any;
3
+ createReservation: {
4
+ description: string | undefined;
5
+ method: import("@hono/zod-openapi").RouteConfig["method"];
6
+ operationId: string;
7
+ path: string;
8
+ request: {
9
+ body: {
10
+ content: {
11
+ "application/json": {
12
+ schema: z.ZodObject<{
13
+ date: z.ZodCoercedDate<unknown>;
14
+ guests: z.ZodCoercedNumber<unknown>;
15
+ firstname: z.ZodString;
16
+ lastname: z.ZodString;
17
+ phone: z.ZodString;
18
+ }, z.core.$strip>;
19
+ };
20
+ };
21
+ required: boolean;
22
+ };
23
+ } & {
24
+ headers: z.ZodObject<{
25
+ "accept-language": z.ZodOptional<z.ZodString>;
26
+ cookie: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ } & {
29
+ params: z.ZodObject<{
30
+ organizationId: z.ZodString;
31
+ }, z.core.$strip>;
32
+ } & Record<never, never>;
33
+ responses: {
34
+ 201: {
35
+ content: {
36
+ "application/json": {
37
+ schema: z.ZodObject<{
38
+ id: z.ZodString;
39
+ firstname: z.ZodString;
40
+ lastname: z.ZodString;
41
+ guests: z.ZodCoercedNumber<unknown>;
42
+ phone: z.ZodString;
43
+ date: z.ZodCoercedDate<unknown>;
44
+ referenceId: z.ZodString;
45
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
46
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
47
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
48
+ }, z.core.$strip>;
49
+ };
50
+ };
51
+ description: string;
52
+ };
53
+ 400: {
54
+ content: {
55
+ "application/json": {
56
+ schema: z.ZodObject<{
57
+ status: z.ZodNumber;
58
+ message: z.ZodString;
59
+ }, z.core.$strip>;
60
+ };
61
+ };
62
+ description: string;
63
+ };
64
+ 401: {
65
+ content: {
66
+ "application/json": {
67
+ schema: z.ZodObject<{
68
+ status: z.ZodNumber;
69
+ message: z.ZodString;
70
+ }, z.core.$strip>;
71
+ };
72
+ };
73
+ description: string;
74
+ };
75
+ 500: {
76
+ content: {
77
+ "application/json": {
78
+ schema: z.ZodObject<{
79
+ status: z.ZodNumber;
80
+ message: z.ZodString;
81
+ }, z.core.$strip>;
82
+ };
83
+ };
84
+ description: string;
85
+ };
86
+ };
87
+ summary: string;
88
+ tags: string[];
89
+ } & {
90
+ getRoutingPath(): string;
91
+ };
92
+ getReservation: {
93
+ description: string | undefined;
94
+ method: import("@hono/zod-openapi").RouteConfig["method"];
95
+ operationId: string;
96
+ path: string;
97
+ request: Record<never, never> & {
98
+ headers: z.ZodObject<{
99
+ "accept-language": z.ZodOptional<z.ZodString>;
100
+ cookie: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$strip>;
102
+ } & {
103
+ params: z.ZodObject<{
104
+ organizationId: z.ZodString;
105
+ reservationId: z.ZodString;
106
+ }, z.core.$strip>;
107
+ };
108
+ responses: {
109
+ 200: {
110
+ content: {
111
+ "application/json": {
112
+ schema: z.ZodObject<{
113
+ id: z.ZodString;
114
+ firstname: z.ZodString;
115
+ lastname: z.ZodString;
116
+ guests: z.ZodCoercedNumber<unknown>;
117
+ phone: z.ZodString;
118
+ date: z.ZodCoercedDate<unknown>;
119
+ referenceId: z.ZodString;
120
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
121
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
122
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
123
+ }, z.core.$strip>;
124
+ };
125
+ };
126
+ description: string;
127
+ };
128
+ 400: {
129
+ content: {
130
+ "application/json": {
131
+ schema: z.ZodObject<{
132
+ status: z.ZodNumber;
133
+ message: z.ZodString;
134
+ }, z.core.$strip>;
135
+ };
136
+ };
137
+ description: string;
138
+ };
139
+ 401: {
140
+ content: {
141
+ "application/json": {
142
+ schema: z.ZodObject<{
143
+ status: z.ZodNumber;
144
+ message: z.ZodString;
145
+ }, z.core.$strip>;
146
+ };
147
+ };
148
+ description: string;
149
+ };
150
+ 404: {
151
+ content: {
152
+ "application/json": {
153
+ schema: z.ZodObject<{
154
+ status: z.ZodNumber;
155
+ message: z.ZodString;
156
+ }, z.core.$strip>;
157
+ };
158
+ };
159
+ description: string;
160
+ };
161
+ 500: {
162
+ content: {
163
+ "application/json": {
164
+ schema: z.ZodObject<{
165
+ status: z.ZodNumber;
166
+ message: z.ZodString;
167
+ }, z.core.$strip>;
168
+ };
169
+ };
170
+ description: string;
171
+ };
172
+ };
173
+ summary: string;
174
+ tags: string[];
175
+ } & {
176
+ getRoutingPath(): string;
177
+ };
178
+ getReservations: {
179
+ description: string | undefined;
180
+ method: import("@hono/zod-openapi").RouteConfig["method"];
181
+ operationId: string;
182
+ path: string;
183
+ request: Record<never, never> & {
184
+ headers: z.ZodObject<{
185
+ "accept-language": z.ZodOptional<z.ZodString>;
186
+ cookie: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strip>;
188
+ } & {
189
+ params: z.ZodObject<{
190
+ organizationId: z.ZodString;
191
+ }, z.core.$strip>;
192
+ } & {
193
+ query: z.ZodObject<{
194
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
195
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
196
+ search: z.ZodOptional<z.ZodString>;
197
+ published: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
198
+ locale: z.ZodOptional<z.ZodEnum<{
199
+ id: "id";
200
+ af: "af";
201
+ sq: "sq";
202
+ ar_dz: "ar_dz";
203
+ ar_bh: "ar_bh";
204
+ ar_eg: "ar_eg";
205
+ ar_iq: "ar_iq";
206
+ ar_jo: "ar_jo";
207
+ ar_kw: "ar_kw";
208
+ ar_lb: "ar_lb";
209
+ ar_ly: "ar_ly";
210
+ ar_ma: "ar_ma";
211
+ ar_om: "ar_om";
212
+ ar_qa: "ar_qa";
213
+ ar_sa: "ar_sa";
214
+ ar_sy: "ar_sy";
215
+ ar_tn: "ar_tn";
216
+ ar_ae: "ar_ae";
217
+ ar_ye: "ar_ye";
218
+ eu: "eu";
219
+ be: "be";
220
+ bg: "bg";
221
+ ca: "ca";
222
+ zh_hk: "zh_hk";
223
+ zh_cn: "zh_cn";
224
+ zh_sg: "zh_sg";
225
+ zh_tw: "zh_tw";
226
+ hr: "hr";
227
+ cs: "cs";
228
+ da: "da";
229
+ nl_be: "nl_be";
230
+ nl: "nl";
231
+ en: "en";
232
+ en_au: "en_au";
233
+ en_bz: "en_bz";
234
+ en_ca: "en_ca";
235
+ en_ie: "en_ie";
236
+ en_jm: "en_jm";
237
+ en_nz: "en_nz";
238
+ en_za: "en_za";
239
+ en_tt: "en_tt";
240
+ en_gb: "en_gb";
241
+ en_us: "en_us";
242
+ et: "et";
243
+ fo: "fo";
244
+ fa: "fa";
245
+ fi: "fi";
246
+ fr_be: "fr_be";
247
+ fr_ca: "fr_ca";
248
+ fr_lu: "fr_lu";
249
+ fr: "fr";
250
+ fr_ch: "fr_ch";
251
+ gd: "gd";
252
+ de_at: "de_at";
253
+ de_li: "de_li";
254
+ de_lu: "de_lu";
255
+ de: "de";
256
+ de_ch: "de_ch";
257
+ el: "el";
258
+ he: "he";
259
+ hi: "hi";
260
+ hu: "hu";
261
+ is: "is";
262
+ ga: "ga";
263
+ it: "it";
264
+ it_ch: "it_ch";
265
+ ja: "ja";
266
+ ko: "ko";
267
+ ku: "ku";
268
+ lv: "lv";
269
+ lt: "lt";
270
+ mk: "mk";
271
+ ml: "ml";
272
+ ms: "ms";
273
+ mt: "mt";
274
+ no: "no";
275
+ nb: "nb";
276
+ nn: "nn";
277
+ pl: "pl";
278
+ pt_br: "pt_br";
279
+ pt: "pt";
280
+ pa: "pa";
281
+ rm: "rm";
282
+ ro: "ro";
283
+ ro_md: "ro_md";
284
+ ru: "ru";
285
+ ru_md: "ru_md";
286
+ sr: "sr";
287
+ sk: "sk";
288
+ sl: "sl";
289
+ sb: "sb";
290
+ es_ar: "es_ar";
291
+ es_bo: "es_bo";
292
+ es_cl: "es_cl";
293
+ es_co: "es_co";
294
+ es_cr: "es_cr";
295
+ es_do: "es_do";
296
+ es_ec: "es_ec";
297
+ es_sv: "es_sv";
298
+ es_gt: "es_gt";
299
+ es_hn: "es_hn";
300
+ es_mx: "es_mx";
301
+ es: "es";
302
+ sv: "sv";
303
+ sv_fi: "sv_fi";
304
+ th: "th";
305
+ tr: "tr";
306
+ uk: "uk";
307
+ ur: "ur";
308
+ vi: "vi";
309
+ cy: "cy";
310
+ ji: "ji";
311
+ zu: "zu";
312
+ }>>;
313
+ }, z.core.$strip>;
314
+ };
315
+ responses: {
316
+ 200: {
317
+ content: {
318
+ "application/json": {
319
+ schema: z.ZodObject<{
320
+ list: z.ZodArray<z.ZodObject<{
321
+ id: z.ZodString;
322
+ firstname: z.ZodString;
323
+ lastname: z.ZodString;
324
+ guests: z.ZodCoercedNumber<unknown>;
325
+ phone: z.ZodString;
326
+ date: z.ZodCoercedDate<unknown>;
327
+ referenceId: z.ZodString;
328
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
329
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
330
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
331
+ }, z.core.$strip>>;
332
+ meta: z.ZodObject<{
333
+ isFirstPage: z.ZodBoolean;
334
+ isLastPage: z.ZodBoolean;
335
+ currentPage: z.ZodNumber;
336
+ previousPage: z.ZodNullable<z.ZodNumber>;
337
+ nextPage: z.ZodNullable<z.ZodNumber>;
338
+ pageCount: z.ZodNumber;
339
+ totalCount: z.ZodNumber;
340
+ }, z.core.$strip>;
341
+ }, z.core.$strip>;
342
+ };
343
+ };
344
+ description: string;
345
+ };
346
+ 400: {
347
+ content: {
348
+ "application/json": {
349
+ schema: z.ZodObject<{
350
+ status: z.ZodNumber;
351
+ message: z.ZodString;
352
+ }, z.core.$strip>;
353
+ };
354
+ };
355
+ description: string;
356
+ };
357
+ 401: {
358
+ content: {
359
+ "application/json": {
360
+ schema: z.ZodObject<{
361
+ status: z.ZodNumber;
362
+ message: z.ZodString;
363
+ }, z.core.$strip>;
364
+ };
365
+ };
366
+ description: string;
367
+ };
368
+ 500: {
369
+ content: {
370
+ "application/json": {
371
+ schema: z.ZodObject<{
372
+ status: z.ZodNumber;
373
+ message: z.ZodString;
374
+ }, z.core.$strip>;
375
+ };
376
+ };
377
+ description: string;
378
+ };
379
+ };
380
+ summary: string;
381
+ tags: string[];
382
+ } & {
383
+ getRoutingPath(): string;
384
+ };
385
+ getMyReservations: {
386
+ description: string | undefined;
387
+ method: import("@hono/zod-openapi").RouteConfig["method"];
388
+ operationId: string;
389
+ path: string;
390
+ request: Record<never, never> & {
391
+ headers: z.ZodObject<{
392
+ "accept-language": z.ZodOptional<z.ZodString>;
393
+ cookie: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strip>;
395
+ } & {
396
+ params: z.ZodObject<{
397
+ organizationId: z.ZodString;
398
+ }, z.core.$strip>;
399
+ } & {
400
+ query: z.ZodObject<{
401
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
402
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
403
+ search: z.ZodOptional<z.ZodString>;
404
+ published: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
405
+ locale: z.ZodOptional<z.ZodEnum<{
406
+ id: "id";
407
+ af: "af";
408
+ sq: "sq";
409
+ ar_dz: "ar_dz";
410
+ ar_bh: "ar_bh";
411
+ ar_eg: "ar_eg";
412
+ ar_iq: "ar_iq";
413
+ ar_jo: "ar_jo";
414
+ ar_kw: "ar_kw";
415
+ ar_lb: "ar_lb";
416
+ ar_ly: "ar_ly";
417
+ ar_ma: "ar_ma";
418
+ ar_om: "ar_om";
419
+ ar_qa: "ar_qa";
420
+ ar_sa: "ar_sa";
421
+ ar_sy: "ar_sy";
422
+ ar_tn: "ar_tn";
423
+ ar_ae: "ar_ae";
424
+ ar_ye: "ar_ye";
425
+ eu: "eu";
426
+ be: "be";
427
+ bg: "bg";
428
+ ca: "ca";
429
+ zh_hk: "zh_hk";
430
+ zh_cn: "zh_cn";
431
+ zh_sg: "zh_sg";
432
+ zh_tw: "zh_tw";
433
+ hr: "hr";
434
+ cs: "cs";
435
+ da: "da";
436
+ nl_be: "nl_be";
437
+ nl: "nl";
438
+ en: "en";
439
+ en_au: "en_au";
440
+ en_bz: "en_bz";
441
+ en_ca: "en_ca";
442
+ en_ie: "en_ie";
443
+ en_jm: "en_jm";
444
+ en_nz: "en_nz";
445
+ en_za: "en_za";
446
+ en_tt: "en_tt";
447
+ en_gb: "en_gb";
448
+ en_us: "en_us";
449
+ et: "et";
450
+ fo: "fo";
451
+ fa: "fa";
452
+ fi: "fi";
453
+ fr_be: "fr_be";
454
+ fr_ca: "fr_ca";
455
+ fr_lu: "fr_lu";
456
+ fr: "fr";
457
+ fr_ch: "fr_ch";
458
+ gd: "gd";
459
+ de_at: "de_at";
460
+ de_li: "de_li";
461
+ de_lu: "de_lu";
462
+ de: "de";
463
+ de_ch: "de_ch";
464
+ el: "el";
465
+ he: "he";
466
+ hi: "hi";
467
+ hu: "hu";
468
+ is: "is";
469
+ ga: "ga";
470
+ it: "it";
471
+ it_ch: "it_ch";
472
+ ja: "ja";
473
+ ko: "ko";
474
+ ku: "ku";
475
+ lv: "lv";
476
+ lt: "lt";
477
+ mk: "mk";
478
+ ml: "ml";
479
+ ms: "ms";
480
+ mt: "mt";
481
+ no: "no";
482
+ nb: "nb";
483
+ nn: "nn";
484
+ pl: "pl";
485
+ pt_br: "pt_br";
486
+ pt: "pt";
487
+ pa: "pa";
488
+ rm: "rm";
489
+ ro: "ro";
490
+ ro_md: "ro_md";
491
+ ru: "ru";
492
+ ru_md: "ru_md";
493
+ sr: "sr";
494
+ sk: "sk";
495
+ sl: "sl";
496
+ sb: "sb";
497
+ es_ar: "es_ar";
498
+ es_bo: "es_bo";
499
+ es_cl: "es_cl";
500
+ es_co: "es_co";
501
+ es_cr: "es_cr";
502
+ es_do: "es_do";
503
+ es_ec: "es_ec";
504
+ es_sv: "es_sv";
505
+ es_gt: "es_gt";
506
+ es_hn: "es_hn";
507
+ es_mx: "es_mx";
508
+ es: "es";
509
+ sv: "sv";
510
+ sv_fi: "sv_fi";
511
+ th: "th";
512
+ tr: "tr";
513
+ uk: "uk";
514
+ ur: "ur";
515
+ vi: "vi";
516
+ cy: "cy";
517
+ ji: "ji";
518
+ zu: "zu";
519
+ }>>;
520
+ }, z.core.$strip>;
521
+ };
522
+ responses: {
523
+ 200: {
524
+ content: {
525
+ "application/json": {
526
+ schema: z.ZodObject<{
527
+ list: z.ZodArray<z.ZodObject<{
528
+ id: z.ZodString;
529
+ firstname: z.ZodString;
530
+ lastname: z.ZodString;
531
+ guests: z.ZodCoercedNumber<unknown>;
532
+ phone: z.ZodString;
533
+ date: z.ZodCoercedDate<unknown>;
534
+ referenceId: z.ZodString;
535
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
536
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
537
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
538
+ }, z.core.$strip>>;
539
+ meta: z.ZodObject<{
540
+ isFirstPage: z.ZodBoolean;
541
+ isLastPage: z.ZodBoolean;
542
+ currentPage: z.ZodNumber;
543
+ previousPage: z.ZodNullable<z.ZodNumber>;
544
+ nextPage: z.ZodNullable<z.ZodNumber>;
545
+ pageCount: z.ZodNumber;
546
+ totalCount: z.ZodNumber;
547
+ }, z.core.$strip>;
548
+ }, z.core.$strip>;
549
+ };
550
+ };
551
+ description: string;
552
+ };
553
+ 400: {
554
+ content: {
555
+ "application/json": {
556
+ schema: z.ZodObject<{
557
+ status: z.ZodNumber;
558
+ message: z.ZodString;
559
+ }, z.core.$strip>;
560
+ };
561
+ };
562
+ description: string;
563
+ };
564
+ 401: {
565
+ content: {
566
+ "application/json": {
567
+ schema: z.ZodObject<{
568
+ status: z.ZodNumber;
569
+ message: z.ZodString;
570
+ }, z.core.$strip>;
571
+ };
572
+ };
573
+ description: string;
574
+ };
575
+ 500: {
576
+ content: {
577
+ "application/json": {
578
+ schema: z.ZodObject<{
579
+ status: z.ZodNumber;
580
+ message: z.ZodString;
581
+ }, z.core.$strip>;
582
+ };
583
+ };
584
+ description: string;
585
+ };
586
+ };
587
+ summary: string;
588
+ tags: string[];
589
+ } & {
590
+ getRoutingPath(): string;
591
+ };
592
+ getUserReservations: {
593
+ description: string | undefined;
594
+ method: import("@hono/zod-openapi").RouteConfig["method"];
595
+ operationId: string;
596
+ path: string;
597
+ request: Record<never, never> & {
598
+ headers: z.ZodObject<{
599
+ "accept-language": z.ZodOptional<z.ZodString>;
600
+ cookie: z.ZodOptional<z.ZodString>;
601
+ }, z.core.$strip>;
602
+ } & {
603
+ params: z.ZodObject<{
604
+ organizationId: z.ZodString;
605
+ userId: z.ZodString;
606
+ }, z.core.$strip>;
607
+ };
608
+ responses: {
609
+ 200: {
610
+ content: {
611
+ "application/json": {
612
+ schema: z.ZodArray<z.ZodObject<{
613
+ id: z.ZodString;
614
+ firstname: z.ZodString;
615
+ lastname: z.ZodString;
616
+ guests: z.ZodCoercedNumber<unknown>;
617
+ phone: z.ZodString;
618
+ date: z.ZodCoercedDate<unknown>;
619
+ referenceId: z.ZodString;
620
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
621
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
622
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
623
+ }, z.core.$strip>>;
624
+ };
625
+ };
626
+ description: string;
627
+ };
628
+ 400: {
629
+ content: {
630
+ "application/json": {
631
+ schema: z.ZodObject<{
632
+ status: z.ZodNumber;
633
+ message: z.ZodString;
634
+ }, z.core.$strip>;
635
+ };
636
+ };
637
+ description: string;
638
+ };
639
+ 401: {
640
+ content: {
641
+ "application/json": {
642
+ schema: z.ZodObject<{
643
+ status: z.ZodNumber;
644
+ message: z.ZodString;
645
+ }, z.core.$strip>;
646
+ };
647
+ };
648
+ description: string;
649
+ };
650
+ 404: {
651
+ content: {
652
+ "application/json": {
653
+ schema: z.ZodObject<{
654
+ status: z.ZodNumber;
655
+ message: z.ZodString;
656
+ }, z.core.$strip>;
657
+ };
658
+ };
659
+ description: string;
660
+ };
661
+ 500: {
662
+ content: {
663
+ "application/json": {
664
+ schema: z.ZodObject<{
665
+ status: z.ZodNumber;
666
+ message: z.ZodString;
667
+ }, z.core.$strip>;
668
+ };
669
+ };
670
+ description: string;
671
+ };
672
+ };
673
+ summary: string;
674
+ tags: string[];
675
+ } & {
676
+ getRoutingPath(): string;
677
+ };
678
+ updateReservationStatus: {
679
+ description: string | undefined;
680
+ method: import("@hono/zod-openapi").RouteConfig["method"];
681
+ operationId: string;
682
+ path: string;
683
+ request: {
684
+ body: {
685
+ content: {
686
+ "application/json": {
687
+ schema: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
688
+ };
689
+ };
690
+ required: boolean;
691
+ };
692
+ } & {
693
+ headers: z.ZodObject<{
694
+ "accept-language": z.ZodOptional<z.ZodString>;
695
+ cookie: z.ZodOptional<z.ZodString>;
696
+ }, z.core.$strip>;
697
+ } & {
698
+ params: z.ZodObject<{
699
+ organizationId: z.ZodString;
700
+ reservationId: z.ZodString;
701
+ operation: z.ZodEnum<{
702
+ accept: "accept";
703
+ cancel: "cancel";
704
+ }>;
705
+ }, z.core.$strip>;
706
+ } & Record<never, never>;
707
+ responses: {
708
+ 200: {
709
+ content: {
710
+ "application/json": {
711
+ schema: z.ZodObject<{
712
+ id: z.ZodString;
713
+ firstname: z.ZodString;
714
+ lastname: z.ZodString;
715
+ guests: z.ZodCoercedNumber<unknown>;
716
+ phone: z.ZodString;
717
+ date: z.ZodCoercedDate<unknown>;
718
+ referenceId: z.ZodString;
719
+ acceptedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
720
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
721
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
722
+ }, z.core.$strip>;
723
+ };
724
+ };
725
+ description: string;
726
+ };
727
+ 400: {
728
+ content: {
729
+ "application/json": {
730
+ schema: z.ZodObject<{
731
+ status: z.ZodNumber;
732
+ message: z.ZodString;
733
+ }, z.core.$strip>;
734
+ };
735
+ };
736
+ description: string;
737
+ };
738
+ 401: {
739
+ content: {
740
+ "application/json": {
741
+ schema: z.ZodObject<{
742
+ status: z.ZodNumber;
743
+ message: z.ZodString;
744
+ }, z.core.$strip>;
745
+ };
746
+ };
747
+ description: string;
748
+ };
749
+ 404: {
750
+ content: {
751
+ "application/json": {
752
+ schema: z.ZodObject<{
753
+ status: z.ZodNumber;
754
+ message: z.ZodString;
755
+ }, z.core.$strip>;
756
+ };
757
+ };
758
+ description: string;
759
+ };
760
+ 500: {
761
+ content: {
762
+ "application/json": {
763
+ schema: z.ZodObject<{
764
+ status: z.ZodNumber;
765
+ message: z.ZodString;
766
+ }, z.core.$strip>;
767
+ };
768
+ };
769
+ description: string;
770
+ };
771
+ };
772
+ summary: string;
773
+ tags: string[];
774
+ } & {
775
+ getRoutingPath(): string;
776
+ };
777
+ deleteReservation: {
778
+ description: string | undefined;
779
+ method: import("@hono/zod-openapi").RouteConfig["method"];
780
+ operationId: string;
781
+ path: string;
782
+ request: {
783
+ body: {
784
+ content: {
785
+ "application/json": {
786
+ schema: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
787
+ };
788
+ };
789
+ required: boolean;
790
+ };
791
+ } & {
792
+ headers: z.ZodObject<{
793
+ "accept-language": z.ZodOptional<z.ZodString>;
794
+ cookie: z.ZodOptional<z.ZodString>;
795
+ }, z.core.$strip>;
796
+ } & {
797
+ params: z.ZodObject<{
798
+ organizationId: z.ZodString;
799
+ reservationId: z.ZodString;
800
+ }, z.core.$strip>;
801
+ } & Record<never, never>;
802
+ responses: {
803
+ 204: {
804
+ description: string;
805
+ };
806
+ 400: {
807
+ content: {
808
+ "application/json": {
809
+ schema: z.ZodObject<{
810
+ status: z.ZodNumber;
811
+ message: z.ZodString;
812
+ }, z.core.$strip>;
813
+ };
814
+ };
815
+ description: string;
816
+ };
817
+ 401: {
818
+ content: {
819
+ "application/json": {
820
+ schema: z.ZodObject<{
821
+ status: z.ZodNumber;
822
+ message: z.ZodString;
823
+ }, z.core.$strip>;
824
+ };
825
+ };
826
+ description: string;
827
+ };
828
+ 404: {
829
+ content: {
830
+ "application/json": {
831
+ schema: z.ZodObject<{
832
+ status: z.ZodNumber;
833
+ message: z.ZodString;
834
+ }, z.core.$strip>;
835
+ };
836
+ };
837
+ description: string;
838
+ };
839
+ 500: {
840
+ content: {
841
+ "application/json": {
842
+ schema: z.ZodObject<{
843
+ status: z.ZodNumber;
844
+ message: z.ZodString;
845
+ }, z.core.$strip>;
846
+ };
847
+ };
848
+ description: string;
849
+ };
850
+ };
851
+ summary: string;
852
+ tags: string[];
853
+ } & {
854
+ getRoutingPath(): string;
855
+ };
8
856
  };