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