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