@kimdaegyu/babmukdang-shared 2.0.2 → 2.0.4

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 (53) hide show
  1. package/dist/{chunk-IPANLE7B.js → chunk-2W4HVSYK.js} +83 -71
  2. package/dist/{chunk-TOXRHSD6.js → chunk-7JYVBXKQ.js} +1 -1
  3. package/dist/chunk-BSJC7OVV.js +10 -0
  4. package/dist/{chunk-YV734GYZ.js → chunk-C63TN7L3.js} +9 -26
  5. package/dist/{chunk-Q4BPFDVB.js → chunk-CGFW5LYV.js} +6 -34
  6. package/dist/{chunk-EX7S5FI5.js → chunk-CUOJE3ER.js} +4 -4
  7. package/dist/{chunk-QUAG5LF5.js → chunk-EQLAVUHF.js} +6 -13
  8. package/dist/chunk-FODWQLEY.js +346 -0
  9. package/dist/{chunk-GESEM4IA.js → chunk-HHU5TRDP.js} +6 -17
  10. package/dist/{chunk-EYZU5HPG.js → chunk-HRM3FQPL.js} +1 -4
  11. package/dist/{chunk-P3MYMK34.js → chunk-IRAFNZDL.js} +12 -20
  12. package/dist/chunk-IW342TDD.js +457 -0
  13. package/dist/{chunk-DRCY5UNQ.js → chunk-Q6Y2NBB6.js} +6 -11
  14. package/dist/{chunk-G7TITUHT.js → chunk-QFPVAJ2U.js} +1 -1
  15. package/dist/{chunk-TIOX7OHA.js → chunk-QPTK7F7Y.js} +27 -61
  16. package/dist/{chunk-65DWKLP6.js → chunk-RZPNVRRS.js} +5 -14
  17. package/dist/{chunk-6R5CCY5Q.js → chunk-XMRYAG3V.js} +0 -2
  18. package/dist/domain/article/index.cjs +13 -41
  19. package/dist/domain/article/index.js +5 -5
  20. package/dist/domain/auth/index.cjs +8 -25
  21. package/dist/domain/auth/index.js +3 -3
  22. package/dist/domain/common/index.cjs +734 -1332
  23. package/dist/domain/common/index.js +15 -14
  24. package/dist/domain/food/index.cjs +5 -28
  25. package/dist/domain/food/index.d.cts +4 -4
  26. package/dist/domain/food/index.d.ts +4 -4
  27. package/dist/domain/food/index.js +7 -5
  28. package/dist/domain/friend/index.cjs +10 -35
  29. package/dist/domain/friend/index.js +4 -4
  30. package/dist/domain/index.cjs +772 -1476
  31. package/dist/domain/index.d.cts +15 -5
  32. package/dist/domain/index.d.ts +15 -5
  33. package/dist/domain/index.js +85 -73
  34. package/dist/domain/live-activity/index.cjs +422 -371
  35. package/dist/domain/live-activity/index.js +9 -8
  36. package/dist/domain/meal/index.cjs +11 -38
  37. package/dist/domain/meal/index.js +4 -4
  38. package/dist/domain/meal-plan/index.cjs +499 -426
  39. package/dist/domain/meal-plan/index.d.cts +1355 -50
  40. package/dist/domain/meal-plan/index.d.ts +1355 -50
  41. package/dist/domain/meal-plan/index.js +19 -8
  42. package/dist/domain/member/index.cjs +8 -25
  43. package/dist/domain/member/index.js +2 -2
  44. package/dist/domain/promotion/index.cjs +4 -16
  45. package/dist/domain/promotion/index.js +3 -3
  46. package/dist/domain/push/index.cjs +392 -341
  47. package/dist/domain/push/index.js +7 -6
  48. package/dist/domain/restaurant/index.js +2 -2
  49. package/dist/index.cjs +766 -1475
  50. package/dist/index.js +17 -16
  51. package/package.json +1 -1
  52. package/dist/chunk-3BLXZW4U.js +0 -338
  53. package/dist/chunk-KREAZLLH.js +0 -1062
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
8
  var __export = (target, all) => {
10
9
  for (var name in all)
11
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -88,8 +87,13 @@ __export(meal_plan_exports, {
88
87
  MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
89
88
  MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
90
89
  MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
91
- MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
92
90
  MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
91
+ MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
92
+ MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
93
+ MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
94
+ MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
95
+ MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
96
+ MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
93
97
  MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
94
98
  MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
95
99
  MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
@@ -158,16 +162,13 @@ __export(meal_plan_exports, {
158
162
  module.exports = __toCommonJS(meal_plan_exports);
159
163
 
160
164
  // src/domain/meal-plan/meal-plan.schema.ts
161
- var import_zod11 = require("zod");
165
+ var import_zod12 = require("zod");
162
166
 
163
167
  // src/domain/common/schema/date.schema.ts
164
168
  var import_zod = require("zod");
165
169
  var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
166
170
  var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
167
- var ISODateTimeStringSchema = import_zod.z.string().datetime({
168
- offset: true,
169
- message: "Expected ISO datetime string"
170
- });
171
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
171
172
  var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
172
173
 
173
174
  // src/domain/common/schema/id.schema.ts
@@ -214,24 +215,10 @@ var UploadPresignImageRequestSchema = import_zod3.default.object({
214
215
  });
215
216
 
216
217
  // src/domain/member/member.schema.ts
217
- var MemberRoleSchema = import_zod4.z.enum([
218
- "USER",
219
- "ADMIN"
220
- ]);
221
- var LocationConsentStatusSchema = import_zod4.z.enum([
222
- "UNKNOWN",
223
- "GRANTED",
224
- "DENIED"
225
- ]);
226
- var OnboardingStatusSchema = import_zod4.z.enum([
227
- "REQUIRED",
228
- "COMPLETED"
229
- ]);
230
- var PermissionKindSchema = import_zod4.z.enum([
231
- "LOCATION",
232
- "NOTIFICATION",
233
- "CAMERA"
234
- ]);
218
+ var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
219
+ var LocationConsentStatusSchema = import_zod4.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
220
+ var OnboardingStatusSchema = import_zod4.z.enum(["REQUIRED", "COMPLETED"]);
221
+ var PermissionKindSchema = import_zod4.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
235
222
  var PermissionStatusSchema = import_zod4.z.enum([
236
223
  "UNKNOWN",
237
224
  "PROMPT",
@@ -240,12 +227,7 @@ var PermissionStatusSchema = import_zod4.z.enum([
240
227
  "LIMITED",
241
228
  "UNSUPPORTED"
242
229
  ]);
243
- var PermissionPlatformSchema = import_zod4.z.enum([
244
- "WEB",
245
- "IOS",
246
- "ANDROID",
247
- "UNKNOWN"
248
- ]);
230
+ var PermissionPlatformSchema = import_zod4.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
249
231
  var DevicePermissionSnapshotSchema = import_zod4.z.object({
250
232
  kind: PermissionKindSchema,
251
233
  status: PermissionStatusSchema,
@@ -317,7 +299,9 @@ var UpdateProfileRequestSchema = import_zod4.z.object({
317
299
  bio: import_zod4.z.string().max(500).nullable()
318
300
  });
319
301
  var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
320
- var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
302
+ var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
303
+ UpdatePreferenceRequestSchema
304
+ );
321
305
  var OnboardingDraftSchema = import_zod4.z.object({
322
306
  username: import_zod4.z.string().min(1).max(50).optional(),
323
307
  profileImageUrl: import_zod4.z.string().url().nullable().optional(),
@@ -357,54 +341,172 @@ var KakaoPlaceRawSchema = import_zod5.z.object({
357
341
  });
358
342
 
359
343
  // src/domain/meal-plan/meal-plan-decision.schema.ts
344
+ var import_zod7 = require("zod");
345
+
346
+ // src/domain/food/food.schema.ts
360
347
  var import_zod6 = require("zod");
361
- var MealPlanLatitudeSchema = import_zod6.z.number().brand();
362
- var MealPlanLongitudeSchema = import_zod6.z.number().brand();
363
- var MealPlanLocationCandidateIdSchema = import_zod6.z.string().min(1).brand();
364
- var MealPlanMenuCandidateIdSchema = import_zod6.z.string().min(1).brand();
365
- var MealPlanDecisionStageIdSchema = import_zod6.z.string().uuid().brand();
366
- var MealPlanVoteIdSchema = import_zod6.z.string().uuid().brand();
367
- var MealPlanLocationCandidateSourceSchema = import_zod6.z.enum([
348
+ var FoodGranularitySchema = import_zod6.z.enum(["main_dish", "side_dish", "beverage", "sauce"]);
349
+ var CuisineTagSchema = import_zod6.z.enum([
350
+ "korean",
351
+ "western",
352
+ "chinese",
353
+ "japanese",
354
+ "mexican",
355
+ "indian",
356
+ "asian",
357
+ "snack",
358
+ "dessert",
359
+ "beverage",
360
+ "unknown"
361
+ ]);
362
+ var FoodResolvedMatchSourceSchema = import_zod6.z.enum(["category", "alias", "lexical", "semantic"]);
363
+ var FoodCodeManifestImageSchema = import_zod6.z.object({
364
+ src: import_zod6.z.string().min(1),
365
+ avifSrcset: import_zod6.z.string().min(1).optional(),
366
+ thumbhashDataURL: import_zod6.z.string().min(1).optional(),
367
+ aspectRatio: import_zod6.z.number().positive().optional()
368
+ });
369
+ var FoodCodeManifestItemSchema = import_zod6.z.object({
370
+ code: FoodCodeSchema,
371
+ label: FoodLabelSchema,
372
+ aliases: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
373
+ parentCategory: import_zod6.z.string().min(1),
374
+ cuisineTags: import_zod6.z.array(CuisineTagSchema).default([]),
375
+ categoryTags: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
376
+ semanticTags: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
377
+ granularity: FoodGranularitySchema,
378
+ searchable: import_zod6.z.boolean(),
379
+ recommendable: import_zod6.z.boolean(),
380
+ previewEnabled: import_zod6.z.boolean(),
381
+ imageUrl: import_zod6.z.string().min(1).nullable().optional(),
382
+ image: FoodCodeManifestImageSchema.nullable().optional(),
383
+ popularity: import_zod6.z.number().nonnegative().optional(),
384
+ source: import_zod6.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
385
+ });
386
+ var FoodCodeManifestSchema = import_zod6.z.object({
387
+ version: import_zod6.z.string().min(1),
388
+ updatedAt: ISODateTimeStringSchema,
389
+ taxonomyVersion: import_zod6.z.string().min(1),
390
+ etag: import_zod6.z.string().min(1).optional(),
391
+ items: import_zod6.z.array(FoodCodeManifestItemSchema),
392
+ categoryIndex: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.array(FoodCodeSchema)),
393
+ aliasIndex: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.array(FoodCodeSchema)).optional()
394
+ });
395
+ var FoodImageIndexItemSchema = import_zod6.z.object({
396
+ code: FoodCodeSchema,
397
+ label: FoodLabelSchema,
398
+ imageUrl: import_zod6.z.string().min(1).nullable(),
399
+ image: FoodCodeManifestImageSchema.nullable(),
400
+ source: import_zod6.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
401
+ });
402
+ var FoodImageIndexManifestSchema = import_zod6.z.object({
403
+ version: import_zod6.z.string().min(1),
404
+ updatedAt: ISODateTimeStringSchema,
405
+ taxonomyVersion: import_zod6.z.string().min(1),
406
+ items: import_zod6.z.array(FoodImageIndexItemSchema)
407
+ });
408
+ var ResolvedFoodCodeSchema = import_zod6.z.object({
409
+ code: FoodCodeSchema,
410
+ label: FoodLabelSchema,
411
+ matchedBy: FoodResolvedMatchSourceSchema,
412
+ score: import_zod6.z.number(),
413
+ granularity: FoodGranularitySchema,
414
+ imageUrl: import_zod6.z.string().min(1).nullable().optional()
415
+ });
416
+ var BooleanQuerySchema = import_zod6.z.preprocess((value) => {
417
+ if (value === "true") return true;
418
+ if (value === "false") return false;
419
+ return value;
420
+ }, import_zod6.z.boolean());
421
+ var FoodResolveQuerySchema = import_zod6.z.object({
422
+ q: import_zod6.z.string().default(""),
423
+ limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().default(30),
424
+ recommendableOnly: BooleanQuerySchema.optional().default(true)
425
+ });
426
+ var FoodSearchQuerySchema = import_zod6.z.object({
427
+ q: import_zod6.z.string().default(""),
428
+ limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().default(20)
429
+ });
430
+ var FoodResolveResponseSchema = import_zod6.z.object({
431
+ query: import_zod6.z.string(),
432
+ items: import_zod6.z.array(ResolvedFoodCodeSchema)
433
+ });
434
+ var FoodAiClassMappingStatusSchema = import_zod6.z.enum([
435
+ "exact",
436
+ "broad",
437
+ "narrow",
438
+ "merged",
439
+ "ignored",
440
+ "review_required"
441
+ ]);
442
+ var AiClassFoodCodeMappingSchema = import_zod6.z.object({
443
+ classId: import_zod6.z.number().int().nonnegative(),
444
+ aiLabel: import_zod6.z.string().min(1),
445
+ aiAliases: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
446
+ representativeCode: FoodCodeSchema.nullable(),
447
+ candidateCodes: import_zod6.z.array(FoodCodeSchema).default([]),
448
+ mappingStatus: FoodAiClassMappingStatusSchema,
449
+ granularity: FoodGranularitySchema,
450
+ searchable: import_zod6.z.boolean(),
451
+ recommendable: import_zod6.z.boolean(),
452
+ reason: import_zod6.z.string().min(1).optional()
453
+ });
454
+ var AiClassToFoodCodeMapManifestSchema = import_zod6.z.object({
455
+ version: import_zod6.z.string().min(1),
456
+ updatedAt: ISODateTimeStringSchema,
457
+ modelTaxonomyVersion: import_zod6.z.string().min(1),
458
+ serviceTaxonomyVersion: import_zod6.z.string().min(1),
459
+ classes: import_zod6.z.array(AiClassFoodCodeMappingSchema)
460
+ });
461
+
462
+ // src/domain/meal-plan/meal-plan-decision.schema.ts
463
+ var MealPlanLatitudeSchema = import_zod7.z.number().brand();
464
+ var MealPlanLongitudeSchema = import_zod7.z.number().brand();
465
+ var MealPlanLocationCandidateIdSchema = import_zod7.z.string().min(1).brand();
466
+ var MealPlanMenuCandidateIdSchema = import_zod7.z.string().min(1).brand();
467
+ var MealPlanDecisionStageIdSchema = import_zod7.z.string().uuid().brand();
468
+ var MealPlanVoteIdSchema = import_zod7.z.string().uuid().brand();
469
+ var MealPlanLocationCandidateSourceSchema = import_zod7.z.enum([
368
470
  "manual",
471
+ "map-marker",
369
472
  "midpoint",
473
+ "user-location",
370
474
  "search",
371
475
  "recent-place",
372
476
  "fallback"
373
477
  ]);
374
- var MealPlanLocationCandidateSchema = import_zod6.z.object({
478
+ var MealPlanLocationCandidateSchema = import_zod7.z.object({
375
479
  locationId: MealPlanLocationCandidateIdSchema,
376
- placeName: import_zod6.z.string().min(1),
480
+ placeName: import_zod7.z.string().min(1),
377
481
  lat: MealPlanLatitudeSchema,
378
482
  lng: MealPlanLongitudeSchema,
379
- address: import_zod6.z.string().default(""),
483
+ address: import_zod7.z.string().default(""),
380
484
  source: MealPlanLocationCandidateSourceSchema.default("manual"),
381
485
  createdBy: MemberIdSchema.optional(),
382
486
  createdAt: ISODateTimeStringSchema.optional()
383
487
  });
384
- var MealPlanMenuCandidateSourceSchema = import_zod6.z.enum([
488
+ var MealPlanMenuCandidateSourceSchema = import_zod7.z.enum([
385
489
  "external-recommendation",
386
490
  "prefer-menu",
387
491
  "recent-menu",
388
492
  "fallback",
389
493
  "manual-search"
390
494
  ]);
391
- var MealPlanMenuCandidateSchema = import_zod6.z.object({
495
+ var MealPlanMenuCandidateSchema = import_zod7.z.object({
392
496
  menuCandidateId: MealPlanMenuCandidateIdSchema,
393
497
  menu: FoodSchema,
394
498
  source: MealPlanMenuCandidateSourceSchema,
395
- score: import_zod6.z.number().default(0),
499
+ score: import_zod7.z.number().default(0),
500
+ imageUrl: import_zod7.z.string().min(1).nullable().default(null),
501
+ image: FoodCodeManifestImageSchema.nullable().default(null),
396
502
  createdAt: ISODateTimeStringSchema
397
503
  });
398
504
  var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
399
505
  candidateId: RestaurantIdSchema.optional(),
400
- source: import_zod6.z.enum([
401
- "search",
402
- "fallback",
403
- "manual"
404
- ]).optional(),
506
+ source: import_zod7.z.enum(["search", "fallback", "manual"]).optional(),
405
507
  createdAt: ISODateTimeStringSchema.optional()
406
508
  });
407
- var MealPlanDecisionStageTypeSchema = import_zod6.z.enum([
509
+ var MealPlanDecisionStageTypeSchema = import_zod7.z.enum([
408
510
  "DATE",
409
511
  "TIME",
410
512
  "AREA",
@@ -412,108 +514,90 @@ var MealPlanDecisionStageTypeSchema = import_zod6.z.enum([
412
514
  "RESTAURANT",
413
515
  "FINAL_CONFIRMATION"
414
516
  ]);
415
- var MealPlanDecisionStageStatusSchema = import_zod6.z.enum([
517
+ var MealPlanDecisionStageStatusSchema = import_zod7.z.enum([
416
518
  "OPEN",
417
519
  "COMPLETED",
418
520
  "REOPENED"
419
521
  ]);
420
- var MealPlanRestaurantSearchStatusSchema = import_zod6.z.enum([
522
+ var MealPlanRestaurantSearchStatusSchema = import_zod7.z.enum([
421
523
  "IDLE",
422
524
  "PENDING",
423
525
  "READY",
424
526
  "FAILED",
425
527
  "STALE"
426
528
  ]);
427
- var MealPlanRestaurantSearchStateSchema = import_zod6.z.object({
428
- searchKey: import_zod6.z.string().min(1).nullable(),
529
+ var MealPlanRestaurantSearchStateSchema = import_zod7.z.object({
530
+ searchKey: import_zod7.z.string().min(1).nullable(),
429
531
  status: MealPlanRestaurantSearchStatusSchema,
430
532
  startedAt: ISODateTimeStringSchema.nullable(),
431
533
  completedAt: ISODateTimeStringSchema.nullable(),
432
- version: import_zod6.z.number().int().min(0),
433
- candidateCount: import_zod6.z.number().int().min(0),
434
- errorMessage: import_zod6.z.string().nullable().default(null)
534
+ version: import_zod7.z.number().int().min(0),
535
+ candidateCount: import_zod7.z.number().int().min(0),
536
+ errorMessage: import_zod7.z.string().nullable().default(null)
435
537
  });
436
- var MealPlanDecisionStageMetadataSchema = import_zod6.z.object({
538
+ var MealPlanDecisionStageMetadataSchema = import_zod7.z.object({
437
539
  restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
438
- }).catchall(import_zod6.z.unknown());
439
- var MealPlanVoteTypeSchema = import_zod6.z.enum([
540
+ }).catchall(import_zod7.z.unknown());
541
+ var MealPlanVoteTypeSchema = import_zod7.z.enum([
440
542
  "PICK",
441
543
  "EXCLUDE",
442
544
  "PREFER",
443
545
  "READY"
444
546
  ]);
445
- var MealPlanDecisionCandidateSchema = import_zod6.z.discriminatedUnion("stageType", [
446
- import_zod6.z.object({
447
- stageType: import_zod6.z.literal("DATE"),
448
- value: ISODateStringSchema
449
- }),
450
- import_zod6.z.object({
451
- stageType: import_zod6.z.literal("TIME"),
452
- value: TimeHHmmStringSchema
453
- }),
454
- import_zod6.z.object({
455
- stageType: import_zod6.z.literal("AREA"),
456
- value: MealPlanLocationCandidateSchema
457
- }),
458
- import_zod6.z.object({
459
- stageType: import_zod6.z.literal("MENU"),
460
- value: MealPlanMenuCandidateSchema
461
- }),
462
- import_zod6.z.object({
463
- stageType: import_zod6.z.literal("RESTAURANT"),
464
- value: MealPlanRestaurantCandidateSchema
465
- }),
466
- import_zod6.z.object({
467
- stageType: import_zod6.z.literal("FINAL_CONFIRMATION"),
468
- value: import_zod6.z.literal("READY")
469
- })
547
+ var MealPlanDecisionCandidateSchema = import_zod7.z.discriminatedUnion("stageType", [
548
+ import_zod7.z.object({ stageType: import_zod7.z.literal("DATE"), value: ISODateStringSchema }),
549
+ import_zod7.z.object({ stageType: import_zod7.z.literal("TIME"), value: TimeHHmmStringSchema }),
550
+ import_zod7.z.object({ stageType: import_zod7.z.literal("AREA"), value: MealPlanLocationCandidateSchema }),
551
+ import_zod7.z.object({ stageType: import_zod7.z.literal("MENU"), value: MealPlanMenuCandidateSchema }),
552
+ import_zod7.z.object({ stageType: import_zod7.z.literal("RESTAURANT"), value: MealPlanRestaurantCandidateSchema }),
553
+ import_zod7.z.object({ stageType: import_zod7.z.literal("FINAL_CONFIRMATION"), value: import_zod7.z.literal("READY") })
470
554
  ]);
471
- var MealPlanVoteSchema = import_zod6.z.object({
555
+ var MealPlanVoteSchema = import_zod7.z.object({
472
556
  voteId: MealPlanVoteIdSchema,
473
557
  voterId: MemberIdSchema.nullable(),
474
- guestId: import_zod6.z.string().min(1).nullable(),
558
+ guestId: import_zod7.z.string().min(1).nullable(),
475
559
  voteType: MealPlanVoteTypeSchema,
476
560
  candidate: MealPlanDecisionCandidateSchema,
477
561
  createdAt: ISODateTimeStringSchema
478
562
  });
479
- var MealPlanDecisionStageResponseSchema = import_zod6.z.object({
563
+ var MealPlanDecisionStageResponseSchema = import_zod7.z.object({
480
564
  stageId: MealPlanDecisionStageIdSchema,
481
565
  stageType: MealPlanDecisionStageTypeSchema,
482
566
  status: MealPlanDecisionStageStatusSchema,
483
- candidates: import_zod6.z.array(MealPlanDecisionCandidateSchema),
484
- votes: import_zod6.z.array(MealPlanVoteSchema),
567
+ candidates: import_zod7.z.array(MealPlanDecisionCandidateSchema),
568
+ votes: import_zod7.z.array(MealPlanVoteSchema),
485
569
  selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
486
570
  metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
487
571
  openedAt: ISODateTimeStringSchema,
488
572
  completedAt: ISODateTimeStringSchema.nullable(),
489
573
  reopenedAt: ISODateTimeStringSchema.nullable()
490
574
  });
491
- var CreateMealPlanVoteRequestSchema = import_zod6.z.object({
575
+ var CreateMealPlanVoteRequestSchema = import_zod7.z.object({
492
576
  voteType: MealPlanVoteTypeSchema,
493
577
  candidate: MealPlanDecisionCandidateSchema
494
578
  });
495
- var CompleteMealPlanDecisionStageRequestSchema = import_zod6.z.object({
579
+ var CompleteMealPlanDecisionStageRequestSchema = import_zod7.z.object({
496
580
  selectedCandidate: MealPlanDecisionCandidateSchema
497
581
  });
498
- var MealPlanChangeRequestStatusSchema = import_zod6.z.enum([
582
+ var MealPlanChangeRequestStatusSchema = import_zod7.z.enum([
499
583
  "PENDING",
500
584
  "ACCEPTED",
501
585
  "REJECTED",
502
586
  "CANCELLED"
503
587
  ]);
504
- var CreateMealPlanChangeRequestSchema = import_zod6.z.object({
588
+ var CreateMealPlanChangeRequestSchema = import_zod7.z.object({
505
589
  stageType: MealPlanDecisionStageTypeSchema,
506
- reason: import_zod6.z.string().min(1).max(500),
590
+ reason: import_zod7.z.string().min(1).max(500),
507
591
  proposedCandidate: MealPlanDecisionCandidateSchema.optional()
508
592
  });
509
- var MealPlanChangeRequestSummarySchema = import_zod6.z.object({
593
+ var MealPlanChangeRequestSummarySchema = import_zod7.z.object({
510
594
  changeRequestId: MealPlanChangeRequestIdSchema,
511
595
  stageType: MealPlanDecisionStageTypeSchema,
512
596
  status: MealPlanChangeRequestStatusSchema,
513
- reason: import_zod6.z.string(),
597
+ reason: import_zod7.z.string(),
514
598
  requestedAt: ISODateTimeStringSchema
515
599
  });
516
- var MealPlanDecisionTaskKeySchema = import_zod6.z.enum([
600
+ var MealPlanDecisionTaskKeySchema = import_zod7.z.enum([
517
601
  "SCHEDULE_DATE",
518
602
  "SCHEDULE_TIME",
519
603
  "LOCATION_CANDIDATE",
@@ -525,14 +609,13 @@ var MealPlanDecisionTaskKeySchema = import_zod6.z.enum([
525
609
  "RESTAURANT_PICK",
526
610
  "FINAL_CONFIRMATION"
527
611
  ]);
528
- var MealPlanDecisionTaskStatusSchema = import_zod6.z.enum([
612
+ var MealPlanDecisionTaskStatusSchema = import_zod7.z.enum([
529
613
  "LOCKED",
530
614
  "OPEN",
531
- "READY",
532
615
  "RESOLVED",
533
616
  "STALE"
534
617
  ]);
535
- var MealPlanDecisionFinalFieldSchema = import_zod6.z.enum([
618
+ var MealPlanDecisionFinalFieldSchema = import_zod7.z.enum([
536
619
  "date",
537
620
  "time",
538
621
  "meetingAt",
@@ -540,82 +623,72 @@ var MealPlanDecisionFinalFieldSchema = import_zod6.z.enum([
540
623
  "menu",
541
624
  "restaurant"
542
625
  ]);
543
- var MealPlanDecisionSnapshotStatusSchema = import_zod6.z.enum([
626
+ var MealPlanDecisionSnapshotStatusSchema = import_zod7.z.enum([
544
627
  "CANDIDATE",
545
628
  "PROVISIONAL",
546
629
  "FINAL",
547
630
  "STALE"
548
631
  ]);
549
- var MealPlanDecisionReasonSchema = import_zod6.z.enum([
632
+ var MealPlanDecisionReasonSchema = import_zod7.z.enum([
550
633
  "COMMON_SCHEDULE",
551
634
  "TOP_VOTED_LOCATION",
552
635
  "TOP_PICKED_MENU",
553
636
  "TOP_PICKED_RESTAURANT",
554
637
  "OWNER_CONFIRMED",
555
- "TASK_ALL_READY",
556
638
  "MANUAL_SELECTION"
557
639
  ]);
558
- var MealPlanDecisionActorTypeSchema = import_zod6.z.enum([
559
- "MEMBER",
560
- "GUEST",
561
- "SYSTEM"
562
- ]);
563
- var MealPlanDecisionSnapshotSchema = import_zod6.z.object({
564
- snapshotId: import_zod6.z.string().uuid(),
565
- mealPlanId: import_zod6.z.string().uuid(),
640
+ var MealPlanDecisionActorTypeSchema = import_zod7.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
641
+ var MealPlanDecisionSnapshotSchema = import_zod7.z.object({
642
+ snapshotId: import_zod7.z.string().uuid(),
643
+ mealPlanId: import_zod7.z.string().uuid(),
566
644
  field: MealPlanDecisionFinalFieldSchema,
567
- value: import_zod6.z.unknown(),
645
+ value: import_zod7.z.unknown(),
568
646
  status: MealPlanDecisionSnapshotStatusSchema,
569
647
  reason: MealPlanDecisionReasonSchema,
570
- score: import_zod6.z.number().nullable().default(null),
571
- sourceEvent: import_zod6.z.string().min(1),
648
+ score: import_zod7.z.number().nullable().default(null),
649
+ sourceEvent: import_zod7.z.string().min(1),
572
650
  sourceActorType: MealPlanDecisionActorTypeSchema,
573
651
  sourceMemberId: MemberIdSchema.nullable(),
574
- sourceGuestId: import_zod6.z.string().min(1).nullable(),
575
- sourceParticipantId: import_zod6.z.string().uuid().nullable(),
576
- sourceVersion: import_zod6.z.number().int().min(0),
577
- dependencyHash: import_zod6.z.string().min(1),
578
- dependencyFields: import_zod6.z.array(MealPlanDecisionFinalFieldSchema),
652
+ sourceGuestId: import_zod7.z.string().min(1).nullable(),
653
+ sourceParticipantId: import_zod7.z.string().uuid().nullable(),
654
+ sourceVersion: import_zod7.z.number().int().min(0),
655
+ dependencyHash: import_zod7.z.string().min(1),
656
+ dependencyFields: import_zod7.z.array(MealPlanDecisionFinalFieldSchema),
579
657
  createdAt: ISODateTimeStringSchema,
580
658
  staleAt: ISODateTimeStringSchema.nullable()
581
659
  });
582
- var MealPlanDecisionTaskProgressSchema = import_zod6.z.object({
660
+ var MealPlanDecisionTaskProgressSchema = import_zod7.z.object({
583
661
  taskKey: MealPlanDecisionTaskKeySchema,
584
662
  status: MealPlanDecisionTaskStatusSchema,
585
- readyCount: import_zod6.z.number().int().min(0),
586
- participantCount: import_zod6.z.number().int().min(0),
587
- blockers: import_zod6.z.array(import_zod6.z.string()).default([]),
663
+ blockers: import_zod7.z.array(import_zod7.z.string()).default([]),
588
664
  updatedAt: ISODateTimeStringSchema
589
665
  });
590
- var MealPlanDecisionProgressSchema = import_zod6.z.object({
591
- mealPlanId: import_zod6.z.string().uuid(),
592
- status: import_zod6.z.string().min(1),
593
- tasks: import_zod6.z.array(MealPlanDecisionTaskProgressSchema),
594
- final: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()),
595
- provisional: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()),
596
- snapshots: import_zod6.z.array(MealPlanDecisionSnapshotSchema),
597
- version: import_zod6.z.number().int().min(0),
666
+ var MealPlanDecisionProgressSchema = import_zod7.z.object({
667
+ mealPlanId: import_zod7.z.string().uuid(),
668
+ status: import_zod7.z.string().min(1),
669
+ tasks: import_zod7.z.array(MealPlanDecisionTaskProgressSchema),
670
+ final: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()),
671
+ provisional: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()),
672
+ snapshots: import_zod7.z.array(MealPlanDecisionSnapshotSchema),
673
+ version: import_zod7.z.number().int().min(0),
598
674
  updatedAt: ISODateTimeStringSchema
599
675
  });
600
- var MealPlanDecisionTaskReadyRequestSchema = import_zod6.z.object({
601
- isReady: import_zod6.z.boolean()
676
+ var ReopenMealPlanDecisionTaskRequestSchema = import_zod7.z.object({
677
+ reason: import_zod7.z.string().max(500).optional()
602
678
  });
603
- var ReopenMealPlanDecisionTaskRequestSchema = import_zod6.z.object({
604
- reason: import_zod6.z.string().max(500).optional()
605
- });
606
- var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod6.z.object({
607
- snapshotId: import_zod6.z.string().uuid()
679
+ var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod7.z.object({
680
+ snapshotId: import_zod7.z.string().uuid()
608
681
  });
609
682
 
610
683
  // src/domain/meal-plan/meal-plan-participant.schema.ts
611
- var import_zod7 = require("zod");
612
- var MealPlanParticipantIdSchema = import_zod7.z.string().uuid().brand();
613
- var MealPlanParticipantRoleSchema = import_zod7.z.enum([
684
+ var import_zod8 = require("zod");
685
+ var MealPlanParticipantIdSchema = import_zod8.z.string().uuid().brand();
686
+ var MealPlanParticipantRoleSchema = import_zod8.z.enum([
614
687
  "OWNER",
615
688
  "FRIEND",
616
689
  "GUEST"
617
690
  ]);
618
- var MealPlanParticipantStatusSchema = import_zod7.z.enum([
691
+ var MealPlanParticipantStatusSchema = import_zod8.z.enum([
619
692
  "INVITED",
620
693
  "REQUESTED",
621
694
  "JOINED",
@@ -624,17 +697,17 @@ var MealPlanParticipantStatusSchema = import_zod7.z.enum([
624
697
  "LEFT",
625
698
  "REMOVED"
626
699
  ]);
627
- var MealPlanJoinSourceSchema = import_zod7.z.enum([
700
+ var MealPlanJoinSourceSchema = import_zod8.z.enum([
628
701
  "OWNER",
629
702
  "FRIEND_INVITE",
630
703
  "LINK_GUEST",
631
704
  "NEARBY_FRIENDS"
632
705
  ]);
633
- var MealPlanGuestParticipantSchema = import_zod7.z.object({
634
- guestId: import_zod7.z.string().min(1),
635
- nickname: import_zod7.z.string().min(1).max(50)
706
+ var MealPlanGuestParticipantSchema = import_zod8.z.object({
707
+ guestId: import_zod8.z.string().min(1),
708
+ nickname: import_zod8.z.string().min(1).max(50)
636
709
  });
637
- var MealPlanParticipantResponseSchema = import_zod7.z.object({
710
+ var MealPlanParticipantResponseSchema = import_zod8.z.object({
638
711
  participantId: MealPlanParticipantIdSchema,
639
712
  mealPlanId: MealPlanIdSchema,
640
713
  member: MemberCoreSchema.nullable(),
@@ -645,66 +718,66 @@ var MealPlanParticipantResponseSchema = import_zod7.z.object({
645
718
  joinedAt: ISODateTimeStringSchema.nullable(),
646
719
  readyAt: ISODateTimeStringSchema.nullable()
647
720
  });
648
- var CreateMealPlanParticipantRequestSchema = import_zod7.z.object({
721
+ var CreateMealPlanParticipantRequestSchema = import_zod8.z.object({
649
722
  memberId: MemberIdSchema.optional(),
650
- guestNickname: import_zod7.z.string().min(1).max(50).optional(),
723
+ guestNickname: import_zod8.z.string().min(1).max(50).optional(),
651
724
  source: MealPlanJoinSourceSchema
652
725
  });
653
726
 
654
727
  // src/domain/meal-plan/meal-plan-invite.schema.ts
655
- var import_zod8 = require("zod");
656
- var MealPlanInviteStatusSchema = import_zod8.z.enum([
728
+ var import_zod9 = require("zod");
729
+ var MealPlanInviteStatusSchema = import_zod9.z.enum([
657
730
  "PENDING",
658
731
  "ACCEPTED",
659
732
  "DECLINED",
660
733
  "CANCELLED",
661
734
  "EXPIRED"
662
735
  ]);
663
- var CreateMealPlanInviteRequestSchema = import_zod8.z.object({
736
+ var CreateMealPlanInviteRequestSchema = import_zod9.z.object({
664
737
  inviteeId: MemberIdSchema,
665
- message: import_zod8.z.string().max(500).default("")
738
+ message: import_zod9.z.string().max(500).default("")
666
739
  });
667
- var MealPlanInviteSummarySchema = import_zod8.z.object({
740
+ var MealPlanInviteSummarySchema = import_zod9.z.object({
668
741
  inviteId: MealPlanInviteIdSchema,
669
742
  mealPlanId: MealPlanIdSchema,
670
743
  inviter: MemberCoreSchema,
671
744
  invitee: MemberCoreSchema,
672
745
  status: MealPlanInviteStatusSchema,
673
- message: import_zod8.z.string().max(500),
746
+ message: import_zod9.z.string().max(500),
674
747
  createdAt: ISODateTimeStringSchema,
675
748
  respondedAt: ISODateTimeStringSchema.nullable()
676
749
  });
677
- var MealPlanInviteListResponseSchema = import_zod8.z.array(MealPlanInviteSummarySchema);
678
- var SendMealPlanInviteResponseSchema = import_zod8.z.object({
750
+ var MealPlanInviteListResponseSchema = import_zod9.z.array(MealPlanInviteSummarySchema);
751
+ var SendMealPlanInviteResponseSchema = import_zod9.z.object({
679
752
  inviteId: MealPlanInviteIdSchema
680
753
  });
681
754
 
682
755
  // src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
683
- var import_zod9 = require("zod");
684
- var MealPlanNearbyFriendExposureIdSchema = import_zod9.z.string().uuid().brand();
685
- var MealPlanNearbyFriendExposureStatusSchema = import_zod9.z.enum([
756
+ var import_zod10 = require("zod");
757
+ var MealPlanNearbyFriendExposureIdSchema = import_zod10.z.string().uuid().brand();
758
+ var MealPlanNearbyFriendExposureStatusSchema = import_zod10.z.enum([
686
759
  "OPEN",
687
760
  "CLOSED",
688
761
  "EXPIRED"
689
762
  ]);
690
- var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod9.z.enum([
763
+ var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod10.z.enum([
691
764
  "PENDING",
692
765
  "SENT",
693
766
  "PARTIAL",
694
767
  "FAILED",
695
768
  "SKIPPED"
696
769
  ]);
697
- var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod9.z.object({
698
- radiusMeters: import_zod9.z.number().int().min(100).max(5e3).default(1e3),
770
+ var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod10.z.object({
771
+ radiusMeters: import_zod10.z.number().int().min(100).max(5e3).default(1e3),
699
772
  expiresAt: ISODateTimeStringSchema.optional()
700
773
  });
701
- var NearbyFriendExposureEligibilitySchema = import_zod9.z.object({
702
- canExpose: import_zod9.z.boolean(),
774
+ var NearbyFriendExposureEligibilitySchema = import_zod10.z.object({
775
+ canExpose: import_zod10.z.boolean(),
703
776
  locationConsentStatus: LocationConsentStatusSchema,
704
- nearbyMealPlanExposureAllowed: import_zod9.z.boolean(),
705
- mealSuggestionAllowed: import_zod9.z.boolean(),
706
- hasLastKnownLocation: import_zod9.z.boolean(),
707
- missingRequirements: import_zod9.z.array(import_zod9.z.enum([
777
+ nearbyMealPlanExposureAllowed: import_zod10.z.boolean(),
778
+ mealSuggestionAllowed: import_zod10.z.boolean(),
779
+ hasLastKnownLocation: import_zod10.z.boolean(),
780
+ missingRequirements: import_zod10.z.array(import_zod10.z.enum([
708
781
  "LOCATION_PERMISSION",
709
782
  "SERVICE_LOCATION_CONSENT",
710
783
  "NEARBY_EXPOSURE_TOGGLE",
@@ -712,7 +785,7 @@ var NearbyFriendExposureEligibilitySchema = import_zod9.z.object({
712
785
  "LAST_KNOWN_LOCATION"
713
786
  ]))
714
787
  });
715
- var MealPlanNearbyFriendRejectionReasonSchema = import_zod9.z.enum([
788
+ var MealPlanNearbyFriendRejectionReasonSchema = import_zod10.z.enum([
716
789
  "NOT_FRIEND",
717
790
  "BLOCKED",
718
791
  "LOCATION_CONSENT_REQUIRED",
@@ -721,79 +794,79 @@ var MealPlanNearbyFriendRejectionReasonSchema = import_zod9.z.enum([
721
794
  "MEAL_SUGGESTION_DISABLED",
722
795
  "NOT_HUNGRY"
723
796
  ]);
724
- var MealPlanNearbyFriendRejectionSummarySchema = import_zod9.z.object({
797
+ var MealPlanNearbyFriendRejectionSummarySchema = import_zod10.z.object({
725
798
  reason: MealPlanNearbyFriendRejectionReasonSchema,
726
- count: import_zod9.z.number().int().min(0)
799
+ count: import_zod10.z.number().int().min(0)
727
800
  });
728
- var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod9.z.object({
801
+ var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod10.z.object({
729
802
  mealPlanId: MealPlanIdSchema,
730
803
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
731
- exposedFriendCount: import_zod9.z.number().int().min(0),
732
- rejectedFriendCount: import_zod9.z.number().int().min(0),
804
+ exposedFriendCount: import_zod10.z.number().int().min(0),
805
+ rejectedFriendCount: import_zod10.z.number().int().min(0),
733
806
  notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
734
- rejectionSummary: import_zod9.z.array(MealPlanNearbyFriendRejectionSummarySchema)
807
+ rejectionSummary: import_zod10.z.array(MealPlanNearbyFriendRejectionSummarySchema)
735
808
  });
736
- var MealPlanNearbyFriendExposureSummarySchema = import_zod9.z.object({
809
+ var MealPlanNearbyFriendExposureSummarySchema = import_zod10.z.object({
737
810
  exposureId: MealPlanNearbyFriendExposureIdSchema,
738
811
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
739
812
  mealPlanId: MealPlanIdSchema,
740
813
  status: MealPlanNearbyFriendExposureStatusSchema,
741
- radiusMeters: import_zod9.z.number().int().min(100),
742
- exposedFriendCount: import_zod9.z.number().int().min(0),
814
+ radiusMeters: import_zod10.z.number().int().min(100),
815
+ exposedFriendCount: import_zod10.z.number().int().min(0),
743
816
  openedAt: ISODateTimeStringSchema,
744
817
  expiresAt: ISODateTimeStringSchema.nullable(),
745
818
  closedAt: ISODateTimeStringSchema.nullable()
746
819
  });
747
- var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod9.z.object({
820
+ var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod10.z.object({
748
821
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
749
822
  mealPlanId: MealPlanIdSchema,
750
823
  status: MealPlanNearbyFriendExposureStatusSchema,
751
- radiusMeters: import_zod9.z.number().int().min(100),
752
- exposedFriendCount: import_zod9.z.number().int().min(0),
753
- rejectedFriendCount: import_zod9.z.number().int().min(0),
754
- rejectionSummary: import_zod9.z.array(MealPlanNearbyFriendRejectionSummarySchema),
824
+ radiusMeters: import_zod10.z.number().int().min(100),
825
+ exposedFriendCount: import_zod10.z.number().int().min(0),
826
+ rejectedFriendCount: import_zod10.z.number().int().min(0),
827
+ rejectionSummary: import_zod10.z.array(MealPlanNearbyFriendRejectionSummarySchema),
755
828
  notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
756
829
  notificationSentAt: ISODateTimeStringSchema.nullable(),
757
830
  openedAt: ISODateTimeStringSchema,
758
831
  expiresAt: ISODateTimeStringSchema.nullable(),
759
832
  closedAt: ISODateTimeStringSchema.nullable()
760
833
  });
761
- var MealPlanJoinRequestStatusSchema = import_zod9.z.enum([
834
+ var MealPlanJoinRequestStatusSchema = import_zod10.z.enum([
762
835
  "PENDING",
763
836
  "ACCEPTED",
764
837
  "REJECTED",
765
838
  "CANCELLED"
766
839
  ]);
767
- var CreateMealPlanJoinRequestSchema = import_zod9.z.object({
768
- message: import_zod9.z.string().max(500).default("")
840
+ var CreateMealPlanJoinRequestSchema = import_zod10.z.object({
841
+ message: import_zod10.z.string().max(500).default("")
769
842
  });
770
- var MealPlanJoinRequestSummarySchema = import_zod9.z.object({
843
+ var MealPlanJoinRequestSummarySchema = import_zod10.z.object({
771
844
  joinRequestId: MealPlanJoinRequestIdSchema,
772
845
  mealPlanId: MealPlanIdSchema,
773
846
  requester: MemberCoreSchema,
774
847
  status: MealPlanJoinRequestStatusSchema,
775
- message: import_zod9.z.string().max(500),
848
+ message: import_zod10.z.string().max(500),
776
849
  requestedAt: ISODateTimeStringSchema,
777
850
  respondedAt: ISODateTimeStringSchema.nullable()
778
851
  });
779
- var NearbyFriendMealPlanSummarySchema = import_zod9.z.object({
852
+ var NearbyFriendMealPlanSummarySchema = import_zod10.z.object({
780
853
  mealPlanId: MealPlanIdSchema,
781
854
  owner: MemberCoreSchema,
782
- title: import_zod9.z.string(),
783
- participantCount: import_zod9.z.number().int().min(1),
784
- distanceMeters: import_zod9.z.number().int().min(0),
855
+ title: import_zod10.z.string(),
856
+ participantCount: import_zod10.z.number().int().min(1),
857
+ distanceMeters: import_zod10.z.number().int().min(0),
785
858
  exposedAt: ISODateTimeStringSchema,
786
859
  expiresAt: ISODateTimeStringSchema.nullable(),
787
860
  joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
788
861
  });
789
862
 
790
863
  // src/domain/meal-plan/meal-plan-chat.schema.ts
791
- var import_zod10 = require("zod");
792
- var MealPlanChatMessageKindSchema = import_zod10.z.enum([
864
+ var import_zod11 = require("zod");
865
+ var MealPlanChatMessageKindSchema = import_zod11.z.enum([
793
866
  "USER",
794
867
  "SYSTEM"
795
868
  ]);
796
- var MealPlanSystemMessageKindSchema = import_zod10.z.enum([
869
+ var MealPlanSystemMessageKindSchema = import_zod11.z.enum([
797
870
  "PARTICIPANT_JOINED",
798
871
  "PARTICIPANT_READY",
799
872
  "PARTICIPANT_REMOVED",
@@ -802,39 +875,41 @@ var MealPlanSystemMessageKindSchema = import_zod10.z.enum([
802
875
  "CONFIRMED",
803
876
  "RECORD_NEEDED"
804
877
  ]);
805
- var MealPlanChatSystemPayloadSchema = import_zod10.z.object({
878
+ var MealPlanChatSystemPayloadSchema = import_zod11.z.object({
806
879
  kind: MealPlanSystemMessageKindSchema
807
- }).catchall(import_zod10.z.unknown());
808
- var MealPlanChatMessageListResponseSchema = import_zod10.z.array(import_zod10.z.lazy(() => MealPlanChatMessageResponseSchema));
809
- var MealPlanChatRoomSummarySchema = import_zod10.z.object({
880
+ }).catchall(import_zod11.z.unknown());
881
+ var MealPlanChatMessageListResponseSchema = import_zod11.z.array(
882
+ import_zod11.z.lazy(() => MealPlanChatMessageResponseSchema)
883
+ );
884
+ var MealPlanChatRoomSummarySchema = import_zod11.z.object({
810
885
  chatRoomId: MealPlanChatRoomIdSchema,
811
886
  mealPlanId: MealPlanIdSchema,
812
- messageCount: import_zod10.z.number().int().min(0),
887
+ messageCount: import_zod11.z.number().int().min(0),
813
888
  lastMessageAt: ISODateTimeStringSchema.nullable(),
814
889
  createdAt: ISODateTimeStringSchema
815
890
  });
816
- var SendMealPlanChatMessageRequestSchema = import_zod10.z.object({
817
- message: import_zod10.z.string().min(1).max(500)
891
+ var SendMealPlanChatMessageRequestSchema = import_zod11.z.object({
892
+ message: import_zod11.z.string().min(1).max(500)
818
893
  });
819
- var MealPlanChatMessageResponseSchema = import_zod10.z.object({
894
+ var MealPlanChatMessageResponseSchema = import_zod11.z.object({
820
895
  messageId: MealPlanChatMessageIdSchema,
821
896
  chatRoomId: MealPlanChatRoomIdSchema,
822
897
  sender: MemberCoreSchema.nullable(),
823
- guestId: import_zod10.z.string().min(1).nullable(),
824
- guestNickname: import_zod10.z.string().min(1).nullable(),
898
+ guestId: import_zod11.z.string().min(1).nullable(),
899
+ guestNickname: import_zod11.z.string().min(1).nullable(),
825
900
  kind: MealPlanChatMessageKindSchema,
826
- message: import_zod10.z.string().min(1).max(1e3),
901
+ message: import_zod11.z.string().min(1).max(1e3),
827
902
  systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
828
903
  createdAt: ISODateTimeStringSchema
829
904
  });
830
- var MealPlanSystemMessageSchema = import_zod10.z.object({
905
+ var MealPlanSystemMessageSchema = import_zod11.z.object({
831
906
  kind: MealPlanSystemMessageKindSchema,
832
- message: import_zod10.z.string().min(1),
907
+ message: import_zod11.z.string().min(1),
833
908
  createdAt: ISODateTimeStringSchema
834
909
  });
835
910
 
836
911
  // src/domain/meal-plan/meal-plan.schema.ts
837
- var MealPlanStatusSchema = import_zod11.z.enum([
912
+ var MealPlanStatusSchema = import_zod12.z.enum([
838
913
  "DRAFT",
839
914
  "RECOMMENDING",
840
915
  "GATHERING",
@@ -846,78 +921,74 @@ var MealPlanStatusSchema = import_zod11.z.enum([
846
921
  "RECORDED",
847
922
  "CANCELLED"
848
923
  ]);
849
- var MealPlanChannelSchema = import_zod11.z.enum([
924
+ var MealPlanChannelSchema = import_zod12.z.enum([
850
925
  "OWNER_ONLY",
851
926
  "FRIEND_INVITE",
852
927
  "LINK_GUEST",
853
928
  "NEARBY_FRIENDS"
854
929
  ]);
855
- var MealPlanRecommendationContextSchema = import_zod11.z.object({
930
+ var MealPlanRecommendationContextSchema = import_zod12.z.object({
856
931
  mealDate: ISODateStringSchema.optional(),
857
932
  mealTime: TimeHHmmStringSchema.optional(),
858
933
  area: MealPlanLocationCandidateSchema.optional(),
859
- preferredMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
860
- excludedMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
861
- candidateMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
862
- budgetMin: import_zod11.z.number().int().min(0).optional(),
863
- budgetMax: import_zod11.z.number().int().min(0).optional(),
864
- memo: import_zod11.z.string().max(500).optional()
865
- });
866
- var CreateMealPlanRequestSchema = import_zod11.z.object({
867
- title: import_zod11.z.string().min(1).max(100).optional(),
868
- channels: import_zod11.z.array(MealPlanChannelSchema).default([
869
- "OWNER_ONLY"
870
- ]),
934
+ preferredMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
935
+ excludedMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
936
+ candidateMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
937
+ budgetMin: import_zod12.z.number().int().min(0).optional(),
938
+ budgetMax: import_zod12.z.number().int().min(0).optional(),
939
+ memo: import_zod12.z.string().max(500).optional()
940
+ });
941
+ var CreateMealPlanRequestSchema = import_zod12.z.object({
942
+ title: import_zod12.z.string().min(1).max(100).optional(),
943
+ channels: import_zod12.z.array(MealPlanChannelSchema).default(["OWNER_ONLY"]),
871
944
  recommendationContext: MealPlanRecommendationContextSchema.optional()
872
945
  });
873
- var CreateMealPlanResponseSchema = import_zod11.z.object({
946
+ var CreateMealPlanResponseSchema = import_zod12.z.object({
874
947
  mealPlanId: MealPlanIdSchema
875
948
  });
876
949
  var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
877
- var MealPlanViewerRoleSchema = import_zod11.z.enum([
950
+ var MealPlanViewerRoleSchema = import_zod12.z.enum([
878
951
  "OWNER",
879
952
  "FRIEND",
880
953
  "GUEST",
881
954
  "NONE"
882
955
  ]);
883
- var MealPlanViewerPermissionsSchema = import_zod11.z.object({
884
- canView: import_zod11.z.boolean(),
885
- canInviteFriends: import_zod11.z.boolean(),
886
- canManageParticipants: import_zod11.z.boolean(),
887
- canCreateShareLink: import_zod11.z.boolean(),
888
- canExposeNearbyFriends: import_zod11.z.boolean(),
889
- canVote: import_zod11.z.boolean(),
890
- canChat: import_zod11.z.boolean(),
891
- canReadyMealPlan: import_zod11.z.boolean(),
892
- canReadyDecisionTask: import_zod11.z.boolean(),
893
- canRequestChange: import_zod11.z.boolean(),
894
- canReopenDecisionTask: import_zod11.z.boolean(),
895
- canConfirmDecisionSnapshot: import_zod11.z.boolean(),
896
- canConfirmMealPlan: import_zod11.z.boolean(),
897
- canCompleteMealPlan: import_zod11.z.boolean(),
898
- canRecordMealPlan: import_zod11.z.boolean(),
899
- canCancelMealPlan: import_zod11.z.boolean()
900
- });
901
- var MealPlanResponseSchema = import_zod11.z.object({
956
+ var MealPlanViewerPermissionsSchema = import_zod12.z.object({
957
+ canView: import_zod12.z.boolean(),
958
+ canInviteFriends: import_zod12.z.boolean(),
959
+ canManageParticipants: import_zod12.z.boolean(),
960
+ canCreateShareLink: import_zod12.z.boolean(),
961
+ canExposeNearbyFriends: import_zod12.z.boolean(),
962
+ canVote: import_zod12.z.boolean(),
963
+ canChat: import_zod12.z.boolean(),
964
+ canReadyMealPlan: import_zod12.z.boolean(),
965
+ canRequestChange: import_zod12.z.boolean(),
966
+ canReopenDecisionTask: import_zod12.z.boolean(),
967
+ canConfirmDecisionSnapshot: import_zod12.z.boolean(),
968
+ canConfirmMealPlan: import_zod12.z.boolean(),
969
+ canCompleteMealPlan: import_zod12.z.boolean(),
970
+ canRecordMealPlan: import_zod12.z.boolean(),
971
+ canCancelMealPlan: import_zod12.z.boolean()
972
+ });
973
+ var MealPlanResponseSchema = import_zod12.z.object({
902
974
  mealPlanId: MealPlanIdSchema,
903
975
  owner: MemberCoreSchema,
904
- title: import_zod11.z.string().nullable(),
976
+ title: import_zod12.z.string().nullable(),
905
977
  status: MealPlanStatusSchema,
906
- channels: import_zod11.z.array(MealPlanChannelSchema),
907
- participants: import_zod11.z.array(MealPlanParticipantResponseSchema),
908
- pendingInvites: import_zod11.z.array(MealPlanInviteSummarySchema),
909
- pendingJoinRequests: import_zod11.z.array(MealPlanJoinRequestSummarySchema),
910
- decisionStages: import_zod11.z.array(MealPlanDecisionStageResponseSchema),
978
+ channels: import_zod12.z.array(MealPlanChannelSchema),
979
+ participants: import_zod12.z.array(MealPlanParticipantResponseSchema),
980
+ pendingInvites: import_zod12.z.array(MealPlanInviteSummarySchema),
981
+ pendingJoinRequests: import_zod12.z.array(MealPlanJoinRequestSummarySchema),
982
+ decisionStages: import_zod12.z.array(MealPlanDecisionStageResponseSchema),
911
983
  decisionProgress: MealPlanDecisionProgressSchema.nullable(),
912
984
  viewerRole: MealPlanViewerRoleSchema,
913
985
  viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
914
986
  viewerPermissions: MealPlanViewerPermissionsSchema,
915
- viewerTaskReadyMap: import_zod11.z.record(MealPlanDecisionTaskKeySchema, import_zod11.z.boolean()),
916
987
  selectedDate: ISODateStringSchema.nullable(),
917
988
  selectedTime: TimeHHmmStringSchema.nullable(),
918
989
  selectedArea: MealPlanLocationCandidateSchema.nullable(),
919
990
  selectedRestaurant: RestaurantSchema.nullable(),
920
- selectedMenuCategory: import_zod11.z.string().nullable(),
991
+ selectedMenuCategory: import_zod12.z.string().nullable(),
921
992
  chatRoom: MealPlanChatRoomSummarySchema.nullable(),
922
993
  confirmedAt: ISODateTimeStringSchema.nullable(),
923
994
  lockedAt: ISODateTimeStringSchema.nullable(),
@@ -926,36 +997,31 @@ var MealPlanResponseSchema = import_zod11.z.object({
926
997
  createdAt: ISODateTimeStringSchema,
927
998
  updatedAt: ISODateTimeStringSchema
928
999
  });
929
- var MyMealPlanGroupSchema = import_zod11.z.enum([
930
- "DECIDING",
931
- "UPCOMING",
932
- "RECORD_NEEDED",
933
- "PAST"
934
- ]);
935
- var MyMealPlanListItemSchema = import_zod11.z.object({
1000
+ var MyMealPlanGroupSchema = import_zod12.z.enum(["DECIDING", "UPCOMING", "RECORD_NEEDED", "PAST"]);
1001
+ var MyMealPlanListItemSchema = import_zod12.z.object({
936
1002
  mealPlanId: MealPlanIdSchema,
937
1003
  group: MyMealPlanGroupSchema,
938
- title: import_zod11.z.string(),
1004
+ title: import_zod12.z.string(),
939
1005
  status: MealPlanStatusSchema,
940
- channels: import_zod11.z.array(MealPlanChannelSchema),
941
- participantCount: import_zod11.z.number().int().min(1),
1006
+ channels: import_zod12.z.array(MealPlanChannelSchema),
1007
+ participantCount: import_zod12.z.number().int().min(1),
942
1008
  selectedDate: ISODateStringSchema.nullable(),
943
1009
  selectedTime: TimeHHmmStringSchema.nullable(),
944
- selectedAreaName: import_zod11.z.string().nullable(),
945
- selectedRestaurantName: import_zod11.z.string().nullable(),
946
- primaryAction: import_zod11.z.object({
947
- label: import_zod11.z.string(),
948
- href: import_zod11.z.string()
1010
+ selectedAreaName: import_zod12.z.string().nullable(),
1011
+ selectedRestaurantName: import_zod12.z.string().nullable(),
1012
+ primaryAction: import_zod12.z.object({
1013
+ label: import_zod12.z.string(),
1014
+ href: import_zod12.z.string()
949
1015
  }),
950
1016
  updatedAt: ISODateTimeStringSchema
951
1017
  });
952
- var MyMealPlanListResponseSchema = import_zod11.z.object({
953
- deciding: import_zod11.z.array(MyMealPlanListItemSchema),
954
- upcoming: import_zod11.z.array(MyMealPlanListItemSchema),
955
- recordNeeded: import_zod11.z.array(MyMealPlanListItemSchema),
956
- past: import_zod11.z.array(MyMealPlanListItemSchema)
1018
+ var MyMealPlanListResponseSchema = import_zod12.z.object({
1019
+ deciding: import_zod12.z.array(MyMealPlanListItemSchema),
1020
+ upcoming: import_zod12.z.array(MyMealPlanListItemSchema),
1021
+ recordNeeded: import_zod12.z.array(MyMealPlanListItemSchema),
1022
+ past: import_zod12.z.array(MyMealPlanListItemSchema)
957
1023
  });
958
- var MealPlanNotificationKindSchema = import_zod11.z.enum([
1024
+ var MealPlanNotificationKindSchema = import_zod12.z.enum([
959
1025
  "MEAL_PLAN_INVITE_RECEIVED",
960
1026
  "MEAL_PLAN_INVITE_ACCEPTED",
961
1027
  "MEAL_PLAN_JOIN_REQUESTED",
@@ -967,27 +1033,27 @@ var MealPlanNotificationKindSchema = import_zod11.z.enum([
967
1033
  "MEAL_PLAN_LOCKED",
968
1034
  "MEAL_PLAN_RECORD_NEEDED"
969
1035
  ]);
970
- var MealPlanNotificationPriorityChannelSchema = import_zod11.z.enum([
1036
+ var MealPlanNotificationPriorityChannelSchema = import_zod12.z.enum([
971
1037
  "HOME",
972
1038
  "NOTIFICATION_INBOX",
973
1039
  "FCM_PUSH",
974
1040
  "LIVE_ACTIVITY"
975
1041
  ]);
976
- var MealPlanLiveActivityBehaviorSchema = import_zod11.z.enum([
1042
+ var MealPlanLiveActivityBehaviorSchema = import_zod12.z.enum([
977
1043
  "NONE",
978
1044
  "START_OR_UPDATE",
979
1045
  "UPDATE",
980
1046
  "END"
981
1047
  ]);
982
- var MealPlanNotificationPriorityPolicyItemSchema = import_zod11.z.object({
1048
+ var MealPlanNotificationPriorityPolicyItemSchema = import_zod12.z.object({
983
1049
  kind: MealPlanNotificationKindSchema,
984
- priority: import_zod11.z.number().int().min(0),
985
- homePriority: import_zod11.z.number().int().min(0),
986
- inboxPriority: import_zod11.z.number().int().min(0),
987
- fcmPriority: import_zod11.z.number().int().min(0),
988
- liveActivityPriority: import_zod11.z.number().int().min(0),
1050
+ priority: import_zod12.z.number().int().min(0),
1051
+ homePriority: import_zod12.z.number().int().min(0),
1052
+ inboxPriority: import_zod12.z.number().int().min(0),
1053
+ fcmPriority: import_zod12.z.number().int().min(0),
1054
+ liveActivityPriority: import_zod12.z.number().int().min(0),
989
1055
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
990
- foregroundToast: import_zod11.z.boolean()
1056
+ foregroundToast: import_zod12.z.boolean()
991
1057
  });
992
1058
  var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
993
1059
  MEAL_PLAN_JOIN_REQUESTED: {
@@ -1091,248 +1157,255 @@ var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
1091
1157
  foregroundToast: false
1092
1158
  }
1093
1159
  };
1094
- var MealPlanNotificationSchema = import_zod11.z.object({
1095
- notificationId: import_zod11.z.string().min(1),
1160
+ var MealPlanNotificationSchema = import_zod12.z.object({
1161
+ notificationId: import_zod12.z.string().min(1),
1096
1162
  kind: MealPlanNotificationKindSchema,
1097
1163
  mealPlanId: MealPlanIdSchema,
1098
- deepLink: import_zod11.z.string().min(1),
1099
- title: import_zod11.z.string().min(1),
1100
- message: import_zod11.z.string().min(1),
1164
+ deepLink: import_zod12.z.string().min(1),
1165
+ title: import_zod12.z.string().min(1),
1166
+ message: import_zod12.z.string().min(1),
1101
1167
  createdAt: ISODateTimeStringSchema,
1102
1168
  readAt: ISODateTimeStringSchema.nullable()
1103
1169
  });
1104
1170
 
1171
+ // src/domain/meal-plan/meal-plan.socket.ts
1172
+ var import_zod13 = require("zod");
1173
+ var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
1174
+ var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
1175
+ mealPlanId: MealPlanIdSchema,
1176
+ stageId: MealPlanDecisionStageIdSchema,
1177
+ guestSessionToken: import_zod13.z.string().min(1).optional()
1178
+ });
1179
+ var MealPlanDecisionVoteSocketErrorSchema = import_zod13.z.object({
1180
+ code: import_zod13.z.string().min(1),
1181
+ message: import_zod13.z.string().min(1)
1182
+ });
1183
+ var MealPlanDecisionVoteSocketSuccessAckSchema = import_zod13.z.object({
1184
+ ok: import_zod13.z.literal(true),
1185
+ mealPlan: MealPlanResponseSchema
1186
+ });
1187
+ var MealPlanDecisionVoteSocketFailureAckSchema = import_zod13.z.object({
1188
+ ok: import_zod13.z.literal(false),
1189
+ error: MealPlanDecisionVoteSocketErrorSchema
1190
+ });
1191
+ var MealPlanDecisionVoteSocketAckSchema = import_zod13.z.discriminatedUnion("ok", [
1192
+ MealPlanDecisionVoteSocketSuccessAckSchema,
1193
+ MealPlanDecisionVoteSocketFailureAckSchema
1194
+ ]);
1195
+
1105
1196
  // src/domain/meal-plan/meal-plan-share-link.schema.ts
1106
- var import_zod12 = require("zod");
1107
- var CreateMealPlanShareLinkRequestSchema = import_zod12.z.object({
1197
+ var import_zod14 = require("zod");
1198
+ var CreateMealPlanShareLinkRequestSchema = import_zod14.z.object({
1108
1199
  expiresAt: ISODateTimeStringSchema.optional(),
1109
- guestJoinEnabled: import_zod12.z.boolean().default(true)
1200
+ guestJoinEnabled: import_zod14.z.boolean().default(true)
1110
1201
  });
1111
- var MealPlanShareLinkSummarySchema = import_zod12.z.object({
1202
+ var MealPlanShareLinkSummarySchema = import_zod14.z.object({
1112
1203
  shareLinkId: MealPlanShareLinkIdSchema,
1113
1204
  mealPlanId: MealPlanIdSchema,
1114
1205
  token: MealPlanShareLinkTokenSchema,
1115
- url: import_zod12.z.string().url(),
1206
+ url: import_zod14.z.string().url(),
1116
1207
  expiresAt: ISODateTimeStringSchema,
1117
- guestJoinEnabled: import_zod12.z.boolean(),
1208
+ guestJoinEnabled: import_zod14.z.boolean(),
1118
1209
  createdAt: ISODateTimeStringSchema
1119
1210
  });
1120
- var MealPlanSharePreviewResponseSchema = import_zod12.z.object({
1211
+ var MealPlanSharePreviewResponseSchema = import_zod14.z.object({
1121
1212
  mealPlanId: MealPlanIdSchema,
1122
1213
  token: MealPlanShareLinkTokenSchema,
1123
- title: import_zod12.z.string(),
1124
- ownerName: import_zod12.z.string(),
1125
- participantCount: import_zod12.z.number().int().min(1),
1214
+ title: import_zod14.z.string(),
1215
+ ownerName: import_zod14.z.string(),
1216
+ participantCount: import_zod14.z.number().int().min(1),
1126
1217
  expiresAt: ISODateTimeStringSchema,
1127
- guestJoinEnabled: import_zod12.z.boolean()
1218
+ guestJoinEnabled: import_zod14.z.boolean()
1128
1219
  });
1129
- var JoinMealPlanGuestRequestSchema = import_zod12.z.object({
1130
- nickname: import_zod12.z.string().min(1).max(50),
1131
- password: import_zod12.z.string().min(1).max(100).optional()
1220
+ var JoinMealPlanGuestRequestSchema = import_zod14.z.object({
1221
+ nickname: import_zod14.z.string().min(1).max(50),
1222
+ password: import_zod14.z.string().min(1).max(100).optional()
1132
1223
  });
1133
- var JoinMealPlanGuestResponseSchema = import_zod12.z.object({
1224
+ var JoinMealPlanGuestResponseSchema = import_zod14.z.object({
1134
1225
  mealPlanId: MealPlanIdSchema,
1135
- guestId: import_zod12.z.string().min(1),
1136
- sessionToken: import_zod12.z.string().min(1)
1226
+ guestId: import_zod14.z.string().min(1),
1227
+ sessionToken: import_zod14.z.string().min(1)
1137
1228
  });
1138
- var MealPlanGuestSessionQuerySchema = import_zod12.z.object({
1139
- sessionToken: import_zod12.z.string().min(1)
1229
+ var MealPlanGuestSessionQuerySchema = import_zod14.z.object({
1230
+ sessionToken: import_zod14.z.string().min(1)
1140
1231
  });
1141
- var MealPlanGuestSessionResponseSchema = import_zod12.z.object({
1232
+ var MealPlanGuestSessionResponseSchema = import_zod14.z.object({
1142
1233
  mealPlan: MealPlanResponseSchema,
1143
1234
  token: MealPlanShareLinkTokenSchema,
1144
- guestId: import_zod12.z.string().min(1),
1145
- nickname: import_zod12.z.string().min(1).max(50),
1146
- sessionToken: import_zod12.z.string().min(1)
1235
+ guestId: import_zod14.z.string().min(1),
1236
+ nickname: import_zod14.z.string().min(1).max(50),
1237
+ sessionToken: import_zod14.z.string().min(1)
1147
1238
  });
1148
1239
 
1149
1240
  // src/domain/meal-plan/meal-group.schema.ts
1150
- var import_zod13 = require("zod");
1151
- var MealGroupMemberRoleSchema = import_zod13.z.enum([
1241
+ var import_zod15 = require("zod");
1242
+ var MealGroupMemberRoleSchema = import_zod15.z.enum([
1152
1243
  "OWNER",
1153
1244
  "MEMBER"
1154
1245
  ]);
1155
- var MealGroupMemberSchema = import_zod13.z.object({
1246
+ var MealGroupMemberSchema = import_zod15.z.object({
1156
1247
  member: MemberCoreSchema,
1157
1248
  role: MealGroupMemberRoleSchema,
1158
1249
  joinedAt: ISODateTimeStringSchema
1159
1250
  });
1160
- var MealGroupResponseSchema = import_zod13.z.object({
1251
+ var MealGroupResponseSchema = import_zod15.z.object({
1161
1252
  mealGroupId: MealGroupIdSchema,
1162
- name: import_zod13.z.string().min(1).max(50),
1253
+ name: import_zod15.z.string().min(1).max(50),
1163
1254
  owner: MemberCoreSchema,
1164
- profileImageUrl: import_zod13.z.string().url().nullable(),
1165
- members: import_zod13.z.array(MealGroupMemberSchema),
1166
- recentMealPlanIds: import_zod13.z.array(MealPlanIdSchema),
1255
+ profileImageUrl: import_zod15.z.string().url().nullable(),
1256
+ members: import_zod15.z.array(MealGroupMemberSchema),
1257
+ recentMealPlanIds: import_zod15.z.array(MealPlanIdSchema),
1167
1258
  createdAt: ISODateTimeStringSchema,
1168
1259
  updatedAt: ISODateTimeStringSchema
1169
1260
  });
1170
- var CreateMealGroupRequestSchema = import_zod13.z.object({
1171
- name: import_zod13.z.string().min(1).max(50),
1172
- memberIds: import_zod13.z.array(import_zod13.z.number().int().positive()).min(1),
1173
- profileImageUrl: import_zod13.z.string().url().nullable().optional(),
1261
+ var CreateMealGroupRequestSchema = import_zod15.z.object({
1262
+ name: import_zod15.z.string().min(1).max(50),
1263
+ memberIds: import_zod15.z.array(import_zod15.z.number().int().positive()).min(1),
1264
+ profileImageUrl: import_zod15.z.string().url().nullable().optional(),
1174
1265
  sourceMealPlanId: MealPlanIdSchema.optional()
1175
1266
  });
1176
- var StartMealPlanFromGroupRequestSchema = import_zod13.z.object({
1177
- title: import_zod13.z.string().min(1).max(100).optional()
1267
+ var StartMealPlanFromGroupRequestSchema = import_zod15.z.object({
1268
+ title: import_zod15.z.string().min(1).max(100).optional()
1178
1269
  });
1179
- var AddMealGroupMemberRequestSchema = import_zod13.z.object({
1180
- memberId: import_zod13.z.number().int().positive(),
1270
+ var AddMealGroupMemberRequestSchema = import_zod15.z.object({
1271
+ memberId: import_zod15.z.number().int().positive(),
1181
1272
  role: MealGroupMemberRoleSchema.default("MEMBER")
1182
1273
  });
1183
- var UpdateMealGroupMemberRoleRequestSchema = import_zod13.z.object({
1274
+ var UpdateMealGroupMemberRoleRequestSchema = import_zod15.z.object({
1184
1275
  role: MealGroupMemberRoleSchema
1185
1276
  });
1186
1277
  var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
1187
- var MealGroupPreferenceSummarySchema = import_zod13.z.object({
1278
+ var MealGroupPreferenceSummarySchema = import_zod15.z.object({
1188
1279
  mealGroupId: MealGroupIdSchema,
1189
- frequentMenuCategories: import_zod13.z.array(import_zod13.z.object({
1190
- label: import_zod13.z.string(),
1191
- count: import_zod13.z.number().int().min(0)
1192
- })),
1193
- frequentRestaurants: import_zod13.z.array(import_zod13.z.object({
1194
- restaurantName: import_zod13.z.string(),
1195
- count: import_zod13.z.number().int().min(0)
1196
- })),
1197
- recentMenuCategories: import_zod13.z.array(import_zod13.z.string()),
1198
- recommendationContext: import_zod13.z.object({
1199
- preferredMenuCategories: import_zod13.z.array(import_zod13.z.string()),
1200
- excludedMenuCategories: import_zod13.z.array(import_zod13.z.string()),
1201
- candidateMenuCategories: import_zod13.z.array(import_zod13.z.string())
1280
+ frequentMenuCategories: import_zod15.z.array(import_zod15.z.object({ label: import_zod15.z.string(), count: import_zod15.z.number().int().min(0) })),
1281
+ frequentRestaurants: import_zod15.z.array(import_zod15.z.object({ restaurantName: import_zod15.z.string(), count: import_zod15.z.number().int().min(0) })),
1282
+ recentMenuCategories: import_zod15.z.array(import_zod15.z.string()),
1283
+ recommendationContext: import_zod15.z.object({
1284
+ preferredMenuCategories: import_zod15.z.array(import_zod15.z.string()),
1285
+ excludedMenuCategories: import_zod15.z.array(import_zod15.z.string()),
1286
+ candidateMenuCategories: import_zod15.z.array(import_zod15.z.string())
1202
1287
  })
1203
1288
  });
1204
- var MealGroupHistoryResponseSchema = import_zod13.z.array(MealGroupHistoryItemSchema);
1289
+ var MealGroupHistoryResponseSchema = import_zod15.z.array(MealGroupHistoryItemSchema);
1205
1290
 
1206
1291
  // src/domain/meal-plan/meal-plan-home-map.schema.ts
1207
- var import_zod14 = require("zod");
1208
- var HomeMealPlanActionKindSchema = import_zod14.z.enum([
1292
+ var import_zod16 = require("zod");
1293
+ var HomeMealPlanActionKindSchema = import_zod16.z.enum([
1209
1294
  "CONTINUE_DECISION",
1210
1295
  "TODAY_UPCOMING",
1211
1296
  "RECORD_NEEDED",
1212
1297
  "RESPOND_JOIN_REQUEST",
1213
1298
  "NOTIFICATION_FOLLOW_UP"
1214
1299
  ]);
1215
- var HomeMealPlanActionCardSchema = import_zod14.z.object({
1216
- actionId: import_zod14.z.string().min(1),
1300
+ var HomeMealPlanActionCardSchema = import_zod16.z.object({
1301
+ actionId: import_zod16.z.string().min(1),
1217
1302
  kind: HomeMealPlanActionKindSchema,
1218
- priority: import_zod14.z.number().int().min(0),
1219
- title: import_zod14.z.string().min(1),
1220
- description: import_zod14.z.string().min(1),
1221
- primaryAction: import_zod14.z.object({
1222
- label: import_zod14.z.string().min(1),
1223
- href: import_zod14.z.string().min(1)
1303
+ priority: import_zod16.z.number().int().min(0),
1304
+ title: import_zod16.z.string().min(1),
1305
+ description: import_zod16.z.string().min(1),
1306
+ primaryAction: import_zod16.z.object({
1307
+ label: import_zod16.z.string().min(1),
1308
+ href: import_zod16.z.string().min(1)
1224
1309
  }),
1225
1310
  mealPlan: MyMealPlanListItemSchema.nullable(),
1226
1311
  joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
1227
1312
  notification: MealPlanNotificationSchema.nullable().default(null)
1228
1313
  });
1229
- var HomeMealPlanDashboardResponseSchema = import_zod14.z.object({
1314
+ var HomeMealPlanDashboardResponseSchema = import_zod16.z.object({
1230
1315
  generatedAt: ISODateTimeStringSchema,
1231
- inProgress: import_zod14.z.array(MyMealPlanListItemSchema),
1232
- today: import_zod14.z.array(MyMealPlanListItemSchema),
1233
- recordNeeded: import_zod14.z.array(MyMealPlanListItemSchema),
1234
- pendingJoinRequests: import_zod14.z.array(MealPlanJoinRequestSummarySchema),
1235
- unreadNotifications: import_zod14.z.array(MealPlanNotificationSchema).default([]),
1236
- nextActions: import_zod14.z.array(HomeMealPlanActionCardSchema)
1237
- });
1238
- var MealMapLayerSchema = import_zod14.z.enum([
1316
+ inProgress: import_zod16.z.array(MyMealPlanListItemSchema),
1317
+ today: import_zod16.z.array(MyMealPlanListItemSchema),
1318
+ recordNeeded: import_zod16.z.array(MyMealPlanListItemSchema),
1319
+ pendingJoinRequests: import_zod16.z.array(MealPlanJoinRequestSummarySchema),
1320
+ unreadNotifications: import_zod16.z.array(MealPlanNotificationSchema).default([]),
1321
+ nextActions: import_zod16.z.array(HomeMealPlanActionCardSchema)
1322
+ });
1323
+ var MealMapLayerSchema = import_zod16.z.enum([
1239
1324
  "MY_MEAL_PLAN_PLACE",
1240
1325
  "NEARBY_FRIEND_MEAL_PLAN",
1241
1326
  "FRIEND_RECORD_LOCATION",
1242
1327
  "RESTAURANT_CANDIDATE"
1243
1328
  ]);
1244
- var MealMapMarkerBaseSchema = import_zod14.z.object({
1245
- markerId: import_zod14.z.string().min(1),
1246
- lat: import_zod14.z.number().min(-90).max(90),
1247
- lng: import_zod14.z.number().min(-180).max(180),
1248
- title: import_zod14.z.string().min(1),
1249
- subtitle: import_zod14.z.string().nullable(),
1250
- href: import_zod14.z.string().min(1).nullable(),
1329
+ var MealMapMarkerBaseSchema = import_zod16.z.object({
1330
+ markerId: import_zod16.z.string().min(1),
1331
+ lat: import_zod16.z.number().min(-90).max(90),
1332
+ lng: import_zod16.z.number().min(-180).max(180),
1333
+ title: import_zod16.z.string().min(1),
1334
+ subtitle: import_zod16.z.string().nullable(),
1335
+ href: import_zod16.z.string().min(1).nullable(),
1251
1336
  mealPlanId: MealPlanIdSchema.nullable(),
1252
1337
  articleId: ArticleIdSchema.nullable(),
1253
1338
  restaurant: RestaurantSchema.nullable(),
1254
- distanceMeters: import_zod14.z.number().int().min(0).nullable(),
1339
+ distanceMeters: import_zod16.z.number().int().min(0).nullable(),
1255
1340
  updatedAt: ISODateTimeStringSchema
1256
1341
  });
1257
- var MealMapMyMealPlanPlaceMetadataSchema = import_zod14.z.object({
1342
+ var MealMapMyMealPlanPlaceMetadataSchema = import_zod16.z.object({
1258
1343
  ownerId: MemberIdSchema.nullable().default(null),
1259
- status: import_zod14.z.string().min(1),
1260
- participantCount: import_zod14.z.number().int().min(1),
1261
- source: import_zod14.z.string().min(1)
1344
+ status: import_zod16.z.string().min(1),
1345
+ participantCount: import_zod16.z.number().int().min(1),
1346
+ source: import_zod16.z.string().min(1)
1262
1347
  });
1263
- var MealMapNearbyFriendMealPlanMetadataSchema = import_zod14.z.object({
1348
+ var MealMapNearbyFriendMealPlanMetadataSchema = import_zod16.z.object({
1264
1349
  ownerId: MemberIdSchema.nullable().default(null),
1265
- ownerName: import_zod14.z.string().min(1),
1266
- participantCount: import_zod14.z.number().int().min(1),
1350
+ ownerName: import_zod16.z.string().min(1),
1351
+ participantCount: import_zod16.z.number().int().min(1),
1267
1352
  expiresAt: ISODateTimeStringSchema.nullable(),
1268
- source: import_zod14.z.string().min(1)
1353
+ source: import_zod16.z.string().min(1)
1269
1354
  });
1270
- var MealMapFriendRecordLocationMetadataSchema = import_zod14.z.object({
1355
+ var MealMapFriendRecordLocationMetadataSchema = import_zod16.z.object({
1271
1356
  authorId: MemberIdSchema.nullable().default(null),
1272
- authorName: import_zod14.z.string().min(1),
1273
- imageUrl: import_zod14.z.string().nullable().default(null),
1274
- mealDate: import_zod14.z.string().min(1)
1357
+ authorName: import_zod16.z.string().min(1),
1358
+ imageUrl: import_zod16.z.string().nullable().default(null),
1359
+ mealDate: import_zod16.z.string().min(1)
1275
1360
  });
1276
- var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod14.z.enum([
1361
+ var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod16.z.enum([
1277
1362
  "OWNER_ONLY",
1278
1363
  "STAGE_ALREADY_COMPLETED",
1279
1364
  "MEAL_PLAN_NOT_MUTABLE"
1280
1365
  ]);
1281
- var MealMapRestaurantCandidateMetadataSchema = import_zod14.z.object({
1366
+ var MealMapRestaurantCandidateMetadataSchema = import_zod16.z.object({
1282
1367
  stageId: MealPlanDecisionStageIdSchema,
1283
1368
  ownerId: MemberIdSchema.nullable().default(null),
1284
- status: import_zod14.z.string().min(1),
1285
- source: import_zod14.z.enum([
1286
- "search",
1287
- "fallback",
1288
- "manual"
1289
- ]).default("search"),
1290
- stageStatus: import_zod14.z.enum([
1291
- "OPEN",
1292
- "COMPLETED",
1293
- "REOPENED"
1294
- ]).default("OPEN"),
1295
- canVote: import_zod14.z.boolean().default(false),
1296
- canCompleteStage: import_zod14.z.boolean().default(false),
1369
+ status: import_zod16.z.string().min(1),
1370
+ source: import_zod16.z.enum(["search", "fallback", "manual"]).default("search"),
1371
+ stageStatus: import_zod16.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1372
+ canVote: import_zod16.z.boolean().default(false),
1373
+ canCompleteStage: import_zod16.z.boolean().default(false),
1297
1374
  completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
1298
1375
  });
1299
- var MealMapMarkerSchema = import_zod14.z.discriminatedUnion("layer", [
1376
+ var MealMapMarkerSchema = import_zod16.z.discriminatedUnion("layer", [
1300
1377
  MealMapMarkerBaseSchema.extend({
1301
- layer: import_zod14.z.literal("MY_MEAL_PLAN_PLACE"),
1378
+ layer: import_zod16.z.literal("MY_MEAL_PLAN_PLACE"),
1302
1379
  metadata: MealMapMyMealPlanPlaceMetadataSchema
1303
1380
  }),
1304
1381
  MealMapMarkerBaseSchema.extend({
1305
- layer: import_zod14.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1382
+ layer: import_zod16.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1306
1383
  metadata: MealMapNearbyFriendMealPlanMetadataSchema
1307
1384
  }),
1308
1385
  MealMapMarkerBaseSchema.extend({
1309
- layer: import_zod14.z.literal("FRIEND_RECORD_LOCATION"),
1386
+ layer: import_zod16.z.literal("FRIEND_RECORD_LOCATION"),
1310
1387
  metadata: MealMapFriendRecordLocationMetadataSchema
1311
1388
  }),
1312
1389
  MealMapMarkerBaseSchema.extend({
1313
- layer: import_zod14.z.literal("RESTAURANT_CANDIDATE"),
1390
+ layer: import_zod16.z.literal("RESTAURANT_CANDIDATE"),
1314
1391
  metadata: MealMapRestaurantCandidateMetadataSchema
1315
1392
  })
1316
1393
  ]);
1317
- var MealMapQuerySchema = import_zod14.z.object({
1318
- friendRecordDays: import_zod14.z.coerce.number().int().min(1).max(90).optional().default(7)
1394
+ var MealMapQuerySchema = import_zod16.z.object({
1395
+ friendRecordDays: import_zod16.z.coerce.number().int().min(1).max(90).optional().default(7)
1319
1396
  });
1320
- var MealMapResponseSchema = import_zod14.z.object({
1397
+ var MealMapResponseSchema = import_zod16.z.object({
1321
1398
  generatedAt: ISODateTimeStringSchema,
1322
- center: import_zod14.z.object({
1323
- lat: import_zod14.z.number().min(-90).max(90),
1324
- lng: import_zod14.z.number().min(-180).max(180),
1325
- source: import_zod14.z.enum([
1326
- "LAST_KNOWN_LOCATION",
1327
- "MY_MEAL_PLAN",
1328
- "DEFAULT"
1329
- ])
1399
+ center: import_zod16.z.object({
1400
+ lat: import_zod16.z.number().min(-90).max(90),
1401
+ lng: import_zod16.z.number().min(-180).max(180),
1402
+ source: import_zod16.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1330
1403
  }),
1331
- layers: import_zod14.z.object({
1332
- myMealPlanPlaces: import_zod14.z.array(MealMapMarkerSchema),
1333
- nearbyFriendMealPlans: import_zod14.z.array(MealMapMarkerSchema),
1334
- friendRecordLocations: import_zod14.z.array(MealMapMarkerSchema),
1335
- restaurantCandidates: import_zod14.z.array(MealMapMarkerSchema)
1404
+ layers: import_zod16.z.object({
1405
+ myMealPlanPlaces: import_zod16.z.array(MealMapMarkerSchema),
1406
+ nearbyFriendMealPlans: import_zod16.z.array(MealMapMarkerSchema),
1407
+ friendRecordLocations: import_zod16.z.array(MealMapMarkerSchema),
1408
+ restaurantCandidates: import_zod16.z.array(MealMapMarkerSchema)
1336
1409
  })
1337
1410
  });
1338
1411
 
@@ -1341,7 +1414,6 @@ var DEFAULT_POLICY = MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES.MEAL_PLAN_PARTICIP
1341
1414
  function getMealPlanNotificationPriorityPolicy(kind) {
1342
1415
  return MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES[kind] ?? DEFAULT_POLICY;
1343
1416
  }
1344
- __name(getMealPlanNotificationPriorityPolicy, "getMealPlanNotificationPriorityPolicy");
1345
1417
  function getMealPlanNotificationPriority(kind, channel = "HOME") {
1346
1418
  const policy = getMealPlanNotificationPriorityPolicy(kind);
1347
1419
  switch (channel) {
@@ -1357,15 +1429,12 @@ function getMealPlanNotificationPriority(kind, channel = "HOME") {
1357
1429
  return policy.priority;
1358
1430
  }
1359
1431
  }
1360
- __name(getMealPlanNotificationPriority, "getMealPlanNotificationPriority");
1361
1432
  function getMealPlanLiveActivityBehavior(kind) {
1362
1433
  return getMealPlanNotificationPriorityPolicy(kind).liveActivityBehavior;
1363
1434
  }
1364
- __name(getMealPlanLiveActivityBehavior, "getMealPlanLiveActivityBehavior");
1365
1435
  function shouldShowForegroundToast(kind) {
1366
1436
  return getMealPlanNotificationPriorityPolicy(kind).foregroundToast;
1367
1437
  }
1368
- __name(shouldShowForegroundToast, "shouldShowForegroundToast");
1369
1438
  function compareMealPlanNotificationsByPriority(channel) {
1370
1439
  return (a, b) => {
1371
1440
  const unreadDelta = Number(Boolean(a.readAt)) - Number(Boolean(b.readAt));
@@ -1375,7 +1444,6 @@ function compareMealPlanNotificationsByPriority(channel) {
1375
1444
  return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
1376
1445
  };
1377
1446
  }
1378
- __name(compareMealPlanNotificationsByPriority, "compareMealPlanNotificationsByPriority");
1379
1447
  // Annotate the CommonJS export names for ESM import in node:
1380
1448
  0 && (module.exports = {
1381
1449
  AddMealGroupMemberRequestSchema,
@@ -1435,8 +1503,13 @@ __name(compareMealPlanNotificationsByPriority, "compareMealPlanNotificationsByPr
1435
1503
  MealPlanDecisionStageTypeSchema,
1436
1504
  MealPlanDecisionTaskKeySchema,
1437
1505
  MealPlanDecisionTaskProgressSchema,
1438
- MealPlanDecisionTaskReadyRequestSchema,
1439
1506
  MealPlanDecisionTaskStatusSchema,
1507
+ MealPlanDecisionVoteSocketAckSchema,
1508
+ MealPlanDecisionVoteSocketErrorSchema,
1509
+ MealPlanDecisionVoteSocketEvent,
1510
+ MealPlanDecisionVoteSocketFailureAckSchema,
1511
+ MealPlanDecisionVoteSocketPayloadSchema,
1512
+ MealPlanDecisionVoteSocketSuccessAckSchema,
1440
1513
  MealPlanGuestParticipantSchema,
1441
1514
  MealPlanGuestSessionQuerySchema,
1442
1515
  MealPlanGuestSessionResponseSchema,