@kimdaegyu/babmukdang-shared 1.1.11 → 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.
Files changed (100) hide show
  1. package/dist/chunk-3BLXZW4U.js +338 -0
  2. package/dist/{chunk-AI2YMBJX.js → chunk-65DWKLP6.js} +18 -9
  3. package/dist/{chunk-H77ISYYC.js → chunk-6R5CCY5Q.js} +22 -8
  4. package/dist/{chunk-4E5E3PFW.js → chunk-DRCY5UNQ.js} +20 -7
  5. package/dist/chunk-EX7S5FI5.js +91 -0
  6. package/dist/{chunk-HRM3FQPL.js → chunk-EYZU5HPG.js} +4 -1
  7. package/dist/{chunk-OJVXYCSH.js → chunk-G7TITUHT.js} +1 -1
  8. package/dist/chunk-GESEM4IA.js +122 -0
  9. package/dist/chunk-IPANLE7B.js +632 -0
  10. package/dist/chunk-KREAZLLH.js +1062 -0
  11. package/dist/{chunk-K3CZKI2F.js → chunk-P3MYMK34.js} +24 -13
  12. package/dist/chunk-Q4BPFDVB.js +171 -0
  13. package/dist/{chunk-W4C7XHTX.js → chunk-QUAG5LF5.js} +13 -6
  14. package/dist/chunk-TIOX7OHA.js +863 -0
  15. package/dist/{chunk-GTVEQYJW.js → chunk-TOXRHSD6.js} +1 -1
  16. package/dist/chunk-YV734GYZ.js +165 -0
  17. package/dist/domain/article/index.cjs +107 -15
  18. package/dist/domain/article/index.d.cts +79 -796
  19. package/dist/domain/article/index.d.ts +79 -796
  20. package/dist/domain/article/index.js +5 -5
  21. package/dist/domain/auth/index.cjs +88 -9
  22. package/dist/domain/auth/index.d.cts +6 -46
  23. package/dist/domain/auth/index.d.ts +6 -46
  24. package/dist/domain/auth/index.js +3 -3
  25. package/dist/domain/common/index.cjs +2100 -395
  26. package/dist/domain/common/index.d.cts +212 -3037
  27. package/dist/domain/common/index.d.ts +212 -3037
  28. package/dist/domain/common/index.js +65 -31
  29. package/dist/domain/food/index.cjs +248 -0
  30. package/dist/domain/food/index.d.cts +321 -0
  31. package/dist/domain/food/index.d.ts +321 -0
  32. package/dist/domain/food/index.js +44 -0
  33. package/dist/domain/friend/index.cjs +108 -12
  34. package/dist/domain/friend/index.d.cts +39 -98
  35. package/dist/domain/friend/index.d.ts +39 -98
  36. package/dist/domain/friend/index.js +6 -4
  37. package/dist/domain/index.cjs +2736 -522
  38. package/dist/domain/index.d.cts +383 -123
  39. package/dist/domain/index.d.ts +383 -123
  40. package/dist/domain/index.js +429 -140
  41. package/dist/domain/live-activity/index.cjs +1061 -0
  42. package/dist/domain/live-activity/index.d.cts +177 -0
  43. package/dist/domain/live-activity/index.d.ts +177 -0
  44. package/dist/domain/live-activity/index.js +27 -0
  45. package/dist/domain/meal/index.cjs +101 -12
  46. package/dist/domain/meal/index.d.cts +21 -40
  47. package/dist/domain/meal/index.d.ts +21 -40
  48. package/dist/domain/meal/index.js +4 -4
  49. package/dist/domain/meal-plan/index.cjs +1504 -0
  50. package/dist/domain/meal-plan/index.d.cts +4424 -0
  51. package/dist/domain/meal-plan/index.d.ts +4424 -0
  52. package/dist/domain/meal-plan/index.js +256 -0
  53. package/dist/domain/member/index.cjs +114 -9
  54. package/dist/domain/member/index.d.cts +263 -273
  55. package/dist/domain/member/index.d.ts +263 -273
  56. package/dist/domain/member/index.js +26 -2
  57. package/dist/domain/promotion/index.cjs +26 -8
  58. package/dist/domain/promotion/index.d.cts +35 -112
  59. package/dist/domain/promotion/index.d.ts +35 -112
  60. package/dist/domain/promotion/index.js +3 -3
  61. package/dist/domain/push/index.cjs +1004 -0
  62. package/dist/domain/push/index.d.cts +169 -0
  63. package/dist/domain/push/index.d.ts +169 -0
  64. package/dist/domain/push/index.js +35 -0
  65. package/dist/domain/restaurant/index.cjs +10 -4
  66. package/dist/domain/restaurant/index.d.cts +27 -1
  67. package/dist/domain/restaurant/index.d.ts +27 -1
  68. package/dist/domain/restaurant/index.js +2 -2
  69. package/dist/index.cjs +2535 -464
  70. package/dist/index.d.cts +5 -7
  71. package/dist/index.d.ts +5 -7
  72. package/dist/index.js +16 -15
  73. package/package.json +52 -55
  74. package/dist/chunk-PFSZSKD5.js +0 -0
  75. package/dist/chunk-PQMEXOPZ.js +0 -232
  76. package/dist/chunk-W4TUW2GY.js +0 -40
  77. package/dist/chunk-WNYCCQM4.js +0 -342
  78. package/dist/chunk-YGFAVC5N.js +0 -34
  79. package/dist/chunk-YM7YU7IR.js +0 -319
  80. package/dist/chunk-ZH7D7B2Y.js +0 -78
  81. package/dist/domain/invitation/index.cjs +0 -82
  82. package/dist/domain/invitation/index.d.cts +0 -64
  83. package/dist/domain/invitation/index.d.ts +0 -64
  84. package/dist/domain/invitation/index.js +0 -13
  85. package/dist/domain/plan/index.cjs +0 -327
  86. package/dist/domain/plan/index.d.cts +0 -178
  87. package/dist/domain/plan/index.d.ts +0 -178
  88. package/dist/domain/plan/index.js +0 -18
  89. package/dist/domain/recruit/index.cjs +0 -189
  90. package/dist/domain/recruit/index.d.cts +0 -214
  91. package/dist/domain/recruit/index.d.ts +0 -214
  92. package/dist/domain/recruit/index.js +0 -30
  93. package/dist/domain/room/index.cjs +0 -401
  94. package/dist/domain/room/index.d.cts +0 -2643
  95. package/dist/domain/room/index.d.ts +0 -2643
  96. package/dist/domain/room/index.js +0 -82
  97. package/dist/id-dAYxfjZn.d.cts +0 -64
  98. package/dist/id-dAYxfjZn.d.ts +0 -64
  99. package/dist/restaurant.schema-CuEcX3S3.d.cts +0 -78
  100. package/dist/restaurant.schema-CuEcX3S3.d.ts +0 -78
@@ -1,319 +0,0 @@
1
- import {
2
- PlanListQuerySchema,
3
- PlanResponseSchema
4
- } from "./chunk-W4TUW2GY.js";
5
- import {
6
- FriendMealItemResponseSchema,
7
- FriendMealQuerySchema,
8
- MealStatusResponseSchema,
9
- UpdateMealStatusRequestSchema
10
- } from "./chunk-W4C7XHTX.js";
11
- import {
12
- ChallengeStatusResponseSchema,
13
- ClaimChallengeRewardRequestSchema,
14
- CouponResponseSchema,
15
- RedeemReferralRequestSchema,
16
- ReferralCreateResponseSchema,
17
- ReferralItemResponseSchema
18
- } from "./chunk-AI2YMBJX.js";
19
- import {
20
- MatchingNotificationSchema,
21
- RoomAccessResponseSchema
22
- } from "./chunk-PQMEXOPZ.js";
23
- import {
24
- ArticleDetailResponseSchema,
25
- ArticleLikeResponseSchema,
26
- ArticleListQuerySchema,
27
- CreateArticleRequestSchema,
28
- CreateCommentRequestSchema,
29
- PageArticleSummaryResponseSchema,
30
- PageQuerySchema,
31
- PageResponseSchema,
32
- SortDirectionSchema,
33
- UploadArticleImageRequestSchema,
34
- UploadArticleImageResponseSchema
35
- } from "./chunk-K3CZKI2F.js";
36
- import {
37
- LoginRequestSchema,
38
- SignupRequestSchema,
39
- SignupResponseSchema,
40
- TokenResponseSchema
41
- } from "./chunk-OJVXYCSH.js";
42
- import {
43
- FriendBlockItemResponseSchema,
44
- FriendListItemResponseSchema,
45
- FriendRequestItemResponseSchema
46
- } from "./chunk-4E5E3PFW.js";
47
- import {
48
- ISODateTimeStringSchema
49
- } from "./chunk-HRM3FQPL.js";
50
- import {
51
- AcceptInvitationResponseSchema,
52
- CreateInvitationRequestSchema,
53
- InvitationListItemResponseSchema,
54
- SendInvitationResponseSchema
55
- } from "./chunk-YGFAVC5N.js";
56
- import {
57
- CreateProfileRequestSchema,
58
- MemberCoreSchema,
59
- MemberFoodPreferenceSchema,
60
- MemberResponseSchema,
61
- MemberSearchQuerySchema,
62
- MemberSerachResponseSchema,
63
- ProfileDetailResponseSchema,
64
- UpdatePreferenceRequestSchema,
65
- UpdateProfileRequestSchema,
66
- UploadProfileImageRequestSchema,
67
- UploadProfileImageResponseSchema
68
- } from "./chunk-ZH7D7B2Y.js";
69
- import {
70
- ArticleIdSchema,
71
- CommentIdSchema,
72
- CouponIdSchema,
73
- FriendRequestIdSchema,
74
- InvitationIdSchema,
75
- MemberIdSchema,
76
- PlanIdSchema,
77
- RecruitIdSchema,
78
- ReferralCodeSchema,
79
- RestaurantIdSchema,
80
- RoomIdSchema,
81
- SubscriptionIdSchema
82
- } from "./chunk-H77ISYYC.js";
83
-
84
- // src/domain/recruit/recruit.schema.ts
85
- import { z as z4 } from "zod";
86
-
87
- // src/domain/common/contracts/api.ts
88
- import { z as z3 } from "zod";
89
-
90
- // src/domain/common/schema/envelope.schema.ts
91
- import { z } from "zod";
92
- var NoContentSchema = z.null();
93
- var ApiSuccessSchema = (data) => z.object({
94
- success: z.literal(true),
95
- code: z.number().int(),
96
- message: z.string(),
97
- data
98
- });
99
- var ApiFailureSchema = z.object({
100
- success: z.literal(false),
101
- status: z.number().int(),
102
- code: z.string(),
103
- message: z.string()
104
- });
105
- var ApiResponseSchema = (data) => z.union([ApiSuccessSchema(data), ApiFailureSchema]);
106
- var CreatedEntityIdResponseSchema = z.discriminatedUnion("entity", [
107
- z.object({ entity: z.literal("article"), id: ArticleIdSchema }),
108
- z.object({ entity: z.literal("comment"), id: CommentIdSchema }),
109
- z.object({ entity: z.literal("recruit"), id: RecruitIdSchema }),
110
- z.object({ entity: z.literal("invitation"), id: InvitationIdSchema }),
111
- z.object({ entity: z.literal("subscription"), id: SubscriptionIdSchema }),
112
- z.object({ entity: z.literal("coupon"), id: CouponIdSchema }),
113
- z.object({ entity: z.literal("plan"), id: PlanIdSchema })
114
- ]);
115
-
116
- // src/domain/common/contracts/endpoint.ts
117
- import { z as z2 } from "zod";
118
- var NoBodySchema = z2.undefined();
119
- var NoQuerySchema = z2.undefined();
120
- var NoParamsSchema = z2.undefined();
121
- var endpoint = (contract) => ({
122
- method: contract.method,
123
- path: contract.path,
124
- pathParams: contract.pathParams ?? NoParamsSchema,
125
- query: contract.query ?? NoQuerySchema,
126
- body: contract.body ?? NoBodySchema,
127
- response: contract.response
128
- });
129
-
130
- // src/domain/common/contracts/api.ts
131
- var memberIdParam = z3.object({ memberId: MemberIdSchema });
132
- var articleIdParam = z3.object({ articleId: ArticleIdSchema });
133
- var commentIdParam = z3.object({ commentId: CommentIdSchema });
134
- var recruitIdParam = z3.object({ recruitId: RecruitIdSchema });
135
- var roomIdParam = z3.object({ roomId: RoomIdSchema });
136
- var invitationIdParam = z3.object({ invitationId: InvitationIdSchema });
137
- var notificationIdParam = z3.object({ notificationId: z3.string().min(1) });
138
- var planIdParam = z3.object({ planId: PlanIdSchema });
139
- var couponIdParam = z3.object({ couponId: CouponIdSchema });
140
- var friendRequestIdParam = z3.object({ requestId: FriendRequestIdSchema });
141
- var apiContract = {
142
- auth: {
143
- signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
144
- login: endpoint({ method: "POST", path: "/auth/login", body: LoginRequestSchema, response: TokenResponseSchema }),
145
- refresh: endpoint({ method: "POST", path: "/auth/refresh", response: TokenResponseSchema }),
146
- logout: endpoint({ method: "POST", path: "/auth/logout", response: NoContentSchema })
147
- // test: endpoint({method: "GET", path: "/auth/test", response: TokenResponseSchema}) TODO: Dev에서만 작동하도록 백엔드에서 수정해야함
148
- },
149
- members: {
150
- me: endpoint({ method: "GET", path: "/members/me", response: MemberResponseSchema }),
151
- myProfile: endpoint({ method: "GET", path: "/members/me/profile", response: ProfileDetailResponseSchema }),
152
- search: endpoint({ method: "GET", path: "/members/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
153
- memberProfile: endpoint({ method: "GET", path: "/members/:memberId/profile", pathParams: memberIdParam, response: ProfileDetailResponseSchema }),
154
- presignProfileImage: endpoint({ method: "POST", path: "/uploads/presign-profile", body: UploadProfileImageRequestSchema, response: UploadProfileImageResponseSchema }),
155
- createProfile: endpoint({ method: "POST", path: "/members/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
156
- updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema })
157
- },
158
- preferences: {
159
- my: endpoint({ method: "GET", path: "/preferences/me", response: MemberFoodPreferenceSchema }),
160
- update: endpoint({ method: "PATCH", path: "/preferences/me", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
161
- },
162
- mealStatus: {
163
- my: endpoint({ method: "GET", path: "/members/me/meal-status", response: MealStatusResponseSchema }),
164
- updateMealStatus: endpoint({ method: "PATCH", path: "/members/me/meal-status", body: UpdateMealStatusRequestSchema, response: NoContentSchema }),
165
- friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: z3.array(FriendMealItemResponseSchema) })
166
- },
167
- articles: {
168
- list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
169
- byMember: endpoint({ method: "GET", path: "/articles/by-author/:memberId", pathParams: memberIdParam, query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
170
- my: endpoint({ method: "GET", path: "/articles/my", response: PageArticleSummaryResponseSchema }),
171
- detail: endpoint({ method: "GET", path: "/articles/:articleId", pathParams: articleIdParam, response: ArticleDetailResponseSchema }),
172
- create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: CreatedEntityIdResponseSchema }),
173
- like: endpoint({ method: "POST", path: "/articles/:articleId/like", pathParams: articleIdParam, response: ArticleLikeResponseSchema }),
174
- createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: CreatedEntityIdResponseSchema }),
175
- presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", body: UploadArticleImageRequestSchema, response: UploadArticleImageResponseSchema }),
176
- delete: endpoint({ method: "DELETE", path: "/articles/:articleId", pathParams: articleIdParam, response: NoContentSchema }),
177
- deleteComment: endpoint({ method: "DELETE", path: "/articles/comments/:commentId", pathParams: commentIdParam, response: NoContentSchema })
178
- // TODO: 게시물 수정 기능
179
- },
180
- recruits: {
181
- list: endpoint({ method: "GET", path: "/recruits", query: RecruitListQuerySchema, response: RecruitListResponseSchema }),
182
- create: endpoint({ method: "POST", path: "/recruits", body: CreateRecruitRequestSchema, response: CreateRecruitResponseSchema }),
183
- join: endpoint({ method: "POST", path: "/recruits/:recruitId/join", pathParams: recruitIdParam, response: NoContentSchema }),
184
- close: endpoint({ method: "POST", path: "/recruits/:recruitId/close", pathParams: recruitIdParam, response: NoContentSchema })
185
- },
186
- invitations: {
187
- list: endpoint({ method: "GET", path: "/invitations", response: z3.array(InvitationListItemResponseSchema) }),
188
- // TODO: Invitation Response 정하기 detail: endpoint({ method: "GET", path: "/invitations/:invitationId", pathParams: invitationIdParam, response: InvitationItemDetailResponseSchema }),
189
- send: endpoint({ method: "POST", path: "/invitations/send", body: CreateInvitationRequestSchema, response: SendInvitationResponseSchema }),
190
- accept: endpoint({ method: "POST", path: "/invitations/:invitationId/accept", pathParams: invitationIdParam, response: AcceptInvitationResponseSchema }),
191
- reject: endpoint({ method: "POST", path: "/invitations/:invitationId/reject", pathParams: invitationIdParam, response: NoContentSchema })
192
- },
193
- plans: {
194
- list: endpoint({ method: "GET", path: "/plans", query: PlanListQuerySchema, response: z3.array(PlanResponseSchema) }),
195
- detail: endpoint({ method: "GET", path: "/plans/:planId", pathParams: planIdParam, response: PlanResponseSchema }),
196
- cancel: endpoint({ method: "PATCH", path: "/plans/:planId/cancel", pathParams: planIdParam, response: NoContentSchema })
197
- },
198
- friends: {
199
- list: endpoint({ method: "GET", path: "/friends", response: z3.array(FriendListItemResponseSchema) }),
200
- blockList: endpoint({ method: "GET", path: "/friends/blocks", response: z3.array(FriendBlockItemResponseSchema) }),
201
- search: endpoint({ method: "GET", path: "/friends/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
202
- incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: z3.array(FriendRequestItemResponseSchema) }),
203
- outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: z3.array(FriendRequestItemResponseSchema) }),
204
- sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
205
- acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
206
- rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
207
- block: endpoint({ method: "POST", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
208
- cancelRequest: endpoint({ method: "DELETE", path: "/friends/requests/:requestId", pathParams: friendRequestIdParam, response: NoContentSchema }),
209
- unblock: endpoint({ method: "DELETE", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
210
- unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
211
- },
212
- coupons: {
213
- list: endpoint({ method: "GET", path: "/coupons", response: z3.array(CouponResponseSchema) }),
214
- use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
215
- },
216
- challenges: {
217
- status: endpoint({ method: "GET", path: "/challenges/status", response: ChallengeStatusResponseSchema }),
218
- claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
219
- },
220
- referrals: {
221
- list: endpoint({ method: "GET", path: "/referrals", response: z3.array(ReferralItemResponseSchema) }),
222
- create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
223
- redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
224
- },
225
- notifications: {
226
- list: endpoint({ method: "GET", path: "/notifications", response: z3.array(MatchingNotificationSchema) }),
227
- markRead: endpoint({ method: "PATCH", path: "/notifications/:notificationId/read", pathParams: notificationIdParam, response: MatchingNotificationSchema }),
228
- delete: endpoint({ method: "DELETE", path: "/notifications/:notificationId", pathParams: notificationIdParam, response: NoContentSchema })
229
- },
230
- room: {
231
- access: endpoint({ method: "GET", path: "/rooms/:roomId/access", pathParams: roomIdParam, response: RoomAccessResponseSchema })
232
- },
233
- health: {
234
- healthCheck: endpoint({ method: "GET", path: "/", response: z3.string() })
235
- }
236
- };
237
-
238
- // src/domain/common/contracts/envelope.ts
239
- var makeApiResponseSchema = ApiResponseSchema;
240
- var makeApiSuccessSchema = ApiSuccessSchema;
241
-
242
- // src/domain/common/contracts/id.ts
243
- var toMemberId = (value) => MemberIdSchema.parse(value);
244
- var toArticleId = (value) => ArticleIdSchema.parse(value);
245
- var toRecruitId = (value) => RecruitIdSchema.parse(value);
246
- var toInvitationId = (value) => InvitationIdSchema.parse(value);
247
- var toRoomId = (value) => RoomIdSchema.parse(value);
248
- var toRestaurantId = (value) => RestaurantIdSchema.parse(value);
249
- var toCommentId = (value) => CommentIdSchema.parse(value);
250
- var toPlanId = (value) => PlanIdSchema.parse(value);
251
- var toCouponId = (value) => CouponIdSchema.parse(value);
252
- var toSubscriptionId = (value) => SubscriptionIdSchema.parse(value);
253
- var toFriendRequestId = (value) => FriendRequestIdSchema.parse(value);
254
- var toReferralCode = (value) => ReferralCodeSchema.parse(value);
255
-
256
- // src/domain/recruit/recruit.schema.ts
257
- var RecruitStatusSchema = z4.enum(["OPEN", "CLOSED", "EXPIRED"]);
258
- var RecruitParticipantSchema = MemberCoreSchema.extend({});
259
- var RecruitSortBySchema = z4.enum(["createdAt", "deadline", "participantCount"]);
260
- var RecruitListQuerySchema = PageQuerySchema.extend({
261
- sortBy: RecruitSortBySchema.default("createdAt"),
262
- direction: SortDirectionSchema.default("desc")
263
- });
264
- var RecruitResponseSchema = z4.object({
265
- targetCount: z4.number().int().min(2),
266
- meetingAt: ISODateTimeStringSchema,
267
- location: z4.string().min(1),
268
- message: z4.string().max(500),
269
- recruitId: RecruitIdSchema,
270
- status: RecruitStatusSchema,
271
- createdAt: ISODateTimeStringSchema,
272
- expiredAt: ISODateTimeStringSchema,
273
- updatedAt: ISODateTimeStringSchema,
274
- author: MemberCoreSchema,
275
- participants: z4.array(RecruitParticipantSchema)
276
- });
277
- var RecruitListResponseSchema = PageResponseSchema(RecruitResponseSchema);
278
- var CreateRecruitRequestSchema = z4.object({
279
- targetCount: z4.number().int().min(2),
280
- meetingAt: ISODateTimeStringSchema,
281
- location: z4.string().min(1),
282
- message: z4.string().max(500)
283
- });
284
- var CreateRecruitResponseSchema = z4.object({
285
- recruitId: RecruitIdSchema
286
- });
287
-
288
- export {
289
- NoContentSchema,
290
- ApiSuccessSchema,
291
- ApiFailureSchema,
292
- ApiResponseSchema,
293
- CreatedEntityIdResponseSchema,
294
- RecruitStatusSchema,
295
- RecruitSortBySchema,
296
- RecruitListQuerySchema,
297
- RecruitListResponseSchema,
298
- CreateRecruitRequestSchema,
299
- CreateRecruitResponseSchema,
300
- NoBodySchema,
301
- NoQuerySchema,
302
- NoParamsSchema,
303
- endpoint,
304
- apiContract,
305
- makeApiResponseSchema,
306
- makeApiSuccessSchema,
307
- toMemberId,
308
- toArticleId,
309
- toRecruitId,
310
- toInvitationId,
311
- toRoomId,
312
- toRestaurantId,
313
- toCommentId,
314
- toPlanId,
315
- toCouponId,
316
- toSubscriptionId,
317
- toFriendRequestId,
318
- toReferralCode
319
- };
@@ -1,78 +0,0 @@
1
- import {
2
- FoodSchema,
3
- MemberIdSchema
4
- } from "./chunk-H77ISYYC.js";
5
-
6
- // src/domain/member/member.schema.ts
7
- import { z as z2 } from "zod";
8
-
9
- // src/domain/common/contracts/upload.ts
10
- import z from "zod";
11
- var UploadPresignImageResponseSchema = z.object({
12
- key: z.string(),
13
- putUrl: z.string().url(),
14
- cdnUrl: z.string().url()
15
- });
16
- var UploadPresignImageRequestSchema = z.object({
17
- contentType: z.string()
18
- });
19
-
20
- // src/domain/member/member.schema.ts
21
- var MemberRoleSchema = z2.enum(["USER", "ADMIN"]);
22
- var MemberCoreSchema = z2.object({
23
- memberId: MemberIdSchema,
24
- username: z2.string().min(1).max(50),
25
- profileImageUrl: z2.string().url().nullable().optional()
26
- });
27
- var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
28
- var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
29
- var MemberResponseSchema = MemberCoreSchema.pick({
30
- memberId: true,
31
- username: true,
32
- profileImageUrl: true
33
- });
34
- var MemberSearchQuerySchema = z2.object({
35
- email: z2.string().email().optional(),
36
- username: z2.string().optional()
37
- });
38
- var MemberSerachResponseSchema = z2.array(MemberCoreSchema);
39
- var MemberDetailSchema = MemberCoreSchema.extend({
40
- bio: z2.string().nullable(),
41
- friendConunt: z2.number().int().min(0).default(0),
42
- completedPlans: z2.number().int().min(0).default(0),
43
- uncompletedPlans: z2.number().int().min(0).default(0)
44
- });
45
- var FoodPreferenceItemSchema = FoodSchema.extend({});
46
- var MemberFoodPreferenceSchema = z2.object({
47
- liked: z2.array(FoodPreferenceItemSchema).optional(),
48
- disliked: z2.array(FoodPreferenceItemSchema).optional(),
49
- allergy: z2.array(FoodPreferenceItemSchema).optional()
50
- });
51
- var ProfileDetailResponseSchema = MemberDetailSchema;
52
- var UpdateProfileRequestSchema = z2.object({
53
- username: z2.string().min(1).max(50),
54
- profileImageUrl: z2.string().url().nullable(),
55
- bio: z2.string().max(500).nullable()
56
- });
57
- var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
58
- var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
59
- UpdatePreferenceRequestSchema
60
- );
61
-
62
- export {
63
- UploadPresignImageResponseSchema,
64
- UploadPresignImageRequestSchema,
65
- MemberRoleSchema,
66
- MemberCoreSchema,
67
- UploadProfileImageResponseSchema,
68
- UploadProfileImageRequestSchema,
69
- MemberResponseSchema,
70
- MemberSearchQuerySchema,
71
- MemberSerachResponseSchema,
72
- MemberDetailSchema,
73
- MemberFoodPreferenceSchema,
74
- ProfileDetailResponseSchema,
75
- UpdateProfileRequestSchema,
76
- UpdatePreferenceRequestSchema,
77
- CreateProfileRequestSchema
78
- };
@@ -1,82 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/domain/invitation/index.ts
21
- var invitation_exports = {};
22
- __export(invitation_exports, {
23
- AcceptInvitationResponseSchema: () => AcceptInvitationResponseSchema,
24
- CreateInvitationRequestSchema: () => CreateInvitationRequestSchema,
25
- InvitationListItemResponseSchema: () => InvitationListItemResponseSchema,
26
- SendInvitationResponseSchema: () => SendInvitationResponseSchema
27
- });
28
- module.exports = __toCommonJS(invitation_exports);
29
-
30
- // src/domain/invitation/invitation.schema.ts
31
- var import_zod2 = require("zod");
32
-
33
- // src/domain/common/schema/id.schema.ts
34
- var import_zod = require("zod");
35
- var PositiveIntIdSchema = import_zod.z.number().int().positive();
36
- var NonEmptyStringIdSchema = import_zod.z.string().min(1);
37
- var MemberIdSchema = PositiveIntIdSchema.brand();
38
- var ArticleIdSchema = PositiveIntIdSchema.brand();
39
- var CommentIdSchema = PositiveIntIdSchema.brand();
40
- var RecruitIdSchema = PositiveIntIdSchema.brand();
41
- var PlanIdSchema = PositiveIntIdSchema.brand();
42
- var InvitationIdSchema = PositiveIntIdSchema.brand();
43
- var RoomIdSchema = NonEmptyStringIdSchema.brand();
44
- var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
45
- var CouponIdSchema = PositiveIntIdSchema.brand();
46
- var SubscriptionIdSchema = PositiveIntIdSchema.brand();
47
- var FriendRequestIdSchema = PositiveIntIdSchema.brand();
48
- var ReferralCodeSchema = import_zod.z.string().min(4).max(64).brand();
49
- var FoodCodeSchema = NonEmptyStringIdSchema.brand();
50
- var FoodLabelSchema = NonEmptyStringIdSchema.brand();
51
- var FoodSchema = import_zod.z.object({
52
- code: FoodCodeSchema,
53
- label: FoodLabelSchema
54
- });
55
-
56
- // src/domain/invitation/invitation.schema.ts
57
- var CreateInvitationRequestSchema = import_zod2.z.object({
58
- inviteeId: MemberIdSchema,
59
- message: import_zod2.z.string().min(1).max(500)
60
- });
61
- var InvitationListItemResponseSchema = import_zod2.z.object({
62
- invitationId: InvitationIdSchema,
63
- inviterName: import_zod2.z.string(),
64
- inviterProfileImageUrl: import_zod2.z.string().url().nullable().optional()
65
- });
66
- var SendInvitationResponseSchema = import_zod2.z.object({
67
- invitationId: InvitationIdSchema
68
- });
69
- var AcceptInvitationResponseSchema = import_zod2.z.object({
70
- invitationId: InvitationIdSchema,
71
- room: import_zod2.z.object({
72
- type: import_zod2.z.literal("invitation"),
73
- roomId: RoomIdSchema
74
- })
75
- });
76
- // Annotate the CommonJS export names for ESM import in node:
77
- 0 && (module.exports = {
78
- AcceptInvitationResponseSchema,
79
- CreateInvitationRequestSchema,
80
- InvitationListItemResponseSchema,
81
- SendInvitationResponseSchema
82
- });
@@ -1,64 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const CreateInvitationRequestSchema: z.ZodObject<{
4
- inviteeId: z.ZodBranded<z.ZodNumber, "MemberId">;
5
- message: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- message: string;
8
- inviteeId: number & z.BRAND<"MemberId">;
9
- }, {
10
- message: string;
11
- inviteeId: number;
12
- }>;
13
- declare const InvitationListItemResponseSchema: z.ZodObject<{
14
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
15
- inviterName: z.ZodString;
16
- inviterProfileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, "strip", z.ZodTypeAny, {
18
- invitationId: number & z.BRAND<"InvitationId">;
19
- inviterName: string;
20
- inviterProfileImageUrl?: string | null | undefined;
21
- }, {
22
- invitationId: number;
23
- inviterName: string;
24
- inviterProfileImageUrl?: string | null | undefined;
25
- }>;
26
- declare const SendInvitationResponseSchema: z.ZodObject<{
27
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
28
- }, "strip", z.ZodTypeAny, {
29
- invitationId: number & z.BRAND<"InvitationId">;
30
- }, {
31
- invitationId: number;
32
- }>;
33
- declare const AcceptInvitationResponseSchema: z.ZodObject<{
34
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
35
- room: z.ZodObject<{
36
- type: z.ZodLiteral<"invitation">;
37
- roomId: z.ZodBranded<z.ZodString, "RoomId">;
38
- }, "strip", z.ZodTypeAny, {
39
- type: "invitation";
40
- roomId: string & z.BRAND<"RoomId">;
41
- }, {
42
- type: "invitation";
43
- roomId: string;
44
- }>;
45
- }, "strip", z.ZodTypeAny, {
46
- invitationId: number & z.BRAND<"InvitationId">;
47
- room: {
48
- type: "invitation";
49
- roomId: string & z.BRAND<"RoomId">;
50
- };
51
- }, {
52
- invitationId: number;
53
- room: {
54
- type: "invitation";
55
- roomId: string;
56
- };
57
- }>;
58
-
59
- type CreateInvitationRequest = z.infer<typeof CreateInvitationRequestSchema>;
60
- type InvitationResponse = z.infer<typeof InvitationListItemResponseSchema>;
61
- type SendInvitationResponse = z.infer<typeof SendInvitationResponseSchema>;
62
- type AcceptInvitationResponse = z.infer<typeof AcceptInvitationResponseSchema>;
63
-
64
- export { type AcceptInvitationResponse, AcceptInvitationResponseSchema, type CreateInvitationRequest, CreateInvitationRequestSchema, InvitationListItemResponseSchema, type InvitationResponse, type SendInvitationResponse, SendInvitationResponseSchema };
@@ -1,64 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const CreateInvitationRequestSchema: z.ZodObject<{
4
- inviteeId: z.ZodBranded<z.ZodNumber, "MemberId">;
5
- message: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- message: string;
8
- inviteeId: number & z.BRAND<"MemberId">;
9
- }, {
10
- message: string;
11
- inviteeId: number;
12
- }>;
13
- declare const InvitationListItemResponseSchema: z.ZodObject<{
14
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
15
- inviterName: z.ZodString;
16
- inviterProfileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, "strip", z.ZodTypeAny, {
18
- invitationId: number & z.BRAND<"InvitationId">;
19
- inviterName: string;
20
- inviterProfileImageUrl?: string | null | undefined;
21
- }, {
22
- invitationId: number;
23
- inviterName: string;
24
- inviterProfileImageUrl?: string | null | undefined;
25
- }>;
26
- declare const SendInvitationResponseSchema: z.ZodObject<{
27
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
28
- }, "strip", z.ZodTypeAny, {
29
- invitationId: number & z.BRAND<"InvitationId">;
30
- }, {
31
- invitationId: number;
32
- }>;
33
- declare const AcceptInvitationResponseSchema: z.ZodObject<{
34
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
35
- room: z.ZodObject<{
36
- type: z.ZodLiteral<"invitation">;
37
- roomId: z.ZodBranded<z.ZodString, "RoomId">;
38
- }, "strip", z.ZodTypeAny, {
39
- type: "invitation";
40
- roomId: string & z.BRAND<"RoomId">;
41
- }, {
42
- type: "invitation";
43
- roomId: string;
44
- }>;
45
- }, "strip", z.ZodTypeAny, {
46
- invitationId: number & z.BRAND<"InvitationId">;
47
- room: {
48
- type: "invitation";
49
- roomId: string & z.BRAND<"RoomId">;
50
- };
51
- }, {
52
- invitationId: number;
53
- room: {
54
- type: "invitation";
55
- roomId: string;
56
- };
57
- }>;
58
-
59
- type CreateInvitationRequest = z.infer<typeof CreateInvitationRequestSchema>;
60
- type InvitationResponse = z.infer<typeof InvitationListItemResponseSchema>;
61
- type SendInvitationResponse = z.infer<typeof SendInvitationResponseSchema>;
62
- type AcceptInvitationResponse = z.infer<typeof AcceptInvitationResponseSchema>;
63
-
64
- export { type AcceptInvitationResponse, AcceptInvitationResponseSchema, type CreateInvitationRequest, CreateInvitationRequestSchema, InvitationListItemResponseSchema, type InvitationResponse, type SendInvitationResponse, SendInvitationResponseSchema };
@@ -1,13 +0,0 @@
1
- import {
2
- AcceptInvitationResponseSchema,
3
- CreateInvitationRequestSchema,
4
- InvitationListItemResponseSchema,
5
- SendInvitationResponseSchema
6
- } from "../../chunk-YGFAVC5N.js";
7
- import "../../chunk-H77ISYYC.js";
8
- export {
9
- AcceptInvitationResponseSchema,
10
- CreateInvitationRequestSchema,
11
- InvitationListItemResponseSchema,
12
- SendInvitationResponseSchema
13
- };