@kimdaegyu/babmukdang-shared 1.0.6 → 1.1.0

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 (106) hide show
  1. package/dist/chunk-2GRWCRTV.js +328 -0
  2. package/dist/chunk-2SJCUQNN.js +40 -0
  3. package/dist/chunk-34EKPNPX.js +0 -0
  4. package/dist/chunk-35QGRA2X.js +0 -0
  5. package/dist/chunk-3YMV26OY.js +0 -0
  6. package/dist/chunk-4DAOP35P.js +74 -0
  7. package/dist/chunk-6NZPEF4K.js +34 -0
  8. package/dist/chunk-7MGHUZXI.js +25 -0
  9. package/dist/chunk-BVTYAILQ.js +0 -0
  10. package/dist/chunk-EJKRR2MZ.js +184 -0
  11. package/dist/chunk-F24BT6H4.js +23 -0
  12. package/dist/chunk-FCE6KXNO.js +30 -0
  13. package/dist/chunk-HRM3FQPL.js +12 -0
  14. package/dist/chunk-IJMADVK5.js +27 -0
  15. package/dist/chunk-IYCA6KHR.js +0 -0
  16. package/dist/chunk-JCN37ARR.js +52 -0
  17. package/dist/chunk-JXYRJKRV.js +0 -0
  18. package/dist/chunk-LCMNVWSP.js +0 -0
  19. package/dist/chunk-MP7TEKEI.js +72 -0
  20. package/dist/chunk-NCVWB52E.js +0 -0
  21. package/dist/chunk-NW5O4R7M.js +37 -0
  22. package/dist/chunk-O6DYRCFN.js +0 -0
  23. package/dist/chunk-PDGMGLYH.js +0 -0
  24. package/dist/chunk-PFSZSKD5.js +0 -0
  25. package/dist/chunk-TA4BB3UC.js +0 -0
  26. package/dist/chunk-UFVPFUMI.js +35 -0
  27. package/dist/chunk-UN7KYFMV.js +0 -0
  28. package/dist/chunk-UXA4FHST.js +19 -0
  29. package/dist/chunk-WNY6POLW.js +0 -0
  30. package/dist/chunk-YVACD5IG.js +127 -0
  31. package/dist/chunk-Z2UFF3MA.js +212 -0
  32. package/dist/chunk-ZNAAA53X.js +45 -0
  33. package/dist/chunk-ZSZ3ETY7.js +32 -0
  34. package/dist/domain/article/index.cjs +250 -0
  35. package/dist/domain/article/index.d.cts +1026 -0
  36. package/dist/domain/article/index.d.ts +1026 -0
  37. package/dist/domain/article/index.js +32 -0
  38. package/dist/domain/auth/index.cjs +135 -0
  39. package/dist/domain/auth/index.d.cts +73 -0
  40. package/dist/domain/auth/index.d.ts +73 -0
  41. package/dist/domain/auth/index.js +17 -0
  42. package/dist/domain/challenge/index.cjs +65 -0
  43. package/dist/domain/challenge/index.d.cts +104 -0
  44. package/dist/domain/challenge/index.d.ts +104 -0
  45. package/dist/domain/challenge/index.js +18 -0
  46. package/dist/domain/common/index.cjs +769 -0
  47. package/dist/domain/common/index.d.cts +2576 -0
  48. package/dist/domain/common/index.d.ts +2576 -0
  49. package/dist/domain/common/index.js +107 -0
  50. package/dist/domain/coupon/index.cjs +74 -0
  51. package/dist/domain/coupon/index.d.cts +38 -0
  52. package/dist/domain/coupon/index.d.ts +38 -0
  53. package/dist/domain/coupon/index.js +14 -0
  54. package/dist/domain/friend/index.cjs +152 -0
  55. package/dist/domain/friend/index.d.cts +148 -0
  56. package/dist/domain/friend/index.d.ts +148 -0
  57. package/dist/domain/friend/index.js +25 -0
  58. package/dist/domain/index.cjs +997 -0
  59. package/dist/domain/index.d.cts +17 -0
  60. package/dist/domain/index.d.ts +17 -0
  61. package/dist/domain/index.js +334 -0
  62. package/dist/domain/invitation/index.cjs +104 -0
  63. package/dist/domain/invitation/index.d.cts +67 -0
  64. package/dist/domain/invitation/index.d.ts +67 -0
  65. package/dist/domain/invitation/index.js +17 -0
  66. package/dist/domain/meal/index.cjs +59 -0
  67. package/dist/domain/meal/index.d.cts +38 -0
  68. package/dist/domain/meal/index.d.ts +38 -0
  69. package/dist/domain/meal/index.js +15 -0
  70. package/dist/domain/member/index.cjs +127 -0
  71. package/dist/domain/member/index.d.cts +225 -0
  72. package/dist/domain/member/index.d.ts +225 -0
  73. package/dist/domain/member/index.js +30 -0
  74. package/dist/domain/plan/index.cjs +269 -0
  75. package/dist/domain/plan/index.d.cts +189 -0
  76. package/dist/domain/plan/index.d.ts +189 -0
  77. package/dist/domain/plan/index.js +19 -0
  78. package/dist/domain/preference/index.cjs +69 -0
  79. package/dist/domain/preference/index.d.cts +31 -0
  80. package/dist/domain/preference/index.d.ts +31 -0
  81. package/dist/domain/preference/index.js +12 -0
  82. package/dist/domain/recruit/index.cjs +138 -0
  83. package/dist/domain/recruit/index.d.cts +130 -0
  84. package/dist/domain/recruit/index.d.ts +130 -0
  85. package/dist/domain/recruit/index.js +19 -0
  86. package/dist/domain/referral/index.cjs +78 -0
  87. package/dist/domain/referral/index.d.cts +51 -0
  88. package/dist/domain/referral/index.d.ts +51 -0
  89. package/dist/domain/referral/index.js +14 -0
  90. package/dist/domain/restaurant/index.cjs +79 -0
  91. package/dist/domain/restaurant/index.d.cts +85 -0
  92. package/dist/domain/restaurant/index.d.ts +85 -0
  93. package/dist/domain/restaurant/index.js +11 -0
  94. package/dist/domain/room/index.cjs +332 -0
  95. package/dist/domain/room/index.d.cts +1482 -0
  96. package/dist/domain/room/index.d.ts +1482 -0
  97. package/dist/domain/room/index.js +74 -0
  98. package/dist/id-B-8M90Ef.d.cts +43 -0
  99. package/dist/id-B-8M90Ef.d.ts +43 -0
  100. package/dist/index-BuInbhtG.d.cts +305 -0
  101. package/dist/index-CKRUOupn.d.ts +305 -0
  102. package/dist/index.cjs +845 -21
  103. package/dist/index.d.cts +113 -569
  104. package/dist/index.d.ts +113 -569
  105. package/dist/index.js +50 -30
  106. package/package.json +50 -39
@@ -0,0 +1,328 @@
1
+ import {
2
+ NoBodySchema,
3
+ NoParamsSchema,
4
+ NoQuerySchema,
5
+ apiContract,
6
+ endpoint,
7
+ makeApiResponseSchema,
8
+ makeApiSuccessSchema,
9
+ toArticleId,
10
+ toInvitationId,
11
+ toMemberId,
12
+ toRecruitId,
13
+ toRestaurantId,
14
+ toRoomId
15
+ } from "./chunk-Z2UFF3MA.js";
16
+ import {
17
+ AcceptInvitationResponseSchema,
18
+ ApiFailureSchema,
19
+ ApiResponseSchema,
20
+ ApiSuccessSchema,
21
+ CreatedEntityIdResponseSchema,
22
+ CreatedIdResponseSchema,
23
+ InvitationListItemResponseSchema,
24
+ InvitationPostRequestSchema,
25
+ NoContentSchema,
26
+ RejectInvitationResponseSchema,
27
+ SendInvitationResponseSchema
28
+ } from "./chunk-4DAOP35P.js";
29
+ import {
30
+ MealStatusActionSchema,
31
+ MealStatusResponseSchema,
32
+ MealStatusSchema,
33
+ UpdateMealStatusRequestSchema
34
+ } from "./chunk-7MGHUZXI.js";
35
+ import {
36
+ CreatePlanRequestSchema,
37
+ PlanResponseSchema,
38
+ PlanStatusSchema,
39
+ PlanTypeSchema
40
+ } from "./chunk-ZNAAA53X.js";
41
+ import {
42
+ FoodPreferenceResponseSchema,
43
+ FoodPreferenceTypeSchema
44
+ } from "./chunk-F24BT6H4.js";
45
+ import {
46
+ CreateRecruitResponseSchema,
47
+ RecruitParticipantSchema,
48
+ RecruitRequestSchema,
49
+ RecruitResponseSchema,
50
+ RecruitStatusSchema
51
+ } from "./chunk-2SJCUQNN.js";
52
+ import {
53
+ RedeemReferralRequestSchema,
54
+ ReferralCreateResponseSchema,
55
+ ReferralItemResponseSchema
56
+ } from "./chunk-ZSZ3ETY7.js";
57
+ import {
58
+ AddLocationCandidateRequestSchema,
59
+ ChatMessageRequestSchema,
60
+ ChatMessageResponseSchema,
61
+ DatePicksUpdateResponseSchema,
62
+ ExcludeMenuRequestSchema,
63
+ ExcludeMenuUpdateResponseSchema,
64
+ FinalStateSchema,
65
+ InvitationRoomStageSchema,
66
+ LocationCandidateAddUpdateResponseSchema,
67
+ LocationCandidateSchema,
68
+ LocationCandidateVoteUpdateResponseSchema,
69
+ LocationIdSchema,
70
+ MenuCodeSchema,
71
+ MenuPickUpdateResponseSchema,
72
+ MenuSchema,
73
+ ParticipantSchema,
74
+ PhaseDataBroadcastSchema,
75
+ PickDateRequestSchema,
76
+ PickMenuRequestSchema,
77
+ PickRestaurantRequestSchema,
78
+ PickTimesRequestSchema,
79
+ ReadyStateChangedSchema,
80
+ ReadyStateRequestSchema,
81
+ RecruitRoomStageSchema,
82
+ RestaurantPickUpdateResponseSchema,
83
+ RoomAssignedResponseSchema,
84
+ RoomInitialStateSchema,
85
+ RoomSocketClientEventSchemas,
86
+ RoomSocketErrorSchema,
87
+ RoomSocketServerEventSchemas,
88
+ TimePicksUpdateResponseSchema,
89
+ VoteLocationRequestSchema
90
+ } from "./chunk-EJKRR2MZ.js";
91
+ import {
92
+ ArticleCoreSchema,
93
+ ArticleDetailResponseSchema,
94
+ ArticlePostRequestSchema,
95
+ ArticleSummaryResponseSchema,
96
+ CommentPostRequestSchema,
97
+ CommentResponseSchema,
98
+ CreateArticleResponseSchema,
99
+ CreateCommentResponseSchema,
100
+ FoodAnalysisResultSchema,
101
+ PageArticleSummaryResponseSchema,
102
+ PageRequestSchema,
103
+ PageResponseSchema,
104
+ PageableObjectSchema,
105
+ PresignUploadResponseSchema,
106
+ SortObjectSchema
107
+ } from "./chunk-YVACD5IG.js";
108
+ import {
109
+ KakaoPlaceRawSchema,
110
+ RestaurantSchema
111
+ } from "./chunk-NW5O4R7M.js";
112
+ import {
113
+ LoginRequestSchema,
114
+ SignupRequestSchema,
115
+ SignupResponseSchema,
116
+ TokenResponseSchema
117
+ } from "./chunk-FCE6KXNO.js";
118
+ import {
119
+ ChallengeStatusResponseSchema,
120
+ ClaimChallengeRewardRequestSchema,
121
+ ClaimChallengeRewardResponseSchema,
122
+ MonthProgressSchema,
123
+ RewardTypeSchema,
124
+ WeekProgressSchema
125
+ } from "./chunk-6NZPEF4K.js";
126
+ import {
127
+ FriendActionRequestSchema,
128
+ FriendBlockItemResponseSchema,
129
+ FriendListItemResponseSchema,
130
+ FriendMealFilterSchema,
131
+ FriendMealItemResponseSchema,
132
+ FriendRequestItemResponseSchema,
133
+ FriendRequestMemberSchema,
134
+ FriendRequestStatusSchema
135
+ } from "./chunk-JCN37ARR.js";
136
+ import {
137
+ AuthPrincipalSchema,
138
+ MemberCoreSchema,
139
+ MemberResponseSchema,
140
+ MemberRoleSchema,
141
+ MemberSummaryResponseSchema,
142
+ OnboardingPreferenceRequestSchema,
143
+ OnboardingRequestSchema,
144
+ PreferenceMetaResponseSchema,
145
+ ProfileDetailResponseSchema,
146
+ ProfilePreferenceItemSchema,
147
+ UpdateProfileRequestSchema
148
+ } from "./chunk-MP7TEKEI.js";
149
+ import {
150
+ CouponResponseSchema,
151
+ CouponStatusSchema,
152
+ CouponTypeSchema
153
+ } from "./chunk-IJMADVK5.js";
154
+ import {
155
+ ArticleIdSchema,
156
+ CommentIdSchema,
157
+ CouponIdSchema,
158
+ FriendRequestIdSchema,
159
+ InvitationIdSchema,
160
+ MemberIdSchema,
161
+ NonEmptyStringIdSchema,
162
+ PlanIdSchema,
163
+ PositiveIntIdSchema,
164
+ RecruitIdSchema,
165
+ ReferralCodeSchema,
166
+ RestaurantIdSchema,
167
+ RoomIdSchema,
168
+ SubscriptionIdSchema,
169
+ UserIdSchema
170
+ } from "./chunk-UFVPFUMI.js";
171
+ import {
172
+ ISODateStringSchema,
173
+ ISODateTimeStringSchema,
174
+ TimeHHmmStringSchema
175
+ } from "./chunk-HRM3FQPL.js";
176
+ import {
177
+ __export
178
+ } from "./chunk-UXA4FHST.js";
179
+
180
+ // src/domain/index.ts
181
+ var domain_exports = {};
182
+ __export(domain_exports, {
183
+ AcceptInvitationResponseSchema: () => AcceptInvitationResponseSchema,
184
+ AddLocationCandidateRequestSchema: () => AddLocationCandidateRequestSchema,
185
+ ApiFailureSchema: () => ApiFailureSchema,
186
+ ApiResponseSchema: () => ApiResponseSchema,
187
+ ApiSuccessSchema: () => ApiSuccessSchema,
188
+ ArticleCoreSchema: () => ArticleCoreSchema,
189
+ ArticleDetailResponseSchema: () => ArticleDetailResponseSchema,
190
+ ArticleIdSchema: () => ArticleIdSchema,
191
+ ArticlePostRequestSchema: () => ArticlePostRequestSchema,
192
+ ArticleSummaryResponseSchema: () => ArticleSummaryResponseSchema,
193
+ AuthPrincipalSchema: () => AuthPrincipalSchema,
194
+ ChallengeStatusResponseSchema: () => ChallengeStatusResponseSchema,
195
+ ChatMessageRequestSchema: () => ChatMessageRequestSchema,
196
+ ChatMessageResponseSchema: () => ChatMessageResponseSchema,
197
+ ClaimChallengeRewardRequestSchema: () => ClaimChallengeRewardRequestSchema,
198
+ ClaimChallengeRewardResponseSchema: () => ClaimChallengeRewardResponseSchema,
199
+ CommentIdSchema: () => CommentIdSchema,
200
+ CommentPostRequestSchema: () => CommentPostRequestSchema,
201
+ CommentResponseSchema: () => CommentResponseSchema,
202
+ CouponIdSchema: () => CouponIdSchema,
203
+ CouponResponseSchema: () => CouponResponseSchema,
204
+ CouponStatusSchema: () => CouponStatusSchema,
205
+ CouponTypeSchema: () => CouponTypeSchema,
206
+ CreateArticleResponseSchema: () => CreateArticleResponseSchema,
207
+ CreateCommentResponseSchema: () => CreateCommentResponseSchema,
208
+ CreatePlanRequestSchema: () => CreatePlanRequestSchema,
209
+ CreateRecruitResponseSchema: () => CreateRecruitResponseSchema,
210
+ CreatedEntityIdResponseSchema: () => CreatedEntityIdResponseSchema,
211
+ CreatedIdResponseSchema: () => CreatedIdResponseSchema,
212
+ DatePicksUpdateResponseSchema: () => DatePicksUpdateResponseSchema,
213
+ ExcludeMenuRequestSchema: () => ExcludeMenuRequestSchema,
214
+ ExcludeMenuUpdateResponseSchema: () => ExcludeMenuUpdateResponseSchema,
215
+ FinalStateSchema: () => FinalStateSchema,
216
+ FoodAnalysisResultSchema: () => FoodAnalysisResultSchema,
217
+ FoodPreferenceResponseSchema: () => FoodPreferenceResponseSchema,
218
+ FoodPreferenceTypeSchema: () => FoodPreferenceTypeSchema,
219
+ FriendActionRequestSchema: () => FriendActionRequestSchema,
220
+ FriendBlockItemResponseSchema: () => FriendBlockItemResponseSchema,
221
+ FriendListItemResponseSchema: () => FriendListItemResponseSchema,
222
+ FriendMealFilterSchema: () => FriendMealFilterSchema,
223
+ FriendMealItemResponseSchema: () => FriendMealItemResponseSchema,
224
+ FriendRequestIdSchema: () => FriendRequestIdSchema,
225
+ FriendRequestItemResponseSchema: () => FriendRequestItemResponseSchema,
226
+ FriendRequestMemberSchema: () => FriendRequestMemberSchema,
227
+ FriendRequestStatusSchema: () => FriendRequestStatusSchema,
228
+ ISODateStringSchema: () => ISODateStringSchema,
229
+ ISODateTimeStringSchema: () => ISODateTimeStringSchema,
230
+ InvitationIdSchema: () => InvitationIdSchema,
231
+ InvitationListItemResponseSchema: () => InvitationListItemResponseSchema,
232
+ InvitationPostRequestSchema: () => InvitationPostRequestSchema,
233
+ InvitationRoomStageSchema: () => InvitationRoomStageSchema,
234
+ KakaoPlaceRawSchema: () => KakaoPlaceRawSchema,
235
+ LocationCandidateAddUpdateResponseSchema: () => LocationCandidateAddUpdateResponseSchema,
236
+ LocationCandidateSchema: () => LocationCandidateSchema,
237
+ LocationCandidateVoteUpdateResponseSchema: () => LocationCandidateVoteUpdateResponseSchema,
238
+ LocationIdSchema: () => LocationIdSchema,
239
+ LoginRequestSchema: () => LoginRequestSchema,
240
+ MealStatusActionSchema: () => MealStatusActionSchema,
241
+ MealStatusResponseSchema: () => MealStatusResponseSchema,
242
+ MealStatusSchema: () => MealStatusSchema,
243
+ MemberCoreSchema: () => MemberCoreSchema,
244
+ MemberIdSchema: () => MemberIdSchema,
245
+ MemberResponseSchema: () => MemberResponseSchema,
246
+ MemberRoleSchema: () => MemberRoleSchema,
247
+ MemberSummaryResponseSchema: () => MemberSummaryResponseSchema,
248
+ MenuCodeSchema: () => MenuCodeSchema,
249
+ MenuPickUpdateResponseSchema: () => MenuPickUpdateResponseSchema,
250
+ MenuSchema: () => MenuSchema,
251
+ MonthProgressSchema: () => MonthProgressSchema,
252
+ NoBodySchema: () => NoBodySchema,
253
+ NoContentSchema: () => NoContentSchema,
254
+ NoParamsSchema: () => NoParamsSchema,
255
+ NoQuerySchema: () => NoQuerySchema,
256
+ NonEmptyStringIdSchema: () => NonEmptyStringIdSchema,
257
+ OnboardingPreferenceRequestSchema: () => OnboardingPreferenceRequestSchema,
258
+ OnboardingRequestSchema: () => OnboardingRequestSchema,
259
+ PageArticleSummaryResponseSchema: () => PageArticleSummaryResponseSchema,
260
+ PageRequestSchema: () => PageRequestSchema,
261
+ PageResponseSchema: () => PageResponseSchema,
262
+ PageableObjectSchema: () => PageableObjectSchema,
263
+ ParticipantSchema: () => ParticipantSchema,
264
+ PhaseDataBroadcastSchema: () => PhaseDataBroadcastSchema,
265
+ PickDateRequestSchema: () => PickDateRequestSchema,
266
+ PickMenuRequestSchema: () => PickMenuRequestSchema,
267
+ PickRestaurantRequestSchema: () => PickRestaurantRequestSchema,
268
+ PickTimesRequestSchema: () => PickTimesRequestSchema,
269
+ PlanIdSchema: () => PlanIdSchema,
270
+ PlanResponseSchema: () => PlanResponseSchema,
271
+ PlanStatusSchema: () => PlanStatusSchema,
272
+ PlanTypeSchema: () => PlanTypeSchema,
273
+ PositiveIntIdSchema: () => PositiveIntIdSchema,
274
+ PreferenceMetaResponseSchema: () => PreferenceMetaResponseSchema,
275
+ PresignUploadResponseSchema: () => PresignUploadResponseSchema,
276
+ ProfileDetailResponseSchema: () => ProfileDetailResponseSchema,
277
+ ProfilePreferenceItemSchema: () => ProfilePreferenceItemSchema,
278
+ ReadyStateChangedSchema: () => ReadyStateChangedSchema,
279
+ ReadyStateRequestSchema: () => ReadyStateRequestSchema,
280
+ RecruitIdSchema: () => RecruitIdSchema,
281
+ RecruitParticipantSchema: () => RecruitParticipantSchema,
282
+ RecruitRequestSchema: () => RecruitRequestSchema,
283
+ RecruitResponseSchema: () => RecruitResponseSchema,
284
+ RecruitRoomStageSchema: () => RecruitRoomStageSchema,
285
+ RecruitStatusSchema: () => RecruitStatusSchema,
286
+ RedeemReferralRequestSchema: () => RedeemReferralRequestSchema,
287
+ ReferralCodeSchema: () => ReferralCodeSchema,
288
+ ReferralCreateResponseSchema: () => ReferralCreateResponseSchema,
289
+ ReferralItemResponseSchema: () => ReferralItemResponseSchema,
290
+ RejectInvitationResponseSchema: () => RejectInvitationResponseSchema,
291
+ RestaurantIdSchema: () => RestaurantIdSchema,
292
+ RestaurantPickUpdateResponseSchema: () => RestaurantPickUpdateResponseSchema,
293
+ RestaurantSchema: () => RestaurantSchema,
294
+ RewardTypeSchema: () => RewardTypeSchema,
295
+ RoomAssignedResponseSchema: () => RoomAssignedResponseSchema,
296
+ RoomIdSchema: () => RoomIdSchema,
297
+ RoomInitialStateSchema: () => RoomInitialStateSchema,
298
+ RoomSocketClientEventSchemas: () => RoomSocketClientEventSchemas,
299
+ RoomSocketErrorSchema: () => RoomSocketErrorSchema,
300
+ RoomSocketServerEventSchemas: () => RoomSocketServerEventSchemas,
301
+ SendInvitationResponseSchema: () => SendInvitationResponseSchema,
302
+ SignupRequestSchema: () => SignupRequestSchema,
303
+ SignupResponseSchema: () => SignupResponseSchema,
304
+ SortObjectSchema: () => SortObjectSchema,
305
+ SubscriptionIdSchema: () => SubscriptionIdSchema,
306
+ TimeHHmmStringSchema: () => TimeHHmmStringSchema,
307
+ TimePicksUpdateResponseSchema: () => TimePicksUpdateResponseSchema,
308
+ TokenResponseSchema: () => TokenResponseSchema,
309
+ UpdateMealStatusRequestSchema: () => UpdateMealStatusRequestSchema,
310
+ UpdateProfileRequestSchema: () => UpdateProfileRequestSchema,
311
+ UserIdSchema: () => UserIdSchema,
312
+ VoteLocationRequestSchema: () => VoteLocationRequestSchema,
313
+ WeekProgressSchema: () => WeekProgressSchema,
314
+ apiContract: () => apiContract,
315
+ endpoint: () => endpoint,
316
+ makeApiResponseSchema: () => makeApiResponseSchema,
317
+ makeApiSuccessSchema: () => makeApiSuccessSchema,
318
+ toArticleId: () => toArticleId,
319
+ toInvitationId: () => toInvitationId,
320
+ toMemberId: () => toMemberId,
321
+ toRecruitId: () => toRecruitId,
322
+ toRestaurantId: () => toRestaurantId,
323
+ toRoomId: () => toRoomId
324
+ });
325
+
326
+ export {
327
+ domain_exports
328
+ };
@@ -0,0 +1,40 @@
1
+ import {
2
+ MemberResponseSchema
3
+ } from "./chunk-MP7TEKEI.js";
4
+ import {
5
+ RecruitIdSchema
6
+ } from "./chunk-UFVPFUMI.js";
7
+ import {
8
+ ISODateTimeStringSchema
9
+ } from "./chunk-HRM3FQPL.js";
10
+
11
+ // src/domain/recruit/schema/recruit.schema.ts
12
+ import { z } from "zod";
13
+ var RecruitStatusSchema = z.enum(["OPEN", "CLOSED", "EXPIRED"]);
14
+ var RecruitRequestSchema = z.object({
15
+ targetCount: z.number().int().min(2),
16
+ meetingAt: ISODateTimeStringSchema,
17
+ location: z.string().min(1),
18
+ message: z.string().max(500)
19
+ });
20
+ var RecruitParticipantSchema = MemberResponseSchema.extend({});
21
+ var RecruitResponseSchema = RecruitRequestSchema.extend({
22
+ recruitId: RecruitIdSchema,
23
+ status: RecruitStatusSchema,
24
+ createdAt: ISODateTimeStringSchema,
25
+ expiredAt: ISODateTimeStringSchema,
26
+ updatedAt: ISODateTimeStringSchema,
27
+ author: MemberResponseSchema,
28
+ participants: z.array(RecruitParticipantSchema)
29
+ });
30
+ var CreateRecruitResponseSchema = z.object({
31
+ recruitId: RecruitIdSchema
32
+ });
33
+
34
+ export {
35
+ RecruitStatusSchema,
36
+ RecruitRequestSchema,
37
+ RecruitParticipantSchema,
38
+ RecruitResponseSchema,
39
+ CreateRecruitResponseSchema
40
+ };
File without changes
File without changes
File without changes
@@ -0,0 +1,74 @@
1
+ import {
2
+ InvitationIdSchema,
3
+ MemberIdSchema,
4
+ RoomIdSchema
5
+ } from "./chunk-UFVPFUMI.js";
6
+
7
+ // src/domain/common/schema/envelope.schema.ts
8
+ import { z } from "zod";
9
+ var NoContentSchema = z.null();
10
+ var ApiSuccessSchema = (data) => z.object({
11
+ success: z.literal(true),
12
+ code: z.number().int(),
13
+ message: z.string(),
14
+ data
15
+ });
16
+ var ApiFailureSchema = z.object({
17
+ success: z.literal(false),
18
+ status: z.number().int(),
19
+ code: z.string(),
20
+ message: z.string()
21
+ });
22
+ var ApiResponseSchema = (data) => z.union([ApiSuccessSchema(data), ApiFailureSchema]);
23
+ var CreatedIdResponseSchema = z.object({
24
+ id: z.number().int().positive()
25
+ });
26
+ var CreatedEntityIdResponseSchema = z.object({
27
+ entity: z.enum([
28
+ "article",
29
+ "comment",
30
+ "recruit",
31
+ "invitation",
32
+ "subscription",
33
+ "coupon",
34
+ "plan"
35
+ ]),
36
+ id: z.number().int().positive()
37
+ });
38
+
39
+ // src/domain/invitation/schema/invitation.schema.ts
40
+ import { z as z2 } from "zod";
41
+ var InvitationPostRequestSchema = z2.object({
42
+ inviteeId: MemberIdSchema,
43
+ message: z2.string().min(1).max(500)
44
+ });
45
+ var InvitationListItemResponseSchema = z2.object({
46
+ invitationId: InvitationIdSchema,
47
+ inviterName: z2.string(),
48
+ inviterProfileImageUrl: z2.string().url().nullable().optional()
49
+ });
50
+ var SendInvitationResponseSchema = z2.object({
51
+ invitationId: InvitationIdSchema
52
+ });
53
+ var AcceptInvitationResponseSchema = z2.object({
54
+ invitationId: InvitationIdSchema,
55
+ room: z2.object({
56
+ type: z2.literal("invitation"),
57
+ roomId: RoomIdSchema
58
+ })
59
+ });
60
+ var RejectInvitationResponseSchema = NoContentSchema;
61
+
62
+ export {
63
+ NoContentSchema,
64
+ ApiSuccessSchema,
65
+ ApiFailureSchema,
66
+ ApiResponseSchema,
67
+ CreatedIdResponseSchema,
68
+ CreatedEntityIdResponseSchema,
69
+ InvitationPostRequestSchema,
70
+ InvitationListItemResponseSchema,
71
+ SendInvitationResponseSchema,
72
+ AcceptInvitationResponseSchema,
73
+ RejectInvitationResponseSchema
74
+ };
@@ -0,0 +1,34 @@
1
+ // src/domain/challenge/schema/challenge.schema.ts
2
+ import { z } from "zod";
3
+ var RewardTypeSchema = z.enum(["WEEK", "MONTH"]);
4
+ var WeekProgressSchema = z.object({
5
+ days: z.array(z.boolean()),
6
+ completed: z.number().int().min(0),
7
+ goal: z.number().int().positive()
8
+ });
9
+ var MonthProgressSchema = z.object({
10
+ count: z.number().int().min(0),
11
+ goal: z.number().int().positive()
12
+ });
13
+ var ChallengeStatusResponseSchema = z.object({
14
+ week: WeekProgressSchema,
15
+ month: MonthProgressSchema,
16
+ weekRewardAvailable: z.boolean(),
17
+ monthRewardAvailable: z.boolean()
18
+ });
19
+ var ClaimChallengeRewardRequestSchema = z.object({
20
+ type: RewardTypeSchema
21
+ });
22
+ var ClaimChallengeRewardResponseSchema = z.object({
23
+ rewardType: RewardTypeSchema,
24
+ claimed: z.boolean()
25
+ });
26
+
27
+ export {
28
+ RewardTypeSchema,
29
+ WeekProgressSchema,
30
+ MonthProgressSchema,
31
+ ChallengeStatusResponseSchema,
32
+ ClaimChallengeRewardRequestSchema,
33
+ ClaimChallengeRewardResponseSchema
34
+ };
@@ -0,0 +1,25 @@
1
+ import {
2
+ ISODateTimeStringSchema
3
+ } from "./chunk-HRM3FQPL.js";
4
+
5
+ // src/domain/meal/schema/meal.schema.ts
6
+ import { z } from "zod";
7
+ var MealStatusSchema = z.enum(["FED", "FASTING"]);
8
+ var MealStatusActionSchema = z.enum(["ATE_NOW", "SET_OFF"]);
9
+ var UpdateMealStatusRequestSchema = z.object({
10
+ action: MealStatusActionSchema
11
+ });
12
+ var MealStatusResponseSchema = z.object({
13
+ status: MealStatusSchema,
14
+ lastMealAt: ISODateTimeStringSchema.nullable(),
15
+ fastingMinutes: z.number().int().min(0),
16
+ fastingHours: z.number().min(0),
17
+ secondsToAutoOff: z.number().int().min(0)
18
+ });
19
+
20
+ export {
21
+ MealStatusSchema,
22
+ MealStatusActionSchema,
23
+ UpdateMealStatusRequestSchema,
24
+ MealStatusResponseSchema
25
+ };
File without changes
@@ -0,0 +1,184 @@
1
+ import {
2
+ RestaurantSchema
3
+ } from "./chunk-NW5O4R7M.js";
4
+ import {
5
+ MemberResponseSchema
6
+ } from "./chunk-MP7TEKEI.js";
7
+ import {
8
+ MemberIdSchema,
9
+ RestaurantIdSchema,
10
+ RoomIdSchema
11
+ } from "./chunk-UFVPFUMI.js";
12
+ import {
13
+ ISODateStringSchema,
14
+ ISODateTimeStringSchema
15
+ } from "./chunk-HRM3FQPL.js";
16
+
17
+ // src/domain/room/schema/room.schema.ts
18
+ import { z } from "zod";
19
+ var MenuCodeSchema = z.string().min(1).brand();
20
+ var LocationIdSchema = z.string().min(1).brand();
21
+ var MenuSchema = z.object({
22
+ code: MenuCodeSchema,
23
+ label: z.string()
24
+ });
25
+ var LocationCandidateSchema = z.object({
26
+ locationId: LocationIdSchema,
27
+ placeName: z.string(),
28
+ lat: z.number(),
29
+ lng: z.number(),
30
+ address: z.string()
31
+ });
32
+ var ParticipantSchema = MemberResponseSchema.extend({
33
+ ready: z.boolean()
34
+ });
35
+ var RecruitRoomStageSchema = z.enum([
36
+ "waiting",
37
+ "location",
38
+ "location-vote",
39
+ "exclude-menu",
40
+ "menu",
41
+ "restaurant",
42
+ "finish"
43
+ ]);
44
+ var InvitationRoomStageSchema = z.enum([
45
+ "waiting",
46
+ "date",
47
+ "time",
48
+ "location",
49
+ "location-vote",
50
+ "exclude-menu",
51
+ "menu",
52
+ "restaurant",
53
+ "finish"
54
+ ]);
55
+ var ReadyStateRequestSchema = z.object({
56
+ isReady: z.boolean()
57
+ });
58
+ var ChatMessageRequestSchema = z.object({
59
+ message: z.string().min(1).max(500)
60
+ });
61
+ var AddLocationCandidateRequestSchema = LocationCandidateSchema;
62
+ var VoteLocationRequestSchema = z.object({ locationId: LocationIdSchema });
63
+ var ExcludeMenuRequestSchema = z.object({ menu: MenuSchema });
64
+ var PickMenuRequestSchema = z.object({ menuCode: MenuCodeSchema });
65
+ var PickRestaurantRequestSchema = z.object({ restaurantId: RestaurantIdSchema });
66
+ var PickTimesRequestSchema = z.object({ times: z.array(z.string().min(1)).min(1) });
67
+ var PickDateRequestSchema = z.object({ dates: z.array(ISODateStringSchema).min(1) });
68
+ var RoomAssignedResponseSchema = z.object({
69
+ roomId: RoomIdSchema
70
+ });
71
+ var RoomSocketErrorSchema = z.object({
72
+ code: z.string(),
73
+ message: z.string()
74
+ });
75
+ var ChatMessageResponseSchema = z.object({
76
+ messageId: z.string(),
77
+ user: MemberResponseSchema,
78
+ message: z.string(),
79
+ createdAt: ISODateTimeStringSchema
80
+ });
81
+ var ReadyStateChangedSchema = z.object({
82
+ readyCount: z.number().int().min(0),
83
+ participantCount: z.number().int().min(0)
84
+ });
85
+ var FinalStateSchema = z.object({
86
+ location: LocationCandidateSchema.optional(),
87
+ excludeMenu: z.array(MenuSchema).optional(),
88
+ menu: MenuSchema.optional(),
89
+ restaurant: RestaurantSchema.optional(),
90
+ time: z.string().optional(),
91
+ date: ISODateStringSchema.optional()
92
+ });
93
+ var RoomInitialStateSchema = z.object({
94
+ participants: z.array(ParticipantSchema),
95
+ chat: z.array(ChatMessageResponseSchema),
96
+ final: FinalStateSchema
97
+ });
98
+ var PhaseDataBroadcastSchema = z.object({
99
+ phase: z.union([RecruitRoomStageSchema, InvitationRoomStageSchema]),
100
+ data: z.unknown()
101
+ });
102
+ var TimePicksUpdateResponseSchema = z.array(
103
+ z.object({ memberId: MemberIdSchema, times: z.array(z.string()) })
104
+ );
105
+ var DatePicksUpdateResponseSchema = z.array(
106
+ z.object({ memberId: MemberIdSchema, dates: z.array(ISODateStringSchema) })
107
+ );
108
+ var LocationCandidateAddUpdateResponseSchema = z.array(
109
+ LocationCandidateSchema.extend({ authorMemberId: MemberIdSchema })
110
+ );
111
+ var LocationCandidateVoteUpdateResponseSchema = z.array(
112
+ z.object({ locationId: LocationIdSchema, votes: z.array(MemberIdSchema) })
113
+ );
114
+ var ExcludeMenuUpdateResponseSchema = z.array(
115
+ z.object({ memberId: MemberIdSchema, exclusions: z.array(MenuSchema) })
116
+ );
117
+ var MenuPickUpdateResponseSchema = z.array(
118
+ z.object({ menuCode: MenuCodeSchema, selectedMembers: z.array(MemberIdSchema) })
119
+ );
120
+ var RestaurantPickUpdateResponseSchema = z.array(
121
+ z.object({ restaurantId: RestaurantIdSchema, selectedMembers: z.array(MemberIdSchema) })
122
+ );
123
+ var RoomSocketClientEventSchemas = {
124
+ "ready-state": ReadyStateRequestSchema,
125
+ "chat-message": ChatMessageRequestSchema,
126
+ "add-location-candidate": AddLocationCandidateRequestSchema,
127
+ "vote-location": VoteLocationRequestSchema,
128
+ "exclude-menu": ExcludeMenuRequestSchema,
129
+ "pick-menu": PickMenuRequestSchema,
130
+ "pick-restaurant": PickRestaurantRequestSchema,
131
+ "pick-times": PickTimesRequestSchema,
132
+ "pick-date": PickDateRequestSchema
133
+ };
134
+ var RoomSocketServerEventSchemas = {
135
+ "room-assigned": RoomAssignedResponseSchema,
136
+ "stage-changed": PhaseDataBroadcastSchema,
137
+ "chat-message": ChatMessageResponseSchema,
138
+ "room-error": RoomSocketErrorSchema,
139
+ "ready-state-changed": ReadyStateChangedSchema,
140
+ "join-room": RoomInitialStateSchema,
141
+ "time-updated": TimePicksUpdateResponseSchema,
142
+ "date-updated": DatePicksUpdateResponseSchema,
143
+ "location-add-updated": LocationCandidateAddUpdateResponseSchema,
144
+ "location-vote-updated": LocationCandidateVoteUpdateResponseSchema,
145
+ "exclude-menu-updated": ExcludeMenuUpdateResponseSchema,
146
+ "menu-pick-updated": MenuPickUpdateResponseSchema,
147
+ "restaurant-pick-updated": RestaurantPickUpdateResponseSchema,
148
+ "final-state-response": FinalStateSchema
149
+ };
150
+
151
+ export {
152
+ MenuCodeSchema,
153
+ LocationIdSchema,
154
+ MenuSchema,
155
+ LocationCandidateSchema,
156
+ ParticipantSchema,
157
+ RecruitRoomStageSchema,
158
+ InvitationRoomStageSchema,
159
+ ReadyStateRequestSchema,
160
+ ChatMessageRequestSchema,
161
+ AddLocationCandidateRequestSchema,
162
+ VoteLocationRequestSchema,
163
+ ExcludeMenuRequestSchema,
164
+ PickMenuRequestSchema,
165
+ PickRestaurantRequestSchema,
166
+ PickTimesRequestSchema,
167
+ PickDateRequestSchema,
168
+ RoomAssignedResponseSchema,
169
+ RoomSocketErrorSchema,
170
+ ChatMessageResponseSchema,
171
+ ReadyStateChangedSchema,
172
+ FinalStateSchema,
173
+ RoomInitialStateSchema,
174
+ PhaseDataBroadcastSchema,
175
+ TimePicksUpdateResponseSchema,
176
+ DatePicksUpdateResponseSchema,
177
+ LocationCandidateAddUpdateResponseSchema,
178
+ LocationCandidateVoteUpdateResponseSchema,
179
+ ExcludeMenuUpdateResponseSchema,
180
+ MenuPickUpdateResponseSchema,
181
+ RestaurantPickUpdateResponseSchema,
182
+ RoomSocketClientEventSchemas,
183
+ RoomSocketServerEventSchemas
184
+ };