@kimdaegyu/babmukdang-shared 2.0.4 → 2.0.6

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.
@@ -160,13 +160,8 @@ __export(domain_exports, {
160
160
  MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
161
161
  MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
162
162
  MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
163
+ MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
163
164
  MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
164
- MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
165
- MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
166
- MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
167
- MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
168
- MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
169
- MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
170
165
  MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
171
166
  MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
172
167
  MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
@@ -194,6 +189,7 @@ __export(domain_exports, {
194
189
  MealPlanMenuCandidateIdSchema: () => MealPlanMenuCandidateIdSchema,
195
190
  MealPlanMenuCandidateSchema: () => MealPlanMenuCandidateSchema,
196
191
  MealPlanMenuCandidateSourceSchema: () => MealPlanMenuCandidateSourceSchema,
192
+ MealPlanMenuRecommendationStateSchema: () => MealPlanMenuRecommendationStateSchema,
197
193
  MealPlanNearbyFriendExposureBatchIdSchema: () => MealPlanNearbyFriendExposureBatchIdSchema,
198
194
  MealPlanNearbyFriendExposureBatchSummarySchema: () => MealPlanNearbyFriendExposureBatchSummarySchema,
199
195
  MealPlanNearbyFriendExposureIdSchema: () => MealPlanNearbyFriendExposureIdSchema,
@@ -307,9 +303,11 @@ __export(domain_exports, {
307
303
  apiContract: () => apiContract,
308
304
  compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
309
305
  endpoint: () => endpoint,
306
+ getMealPlanDecisionCandidateKey: () => getMealPlanDecisionCandidateKey,
310
307
  getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
311
308
  getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
312
309
  getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
310
+ getMealPlanRestaurantProvisionCacheKey: () => getMealPlanRestaurantProvisionCacheKey,
313
311
  makeApiResponseSchema: () => makeApiResponseSchema,
314
312
  makeApiSuccessSchema: () => makeApiSuccessSchema,
315
313
  shouldShowForegroundToast: () => shouldShowForegroundToast,
@@ -615,7 +613,7 @@ var SignupResponseSchema = import_zod8.z.object({
615
613
  });
616
614
 
617
615
  // src/domain/common/contracts/api.ts
618
- var import_zod30 = require("zod");
616
+ var import_zod29 = require("zod");
619
617
 
620
618
  // src/domain/common/schema/cache-invalidation.schema.ts
621
619
  var import_zod9 = require("zod");
@@ -879,9 +877,7 @@ var MealPlanDecisionStageIdSchema = import_zod14.z.string().uuid().brand();
879
877
  var MealPlanVoteIdSchema = import_zod14.z.string().uuid().brand();
880
878
  var MealPlanLocationCandidateSourceSchema = import_zod14.z.enum([
881
879
  "manual",
882
- "map-marker",
883
880
  "midpoint",
884
- "user-location",
885
881
  "search",
886
882
  "recent-place",
887
883
  "fallback"
@@ -908,8 +904,8 @@ var MealPlanMenuCandidateSchema = import_zod14.z.object({
908
904
  menu: FoodSchema,
909
905
  source: MealPlanMenuCandidateSourceSchema,
910
906
  score: import_zod14.z.number().default(0),
911
- imageUrl: import_zod14.z.string().min(1).nullable().default(null),
912
- image: FoodCodeManifestImageSchema.nullable().default(null),
907
+ imageUrl: import_zod14.z.string().min(1).nullable().optional(),
908
+ image: FoodCodeManifestImageSchema.nullable().optional(),
913
909
  createdAt: ISODateTimeStringSchema
914
910
  });
915
911
  var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
@@ -946,8 +942,15 @@ var MealPlanRestaurantSearchStateSchema = import_zod14.z.object({
946
942
  candidateCount: import_zod14.z.number().int().min(0),
947
943
  errorMessage: import_zod14.z.string().nullable().default(null)
948
944
  });
945
+ var MealPlanMenuRecommendationStateSchema = import_zod14.z.object({
946
+ preferenceKey: import_zod14.z.string().min(1),
947
+ generatedFromHash: import_zod14.z.string().min(1),
948
+ generatedAt: ISODateTimeStringSchema,
949
+ candidateCount: import_zod14.z.number().int().min(0)
950
+ });
949
951
  var MealPlanDecisionStageMetadataSchema = import_zod14.z.object({
950
- restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
952
+ restaurantSearch: MealPlanRestaurantSearchStateSchema.optional(),
953
+ menuRecommendation: MealPlanMenuRecommendationStateSchema.optional()
951
954
  }).catchall(import_zod14.z.unknown());
952
955
  var MealPlanVoteTypeSchema = import_zod14.z.enum([
953
956
  "PICK",
@@ -1023,6 +1026,7 @@ var MealPlanDecisionTaskKeySchema = import_zod14.z.enum([
1023
1026
  var MealPlanDecisionTaskStatusSchema = import_zod14.z.enum([
1024
1027
  "LOCKED",
1025
1028
  "OPEN",
1029
+ "READY",
1026
1030
  "RESOLVED",
1027
1031
  "STALE"
1028
1032
  ]);
@@ -1046,6 +1050,7 @@ var MealPlanDecisionReasonSchema = import_zod14.z.enum([
1046
1050
  "TOP_PICKED_MENU",
1047
1051
  "TOP_PICKED_RESTAURANT",
1048
1052
  "OWNER_CONFIRMED",
1053
+ "TASK_ALL_READY",
1049
1054
  "MANUAL_SELECTION"
1050
1055
  ]);
1051
1056
  var MealPlanDecisionActorTypeSchema = import_zod14.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
@@ -1071,6 +1076,8 @@ var MealPlanDecisionSnapshotSchema = import_zod14.z.object({
1071
1076
  var MealPlanDecisionTaskProgressSchema = import_zod14.z.object({
1072
1077
  taskKey: MealPlanDecisionTaskKeySchema,
1073
1078
  status: MealPlanDecisionTaskStatusSchema,
1079
+ readyCount: import_zod14.z.number().int().min(0),
1080
+ participantCount: import_zod14.z.number().int().min(0),
1074
1081
  blockers: import_zod14.z.array(import_zod14.z.string()).default([]),
1075
1082
  updatedAt: ISODateTimeStringSchema
1076
1083
  });
@@ -1084,6 +1091,9 @@ var MealPlanDecisionProgressSchema = import_zod14.z.object({
1084
1091
  version: import_zod14.z.number().int().min(0),
1085
1092
  updatedAt: ISODateTimeStringSchema
1086
1093
  });
1094
+ var MealPlanDecisionTaskReadyRequestSchema = import_zod14.z.object({
1095
+ isReady: import_zod14.z.boolean()
1096
+ });
1087
1097
  var ReopenMealPlanDecisionTaskRequestSchema = import_zod14.z.object({
1088
1098
  reason: import_zod14.z.string().max(500).optional()
1089
1099
  });
@@ -1579,244 +1589,240 @@ var MealPlanNotificationSchema = import_zod19.z.object({
1579
1589
  readAt: ISODateTimeStringSchema.nullable()
1580
1590
  });
1581
1591
 
1582
- // src/domain/meal-plan/meal-plan.socket.ts
1583
- var import_zod20 = require("zod");
1584
- var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
1585
- var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
1586
- mealPlanId: MealPlanIdSchema,
1587
- stageId: MealPlanDecisionStageIdSchema,
1588
- guestSessionToken: import_zod20.z.string().min(1).optional()
1589
- });
1590
- var MealPlanDecisionVoteSocketErrorSchema = import_zod20.z.object({
1591
- code: import_zod20.z.string().min(1),
1592
- message: import_zod20.z.string().min(1)
1593
- });
1594
- var MealPlanDecisionVoteSocketSuccessAckSchema = import_zod20.z.object({
1595
- ok: import_zod20.z.literal(true),
1596
- mealPlan: MealPlanResponseSchema
1597
- });
1598
- var MealPlanDecisionVoteSocketFailureAckSchema = import_zod20.z.object({
1599
- ok: import_zod20.z.literal(false),
1600
- error: MealPlanDecisionVoteSocketErrorSchema
1601
- });
1602
- var MealPlanDecisionVoteSocketAckSchema = import_zod20.z.discriminatedUnion("ok", [
1603
- MealPlanDecisionVoteSocketSuccessAckSchema,
1604
- MealPlanDecisionVoteSocketFailureAckSchema
1605
- ]);
1592
+ // src/domain/meal-plan/meal-plan-decision.candidate-key.ts
1593
+ function getMealPlanDecisionCandidateKey(candidate) {
1594
+ switch (candidate.stageType) {
1595
+ case "DATE":
1596
+ case "TIME":
1597
+ return `${candidate.stageType}:${candidate.value}`;
1598
+ case "AREA":
1599
+ return `AREA:${candidate.value.locationId}`;
1600
+ case "MENU":
1601
+ return `MENU:${candidate.value.menu.code}`;
1602
+ case "RESTAURANT":
1603
+ return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
1604
+ case "FINAL_CONFIRMATION":
1605
+ return "FINAL_CONFIRMATION:READY";
1606
+ }
1607
+ return `UNKNOWN:${JSON.stringify(candidate)}`;
1608
+ }
1609
+ function getMealPlanRestaurantProvisionCacheKey(area, menu) {
1610
+ return `restaurant-search:${getMealPlanDecisionCandidateKey(area)}:${getMealPlanDecisionCandidateKey(menu)}`;
1611
+ }
1606
1612
 
1607
1613
  // src/domain/meal-plan/meal-plan-share-link.schema.ts
1608
- var import_zod21 = require("zod");
1609
- var CreateMealPlanShareLinkRequestSchema = import_zod21.z.object({
1614
+ var import_zod20 = require("zod");
1615
+ var CreateMealPlanShareLinkRequestSchema = import_zod20.z.object({
1610
1616
  expiresAt: ISODateTimeStringSchema.optional(),
1611
- guestJoinEnabled: import_zod21.z.boolean().default(true)
1617
+ guestJoinEnabled: import_zod20.z.boolean().default(true)
1612
1618
  });
1613
- var MealPlanShareLinkSummarySchema = import_zod21.z.object({
1619
+ var MealPlanShareLinkSummarySchema = import_zod20.z.object({
1614
1620
  shareLinkId: MealPlanShareLinkIdSchema,
1615
1621
  mealPlanId: MealPlanIdSchema,
1616
1622
  token: MealPlanShareLinkTokenSchema,
1617
- url: import_zod21.z.string().url(),
1623
+ url: import_zod20.z.string().url(),
1618
1624
  expiresAt: ISODateTimeStringSchema,
1619
- guestJoinEnabled: import_zod21.z.boolean(),
1625
+ guestJoinEnabled: import_zod20.z.boolean(),
1620
1626
  createdAt: ISODateTimeStringSchema
1621
1627
  });
1622
- var MealPlanSharePreviewResponseSchema = import_zod21.z.object({
1628
+ var MealPlanSharePreviewResponseSchema = import_zod20.z.object({
1623
1629
  mealPlanId: MealPlanIdSchema,
1624
1630
  token: MealPlanShareLinkTokenSchema,
1625
- title: import_zod21.z.string(),
1626
- ownerName: import_zod21.z.string(),
1627
- participantCount: import_zod21.z.number().int().min(1),
1631
+ title: import_zod20.z.string(),
1632
+ ownerName: import_zod20.z.string(),
1633
+ participantCount: import_zod20.z.number().int().min(1),
1628
1634
  expiresAt: ISODateTimeStringSchema,
1629
- guestJoinEnabled: import_zod21.z.boolean()
1635
+ guestJoinEnabled: import_zod20.z.boolean()
1630
1636
  });
1631
- var JoinMealPlanGuestRequestSchema = import_zod21.z.object({
1632
- nickname: import_zod21.z.string().min(1).max(50),
1633
- password: import_zod21.z.string().min(1).max(100).optional()
1637
+ var JoinMealPlanGuestRequestSchema = import_zod20.z.object({
1638
+ nickname: import_zod20.z.string().min(1).max(50),
1639
+ password: import_zod20.z.string().min(1).max(100).optional()
1634
1640
  });
1635
- var JoinMealPlanGuestResponseSchema = import_zod21.z.object({
1641
+ var JoinMealPlanGuestResponseSchema = import_zod20.z.object({
1636
1642
  mealPlanId: MealPlanIdSchema,
1637
- guestId: import_zod21.z.string().min(1),
1638
- sessionToken: import_zod21.z.string().min(1)
1643
+ guestId: import_zod20.z.string().min(1),
1644
+ sessionToken: import_zod20.z.string().min(1)
1639
1645
  });
1640
- var MealPlanGuestSessionQuerySchema = import_zod21.z.object({
1641
- sessionToken: import_zod21.z.string().min(1)
1646
+ var MealPlanGuestSessionQuerySchema = import_zod20.z.object({
1647
+ sessionToken: import_zod20.z.string().min(1)
1642
1648
  });
1643
- var MealPlanGuestSessionResponseSchema = import_zod21.z.object({
1649
+ var MealPlanGuestSessionResponseSchema = import_zod20.z.object({
1644
1650
  mealPlan: MealPlanResponseSchema,
1645
1651
  token: MealPlanShareLinkTokenSchema,
1646
- guestId: import_zod21.z.string().min(1),
1647
- nickname: import_zod21.z.string().min(1).max(50),
1648
- sessionToken: import_zod21.z.string().min(1)
1652
+ guestId: import_zod20.z.string().min(1),
1653
+ nickname: import_zod20.z.string().min(1).max(50),
1654
+ sessionToken: import_zod20.z.string().min(1)
1649
1655
  });
1650
1656
 
1651
1657
  // src/domain/meal-plan/meal-group.schema.ts
1652
- var import_zod22 = require("zod");
1653
- var MealGroupMemberRoleSchema = import_zod22.z.enum([
1658
+ var import_zod21 = require("zod");
1659
+ var MealGroupMemberRoleSchema = import_zod21.z.enum([
1654
1660
  "OWNER",
1655
1661
  "MEMBER"
1656
1662
  ]);
1657
- var MealGroupMemberSchema = import_zod22.z.object({
1663
+ var MealGroupMemberSchema = import_zod21.z.object({
1658
1664
  member: MemberCoreSchema,
1659
1665
  role: MealGroupMemberRoleSchema,
1660
1666
  joinedAt: ISODateTimeStringSchema
1661
1667
  });
1662
- var MealGroupResponseSchema = import_zod22.z.object({
1668
+ var MealGroupResponseSchema = import_zod21.z.object({
1663
1669
  mealGroupId: MealGroupIdSchema,
1664
- name: import_zod22.z.string().min(1).max(50),
1670
+ name: import_zod21.z.string().min(1).max(50),
1665
1671
  owner: MemberCoreSchema,
1666
- profileImageUrl: import_zod22.z.string().url().nullable(),
1667
- members: import_zod22.z.array(MealGroupMemberSchema),
1668
- recentMealPlanIds: import_zod22.z.array(MealPlanIdSchema),
1672
+ profileImageUrl: import_zod21.z.string().url().nullable(),
1673
+ members: import_zod21.z.array(MealGroupMemberSchema),
1674
+ recentMealPlanIds: import_zod21.z.array(MealPlanIdSchema),
1669
1675
  createdAt: ISODateTimeStringSchema,
1670
1676
  updatedAt: ISODateTimeStringSchema
1671
1677
  });
1672
- var CreateMealGroupRequestSchema = import_zod22.z.object({
1673
- name: import_zod22.z.string().min(1).max(50),
1674
- memberIds: import_zod22.z.array(import_zod22.z.number().int().positive()).min(1),
1675
- profileImageUrl: import_zod22.z.string().url().nullable().optional(),
1678
+ var CreateMealGroupRequestSchema = import_zod21.z.object({
1679
+ name: import_zod21.z.string().min(1).max(50),
1680
+ memberIds: import_zod21.z.array(import_zod21.z.number().int().positive()).min(1),
1681
+ profileImageUrl: import_zod21.z.string().url().nullable().optional(),
1676
1682
  sourceMealPlanId: MealPlanIdSchema.optional()
1677
1683
  });
1678
- var StartMealPlanFromGroupRequestSchema = import_zod22.z.object({
1679
- title: import_zod22.z.string().min(1).max(100).optional()
1684
+ var StartMealPlanFromGroupRequestSchema = import_zod21.z.object({
1685
+ title: import_zod21.z.string().min(1).max(100).optional()
1680
1686
  });
1681
- var AddMealGroupMemberRequestSchema = import_zod22.z.object({
1682
- memberId: import_zod22.z.number().int().positive(),
1687
+ var AddMealGroupMemberRequestSchema = import_zod21.z.object({
1688
+ memberId: import_zod21.z.number().int().positive(),
1683
1689
  role: MealGroupMemberRoleSchema.default("MEMBER")
1684
1690
  });
1685
- var UpdateMealGroupMemberRoleRequestSchema = import_zod22.z.object({
1691
+ var UpdateMealGroupMemberRoleRequestSchema = import_zod21.z.object({
1686
1692
  role: MealGroupMemberRoleSchema
1687
1693
  });
1688
1694
  var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
1689
- var MealGroupPreferenceSummarySchema = import_zod22.z.object({
1695
+ var MealGroupPreferenceSummarySchema = import_zod21.z.object({
1690
1696
  mealGroupId: MealGroupIdSchema,
1691
- frequentMenuCategories: import_zod22.z.array(import_zod22.z.object({ label: import_zod22.z.string(), count: import_zod22.z.number().int().min(0) })),
1692
- frequentRestaurants: import_zod22.z.array(import_zod22.z.object({ restaurantName: import_zod22.z.string(), count: import_zod22.z.number().int().min(0) })),
1693
- recentMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1694
- recommendationContext: import_zod22.z.object({
1695
- preferredMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1696
- excludedMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1697
- candidateMenuCategories: import_zod22.z.array(import_zod22.z.string())
1697
+ frequentMenuCategories: import_zod21.z.array(import_zod21.z.object({ label: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
1698
+ frequentRestaurants: import_zod21.z.array(import_zod21.z.object({ restaurantName: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
1699
+ recentMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1700
+ recommendationContext: import_zod21.z.object({
1701
+ preferredMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1702
+ excludedMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1703
+ candidateMenuCategories: import_zod21.z.array(import_zod21.z.string())
1698
1704
  })
1699
1705
  });
1700
- var MealGroupHistoryResponseSchema = import_zod22.z.array(MealGroupHistoryItemSchema);
1706
+ var MealGroupHistoryResponseSchema = import_zod21.z.array(MealGroupHistoryItemSchema);
1701
1707
 
1702
1708
  // src/domain/meal-plan/meal-plan-home-map.schema.ts
1703
- var import_zod23 = require("zod");
1704
- var HomeMealPlanActionKindSchema = import_zod23.z.enum([
1709
+ var import_zod22 = require("zod");
1710
+ var HomeMealPlanActionKindSchema = import_zod22.z.enum([
1705
1711
  "CONTINUE_DECISION",
1706
1712
  "TODAY_UPCOMING",
1707
1713
  "RECORD_NEEDED",
1708
1714
  "RESPOND_JOIN_REQUEST",
1709
1715
  "NOTIFICATION_FOLLOW_UP"
1710
1716
  ]);
1711
- var HomeMealPlanActionCardSchema = import_zod23.z.object({
1712
- actionId: import_zod23.z.string().min(1),
1717
+ var HomeMealPlanActionCardSchema = import_zod22.z.object({
1718
+ actionId: import_zod22.z.string().min(1),
1713
1719
  kind: HomeMealPlanActionKindSchema,
1714
- priority: import_zod23.z.number().int().min(0),
1715
- title: import_zod23.z.string().min(1),
1716
- description: import_zod23.z.string().min(1),
1717
- primaryAction: import_zod23.z.object({
1718
- label: import_zod23.z.string().min(1),
1719
- href: import_zod23.z.string().min(1)
1720
+ priority: import_zod22.z.number().int().min(0),
1721
+ title: import_zod22.z.string().min(1),
1722
+ description: import_zod22.z.string().min(1),
1723
+ primaryAction: import_zod22.z.object({
1724
+ label: import_zod22.z.string().min(1),
1725
+ href: import_zod22.z.string().min(1)
1720
1726
  }),
1721
1727
  mealPlan: MyMealPlanListItemSchema.nullable(),
1722
1728
  joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
1723
1729
  notification: MealPlanNotificationSchema.nullable().default(null)
1724
1730
  });
1725
- var HomeMealPlanDashboardResponseSchema = import_zod23.z.object({
1731
+ var HomeMealPlanDashboardResponseSchema = import_zod22.z.object({
1726
1732
  generatedAt: ISODateTimeStringSchema,
1727
- inProgress: import_zod23.z.array(MyMealPlanListItemSchema),
1728
- today: import_zod23.z.array(MyMealPlanListItemSchema),
1729
- recordNeeded: import_zod23.z.array(MyMealPlanListItemSchema),
1730
- pendingJoinRequests: import_zod23.z.array(MealPlanJoinRequestSummarySchema),
1731
- unreadNotifications: import_zod23.z.array(MealPlanNotificationSchema).default([]),
1732
- nextActions: import_zod23.z.array(HomeMealPlanActionCardSchema)
1733
- });
1734
- var MealMapLayerSchema = import_zod23.z.enum([
1733
+ inProgress: import_zod22.z.array(MyMealPlanListItemSchema),
1734
+ today: import_zod22.z.array(MyMealPlanListItemSchema),
1735
+ recordNeeded: import_zod22.z.array(MyMealPlanListItemSchema),
1736
+ pendingJoinRequests: import_zod22.z.array(MealPlanJoinRequestSummarySchema),
1737
+ unreadNotifications: import_zod22.z.array(MealPlanNotificationSchema).default([]),
1738
+ nextActions: import_zod22.z.array(HomeMealPlanActionCardSchema)
1739
+ });
1740
+ var MealMapLayerSchema = import_zod22.z.enum([
1735
1741
  "MY_MEAL_PLAN_PLACE",
1736
1742
  "NEARBY_FRIEND_MEAL_PLAN",
1737
1743
  "FRIEND_RECORD_LOCATION",
1738
1744
  "RESTAURANT_CANDIDATE"
1739
1745
  ]);
1740
- var MealMapMarkerBaseSchema = import_zod23.z.object({
1741
- markerId: import_zod23.z.string().min(1),
1742
- lat: import_zod23.z.number().min(-90).max(90),
1743
- lng: import_zod23.z.number().min(-180).max(180),
1744
- title: import_zod23.z.string().min(1),
1745
- subtitle: import_zod23.z.string().nullable(),
1746
- href: import_zod23.z.string().min(1).nullable(),
1746
+ var MealMapMarkerBaseSchema = import_zod22.z.object({
1747
+ markerId: import_zod22.z.string().min(1),
1748
+ lat: import_zod22.z.number().min(-90).max(90),
1749
+ lng: import_zod22.z.number().min(-180).max(180),
1750
+ title: import_zod22.z.string().min(1),
1751
+ subtitle: import_zod22.z.string().nullable(),
1752
+ href: import_zod22.z.string().min(1).nullable(),
1747
1753
  mealPlanId: MealPlanIdSchema.nullable(),
1748
1754
  articleId: ArticleIdSchema.nullable(),
1749
1755
  restaurant: RestaurantSchema.nullable(),
1750
- distanceMeters: import_zod23.z.number().int().min(0).nullable(),
1756
+ distanceMeters: import_zod22.z.number().int().min(0).nullable(),
1751
1757
  updatedAt: ISODateTimeStringSchema
1752
1758
  });
1753
- var MealMapMyMealPlanPlaceMetadataSchema = import_zod23.z.object({
1759
+ var MealMapMyMealPlanPlaceMetadataSchema = import_zod22.z.object({
1754
1760
  ownerId: MemberIdSchema.nullable().default(null),
1755
- status: import_zod23.z.string().min(1),
1756
- participantCount: import_zod23.z.number().int().min(1),
1757
- source: import_zod23.z.string().min(1)
1761
+ status: import_zod22.z.string().min(1),
1762
+ participantCount: import_zod22.z.number().int().min(1),
1763
+ source: import_zod22.z.string().min(1)
1758
1764
  });
1759
- var MealMapNearbyFriendMealPlanMetadataSchema = import_zod23.z.object({
1765
+ var MealMapNearbyFriendMealPlanMetadataSchema = import_zod22.z.object({
1760
1766
  ownerId: MemberIdSchema.nullable().default(null),
1761
- ownerName: import_zod23.z.string().min(1),
1762
- participantCount: import_zod23.z.number().int().min(1),
1767
+ ownerName: import_zod22.z.string().min(1),
1768
+ participantCount: import_zod22.z.number().int().min(1),
1763
1769
  expiresAt: ISODateTimeStringSchema.nullable(),
1764
- source: import_zod23.z.string().min(1)
1770
+ source: import_zod22.z.string().min(1)
1765
1771
  });
1766
- var MealMapFriendRecordLocationMetadataSchema = import_zod23.z.object({
1772
+ var MealMapFriendRecordLocationMetadataSchema = import_zod22.z.object({
1767
1773
  authorId: MemberIdSchema.nullable().default(null),
1768
- authorName: import_zod23.z.string().min(1),
1769
- imageUrl: import_zod23.z.string().nullable().default(null),
1770
- mealDate: import_zod23.z.string().min(1)
1774
+ authorName: import_zod22.z.string().min(1),
1775
+ imageUrl: import_zod22.z.string().nullable().default(null),
1776
+ mealDate: import_zod22.z.string().min(1)
1771
1777
  });
1772
- var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod23.z.enum([
1778
+ var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod22.z.enum([
1773
1779
  "OWNER_ONLY",
1774
1780
  "STAGE_ALREADY_COMPLETED",
1775
1781
  "MEAL_PLAN_NOT_MUTABLE"
1776
1782
  ]);
1777
- var MealMapRestaurantCandidateMetadataSchema = import_zod23.z.object({
1783
+ var MealMapRestaurantCandidateMetadataSchema = import_zod22.z.object({
1778
1784
  stageId: MealPlanDecisionStageIdSchema,
1779
1785
  ownerId: MemberIdSchema.nullable().default(null),
1780
- status: import_zod23.z.string().min(1),
1781
- source: import_zod23.z.enum(["search", "fallback", "manual"]).default("search"),
1782
- stageStatus: import_zod23.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1783
- canVote: import_zod23.z.boolean().default(false),
1784
- canCompleteStage: import_zod23.z.boolean().default(false),
1786
+ status: import_zod22.z.string().min(1),
1787
+ source: import_zod22.z.enum(["search", "fallback", "manual"]).default("search"),
1788
+ stageStatus: import_zod22.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1789
+ canVote: import_zod22.z.boolean().default(false),
1790
+ canCompleteStage: import_zod22.z.boolean().default(false),
1785
1791
  completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
1786
1792
  });
1787
- var MealMapMarkerSchema = import_zod23.z.discriminatedUnion("layer", [
1793
+ var MealMapMarkerSchema = import_zod22.z.discriminatedUnion("layer", [
1788
1794
  MealMapMarkerBaseSchema.extend({
1789
- layer: import_zod23.z.literal("MY_MEAL_PLAN_PLACE"),
1795
+ layer: import_zod22.z.literal("MY_MEAL_PLAN_PLACE"),
1790
1796
  metadata: MealMapMyMealPlanPlaceMetadataSchema
1791
1797
  }),
1792
1798
  MealMapMarkerBaseSchema.extend({
1793
- layer: import_zod23.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1799
+ layer: import_zod22.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1794
1800
  metadata: MealMapNearbyFriendMealPlanMetadataSchema
1795
1801
  }),
1796
1802
  MealMapMarkerBaseSchema.extend({
1797
- layer: import_zod23.z.literal("FRIEND_RECORD_LOCATION"),
1803
+ layer: import_zod22.z.literal("FRIEND_RECORD_LOCATION"),
1798
1804
  metadata: MealMapFriendRecordLocationMetadataSchema
1799
1805
  }),
1800
1806
  MealMapMarkerBaseSchema.extend({
1801
- layer: import_zod23.z.literal("RESTAURANT_CANDIDATE"),
1807
+ layer: import_zod22.z.literal("RESTAURANT_CANDIDATE"),
1802
1808
  metadata: MealMapRestaurantCandidateMetadataSchema
1803
1809
  })
1804
1810
  ]);
1805
- var MealMapQuerySchema = import_zod23.z.object({
1806
- friendRecordDays: import_zod23.z.coerce.number().int().min(1).max(90).optional().default(7)
1811
+ var MealMapQuerySchema = import_zod22.z.object({
1812
+ friendRecordDays: import_zod22.z.coerce.number().int().min(1).max(90).optional().default(7)
1807
1813
  });
1808
- var MealMapResponseSchema = import_zod23.z.object({
1814
+ var MealMapResponseSchema = import_zod22.z.object({
1809
1815
  generatedAt: ISODateTimeStringSchema,
1810
- center: import_zod23.z.object({
1811
- lat: import_zod23.z.number().min(-90).max(90),
1812
- lng: import_zod23.z.number().min(-180).max(180),
1813
- source: import_zod23.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1816
+ center: import_zod22.z.object({
1817
+ lat: import_zod22.z.number().min(-90).max(90),
1818
+ lng: import_zod22.z.number().min(-180).max(180),
1819
+ source: import_zod22.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1814
1820
  }),
1815
- layers: import_zod23.z.object({
1816
- myMealPlanPlaces: import_zod23.z.array(MealMapMarkerSchema),
1817
- nearbyFriendMealPlans: import_zod23.z.array(MealMapMarkerSchema),
1818
- friendRecordLocations: import_zod23.z.array(MealMapMarkerSchema),
1819
- restaurantCandidates: import_zod23.z.array(MealMapMarkerSchema)
1821
+ layers: import_zod22.z.object({
1822
+ myMealPlanPlaces: import_zod22.z.array(MealMapMarkerSchema),
1823
+ nearbyFriendMealPlans: import_zod22.z.array(MealMapMarkerSchema),
1824
+ friendRecordLocations: import_zod22.z.array(MealMapMarkerSchema),
1825
+ restaurantCandidates: import_zod22.z.array(MealMapMarkerSchema)
1820
1826
  })
1821
1827
  });
1822
1828
 
@@ -1857,222 +1863,222 @@ function compareMealPlanNotificationsByPriority(channel) {
1857
1863
  }
1858
1864
 
1859
1865
  // src/domain/promotion/referral.schema.ts
1860
- var import_zod24 = require("zod");
1861
- var ReferralCreateResponseSchema = import_zod24.z.object({
1866
+ var import_zod23 = require("zod");
1867
+ var ReferralCreateResponseSchema = import_zod23.z.object({
1862
1868
  code: ReferralCodeSchema,
1863
- link: import_zod24.z.string().url(),
1869
+ link: import_zod23.z.string().url(),
1864
1870
  expiresAt: ISODateTimeStringSchema
1865
1871
  });
1866
- var ReferralItemResponseSchema = import_zod24.z.object({
1872
+ var ReferralItemResponseSchema = import_zod23.z.object({
1867
1873
  code: ReferralCodeSchema,
1868
1874
  createdAt: ISODateTimeStringSchema,
1869
1875
  expiresAt: ISODateTimeStringSchema,
1870
- used: import_zod24.z.boolean(),
1876
+ used: import_zod23.z.boolean(),
1871
1877
  usedByMemberId: MemberIdSchema.nullable(),
1872
- usedByUsername: import_zod24.z.string().nullable()
1878
+ usedByUsername: import_zod23.z.string().nullable()
1873
1879
  });
1874
- var RedeemReferralRequestSchema = import_zod24.z.object({
1880
+ var RedeemReferralRequestSchema = import_zod23.z.object({
1875
1881
  code: ReferralCodeSchema
1876
1882
  });
1877
1883
 
1878
1884
  // src/domain/promotion/coupon.schema.ts
1879
- var import_zod25 = require("zod");
1880
- var CouponTypeSchema = import_zod25.z.enum(["DISCOUNT", "SERVICE"]);
1881
- var CouponStatusSchema = import_zod25.z.enum(["UNUSED", "USED"]);
1882
- var CouponResponseSchema = import_zod25.z.object({
1885
+ var import_zod24 = require("zod");
1886
+ var CouponTypeSchema = import_zod24.z.enum(["DISCOUNT", "SERVICE"]);
1887
+ var CouponStatusSchema = import_zod24.z.enum(["UNUSED", "USED"]);
1888
+ var CouponResponseSchema = import_zod24.z.object({
1883
1889
  couponId: CouponIdSchema,
1884
- title: import_zod25.z.string(),
1885
- shopName: import_zod25.z.string(),
1890
+ title: import_zod24.z.string(),
1891
+ shopName: import_zod24.z.string(),
1886
1892
  type: CouponTypeSchema,
1887
- condition: import_zod25.z.string(),
1893
+ condition: import_zod24.z.string(),
1888
1894
  expiresAt: ISODateStringSchema,
1889
- used: import_zod25.z.boolean(),
1890
- thumbnailUrl: import_zod25.z.string().url()
1895
+ used: import_zod24.z.boolean(),
1896
+ thumbnailUrl: import_zod24.z.string().url()
1891
1897
  });
1892
1898
 
1893
1899
  // src/domain/promotion/challenge.schema.ts
1894
- var import_zod26 = require("zod");
1895
- var RewardTypeSchema = import_zod26.z.enum(["WEEK", "MONTH"]);
1896
- var WeekProgressSchema = import_zod26.z.object({
1897
- days: import_zod26.z.array(import_zod26.z.boolean()),
1898
- completed: import_zod26.z.number().int().min(0),
1899
- goal: import_zod26.z.number().int().positive()
1900
+ var import_zod25 = require("zod");
1901
+ var RewardTypeSchema = import_zod25.z.enum(["WEEK", "MONTH"]);
1902
+ var WeekProgressSchema = import_zod25.z.object({
1903
+ days: import_zod25.z.array(import_zod25.z.boolean()),
1904
+ completed: import_zod25.z.number().int().min(0),
1905
+ goal: import_zod25.z.number().int().positive()
1900
1906
  });
1901
- var MonthProgressSchema = import_zod26.z.object({
1902
- count: import_zod26.z.number().int().min(0),
1903
- goal: import_zod26.z.number().int().positive()
1907
+ var MonthProgressSchema = import_zod25.z.object({
1908
+ count: import_zod25.z.number().int().min(0),
1909
+ goal: import_zod25.z.number().int().positive()
1904
1910
  });
1905
- var ChallengeStatusResponseSchema = import_zod26.z.object({
1911
+ var ChallengeStatusResponseSchema = import_zod25.z.object({
1906
1912
  week: WeekProgressSchema,
1907
1913
  month: MonthProgressSchema,
1908
- weekRewardAvailable: import_zod26.z.boolean(),
1909
- monthRewardAvailable: import_zod26.z.boolean()
1914
+ weekRewardAvailable: import_zod25.z.boolean(),
1915
+ monthRewardAvailable: import_zod25.z.boolean()
1910
1916
  });
1911
- var ClaimChallengeRewardRequestSchema = import_zod26.z.object({
1917
+ var ClaimChallengeRewardRequestSchema = import_zod25.z.object({
1912
1918
  type: RewardTypeSchema
1913
1919
  });
1914
- var ClaimChallengeRewardResponseSchema = import_zod26.z.object({
1920
+ var ClaimChallengeRewardResponseSchema = import_zod25.z.object({
1915
1921
  rewardType: RewardTypeSchema,
1916
- claimed: import_zod26.z.boolean()
1922
+ claimed: import_zod25.z.boolean()
1917
1923
  });
1918
1924
 
1919
1925
  // src/domain/push/push.schema.ts
1920
- var import_zod27 = require("zod");
1921
- var PushProviderSchema = import_zod27.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
1922
- var PushPlatformSchema = import_zod27.z.enum(["WEB", "ANDROID", "IOS"]);
1923
- var PushPermissionStatusSchema = import_zod27.z.enum([
1926
+ var import_zod26 = require("zod");
1927
+ var PushProviderSchema = import_zod26.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
1928
+ var PushPlatformSchema = import_zod26.z.enum(["WEB", "ANDROID", "IOS"]);
1929
+ var PushPermissionStatusSchema = import_zod26.z.enum([
1924
1930
  "UNKNOWN",
1925
1931
  "PROMPT",
1926
1932
  "GRANTED",
1927
1933
  "DENIED"
1928
1934
  ]);
1929
- var PushTokenStatusSchema = import_zod27.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
1930
- var RegisterPushTokenRequestSchema = import_zod27.z.object({
1935
+ var PushTokenStatusSchema = import_zod26.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
1936
+ var RegisterPushTokenRequestSchema = import_zod26.z.object({
1931
1937
  provider: PushProviderSchema.default("FCM"),
1932
1938
  platform: PushPlatformSchema,
1933
- token: import_zod27.z.string().min(10),
1934
- deviceId: import_zod27.z.string().min(1).max(128),
1935
- appVersion: import_zod27.z.string().min(1).max(64).optional(),
1936
- buildNumber: import_zod27.z.string().min(1).max(64).optional(),
1939
+ token: import_zod26.z.string().min(10),
1940
+ deviceId: import_zod26.z.string().min(1).max(128),
1941
+ appVersion: import_zod26.z.string().min(1).max(64).optional(),
1942
+ buildNumber: import_zod26.z.string().min(1).max(64).optional(),
1937
1943
  permissionStatus: PushPermissionStatusSchema
1938
1944
  });
1939
- var RevokePushTokenRequestSchema = import_zod27.z.object({
1945
+ var RevokePushTokenRequestSchema = import_zod26.z.object({
1940
1946
  provider: PushProviderSchema.default("FCM"),
1941
- token: import_zod27.z.string().min(10).optional(),
1942
- deviceId: import_zod27.z.string().min(1).max(128).optional()
1947
+ token: import_zod26.z.string().min(10).optional(),
1948
+ deviceId: import_zod26.z.string().min(1).max(128).optional()
1943
1949
  });
1944
- var PushTokenResponseSchema = import_zod27.z.object({
1945
- pushTokenId: import_zod27.z.string().uuid(),
1950
+ var PushTokenResponseSchema = import_zod26.z.object({
1951
+ pushTokenId: import_zod26.z.string().uuid(),
1946
1952
  provider: PushProviderSchema,
1947
1953
  platform: PushPlatformSchema,
1948
- deviceId: import_zod27.z.string(),
1954
+ deviceId: import_zod26.z.string(),
1949
1955
  status: PushTokenStatusSchema,
1950
1956
  permissionStatus: PushPermissionStatusSchema,
1951
- appVersion: import_zod27.z.string().nullable(),
1952
- buildNumber: import_zod27.z.string().nullable(),
1957
+ appVersion: import_zod26.z.string().nullable(),
1958
+ buildNumber: import_zod26.z.string().nullable(),
1953
1959
  lastSeenAt: ISODateTimeStringSchema,
1954
1960
  revokedAt: ISODateTimeStringSchema.nullable()
1955
1961
  });
1956
- var PushPayloadSchemaVersionSchema = import_zod27.z.literal("2026-06-17");
1957
- var MealPlanPushPayloadDataSchema = import_zod27.z.object({
1962
+ var PushPayloadSchemaVersionSchema = import_zod26.z.literal("2026-06-17");
1963
+ var MealPlanPushPayloadDataSchema = import_zod26.z.object({
1958
1964
  schemaVersion: PushPayloadSchemaVersionSchema,
1959
- notificationId: import_zod27.z.string().min(1),
1965
+ notificationId: import_zod26.z.string().min(1),
1960
1966
  kind: MealPlanNotificationKindSchema,
1961
1967
  mealPlanId: MealPlanIdSchema,
1962
- deepLink: import_zod27.z.string().min(1),
1963
- title: import_zod27.z.string().min(1),
1964
- body: import_zod27.z.string().min(1),
1965
- fcmPriority: import_zod27.z.coerce.number().int().min(0),
1966
- liveActivityPriority: import_zod27.z.coerce.number().int().min(0),
1968
+ deepLink: import_zod26.z.string().min(1),
1969
+ title: import_zod26.z.string().min(1),
1970
+ body: import_zod26.z.string().min(1),
1971
+ fcmPriority: import_zod26.z.coerce.number().int().min(0),
1972
+ liveActivityPriority: import_zod26.z.coerce.number().int().min(0),
1967
1973
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
1968
1974
  });
1969
- var PushDeliveryStatusSchema = import_zod27.z.enum([
1975
+ var PushDeliveryStatusSchema = import_zod26.z.enum([
1970
1976
  "PENDING",
1971
1977
  "SENT",
1972
1978
  "FAILED",
1973
1979
  "SKIPPED"
1974
1980
  ]);
1975
- var PushDeliveryAttemptResultSchema = import_zod27.z.enum([
1981
+ var PushDeliveryAttemptResultSchema = import_zod26.z.enum([
1976
1982
  "SENT",
1977
1983
  "FAILED",
1978
1984
  "SKIPPED"
1979
1985
  ]);
1980
- var PushDeliveryAttemptSummarySchema = import_zod27.z.object({
1981
- attemptId: import_zod27.z.string().uuid(),
1982
- outboxId: import_zod27.z.string().uuid(),
1983
- pushTokenId: import_zod27.z.string().uuid().nullable(),
1986
+ var PushDeliveryAttemptSummarySchema = import_zod26.z.object({
1987
+ attemptId: import_zod26.z.string().uuid(),
1988
+ outboxId: import_zod26.z.string().uuid(),
1989
+ pushTokenId: import_zod26.z.string().uuid().nullable(),
1984
1990
  provider: PushProviderSchema,
1985
1991
  result: PushDeliveryAttemptResultSchema,
1986
- providerMessageId: import_zod27.z.string().nullable(),
1987
- errorCode: import_zod27.z.string().nullable(),
1988
- errorMessage: import_zod27.z.string().nullable(),
1989
- invalidToken: import_zod27.z.boolean(),
1992
+ providerMessageId: import_zod26.z.string().nullable(),
1993
+ errorCode: import_zod26.z.string().nullable(),
1994
+ errorMessage: import_zod26.z.string().nullable(),
1995
+ invalidToken: import_zod26.z.boolean(),
1990
1996
  createdAt: ISODateTimeStringSchema
1991
1997
  });
1992
- var PushDeliveryOutboxSummarySchema = import_zod27.z.object({
1993
- outboxId: import_zod27.z.string().uuid(),
1994
- notificationId: import_zod27.z.string().min(1),
1995
- memberId: import_zod27.z.number().int().positive(),
1998
+ var PushDeliveryOutboxSummarySchema = import_zod26.z.object({
1999
+ outboxId: import_zod26.z.string().uuid(),
2000
+ notificationId: import_zod26.z.string().min(1),
2001
+ memberId: import_zod26.z.number().int().positive(),
1996
2002
  status: PushDeliveryStatusSchema,
1997
- attemptCount: import_zod27.z.number().int().min(0),
1998
- lastError: import_zod27.z.string().nullable(),
2003
+ attemptCount: import_zod26.z.number().int().min(0),
2004
+ lastError: import_zod26.z.string().nullable(),
1999
2005
  nextAttemptAt: ISODateTimeStringSchema.nullable(),
2000
2006
  sentAt: ISODateTimeStringSchema.nullable(),
2001
2007
  createdAt: ISODateTimeStringSchema
2002
2008
  });
2003
2009
 
2004
2010
  // src/domain/live-activity/live-activity.schema.ts
2005
- var import_zod28 = require("zod");
2006
- var MealPlanLiveActivityPlatformSchema = import_zod28.z.enum([
2011
+ var import_zod27 = require("zod");
2012
+ var MealPlanLiveActivityPlatformSchema = import_zod27.z.enum([
2007
2013
  "IOS_LIVE_ACTIVITY",
2008
2014
  "ANDROID_LIVE_UPDATE"
2009
2015
  ]);
2010
- var MealPlanLiveActivitySessionStatusSchema = import_zod28.z.enum([
2016
+ var MealPlanLiveActivitySessionStatusSchema = import_zod27.z.enum([
2011
2017
  "ACTIVE",
2012
2018
  "ENDED",
2013
2019
  "EXPIRED",
2014
2020
  "DISABLED"
2015
2021
  ]);
2016
- var MealPlanLiveActivityUpdateStatusSchema = import_zod28.z.enum([
2022
+ var MealPlanLiveActivityUpdateStatusSchema = import_zod27.z.enum([
2017
2023
  "PENDING",
2018
2024
  "SENT",
2019
2025
  "FAILED",
2020
2026
  "SKIPPED"
2021
2027
  ]);
2022
- var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod28.z.object({
2028
+ var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
2023
2029
  platform: MealPlanLiveActivityPlatformSchema,
2024
- deviceId: import_zod28.z.string().min(1).max(128),
2025
- activityId: import_zod28.z.string().min(1).max(128),
2026
- pushToken: import_zod28.z.string().min(10).optional(),
2027
- appVersion: import_zod28.z.string().min(1).max(64).optional(),
2028
- buildNumber: import_zod28.z.string().min(1).max(64).optional()
2030
+ deviceId: import_zod27.z.string().min(1).max(128),
2031
+ activityId: import_zod27.z.string().min(1).max(128),
2032
+ pushToken: import_zod27.z.string().min(10).optional(),
2033
+ appVersion: import_zod27.z.string().min(1).max(64).optional(),
2034
+ buildNumber: import_zod27.z.string().min(1).max(64).optional()
2029
2035
  });
2030
- var EndMealPlanLiveActivitySessionRequestSchema = import_zod28.z.object({
2036
+ var EndMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
2031
2037
  platform: MealPlanLiveActivityPlatformSchema.optional(),
2032
- deviceId: import_zod28.z.string().min(1).max(128).optional(),
2033
- activityId: import_zod28.z.string().min(1).max(128).optional()
2038
+ deviceId: import_zod27.z.string().min(1).max(128).optional(),
2039
+ activityId: import_zod27.z.string().min(1).max(128).optional()
2034
2040
  });
2035
- var MealPlanLiveActivityStateSchema = import_zod28.z.object({
2041
+ var MealPlanLiveActivityStateSchema = import_zod27.z.object({
2036
2042
  mealPlanId: MealPlanIdSchema,
2037
- title: import_zod28.z.string().min(1),
2038
- status: import_zod28.z.string().min(1),
2043
+ title: import_zod27.z.string().min(1),
2044
+ status: import_zod27.z.string().min(1),
2039
2045
  scheduledAt: ISODateTimeStringSchema.nullable(),
2040
- restaurantName: import_zod28.z.string().nullable(),
2041
- placeName: import_zod28.z.string().nullable(),
2042
- deepLink: import_zod28.z.string().min(1),
2043
- progressLabel: import_zod28.z.string().min(1),
2046
+ restaurantName: import_zod27.z.string().nullable(),
2047
+ placeName: import_zod27.z.string().nullable(),
2048
+ deepLink: import_zod27.z.string().min(1),
2049
+ progressLabel: import_zod27.z.string().min(1),
2044
2050
  updatedAt: ISODateTimeStringSchema
2045
2051
  });
2046
- var MealPlanLiveActivitySessionResponseSchema = import_zod28.z.object({
2047
- sessionId: import_zod28.z.string().uuid(),
2052
+ var MealPlanLiveActivitySessionResponseSchema = import_zod27.z.object({
2053
+ sessionId: import_zod27.z.string().uuid(),
2048
2054
  mealPlanId: MealPlanIdSchema,
2049
- memberId: import_zod28.z.number().int().positive(),
2055
+ memberId: import_zod27.z.number().int().positive(),
2050
2056
  platform: MealPlanLiveActivityPlatformSchema,
2051
2057
  devicePlatform: PushPlatformSchema,
2052
- deviceId: import_zod28.z.string(),
2053
- activityId: import_zod28.z.string(),
2058
+ deviceId: import_zod27.z.string(),
2059
+ activityId: import_zod27.z.string(),
2054
2060
  status: MealPlanLiveActivitySessionStatusSchema,
2055
- appVersion: import_zod28.z.string().nullable(),
2056
- buildNumber: import_zod28.z.string().nullable(),
2061
+ appVersion: import_zod27.z.string().nullable(),
2062
+ buildNumber: import_zod27.z.string().nullable(),
2057
2063
  lastEventKind: MealPlanNotificationKindSchema.nullable(),
2058
2064
  lastBehavior: MealPlanLiveActivityBehaviorSchema.nullable(),
2059
2065
  lastUpdateStatus: MealPlanLiveActivityUpdateStatusSchema.nullable(),
2060
- lastError: import_zod28.z.string().nullable(),
2066
+ lastError: import_zod27.z.string().nullable(),
2061
2067
  startedAt: ISODateTimeStringSchema,
2062
2068
  endedAt: ISODateTimeStringSchema.nullable(),
2063
2069
  updatedAt: ISODateTimeStringSchema
2064
2070
  });
2065
- var MealPlanLiveActivitySessionListResponseSchema = import_zod28.z.object({
2071
+ var MealPlanLiveActivitySessionListResponseSchema = import_zod27.z.object({
2066
2072
  mealPlanId: MealPlanIdSchema,
2067
2073
  state: MealPlanLiveActivityStateSchema,
2068
- sessions: import_zod28.z.array(MealPlanLiveActivitySessionResponseSchema)
2074
+ sessions: import_zod27.z.array(MealPlanLiveActivitySessionResponseSchema)
2069
2075
  });
2070
2076
 
2071
2077
  // src/domain/common/contracts/endpoint.ts
2072
- var import_zod29 = require("zod");
2073
- var NoBodySchema = import_zod29.z.undefined();
2074
- var NoQuerySchema = import_zod29.z.undefined();
2075
- var NoParamsSchema = import_zod29.z.undefined();
2078
+ var import_zod28 = require("zod");
2079
+ var NoBodySchema = import_zod28.z.undefined();
2080
+ var NoQuerySchema = import_zod28.z.undefined();
2081
+ var NoParamsSchema = import_zod28.z.undefined();
2076
2082
  var endpoint = (contract) => ({
2077
2083
  method: contract.method,
2078
2084
  path: contract.path,
@@ -2083,12 +2089,12 @@ var endpoint = (contract) => ({
2083
2089
  });
2084
2090
 
2085
2091
  // src/domain/common/contracts/api.ts
2086
- var memberIdParam = import_zod30.z.object({ memberId: MemberIdSchema });
2087
- var articleIdParam = import_zod30.z.object({ articleId: ArticleIdSchema });
2088
- var commentIdParam = import_zod30.z.object({ commentId: CommentIdSchema });
2089
- var mealPlanIdParam = import_zod30.z.object({ mealPlanId: MealPlanIdSchema });
2090
- var mealPlanInviteIdParam = import_zod30.z.object({ inviteId: MealPlanInviteIdSchema });
2091
- var mealPlanJoinRequestIdParam = import_zod30.z.object({ requestId: MealPlanJoinRequestIdSchema });
2092
+ var memberIdParam = import_zod29.z.object({ memberId: MemberIdSchema });
2093
+ var articleIdParam = import_zod29.z.object({ articleId: ArticleIdSchema });
2094
+ var commentIdParam = import_zod29.z.object({ commentId: CommentIdSchema });
2095
+ var mealPlanIdParam = import_zod29.z.object({ mealPlanId: MealPlanIdSchema });
2096
+ var mealPlanInviteIdParam = import_zod29.z.object({ inviteId: MealPlanInviteIdSchema });
2097
+ var mealPlanJoinRequestIdParam = import_zod29.z.object({ requestId: MealPlanJoinRequestIdSchema });
2092
2098
  var mealPlanDecisionStageIdParam = mealPlanIdParam.extend({
2093
2099
  stageId: MealPlanDecisionStageIdSchema
2094
2100
  });
@@ -2099,18 +2105,18 @@ var mealPlanDecisionTaskKeyParam = mealPlanIdParam.extend({
2099
2105
  taskKey: MealPlanDecisionTaskKeySchema
2100
2106
  });
2101
2107
  var mealPlanDecisionSnapshotIdParam = mealPlanIdParam.extend({
2102
- snapshotId: import_zod30.z.string().uuid()
2108
+ snapshotId: import_zod29.z.string().uuid()
2103
2109
  });
2104
2110
  var mealPlanParticipantIdParam = mealPlanIdParam.extend({
2105
- participantId: import_zod30.z.string().uuid()
2111
+ participantId: import_zod29.z.string().uuid()
2106
2112
  });
2107
- var mealPlanShareTokenParam = import_zod30.z.object({ token: MealPlanShareLinkTokenSchema });
2108
- var notificationIdParam = import_zod30.z.object({ notificationId: import_zod30.z.string().min(1) });
2109
- var couponIdParam = import_zod30.z.object({ couponId: CouponIdSchema });
2110
- var mealGroupIdParam = import_zod30.z.object({ mealGroupId: MealGroupIdSchema });
2113
+ var mealPlanShareTokenParam = import_zod29.z.object({ token: MealPlanShareLinkTokenSchema });
2114
+ var notificationIdParam = import_zod29.z.object({ notificationId: import_zod29.z.string().min(1) });
2115
+ var couponIdParam = import_zod29.z.object({ couponId: CouponIdSchema });
2116
+ var mealGroupIdParam = import_zod29.z.object({ mealGroupId: MealGroupIdSchema });
2111
2117
  var mealGroupMemberIdParam = mealGroupIdParam.extend({ memberId: MemberIdSchema });
2112
- var friendRequestIdParam = import_zod30.z.object({ requestId: FriendRequestIdSchema });
2113
- var sseTokenQuery = import_zod30.z.object({ token: import_zod30.z.string().min(1) });
2118
+ var friendRequestIdParam = import_zod29.z.object({ requestId: FriendRequestIdSchema });
2119
+ var sseTokenQuery = import_zod29.z.object({ token: import_zod29.z.string().min(1) });
2114
2120
  var apiContract = {
2115
2121
  auth: {
2116
2122
  signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
@@ -2138,7 +2144,7 @@ var apiContract = {
2138
2144
  mealStatus: {
2139
2145
  my: endpoint({ method: "GET", path: "/members/me/meal-status", response: MealStatusResponseSchema }),
2140
2146
  updateMealStatus: endpoint({ method: "PATCH", path: "/members/me/meal-status", body: UpdateMealStatusRequestSchema, response: NoContentSchema }),
2141
- friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod30.z.array(FriendMealItemResponseSchema) })
2147
+ friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod29.z.array(FriendMealItemResponseSchema) })
2142
2148
  },
2143
2149
  articles: {
2144
2150
  list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
@@ -2177,7 +2183,7 @@ var apiContract = {
2177
2183
  exposeNearbyFriends: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, body: ExposeMealPlanToNearbyFriendsRequestSchema, response: ExposeMealPlanToNearbyFriendsResponseSchema }),
2178
2184
  closeNearbyFriends: endpoint({ method: "DELETE", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, response: NoContentSchema }),
2179
2185
  nearbyFriendExposureEligibility: endpoint({ method: "GET", path: "/meal-plans/nearby-friends/eligibility", response: NearbyFriendExposureEligibilitySchema }),
2180
- nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod30.z.array(NearbyFriendMealPlanSummarySchema) }),
2186
+ nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod29.z.array(NearbyFriendMealPlanSummarySchema) }),
2181
2187
  requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
2182
2188
  acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
2183
2189
  rejectJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/reject", pathParams: mealPlanJoinRequestIdParam, response: NoContentSchema }),
@@ -2193,7 +2199,7 @@ var apiContract = {
2193
2199
  },
2194
2200
  mealGroups: {
2195
2201
  create: endpoint({ method: "POST", path: "/meal-groups", body: CreateMealGroupRequestSchema, response: MealGroupResponseSchema }),
2196
- list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod30.z.array(MealGroupResponseSchema) }),
2202
+ list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod29.z.array(MealGroupResponseSchema) }),
2197
2203
  detail: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId", pathParams: mealGroupIdParam, response: MealGroupResponseSchema }),
2198
2204
  startMealPlan: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/meal-plans", pathParams: mealGroupIdParam, body: StartMealPlanFromGroupRequestSchema, response: CreateMealPlanResponseSchema }),
2199
2205
  history: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/history", pathParams: mealGroupIdParam, response: MealGroupHistoryResponseSchema }),
@@ -2203,11 +2209,11 @@ var apiContract = {
2203
2209
  removeMember: endpoint({ method: "DELETE", path: "/meal-groups/:mealGroupId/members/:memberId", pathParams: mealGroupMemberIdParam, response: MealGroupResponseSchema })
2204
2210
  },
2205
2211
  friends: {
2206
- list: endpoint({ method: "GET", path: "/friends", response: import_zod30.z.array(FriendListItemResponseSchema) }),
2207
- blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod30.z.array(FriendBlockItemResponseSchema) }),
2212
+ list: endpoint({ method: "GET", path: "/friends", response: import_zod29.z.array(FriendListItemResponseSchema) }),
2213
+ blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod29.z.array(FriendBlockItemResponseSchema) }),
2208
2214
  search: endpoint({ method: "GET", path: "/friends/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
2209
- incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod30.z.array(FriendRequestItemResponseSchema) }),
2210
- outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod30.z.array(FriendRequestItemResponseSchema) }),
2215
+ incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
2216
+ outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
2211
2217
  sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
2212
2218
  acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
2213
2219
  rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
@@ -2217,7 +2223,7 @@ var apiContract = {
2217
2223
  unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
2218
2224
  },
2219
2225
  coupons: {
2220
- list: endpoint({ method: "GET", path: "/coupons", response: import_zod30.z.array(CouponResponseSchema) }),
2226
+ list: endpoint({ method: "GET", path: "/coupons", response: import_zod29.z.array(CouponResponseSchema) }),
2221
2227
  use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
2222
2228
  },
2223
2229
  challenges: {
@@ -2225,17 +2231,17 @@ var apiContract = {
2225
2231
  claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
2226
2232
  },
2227
2233
  referrals: {
2228
- list: endpoint({ method: "GET", path: "/referrals", response: import_zod30.z.array(ReferralItemResponseSchema) }),
2234
+ list: endpoint({ method: "GET", path: "/referrals", response: import_zod29.z.array(ReferralItemResponseSchema) }),
2229
2235
  create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
2230
2236
  redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
2231
2237
  },
2232
2238
  notifications: {
2233
- list: endpoint({ method: "GET", path: "/notifications", response: import_zod30.z.array(MealPlanNotificationSchema) }),
2239
+ list: endpoint({ method: "GET", path: "/notifications", response: import_zod29.z.array(MealPlanNotificationSchema) }),
2234
2240
  markRead: endpoint({ method: "PATCH", path: "/notifications/:notificationId/read", pathParams: notificationIdParam, response: MealPlanNotificationSchema }),
2235
2241
  delete: endpoint({ method: "DELETE", path: "/notifications/:notificationId", pathParams: notificationIdParam, response: NoContentSchema })
2236
2242
  },
2237
2243
  pushTokens: {
2238
- list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod30.z.array(PushTokenResponseSchema) }),
2244
+ list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod29.z.array(PushTokenResponseSchema) }),
2239
2245
  register: endpoint({ method: "POST", path: "/push-tokens", body: RegisterPushTokenRequestSchema, response: PushTokenResponseSchema }),
2240
2246
  revoke: endpoint({ method: "POST", path: "/push-tokens/revoke", body: RevokePushTokenRequestSchema, response: NoContentSchema })
2241
2247
  },
@@ -2245,10 +2251,10 @@ var apiContract = {
2245
2251
  endMealPlanSessions: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/end", pathParams: mealPlanIdParam, body: EndMealPlanLiveActivitySessionRequestSchema, response: NoContentSchema })
2246
2252
  },
2247
2253
  sse: {
2248
- notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod30.z.any() })
2254
+ notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod29.z.any() })
2249
2255
  },
2250
2256
  health: {
2251
- healthCheck: endpoint({ method: "GET", path: "/", response: import_zod30.z.string() })
2257
+ healthCheck: endpoint({ method: "GET", path: "/", response: import_zod29.z.string() })
2252
2258
  }
2253
2259
  };
2254
2260
 
@@ -2415,13 +2421,8 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
2415
2421
  MealPlanDecisionStageTypeSchema,
2416
2422
  MealPlanDecisionTaskKeySchema,
2417
2423
  MealPlanDecisionTaskProgressSchema,
2424
+ MealPlanDecisionTaskReadyRequestSchema,
2418
2425
  MealPlanDecisionTaskStatusSchema,
2419
- MealPlanDecisionVoteSocketAckSchema,
2420
- MealPlanDecisionVoteSocketErrorSchema,
2421
- MealPlanDecisionVoteSocketEvent,
2422
- MealPlanDecisionVoteSocketFailureAckSchema,
2423
- MealPlanDecisionVoteSocketPayloadSchema,
2424
- MealPlanDecisionVoteSocketSuccessAckSchema,
2425
2426
  MealPlanGuestParticipantSchema,
2426
2427
  MealPlanGuestSessionQuerySchema,
2427
2428
  MealPlanGuestSessionResponseSchema,
@@ -2449,6 +2450,7 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
2449
2450
  MealPlanMenuCandidateIdSchema,
2450
2451
  MealPlanMenuCandidateSchema,
2451
2452
  MealPlanMenuCandidateSourceSchema,
2453
+ MealPlanMenuRecommendationStateSchema,
2452
2454
  MealPlanNearbyFriendExposureBatchIdSchema,
2453
2455
  MealPlanNearbyFriendExposureBatchSummarySchema,
2454
2456
  MealPlanNearbyFriendExposureIdSchema,
@@ -2562,9 +2564,11 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
2562
2564
  apiContract,
2563
2565
  compareMealPlanNotificationsByPriority,
2564
2566
  endpoint,
2567
+ getMealPlanDecisionCandidateKey,
2565
2568
  getMealPlanLiveActivityBehavior,
2566
2569
  getMealPlanNotificationPriority,
2567
2570
  getMealPlanNotificationPriorityPolicy,
2571
+ getMealPlanRestaurantProvisionCacheKey,
2568
2572
  makeApiResponseSchema,
2569
2573
  makeApiSuccessSchema,
2570
2574
  shouldShowForegroundToast,