@kimdaegyu/babmukdang-shared 1.0.7 → 1.1.1

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 (78) hide show
  1. package/dist/chunk-4XAGRJUM.js +61 -0
  2. package/dist/chunk-5QLCZOPJ.js +34 -0
  3. package/dist/chunk-AATETFLU.js +312 -0
  4. package/dist/chunk-ADIREWTX.js +72 -0
  5. package/dist/chunk-ET2Z5ZYA.js +37 -0
  6. package/dist/chunk-HRM3FQPL.js +12 -0
  7. package/dist/chunk-JNJRBUKR.js +30 -0
  8. package/dist/chunk-M7HH7FMO.js +40 -0
  9. package/dist/chunk-NAPCX4Q6.js +183 -0
  10. package/dist/chunk-NCVWB52E.js +0 -0
  11. package/dist/chunk-NJTV6DRT.js +0 -0
  12. package/dist/chunk-O56CI56W.js +37 -0
  13. package/dist/chunk-PFSZSKD5.js +0 -0
  14. package/dist/chunk-RHQHBUO4.js +78 -0
  15. package/dist/chunk-XTBVYY5B.js +286 -0
  16. package/dist/chunk-XWTMYXPO.js +109 -0
  17. package/dist/chunk-YJ7RUOEJ.js +35 -0
  18. package/dist/domain/article/index.cjs +243 -0
  19. package/dist/domain/article/index.d.cts +952 -0
  20. package/dist/domain/article/index.d.ts +952 -0
  21. package/dist/domain/article/index.js +30 -0
  22. package/dist/domain/auth/index.cjs +141 -0
  23. package/dist/domain/auth/index.d.cts +72 -0
  24. package/dist/domain/auth/index.d.ts +72 -0
  25. package/dist/domain/auth/index.js +14 -0
  26. package/dist/domain/common/index.cjs +756 -0
  27. package/dist/domain/common/index.d.cts +2689 -0
  28. package/dist/domain/common/index.d.ts +2689 -0
  29. package/dist/domain/common/index.js +106 -0
  30. package/dist/domain/friend/index.cjs +148 -0
  31. package/dist/domain/friend/index.d.cts +117 -0
  32. package/dist/domain/friend/index.d.ts +117 -0
  33. package/dist/domain/friend/index.js +17 -0
  34. package/dist/domain/index.cjs +974 -0
  35. package/dist/domain/index.d.cts +14 -0
  36. package/dist/domain/index.d.ts +14 -0
  37. package/dist/domain/index.js +308 -0
  38. package/dist/domain/invitation/index.cjs +82 -0
  39. package/dist/domain/invitation/index.d.cts +64 -0
  40. package/dist/domain/invitation/index.d.ts +64 -0
  41. package/dist/domain/invitation/index.js +13 -0
  42. package/dist/domain/meal/index.cjs +154 -0
  43. package/dist/domain/meal/index.d.cts +66 -0
  44. package/dist/domain/meal/index.d.ts +66 -0
  45. package/dist/domain/meal/index.js +20 -0
  46. package/dist/domain/member/index.cjs +136 -0
  47. package/dist/domain/member/index.d.cts +332 -0
  48. package/dist/domain/member/index.d.ts +332 -0
  49. package/dist/domain/member/index.js +30 -0
  50. package/dist/domain/plan/index.cjs +278 -0
  51. package/dist/domain/plan/index.d.cts +178 -0
  52. package/dist/domain/plan/index.d.ts +178 -0
  53. package/dist/domain/plan/index.js +18 -0
  54. package/dist/domain/promotion/index.cjs +134 -0
  55. package/dist/domain/promotion/index.d.cts +114 -0
  56. package/dist/domain/promotion/index.d.ts +114 -0
  57. package/dist/domain/promotion/index.js +24 -0
  58. package/dist/domain/recruit/index.cjs +181 -0
  59. package/dist/domain/recruit/index.d.cts +130 -0
  60. package/dist/domain/recruit/index.d.ts +130 -0
  61. package/dist/domain/recruit/index.js +29 -0
  62. package/dist/domain/restaurant/index.cjs +85 -0
  63. package/dist/domain/restaurant/index.d.cts +82 -0
  64. package/dist/domain/restaurant/index.d.ts +82 -0
  65. package/dist/domain/restaurant/index.js +10 -0
  66. package/dist/domain/room/index.cjs +344 -0
  67. package/dist/domain/room/index.d.cts +1482 -0
  68. package/dist/domain/room/index.d.ts +1482 -0
  69. package/dist/domain/room/index.js +74 -0
  70. package/dist/id-_a-oManb.d.cts +58 -0
  71. package/dist/id-_a-oManb.d.ts +58 -0
  72. package/dist/index-CqcSqpDV.d.ts +286 -0
  73. package/dist/index-HEHaDbrV.d.cts +286 -0
  74. package/dist/index.cjs +825 -21
  75. package/dist/index.d.cts +108 -616
  76. package/dist/index.d.ts +108 -616
  77. package/dist/index.js +33 -36
  78. package/package.json +55 -39
@@ -0,0 +1,61 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, { get: all[name], enumerable: true });
6
+ };
7
+ var __decorateClass = (decorators, target, key, kind) => {
8
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
9
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
+ if (decorator = decorators[i])
11
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12
+ if (kind && result) __defProp(target, key, result);
13
+ return result;
14
+ };
15
+
16
+ // src/domain/common/schema/id.schema.ts
17
+ import { z } from "zod";
18
+ var PositiveIntIdSchema = z.number().int().positive();
19
+ var NonEmptyStringIdSchema = z.string().min(1);
20
+ var MemberIdSchema = PositiveIntIdSchema.brand();
21
+ var UserIdSchema = MemberIdSchema;
22
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
23
+ var CommentIdSchema = PositiveIntIdSchema.brand();
24
+ var RecruitIdSchema = PositiveIntIdSchema.brand();
25
+ var PlanIdSchema = PositiveIntIdSchema.brand();
26
+ var InvitationIdSchema = PositiveIntIdSchema.brand();
27
+ var RoomIdSchema = NonEmptyStringIdSchema.brand();
28
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
29
+ var CouponIdSchema = PositiveIntIdSchema.brand();
30
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
31
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
32
+ var ReferralCodeSchema = z.string().min(4).max(64).brand();
33
+ var FoodCodeSchema = NonEmptyStringIdSchema.brand();
34
+ var FoodLabelSchema = NonEmptyStringIdSchema.brand();
35
+ var FoodSchema = z.object({
36
+ code: FoodCodeSchema,
37
+ label: FoodLabelSchema
38
+ });
39
+
40
+ export {
41
+ __export,
42
+ __decorateClass,
43
+ PositiveIntIdSchema,
44
+ NonEmptyStringIdSchema,
45
+ MemberIdSchema,
46
+ UserIdSchema,
47
+ ArticleIdSchema,
48
+ CommentIdSchema,
49
+ RecruitIdSchema,
50
+ PlanIdSchema,
51
+ InvitationIdSchema,
52
+ RoomIdSchema,
53
+ RestaurantIdSchema,
54
+ CouponIdSchema,
55
+ SubscriptionIdSchema,
56
+ FriendRequestIdSchema,
57
+ ReferralCodeSchema,
58
+ FoodCodeSchema,
59
+ FoodLabelSchema,
60
+ FoodSchema
61
+ };
@@ -0,0 +1,34 @@
1
+ import {
2
+ InvitationIdSchema,
3
+ MemberIdSchema,
4
+ RoomIdSchema
5
+ } from "./chunk-4XAGRJUM.js";
6
+
7
+ // src/domain/invitation/invitation.schema.ts
8
+ import { z } from "zod";
9
+ var CreateInvitationRequestSchema = z.object({
10
+ inviteeId: MemberIdSchema,
11
+ message: z.string().min(1).max(500)
12
+ });
13
+ var InvitationListItemResponseSchema = z.object({
14
+ invitationId: InvitationIdSchema,
15
+ inviterName: z.string(),
16
+ inviterProfileImageUrl: z.string().url().nullable().optional()
17
+ });
18
+ var SendInvitationResponseSchema = z.object({
19
+ invitationId: InvitationIdSchema
20
+ });
21
+ var AcceptInvitationResponseSchema = z.object({
22
+ invitationId: InvitationIdSchema,
23
+ room: z.object({
24
+ type: z.literal("invitation"),
25
+ roomId: RoomIdSchema
26
+ })
27
+ });
28
+
29
+ export {
30
+ CreateInvitationRequestSchema,
31
+ InvitationListItemResponseSchema,
32
+ SendInvitationResponseSchema,
33
+ AcceptInvitationResponseSchema
34
+ };
@@ -0,0 +1,312 @@
1
+ import {
2
+ ApiFailureSchema,
3
+ ApiResponseSchema,
4
+ ApiSuccessSchema,
5
+ CreateRecruitRequestSchema,
6
+ CreateRecruitResponseSchema,
7
+ CreatedEntityIdResponseSchema,
8
+ NoBodySchema,
9
+ NoContentSchema,
10
+ NoParamsSchema,
11
+ NoQuerySchema,
12
+ RecruitListQuerySchema,
13
+ RecruitListResponseSchema,
14
+ RecruitSortBySchema,
15
+ RecruitStatusSchema,
16
+ apiContract,
17
+ endpoint,
18
+ makeApiResponseSchema,
19
+ makeApiSuccessSchema,
20
+ toArticleId,
21
+ toInvitationId,
22
+ toMemberId,
23
+ toRecruitId,
24
+ toRestaurantId,
25
+ toRoomId
26
+ } from "./chunk-XTBVYY5B.js";
27
+ import {
28
+ PlanListQuerySchema,
29
+ PlanResponseSchema,
30
+ PlanStatusSchema,
31
+ PlanTypeSchema
32
+ } from "./chunk-M7HH7FMO.js";
33
+ import {
34
+ ChallengeStatusResponseSchema,
35
+ ClaimChallengeRewardRequestSchema,
36
+ ClaimChallengeRewardResponseSchema,
37
+ CouponResponseSchema,
38
+ CouponStatusSchema,
39
+ CouponTypeSchema,
40
+ RedeemReferralRequestSchema,
41
+ ReferralCreateResponseSchema,
42
+ ReferralItemResponseSchema
43
+ } from "./chunk-RHQHBUO4.js";
44
+ import {
45
+ AddLocationCandidateRequestSchema,
46
+ ChatMessageRequestSchema,
47
+ ChatMessageResponseSchema,
48
+ DatePicksUpdateResponseSchema,
49
+ ExcludeMenuRequestSchema,
50
+ ExcludeMenuUpdateResponseSchema,
51
+ FinalStateSchema,
52
+ InvitationRoomStageSchema,
53
+ LocationCandidateAddUpdateResponseSchema,
54
+ LocationCandidateSchema,
55
+ LocationCandidateVoteUpdateResponseSchema,
56
+ LocationIdSchema,
57
+ MenuCodeSchema,
58
+ MenuPickUpdateResponseSchema,
59
+ MenuSchema,
60
+ ParticipantSchema,
61
+ PhaseDataBroadcastSchema,
62
+ PickDateRequestSchema,
63
+ PickMenuRequestSchema,
64
+ PickRestaurantRequestSchema,
65
+ PickTimesRequestSchema,
66
+ ReadyStateChangedSchema,
67
+ ReadyStateRequestSchema,
68
+ RecruitRoomStageSchema,
69
+ RestaurantPickUpdateResponseSchema,
70
+ RoomAssignedResponseSchema,
71
+ RoomInitialStateSchema,
72
+ RoomSocketClientEventSchemas,
73
+ RoomSocketErrorSchema,
74
+ RoomSocketServerEventSchemas,
75
+ TimePicksUpdateResponseSchema,
76
+ VoteLocationRequestSchema
77
+ } from "./chunk-NAPCX4Q6.js";
78
+ import {
79
+ ArticleCommentSchema,
80
+ ArticleCoreSchema,
81
+ ArticleDetailResponseSchema,
82
+ ArticleListQuerySchema,
83
+ ArticleSortBySchema,
84
+ ArticleSummaryResponseSchema,
85
+ CreateArticleRequestSchema,
86
+ CreateCommentRequestSchema,
87
+ FoodAnalysisResultSchema,
88
+ PageArticleSummaryResponseSchema,
89
+ PageMetaSchema,
90
+ PageQuerySchema,
91
+ PageResponseSchema,
92
+ PresignArticleResponseSchema,
93
+ SortDirectionSchema
94
+ } from "./chunk-XWTMYXPO.js";
95
+ import {
96
+ KakaoPlaceRawSchema,
97
+ RestaurantSchema
98
+ } from "./chunk-ET2Z5ZYA.js";
99
+ import {
100
+ LoginRequestSchema,
101
+ SignupRequestSchema,
102
+ SignupResponseSchema,
103
+ TokenResponseSchema
104
+ } from "./chunk-JNJRBUKR.js";
105
+ import {
106
+ FriendBlockItemResponseSchema,
107
+ FriendListItemResponseSchema,
108
+ FriendRequestItemResponseSchema,
109
+ FriendRequestMemberSchema,
110
+ FriendRequestStatusSchema
111
+ } from "./chunk-YJ7RUOEJ.js";
112
+ import {
113
+ AcceptInvitationResponseSchema,
114
+ CreateInvitationRequestSchema,
115
+ InvitationListItemResponseSchema,
116
+ SendInvitationResponseSchema
117
+ } from "./chunk-5QLCZOPJ.js";
118
+ import {
119
+ FriendMealItemResponseSchema,
120
+ FriendMealQuerySchema,
121
+ MealStatusActionSchema,
122
+ MealStatusResponseSchema,
123
+ MealStatusSchema,
124
+ UpdateMealStatusRequestSchema
125
+ } from "./chunk-O56CI56W.js";
126
+ import {
127
+ ISODateStringSchema,
128
+ ISODateTimeStringSchema,
129
+ TimeHHmmStringSchema
130
+ } from "./chunk-HRM3FQPL.js";
131
+ import {
132
+ CreateProfileRequestSchema,
133
+ MemberCoreSchema,
134
+ MemberDetailSchema,
135
+ MemberFoodPreferenceSchema,
136
+ MemberResponseSchema,
137
+ MemberRoleSchema,
138
+ MemberSearchQuerySchema,
139
+ MemberSerachResponseSchema,
140
+ PresignProfileResponseSchema,
141
+ ProfileDetailResponseSchema,
142
+ UpdatePreferenceRequestSchema,
143
+ UpdateProfileRequestSchema
144
+ } from "./chunk-ADIREWTX.js";
145
+ import {
146
+ ArticleIdSchema,
147
+ CommentIdSchema,
148
+ CouponIdSchema,
149
+ FoodCodeSchema,
150
+ FoodLabelSchema,
151
+ FoodSchema,
152
+ FriendRequestIdSchema,
153
+ InvitationIdSchema,
154
+ MemberIdSchema,
155
+ NonEmptyStringIdSchema,
156
+ PlanIdSchema,
157
+ PositiveIntIdSchema,
158
+ RecruitIdSchema,
159
+ ReferralCodeSchema,
160
+ RestaurantIdSchema,
161
+ RoomIdSchema,
162
+ SubscriptionIdSchema,
163
+ UserIdSchema,
164
+ __export
165
+ } from "./chunk-4XAGRJUM.js";
166
+
167
+ // src/domain/index.ts
168
+ var domain_exports = {};
169
+ __export(domain_exports, {
170
+ AcceptInvitationResponseSchema: () => AcceptInvitationResponseSchema,
171
+ AddLocationCandidateRequestSchema: () => AddLocationCandidateRequestSchema,
172
+ ApiFailureSchema: () => ApiFailureSchema,
173
+ ApiResponseSchema: () => ApiResponseSchema,
174
+ ApiSuccessSchema: () => ApiSuccessSchema,
175
+ ArticleCommentSchema: () => ArticleCommentSchema,
176
+ ArticleCoreSchema: () => ArticleCoreSchema,
177
+ ArticleDetailResponseSchema: () => ArticleDetailResponseSchema,
178
+ ArticleIdSchema: () => ArticleIdSchema,
179
+ ArticleListQuerySchema: () => ArticleListQuerySchema,
180
+ ArticleSortBySchema: () => ArticleSortBySchema,
181
+ ArticleSummaryResponseSchema: () => ArticleSummaryResponseSchema,
182
+ ChallengeStatusResponseSchema: () => ChallengeStatusResponseSchema,
183
+ ChatMessageRequestSchema: () => ChatMessageRequestSchema,
184
+ ChatMessageResponseSchema: () => ChatMessageResponseSchema,
185
+ ClaimChallengeRewardRequestSchema: () => ClaimChallengeRewardRequestSchema,
186
+ ClaimChallengeRewardResponseSchema: () => ClaimChallengeRewardResponseSchema,
187
+ CommentIdSchema: () => CommentIdSchema,
188
+ CouponIdSchema: () => CouponIdSchema,
189
+ CouponResponseSchema: () => CouponResponseSchema,
190
+ CouponStatusSchema: () => CouponStatusSchema,
191
+ CouponTypeSchema: () => CouponTypeSchema,
192
+ CreateArticleRequestSchema: () => CreateArticleRequestSchema,
193
+ CreateCommentRequestSchema: () => CreateCommentRequestSchema,
194
+ CreateInvitationRequestSchema: () => CreateInvitationRequestSchema,
195
+ CreateProfileRequestSchema: () => CreateProfileRequestSchema,
196
+ CreateRecruitRequestSchema: () => CreateRecruitRequestSchema,
197
+ CreateRecruitResponseSchema: () => CreateRecruitResponseSchema,
198
+ CreatedEntityIdResponseSchema: () => CreatedEntityIdResponseSchema,
199
+ DatePicksUpdateResponseSchema: () => DatePicksUpdateResponseSchema,
200
+ ExcludeMenuRequestSchema: () => ExcludeMenuRequestSchema,
201
+ ExcludeMenuUpdateResponseSchema: () => ExcludeMenuUpdateResponseSchema,
202
+ FinalStateSchema: () => FinalStateSchema,
203
+ FoodAnalysisResultSchema: () => FoodAnalysisResultSchema,
204
+ FoodCodeSchema: () => FoodCodeSchema,
205
+ FoodLabelSchema: () => FoodLabelSchema,
206
+ FoodSchema: () => FoodSchema,
207
+ FriendBlockItemResponseSchema: () => FriendBlockItemResponseSchema,
208
+ FriendListItemResponseSchema: () => FriendListItemResponseSchema,
209
+ FriendMealItemResponseSchema: () => FriendMealItemResponseSchema,
210
+ FriendMealQuerySchema: () => FriendMealQuerySchema,
211
+ FriendRequestIdSchema: () => FriendRequestIdSchema,
212
+ FriendRequestItemResponseSchema: () => FriendRequestItemResponseSchema,
213
+ FriendRequestMemberSchema: () => FriendRequestMemberSchema,
214
+ FriendRequestStatusSchema: () => FriendRequestStatusSchema,
215
+ ISODateStringSchema: () => ISODateStringSchema,
216
+ ISODateTimeStringSchema: () => ISODateTimeStringSchema,
217
+ InvitationIdSchema: () => InvitationIdSchema,
218
+ InvitationListItemResponseSchema: () => InvitationListItemResponseSchema,
219
+ InvitationRoomStageSchema: () => InvitationRoomStageSchema,
220
+ KakaoPlaceRawSchema: () => KakaoPlaceRawSchema,
221
+ LocationCandidateAddUpdateResponseSchema: () => LocationCandidateAddUpdateResponseSchema,
222
+ LocationCandidateSchema: () => LocationCandidateSchema,
223
+ LocationCandidateVoteUpdateResponseSchema: () => LocationCandidateVoteUpdateResponseSchema,
224
+ LocationIdSchema: () => LocationIdSchema,
225
+ LoginRequestSchema: () => LoginRequestSchema,
226
+ MealStatusActionSchema: () => MealStatusActionSchema,
227
+ MealStatusResponseSchema: () => MealStatusResponseSchema,
228
+ MealStatusSchema: () => MealStatusSchema,
229
+ MemberCoreSchema: () => MemberCoreSchema,
230
+ MemberDetailSchema: () => MemberDetailSchema,
231
+ MemberFoodPreferenceSchema: () => MemberFoodPreferenceSchema,
232
+ MemberIdSchema: () => MemberIdSchema,
233
+ MemberResponseSchema: () => MemberResponseSchema,
234
+ MemberRoleSchema: () => MemberRoleSchema,
235
+ MemberSearchQuerySchema: () => MemberSearchQuerySchema,
236
+ MemberSerachResponseSchema: () => MemberSerachResponseSchema,
237
+ MenuCodeSchema: () => MenuCodeSchema,
238
+ MenuPickUpdateResponseSchema: () => MenuPickUpdateResponseSchema,
239
+ MenuSchema: () => MenuSchema,
240
+ NoBodySchema: () => NoBodySchema,
241
+ NoContentSchema: () => NoContentSchema,
242
+ NoParamsSchema: () => NoParamsSchema,
243
+ NoQuerySchema: () => NoQuerySchema,
244
+ NonEmptyStringIdSchema: () => NonEmptyStringIdSchema,
245
+ PageArticleSummaryResponseSchema: () => PageArticleSummaryResponseSchema,
246
+ PageMetaSchema: () => PageMetaSchema,
247
+ PageQuerySchema: () => PageQuerySchema,
248
+ PageResponseSchema: () => PageResponseSchema,
249
+ ParticipantSchema: () => ParticipantSchema,
250
+ PhaseDataBroadcastSchema: () => PhaseDataBroadcastSchema,
251
+ PickDateRequestSchema: () => PickDateRequestSchema,
252
+ PickMenuRequestSchema: () => PickMenuRequestSchema,
253
+ PickRestaurantRequestSchema: () => PickRestaurantRequestSchema,
254
+ PickTimesRequestSchema: () => PickTimesRequestSchema,
255
+ PlanIdSchema: () => PlanIdSchema,
256
+ PlanListQuerySchema: () => PlanListQuerySchema,
257
+ PlanResponseSchema: () => PlanResponseSchema,
258
+ PlanStatusSchema: () => PlanStatusSchema,
259
+ PlanTypeSchema: () => PlanTypeSchema,
260
+ PositiveIntIdSchema: () => PositiveIntIdSchema,
261
+ PresignArticleResponseSchema: () => PresignArticleResponseSchema,
262
+ PresignProfileResponseSchema: () => PresignProfileResponseSchema,
263
+ ProfileDetailResponseSchema: () => ProfileDetailResponseSchema,
264
+ ReadyStateChangedSchema: () => ReadyStateChangedSchema,
265
+ ReadyStateRequestSchema: () => ReadyStateRequestSchema,
266
+ RecruitIdSchema: () => RecruitIdSchema,
267
+ RecruitListQuerySchema: () => RecruitListQuerySchema,
268
+ RecruitListResponseSchema: () => RecruitListResponseSchema,
269
+ RecruitRoomStageSchema: () => RecruitRoomStageSchema,
270
+ RecruitSortBySchema: () => RecruitSortBySchema,
271
+ RecruitStatusSchema: () => RecruitStatusSchema,
272
+ RedeemReferralRequestSchema: () => RedeemReferralRequestSchema,
273
+ ReferralCodeSchema: () => ReferralCodeSchema,
274
+ ReferralCreateResponseSchema: () => ReferralCreateResponseSchema,
275
+ ReferralItemResponseSchema: () => ReferralItemResponseSchema,
276
+ RestaurantIdSchema: () => RestaurantIdSchema,
277
+ RestaurantPickUpdateResponseSchema: () => RestaurantPickUpdateResponseSchema,
278
+ RestaurantSchema: () => RestaurantSchema,
279
+ RoomAssignedResponseSchema: () => RoomAssignedResponseSchema,
280
+ RoomIdSchema: () => RoomIdSchema,
281
+ RoomInitialStateSchema: () => RoomInitialStateSchema,
282
+ RoomSocketClientEventSchemas: () => RoomSocketClientEventSchemas,
283
+ RoomSocketErrorSchema: () => RoomSocketErrorSchema,
284
+ RoomSocketServerEventSchemas: () => RoomSocketServerEventSchemas,
285
+ SendInvitationResponseSchema: () => SendInvitationResponseSchema,
286
+ SignupRequestSchema: () => SignupRequestSchema,
287
+ SignupResponseSchema: () => SignupResponseSchema,
288
+ SortDirectionSchema: () => SortDirectionSchema,
289
+ SubscriptionIdSchema: () => SubscriptionIdSchema,
290
+ TimeHHmmStringSchema: () => TimeHHmmStringSchema,
291
+ TimePicksUpdateResponseSchema: () => TimePicksUpdateResponseSchema,
292
+ TokenResponseSchema: () => TokenResponseSchema,
293
+ UpdateMealStatusRequestSchema: () => UpdateMealStatusRequestSchema,
294
+ UpdatePreferenceRequestSchema: () => UpdatePreferenceRequestSchema,
295
+ UpdateProfileRequestSchema: () => UpdateProfileRequestSchema,
296
+ UserIdSchema: () => UserIdSchema,
297
+ VoteLocationRequestSchema: () => VoteLocationRequestSchema,
298
+ apiContract: () => apiContract,
299
+ endpoint: () => endpoint,
300
+ makeApiResponseSchema: () => makeApiResponseSchema,
301
+ makeApiSuccessSchema: () => makeApiSuccessSchema,
302
+ toArticleId: () => toArticleId,
303
+ toInvitationId: () => toInvitationId,
304
+ toMemberId: () => toMemberId,
305
+ toRecruitId: () => toRecruitId,
306
+ toRestaurantId: () => toRestaurantId,
307
+ toRoomId: () => toRoomId
308
+ });
309
+
310
+ export {
311
+ domain_exports
312
+ };
@@ -0,0 +1,72 @@
1
+ import {
2
+ FoodSchema,
3
+ MemberIdSchema
4
+ } from "./chunk-4XAGRJUM.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 PresignUploadResponseSchema = z.object({
12
+ key: z.string(),
13
+ putUrl: z.string().url(),
14
+ cdnUrl: z.string().url()
15
+ });
16
+
17
+ // src/domain/member/member.schema.ts
18
+ var MemberRoleSchema = z2.enum(["USER", "ADMIN"]);
19
+ var MemberCoreSchema = z2.object({
20
+ memberId: MemberIdSchema,
21
+ username: z2.string().min(1).max(50),
22
+ profileImageUrl: z2.string().url().nullable().optional()
23
+ });
24
+ var PresignProfileResponseSchema = PresignUploadResponseSchema.extend({});
25
+ var MemberResponseSchema = MemberCoreSchema.pick({
26
+ memberId: true,
27
+ username: true,
28
+ profileImageUrl: true
29
+ });
30
+ var MemberSearchQuerySchema = z2.object({
31
+ email: z2.string().email().optional(),
32
+ username: z2.string().optional()
33
+ });
34
+ var MemberSerachResponseSchema = z2.array(MemberCoreSchema);
35
+ var MemberDetailSchema = MemberCoreSchema.extend({
36
+ bio: z2.string().nullable(),
37
+ friendConunt: z2.number().int().min(0).default(0),
38
+ completedPlans: z2.number().int().min(0).default(0),
39
+ uncompletedPlans: z2.number().int().min(0).default(0)
40
+ });
41
+ var FoodPreferenceItemSchema = FoodSchema.extend({});
42
+ var MemberFoodPreferenceSchema = z2.object({
43
+ liked: z2.array(FoodPreferenceItemSchema).optional(),
44
+ disliked: z2.array(FoodPreferenceItemSchema).optional(),
45
+ allergy: z2.array(FoodPreferenceItemSchema).optional()
46
+ });
47
+ var ProfileDetailResponseSchema = MemberDetailSchema;
48
+ var UpdateProfileRequestSchema = z2.object({
49
+ username: z2.string().min(1).max(50),
50
+ profileImageUrl: z2.string().url().nullable(),
51
+ bio: z2.string().max(500).nullable()
52
+ });
53
+ var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
54
+ var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
55
+ UpdatePreferenceRequestSchema
56
+ );
57
+
58
+ export {
59
+ PresignUploadResponseSchema,
60
+ MemberRoleSchema,
61
+ MemberCoreSchema,
62
+ PresignProfileResponseSchema,
63
+ MemberResponseSchema,
64
+ MemberSearchQuerySchema,
65
+ MemberSerachResponseSchema,
66
+ MemberDetailSchema,
67
+ MemberFoodPreferenceSchema,
68
+ ProfileDetailResponseSchema,
69
+ UpdateProfileRequestSchema,
70
+ UpdatePreferenceRequestSchema,
71
+ CreateProfileRequestSchema
72
+ };
@@ -0,0 +1,37 @@
1
+ import {
2
+ RestaurantIdSchema
3
+ } from "./chunk-4XAGRJUM.js";
4
+
5
+ // src/domain/restaurant/restaurant.schema.ts
6
+ import { z } from "zod";
7
+ var RestaurantSchema = z.object({
8
+ restaurantId: RestaurantIdSchema,
9
+ placeName: z.string(),
10
+ categoryName: z.string(),
11
+ categoryGroupName: z.string(),
12
+ distance: z.string().optional(),
13
+ roadAddressName: z.string(),
14
+ addressName: z.string(),
15
+ phone: z.string().nullable(),
16
+ placeUrl: z.string().url().nullable(),
17
+ lat: z.number(),
18
+ lng: z.number()
19
+ });
20
+ var KakaoPlaceRawSchema = z.object({
21
+ id: RestaurantIdSchema,
22
+ place_name: z.string(),
23
+ category_name: z.string(),
24
+ category_group_name: z.string(),
25
+ distance: z.string(),
26
+ road_address_name: z.string(),
27
+ address_name: z.string(),
28
+ phone: z.string(),
29
+ place_url: z.string().url().optional(),
30
+ lat: z.number(),
31
+ lng: z.number()
32
+ });
33
+
34
+ export {
35
+ RestaurantSchema,
36
+ KakaoPlaceRawSchema
37
+ };
@@ -0,0 +1,12 @@
1
+ // src/domain/common/schema/date.schema.ts
2
+ import { z } from "zod";
3
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
4
+ var ISODateStringSchema = z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
5
+ var ISODateTimeStringSchema = z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
6
+ var TimeHHmmStringSchema = z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
7
+
8
+ export {
9
+ ISODateStringSchema,
10
+ ISODateTimeStringSchema,
11
+ TimeHHmmStringSchema
12
+ };
@@ -0,0 +1,30 @@
1
+ import {
2
+ MemberCoreSchema
3
+ } from "./chunk-ADIREWTX.js";
4
+
5
+ // src/domain/auth/auth.schema.ts
6
+ import { z } from "zod";
7
+ var TokenResponseSchema = z.object({
8
+ accessToken: z.string().min(1),
9
+ accessTokenMaxAge: z.number().int().positive()
10
+ });
11
+ var LoginRequestSchema = z.object({
12
+ email: z.string().email(),
13
+ password: z.string().min(1)
14
+ });
15
+ var SignupRequestSchema = z.object({
16
+ email: z.string().email(),
17
+ password: z.string().min(8),
18
+ username: z.string().min(1).max(50),
19
+ profileImageUrl: z.string().url().nullable().optional()
20
+ });
21
+ var SignupResponseSchema = z.object({
22
+ member: MemberCoreSchema
23
+ });
24
+
25
+ export {
26
+ TokenResponseSchema,
27
+ LoginRequestSchema,
28
+ SignupRequestSchema,
29
+ SignupResponseSchema
30
+ };
@@ -0,0 +1,40 @@
1
+ import {
2
+ LocationCandidateSchema
3
+ } from "./chunk-NAPCX4Q6.js";
4
+ import {
5
+ RestaurantSchema
6
+ } from "./chunk-ET2Z5ZYA.js";
7
+ import {
8
+ ISODateTimeStringSchema
9
+ } from "./chunk-HRM3FQPL.js";
10
+ import {
11
+ MemberCoreSchema
12
+ } from "./chunk-ADIREWTX.js";
13
+ import {
14
+ PlanIdSchema
15
+ } from "./chunk-4XAGRJUM.js";
16
+
17
+ // src/domain/plan/plan.schema.ts
18
+ import { z } from "zod";
19
+ var PlanStatusSchema = z.enum(["PLANNING", "COMPLETED"]);
20
+ var PlanTypeSchema = z.enum(["RECRUIT", "INVITATION"]);
21
+ var PlanResponseSchema = z.object({
22
+ planId: PlanIdSchema,
23
+ meetingAt: ISODateTimeStringSchema,
24
+ location: LocationCandidateSchema.nullable(),
25
+ restaurant: RestaurantSchema.nullable(),
26
+ author: MemberCoreSchema,
27
+ participants: z.array(MemberCoreSchema),
28
+ status: PlanStatusSchema,
29
+ type: PlanTypeSchema,
30
+ createdAt: ISODateTimeStringSchema,
31
+ updatedAt: ISODateTimeStringSchema
32
+ });
33
+ var PlanListQuerySchema = z.object({});
34
+
35
+ export {
36
+ PlanStatusSchema,
37
+ PlanTypeSchema,
38
+ PlanResponseSchema,
39
+ PlanListQuerySchema
40
+ };