@kimdaegyu/babmukdang-shared 1.1.4 → 1.1.10

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 (67) hide show
  1. package/dist/{chunk-U6OQQOPN.js → chunk-4E5E3PFW.js} +6 -2
  2. package/dist/{chunk-VAWYU5JG.js → chunk-AI2YMBJX.js} +4 -1
  3. package/dist/{chunk-RLVHDFEV.js → chunk-K3CZKI2F.js} +7 -4
  4. package/dist/{chunk-J76VB5SE.js → chunk-OJVXYCSH.js} +2 -3
  5. package/dist/{chunk-M5OSCHMV.js → chunk-PQMEXOPZ.js} +55 -6
  6. package/dist/{chunk-UJJMW7II.js → chunk-W4C7XHTX.js} +1 -1
  7. package/dist/{chunk-W3YQYI4R.js → chunk-W4TUW2GY.js} +2 -2
  8. package/dist/{chunk-23FZ4MAS.js → chunk-WNYCCQM4.js} +49 -33
  9. package/dist/{chunk-SOHYA6XL.js → chunk-YM7YU7IR.js} +102 -87
  10. package/dist/{chunk-KRVEQVRC.js → chunk-ZH7D7B2Y.js} +10 -4
  11. package/dist/domain/article/index.cjs +12 -5
  12. package/dist/domain/article/index.js +6 -4
  13. package/dist/domain/auth/index.cjs +7 -4
  14. package/dist/domain/auth/index.js +2 -2
  15. package/dist/domain/common/index.cjs +243 -181
  16. package/dist/domain/common/index.js +12 -11
  17. package/dist/domain/friend/index.cjs +14 -4
  18. package/dist/domain/friend/index.js +8 -4
  19. package/dist/domain/index.cjs +261 -183
  20. package/dist/domain/index.js +51 -35
  21. package/dist/domain/meal/index.cjs +6 -2
  22. package/dist/domain/meal/index.js +3 -3
  23. package/dist/domain/member/index.cjs +12 -6
  24. package/dist/domain/member/index.js +7 -5
  25. package/dist/domain/plan/index.cjs +55 -6
  26. package/dist/domain/plan/index.js +4 -4
  27. package/dist/domain/promotion/index.cjs +4 -1
  28. package/dist/domain/promotion/index.js +1 -1
  29. package/dist/domain/recruit/index.cjs +11 -3
  30. package/dist/domain/recruit/index.js +11 -10
  31. package/dist/domain/room/index.cjs +63 -6
  32. package/dist/domain/room/index.js +11 -3
  33. package/dist/index.cjs +254 -184
  34. package/dist/index.js +14 -14
  35. package/package.json +1 -1
  36. package/dist/domain/article/index.d.cts +0 -963
  37. package/dist/domain/article/index.d.ts +0 -963
  38. package/dist/domain/auth/index.d.cts +0 -72
  39. package/dist/domain/auth/index.d.ts +0 -72
  40. package/dist/domain/common/index.d.cts +0 -2903
  41. package/dist/domain/common/index.d.ts +0 -2903
  42. package/dist/domain/friend/index.d.cts +0 -117
  43. package/dist/domain/friend/index.d.ts +0 -117
  44. package/dist/domain/index.d.cts +0 -14
  45. package/dist/domain/index.d.ts +0 -14
  46. package/dist/domain/invitation/index.d.cts +0 -64
  47. package/dist/domain/invitation/index.d.ts +0 -64
  48. package/dist/domain/meal/index.d.cts +0 -66
  49. package/dist/domain/meal/index.d.ts +0 -66
  50. package/dist/domain/member/index.d.cts +0 -332
  51. package/dist/domain/member/index.d.ts +0 -332
  52. package/dist/domain/plan/index.d.cts +0 -178
  53. package/dist/domain/plan/index.d.ts +0 -178
  54. package/dist/domain/promotion/index.d.cts +0 -114
  55. package/dist/domain/promotion/index.d.ts +0 -114
  56. package/dist/domain/recruit/index.d.cts +0 -130
  57. package/dist/domain/recruit/index.d.ts +0 -130
  58. package/dist/domain/restaurant/index.d.cts +0 -82
  59. package/dist/domain/restaurant/index.d.ts +0 -82
  60. package/dist/domain/room/index.d.cts +0 -1482
  61. package/dist/domain/room/index.d.ts +0 -1482
  62. package/dist/id-dAYxfjZn.d.cts +0 -64
  63. package/dist/id-dAYxfjZn.d.ts +0 -64
  64. package/dist/index-CZT6irsm.d.cts +0 -294
  65. package/dist/index-DDLVbMTB.d.ts +0 -294
  66. package/dist/index.d.cts +0 -282
  67. package/dist/index.d.ts +0 -282
@@ -1,3 +1,13 @@
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";
1
11
  import {
2
12
  ChallengeStatusResponseSchema,
3
13
  ClaimChallengeRewardRequestSchema,
@@ -5,11 +15,11 @@ import {
5
15
  RedeemReferralRequestSchema,
6
16
  ReferralCreateResponseSchema,
7
17
  ReferralItemResponseSchema
8
- } from "./chunk-VAWYU5JG.js";
18
+ } from "./chunk-AI2YMBJX.js";
9
19
  import {
10
- PlanListQuerySchema,
11
- PlanResponseSchema
12
- } from "./chunk-W3YQYI4R.js";
20
+ MatchingNotificationSchema,
21
+ RoomAccessResponseSchema
22
+ } from "./chunk-PQMEXOPZ.js";
13
23
  import {
14
24
  ArticleDetailResponseSchema,
15
25
  ArticleLikeResponseSchema,
@@ -18,35 +28,31 @@ import {
18
28
  CreateCommentRequestSchema,
19
29
  PageArticleSummaryResponseSchema,
20
30
  PageQuerySchema,
21
- PresignArticleResponseSchema,
22
- SortDirectionSchema
23
- } from "./chunk-RLVHDFEV.js";
31
+ PageResponseSchema,
32
+ SortDirectionSchema,
33
+ UploadArticleImageRequestSchema,
34
+ UploadArticleImageResponseSchema
35
+ } from "./chunk-K3CZKI2F.js";
24
36
  import {
25
37
  LoginRequestSchema,
26
38
  SignupRequestSchema,
27
39
  SignupResponseSchema,
28
40
  TokenResponseSchema
29
- } from "./chunk-J76VB5SE.js";
41
+ } from "./chunk-OJVXYCSH.js";
30
42
  import {
31
43
  FriendBlockItemResponseSchema,
32
44
  FriendListItemResponseSchema,
33
45
  FriendRequestItemResponseSchema
34
- } from "./chunk-U6OQQOPN.js";
46
+ } from "./chunk-4E5E3PFW.js";
47
+ import {
48
+ ISODateTimeStringSchema
49
+ } from "./chunk-HRM3FQPL.js";
35
50
  import {
36
51
  AcceptInvitationResponseSchema,
37
52
  CreateInvitationRequestSchema,
38
53
  InvitationListItemResponseSchema,
39
54
  SendInvitationResponseSchema
40
55
  } from "./chunk-YGFAVC5N.js";
41
- import {
42
- FriendMealItemResponseSchema,
43
- FriendMealQuerySchema,
44
- MealStatusResponseSchema,
45
- UpdateMealStatusRequestSchema
46
- } from "./chunk-UJJMW7II.js";
47
- import {
48
- ISODateTimeStringSchema
49
- } from "./chunk-HRM3FQPL.js";
50
56
  import {
51
57
  CreateProfileRequestSchema,
52
58
  MemberCoreSchema,
@@ -54,11 +60,12 @@ import {
54
60
  MemberResponseSchema,
55
61
  MemberSearchQuerySchema,
56
62
  MemberSerachResponseSchema,
57
- PresignProfileResponseSchema,
58
63
  ProfileDetailResponseSchema,
59
64
  UpdatePreferenceRequestSchema,
60
- UpdateProfileRequestSchema
61
- } from "./chunk-KRVEQVRC.js";
65
+ UpdateProfileRequestSchema,
66
+ UploadProfileImageRequestSchema,
67
+ UploadProfileImageResponseSchema
68
+ } from "./chunk-ZH7D7B2Y.js";
62
69
  import {
63
70
  ArticleIdSchema,
64
71
  CommentIdSchema,
@@ -78,13 +85,39 @@ import {
78
85
  import { z as z4 } from "zod";
79
86
 
80
87
  // src/domain/common/contracts/api.ts
81
- import { z as z2 } from "zod";
88
+ import { z as z3 } from "zod";
82
89
 
83
- // src/domain/common/contracts/endpoint.ts
90
+ // src/domain/common/schema/envelope.schema.ts
84
91
  import { z } from "zod";
85
- var NoBodySchema = z.undefined();
86
- var NoQuerySchema = z.undefined();
87
- var NoParamsSchema = z.undefined();
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();
88
121
  var endpoint = (contract) => ({
89
122
  method: contract.method,
90
123
  path: contract.path,
@@ -95,28 +128,30 @@ var endpoint = (contract) => ({
95
128
  });
96
129
 
97
130
  // src/domain/common/contracts/api.ts
98
- var memberIdParam = z2.object({ memberId: MemberIdSchema });
99
- var articleIdParam = z2.object({ articleId: ArticleIdSchema });
100
- var commentIdParam = z2.object({ commentId: CommentIdSchema });
101
- var recruitIdParam = z2.object({ recruitId: RecruitIdSchema });
102
- var invitationIdParam = z2.object({ invitationId: InvitationIdSchema });
103
- var planIdParam = z2.object({ planId: PlanIdSchema });
104
- var couponIdParam = z2.object({ couponId: CouponIdSchema });
105
- var friendRequestIdParam = z2.object({ requestId: FriendRequestIdSchema });
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 });
106
141
  var apiContract = {
107
142
  auth: {
108
143
  signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
109
144
  login: endpoint({ method: "POST", path: "/auth/login", body: LoginRequestSchema, response: TokenResponseSchema }),
110
145
  refresh: endpoint({ method: "POST", path: "/auth/refresh", response: TokenResponseSchema }),
111
146
  logout: endpoint({ method: "POST", path: "/auth/logout", response: NoContentSchema })
112
- // test: endpoint({method: "GET", path: "/auth/test", response: TokenResponseSchema}) TODO: Dev에서만 작동하도록 백엔드에서 수정해야함
147
+ // test: endpoint({method: "GET", path: "/auth/test", response: TokenResponseSchema}) TODO: Dev에서만 작동하도록 백엔드에서 수정해야함
113
148
  },
114
149
  members: {
115
150
  me: endpoint({ method: "GET", path: "/members/me", response: MemberResponseSchema }),
116
- myProfile: endpoint({ method: "GET", path: "/members/me/detail", response: ProfileDetailResponseSchema }),
151
+ myProfile: endpoint({ method: "GET", path: "/members/me/profile", response: ProfileDetailResponseSchema }),
117
152
  search: endpoint({ method: "GET", path: "/members/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
118
- memberProfile: endpoint({ method: "GET", path: "/members/:memberId", pathParams: memberIdParam, response: ProfileDetailResponseSchema }),
119
- presignProfileImage: endpoint({ method: "POST", path: "/uploads/presign-profile", response: PresignProfileResponseSchema }),
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 }),
120
155
  createProfile: endpoint({ method: "POST", path: "/members/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
121
156
  updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema })
122
157
  },
@@ -125,9 +160,9 @@ var apiContract = {
125
160
  update: endpoint({ method: "PATCH", path: "/preferences/me", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
126
161
  },
127
162
  mealStatus: {
128
- my: endpoint({ method: "GET", path: "/meal-status", response: MealStatusResponseSchema }),
129
- updateMealStatus: endpoint({ method: "PATCH", path: "/meal-status", body: UpdateMealStatusRequestSchema, response: NoContentSchema }),
130
- friendMealStatus: endpoint({ method: "GET", path: "/meal-status/friend", query: FriendMealQuerySchema, response: z2.array(FriendMealItemResponseSchema) })
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) })
131
166
  },
132
167
  articles: {
133
168
  list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
@@ -137,7 +172,7 @@ var apiContract = {
137
172
  create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: CreatedEntityIdResponseSchema }),
138
173
  like: endpoint({ method: "POST", path: "/articles/:articleId/like", pathParams: articleIdParam, response: ArticleLikeResponseSchema }),
139
174
  createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: CreatedEntityIdResponseSchema }),
140
- presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", response: PresignArticleResponseSchema }),
175
+ presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", body: UploadArticleImageRequestSchema, response: UploadArticleImageResponseSchema }),
141
176
  delete: endpoint({ method: "DELETE", path: "/articles/:articleId", pathParams: articleIdParam, response: NoContentSchema }),
142
177
  deleteComment: endpoint({ method: "DELETE", path: "/articles/comments/:commentId", pathParams: commentIdParam, response: NoContentSchema })
143
178
  // TODO: 게시물 수정 기능
@@ -146,25 +181,26 @@ var apiContract = {
146
181
  list: endpoint({ method: "GET", path: "/recruits", query: RecruitListQuerySchema, response: RecruitListResponseSchema }),
147
182
  create: endpoint({ method: "POST", path: "/recruits", body: CreateRecruitRequestSchema, response: CreateRecruitResponseSchema }),
148
183
  join: endpoint({ method: "POST", path: "/recruits/:recruitId/join", pathParams: recruitIdParam, response: NoContentSchema }),
149
- close: endpoint({ method: "PATCH", path: "/recruits/:recruitId/close", pathParams: recruitIdParam, response: NoContentSchema })
184
+ close: endpoint({ method: "POST", path: "/recruits/:recruitId/close", pathParams: recruitIdParam, response: NoContentSchema })
150
185
  },
151
186
  invitations: {
152
- list: endpoint({ method: "GET", path: "/invitations", response: z2.array(InvitationListItemResponseSchema) }),
187
+ list: endpoint({ method: "GET", path: "/invitations", response: z3.array(InvitationListItemResponseSchema) }),
153
188
  // TODO: Invitation Response 정하기 detail: endpoint({ method: "GET", path: "/invitations/:invitationId", pathParams: invitationIdParam, response: InvitationItemDetailResponseSchema }),
154
- send: endpoint({ method: "POST", path: "/invitations", body: CreateInvitationRequestSchema, response: SendInvitationResponseSchema }),
189
+ send: endpoint({ method: "POST", path: "/invitations/send", body: CreateInvitationRequestSchema, response: SendInvitationResponseSchema }),
155
190
  accept: endpoint({ method: "POST", path: "/invitations/:invitationId/accept", pathParams: invitationIdParam, response: AcceptInvitationResponseSchema }),
156
191
  reject: endpoint({ method: "POST", path: "/invitations/:invitationId/reject", pathParams: invitationIdParam, response: NoContentSchema })
157
192
  },
158
193
  plans: {
159
- list: endpoint({ method: "GET", path: "/plans", query: PlanListQuerySchema, response: z2.array(PlanResponseSchema) }),
194
+ list: endpoint({ method: "GET", path: "/plans", query: PlanListQuerySchema, response: z3.array(PlanResponseSchema) }),
160
195
  detail: endpoint({ method: "GET", path: "/plans/:planId", pathParams: planIdParam, response: PlanResponseSchema }),
161
196
  cancel: endpoint({ method: "PATCH", path: "/plans/:planId/cancel", pathParams: planIdParam, response: NoContentSchema })
162
197
  },
163
198
  friends: {
164
- list: endpoint({ method: "GET", path: "/friends", response: z2.array(FriendListItemResponseSchema) }),
165
- blockList: endpoint({ method: "GET", path: "/friends/blocks", response: z2.array(FriendBlockItemResponseSchema) }),
166
- incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: z2.array(FriendRequestItemResponseSchema) }),
167
- outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: z2.array(FriendRequestItemResponseSchema) }),
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) }),
168
204
  sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
169
205
  acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
170
206
  rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
@@ -174,52 +210,31 @@ var apiContract = {
174
210
  unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
175
211
  },
176
212
  coupons: {
177
- list: endpoint({ method: "GET", path: "/coupons", response: z2.array(CouponResponseSchema) }),
178
- use: endpoint({ method: "PATCH", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
213
+ list: endpoint({ method: "GET", path: "/coupons", response: z3.array(CouponResponseSchema) }),
214
+ use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
179
215
  },
180
216
  challenges: {
181
217
  status: endpoint({ method: "GET", path: "/challenges/status", response: ChallengeStatusResponseSchema }),
182
218
  claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
183
219
  },
184
220
  referrals: {
185
- list: endpoint({ method: "GET", path: "/referrals", response: z2.array(ReferralItemResponseSchema) }),
221
+ list: endpoint({ method: "GET", path: "/referrals", response: z3.array(ReferralItemResponseSchema) }),
186
222
  create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
187
223
  redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
188
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
+ },
189
230
  room: {
190
- //TODO: 입장 기능
231
+ access: endpoint({ method: "GET", path: "/rooms/:roomId/access", pathParams: roomIdParam, response: RoomAccessResponseSchema })
191
232
  },
192
233
  health: {
193
- healthCheck: endpoint({ method: "GET", path: "/", response: z2.string() })
234
+ healthCheck: endpoint({ method: "GET", path: "/", response: z3.string() })
194
235
  }
195
236
  };
196
237
 
197
- // src/domain/common/schema/envelope.schema.ts
198
- import { z as z3 } from "zod";
199
- var NoContentSchema = z3.null();
200
- var ApiSuccessSchema = (data) => z3.object({
201
- success: z3.literal(true),
202
- code: z3.number().int(),
203
- message: z3.string(),
204
- data
205
- });
206
- var ApiFailureSchema = z3.object({
207
- success: z3.literal(false),
208
- status: z3.number().int(),
209
- code: z3.string(),
210
- message: z3.string()
211
- });
212
- var ApiResponseSchema = (data) => z3.union([ApiSuccessSchema(data), ApiFailureSchema]);
213
- var CreatedEntityIdResponseSchema = z3.discriminatedUnion("entity", [
214
- z3.object({ entity: z3.literal("article"), id: ArticleIdSchema }),
215
- z3.object({ entity: z3.literal("comment"), id: CommentIdSchema }),
216
- z3.object({ entity: z3.literal("recruit"), id: RecruitIdSchema }),
217
- z3.object({ entity: z3.literal("invitation"), id: InvitationIdSchema }),
218
- z3.object({ entity: z3.literal("subscription"), id: SubscriptionIdSchema }),
219
- z3.object({ entity: z3.literal("coupon"), id: CouponIdSchema }),
220
- z3.object({ entity: z3.literal("plan"), id: PlanIdSchema })
221
- ]);
222
-
223
238
  // src/domain/common/contracts/envelope.ts
224
239
  var makeApiResponseSchema = ApiResponseSchema;
225
240
  var makeApiSuccessSchema = ApiSuccessSchema;
@@ -259,7 +274,7 @@ var RecruitResponseSchema = z4.object({
259
274
  author: MemberCoreSchema,
260
275
  participants: z4.array(RecruitParticipantSchema)
261
276
  });
262
- var RecruitListResponseSchema = z4.array(RecruitResponseSchema);
277
+ var RecruitListResponseSchema = PageResponseSchema(RecruitResponseSchema);
263
278
  var CreateRecruitRequestSchema = z4.object({
264
279
  targetCount: z4.number().int().min(2),
265
280
  meetingAt: ISODateTimeStringSchema,
@@ -271,6 +286,11 @@ var CreateRecruitResponseSchema = z4.object({
271
286
  });
272
287
 
273
288
  export {
289
+ NoContentSchema,
290
+ ApiSuccessSchema,
291
+ ApiFailureSchema,
292
+ ApiResponseSchema,
293
+ CreatedEntityIdResponseSchema,
274
294
  RecruitStatusSchema,
275
295
  RecruitSortBySchema,
276
296
  RecruitListQuerySchema,
@@ -282,11 +302,6 @@ export {
282
302
  NoParamsSchema,
283
303
  endpoint,
284
304
  apiContract,
285
- NoContentSchema,
286
- ApiSuccessSchema,
287
- ApiFailureSchema,
288
- ApiResponseSchema,
289
- CreatedEntityIdResponseSchema,
290
305
  makeApiResponseSchema,
291
306
  makeApiSuccessSchema,
292
307
  toMemberId,
@@ -8,11 +8,14 @@ import { z as z2 } from "zod";
8
8
 
9
9
  // src/domain/common/contracts/upload.ts
10
10
  import z from "zod";
11
- var PresignUploadResponseSchema = z.object({
11
+ var UploadPresignImageResponseSchema = z.object({
12
12
  key: z.string(),
13
13
  putUrl: z.string().url(),
14
14
  cdnUrl: z.string().url()
15
15
  });
16
+ var UploadPresignImageRequestSchema = z.object({
17
+ contentType: z.string()
18
+ });
16
19
 
17
20
  // src/domain/member/member.schema.ts
18
21
  var MemberRoleSchema = z2.enum(["USER", "ADMIN"]);
@@ -21,7 +24,8 @@ var MemberCoreSchema = z2.object({
21
24
  username: z2.string().min(1).max(50),
22
25
  profileImageUrl: z2.string().url().nullable().optional()
23
26
  });
24
- var PresignProfileResponseSchema = PresignUploadResponseSchema.extend({});
27
+ var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
28
+ var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
25
29
  var MemberResponseSchema = MemberCoreSchema.pick({
26
30
  memberId: true,
27
31
  username: true,
@@ -56,10 +60,12 @@ var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
56
60
  );
57
61
 
58
62
  export {
59
- PresignUploadResponseSchema,
63
+ UploadPresignImageResponseSchema,
64
+ UploadPresignImageRequestSchema,
60
65
  MemberRoleSchema,
61
66
  MemberCoreSchema,
62
- PresignProfileResponseSchema,
67
+ UploadProfileImageResponseSchema,
68
+ UploadProfileImageRequestSchema,
63
69
  MemberResponseSchema,
64
70
  MemberSearchQuerySchema,
65
71
  MemberSerachResponseSchema,
@@ -41,7 +41,8 @@ __export(article_exports, {
41
41
  CreateCommentRequestSchema: () => CreateCommentRequestSchema,
42
42
  FoodAnalysisResultSchema: () => FoodAnalysisResultSchema,
43
43
  PageArticleSummaryResponseSchema: () => PageArticleSummaryResponseSchema,
44
- PresignArticleResponseSchema: () => PresignArticleResponseSchema
44
+ UploadArticleImageRequestSchema: () => UploadArticleImageRequestSchema,
45
+ UploadArticleImageResponseSchema: () => UploadArticleImageResponseSchema
45
46
  });
46
47
  module.exports = __toCommonJS(article_exports);
47
48
 
@@ -103,11 +104,14 @@ var import_zod5 = require("zod");
103
104
 
104
105
  // src/domain/common/contracts/upload.ts
105
106
  var import_zod4 = __toESM(require("zod"), 1);
106
- var PresignUploadResponseSchema = import_zod4.default.object({
107
+ var UploadPresignImageResponseSchema = import_zod4.default.object({
107
108
  key: import_zod4.default.string(),
108
109
  putUrl: import_zod4.default.string().url(),
109
110
  cdnUrl: import_zod4.default.string().url()
110
111
  });
112
+ var UploadPresignImageRequestSchema = import_zod4.default.object({
113
+ contentType: import_zod4.default.string()
114
+ });
111
115
 
112
116
  // src/domain/member/member.schema.ts
113
117
  var MemberRoleSchema = import_zod5.z.enum(["USER", "ADMIN"]);
@@ -116,7 +120,8 @@ var MemberCoreSchema = import_zod5.z.object({
116
120
  username: import_zod5.z.string().min(1).max(50),
117
121
  profileImageUrl: import_zod5.z.string().url().nullable().optional()
118
122
  });
119
- var PresignProfileResponseSchema = PresignUploadResponseSchema.extend({});
123
+ var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
124
+ var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
120
125
  var MemberResponseSchema = MemberCoreSchema.pick({
121
126
  memberId: true,
122
127
  username: true,
@@ -184,7 +189,8 @@ var ArticleListQuerySchema = PageQuerySchema.extend({
184
189
  sortBy: ArticleSortBySchema.optional().default("createdAt"),
185
190
  direction: SortDirectionSchema.optional().default("desc")
186
191
  });
187
- var PresignArticleResponseSchema = PresignUploadResponseSchema.extend({});
192
+ var UploadArticleImageResponseSchema = UploadPresignImageResponseSchema.extend({});
193
+ var UploadArticleImageRequestSchema = UploadPresignImageRequestSchema.extend({});
188
194
  var FoodAnalysisResultSchema = FoodSchema.extend({
189
195
  confidence: import_zod7.z.number().min(0).max(1),
190
196
  tsUtc: ISODateTimeStringSchema.optional()
@@ -245,5 +251,6 @@ var PageArticleSummaryResponseSchema = PageResponseSchema(ArticleSummaryResponse
245
251
  CreateCommentRequestSchema,
246
252
  FoodAnalysisResultSchema,
247
253
  PageArticleSummaryResponseSchema,
248
- PresignArticleResponseSchema
254
+ UploadArticleImageRequestSchema,
255
+ UploadArticleImageResponseSchema
249
256
  });
@@ -10,11 +10,12 @@ import {
10
10
  CreateCommentRequestSchema,
11
11
  FoodAnalysisResultSchema,
12
12
  PageArticleSummaryResponseSchema,
13
- PresignArticleResponseSchema
14
- } from "../../chunk-RLVHDFEV.js";
13
+ UploadArticleImageRequestSchema,
14
+ UploadArticleImageResponseSchema
15
+ } from "../../chunk-K3CZKI2F.js";
15
16
  import "../../chunk-GTVEQYJW.js";
16
17
  import "../../chunk-HRM3FQPL.js";
17
- import "../../chunk-KRVEQVRC.js";
18
+ import "../../chunk-ZH7D7B2Y.js";
18
19
  import "../../chunk-H77ISYYC.js";
19
20
  export {
20
21
  ArticleCommentSchema,
@@ -28,5 +29,6 @@ export {
28
29
  CreateCommentRequestSchema,
29
30
  FoodAnalysisResultSchema,
30
31
  PageArticleSummaryResponseSchema,
31
- PresignArticleResponseSchema
32
+ UploadArticleImageRequestSchema,
33
+ UploadArticleImageResponseSchema
32
34
  };
@@ -68,11 +68,14 @@ var FoodSchema = import_zod.z.object({
68
68
 
69
69
  // src/domain/common/contracts/upload.ts
70
70
  var import_zod2 = __toESM(require("zod"), 1);
71
- var PresignUploadResponseSchema = import_zod2.default.object({
71
+ var UploadPresignImageResponseSchema = import_zod2.default.object({
72
72
  key: import_zod2.default.string(),
73
73
  putUrl: import_zod2.default.string().url(),
74
74
  cdnUrl: import_zod2.default.string().url()
75
75
  });
76
+ var UploadPresignImageRequestSchema = import_zod2.default.object({
77
+ contentType: import_zod2.default.string()
78
+ });
76
79
 
77
80
  // src/domain/member/member.schema.ts
78
81
  var MemberRoleSchema = import_zod3.z.enum(["USER", "ADMIN"]);
@@ -81,7 +84,8 @@ var MemberCoreSchema = import_zod3.z.object({
81
84
  username: import_zod3.z.string().min(1).max(50),
82
85
  profileImageUrl: import_zod3.z.string().url().nullable().optional()
83
86
  });
84
- var PresignProfileResponseSchema = PresignUploadResponseSchema.extend({});
87
+ var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
88
+ var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
85
89
  var MemberResponseSchema = MemberCoreSchema.pick({
86
90
  memberId: true,
87
91
  username: true,
@@ -116,8 +120,7 @@ var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
116
120
 
117
121
  // src/domain/auth/auth.schema.ts
118
122
  var TokenResponseSchema = import_zod4.z.object({
119
- accessToken: import_zod4.z.string().min(1),
120
- accessTokenMaxAge: import_zod4.z.number().int().positive()
123
+ accessToken: import_zod4.z.string().min(1)
121
124
  });
122
125
  var LoginRequestSchema = import_zod4.z.object({
123
126
  email: import_zod4.z.string().email(),
@@ -3,8 +3,8 @@ import {
3
3
  SignupRequestSchema,
4
4
  SignupResponseSchema,
5
5
  TokenResponseSchema
6
- } from "../../chunk-J76VB5SE.js";
7
- import "../../chunk-KRVEQVRC.js";
6
+ } from "../../chunk-OJVXYCSH.js";
7
+ import "../../chunk-ZH7D7B2Y.js";
8
8
  import "../../chunk-H77ISYYC.js";
9
9
  export {
10
10
  LoginRequestSchema,