@kimdaegyu/babmukdang-shared 1.1.10 → 2.0.2
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/dist/chunk-3BLXZW4U.js +338 -0
- package/dist/{chunk-AI2YMBJX.js → chunk-65DWKLP6.js} +18 -9
- package/dist/{chunk-H77ISYYC.js → chunk-6R5CCY5Q.js} +22 -8
- package/dist/{chunk-4E5E3PFW.js → chunk-DRCY5UNQ.js} +20 -7
- package/dist/chunk-EX7S5FI5.js +91 -0
- package/dist/{chunk-HRM3FQPL.js → chunk-EYZU5HPG.js} +4 -1
- package/dist/{chunk-OJVXYCSH.js → chunk-G7TITUHT.js} +1 -1
- package/dist/chunk-GESEM4IA.js +122 -0
- package/dist/chunk-IPANLE7B.js +632 -0
- package/dist/chunk-KREAZLLH.js +1062 -0
- package/dist/{chunk-K3CZKI2F.js → chunk-P3MYMK34.js} +24 -13
- package/dist/chunk-Q4BPFDVB.js +171 -0
- package/dist/{chunk-W4C7XHTX.js → chunk-QUAG5LF5.js} +13 -6
- package/dist/chunk-TIOX7OHA.js +863 -0
- package/dist/{chunk-GTVEQYJW.js → chunk-TOXRHSD6.js} +1 -1
- package/dist/chunk-YV734GYZ.js +165 -0
- package/dist/domain/article/index.cjs +107 -15
- package/dist/domain/article/index.d.cts +254 -0
- package/dist/domain/article/index.d.ts +254 -0
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +88 -9
- package/dist/domain/auth/index.d.cts +29 -0
- package/dist/domain/auth/index.d.ts +29 -0
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +2100 -395
- package/dist/domain/common/index.d.cts +328 -0
- package/dist/domain/common/index.d.ts +328 -0
- package/dist/domain/common/index.js +65 -31
- package/dist/domain/food/index.cjs +248 -0
- package/dist/domain/food/index.d.cts +321 -0
- package/dist/domain/food/index.d.ts +321 -0
- package/dist/domain/food/index.js +44 -0
- package/dist/domain/friend/index.cjs +108 -12
- package/dist/domain/friend/index.d.cts +72 -0
- package/dist/domain/friend/index.d.ts +72 -0
- package/dist/domain/friend/index.js +6 -4
- package/dist/domain/index.cjs +2736 -522
- package/dist/domain/index.d.cts +576 -0
- package/dist/domain/index.d.ts +576 -0
- package/dist/domain/index.js +429 -140
- package/dist/domain/live-activity/index.cjs +1061 -0
- package/dist/domain/live-activity/index.d.cts +177 -0
- package/dist/domain/live-activity/index.d.ts +177 -0
- package/dist/domain/live-activity/index.js +27 -0
- package/dist/domain/meal/index.cjs +101 -12
- package/dist/domain/meal/index.d.cts +47 -0
- package/dist/domain/meal/index.d.ts +47 -0
- package/dist/domain/meal/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +1504 -0
- package/dist/domain/meal-plan/index.d.cts +4424 -0
- package/dist/domain/meal-plan/index.d.ts +4424 -0
- package/dist/domain/meal-plan/index.js +256 -0
- package/dist/domain/member/index.cjs +114 -9
- package/dist/domain/member/index.d.cts +330 -0
- package/dist/domain/member/index.d.ts +330 -0
- package/dist/domain/member/index.js +26 -2
- package/dist/domain/promotion/index.cjs +26 -8
- package/dist/domain/promotion/index.d.cts +81 -0
- package/dist/domain/promotion/index.d.ts +81 -0
- package/dist/domain/promotion/index.js +3 -3
- package/dist/domain/push/index.cjs +1004 -0
- package/dist/domain/push/index.d.cts +169 -0
- package/dist/domain/push/index.d.ts +169 -0
- package/dist/domain/push/index.js +35 -0
- package/dist/domain/restaurant/index.cjs +10 -4
- package/dist/domain/restaurant/index.d.cts +34 -0
- package/dist/domain/restaurant/index.d.ts +34 -0
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +2533 -640
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +16 -191
- package/package.json +52 -55
- package/dist/chunk-PFSZSKD5.js +0 -0
- package/dist/chunk-PQMEXOPZ.js +0 -232
- package/dist/chunk-W4TUW2GY.js +0 -40
- package/dist/chunk-WNYCCQM4.js +0 -342
- package/dist/chunk-YGFAVC5N.js +0 -34
- package/dist/chunk-YM7YU7IR.js +0 -319
- package/dist/chunk-ZH7D7B2Y.js +0 -78
- package/dist/domain/invitation/index.cjs +0 -82
- package/dist/domain/invitation/index.js +0 -13
- package/dist/domain/plan/index.cjs +0 -327
- package/dist/domain/plan/index.js +0 -18
- package/dist/domain/recruit/index.cjs +0 -189
- package/dist/domain/recruit/index.js +0 -30
- package/dist/domain/room/index.cjs +0 -401
- package/dist/domain/room/index.js +0 -82
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ArticleSortBySchema: z.ZodEnum<{
|
|
4
|
+
createdAt: "createdAt";
|
|
5
|
+
likeCount: "likeCount";
|
|
6
|
+
commentCount: "commentCount";
|
|
7
|
+
}>;
|
|
8
|
+
declare const ArticleListQuerySchema: z.ZodObject<{
|
|
9
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
11
|
+
sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
createdAt: "createdAt";
|
|
13
|
+
likeCount: "likeCount";
|
|
14
|
+
commentCount: "commentCount";
|
|
15
|
+
}>>>;
|
|
16
|
+
direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
asc: "asc";
|
|
18
|
+
desc: "desc";
|
|
19
|
+
}>>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const UploadArticleImageResponseSchema: z.ZodObject<{
|
|
22
|
+
key: z.ZodString;
|
|
23
|
+
putUrl: z.ZodString;
|
|
24
|
+
cdnUrl: z.ZodString;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const UploadArticleImageRequestSchema: z.ZodObject<{
|
|
27
|
+
contentType: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const FoodAnalysisResultSchema: z.ZodObject<{
|
|
30
|
+
code: z.core.$ZodBranded<z.ZodString, "FoodCode", "out">;
|
|
31
|
+
label: z.core.$ZodBranded<z.ZodString, "FoodLabel", "out">;
|
|
32
|
+
confidence: z.ZodNumber;
|
|
33
|
+
tsUtc: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const CreateArticleRequestSchema: z.ZodObject<{
|
|
36
|
+
imageUrl: z.ZodString;
|
|
37
|
+
mealDate: z.ZodString;
|
|
38
|
+
restaurant: z.ZodObject<{
|
|
39
|
+
restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
|
|
40
|
+
placeName: z.ZodString;
|
|
41
|
+
categoryName: z.ZodString;
|
|
42
|
+
categoryGroupName: z.ZodString;
|
|
43
|
+
distance: z.ZodOptional<z.ZodString>;
|
|
44
|
+
roadAddressName: z.ZodString;
|
|
45
|
+
addressName: z.ZodString;
|
|
46
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
47
|
+
placeUrl: z.ZodNullable<z.ZodString>;
|
|
48
|
+
lat: z.ZodNumber;
|
|
49
|
+
lng: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
taggedMemberIds: z.ZodDefault<z.ZodArray<z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">>>;
|
|
52
|
+
foodAnalysis: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
code: z.core.$ZodBranded<z.ZodString, "FoodCode", "out">;
|
|
54
|
+
label: z.core.$ZodBranded<z.ZodString, "FoodLabel", "out">;
|
|
55
|
+
confidence: z.ZodNumber;
|
|
56
|
+
tsUtc: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
mealPlanId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
declare const CreateCommentRequestSchema: z.ZodObject<{
|
|
61
|
+
content: z.ZodString;
|
|
62
|
+
parentCommentId: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
declare const ArticleCommentSchema: z.ZodObject<{
|
|
65
|
+
commentId: z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">;
|
|
66
|
+
author: z.ZodObject<{
|
|
67
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
68
|
+
username: z.ZodString;
|
|
69
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
parentCommentId: z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">>;
|
|
72
|
+
content: z.ZodString;
|
|
73
|
+
createdAt: z.ZodString;
|
|
74
|
+
updatedAt: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
declare const ArticleCoreSchema: z.ZodObject<{
|
|
77
|
+
articleId: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
|
|
78
|
+
author: z.ZodObject<{
|
|
79
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
80
|
+
username: z.ZodString;
|
|
81
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
imageUrl: z.ZodString;
|
|
84
|
+
mealDate: z.ZodString;
|
|
85
|
+
restaurant: z.ZodObject<{
|
|
86
|
+
restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
|
|
87
|
+
placeName: z.ZodString;
|
|
88
|
+
categoryName: z.ZodString;
|
|
89
|
+
categoryGroupName: z.ZodString;
|
|
90
|
+
distance: z.ZodOptional<z.ZodString>;
|
|
91
|
+
roadAddressName: z.ZodString;
|
|
92
|
+
addressName: z.ZodString;
|
|
93
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
94
|
+
placeUrl: z.ZodNullable<z.ZodString>;
|
|
95
|
+
lat: z.ZodNumber;
|
|
96
|
+
lng: z.ZodNumber;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
mealPlanId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
|
|
99
|
+
createdAt: z.ZodString;
|
|
100
|
+
updatedAt: z.ZodString;
|
|
101
|
+
expiresAt: z.ZodString;
|
|
102
|
+
taggedMembers: z.ZodArray<z.ZodObject<{
|
|
103
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
104
|
+
username: z.ZodString;
|
|
105
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
}, z.core.$strip>>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
declare const ArticleSummaryResponseSchema: z.ZodObject<{
|
|
109
|
+
articleId: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
|
|
110
|
+
author: z.ZodObject<{
|
|
111
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
112
|
+
username: z.ZodString;
|
|
113
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
imageUrl: z.ZodString;
|
|
116
|
+
mealDate: z.ZodString;
|
|
117
|
+
restaurant: z.ZodObject<{
|
|
118
|
+
restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
|
|
119
|
+
placeName: z.ZodString;
|
|
120
|
+
categoryName: z.ZodString;
|
|
121
|
+
categoryGroupName: z.ZodString;
|
|
122
|
+
distance: z.ZodOptional<z.ZodString>;
|
|
123
|
+
roadAddressName: z.ZodString;
|
|
124
|
+
addressName: z.ZodString;
|
|
125
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
126
|
+
placeUrl: z.ZodNullable<z.ZodString>;
|
|
127
|
+
lat: z.ZodNumber;
|
|
128
|
+
lng: z.ZodNumber;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
mealPlanId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
|
|
131
|
+
createdAt: z.ZodString;
|
|
132
|
+
updatedAt: z.ZodString;
|
|
133
|
+
expiresAt: z.ZodString;
|
|
134
|
+
taggedMembers: z.ZodArray<z.ZodObject<{
|
|
135
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
136
|
+
username: z.ZodString;
|
|
137
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
likeCount: z.ZodNumber;
|
|
140
|
+
commentCount: z.ZodNumber;
|
|
141
|
+
likedByMe: z.ZodBoolean;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
declare const ArticleLikeResponseSchema: z.ZodObject<{
|
|
144
|
+
liked: z.ZodBoolean;
|
|
145
|
+
likeCount: z.ZodNumber;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
declare const ArticleDetailResponseSchema: z.ZodObject<{
|
|
148
|
+
articleId: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
|
|
149
|
+
author: z.ZodObject<{
|
|
150
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
151
|
+
username: z.ZodString;
|
|
152
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
imageUrl: z.ZodString;
|
|
155
|
+
mealDate: z.ZodString;
|
|
156
|
+
restaurant: z.ZodObject<{
|
|
157
|
+
restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
|
|
158
|
+
placeName: z.ZodString;
|
|
159
|
+
categoryName: z.ZodString;
|
|
160
|
+
categoryGroupName: z.ZodString;
|
|
161
|
+
distance: z.ZodOptional<z.ZodString>;
|
|
162
|
+
roadAddressName: z.ZodString;
|
|
163
|
+
addressName: z.ZodString;
|
|
164
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
165
|
+
placeUrl: z.ZodNullable<z.ZodString>;
|
|
166
|
+
lat: z.ZodNumber;
|
|
167
|
+
lng: z.ZodNumber;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
mealPlanId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
|
|
170
|
+
createdAt: z.ZodString;
|
|
171
|
+
updatedAt: z.ZodString;
|
|
172
|
+
expiresAt: z.ZodString;
|
|
173
|
+
taggedMembers: z.ZodArray<z.ZodObject<{
|
|
174
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
175
|
+
username: z.ZodString;
|
|
176
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
likeCount: z.ZodNumber;
|
|
179
|
+
commentCount: z.ZodNumber;
|
|
180
|
+
likedByMe: z.ZodBoolean;
|
|
181
|
+
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
182
|
+
commentId: z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">;
|
|
183
|
+
author: z.ZodObject<{
|
|
184
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
185
|
+
username: z.ZodString;
|
|
186
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
parentCommentId: z.ZodNullable<z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">>;
|
|
189
|
+
content: z.ZodString;
|
|
190
|
+
createdAt: z.ZodString;
|
|
191
|
+
updatedAt: z.ZodString;
|
|
192
|
+
}, z.core.$strip>>>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
declare const PageArticleSummaryResponseSchema: z.ZodObject<{
|
|
195
|
+
items: z.ZodArray<z.ZodObject<{
|
|
196
|
+
articleId: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
|
|
197
|
+
author: z.ZodObject<{
|
|
198
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
199
|
+
username: z.ZodString;
|
|
200
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
imageUrl: z.ZodString;
|
|
203
|
+
mealDate: z.ZodString;
|
|
204
|
+
restaurant: z.ZodObject<{
|
|
205
|
+
restaurantId: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
|
|
206
|
+
placeName: z.ZodString;
|
|
207
|
+
categoryName: z.ZodString;
|
|
208
|
+
categoryGroupName: z.ZodString;
|
|
209
|
+
distance: z.ZodOptional<z.ZodString>;
|
|
210
|
+
roadAddressName: z.ZodString;
|
|
211
|
+
addressName: z.ZodString;
|
|
212
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
213
|
+
placeUrl: z.ZodNullable<z.ZodString>;
|
|
214
|
+
lat: z.ZodNumber;
|
|
215
|
+
lng: z.ZodNumber;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
mealPlanId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">>;
|
|
218
|
+
createdAt: z.ZodString;
|
|
219
|
+
updatedAt: z.ZodString;
|
|
220
|
+
expiresAt: z.ZodString;
|
|
221
|
+
taggedMembers: z.ZodArray<z.ZodObject<{
|
|
222
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
223
|
+
username: z.ZodString;
|
|
224
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
likeCount: z.ZodNumber;
|
|
227
|
+
commentCount: z.ZodNumber;
|
|
228
|
+
likedByMe: z.ZodBoolean;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
meta: z.ZodObject<{
|
|
231
|
+
page: z.ZodNumber;
|
|
232
|
+
size: z.ZodNumber;
|
|
233
|
+
totalItems: z.ZodNumber;
|
|
234
|
+
totalPages: z.ZodNumber;
|
|
235
|
+
hasNext: z.ZodBoolean;
|
|
236
|
+
hasPrevious: z.ZodBoolean;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
|
|
240
|
+
type CreateArticleRequest = z.infer<typeof CreateArticleRequestSchema>;
|
|
241
|
+
type CreateCommentRequest = z.infer<typeof CreateCommentRequestSchema>;
|
|
242
|
+
type ArticleSortBy = z.infer<typeof ArticleSortBySchema>;
|
|
243
|
+
type ArticleListQueryRequest = z.infer<typeof ArticleListQuerySchema>;
|
|
244
|
+
type FoodAnalysisResult = z.infer<typeof FoodAnalysisResultSchema>;
|
|
245
|
+
type ArticleSummaryResponse = z.infer<typeof ArticleSummaryResponseSchema>;
|
|
246
|
+
type ArticleLikeResponse = z.infer<typeof ArticleLikeResponseSchema>;
|
|
247
|
+
type ArticleDetailResponse = z.infer<typeof ArticleDetailResponseSchema>;
|
|
248
|
+
type PageArticleSummaryResponse = z.infer<typeof PageArticleSummaryResponseSchema>;
|
|
249
|
+
type UploadArticleImageResponse = z.infer<typeof UploadArticleImageResponseSchema>;
|
|
250
|
+
type UploadArticleImageeRquest = z.infer<typeof UploadArticleImageRequestSchema>;
|
|
251
|
+
type ArticleCore = z.infer<typeof ArticleCoreSchema>;
|
|
252
|
+
type ArticleComment = z.infer<typeof ArticleCommentSchema>;
|
|
253
|
+
|
|
254
|
+
export { type ArticleComment, ArticleCommentSchema, type ArticleCore, ArticleCoreSchema, type ArticleDetailResponse, ArticleDetailResponseSchema, type ArticleLikeResponse, ArticleLikeResponseSchema, type ArticleListQueryRequest, ArticleListQuerySchema, type ArticleSortBy, ArticleSortBySchema, type ArticleSummaryResponse, ArticleSummaryResponseSchema, type CreateArticleRequest, CreateArticleRequestSchema, type CreateCommentRequest, CreateCommentRequestSchema, type FoodAnalysisResult, FoodAnalysisResultSchema, type PageArticleSummaryResponse, PageArticleSummaryResponseSchema, UploadArticleImageRequestSchema, type UploadArticleImageResponse, UploadArticleImageResponseSchema, type UploadArticleImageeRquest };
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
PageArticleSummaryResponseSchema,
|
|
13
13
|
UploadArticleImageRequestSchema,
|
|
14
14
|
UploadArticleImageResponseSchema
|
|
15
|
-
} from "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
15
|
+
} from "../../chunk-P3MYMK34.js";
|
|
16
|
+
import "../../chunk-TOXRHSD6.js";
|
|
17
|
+
import "../../chunk-YV734GYZ.js";
|
|
18
|
+
import "../../chunk-EYZU5HPG.js";
|
|
19
|
+
import "../../chunk-6R5CCY5Q.js";
|
|
20
20
|
export {
|
|
21
21
|
ArticleCommentSchema,
|
|
22
22
|
ArticleCoreSchema,
|
|
@@ -50,10 +50,16 @@ var NonEmptyStringIdSchema = import_zod.z.string().min(1);
|
|
|
50
50
|
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
51
51
|
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
52
52
|
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
53
|
+
var MealPlanIdSchema = import_zod.z.string().uuid().brand();
|
|
54
|
+
var MealPlanInviteIdSchema = import_zod.z.string().uuid().brand();
|
|
55
|
+
var MealPlanJoinRequestIdSchema = import_zod.z.string().uuid().brand();
|
|
56
|
+
var MealPlanNearbyFriendExposureBatchIdSchema = import_zod.z.string().uuid().brand();
|
|
57
|
+
var MealPlanChangeRequestIdSchema = import_zod.z.string().uuid().brand();
|
|
58
|
+
var MealPlanShareLinkIdSchema = import_zod.z.string().uuid().brand();
|
|
59
|
+
var MealPlanShareLinkTokenSchema = import_zod.z.string().min(8).max(128).brand();
|
|
60
|
+
var MealPlanChatRoomIdSchema = import_zod.z.string().uuid().brand();
|
|
61
|
+
var MealPlanChatMessageIdSchema = import_zod.z.string().uuid().brand();
|
|
62
|
+
var MealGroupIdSchema = import_zod.z.string().uuid().brand();
|
|
57
63
|
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
58
64
|
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
59
65
|
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
@@ -78,7 +84,65 @@ var UploadPresignImageRequestSchema = import_zod2.default.object({
|
|
|
78
84
|
});
|
|
79
85
|
|
|
80
86
|
// src/domain/member/member.schema.ts
|
|
81
|
-
var MemberRoleSchema = import_zod3.z.enum([
|
|
87
|
+
var MemberRoleSchema = import_zod3.z.enum([
|
|
88
|
+
"USER",
|
|
89
|
+
"ADMIN"
|
|
90
|
+
]);
|
|
91
|
+
var LocationConsentStatusSchema = import_zod3.z.enum([
|
|
92
|
+
"UNKNOWN",
|
|
93
|
+
"GRANTED",
|
|
94
|
+
"DENIED"
|
|
95
|
+
]);
|
|
96
|
+
var OnboardingStatusSchema = import_zod3.z.enum([
|
|
97
|
+
"REQUIRED",
|
|
98
|
+
"COMPLETED"
|
|
99
|
+
]);
|
|
100
|
+
var PermissionKindSchema = import_zod3.z.enum([
|
|
101
|
+
"LOCATION",
|
|
102
|
+
"NOTIFICATION",
|
|
103
|
+
"CAMERA"
|
|
104
|
+
]);
|
|
105
|
+
var PermissionStatusSchema = import_zod3.z.enum([
|
|
106
|
+
"UNKNOWN",
|
|
107
|
+
"PROMPT",
|
|
108
|
+
"GRANTED",
|
|
109
|
+
"DENIED",
|
|
110
|
+
"LIMITED",
|
|
111
|
+
"UNSUPPORTED"
|
|
112
|
+
]);
|
|
113
|
+
var PermissionPlatformSchema = import_zod3.z.enum([
|
|
114
|
+
"WEB",
|
|
115
|
+
"IOS",
|
|
116
|
+
"ANDROID",
|
|
117
|
+
"UNKNOWN"
|
|
118
|
+
]);
|
|
119
|
+
var DevicePermissionSnapshotSchema = import_zod3.z.object({
|
|
120
|
+
kind: PermissionKindSchema,
|
|
121
|
+
status: PermissionStatusSchema,
|
|
122
|
+
platform: PermissionPlatformSchema.default("UNKNOWN"),
|
|
123
|
+
canAskAgain: import_zod3.z.boolean().optional(),
|
|
124
|
+
checkedAt: import_zod3.z.string().datetime()
|
|
125
|
+
});
|
|
126
|
+
var MemberLocationSchema = import_zod3.z.object({
|
|
127
|
+
latitude: import_zod3.z.number().min(-90).max(90),
|
|
128
|
+
longitude: import_zod3.z.number().min(-180).max(180),
|
|
129
|
+
accuracyMeters: import_zod3.z.number().min(0).nullable().optional(),
|
|
130
|
+
capturedAt: import_zod3.z.string().datetime()
|
|
131
|
+
});
|
|
132
|
+
var UpdateMemberLocationConsentRequestSchema = import_zod3.z.object({
|
|
133
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
134
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().default(false),
|
|
135
|
+
mealSuggestionAllowed: import_zod3.z.boolean().optional(),
|
|
136
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.optional()
|
|
137
|
+
});
|
|
138
|
+
var MemberLocationSettingsResponseSchema = import_zod3.z.object({
|
|
139
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
140
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean(),
|
|
141
|
+
mealSuggestionAllowed: import_zod3.z.boolean(),
|
|
142
|
+
lastKnownLocation: MemberLocationSchema.nullable(),
|
|
143
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
|
|
144
|
+
updatedAt: import_zod3.z.string().datetime().nullable()
|
|
145
|
+
});
|
|
82
146
|
var MemberCoreSchema = import_zod3.z.object({
|
|
83
147
|
memberId: MemberIdSchema,
|
|
84
148
|
username: import_zod3.z.string().min(1).max(50),
|
|
@@ -90,6 +154,11 @@ var MemberResponseSchema = MemberCoreSchema.pick({
|
|
|
90
154
|
memberId: true,
|
|
91
155
|
username: true,
|
|
92
156
|
profileImageUrl: true
|
|
157
|
+
}).extend({
|
|
158
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
159
|
+
onboardingCompletedAt: import_zod3.z.string().datetime().nullable().default(null),
|
|
160
|
+
locationConsentStatus: LocationConsentStatusSchema.optional(),
|
|
161
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().optional()
|
|
93
162
|
});
|
|
94
163
|
var MemberSearchQuerySchema = import_zod3.z.object({
|
|
95
164
|
email: import_zod3.z.string().email().optional(),
|
|
@@ -100,7 +169,11 @@ var MemberDetailSchema = MemberCoreSchema.extend({
|
|
|
100
169
|
bio: import_zod3.z.string().nullable(),
|
|
101
170
|
friendConunt: import_zod3.z.number().int().min(0).default(0),
|
|
102
171
|
completedPlans: import_zod3.z.number().int().min(0).default(0),
|
|
103
|
-
uncompletedPlans: import_zod3.z.number().int().min(0).default(0)
|
|
172
|
+
uncompletedPlans: import_zod3.z.number().int().min(0).default(0),
|
|
173
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
174
|
+
onboardingCompletedAt: import_zod3.z.string().datetime().nullable().default(null),
|
|
175
|
+
locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
|
|
176
|
+
nearbyMealPlanExposureAllowed: import_zod3.z.boolean().default(false)
|
|
104
177
|
});
|
|
105
178
|
var FoodPreferenceItemSchema = FoodSchema.extend({});
|
|
106
179
|
var MemberFoodPreferenceSchema = import_zod3.z.object({
|
|
@@ -114,9 +187,15 @@ var UpdateProfileRequestSchema = import_zod3.z.object({
|
|
|
114
187
|
bio: import_zod3.z.string().max(500).nullable()
|
|
115
188
|
});
|
|
116
189
|
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
)
|
|
190
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
|
|
191
|
+
var OnboardingDraftSchema = import_zod3.z.object({
|
|
192
|
+
username: import_zod3.z.string().min(1).max(50).optional(),
|
|
193
|
+
profileImageUrl: import_zod3.z.string().url().nullable().optional(),
|
|
194
|
+
bio: import_zod3.z.string().max(500).nullable().optional(),
|
|
195
|
+
liked: import_zod3.z.array(FoodPreferenceItemSchema).optional(),
|
|
196
|
+
disliked: import_zod3.z.array(FoodPreferenceItemSchema).optional(),
|
|
197
|
+
allergy: import_zod3.z.array(FoodPreferenceItemSchema).optional()
|
|
198
|
+
});
|
|
120
199
|
|
|
121
200
|
// src/domain/auth/auth.schema.ts
|
|
122
201
|
var TokenResponseSchema = import_zod4.z.object({
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const TokenResponseSchema: z.ZodObject<{
|
|
4
|
+
accessToken: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
declare const LoginRequestSchema: z.ZodObject<{
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
password: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const SignupRequestSchema: z.ZodObject<{
|
|
11
|
+
email: z.ZodString;
|
|
12
|
+
password: z.ZodString;
|
|
13
|
+
username: z.ZodString;
|
|
14
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const SignupResponseSchema: z.ZodObject<{
|
|
17
|
+
member: z.ZodObject<{
|
|
18
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
19
|
+
username: z.ZodString;
|
|
20
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
|
|
24
|
+
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
25
|
+
type SignupRequest = z.infer<typeof SignupRequestSchema>;
|
|
26
|
+
type TokenResponse = z.infer<typeof TokenResponseSchema>;
|
|
27
|
+
type SignupResponse = z.infer<typeof SignupResponseSchema>;
|
|
28
|
+
|
|
29
|
+
export { type LoginRequest, LoginRequestSchema, type SignupRequest, SignupRequestSchema, type SignupResponse, SignupResponseSchema, type TokenResponse, TokenResponseSchema };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const TokenResponseSchema: z.ZodObject<{
|
|
4
|
+
accessToken: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
declare const LoginRequestSchema: z.ZodObject<{
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
password: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const SignupRequestSchema: z.ZodObject<{
|
|
11
|
+
email: z.ZodString;
|
|
12
|
+
password: z.ZodString;
|
|
13
|
+
username: z.ZodString;
|
|
14
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const SignupResponseSchema: z.ZodObject<{
|
|
17
|
+
member: z.ZodObject<{
|
|
18
|
+
memberId: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
|
|
19
|
+
username: z.ZodString;
|
|
20
|
+
profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
|
|
24
|
+
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
25
|
+
type SignupRequest = z.infer<typeof SignupRequestSchema>;
|
|
26
|
+
type TokenResponse = z.infer<typeof TokenResponseSchema>;
|
|
27
|
+
type SignupResponse = z.infer<typeof SignupResponseSchema>;
|
|
28
|
+
|
|
29
|
+
export { type LoginRequest, LoginRequestSchema, type SignupRequest, SignupRequestSchema, type SignupResponse, SignupResponseSchema, type TokenResponse, TokenResponseSchema };
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
SignupRequestSchema,
|
|
4
4
|
SignupResponseSchema,
|
|
5
5
|
TokenResponseSchema
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-G7TITUHT.js";
|
|
7
|
+
import "../../chunk-YV734GYZ.js";
|
|
8
|
+
import "../../chunk-6R5CCY5Q.js";
|
|
9
9
|
export {
|
|
10
10
|
LoginRequestSchema,
|
|
11
11
|
SignupRequestSchema,
|