@kimdaegyu/babmukdang-shared 1.1.11 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/chunk-3TY6OPD3.js +91 -0
  2. package/dist/{chunk-W4C7XHTX.js → chunk-6O2YTBVC.js} +3 -3
  3. package/dist/{chunk-GTVEQYJW.js → chunk-7JYVBXKQ.js} +1 -1
  4. package/dist/chunk-7UZD4LBQ.js +459 -0
  5. package/dist/chunk-BSJC7OVV.js +10 -0
  6. package/dist/chunk-C63TN7L3.js +148 -0
  7. package/dist/chunk-CGFW5LYV.js +143 -0
  8. package/dist/chunk-GOOH2LGN.js +829 -0
  9. package/dist/chunk-LEH6UFL7.js +314 -0
  10. package/dist/{chunk-K3CZKI2F.js → chunk-NENVUHL5.js} +11 -8
  11. package/dist/chunk-OPMBGBYS.js +632 -0
  12. package/dist/{chunk-OJVXYCSH.js → chunk-QFPVAJ2U.js} +1 -1
  13. package/dist/{chunk-AI2YMBJX.js → chunk-RZPNVRRS.js} +5 -5
  14. package/dist/{chunk-4E5E3PFW.js → chunk-VD3VGLBQ.js} +13 -5
  15. package/dist/chunk-WYBFBLQC.js +111 -0
  16. package/dist/{chunk-H77ISYYC.js → chunk-XMRYAG3V.js} +20 -8
  17. package/dist/domain/article/index.cjs +71 -7
  18. package/dist/domain/article/index.d.cts +79 -796
  19. package/dist/domain/article/index.d.ts +79 -796
  20. package/dist/domain/article/index.js +4 -4
  21. package/dist/domain/auth/index.cjs +68 -6
  22. package/dist/domain/auth/index.d.cts +6 -46
  23. package/dist/domain/auth/index.d.ts +6 -46
  24. package/dist/domain/auth/index.js +3 -3
  25. package/dist/domain/common/index.cjs +1438 -330
  26. package/dist/domain/common/index.d.cts +212 -3037
  27. package/dist/domain/common/index.d.ts +212 -3037
  28. package/dist/domain/common/index.js +65 -30
  29. package/dist/domain/food/index.cjs +225 -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 +46 -0
  33. package/dist/domain/friend/index.cjs +78 -7
  34. package/dist/domain/friend/index.d.cts +39 -98
  35. package/dist/domain/friend/index.d.ts +39 -98
  36. package/dist/domain/friend/index.js +5 -3
  37. package/dist/domain/index.cjs +1930 -456
  38. package/dist/domain/index.d.cts +382 -123
  39. package/dist/domain/index.d.ts +382 -123
  40. package/dist/domain/index.js +429 -140
  41. package/dist/domain/live-activity/index.cjs +1112 -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 +28 -0
  45. package/dist/domain/meal/index.cjs +68 -6
  46. package/dist/domain/meal/index.d.cts +21 -40
  47. package/dist/domain/meal/index.d.ts +21 -40
  48. package/dist/domain/meal/index.js +4 -4
  49. package/dist/domain/meal-plan/index.cjs +1540 -0
  50. package/dist/domain/meal-plan/index.d.cts +4523 -0
  51. package/dist/domain/meal-plan/index.d.ts +4523 -0
  52. package/dist/domain/meal-plan/index.js +255 -0
  53. package/dist/domain/member/index.cjs +94 -6
  54. package/dist/domain/member/index.d.cts +263 -273
  55. package/dist/domain/member/index.d.ts +263 -273
  56. package/dist/domain/member/index.js +26 -2
  57. package/dist/domain/promotion/index.cjs +10 -4
  58. package/dist/domain/promotion/index.d.cts +35 -112
  59. package/dist/domain/promotion/index.d.ts +35 -112
  60. package/dist/domain/promotion/index.js +2 -2
  61. package/dist/domain/push/index.cjs +1055 -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 +36 -0
  65. package/dist/domain/restaurant/index.cjs +10 -4
  66. package/dist/domain/restaurant/index.d.cts +27 -1
  67. package/dist/domain/restaurant/index.d.ts +27 -1
  68. package/dist/domain/restaurant/index.js +2 -2
  69. package/dist/index.cjs +1731 -399
  70. package/dist/index.d.cts +5 -7
  71. package/dist/index.d.ts +5 -7
  72. package/dist/index.js +17 -15
  73. package/package.json +52 -55
  74. package/dist/chunk-PFSZSKD5.js +0 -0
  75. package/dist/chunk-PQMEXOPZ.js +0 -232
  76. package/dist/chunk-W4TUW2GY.js +0 -40
  77. package/dist/chunk-WNYCCQM4.js +0 -342
  78. package/dist/chunk-YGFAVC5N.js +0 -34
  79. package/dist/chunk-YM7YU7IR.js +0 -319
  80. package/dist/chunk-ZH7D7B2Y.js +0 -78
  81. package/dist/domain/invitation/index.cjs +0 -82
  82. package/dist/domain/invitation/index.d.cts +0 -64
  83. package/dist/domain/invitation/index.d.ts +0 -64
  84. package/dist/domain/invitation/index.js +0 -13
  85. package/dist/domain/plan/index.cjs +0 -327
  86. package/dist/domain/plan/index.d.cts +0 -178
  87. package/dist/domain/plan/index.d.ts +0 -178
  88. package/dist/domain/plan/index.js +0 -18
  89. package/dist/domain/recruit/index.cjs +0 -189
  90. package/dist/domain/recruit/index.d.cts +0 -214
  91. package/dist/domain/recruit/index.d.ts +0 -214
  92. package/dist/domain/recruit/index.js +0 -30
  93. package/dist/domain/room/index.cjs +0 -401
  94. package/dist/domain/room/index.d.cts +0 -2643
  95. package/dist/domain/room/index.d.ts +0 -2643
  96. package/dist/domain/room/index.js +0 -82
  97. package/dist/id-dAYxfjZn.d.cts +0 -64
  98. package/dist/id-dAYxfjZn.d.ts +0 -64
  99. package/dist/restaurant.schema-CuEcX3S3.d.cts +0 -78
  100. package/dist/restaurant.schema-CuEcX3S3.d.ts +0 -78
@@ -1,401 +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/room/index.ts
31
- var room_exports = {};
32
- __export(room_exports, {
33
- AddLocationCandidateRequestSchema: () => AddLocationCandidateRequestSchema,
34
- ChatMessageRequestSchema: () => ChatMessageRequestSchema,
35
- ChatMessageResponseSchema: () => ChatMessageResponseSchema,
36
- DatePicksUpdateResponseSchema: () => DatePicksUpdateResponseSchema,
37
- ExcludeMenuRequestSchema: () => ExcludeMenuRequestSchema,
38
- ExcludeMenuUpdateResponseSchema: () => ExcludeMenuUpdateResponseSchema,
39
- FinalStateSchema: () => FinalStateSchema,
40
- InvitationRoomStageSchema: () => InvitationRoomStageSchema,
41
- LocationCandidateAddUpdateResponseSchema: () => LocationCandidateAddUpdateResponseSchema,
42
- LocationCandidateSchema: () => LocationCandidateSchema,
43
- LocationCandidateVoteUpdateResponseSchema: () => LocationCandidateVoteUpdateResponseSchema,
44
- LocationIdSchema: () => LocationIdSchema,
45
- MatchingNotificationKindSchema: () => MatchingNotificationKindSchema,
46
- MatchingNotificationSchema: () => MatchingNotificationSchema,
47
- MenuCodeSchema: () => MenuCodeSchema,
48
- MenuPickUpdateResponseSchema: () => MenuPickUpdateResponseSchema,
49
- MenuSchema: () => MenuSchema,
50
- ParticipantSchema: () => ParticipantSchema,
51
- PhaseDataBroadcastSchema: () => PhaseDataBroadcastSchema,
52
- PickDateRequestSchema: () => PickDateRequestSchema,
53
- PickMenuRequestSchema: () => PickMenuRequestSchema,
54
- PickRestaurantRequestSchema: () => PickRestaurantRequestSchema,
55
- PickTimesRequestSchema: () => PickTimesRequestSchema,
56
- ReadyStateChangedSchema: () => ReadyStateChangedSchema,
57
- ReadyStateRequestSchema: () => ReadyStateRequestSchema,
58
- RecruitRoomStageSchema: () => RecruitRoomStageSchema,
59
- RestaurantPickUpdateResponseSchema: () => RestaurantPickUpdateResponseSchema,
60
- RoomAccessResponseSchema: () => RoomAccessResponseSchema,
61
- RoomAssignedResponseSchema: () => RoomAssignedResponseSchema,
62
- RoomInitialStateSchema: () => RoomInitialStateSchema,
63
- RoomSocketClientEventSchemas: () => RoomSocketClientEventSchemas,
64
- RoomSocketErrorSchema: () => RoomSocketErrorSchema,
65
- RoomSocketServerEventSchemas: () => RoomSocketServerEventSchemas,
66
- RoomTypeSchema: () => RoomTypeSchema,
67
- TimePicksUpdateResponseSchema: () => TimePicksUpdateResponseSchema,
68
- VoteLocationRequestSchema: () => VoteLocationRequestSchema
69
- });
70
- module.exports = __toCommonJS(room_exports);
71
-
72
- // src/domain/room/schema/room.schema.ts
73
- var import_zod6 = require("zod");
74
-
75
- // src/domain/common/schema/date.schema.ts
76
- var import_zod = require("zod");
77
- var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
78
- var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
79
- var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
80
- var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
81
-
82
- // src/domain/common/schema/id.schema.ts
83
- var import_zod2 = require("zod");
84
- var PositiveIntIdSchema = import_zod2.z.number().int().positive();
85
- var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
86
- var MemberIdSchema = PositiveIntIdSchema.brand();
87
- var ArticleIdSchema = PositiveIntIdSchema.brand();
88
- var CommentIdSchema = PositiveIntIdSchema.brand();
89
- var RecruitIdSchema = PositiveIntIdSchema.brand();
90
- var PlanIdSchema = PositiveIntIdSchema.brand();
91
- var InvitationIdSchema = PositiveIntIdSchema.brand();
92
- var RoomIdSchema = NonEmptyStringIdSchema.brand();
93
- var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
94
- var CouponIdSchema = PositiveIntIdSchema.brand();
95
- var SubscriptionIdSchema = PositiveIntIdSchema.brand();
96
- var FriendRequestIdSchema = PositiveIntIdSchema.brand();
97
- var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
98
- var FoodCodeSchema = NonEmptyStringIdSchema.brand();
99
- var FoodLabelSchema = NonEmptyStringIdSchema.brand();
100
- var FoodSchema = import_zod2.z.object({
101
- code: FoodCodeSchema,
102
- label: FoodLabelSchema
103
- });
104
-
105
- // src/domain/member/member.schema.ts
106
- var import_zod4 = require("zod");
107
-
108
- // src/domain/common/contracts/upload.ts
109
- var import_zod3 = __toESM(require("zod"), 1);
110
- var UploadPresignImageResponseSchema = import_zod3.default.object({
111
- key: import_zod3.default.string(),
112
- putUrl: import_zod3.default.string().url(),
113
- cdnUrl: import_zod3.default.string().url()
114
- });
115
- var UploadPresignImageRequestSchema = import_zod3.default.object({
116
- contentType: import_zod3.default.string()
117
- });
118
-
119
- // src/domain/member/member.schema.ts
120
- var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
121
- var MemberCoreSchema = import_zod4.z.object({
122
- memberId: MemberIdSchema,
123
- username: import_zod4.z.string().min(1).max(50),
124
- profileImageUrl: import_zod4.z.string().url().nullable().optional()
125
- });
126
- var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
127
- var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
128
- var MemberResponseSchema = MemberCoreSchema.pick({
129
- memberId: true,
130
- username: true,
131
- profileImageUrl: true
132
- });
133
- var MemberSearchQuerySchema = import_zod4.z.object({
134
- email: import_zod4.z.string().email().optional(),
135
- username: import_zod4.z.string().optional()
136
- });
137
- var MemberSerachResponseSchema = import_zod4.z.array(MemberCoreSchema);
138
- var MemberDetailSchema = MemberCoreSchema.extend({
139
- bio: import_zod4.z.string().nullable(),
140
- friendConunt: import_zod4.z.number().int().min(0).default(0),
141
- completedPlans: import_zod4.z.number().int().min(0).default(0),
142
- uncompletedPlans: import_zod4.z.number().int().min(0).default(0)
143
- });
144
- var FoodPreferenceItemSchema = FoodSchema.extend({});
145
- var MemberFoodPreferenceSchema = import_zod4.z.object({
146
- liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
147
- disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
148
- allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
149
- });
150
- var UpdateProfileRequestSchema = import_zod4.z.object({
151
- username: import_zod4.z.string().min(1).max(50),
152
- profileImageUrl: import_zod4.z.string().url().nullable(),
153
- bio: import_zod4.z.string().max(500).nullable()
154
- });
155
- var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
156
- var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
157
- UpdatePreferenceRequestSchema
158
- );
159
-
160
- // src/domain/restaurant/restaurant.schema.ts
161
- var import_zod5 = require("zod");
162
- var RestaurantSchema = import_zod5.z.object({
163
- restaurantId: RestaurantIdSchema,
164
- placeName: import_zod5.z.string(),
165
- categoryName: import_zod5.z.string(),
166
- categoryGroupName: import_zod5.z.string(),
167
- distance: import_zod5.z.string().optional(),
168
- roadAddressName: import_zod5.z.string(),
169
- addressName: import_zod5.z.string(),
170
- phone: import_zod5.z.string().nullable(),
171
- placeUrl: import_zod5.z.string().url().nullable(),
172
- lat: import_zod5.z.number(),
173
- lng: import_zod5.z.number()
174
- });
175
- var KakaoPlaceRawSchema = import_zod5.z.object({
176
- id: RestaurantIdSchema,
177
- place_name: import_zod5.z.string(),
178
- category_name: import_zod5.z.string(),
179
- category_group_name: import_zod5.z.string(),
180
- distance: import_zod5.z.string(),
181
- road_address_name: import_zod5.z.string(),
182
- address_name: import_zod5.z.string(),
183
- phone: import_zod5.z.string(),
184
- place_url: import_zod5.z.string().url().optional(),
185
- lat: import_zod5.z.number(),
186
- lng: import_zod5.z.number()
187
- });
188
-
189
- // src/domain/room/schema/room.schema.ts
190
- var MenuCodeSchema = FoodCodeSchema;
191
- var LocationIdSchema = import_zod6.z.string().min(1).brand();
192
- var MenuSchema = FoodSchema.extend({});
193
- var LocationCandidateSchema = import_zod6.z.object({
194
- locationId: LocationIdSchema,
195
- placeName: import_zod6.z.string(),
196
- lat: import_zod6.z.number(),
197
- lng: import_zod6.z.number(),
198
- address: import_zod6.z.string()
199
- });
200
- var ParticipantSchema = MemberCoreSchema.extend({
201
- ready: import_zod6.z.boolean()
202
- });
203
- var RecruitRoomStageSchema = import_zod6.z.enum([
204
- "waiting",
205
- "location",
206
- "location-vote",
207
- "exclude-menu",
208
- "menu",
209
- "restaurant",
210
- "finish"
211
- ]);
212
- var RoomTypeSchema = import_zod6.z.enum(["recruit", "invitation"]);
213
- var InvitationRoomStageSchema = import_zod6.z.enum([
214
- "waiting",
215
- "date",
216
- "time",
217
- "location",
218
- "location-vote",
219
- "exclude-menu",
220
- "menu",
221
- "restaurant",
222
- "finish"
223
- ]);
224
- var ReadyStateRequestSchema = import_zod6.z.object({
225
- isReady: import_zod6.z.boolean()
226
- });
227
- var ChatMessageRequestSchema = import_zod6.z.object({
228
- message: import_zod6.z.string().min(1).max(500)
229
- });
230
- var AddLocationCandidateRequestSchema = LocationCandidateSchema;
231
- var VoteLocationRequestSchema = import_zod6.z.object({ locationId: LocationIdSchema });
232
- var ExcludeMenuRequestSchema = import_zod6.z.object({ menu: MenuSchema });
233
- var PickMenuRequestSchema = import_zod6.z.object({ menuCode: MenuCodeSchema });
234
- var PickRestaurantRequestSchema = import_zod6.z.object({ restaurantId: RestaurantIdSchema });
235
- var PickTimesRequestSchema = import_zod6.z.object({ times: import_zod6.z.array(import_zod6.z.string().min(1)).min(1) });
236
- var PickDateRequestSchema = import_zod6.z.object({ dates: import_zod6.z.array(ISODateStringSchema).min(1) });
237
- var RoomAssignedResponseSchema = import_zod6.z.object({
238
- roomId: RoomIdSchema
239
- });
240
- var RoomAccessResponseSchema = import_zod6.z.object({
241
- roomId: RoomIdSchema,
242
- roomType: RoomTypeSchema,
243
- stage: import_zod6.z.union([RecruitRoomStageSchema, InvitationRoomStageSchema]),
244
- canJoin: import_zod6.z.boolean()
245
- });
246
- var MatchingNotificationKindSchema = import_zod6.z.enum(["recruit", "invitation"]);
247
- var MatchingNotificationSchema = import_zod6.z.object({
248
- notificationId: import_zod6.z.string().min(1),
249
- kind: MatchingNotificationKindSchema,
250
- roomId: RoomIdSchema,
251
- roomType: RoomTypeSchema,
252
- title: import_zod6.z.string().min(1),
253
- message: import_zod6.z.string().min(1),
254
- createdAt: ISODateTimeStringSchema,
255
- readAt: ISODateTimeStringSchema.nullable()
256
- });
257
- var RoomSocketErrorSchema = import_zod6.z.object({
258
- code: import_zod6.z.string(),
259
- message: import_zod6.z.string()
260
- });
261
- var ChatMessageResponseSchema = import_zod6.z.object({
262
- messageId: import_zod6.z.string(),
263
- user: MemberCoreSchema,
264
- message: import_zod6.z.string(),
265
- createdAt: ISODateTimeStringSchema
266
- });
267
- var ReadyStateChangedSchema = import_zod6.z.object({
268
- readyCount: import_zod6.z.number().int().min(0),
269
- participantCount: import_zod6.z.number().int().min(0)
270
- });
271
- var FinalStateSchema = import_zod6.z.object({
272
- location: LocationCandidateSchema.optional(),
273
- excludeMenu: import_zod6.z.array(MenuSchema).optional(),
274
- menu: MenuSchema.optional(),
275
- restaurant: RestaurantSchema.optional(),
276
- time: import_zod6.z.string().optional(),
277
- date: ISODateStringSchema.optional()
278
- });
279
- var RoomInitialStateSchema = import_zod6.z.object({
280
- participants: import_zod6.z.array(ParticipantSchema),
281
- chat: import_zod6.z.array(ChatMessageResponseSchema),
282
- final: FinalStateSchema
283
- });
284
- var TimePicksUpdateResponseSchema = import_zod6.z.array(
285
- import_zod6.z.object({ memberId: MemberIdSchema, times: import_zod6.z.array(import_zod6.z.string()) })
286
- );
287
- var DatePicksUpdateResponseSchema = import_zod6.z.array(
288
- import_zod6.z.object({ memberId: MemberIdSchema, dates: import_zod6.z.array(ISODateStringSchema) })
289
- );
290
- var LocationCandidateAddUpdateResponseSchema = import_zod6.z.array(
291
- LocationCandidateSchema.extend({ authorMemberId: MemberIdSchema })
292
- );
293
- var LocationCandidateVoteUpdateResponseSchema = import_zod6.z.array(
294
- import_zod6.z.object({ locationId: LocationIdSchema, votes: import_zod6.z.array(MemberIdSchema) })
295
- );
296
- var ExcludeMenuUpdateResponseSchema = import_zod6.z.array(
297
- import_zod6.z.object({ memberId: MemberIdSchema, exclusions: import_zod6.z.array(MenuSchema) })
298
- );
299
- var MenuPickUpdateResponseSchema = import_zod6.z.array(
300
- import_zod6.z.object({ menuCode: MenuCodeSchema, selectedMembers: import_zod6.z.array(MemberIdSchema) })
301
- );
302
- var RestaurantPickUpdateResponseSchema = import_zod6.z.array(
303
- import_zod6.z.object({ restaurantId: RestaurantIdSchema, selectedMembers: import_zod6.z.array(MemberIdSchema) })
304
- );
305
- var WaitingPhaseDataSchema = import_zod6.z.object({
306
- locationInitial: import_zod6.z.string().optional(),
307
- meetingAt: ISODateTimeStringSchema.optional()
308
- });
309
- var LocationVotePhaseDataSchema = import_zod6.z.object({
310
- locations: LocationCandidateAddUpdateResponseSchema,
311
- votes: LocationCandidateVoteUpdateResponseSchema
312
- });
313
- var ExcludeMenuPhaseDataSchema = import_zod6.z.object({
314
- recentMenus: import_zod6.z.array(import_zod6.z.object({ userId: import_zod6.z.string(), menuList: import_zod6.z.array(MenuSchema) })),
315
- excludedMenuList: ExcludeMenuUpdateResponseSchema
316
- });
317
- var MenuPhaseDataSchema = import_zod6.z.object({
318
- initialMenus: import_zod6.z.array(MenuSchema),
319
- menuPick: MenuPickUpdateResponseSchema
320
- });
321
- var RestaurantPhaseDataSchema = import_zod6.z.object({
322
- initialRestaurants: import_zod6.z.array(RestaurantSchema),
323
- restaurantUserList: RestaurantPickUpdateResponseSchema
324
- });
325
- var PhaseDataBroadcastSchema = import_zod6.z.discriminatedUnion("phase", [
326
- import_zod6.z.object({ phase: import_zod6.z.literal("waiting"), data: WaitingPhaseDataSchema }),
327
- import_zod6.z.object({ phase: import_zod6.z.literal("date"), data: DatePicksUpdateResponseSchema }),
328
- import_zod6.z.object({ phase: import_zod6.z.literal("time"), data: TimePicksUpdateResponseSchema }),
329
- import_zod6.z.object({ phase: import_zod6.z.literal("location"), data: WaitingPhaseDataSchema }),
330
- import_zod6.z.object({ phase: import_zod6.z.literal("location-vote"), data: LocationVotePhaseDataSchema }),
331
- import_zod6.z.object({ phase: import_zod6.z.literal("exclude-menu"), data: ExcludeMenuPhaseDataSchema }),
332
- import_zod6.z.object({ phase: import_zod6.z.literal("menu"), data: MenuPhaseDataSchema }),
333
- import_zod6.z.object({ phase: import_zod6.z.literal("restaurant"), data: RestaurantPhaseDataSchema }),
334
- import_zod6.z.object({ phase: import_zod6.z.literal("finish"), data: WaitingPhaseDataSchema })
335
- ]);
336
- var RoomSocketClientEventSchemas = {
337
- "ready-state": ReadyStateRequestSchema,
338
- "chat-message": ChatMessageRequestSchema,
339
- "add-location-candidate": AddLocationCandidateRequestSchema,
340
- "vote-location": VoteLocationRequestSchema,
341
- "exclude-menu": ExcludeMenuRequestSchema,
342
- "pick-menu": PickMenuRequestSchema,
343
- "pick-restaurant": PickRestaurantRequestSchema,
344
- "pick-times": PickTimesRequestSchema,
345
- "pick-date": PickDateRequestSchema
346
- };
347
- var RoomSocketServerEventSchemas = {
348
- "room-assigned": RoomAssignedResponseSchema,
349
- "stage-changed": PhaseDataBroadcastSchema,
350
- "chat-message": ChatMessageResponseSchema,
351
- "room-error": RoomSocketErrorSchema,
352
- "ready-state-changed": ReadyStateChangedSchema,
353
- "join-room": RoomInitialStateSchema,
354
- "time-updated": TimePicksUpdateResponseSchema,
355
- "date-updated": DatePicksUpdateResponseSchema,
356
- "location-add-updated": LocationCandidateAddUpdateResponseSchema,
357
- "location-vote-updated": LocationCandidateVoteUpdateResponseSchema,
358
- "exclude-menu-updated": ExcludeMenuUpdateResponseSchema,
359
- "menu-pick-updated": MenuPickUpdateResponseSchema,
360
- "restaurant-pick-updated": RestaurantPickUpdateResponseSchema,
361
- "final-state-response": FinalStateSchema
362
- };
363
- // Annotate the CommonJS export names for ESM import in node:
364
- 0 && (module.exports = {
365
- AddLocationCandidateRequestSchema,
366
- ChatMessageRequestSchema,
367
- ChatMessageResponseSchema,
368
- DatePicksUpdateResponseSchema,
369
- ExcludeMenuRequestSchema,
370
- ExcludeMenuUpdateResponseSchema,
371
- FinalStateSchema,
372
- InvitationRoomStageSchema,
373
- LocationCandidateAddUpdateResponseSchema,
374
- LocationCandidateSchema,
375
- LocationCandidateVoteUpdateResponseSchema,
376
- LocationIdSchema,
377
- MatchingNotificationKindSchema,
378
- MatchingNotificationSchema,
379
- MenuCodeSchema,
380
- MenuPickUpdateResponseSchema,
381
- MenuSchema,
382
- ParticipantSchema,
383
- PhaseDataBroadcastSchema,
384
- PickDateRequestSchema,
385
- PickMenuRequestSchema,
386
- PickRestaurantRequestSchema,
387
- PickTimesRequestSchema,
388
- ReadyStateChangedSchema,
389
- ReadyStateRequestSchema,
390
- RecruitRoomStageSchema,
391
- RestaurantPickUpdateResponseSchema,
392
- RoomAccessResponseSchema,
393
- RoomAssignedResponseSchema,
394
- RoomInitialStateSchema,
395
- RoomSocketClientEventSchemas,
396
- RoomSocketErrorSchema,
397
- RoomSocketServerEventSchemas,
398
- RoomTypeSchema,
399
- TimePicksUpdateResponseSchema,
400
- VoteLocationRequestSchema
401
- });