@kimdaegyu/babmukdang-shared 1.1.10 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) 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 +254 -0
  19. package/dist/domain/article/index.d.ts +254 -0
  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 +29 -0
  23. package/dist/domain/auth/index.d.ts +29 -0
  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 +328 -0
  27. package/dist/domain/common/index.d.ts +328 -0
  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 +72 -0
  35. package/dist/domain/friend/index.d.ts +72 -0
  36. package/dist/domain/friend/index.js +6 -4
  37. package/dist/domain/index.cjs +2736 -522
  38. package/dist/domain/index.d.cts +576 -0
  39. package/dist/domain/index.d.ts +576 -0
  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 +47 -0
  47. package/dist/domain/meal/index.d.ts +47 -0
  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 +330 -0
  55. package/dist/domain/member/index.d.ts +330 -0
  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 +81 -0
  59. package/dist/domain/promotion/index.d.ts +81 -0
  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 +34 -0
  67. package/dist/domain/restaurant/index.d.ts +34 -0
  68. package/dist/domain/restaurant/index.js +2 -2
  69. package/dist/index.cjs +2533 -640
  70. package/dist/index.d.cts +14 -0
  71. package/dist/index.d.ts +14 -0
  72. package/dist/index.js +16 -191
  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.js +0 -13
  83. package/dist/domain/plan/index.cjs +0 -327
  84. package/dist/domain/plan/index.js +0 -18
  85. package/dist/domain/recruit/index.cjs +0 -189
  86. package/dist/domain/recruit/index.js +0 -30
  87. package/dist/domain/room/index.cjs +0 -401
  88. package/dist/domain/room/index.js +0 -82
@@ -1,327 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/domain/plan/index.ts
31
- var plan_exports = {};
32
- __export(plan_exports, {
33
- PlanListQuerySchema: () => PlanListQuerySchema,
34
- PlanResponseSchema: () => PlanResponseSchema,
35
- PlanStatusSchema: () => PlanStatusSchema,
36
- PlanTypeSchema: () => PlanTypeSchema
37
- });
38
- module.exports = __toCommonJS(plan_exports);
39
-
40
- // src/domain/plan/plan.schema.ts
41
- var import_zod7 = require("zod");
42
-
43
- // src/domain/common/schema/date.schema.ts
44
- var import_zod = require("zod");
45
- var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
46
- var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
47
- var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
48
- var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
49
-
50
- // src/domain/common/schema/id.schema.ts
51
- var import_zod2 = require("zod");
52
- var PositiveIntIdSchema = import_zod2.z.number().int().positive();
53
- var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
54
- var MemberIdSchema = PositiveIntIdSchema.brand();
55
- var ArticleIdSchema = PositiveIntIdSchema.brand();
56
- var CommentIdSchema = PositiveIntIdSchema.brand();
57
- var RecruitIdSchema = PositiveIntIdSchema.brand();
58
- var PlanIdSchema = PositiveIntIdSchema.brand();
59
- var InvitationIdSchema = PositiveIntIdSchema.brand();
60
- var RoomIdSchema = NonEmptyStringIdSchema.brand();
61
- var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
62
- var CouponIdSchema = PositiveIntIdSchema.brand();
63
- var SubscriptionIdSchema = PositiveIntIdSchema.brand();
64
- var FriendRequestIdSchema = PositiveIntIdSchema.brand();
65
- var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
66
- var FoodCodeSchema = NonEmptyStringIdSchema.brand();
67
- var FoodLabelSchema = NonEmptyStringIdSchema.brand();
68
- var FoodSchema = import_zod2.z.object({
69
- code: FoodCodeSchema,
70
- label: FoodLabelSchema
71
- });
72
-
73
- // src/domain/member/member.schema.ts
74
- var import_zod4 = require("zod");
75
-
76
- // src/domain/common/contracts/upload.ts
77
- var import_zod3 = __toESM(require("zod"), 1);
78
- var UploadPresignImageResponseSchema = import_zod3.default.object({
79
- key: import_zod3.default.string(),
80
- putUrl: import_zod3.default.string().url(),
81
- cdnUrl: import_zod3.default.string().url()
82
- });
83
- var UploadPresignImageRequestSchema = import_zod3.default.object({
84
- contentType: import_zod3.default.string()
85
- });
86
-
87
- // src/domain/member/member.schema.ts
88
- var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
89
- var MemberCoreSchema = import_zod4.z.object({
90
- memberId: MemberIdSchema,
91
- username: import_zod4.z.string().min(1).max(50),
92
- profileImageUrl: import_zod4.z.string().url().nullable().optional()
93
- });
94
- var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
95
- var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
96
- var MemberResponseSchema = MemberCoreSchema.pick({
97
- memberId: true,
98
- username: true,
99
- profileImageUrl: true
100
- });
101
- var MemberSearchQuerySchema = import_zod4.z.object({
102
- email: import_zod4.z.string().email().optional(),
103
- username: import_zod4.z.string().optional()
104
- });
105
- var MemberSerachResponseSchema = import_zod4.z.array(MemberCoreSchema);
106
- var MemberDetailSchema = MemberCoreSchema.extend({
107
- bio: import_zod4.z.string().nullable(),
108
- friendConunt: import_zod4.z.number().int().min(0).default(0),
109
- completedPlans: import_zod4.z.number().int().min(0).default(0),
110
- uncompletedPlans: import_zod4.z.number().int().min(0).default(0)
111
- });
112
- var FoodPreferenceItemSchema = FoodSchema.extend({});
113
- var MemberFoodPreferenceSchema = import_zod4.z.object({
114
- liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
115
- disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
116
- allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
117
- });
118
- var UpdateProfileRequestSchema = import_zod4.z.object({
119
- username: import_zod4.z.string().min(1).max(50),
120
- profileImageUrl: import_zod4.z.string().url().nullable(),
121
- bio: import_zod4.z.string().max(500).nullable()
122
- });
123
- var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
124
- var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
125
- UpdatePreferenceRequestSchema
126
- );
127
-
128
- // src/domain/restaurant/restaurant.schema.ts
129
- var import_zod5 = require("zod");
130
- var RestaurantSchema = import_zod5.z.object({
131
- restaurantId: RestaurantIdSchema,
132
- placeName: import_zod5.z.string(),
133
- categoryName: import_zod5.z.string(),
134
- categoryGroupName: import_zod5.z.string(),
135
- distance: import_zod5.z.string().optional(),
136
- roadAddressName: import_zod5.z.string(),
137
- addressName: import_zod5.z.string(),
138
- phone: import_zod5.z.string().nullable(),
139
- placeUrl: import_zod5.z.string().url().nullable(),
140
- lat: import_zod5.z.number(),
141
- lng: import_zod5.z.number()
142
- });
143
- var KakaoPlaceRawSchema = import_zod5.z.object({
144
- id: RestaurantIdSchema,
145
- place_name: import_zod5.z.string(),
146
- category_name: import_zod5.z.string(),
147
- category_group_name: import_zod5.z.string(),
148
- distance: import_zod5.z.string(),
149
- road_address_name: import_zod5.z.string(),
150
- address_name: import_zod5.z.string(),
151
- phone: import_zod5.z.string(),
152
- place_url: import_zod5.z.string().url().optional(),
153
- lat: import_zod5.z.number(),
154
- lng: import_zod5.z.number()
155
- });
156
-
157
- // src/domain/room/schema/room.schema.ts
158
- var import_zod6 = require("zod");
159
- var MenuCodeSchema = FoodCodeSchema;
160
- var LocationIdSchema = import_zod6.z.string().min(1).brand();
161
- var MenuSchema = FoodSchema.extend({});
162
- var LocationCandidateSchema = import_zod6.z.object({
163
- locationId: LocationIdSchema,
164
- placeName: import_zod6.z.string(),
165
- lat: import_zod6.z.number(),
166
- lng: import_zod6.z.number(),
167
- address: import_zod6.z.string()
168
- });
169
- var ParticipantSchema = MemberCoreSchema.extend({
170
- ready: import_zod6.z.boolean()
171
- });
172
- var RecruitRoomStageSchema = import_zod6.z.enum([
173
- "waiting",
174
- "location",
175
- "location-vote",
176
- "exclude-menu",
177
- "menu",
178
- "restaurant",
179
- "finish"
180
- ]);
181
- var RoomTypeSchema = import_zod6.z.enum(["recruit", "invitation"]);
182
- var InvitationRoomStageSchema = import_zod6.z.enum([
183
- "waiting",
184
- "date",
185
- "time",
186
- "location",
187
- "location-vote",
188
- "exclude-menu",
189
- "menu",
190
- "restaurant",
191
- "finish"
192
- ]);
193
- var ReadyStateRequestSchema = import_zod6.z.object({
194
- isReady: import_zod6.z.boolean()
195
- });
196
- var ChatMessageRequestSchema = import_zod6.z.object({
197
- message: import_zod6.z.string().min(1).max(500)
198
- });
199
- var VoteLocationRequestSchema = import_zod6.z.object({ locationId: LocationIdSchema });
200
- var ExcludeMenuRequestSchema = import_zod6.z.object({ menu: MenuSchema });
201
- var PickMenuRequestSchema = import_zod6.z.object({ menuCode: MenuCodeSchema });
202
- var PickRestaurantRequestSchema = import_zod6.z.object({ restaurantId: RestaurantIdSchema });
203
- var PickTimesRequestSchema = import_zod6.z.object({ times: import_zod6.z.array(import_zod6.z.string().min(1)).min(1) });
204
- var PickDateRequestSchema = import_zod6.z.object({ dates: import_zod6.z.array(ISODateStringSchema).min(1) });
205
- var RoomAssignedResponseSchema = import_zod6.z.object({
206
- roomId: RoomIdSchema
207
- });
208
- var RoomAccessResponseSchema = import_zod6.z.object({
209
- roomId: RoomIdSchema,
210
- roomType: RoomTypeSchema,
211
- stage: import_zod6.z.union([RecruitRoomStageSchema, InvitationRoomStageSchema]),
212
- canJoin: import_zod6.z.boolean()
213
- });
214
- var MatchingNotificationKindSchema = import_zod6.z.enum(["recruit", "invitation"]);
215
- var MatchingNotificationSchema = import_zod6.z.object({
216
- notificationId: import_zod6.z.string().min(1),
217
- kind: MatchingNotificationKindSchema,
218
- roomId: RoomIdSchema,
219
- roomType: RoomTypeSchema,
220
- title: import_zod6.z.string().min(1),
221
- message: import_zod6.z.string().min(1),
222
- createdAt: ISODateTimeStringSchema,
223
- readAt: ISODateTimeStringSchema.nullable()
224
- });
225
- var RoomSocketErrorSchema = import_zod6.z.object({
226
- code: import_zod6.z.string(),
227
- message: import_zod6.z.string()
228
- });
229
- var ChatMessageResponseSchema = import_zod6.z.object({
230
- messageId: import_zod6.z.string(),
231
- user: MemberCoreSchema,
232
- message: import_zod6.z.string(),
233
- createdAt: ISODateTimeStringSchema
234
- });
235
- var ReadyStateChangedSchema = import_zod6.z.object({
236
- readyCount: import_zod6.z.number().int().min(0),
237
- participantCount: import_zod6.z.number().int().min(0)
238
- });
239
- var FinalStateSchema = import_zod6.z.object({
240
- location: LocationCandidateSchema.optional(),
241
- excludeMenu: import_zod6.z.array(MenuSchema).optional(),
242
- menu: MenuSchema.optional(),
243
- restaurant: RestaurantSchema.optional(),
244
- time: import_zod6.z.string().optional(),
245
- date: ISODateStringSchema.optional()
246
- });
247
- var RoomInitialStateSchema = import_zod6.z.object({
248
- participants: import_zod6.z.array(ParticipantSchema),
249
- chat: import_zod6.z.array(ChatMessageResponseSchema),
250
- final: FinalStateSchema
251
- });
252
- var TimePicksUpdateResponseSchema = import_zod6.z.array(
253
- import_zod6.z.object({ memberId: MemberIdSchema, times: import_zod6.z.array(import_zod6.z.string()) })
254
- );
255
- var DatePicksUpdateResponseSchema = import_zod6.z.array(
256
- import_zod6.z.object({ memberId: MemberIdSchema, dates: import_zod6.z.array(ISODateStringSchema) })
257
- );
258
- var LocationCandidateAddUpdateResponseSchema = import_zod6.z.array(
259
- LocationCandidateSchema.extend({ authorMemberId: MemberIdSchema })
260
- );
261
- var LocationCandidateVoteUpdateResponseSchema = import_zod6.z.array(
262
- import_zod6.z.object({ locationId: LocationIdSchema, votes: import_zod6.z.array(MemberIdSchema) })
263
- );
264
- var ExcludeMenuUpdateResponseSchema = import_zod6.z.array(
265
- import_zod6.z.object({ memberId: MemberIdSchema, exclusions: import_zod6.z.array(MenuSchema) })
266
- );
267
- var MenuPickUpdateResponseSchema = import_zod6.z.array(
268
- import_zod6.z.object({ menuCode: MenuCodeSchema, selectedMembers: import_zod6.z.array(MemberIdSchema) })
269
- );
270
- var RestaurantPickUpdateResponseSchema = import_zod6.z.array(
271
- import_zod6.z.object({ restaurantId: RestaurantIdSchema, selectedMembers: import_zod6.z.array(MemberIdSchema) })
272
- );
273
- var WaitingPhaseDataSchema = import_zod6.z.object({
274
- locationInitial: import_zod6.z.string().optional(),
275
- meetingAt: ISODateTimeStringSchema.optional()
276
- });
277
- var LocationVotePhaseDataSchema = import_zod6.z.object({
278
- locations: LocationCandidateAddUpdateResponseSchema,
279
- votes: LocationCandidateVoteUpdateResponseSchema
280
- });
281
- var ExcludeMenuPhaseDataSchema = import_zod6.z.object({
282
- recentMenus: import_zod6.z.array(import_zod6.z.object({ userId: import_zod6.z.string(), menuList: import_zod6.z.array(MenuSchema) })),
283
- excludedMenuList: ExcludeMenuUpdateResponseSchema
284
- });
285
- var MenuPhaseDataSchema = import_zod6.z.object({
286
- initialMenus: import_zod6.z.array(MenuSchema),
287
- menuPick: MenuPickUpdateResponseSchema
288
- });
289
- var RestaurantPhaseDataSchema = import_zod6.z.object({
290
- initialRestaurants: import_zod6.z.array(RestaurantSchema),
291
- restaurantUserList: RestaurantPickUpdateResponseSchema
292
- });
293
- var PhaseDataBroadcastSchema = import_zod6.z.discriminatedUnion("phase", [
294
- import_zod6.z.object({ phase: import_zod6.z.literal("waiting"), data: WaitingPhaseDataSchema }),
295
- import_zod6.z.object({ phase: import_zod6.z.literal("date"), data: DatePicksUpdateResponseSchema }),
296
- import_zod6.z.object({ phase: import_zod6.z.literal("time"), data: TimePicksUpdateResponseSchema }),
297
- import_zod6.z.object({ phase: import_zod6.z.literal("location"), data: WaitingPhaseDataSchema }),
298
- import_zod6.z.object({ phase: import_zod6.z.literal("location-vote"), data: LocationVotePhaseDataSchema }),
299
- import_zod6.z.object({ phase: import_zod6.z.literal("exclude-menu"), data: ExcludeMenuPhaseDataSchema }),
300
- import_zod6.z.object({ phase: import_zod6.z.literal("menu"), data: MenuPhaseDataSchema }),
301
- import_zod6.z.object({ phase: import_zod6.z.literal("restaurant"), data: RestaurantPhaseDataSchema }),
302
- import_zod6.z.object({ phase: import_zod6.z.literal("finish"), data: WaitingPhaseDataSchema })
303
- ]);
304
-
305
- // src/domain/plan/plan.schema.ts
306
- var PlanStatusSchema = import_zod7.z.enum(["PLANNING", "COMPLETED"]);
307
- var PlanTypeSchema = import_zod7.z.enum(["RECRUIT", "INVITATION"]);
308
- var PlanResponseSchema = import_zod7.z.object({
309
- planId: PlanIdSchema,
310
- meetingAt: ISODateTimeStringSchema,
311
- location: LocationCandidateSchema.nullable(),
312
- restaurant: RestaurantSchema.nullable(),
313
- author: MemberCoreSchema,
314
- participants: import_zod7.z.array(MemberCoreSchema),
315
- status: PlanStatusSchema,
316
- type: PlanTypeSchema,
317
- createdAt: ISODateTimeStringSchema,
318
- updatedAt: ISODateTimeStringSchema
319
- });
320
- var PlanListQuerySchema = import_zod7.z.object({});
321
- // Annotate the CommonJS export names for ESM import in node:
322
- 0 && (module.exports = {
323
- PlanListQuerySchema,
324
- PlanResponseSchema,
325
- PlanStatusSchema,
326
- PlanTypeSchema
327
- });
@@ -1,18 +0,0 @@
1
- import {
2
- PlanListQuerySchema,
3
- PlanResponseSchema,
4
- PlanStatusSchema,
5
- PlanTypeSchema
6
- } from "../../chunk-W4TUW2GY.js";
7
- import "../../chunk-PQMEXOPZ.js";
8
- import "../../chunk-GTVEQYJW.js";
9
- import "../../chunk-HRM3FQPL.js";
10
- import "../../chunk-NJTV6DRT.js";
11
- import "../../chunk-ZH7D7B2Y.js";
12
- import "../../chunk-H77ISYYC.js";
13
- export {
14
- PlanListQuerySchema,
15
- PlanResponseSchema,
16
- PlanStatusSchema,
17
- PlanTypeSchema
18
- };
@@ -1,189 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/domain/recruit/index.ts
31
- var recruit_exports = {};
32
- __export(recruit_exports, {
33
- CreateRecruitRequestSchema: () => CreateRecruitRequestSchema,
34
- CreateRecruitResponseSchema: () => CreateRecruitResponseSchema,
35
- RecruitListQuerySchema: () => RecruitListQuerySchema,
36
- RecruitListResponseSchema: () => RecruitListResponseSchema,
37
- RecruitSortBySchema: () => RecruitSortBySchema,
38
- RecruitStatusSchema: () => RecruitStatusSchema
39
- });
40
- module.exports = __toCommonJS(recruit_exports);
41
-
42
- // src/domain/recruit/recruit.schema.ts
43
- var import_zod6 = require("zod");
44
-
45
- // src/domain/common/schema/date.schema.ts
46
- var import_zod = require("zod");
47
- var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
48
- var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
49
- var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
50
- var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
51
-
52
- // src/domain/common/schema/id.schema.ts
53
- var import_zod2 = require("zod");
54
- var PositiveIntIdSchema = import_zod2.z.number().int().positive();
55
- var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
56
- var MemberIdSchema = PositiveIntIdSchema.brand();
57
- var ArticleIdSchema = PositiveIntIdSchema.brand();
58
- var CommentIdSchema = PositiveIntIdSchema.brand();
59
- var RecruitIdSchema = PositiveIntIdSchema.brand();
60
- var PlanIdSchema = PositiveIntIdSchema.brand();
61
- var InvitationIdSchema = PositiveIntIdSchema.brand();
62
- var RoomIdSchema = NonEmptyStringIdSchema.brand();
63
- var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
64
- var CouponIdSchema = PositiveIntIdSchema.brand();
65
- var SubscriptionIdSchema = PositiveIntIdSchema.brand();
66
- var FriendRequestIdSchema = PositiveIntIdSchema.brand();
67
- var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
68
- var FoodCodeSchema = NonEmptyStringIdSchema.brand();
69
- var FoodLabelSchema = NonEmptyStringIdSchema.brand();
70
- var FoodSchema = import_zod2.z.object({
71
- code: FoodCodeSchema,
72
- label: FoodLabelSchema
73
- });
74
-
75
- // src/domain/member/member.schema.ts
76
- var import_zod4 = require("zod");
77
-
78
- // src/domain/common/contracts/upload.ts
79
- var import_zod3 = __toESM(require("zod"), 1);
80
- var UploadPresignImageResponseSchema = import_zod3.default.object({
81
- key: import_zod3.default.string(),
82
- putUrl: import_zod3.default.string().url(),
83
- cdnUrl: import_zod3.default.string().url()
84
- });
85
- var UploadPresignImageRequestSchema = import_zod3.default.object({
86
- contentType: import_zod3.default.string()
87
- });
88
-
89
- // src/domain/member/member.schema.ts
90
- var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
91
- var MemberCoreSchema = import_zod4.z.object({
92
- memberId: MemberIdSchema,
93
- username: import_zod4.z.string().min(1).max(50),
94
- profileImageUrl: import_zod4.z.string().url().nullable().optional()
95
- });
96
- var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
97
- var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
98
- var MemberResponseSchema = MemberCoreSchema.pick({
99
- memberId: true,
100
- username: true,
101
- profileImageUrl: true
102
- });
103
- var MemberSearchQuerySchema = import_zod4.z.object({
104
- email: import_zod4.z.string().email().optional(),
105
- username: import_zod4.z.string().optional()
106
- });
107
- var MemberSerachResponseSchema = import_zod4.z.array(MemberCoreSchema);
108
- var MemberDetailSchema = MemberCoreSchema.extend({
109
- bio: import_zod4.z.string().nullable(),
110
- friendConunt: import_zod4.z.number().int().min(0).default(0),
111
- completedPlans: import_zod4.z.number().int().min(0).default(0),
112
- uncompletedPlans: import_zod4.z.number().int().min(0).default(0)
113
- });
114
- var FoodPreferenceItemSchema = FoodSchema.extend({});
115
- var MemberFoodPreferenceSchema = import_zod4.z.object({
116
- liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
117
- disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
118
- allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
119
- });
120
- var UpdateProfileRequestSchema = import_zod4.z.object({
121
- username: import_zod4.z.string().min(1).max(50),
122
- profileImageUrl: import_zod4.z.string().url().nullable(),
123
- bio: import_zod4.z.string().max(500).nullable()
124
- });
125
- var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
126
- var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
127
- UpdatePreferenceRequestSchema
128
- );
129
-
130
- // src/domain/common/schema/pagination.schema.ts
131
- var import_zod5 = require("zod");
132
- var PageQuerySchema = import_zod5.z.object({
133
- page: import_zod5.z.number().int().min(0).optional().default(0),
134
- size: import_zod5.z.number().int().min(1).max(100).optional().default(20)
135
- });
136
- var PageMetaSchema = import_zod5.z.object({
137
- page: import_zod5.z.number().int().min(0),
138
- size: import_zod5.z.number().int().min(1),
139
- totalItems: import_zod5.z.number().int().min(0),
140
- totalPages: import_zod5.z.number().int().min(0),
141
- hasNext: import_zod5.z.boolean(),
142
- hasPrevious: import_zod5.z.boolean()
143
- });
144
- var PageResponseSchema = (item) => import_zod5.z.object({
145
- items: import_zod5.z.array(item),
146
- meta: PageMetaSchema
147
- });
148
- var SortDirectionSchema = import_zod5.z.enum(["asc", "desc"]);
149
-
150
- // src/domain/recruit/recruit.schema.ts
151
- var RecruitStatusSchema = import_zod6.z.enum(["OPEN", "CLOSED", "EXPIRED"]);
152
- var RecruitParticipantSchema = MemberCoreSchema.extend({});
153
- var RecruitSortBySchema = import_zod6.z.enum(["createdAt", "deadline", "participantCount"]);
154
- var RecruitListQuerySchema = PageQuerySchema.extend({
155
- sortBy: RecruitSortBySchema.default("createdAt"),
156
- direction: SortDirectionSchema.default("desc")
157
- });
158
- var RecruitResponseSchema = import_zod6.z.object({
159
- targetCount: import_zod6.z.number().int().min(2),
160
- meetingAt: ISODateTimeStringSchema,
161
- location: import_zod6.z.string().min(1),
162
- message: import_zod6.z.string().max(500),
163
- recruitId: RecruitIdSchema,
164
- status: RecruitStatusSchema,
165
- createdAt: ISODateTimeStringSchema,
166
- expiredAt: ISODateTimeStringSchema,
167
- updatedAt: ISODateTimeStringSchema,
168
- author: MemberCoreSchema,
169
- participants: import_zod6.z.array(RecruitParticipantSchema)
170
- });
171
- var RecruitListResponseSchema = PageResponseSchema(RecruitResponseSchema);
172
- var CreateRecruitRequestSchema = import_zod6.z.object({
173
- targetCount: import_zod6.z.number().int().min(2),
174
- meetingAt: ISODateTimeStringSchema,
175
- location: import_zod6.z.string().min(1),
176
- message: import_zod6.z.string().max(500)
177
- });
178
- var CreateRecruitResponseSchema = import_zod6.z.object({
179
- recruitId: RecruitIdSchema
180
- });
181
- // Annotate the CommonJS export names for ESM import in node:
182
- 0 && (module.exports = {
183
- CreateRecruitRequestSchema,
184
- CreateRecruitResponseSchema,
185
- RecruitListQuerySchema,
186
- RecruitListResponseSchema,
187
- RecruitSortBySchema,
188
- RecruitStatusSchema
189
- });
@@ -1,30 +0,0 @@
1
- import {
2
- CreateRecruitRequestSchema,
3
- CreateRecruitResponseSchema,
4
- RecruitListQuerySchema,
5
- RecruitListResponseSchema,
6
- RecruitSortBySchema,
7
- RecruitStatusSchema
8
- } from "../../chunk-YM7YU7IR.js";
9
- import "../../chunk-W4TUW2GY.js";
10
- import "../../chunk-W4C7XHTX.js";
11
- import "../../chunk-AI2YMBJX.js";
12
- import "../../chunk-PFSZSKD5.js";
13
- import "../../chunk-PQMEXOPZ.js";
14
- import "../../chunk-K3CZKI2F.js";
15
- import "../../chunk-GTVEQYJW.js";
16
- import "../../chunk-OJVXYCSH.js";
17
- import "../../chunk-4E5E3PFW.js";
18
- import "../../chunk-HRM3FQPL.js";
19
- import "../../chunk-YGFAVC5N.js";
20
- import "../../chunk-NJTV6DRT.js";
21
- import "../../chunk-ZH7D7B2Y.js";
22
- import "../../chunk-H77ISYYC.js";
23
- export {
24
- CreateRecruitRequestSchema,
25
- CreateRecruitResponseSchema,
26
- RecruitListQuerySchema,
27
- RecruitListResponseSchema,
28
- RecruitSortBySchema,
29
- RecruitStatusSchema
30
- };