@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.
- package/LICENSE +17 -13
- package/README.md +76 -66
- package/package.json +2 -2
- package/src/app.js +1 -1
- package/src/app.js.map +1 -1
- package/src/core/db/__generated__/client/internal/class.js +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +2 -2
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -1
- package/src/core/db/__generated__/client/models/Account.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Address.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -5
- package/src/core/db/__generated__/client/models/File.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -5
- package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Member.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -5
- package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Order.d.ts +0 -5
- package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -5
- package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Organization.d.ts +0 -5
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Payment.d.ts +0 -5
- package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Product.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Session.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -5
- package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -5
- package/src/core/db/__generated__/client/models/User.d.ts +0 -5
- package/src/core/db/__generated__/client/models/Verification.d.ts +0 -5
- package/src/core/email/components.d.ts +16 -0
- package/src/core/email/components.js +1 -0
- package/src/core/email/components.js.map +1 -0
- package/src/core/hono/hono.d.ts +53 -11
- package/src/core/hono/hono.js +1 -1
- package/src/core/hono/hono.js.map +1 -1
- package/src/core/lib/prisma.d.ts +8 -8
- package/src/features/access/access.handler.js.map +1 -1
- package/src/features/access/access.route.d.ts +774 -10
- package/src/features/analytics/analytics.handler.d.ts +2 -0
- package/src/features/analytics/analytics.handler.js +1 -0
- package/src/features/analytics/analytics.handler.js.map +1 -0
- package/src/features/analytics/analytics.route.d.ts +148 -0
- package/src/features/analytics/analytics.route.js +1 -0
- package/src/features/analytics/analytics.route.js.map +1 -0
- package/src/features/analytics/analytics.schema.d.ts +86 -0
- package/src/features/analytics/analytics.schema.js +1 -0
- package/src/features/analytics/analytics.schema.js.map +1 -0
- package/src/features/analytics/analytics.service.d.ts +45 -0
- package/src/features/analytics/analytics.service.js +1 -0
- package/src/features/analytics/analytics.service.js.map +1 -0
- package/src/features/cart/cart.handler.js.map +1 -1
- package/src/features/cart/cart.route.d.ts +349 -1
- package/src/features/cart/cart.schema.d.ts +1 -1
- package/src/features/cart/cart.service.d.ts +1 -1
- package/src/features/file/file.handler.js.map +1 -1
- package/src/features/file/file.route.d.ts +104 -2
- package/src/features/file/file.service.d.ts +2 -1
- package/src/features/file/file.service.js.map +1 -1
- package/src/features/health/health.handler.js.map +1 -1
- package/src/features/health/health.route.d.ts +40 -1
- package/src/features/index.d.ts +1 -0
- package/src/features/index.js +1 -1
- package/src/features/index.js.map +1 -1
- package/src/features/location/location.handler.js +1 -1
- package/src/features/location/location.handler.js.map +1 -1
- package/src/features/location/location.route.d.ts +118 -2
- package/src/features/manufacturer/manufacturer.handler.js.map +1 -1
- package/src/features/manufacturer/manufacturer.route.d.ts +675 -5
- package/src/features/order/emails/order-confirmation.email.js +1 -1
- package/src/features/order/emails/order-confirmation.email.js.map +1 -1
- package/src/features/order/emails/order-notification.email.js +1 -1
- package/src/features/order/emails/order-notification.email.js.map +1 -1
- package/src/features/order/order.handler.js +1 -1
- package/src/features/order/order.handler.js.map +1 -1
- package/src/features/order/order.route.d.ts +3193 -5
- package/src/features/order/order.route.js +1 -1
- package/src/features/order/order.route.js.map +1 -1
- package/src/features/order/order.schema.d.ts +4 -4
- package/src/features/order/order.service.d.ts +119 -4
- package/src/features/order/order.service.js +1 -1
- package/src/features/order/order.service.js.map +1 -1
- package/src/features/organization/organization.handler.js.map +1 -1
- package/src/features/organization/organization.route.d.ts +1973 -5
- package/src/features/payment/payment.handler.js.map +1 -1
- package/src/features/payment/payment.route.d.ts +67 -1
- package/src/features/payment/payment.schema.d.ts +3 -3
- package/src/features/payment/payment.service.d.ts +1 -1
- package/src/features/product/product.handler.js.map +1 -1
- package/src/features/product/product.route.d.ts +4267 -7
- package/src/features/product/product.schema.d.ts +3 -3
- package/src/features/product/product.service.d.ts +2 -2
- package/src/features/product-category/product-category.handler.js.map +1 -1
- package/src/features/product-category/product-category.route.d.ts +774 -6
- package/src/features/reservation/emails/reservation-cancellation.email.js +1 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js +1 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -1
- package/src/features/reservation/emails/reservation-notification.email.js +1 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +1 -1
- package/src/features/reservation/reservation.handler.js +1 -1
- package/src/features/reservation/reservation.handler.js.map +1 -1
- package/src/features/reservation/reservation.route.d.ts +854 -6
- package/src/features/reservation/reservation.route.js +1 -1
- package/src/features/reservation/reservation.route.js.map +1 -1
- package/src/features/reservation/reservation.schema.d.ts +1 -1
- package/src/features/reservation/reservation.service.d.ts +27 -0
- package/src/features/reservation/reservation.service.js +1 -1
- package/src/features/reservation/reservation.service.js.map +1 -1
- package/src/features/shipping/shipping.handler.js.map +1 -1
- package/src/features/shipping/shipping.route.d.ts +214 -3
- package/src/features/shipping-method/shipping-method.handler.js.map +1 -1
- package/src/features/shipping-method/shipping-method.route.d.ts +663 -6
- package/src/features/webhook/webhook.handler.d.ts +0 -1
- package/src/features/webhook/webhook.handler.js +1 -1
- package/src/features/webhook/webhook.handler.js.map +1 -1
- package/src/features/webhook/webhook.route.d.ts +64 -1
- package/src/schemas/index.d.ts +1 -0
- package/src/schemas/index.js +1 -1
- package/src/schemas/index.js.map +1 -1
- package/src/test/global-setup.d.ts +0 -1
- package/src/test/global-setup.js +0 -1
- package/src/test/global-setup.js.map +0 -1
- package/src/test/integration/api-fixtures.d.ts +0 -147
- package/src/test/integration/api-fixtures.js +0 -1
- package/src/test/integration/api-fixtures.js.map +0 -1
- package/src/test/integration/seed.d.ts +0 -81
- package/src/test/integration/seed.js +0 -1
- package/src/test/integration/seed.js.map +0 -1
- package/src/test/integration/test-helpers.d.ts +0 -144
- package/src/test/integration/test-helpers.js +0 -1
- package/src/test/integration/test-helpers.js.map +0 -1
- package/src/test/setup-test-env.d.ts +0 -1
- package/src/test/setup-test-env.js +0 -1
- package/src/test/setup-test-env.js.map +0 -1
|
@@ -1,3 +1,351 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
1
2
|
export declare const cartRoute: {
|
|
2
|
-
getCartData:
|
|
3
|
+
getCartData: {
|
|
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
|
+
items: z.ZodArray<z.ZodObject<{
|
|
14
|
+
productId: z.ZodString;
|
|
15
|
+
quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
16
|
+
modifierGroups: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
modifiers: z.ZodArray<z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
quantity: z.ZodDefault<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
shippingMethodId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
required: boolean;
|
|
29
|
+
};
|
|
30
|
+
} & {
|
|
31
|
+
headers: z.ZodObject<{
|
|
32
|
+
"accept-language": z.ZodOptional<z.ZodString>;
|
|
33
|
+
cookie: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
} & {
|
|
36
|
+
params: z.ZodObject<{
|
|
37
|
+
organizationId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
} & {
|
|
40
|
+
query: z.ZodObject<{
|
|
41
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
id: "id";
|
|
43
|
+
af: "af";
|
|
44
|
+
sq: "sq";
|
|
45
|
+
ar_dz: "ar_dz";
|
|
46
|
+
ar_bh: "ar_bh";
|
|
47
|
+
ar_eg: "ar_eg";
|
|
48
|
+
ar_iq: "ar_iq";
|
|
49
|
+
ar_jo: "ar_jo";
|
|
50
|
+
ar_kw: "ar_kw";
|
|
51
|
+
ar_lb: "ar_lb";
|
|
52
|
+
ar_ly: "ar_ly";
|
|
53
|
+
ar_ma: "ar_ma";
|
|
54
|
+
ar_om: "ar_om";
|
|
55
|
+
ar_qa: "ar_qa";
|
|
56
|
+
ar_sa: "ar_sa";
|
|
57
|
+
ar_sy: "ar_sy";
|
|
58
|
+
ar_tn: "ar_tn";
|
|
59
|
+
ar_ae: "ar_ae";
|
|
60
|
+
ar_ye: "ar_ye";
|
|
61
|
+
eu: "eu";
|
|
62
|
+
be: "be";
|
|
63
|
+
bg: "bg";
|
|
64
|
+
ca: "ca";
|
|
65
|
+
zh_hk: "zh_hk";
|
|
66
|
+
zh_cn: "zh_cn";
|
|
67
|
+
zh_sg: "zh_sg";
|
|
68
|
+
zh_tw: "zh_tw";
|
|
69
|
+
hr: "hr";
|
|
70
|
+
cs: "cs";
|
|
71
|
+
da: "da";
|
|
72
|
+
nl_be: "nl_be";
|
|
73
|
+
nl: "nl";
|
|
74
|
+
en: "en";
|
|
75
|
+
en_au: "en_au";
|
|
76
|
+
en_bz: "en_bz";
|
|
77
|
+
en_ca: "en_ca";
|
|
78
|
+
en_ie: "en_ie";
|
|
79
|
+
en_jm: "en_jm";
|
|
80
|
+
en_nz: "en_nz";
|
|
81
|
+
en_za: "en_za";
|
|
82
|
+
en_tt: "en_tt";
|
|
83
|
+
en_gb: "en_gb";
|
|
84
|
+
en_us: "en_us";
|
|
85
|
+
et: "et";
|
|
86
|
+
fo: "fo";
|
|
87
|
+
fa: "fa";
|
|
88
|
+
fi: "fi";
|
|
89
|
+
fr_be: "fr_be";
|
|
90
|
+
fr_ca: "fr_ca";
|
|
91
|
+
fr_lu: "fr_lu";
|
|
92
|
+
fr: "fr";
|
|
93
|
+
fr_ch: "fr_ch";
|
|
94
|
+
gd: "gd";
|
|
95
|
+
de_at: "de_at";
|
|
96
|
+
de_li: "de_li";
|
|
97
|
+
de_lu: "de_lu";
|
|
98
|
+
de: "de";
|
|
99
|
+
de_ch: "de_ch";
|
|
100
|
+
el: "el";
|
|
101
|
+
he: "he";
|
|
102
|
+
hi: "hi";
|
|
103
|
+
hu: "hu";
|
|
104
|
+
is: "is";
|
|
105
|
+
ga: "ga";
|
|
106
|
+
it: "it";
|
|
107
|
+
it_ch: "it_ch";
|
|
108
|
+
ja: "ja";
|
|
109
|
+
ko: "ko";
|
|
110
|
+
ku: "ku";
|
|
111
|
+
lv: "lv";
|
|
112
|
+
lt: "lt";
|
|
113
|
+
mk: "mk";
|
|
114
|
+
ml: "ml";
|
|
115
|
+
ms: "ms";
|
|
116
|
+
mt: "mt";
|
|
117
|
+
no: "no";
|
|
118
|
+
nb: "nb";
|
|
119
|
+
nn: "nn";
|
|
120
|
+
pl: "pl";
|
|
121
|
+
pt_br: "pt_br";
|
|
122
|
+
pt: "pt";
|
|
123
|
+
pa: "pa";
|
|
124
|
+
rm: "rm";
|
|
125
|
+
ro: "ro";
|
|
126
|
+
ro_md: "ro_md";
|
|
127
|
+
ru: "ru";
|
|
128
|
+
ru_md: "ru_md";
|
|
129
|
+
sr: "sr";
|
|
130
|
+
sk: "sk";
|
|
131
|
+
sl: "sl";
|
|
132
|
+
sb: "sb";
|
|
133
|
+
es_ar: "es_ar";
|
|
134
|
+
es_bo: "es_bo";
|
|
135
|
+
es_cl: "es_cl";
|
|
136
|
+
es_co: "es_co";
|
|
137
|
+
es_cr: "es_cr";
|
|
138
|
+
es_do: "es_do";
|
|
139
|
+
es_ec: "es_ec";
|
|
140
|
+
es_sv: "es_sv";
|
|
141
|
+
es_gt: "es_gt";
|
|
142
|
+
es_hn: "es_hn";
|
|
143
|
+
es_mx: "es_mx";
|
|
144
|
+
es: "es";
|
|
145
|
+
sv: "sv";
|
|
146
|
+
sv_fi: "sv_fi";
|
|
147
|
+
th: "th";
|
|
148
|
+
tr: "tr";
|
|
149
|
+
uk: "uk";
|
|
150
|
+
ur: "ur";
|
|
151
|
+
vi: "vi";
|
|
152
|
+
cy: "cy";
|
|
153
|
+
ji: "ji";
|
|
154
|
+
zu: "zu";
|
|
155
|
+
}>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
};
|
|
158
|
+
responses: {
|
|
159
|
+
200: {
|
|
160
|
+
content: {
|
|
161
|
+
"application/json": {
|
|
162
|
+
schema: z.ZodObject<{
|
|
163
|
+
invalidProductIds: z.ZodArray<z.ZodString>;
|
|
164
|
+
products: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
title: z.ZodDefault<z.ZodString>;
|
|
167
|
+
currency: z.ZodString;
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
createdAt: z.ZodDate;
|
|
170
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
171
|
+
publishedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
172
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
173
|
+
basePrice: z.ZodCoercedNumber<unknown>;
|
|
174
|
+
discountedBasePrice: 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>>;
|
|
175
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
176
|
+
id: z.ZodString;
|
|
177
|
+
url: z.ZodString;
|
|
178
|
+
mimeType: z.ZodString;
|
|
179
|
+
size: z.ZodNumber;
|
|
180
|
+
filename: z.ZodString;
|
|
181
|
+
}, z.core.$strip>>>;
|
|
182
|
+
modifierGroups: z.ZodArray<z.ZodObject<{
|
|
183
|
+
title: z.ZodNullable<z.ZodDefault<z.ZodString>>;
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
defaultLocale: z.ZodOptional<z.ZodEnum<{
|
|
186
|
+
id: "id";
|
|
187
|
+
af: "af";
|
|
188
|
+
sq: "sq";
|
|
189
|
+
ar_dz: "ar_dz";
|
|
190
|
+
ar_bh: "ar_bh";
|
|
191
|
+
ar_eg: "ar_eg";
|
|
192
|
+
ar_iq: "ar_iq";
|
|
193
|
+
ar_jo: "ar_jo";
|
|
194
|
+
ar_kw: "ar_kw";
|
|
195
|
+
ar_lb: "ar_lb";
|
|
196
|
+
ar_ly: "ar_ly";
|
|
197
|
+
ar_ma: "ar_ma";
|
|
198
|
+
ar_om: "ar_om";
|
|
199
|
+
ar_qa: "ar_qa";
|
|
200
|
+
ar_sa: "ar_sa";
|
|
201
|
+
ar_sy: "ar_sy";
|
|
202
|
+
ar_tn: "ar_tn";
|
|
203
|
+
ar_ae: "ar_ae";
|
|
204
|
+
ar_ye: "ar_ye";
|
|
205
|
+
eu: "eu";
|
|
206
|
+
be: "be";
|
|
207
|
+
bg: "bg";
|
|
208
|
+
ca: "ca";
|
|
209
|
+
zh_hk: "zh_hk";
|
|
210
|
+
zh_cn: "zh_cn";
|
|
211
|
+
zh_sg: "zh_sg";
|
|
212
|
+
zh_tw: "zh_tw";
|
|
213
|
+
hr: "hr";
|
|
214
|
+
cs: "cs";
|
|
215
|
+
da: "da";
|
|
216
|
+
nl_be: "nl_be";
|
|
217
|
+
nl: "nl";
|
|
218
|
+
en: "en";
|
|
219
|
+
en_au: "en_au";
|
|
220
|
+
en_bz: "en_bz";
|
|
221
|
+
en_ca: "en_ca";
|
|
222
|
+
en_ie: "en_ie";
|
|
223
|
+
en_jm: "en_jm";
|
|
224
|
+
en_nz: "en_nz";
|
|
225
|
+
en_za: "en_za";
|
|
226
|
+
en_tt: "en_tt";
|
|
227
|
+
en_gb: "en_gb";
|
|
228
|
+
en_us: "en_us";
|
|
229
|
+
et: "et";
|
|
230
|
+
fo: "fo";
|
|
231
|
+
fa: "fa";
|
|
232
|
+
fi: "fi";
|
|
233
|
+
fr_be: "fr_be";
|
|
234
|
+
fr_ca: "fr_ca";
|
|
235
|
+
fr_lu: "fr_lu";
|
|
236
|
+
fr: "fr";
|
|
237
|
+
fr_ch: "fr_ch";
|
|
238
|
+
gd: "gd";
|
|
239
|
+
de_at: "de_at";
|
|
240
|
+
de_li: "de_li";
|
|
241
|
+
de_lu: "de_lu";
|
|
242
|
+
de: "de";
|
|
243
|
+
de_ch: "de_ch";
|
|
244
|
+
el: "el";
|
|
245
|
+
he: "he";
|
|
246
|
+
hi: "hi";
|
|
247
|
+
hu: "hu";
|
|
248
|
+
is: "is";
|
|
249
|
+
ga: "ga";
|
|
250
|
+
it: "it";
|
|
251
|
+
it_ch: "it_ch";
|
|
252
|
+
ja: "ja";
|
|
253
|
+
ko: "ko";
|
|
254
|
+
ku: "ku";
|
|
255
|
+
lv: "lv";
|
|
256
|
+
lt: "lt";
|
|
257
|
+
mk: "mk";
|
|
258
|
+
ml: "ml";
|
|
259
|
+
ms: "ms";
|
|
260
|
+
mt: "mt";
|
|
261
|
+
no: "no";
|
|
262
|
+
nb: "nb";
|
|
263
|
+
nn: "nn";
|
|
264
|
+
pl: "pl";
|
|
265
|
+
pt_br: "pt_br";
|
|
266
|
+
pt: "pt";
|
|
267
|
+
pa: "pa";
|
|
268
|
+
rm: "rm";
|
|
269
|
+
ro: "ro";
|
|
270
|
+
ro_md: "ro_md";
|
|
271
|
+
ru: "ru";
|
|
272
|
+
ru_md: "ru_md";
|
|
273
|
+
sr: "sr";
|
|
274
|
+
sk: "sk";
|
|
275
|
+
sl: "sl";
|
|
276
|
+
sb: "sb";
|
|
277
|
+
es_ar: "es_ar";
|
|
278
|
+
es_bo: "es_bo";
|
|
279
|
+
es_cl: "es_cl";
|
|
280
|
+
es_co: "es_co";
|
|
281
|
+
es_cr: "es_cr";
|
|
282
|
+
es_do: "es_do";
|
|
283
|
+
es_ec: "es_ec";
|
|
284
|
+
es_sv: "es_sv";
|
|
285
|
+
es_gt: "es_gt";
|
|
286
|
+
es_hn: "es_hn";
|
|
287
|
+
es_mx: "es_mx";
|
|
288
|
+
es: "es";
|
|
289
|
+
sv: "sv";
|
|
290
|
+
sv_fi: "sv_fi";
|
|
291
|
+
th: "th";
|
|
292
|
+
tr: "tr";
|
|
293
|
+
uk: "uk";
|
|
294
|
+
ur: "ur";
|
|
295
|
+
vi: "vi";
|
|
296
|
+
cy: "cy";
|
|
297
|
+
ji: "ji";
|
|
298
|
+
zu: "zu";
|
|
299
|
+
}>>;
|
|
300
|
+
selectMin: z.ZodCoercedNumber<unknown>;
|
|
301
|
+
selectMax: z.ZodCoercedNumber<unknown>;
|
|
302
|
+
modifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
303
|
+
id: z.ZodOptional<z.ZodString>;
|
|
304
|
+
title: z.ZodString;
|
|
305
|
+
sku: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
306
|
+
price: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
307
|
+
}, z.core.$strip>>>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
310
|
+
id: z.ZodString;
|
|
311
|
+
}, z.core.$strip>>>;
|
|
312
|
+
manufacturerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
shipping: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
subtotal: z.ZodNumber;
|
|
317
|
+
total: z.ZodNumber;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
description: string;
|
|
322
|
+
};
|
|
323
|
+
400: {
|
|
324
|
+
content: {
|
|
325
|
+
"application/json": {
|
|
326
|
+
schema: z.ZodObject<{
|
|
327
|
+
status: z.ZodNumber;
|
|
328
|
+
message: z.ZodString;
|
|
329
|
+
}, z.core.$strip>;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
description: string;
|
|
333
|
+
};
|
|
334
|
+
401: {
|
|
335
|
+
content: {
|
|
336
|
+
"application/json": {
|
|
337
|
+
schema: z.ZodObject<{
|
|
338
|
+
status: z.ZodNumber;
|
|
339
|
+
message: z.ZodString;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
description: string;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
summary: string;
|
|
347
|
+
tags: string[];
|
|
348
|
+
} & {
|
|
349
|
+
getRoutingPath(): string;
|
|
350
|
+
};
|
|
3
351
|
};
|
|
@@ -2,6 +2,7 @@ import { z } from "@hono/zod-openapi";
|
|
|
2
2
|
export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3
3
|
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4
4
|
title: z.ZodDefault<z.ZodString>;
|
|
5
|
+
currency: z.ZodString;
|
|
5
6
|
id: z.ZodString;
|
|
6
7
|
createdAt: z.ZodDate;
|
|
7
8
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -9,7 +10,6 @@ export declare const CartProductsMappingSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
9
10
|
sku: z.ZodOptional<z.ZodString>;
|
|
10
11
|
basePrice: z.ZodCoercedNumber<unknown>;
|
|
11
12
|
discountedBasePrice: 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>>;
|
|
12
|
-
currency: z.ZodString;
|
|
13
13
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
14
|
id: z.ZodString;
|
|
15
15
|
url: z.ZodString;
|
|
@@ -19,11 +19,11 @@ declare class CartService {
|
|
|
19
19
|
products: Record<string, {
|
|
20
20
|
description: string | null;
|
|
21
21
|
title: string;
|
|
22
|
+
currency: string;
|
|
22
23
|
id: string;
|
|
23
24
|
createdAt: Date;
|
|
24
25
|
basePrice: number;
|
|
25
26
|
discountedBasePrice: number | null;
|
|
26
|
-
currency: string;
|
|
27
27
|
modifierGroups: {
|
|
28
28
|
title: string | null;
|
|
29
29
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.handler.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/file/file.handler.ts"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"file.handler.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/file/file.handler.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAwB,EAAE,EAAE;IAC3D,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;IAE9B,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,EAAE,CAAO,CAAC,EAAE,EAAE;QAChD,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACjC,MAAM,OAAO,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;QACxC,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,cAAc,CAChD,IAAI,EACJ,CAAC,CAAC,GAAG,CAAC,GAA2B,CAClC,CAAC;QAEF,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IACpC,CAAC,CAAA,CAAC,CAAC;IAEH,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,mBAAmB,EAAE,CAAO,CAAC,EAAE,EAAE;QACrD,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACjC,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAEzC,MAAM,OAAO,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAE9D,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC3B,CAAC,CAAA,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -1,4 +1,106 @@
|
|
|
1
1
|
export declare const fileRoute: {
|
|
2
|
-
createTemporaryFile:
|
|
3
|
-
|
|
2
|
+
createTemporaryFile: {
|
|
3
|
+
description: string | undefined;
|
|
4
|
+
method: import("@hono/zod-openapi").RouteConfig["method"];
|
|
5
|
+
operationId: string;
|
|
6
|
+
path: string;
|
|
7
|
+
request: {
|
|
8
|
+
body: {
|
|
9
|
+
content: {
|
|
10
|
+
"application/json": {
|
|
11
|
+
schema: import("zod").ZodObject<{
|
|
12
|
+
mimeType: import("zod").ZodString;
|
|
13
|
+
size: import("zod").ZodNumber;
|
|
14
|
+
filename: import("zod").ZodString;
|
|
15
|
+
organizationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
}, import("better-auth/*").$strip>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
required: boolean;
|
|
20
|
+
};
|
|
21
|
+
} & {
|
|
22
|
+
headers: import("zod").ZodObject<{
|
|
23
|
+
"accept-language": import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
|
+
cookie: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
}, import("better-auth/*").$strip>;
|
|
26
|
+
} & Record<never, never>;
|
|
27
|
+
responses: {
|
|
28
|
+
201: {
|
|
29
|
+
content: {
|
|
30
|
+
"application/json": {
|
|
31
|
+
schema: import("zod").ZodObject<{
|
|
32
|
+
id: import("zod").ZodString;
|
|
33
|
+
url: import("zod").ZodString;
|
|
34
|
+
mimeType: import("zod").ZodString;
|
|
35
|
+
size: import("zod").ZodNumber;
|
|
36
|
+
filename: import("zod").ZodString;
|
|
37
|
+
}, import("better-auth/*").$strip>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
summary: string;
|
|
44
|
+
tags: string[];
|
|
45
|
+
} & {
|
|
46
|
+
getRoutingPath(): string;
|
|
47
|
+
};
|
|
48
|
+
getVercelToken: {
|
|
49
|
+
description: string | undefined;
|
|
50
|
+
method: import("@hono/zod-openapi").RouteConfig["method"];
|
|
51
|
+
operationId: string;
|
|
52
|
+
path: string;
|
|
53
|
+
request: {
|
|
54
|
+
body: {
|
|
55
|
+
content: {
|
|
56
|
+
"application/json": {
|
|
57
|
+
schema: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
58
|
+
type: import("zod").ZodLiteral<"blob.generate-client-token">;
|
|
59
|
+
payload: import("zod").ZodObject<{
|
|
60
|
+
pathname: import("zod").ZodString;
|
|
61
|
+
callbackUrl: import("zod").ZodString;
|
|
62
|
+
multipart: import("zod").ZodBoolean;
|
|
63
|
+
clientPayload: import("zod").ZodNullable<import("zod").ZodString>;
|
|
64
|
+
}, import("better-auth/*").$strip>;
|
|
65
|
+
}, import("better-auth/*").$strip>, import("zod").ZodObject<{
|
|
66
|
+
type: import("zod").ZodLiteral<"blob.upload-completed">;
|
|
67
|
+
payload: import("zod").ZodObject<{
|
|
68
|
+
blob: import("zod").ZodAny;
|
|
69
|
+
tokenPayload: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
70
|
+
}, import("better-auth/*").$strip>;
|
|
71
|
+
}, import("better-auth/*").$strip>], "type">;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
required: boolean;
|
|
75
|
+
};
|
|
76
|
+
} & {
|
|
77
|
+
headers: import("zod").ZodObject<{
|
|
78
|
+
"accept-language": import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
+
cookie: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
}, import("better-auth/*").$strip>;
|
|
81
|
+
} & Record<never, never>;
|
|
82
|
+
responses: {
|
|
83
|
+
200: {
|
|
84
|
+
content: {
|
|
85
|
+
"application/json": {
|
|
86
|
+
schema: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
87
|
+
type: import("zod").ZodLiteral<"blob.generate-client-token">;
|
|
88
|
+
clientToken: import("zod").ZodString;
|
|
89
|
+
}, import("better-auth/*").$strip>, import("zod").ZodObject<{
|
|
90
|
+
type: import("zod").ZodLiteral<"blob.upload-completed">;
|
|
91
|
+
response: import("zod").ZodLiteral<"ok">;
|
|
92
|
+
}, import("better-auth/*").$strip>], "type">;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
204: {
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
summary: string;
|
|
102
|
+
tags: string[];
|
|
103
|
+
} & {
|
|
104
|
+
getRoutingPath(): string;
|
|
105
|
+
};
|
|
4
106
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
+
import type { AuthenticatedRequest } from "../../core/hono/hono";
|
|
2
3
|
import { PrismaClientType } from "../../core/lib/prisma";
|
|
3
4
|
import { CreateTemporaryFileSchema, GetVercelTokenBody } from "../../schemas";
|
|
4
5
|
declare class FileService {
|
|
@@ -7,7 +8,7 @@ declare class FileService {
|
|
|
7
8
|
/**
|
|
8
9
|
* Get Vercel token for file upload
|
|
9
10
|
*/
|
|
10
|
-
getVercelToken(body: z.infer<typeof GetVercelTokenBody>, request:
|
|
11
|
+
getVercelToken(body: z.infer<typeof GetVercelTokenBody>, request: AuthenticatedRequest): Promise<{
|
|
11
12
|
type: "blob.generate-client-token";
|
|
12
13
|
clientToken: string;
|
|
13
14
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.service.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/file/file.service.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAoB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"file.service.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/file/file.service.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAoB,MAAM,qBAAqB,CAAC;AAIrE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAEL,UAAU,EAEV,sBAAsB,GACvB,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW;IACf,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAG,CAAC;IAEzD;;OAEG;IACU,cAAc,CACzB,IAAwC,EACxC,OAA6B;;YAE7B,MAAM,YAAY,GAAG,MAAM,YAAY,CAAC;gBACtC,IAAI,EAAE,IAAwB;gBAC9B,OAAO;gBACP,qBAAqB,EAAE,GAAS,EAAE;oBAChC,IAAI,IAAI,CAAC,IAAI,KAAK,4BAA4B,EAAE,CAAC;wBAC/C,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;oBAClC,CAAC;oBAED,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;wBAChC,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;oBAC/C,CAAC;oBAED,MAAM,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;oBAEpC,OAAO;wBACL,eAAe,EAAE,IAAI;wBACrB,mBAAmB,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;wBAC7D,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa;qBACzC,CAAC;gBACJ,CAAC,CAAA;gBACD,iBAAiB,EAAE,KAA+B,EAAE,0CAA1B,EAAE,IAAI,EAAE,YAAY,EAAE;oBAC9C,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,uBAAuB,CAAC,CAAC;oBAE7D,IAAI,CAAC,YAAY,EAAE,CAAC;wBAClB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;oBAC9C,CAAC;oBAED,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;oBAE5C,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;wBAC5B,KAAK,EAAE;4BACL,EAAE,EAAE,MAAM;yBACX;wBACD,IAAI,EAAE;4BACJ,QAAQ,EAAE,IAAI,CAAC,QAAQ;4BACvB,GAAG,EAAE,IAAI,CAAC,GAAG;4BACb,QAAQ,EAAE,IAAI,CAAC,WAAW;4BAC1B,MAAM,EAAE,WAAW;yBACpB;qBACF,CAAC,CAAC;gBACL,CAAC,CAAA;aACF,CAAC,CAAC;YAEH,OAAO,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACpD,CAAC;KAAA;IAED;;OAEG;IACU,mBAAmB,CAC9B,MAAc,EACd,IAA+C;;YAE/C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;gBACzC,IAAI,kCACC,IAAI,KACP,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,MAAM,GAClB;aACF,CAAC,CAAC;YAEH,OAAO,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.handler.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/health/health.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;IAE9B,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"health.handler.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/health/health.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;IAE9B,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE;QAClC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
1
2
|
export declare const healthRoute: {
|
|
2
|
-
ping:
|
|
3
|
+
ping: {
|
|
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
|
+
responses: {
|
|
15
|
+
200: {
|
|
16
|
+
content: {
|
|
17
|
+
"application/json": {
|
|
18
|
+
schema: z.ZodObject<{
|
|
19
|
+
ok: z.ZodBoolean;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
500: {
|
|
26
|
+
content: {
|
|
27
|
+
"application/json": {
|
|
28
|
+
schema: z.ZodObject<{
|
|
29
|
+
status: z.ZodNumber;
|
|
30
|
+
message: z.ZodString;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
summary: string;
|
|
38
|
+
tags: string[];
|
|
39
|
+
} & {
|
|
40
|
+
getRoutingPath(): string;
|
|
41
|
+
};
|
|
3
42
|
};
|
package/src/features/index.d.ts
CHANGED
package/src/features/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{buildAccessHandler}from"./access/access.handler";export{buildCartHandler}from"./cart/cart.handler";export{buildFileHandler}from"./file/file.handler";export{buildHealthHandler}from"./health/health.handler";export{buildLocationHandler}from"./location/location.handler";export{buildManufacturerHandler}from"./manufacturer/manufacturer.handler";export{buildOrderHandler}from"./order/order.handler";export{buildOrganizationHandler}from"./organization/organization.handler";export{buildPaymentHandler}from"./payment/payment.handler";export{buildProductCategoryHandler}from"./product-category/product-category.handler";export{buildProductHandler}from"./product/product.handler";export{buildReservationHandler}from"./reservation/reservation.handler";export{buildShippingHandler}from"./shipping/shipping.handler";export{buildShippingMethodHandler}from"./shipping-method/shipping-method.handler";export{buildWebhookHandler}from"./webhook/webhook.handler";
|
|
1
|
+
export{buildAnalyticsHandler}from"./analytics/analytics.handler";export{buildAccessHandler}from"./access/access.handler";export{buildCartHandler}from"./cart/cart.handler";export{buildFileHandler}from"./file/file.handler";export{buildHealthHandler}from"./health/health.handler";export{buildLocationHandler}from"./location/location.handler";export{buildManufacturerHandler}from"./manufacturer/manufacturer.handler";export{buildOrderHandler}from"./order/order.handler";export{buildOrganizationHandler}from"./organization/organization.handler";export{buildPaymentHandler}from"./payment/payment.handler";export{buildProductCategoryHandler}from"./product-category/product-category.handler";export{buildProductHandler}from"./product/product.handler";export{buildReservationHandler}from"./reservation/reservation.handler";export{buildShippingHandler}from"./shipping/shipping.handler";export{buildShippingMethodHandler}from"./shipping-method/shipping-method.handler";export{buildWebhookHandler}from"./webhook/webhook.handler";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/rest-api/src/features/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/rest-api/src/features/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as
|
|
1
|
+
import{__awaiter as s}from"tslib";import{createApiRouter as u}from"../../core/hono/hono";import{locationRoute as c}from"./location.route";import{LocationService as d}from"./location.service";export const buildLocationHandler=n=>{const r=u(),a=()=>{var e;if(!(!((e=n.google)===null||e===void 0)&&e.key))throw new Error("Google Maps API key is required");return n.google.key};return r.openapi(c.getPredictions,e=>s(void 0,void 0,void 0,function*(){const t=e.get("auth"),o=e.req.valid("query");yield t.getCurrentUser();const i=yield new d(a()).getPredictions(o.query,o.radius);return e.json(i,200)})),r.openapi(c.getPlaceDetails,e=>s(void 0,void 0,void 0,function*(){const t=e.get("auth"),o=e.req.valid("param");yield t.getCurrentUser();const i=yield new d(a()).getPlaceDetails(o.placeId);return e.json(i,200)})),r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.handler.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/location/location.handler.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAA+B,EAAE,EAAE;IACtE,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"location.handler.js","sourceRoot":"","sources":["../../../../../../packages/rest-api/src/features/location/location.handler.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQrD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAA+B,EAAE,EAAE;IACtE,MAAM,GAAG,GAAG,eAAe,EAAE,CAAC;IAC9B,MAAM,mBAAmB,GAAG,GAAG,EAAE;;QAC/B,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,GAAG,CAAA,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;IAC5B,CAAC,CAAC;IAEF,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,cAAc,EAAE,CAAO,CAAC,EAAE,EAAE;QACpD,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3B,MAAM,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEnC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAE5B,MAAM,OAAO,GAAG,IAAI,eAAe,CAAC,mBAAmB,EAAE,CAAC,CAAC;QAC3D,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE5E,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC,CAAA,CAAC,CAAC;IAEH,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,eAAe,EAAE,CAAO,CAAC,EAAE,EAAE;QACrD,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC3B,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEpC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAE5B,MAAM,OAAO,GAAG,IAAI,eAAe,CAAC,mBAAmB,EAAE,CAAC,CAAC;QAC3D,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEnE,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC,CAAA,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|