@kimdaegyu/babmukdang-shared 2.0.3 → 2.0.5

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
@@ -168,6 +168,12 @@ __export(domain_exports, {
168
168
  MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
169
169
  MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
170
170
  MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
171
+ MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
172
+ MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
173
+ MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
174
+ MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
175
+ MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
176
+ MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
171
177
  MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
172
178
  MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
173
179
  MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
@@ -308,6 +314,7 @@ __export(domain_exports, {
308
314
  apiContract: () => apiContract,
309
315
  compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
310
316
  endpoint: () => endpoint,
317
+ getMealPlanDecisionCandidateKey: () => getMealPlanDecisionCandidateKey,
311
318
  getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
312
319
  getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
313
320
  getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
@@ -615,7 +622,7 @@ var SignupResponseSchema = import_zod8.z.object({
615
622
  });
616
623
 
617
624
  // src/domain/common/contracts/api.ts
618
- var import_zod29 = require("zod");
625
+ var import_zod30 = require("zod");
619
626
 
620
627
  // src/domain/common/schema/cache-invalidation.schema.ts
621
628
  var import_zod9 = require("zod");
@@ -1579,219 +1586,261 @@ var MealPlanNotificationSchema = import_zod19.z.object({
1579
1586
  readAt: ISODateTimeStringSchema.nullable()
1580
1587
  });
1581
1588
 
1582
- // src/domain/meal-plan/meal-plan-share-link.schema.ts
1589
+ // src/domain/meal-plan/meal-plan-decision.candidate-key.ts
1590
+ function getMealPlanDecisionCandidateKey(candidate) {
1591
+ switch (candidate.stageType) {
1592
+ case "DATE":
1593
+ case "TIME":
1594
+ return `${candidate.stageType}:${candidate.value}`;
1595
+ case "AREA":
1596
+ return `AREA:${candidate.value.locationId}`;
1597
+ case "MENU":
1598
+ return `MENU:${candidate.value.menuCandidateId}`;
1599
+ case "RESTAURANT":
1600
+ return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
1601
+ case "FINAL_CONFIRMATION":
1602
+ return "FINAL_CONFIRMATION:READY";
1603
+ }
1604
+ }
1605
+
1606
+ // src/domain/meal-plan/meal-plan.socket.ts
1583
1607
  var import_zod20 = require("zod");
1584
- var CreateMealPlanShareLinkRequestSchema = import_zod20.z.object({
1608
+ var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
1609
+ var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
1610
+ mealPlanId: MealPlanIdSchema,
1611
+ stageId: MealPlanDecisionStageIdSchema,
1612
+ guestSessionToken: import_zod20.z.string().min(1).optional()
1613
+ });
1614
+ var MealPlanDecisionVoteSocketErrorSchema = import_zod20.z.object({
1615
+ code: import_zod20.z.string().min(1),
1616
+ message: import_zod20.z.string().min(1)
1617
+ });
1618
+ var MealPlanDecisionVoteSocketSuccessAckSchema = import_zod20.z.object({
1619
+ ok: import_zod20.z.literal(true),
1620
+ mealPlan: MealPlanResponseSchema
1621
+ });
1622
+ var MealPlanDecisionVoteSocketFailureAckSchema = import_zod20.z.object({
1623
+ ok: import_zod20.z.literal(false),
1624
+ error: MealPlanDecisionVoteSocketErrorSchema
1625
+ });
1626
+ var MealPlanDecisionVoteSocketAckSchema = import_zod20.z.discriminatedUnion("ok", [
1627
+ MealPlanDecisionVoteSocketSuccessAckSchema,
1628
+ MealPlanDecisionVoteSocketFailureAckSchema
1629
+ ]);
1630
+
1631
+ // src/domain/meal-plan/meal-plan-share-link.schema.ts
1632
+ var import_zod21 = require("zod");
1633
+ var CreateMealPlanShareLinkRequestSchema = import_zod21.z.object({
1585
1634
  expiresAt: ISODateTimeStringSchema.optional(),
1586
- guestJoinEnabled: import_zod20.z.boolean().default(true)
1635
+ guestJoinEnabled: import_zod21.z.boolean().default(true)
1587
1636
  });
1588
- var MealPlanShareLinkSummarySchema = import_zod20.z.object({
1637
+ var MealPlanShareLinkSummarySchema = import_zod21.z.object({
1589
1638
  shareLinkId: MealPlanShareLinkIdSchema,
1590
1639
  mealPlanId: MealPlanIdSchema,
1591
1640
  token: MealPlanShareLinkTokenSchema,
1592
- url: import_zod20.z.string().url(),
1641
+ url: import_zod21.z.string().url(),
1593
1642
  expiresAt: ISODateTimeStringSchema,
1594
- guestJoinEnabled: import_zod20.z.boolean(),
1643
+ guestJoinEnabled: import_zod21.z.boolean(),
1595
1644
  createdAt: ISODateTimeStringSchema
1596
1645
  });
1597
- var MealPlanSharePreviewResponseSchema = import_zod20.z.object({
1646
+ var MealPlanSharePreviewResponseSchema = import_zod21.z.object({
1598
1647
  mealPlanId: MealPlanIdSchema,
1599
1648
  token: MealPlanShareLinkTokenSchema,
1600
- title: import_zod20.z.string(),
1601
- ownerName: import_zod20.z.string(),
1602
- participantCount: import_zod20.z.number().int().min(1),
1649
+ title: import_zod21.z.string(),
1650
+ ownerName: import_zod21.z.string(),
1651
+ participantCount: import_zod21.z.number().int().min(1),
1603
1652
  expiresAt: ISODateTimeStringSchema,
1604
- guestJoinEnabled: import_zod20.z.boolean()
1653
+ guestJoinEnabled: import_zod21.z.boolean()
1605
1654
  });
1606
- var JoinMealPlanGuestRequestSchema = import_zod20.z.object({
1607
- nickname: import_zod20.z.string().min(1).max(50),
1608
- password: import_zod20.z.string().min(1).max(100).optional()
1655
+ var JoinMealPlanGuestRequestSchema = import_zod21.z.object({
1656
+ nickname: import_zod21.z.string().min(1).max(50),
1657
+ password: import_zod21.z.string().min(1).max(100).optional()
1609
1658
  });
1610
- var JoinMealPlanGuestResponseSchema = import_zod20.z.object({
1659
+ var JoinMealPlanGuestResponseSchema = import_zod21.z.object({
1611
1660
  mealPlanId: MealPlanIdSchema,
1612
- guestId: import_zod20.z.string().min(1),
1613
- sessionToken: import_zod20.z.string().min(1)
1661
+ guestId: import_zod21.z.string().min(1),
1662
+ sessionToken: import_zod21.z.string().min(1)
1614
1663
  });
1615
- var MealPlanGuestSessionQuerySchema = import_zod20.z.object({
1616
- sessionToken: import_zod20.z.string().min(1)
1664
+ var MealPlanGuestSessionQuerySchema = import_zod21.z.object({
1665
+ sessionToken: import_zod21.z.string().min(1)
1617
1666
  });
1618
- var MealPlanGuestSessionResponseSchema = import_zod20.z.object({
1667
+ var MealPlanGuestSessionResponseSchema = import_zod21.z.object({
1619
1668
  mealPlan: MealPlanResponseSchema,
1620
1669
  token: MealPlanShareLinkTokenSchema,
1621
- guestId: import_zod20.z.string().min(1),
1622
- nickname: import_zod20.z.string().min(1).max(50),
1623
- sessionToken: import_zod20.z.string().min(1)
1670
+ guestId: import_zod21.z.string().min(1),
1671
+ nickname: import_zod21.z.string().min(1).max(50),
1672
+ sessionToken: import_zod21.z.string().min(1)
1624
1673
  });
1625
1674
 
1626
1675
  // src/domain/meal-plan/meal-group.schema.ts
1627
- var import_zod21 = require("zod");
1628
- var MealGroupMemberRoleSchema = import_zod21.z.enum([
1676
+ var import_zod22 = require("zod");
1677
+ var MealGroupMemberRoleSchema = import_zod22.z.enum([
1629
1678
  "OWNER",
1630
1679
  "MEMBER"
1631
1680
  ]);
1632
- var MealGroupMemberSchema = import_zod21.z.object({
1681
+ var MealGroupMemberSchema = import_zod22.z.object({
1633
1682
  member: MemberCoreSchema,
1634
1683
  role: MealGroupMemberRoleSchema,
1635
1684
  joinedAt: ISODateTimeStringSchema
1636
1685
  });
1637
- var MealGroupResponseSchema = import_zod21.z.object({
1686
+ var MealGroupResponseSchema = import_zod22.z.object({
1638
1687
  mealGroupId: MealGroupIdSchema,
1639
- name: import_zod21.z.string().min(1).max(50),
1688
+ name: import_zod22.z.string().min(1).max(50),
1640
1689
  owner: MemberCoreSchema,
1641
- profileImageUrl: import_zod21.z.string().url().nullable(),
1642
- members: import_zod21.z.array(MealGroupMemberSchema),
1643
- recentMealPlanIds: import_zod21.z.array(MealPlanIdSchema),
1690
+ profileImageUrl: import_zod22.z.string().url().nullable(),
1691
+ members: import_zod22.z.array(MealGroupMemberSchema),
1692
+ recentMealPlanIds: import_zod22.z.array(MealPlanIdSchema),
1644
1693
  createdAt: ISODateTimeStringSchema,
1645
1694
  updatedAt: ISODateTimeStringSchema
1646
1695
  });
1647
- var CreateMealGroupRequestSchema = import_zod21.z.object({
1648
- name: import_zod21.z.string().min(1).max(50),
1649
- memberIds: import_zod21.z.array(import_zod21.z.number().int().positive()).min(1),
1650
- profileImageUrl: import_zod21.z.string().url().nullable().optional(),
1696
+ var CreateMealGroupRequestSchema = import_zod22.z.object({
1697
+ name: import_zod22.z.string().min(1).max(50),
1698
+ memberIds: import_zod22.z.array(import_zod22.z.number().int().positive()).min(1),
1699
+ profileImageUrl: import_zod22.z.string().url().nullable().optional(),
1651
1700
  sourceMealPlanId: MealPlanIdSchema.optional()
1652
1701
  });
1653
- var StartMealPlanFromGroupRequestSchema = import_zod21.z.object({
1654
- title: import_zod21.z.string().min(1).max(100).optional()
1702
+ var StartMealPlanFromGroupRequestSchema = import_zod22.z.object({
1703
+ title: import_zod22.z.string().min(1).max(100).optional()
1655
1704
  });
1656
- var AddMealGroupMemberRequestSchema = import_zod21.z.object({
1657
- memberId: import_zod21.z.number().int().positive(),
1705
+ var AddMealGroupMemberRequestSchema = import_zod22.z.object({
1706
+ memberId: import_zod22.z.number().int().positive(),
1658
1707
  role: MealGroupMemberRoleSchema.default("MEMBER")
1659
1708
  });
1660
- var UpdateMealGroupMemberRoleRequestSchema = import_zod21.z.object({
1709
+ var UpdateMealGroupMemberRoleRequestSchema = import_zod22.z.object({
1661
1710
  role: MealGroupMemberRoleSchema
1662
1711
  });
1663
1712
  var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
1664
- var MealGroupPreferenceSummarySchema = import_zod21.z.object({
1713
+ var MealGroupPreferenceSummarySchema = import_zod22.z.object({
1665
1714
  mealGroupId: MealGroupIdSchema,
1666
- frequentMenuCategories: import_zod21.z.array(import_zod21.z.object({ label: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
1667
- frequentRestaurants: import_zod21.z.array(import_zod21.z.object({ restaurantName: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
1668
- recentMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1669
- recommendationContext: import_zod21.z.object({
1670
- preferredMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1671
- excludedMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1672
- candidateMenuCategories: import_zod21.z.array(import_zod21.z.string())
1715
+ frequentMenuCategories: import_zod22.z.array(import_zod22.z.object({ label: import_zod22.z.string(), count: import_zod22.z.number().int().min(0) })),
1716
+ frequentRestaurants: import_zod22.z.array(import_zod22.z.object({ restaurantName: import_zod22.z.string(), count: import_zod22.z.number().int().min(0) })),
1717
+ recentMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1718
+ recommendationContext: import_zod22.z.object({
1719
+ preferredMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1720
+ excludedMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1721
+ candidateMenuCategories: import_zod22.z.array(import_zod22.z.string())
1673
1722
  })
1674
1723
  });
1675
- var MealGroupHistoryResponseSchema = import_zod21.z.array(MealGroupHistoryItemSchema);
1724
+ var MealGroupHistoryResponseSchema = import_zod22.z.array(MealGroupHistoryItemSchema);
1676
1725
 
1677
1726
  // src/domain/meal-plan/meal-plan-home-map.schema.ts
1678
- var import_zod22 = require("zod");
1679
- var HomeMealPlanActionKindSchema = import_zod22.z.enum([
1727
+ var import_zod23 = require("zod");
1728
+ var HomeMealPlanActionKindSchema = import_zod23.z.enum([
1680
1729
  "CONTINUE_DECISION",
1681
1730
  "TODAY_UPCOMING",
1682
1731
  "RECORD_NEEDED",
1683
1732
  "RESPOND_JOIN_REQUEST",
1684
1733
  "NOTIFICATION_FOLLOW_UP"
1685
1734
  ]);
1686
- var HomeMealPlanActionCardSchema = import_zod22.z.object({
1687
- actionId: import_zod22.z.string().min(1),
1735
+ var HomeMealPlanActionCardSchema = import_zod23.z.object({
1736
+ actionId: import_zod23.z.string().min(1),
1688
1737
  kind: HomeMealPlanActionKindSchema,
1689
- priority: import_zod22.z.number().int().min(0),
1690
- title: import_zod22.z.string().min(1),
1691
- description: import_zod22.z.string().min(1),
1692
- primaryAction: import_zod22.z.object({
1693
- label: import_zod22.z.string().min(1),
1694
- href: import_zod22.z.string().min(1)
1738
+ priority: import_zod23.z.number().int().min(0),
1739
+ title: import_zod23.z.string().min(1),
1740
+ description: import_zod23.z.string().min(1),
1741
+ primaryAction: import_zod23.z.object({
1742
+ label: import_zod23.z.string().min(1),
1743
+ href: import_zod23.z.string().min(1)
1695
1744
  }),
1696
1745
  mealPlan: MyMealPlanListItemSchema.nullable(),
1697
1746
  joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
1698
1747
  notification: MealPlanNotificationSchema.nullable().default(null)
1699
1748
  });
1700
- var HomeMealPlanDashboardResponseSchema = import_zod22.z.object({
1749
+ var HomeMealPlanDashboardResponseSchema = import_zod23.z.object({
1701
1750
  generatedAt: ISODateTimeStringSchema,
1702
- inProgress: import_zod22.z.array(MyMealPlanListItemSchema),
1703
- today: import_zod22.z.array(MyMealPlanListItemSchema),
1704
- recordNeeded: import_zod22.z.array(MyMealPlanListItemSchema),
1705
- pendingJoinRequests: import_zod22.z.array(MealPlanJoinRequestSummarySchema),
1706
- unreadNotifications: import_zod22.z.array(MealPlanNotificationSchema).default([]),
1707
- nextActions: import_zod22.z.array(HomeMealPlanActionCardSchema)
1708
- });
1709
- var MealMapLayerSchema = import_zod22.z.enum([
1751
+ inProgress: import_zod23.z.array(MyMealPlanListItemSchema),
1752
+ today: import_zod23.z.array(MyMealPlanListItemSchema),
1753
+ recordNeeded: import_zod23.z.array(MyMealPlanListItemSchema),
1754
+ pendingJoinRequests: import_zod23.z.array(MealPlanJoinRequestSummarySchema),
1755
+ unreadNotifications: import_zod23.z.array(MealPlanNotificationSchema).default([]),
1756
+ nextActions: import_zod23.z.array(HomeMealPlanActionCardSchema)
1757
+ });
1758
+ var MealMapLayerSchema = import_zod23.z.enum([
1710
1759
  "MY_MEAL_PLAN_PLACE",
1711
1760
  "NEARBY_FRIEND_MEAL_PLAN",
1712
1761
  "FRIEND_RECORD_LOCATION",
1713
1762
  "RESTAURANT_CANDIDATE"
1714
1763
  ]);
1715
- var MealMapMarkerBaseSchema = import_zod22.z.object({
1716
- markerId: import_zod22.z.string().min(1),
1717
- lat: import_zod22.z.number().min(-90).max(90),
1718
- lng: import_zod22.z.number().min(-180).max(180),
1719
- title: import_zod22.z.string().min(1),
1720
- subtitle: import_zod22.z.string().nullable(),
1721
- href: import_zod22.z.string().min(1).nullable(),
1764
+ var MealMapMarkerBaseSchema = import_zod23.z.object({
1765
+ markerId: import_zod23.z.string().min(1),
1766
+ lat: import_zod23.z.number().min(-90).max(90),
1767
+ lng: import_zod23.z.number().min(-180).max(180),
1768
+ title: import_zod23.z.string().min(1),
1769
+ subtitle: import_zod23.z.string().nullable(),
1770
+ href: import_zod23.z.string().min(1).nullable(),
1722
1771
  mealPlanId: MealPlanIdSchema.nullable(),
1723
1772
  articleId: ArticleIdSchema.nullable(),
1724
1773
  restaurant: RestaurantSchema.nullable(),
1725
- distanceMeters: import_zod22.z.number().int().min(0).nullable(),
1774
+ distanceMeters: import_zod23.z.number().int().min(0).nullable(),
1726
1775
  updatedAt: ISODateTimeStringSchema
1727
1776
  });
1728
- var MealMapMyMealPlanPlaceMetadataSchema = import_zod22.z.object({
1777
+ var MealMapMyMealPlanPlaceMetadataSchema = import_zod23.z.object({
1729
1778
  ownerId: MemberIdSchema.nullable().default(null),
1730
- status: import_zod22.z.string().min(1),
1731
- participantCount: import_zod22.z.number().int().min(1),
1732
- source: import_zod22.z.string().min(1)
1779
+ status: import_zod23.z.string().min(1),
1780
+ participantCount: import_zod23.z.number().int().min(1),
1781
+ source: import_zod23.z.string().min(1)
1733
1782
  });
1734
- var MealMapNearbyFriendMealPlanMetadataSchema = import_zod22.z.object({
1783
+ var MealMapNearbyFriendMealPlanMetadataSchema = import_zod23.z.object({
1735
1784
  ownerId: MemberIdSchema.nullable().default(null),
1736
- ownerName: import_zod22.z.string().min(1),
1737
- participantCount: import_zod22.z.number().int().min(1),
1785
+ ownerName: import_zod23.z.string().min(1),
1786
+ participantCount: import_zod23.z.number().int().min(1),
1738
1787
  expiresAt: ISODateTimeStringSchema.nullable(),
1739
- source: import_zod22.z.string().min(1)
1788
+ source: import_zod23.z.string().min(1)
1740
1789
  });
1741
- var MealMapFriendRecordLocationMetadataSchema = import_zod22.z.object({
1790
+ var MealMapFriendRecordLocationMetadataSchema = import_zod23.z.object({
1742
1791
  authorId: MemberIdSchema.nullable().default(null),
1743
- authorName: import_zod22.z.string().min(1),
1744
- imageUrl: import_zod22.z.string().nullable().default(null),
1745
- mealDate: import_zod22.z.string().min(1)
1792
+ authorName: import_zod23.z.string().min(1),
1793
+ imageUrl: import_zod23.z.string().nullable().default(null),
1794
+ mealDate: import_zod23.z.string().min(1)
1746
1795
  });
1747
- var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod22.z.enum([
1796
+ var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod23.z.enum([
1748
1797
  "OWNER_ONLY",
1749
1798
  "STAGE_ALREADY_COMPLETED",
1750
1799
  "MEAL_PLAN_NOT_MUTABLE"
1751
1800
  ]);
1752
- var MealMapRestaurantCandidateMetadataSchema = import_zod22.z.object({
1801
+ var MealMapRestaurantCandidateMetadataSchema = import_zod23.z.object({
1753
1802
  stageId: MealPlanDecisionStageIdSchema,
1754
1803
  ownerId: MemberIdSchema.nullable().default(null),
1755
- status: import_zod22.z.string().min(1),
1756
- source: import_zod22.z.enum(["search", "fallback", "manual"]).default("search"),
1757
- stageStatus: import_zod22.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1758
- canVote: import_zod22.z.boolean().default(false),
1759
- canCompleteStage: import_zod22.z.boolean().default(false),
1804
+ status: import_zod23.z.string().min(1),
1805
+ source: import_zod23.z.enum(["search", "fallback", "manual"]).default("search"),
1806
+ stageStatus: import_zod23.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1807
+ canVote: import_zod23.z.boolean().default(false),
1808
+ canCompleteStage: import_zod23.z.boolean().default(false),
1760
1809
  completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
1761
1810
  });
1762
- var MealMapMarkerSchema = import_zod22.z.discriminatedUnion("layer", [
1811
+ var MealMapMarkerSchema = import_zod23.z.discriminatedUnion("layer", [
1763
1812
  MealMapMarkerBaseSchema.extend({
1764
- layer: import_zod22.z.literal("MY_MEAL_PLAN_PLACE"),
1813
+ layer: import_zod23.z.literal("MY_MEAL_PLAN_PLACE"),
1765
1814
  metadata: MealMapMyMealPlanPlaceMetadataSchema
1766
1815
  }),
1767
1816
  MealMapMarkerBaseSchema.extend({
1768
- layer: import_zod22.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1817
+ layer: import_zod23.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1769
1818
  metadata: MealMapNearbyFriendMealPlanMetadataSchema
1770
1819
  }),
1771
1820
  MealMapMarkerBaseSchema.extend({
1772
- layer: import_zod22.z.literal("FRIEND_RECORD_LOCATION"),
1821
+ layer: import_zod23.z.literal("FRIEND_RECORD_LOCATION"),
1773
1822
  metadata: MealMapFriendRecordLocationMetadataSchema
1774
1823
  }),
1775
1824
  MealMapMarkerBaseSchema.extend({
1776
- layer: import_zod22.z.literal("RESTAURANT_CANDIDATE"),
1825
+ layer: import_zod23.z.literal("RESTAURANT_CANDIDATE"),
1777
1826
  metadata: MealMapRestaurantCandidateMetadataSchema
1778
1827
  })
1779
1828
  ]);
1780
- var MealMapQuerySchema = import_zod22.z.object({
1781
- friendRecordDays: import_zod22.z.coerce.number().int().min(1).max(90).optional().default(7)
1829
+ var MealMapQuerySchema = import_zod23.z.object({
1830
+ friendRecordDays: import_zod23.z.coerce.number().int().min(1).max(90).optional().default(7)
1782
1831
  });
1783
- var MealMapResponseSchema = import_zod22.z.object({
1832
+ var MealMapResponseSchema = import_zod23.z.object({
1784
1833
  generatedAt: ISODateTimeStringSchema,
1785
- center: import_zod22.z.object({
1786
- lat: import_zod22.z.number().min(-90).max(90),
1787
- lng: import_zod22.z.number().min(-180).max(180),
1788
- source: import_zod22.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1834
+ center: import_zod23.z.object({
1835
+ lat: import_zod23.z.number().min(-90).max(90),
1836
+ lng: import_zod23.z.number().min(-180).max(180),
1837
+ source: import_zod23.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1789
1838
  }),
1790
- layers: import_zod22.z.object({
1791
- myMealPlanPlaces: import_zod22.z.array(MealMapMarkerSchema),
1792
- nearbyFriendMealPlans: import_zod22.z.array(MealMapMarkerSchema),
1793
- friendRecordLocations: import_zod22.z.array(MealMapMarkerSchema),
1794
- restaurantCandidates: import_zod22.z.array(MealMapMarkerSchema)
1839
+ layers: import_zod23.z.object({
1840
+ myMealPlanPlaces: import_zod23.z.array(MealMapMarkerSchema),
1841
+ nearbyFriendMealPlans: import_zod23.z.array(MealMapMarkerSchema),
1842
+ friendRecordLocations: import_zod23.z.array(MealMapMarkerSchema),
1843
+ restaurantCandidates: import_zod23.z.array(MealMapMarkerSchema)
1795
1844
  })
1796
1845
  });
1797
1846
 
@@ -1832,222 +1881,222 @@ function compareMealPlanNotificationsByPriority(channel) {
1832
1881
  }
1833
1882
 
1834
1883
  // src/domain/promotion/referral.schema.ts
1835
- var import_zod23 = require("zod");
1836
- var ReferralCreateResponseSchema = import_zod23.z.object({
1884
+ var import_zod24 = require("zod");
1885
+ var ReferralCreateResponseSchema = import_zod24.z.object({
1837
1886
  code: ReferralCodeSchema,
1838
- link: import_zod23.z.string().url(),
1887
+ link: import_zod24.z.string().url(),
1839
1888
  expiresAt: ISODateTimeStringSchema
1840
1889
  });
1841
- var ReferralItemResponseSchema = import_zod23.z.object({
1890
+ var ReferralItemResponseSchema = import_zod24.z.object({
1842
1891
  code: ReferralCodeSchema,
1843
1892
  createdAt: ISODateTimeStringSchema,
1844
1893
  expiresAt: ISODateTimeStringSchema,
1845
- used: import_zod23.z.boolean(),
1894
+ used: import_zod24.z.boolean(),
1846
1895
  usedByMemberId: MemberIdSchema.nullable(),
1847
- usedByUsername: import_zod23.z.string().nullable()
1896
+ usedByUsername: import_zod24.z.string().nullable()
1848
1897
  });
1849
- var RedeemReferralRequestSchema = import_zod23.z.object({
1898
+ var RedeemReferralRequestSchema = import_zod24.z.object({
1850
1899
  code: ReferralCodeSchema
1851
1900
  });
1852
1901
 
1853
1902
  // src/domain/promotion/coupon.schema.ts
1854
- var import_zod24 = require("zod");
1855
- var CouponTypeSchema = import_zod24.z.enum(["DISCOUNT", "SERVICE"]);
1856
- var CouponStatusSchema = import_zod24.z.enum(["UNUSED", "USED"]);
1857
- var CouponResponseSchema = import_zod24.z.object({
1903
+ var import_zod25 = require("zod");
1904
+ var CouponTypeSchema = import_zod25.z.enum(["DISCOUNT", "SERVICE"]);
1905
+ var CouponStatusSchema = import_zod25.z.enum(["UNUSED", "USED"]);
1906
+ var CouponResponseSchema = import_zod25.z.object({
1858
1907
  couponId: CouponIdSchema,
1859
- title: import_zod24.z.string(),
1860
- shopName: import_zod24.z.string(),
1908
+ title: import_zod25.z.string(),
1909
+ shopName: import_zod25.z.string(),
1861
1910
  type: CouponTypeSchema,
1862
- condition: import_zod24.z.string(),
1911
+ condition: import_zod25.z.string(),
1863
1912
  expiresAt: ISODateStringSchema,
1864
- used: import_zod24.z.boolean(),
1865
- thumbnailUrl: import_zod24.z.string().url()
1913
+ used: import_zod25.z.boolean(),
1914
+ thumbnailUrl: import_zod25.z.string().url()
1866
1915
  });
1867
1916
 
1868
1917
  // src/domain/promotion/challenge.schema.ts
1869
- var import_zod25 = require("zod");
1870
- var RewardTypeSchema = import_zod25.z.enum(["WEEK", "MONTH"]);
1871
- var WeekProgressSchema = import_zod25.z.object({
1872
- days: import_zod25.z.array(import_zod25.z.boolean()),
1873
- completed: import_zod25.z.number().int().min(0),
1874
- goal: import_zod25.z.number().int().positive()
1918
+ var import_zod26 = require("zod");
1919
+ var RewardTypeSchema = import_zod26.z.enum(["WEEK", "MONTH"]);
1920
+ var WeekProgressSchema = import_zod26.z.object({
1921
+ days: import_zod26.z.array(import_zod26.z.boolean()),
1922
+ completed: import_zod26.z.number().int().min(0),
1923
+ goal: import_zod26.z.number().int().positive()
1875
1924
  });
1876
- var MonthProgressSchema = import_zod25.z.object({
1877
- count: import_zod25.z.number().int().min(0),
1878
- goal: import_zod25.z.number().int().positive()
1925
+ var MonthProgressSchema = import_zod26.z.object({
1926
+ count: import_zod26.z.number().int().min(0),
1927
+ goal: import_zod26.z.number().int().positive()
1879
1928
  });
1880
- var ChallengeStatusResponseSchema = import_zod25.z.object({
1929
+ var ChallengeStatusResponseSchema = import_zod26.z.object({
1881
1930
  week: WeekProgressSchema,
1882
1931
  month: MonthProgressSchema,
1883
- weekRewardAvailable: import_zod25.z.boolean(),
1884
- monthRewardAvailable: import_zod25.z.boolean()
1932
+ weekRewardAvailable: import_zod26.z.boolean(),
1933
+ monthRewardAvailable: import_zod26.z.boolean()
1885
1934
  });
1886
- var ClaimChallengeRewardRequestSchema = import_zod25.z.object({
1935
+ var ClaimChallengeRewardRequestSchema = import_zod26.z.object({
1887
1936
  type: RewardTypeSchema
1888
1937
  });
1889
- var ClaimChallengeRewardResponseSchema = import_zod25.z.object({
1938
+ var ClaimChallengeRewardResponseSchema = import_zod26.z.object({
1890
1939
  rewardType: RewardTypeSchema,
1891
- claimed: import_zod25.z.boolean()
1940
+ claimed: import_zod26.z.boolean()
1892
1941
  });
1893
1942
 
1894
1943
  // src/domain/push/push.schema.ts
1895
- var import_zod26 = require("zod");
1896
- var PushProviderSchema = import_zod26.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
1897
- var PushPlatformSchema = import_zod26.z.enum(["WEB", "ANDROID", "IOS"]);
1898
- var PushPermissionStatusSchema = import_zod26.z.enum([
1944
+ var import_zod27 = require("zod");
1945
+ var PushProviderSchema = import_zod27.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
1946
+ var PushPlatformSchema = import_zod27.z.enum(["WEB", "ANDROID", "IOS"]);
1947
+ var PushPermissionStatusSchema = import_zod27.z.enum([
1899
1948
  "UNKNOWN",
1900
1949
  "PROMPT",
1901
1950
  "GRANTED",
1902
1951
  "DENIED"
1903
1952
  ]);
1904
- var PushTokenStatusSchema = import_zod26.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
1905
- var RegisterPushTokenRequestSchema = import_zod26.z.object({
1953
+ var PushTokenStatusSchema = import_zod27.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
1954
+ var RegisterPushTokenRequestSchema = import_zod27.z.object({
1906
1955
  provider: PushProviderSchema.default("FCM"),
1907
1956
  platform: PushPlatformSchema,
1908
- token: import_zod26.z.string().min(10),
1909
- deviceId: import_zod26.z.string().min(1).max(128),
1910
- appVersion: import_zod26.z.string().min(1).max(64).optional(),
1911
- buildNumber: import_zod26.z.string().min(1).max(64).optional(),
1957
+ token: import_zod27.z.string().min(10),
1958
+ deviceId: import_zod27.z.string().min(1).max(128),
1959
+ appVersion: import_zod27.z.string().min(1).max(64).optional(),
1960
+ buildNumber: import_zod27.z.string().min(1).max(64).optional(),
1912
1961
  permissionStatus: PushPermissionStatusSchema
1913
1962
  });
1914
- var RevokePushTokenRequestSchema = import_zod26.z.object({
1963
+ var RevokePushTokenRequestSchema = import_zod27.z.object({
1915
1964
  provider: PushProviderSchema.default("FCM"),
1916
- token: import_zod26.z.string().min(10).optional(),
1917
- deviceId: import_zod26.z.string().min(1).max(128).optional()
1965
+ token: import_zod27.z.string().min(10).optional(),
1966
+ deviceId: import_zod27.z.string().min(1).max(128).optional()
1918
1967
  });
1919
- var PushTokenResponseSchema = import_zod26.z.object({
1920
- pushTokenId: import_zod26.z.string().uuid(),
1968
+ var PushTokenResponseSchema = import_zod27.z.object({
1969
+ pushTokenId: import_zod27.z.string().uuid(),
1921
1970
  provider: PushProviderSchema,
1922
1971
  platform: PushPlatformSchema,
1923
- deviceId: import_zod26.z.string(),
1972
+ deviceId: import_zod27.z.string(),
1924
1973
  status: PushTokenStatusSchema,
1925
1974
  permissionStatus: PushPermissionStatusSchema,
1926
- appVersion: import_zod26.z.string().nullable(),
1927
- buildNumber: import_zod26.z.string().nullable(),
1975
+ appVersion: import_zod27.z.string().nullable(),
1976
+ buildNumber: import_zod27.z.string().nullable(),
1928
1977
  lastSeenAt: ISODateTimeStringSchema,
1929
1978
  revokedAt: ISODateTimeStringSchema.nullable()
1930
1979
  });
1931
- var PushPayloadSchemaVersionSchema = import_zod26.z.literal("2026-06-17");
1932
- var MealPlanPushPayloadDataSchema = import_zod26.z.object({
1980
+ var PushPayloadSchemaVersionSchema = import_zod27.z.literal("2026-06-17");
1981
+ var MealPlanPushPayloadDataSchema = import_zod27.z.object({
1933
1982
  schemaVersion: PushPayloadSchemaVersionSchema,
1934
- notificationId: import_zod26.z.string().min(1),
1983
+ notificationId: import_zod27.z.string().min(1),
1935
1984
  kind: MealPlanNotificationKindSchema,
1936
1985
  mealPlanId: MealPlanIdSchema,
1937
- deepLink: import_zod26.z.string().min(1),
1938
- title: import_zod26.z.string().min(1),
1939
- body: import_zod26.z.string().min(1),
1940
- fcmPriority: import_zod26.z.coerce.number().int().min(0),
1941
- liveActivityPriority: import_zod26.z.coerce.number().int().min(0),
1986
+ deepLink: import_zod27.z.string().min(1),
1987
+ title: import_zod27.z.string().min(1),
1988
+ body: import_zod27.z.string().min(1),
1989
+ fcmPriority: import_zod27.z.coerce.number().int().min(0),
1990
+ liveActivityPriority: import_zod27.z.coerce.number().int().min(0),
1942
1991
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
1943
1992
  });
1944
- var PushDeliveryStatusSchema = import_zod26.z.enum([
1993
+ var PushDeliveryStatusSchema = import_zod27.z.enum([
1945
1994
  "PENDING",
1946
1995
  "SENT",
1947
1996
  "FAILED",
1948
1997
  "SKIPPED"
1949
1998
  ]);
1950
- var PushDeliveryAttemptResultSchema = import_zod26.z.enum([
1999
+ var PushDeliveryAttemptResultSchema = import_zod27.z.enum([
1951
2000
  "SENT",
1952
2001
  "FAILED",
1953
2002
  "SKIPPED"
1954
2003
  ]);
1955
- var PushDeliveryAttemptSummarySchema = import_zod26.z.object({
1956
- attemptId: import_zod26.z.string().uuid(),
1957
- outboxId: import_zod26.z.string().uuid(),
1958
- pushTokenId: import_zod26.z.string().uuid().nullable(),
2004
+ var PushDeliveryAttemptSummarySchema = import_zod27.z.object({
2005
+ attemptId: import_zod27.z.string().uuid(),
2006
+ outboxId: import_zod27.z.string().uuid(),
2007
+ pushTokenId: import_zod27.z.string().uuid().nullable(),
1959
2008
  provider: PushProviderSchema,
1960
2009
  result: PushDeliveryAttemptResultSchema,
1961
- providerMessageId: import_zod26.z.string().nullable(),
1962
- errorCode: import_zod26.z.string().nullable(),
1963
- errorMessage: import_zod26.z.string().nullable(),
1964
- invalidToken: import_zod26.z.boolean(),
2010
+ providerMessageId: import_zod27.z.string().nullable(),
2011
+ errorCode: import_zod27.z.string().nullable(),
2012
+ errorMessage: import_zod27.z.string().nullable(),
2013
+ invalidToken: import_zod27.z.boolean(),
1965
2014
  createdAt: ISODateTimeStringSchema
1966
2015
  });
1967
- var PushDeliveryOutboxSummarySchema = import_zod26.z.object({
1968
- outboxId: import_zod26.z.string().uuid(),
1969
- notificationId: import_zod26.z.string().min(1),
1970
- memberId: import_zod26.z.number().int().positive(),
2016
+ var PushDeliveryOutboxSummarySchema = import_zod27.z.object({
2017
+ outboxId: import_zod27.z.string().uuid(),
2018
+ notificationId: import_zod27.z.string().min(1),
2019
+ memberId: import_zod27.z.number().int().positive(),
1971
2020
  status: PushDeliveryStatusSchema,
1972
- attemptCount: import_zod26.z.number().int().min(0),
1973
- lastError: import_zod26.z.string().nullable(),
2021
+ attemptCount: import_zod27.z.number().int().min(0),
2022
+ lastError: import_zod27.z.string().nullable(),
1974
2023
  nextAttemptAt: ISODateTimeStringSchema.nullable(),
1975
2024
  sentAt: ISODateTimeStringSchema.nullable(),
1976
2025
  createdAt: ISODateTimeStringSchema
1977
2026
  });
1978
2027
 
1979
2028
  // src/domain/live-activity/live-activity.schema.ts
1980
- var import_zod27 = require("zod");
1981
- var MealPlanLiveActivityPlatformSchema = import_zod27.z.enum([
2029
+ var import_zod28 = require("zod");
2030
+ var MealPlanLiveActivityPlatformSchema = import_zod28.z.enum([
1982
2031
  "IOS_LIVE_ACTIVITY",
1983
2032
  "ANDROID_LIVE_UPDATE"
1984
2033
  ]);
1985
- var MealPlanLiveActivitySessionStatusSchema = import_zod27.z.enum([
2034
+ var MealPlanLiveActivitySessionStatusSchema = import_zod28.z.enum([
1986
2035
  "ACTIVE",
1987
2036
  "ENDED",
1988
2037
  "EXPIRED",
1989
2038
  "DISABLED"
1990
2039
  ]);
1991
- var MealPlanLiveActivityUpdateStatusSchema = import_zod27.z.enum([
2040
+ var MealPlanLiveActivityUpdateStatusSchema = import_zod28.z.enum([
1992
2041
  "PENDING",
1993
2042
  "SENT",
1994
2043
  "FAILED",
1995
2044
  "SKIPPED"
1996
2045
  ]);
1997
- var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
2046
+ var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod28.z.object({
1998
2047
  platform: MealPlanLiveActivityPlatformSchema,
1999
- deviceId: import_zod27.z.string().min(1).max(128),
2000
- activityId: import_zod27.z.string().min(1).max(128),
2001
- pushToken: import_zod27.z.string().min(10).optional(),
2002
- appVersion: import_zod27.z.string().min(1).max(64).optional(),
2003
- buildNumber: import_zod27.z.string().min(1).max(64).optional()
2048
+ deviceId: import_zod28.z.string().min(1).max(128),
2049
+ activityId: import_zod28.z.string().min(1).max(128),
2050
+ pushToken: import_zod28.z.string().min(10).optional(),
2051
+ appVersion: import_zod28.z.string().min(1).max(64).optional(),
2052
+ buildNumber: import_zod28.z.string().min(1).max(64).optional()
2004
2053
  });
2005
- var EndMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
2054
+ var EndMealPlanLiveActivitySessionRequestSchema = import_zod28.z.object({
2006
2055
  platform: MealPlanLiveActivityPlatformSchema.optional(),
2007
- deviceId: import_zod27.z.string().min(1).max(128).optional(),
2008
- activityId: import_zod27.z.string().min(1).max(128).optional()
2056
+ deviceId: import_zod28.z.string().min(1).max(128).optional(),
2057
+ activityId: import_zod28.z.string().min(1).max(128).optional()
2009
2058
  });
2010
- var MealPlanLiveActivityStateSchema = import_zod27.z.object({
2059
+ var MealPlanLiveActivityStateSchema = import_zod28.z.object({
2011
2060
  mealPlanId: MealPlanIdSchema,
2012
- title: import_zod27.z.string().min(1),
2013
- status: import_zod27.z.string().min(1),
2061
+ title: import_zod28.z.string().min(1),
2062
+ status: import_zod28.z.string().min(1),
2014
2063
  scheduledAt: ISODateTimeStringSchema.nullable(),
2015
- restaurantName: import_zod27.z.string().nullable(),
2016
- placeName: import_zod27.z.string().nullable(),
2017
- deepLink: import_zod27.z.string().min(1),
2018
- progressLabel: import_zod27.z.string().min(1),
2064
+ restaurantName: import_zod28.z.string().nullable(),
2065
+ placeName: import_zod28.z.string().nullable(),
2066
+ deepLink: import_zod28.z.string().min(1),
2067
+ progressLabel: import_zod28.z.string().min(1),
2019
2068
  updatedAt: ISODateTimeStringSchema
2020
2069
  });
2021
- var MealPlanLiveActivitySessionResponseSchema = import_zod27.z.object({
2022
- sessionId: import_zod27.z.string().uuid(),
2070
+ var MealPlanLiveActivitySessionResponseSchema = import_zod28.z.object({
2071
+ sessionId: import_zod28.z.string().uuid(),
2023
2072
  mealPlanId: MealPlanIdSchema,
2024
- memberId: import_zod27.z.number().int().positive(),
2073
+ memberId: import_zod28.z.number().int().positive(),
2025
2074
  platform: MealPlanLiveActivityPlatformSchema,
2026
2075
  devicePlatform: PushPlatformSchema,
2027
- deviceId: import_zod27.z.string(),
2028
- activityId: import_zod27.z.string(),
2076
+ deviceId: import_zod28.z.string(),
2077
+ activityId: import_zod28.z.string(),
2029
2078
  status: MealPlanLiveActivitySessionStatusSchema,
2030
- appVersion: import_zod27.z.string().nullable(),
2031
- buildNumber: import_zod27.z.string().nullable(),
2079
+ appVersion: import_zod28.z.string().nullable(),
2080
+ buildNumber: import_zod28.z.string().nullable(),
2032
2081
  lastEventKind: MealPlanNotificationKindSchema.nullable(),
2033
2082
  lastBehavior: MealPlanLiveActivityBehaviorSchema.nullable(),
2034
2083
  lastUpdateStatus: MealPlanLiveActivityUpdateStatusSchema.nullable(),
2035
- lastError: import_zod27.z.string().nullable(),
2084
+ lastError: import_zod28.z.string().nullable(),
2036
2085
  startedAt: ISODateTimeStringSchema,
2037
2086
  endedAt: ISODateTimeStringSchema.nullable(),
2038
2087
  updatedAt: ISODateTimeStringSchema
2039
2088
  });
2040
- var MealPlanLiveActivitySessionListResponseSchema = import_zod27.z.object({
2089
+ var MealPlanLiveActivitySessionListResponseSchema = import_zod28.z.object({
2041
2090
  mealPlanId: MealPlanIdSchema,
2042
2091
  state: MealPlanLiveActivityStateSchema,
2043
- sessions: import_zod27.z.array(MealPlanLiveActivitySessionResponseSchema)
2092
+ sessions: import_zod28.z.array(MealPlanLiveActivitySessionResponseSchema)
2044
2093
  });
2045
2094
 
2046
2095
  // src/domain/common/contracts/endpoint.ts
2047
- var import_zod28 = require("zod");
2048
- var NoBodySchema = import_zod28.z.undefined();
2049
- var NoQuerySchema = import_zod28.z.undefined();
2050
- var NoParamsSchema = import_zod28.z.undefined();
2096
+ var import_zod29 = require("zod");
2097
+ var NoBodySchema = import_zod29.z.undefined();
2098
+ var NoQuerySchema = import_zod29.z.undefined();
2099
+ var NoParamsSchema = import_zod29.z.undefined();
2051
2100
  var endpoint = (contract) => ({
2052
2101
  method: contract.method,
2053
2102
  path: contract.path,
@@ -2058,12 +2107,12 @@ var endpoint = (contract) => ({
2058
2107
  });
2059
2108
 
2060
2109
  // src/domain/common/contracts/api.ts
2061
- var memberIdParam = import_zod29.z.object({ memberId: MemberIdSchema });
2062
- var articleIdParam = import_zod29.z.object({ articleId: ArticleIdSchema });
2063
- var commentIdParam = import_zod29.z.object({ commentId: CommentIdSchema });
2064
- var mealPlanIdParam = import_zod29.z.object({ mealPlanId: MealPlanIdSchema });
2065
- var mealPlanInviteIdParam = import_zod29.z.object({ inviteId: MealPlanInviteIdSchema });
2066
- var mealPlanJoinRequestIdParam = import_zod29.z.object({ requestId: MealPlanJoinRequestIdSchema });
2110
+ var memberIdParam = import_zod30.z.object({ memberId: MemberIdSchema });
2111
+ var articleIdParam = import_zod30.z.object({ articleId: ArticleIdSchema });
2112
+ var commentIdParam = import_zod30.z.object({ commentId: CommentIdSchema });
2113
+ var mealPlanIdParam = import_zod30.z.object({ mealPlanId: MealPlanIdSchema });
2114
+ var mealPlanInviteIdParam = import_zod30.z.object({ inviteId: MealPlanInviteIdSchema });
2115
+ var mealPlanJoinRequestIdParam = import_zod30.z.object({ requestId: MealPlanJoinRequestIdSchema });
2067
2116
  var mealPlanDecisionStageIdParam = mealPlanIdParam.extend({
2068
2117
  stageId: MealPlanDecisionStageIdSchema
2069
2118
  });
@@ -2074,18 +2123,18 @@ var mealPlanDecisionTaskKeyParam = mealPlanIdParam.extend({
2074
2123
  taskKey: MealPlanDecisionTaskKeySchema
2075
2124
  });
2076
2125
  var mealPlanDecisionSnapshotIdParam = mealPlanIdParam.extend({
2077
- snapshotId: import_zod29.z.string().uuid()
2126
+ snapshotId: import_zod30.z.string().uuid()
2078
2127
  });
2079
2128
  var mealPlanParticipantIdParam = mealPlanIdParam.extend({
2080
- participantId: import_zod29.z.string().uuid()
2129
+ participantId: import_zod30.z.string().uuid()
2081
2130
  });
2082
- var mealPlanShareTokenParam = import_zod29.z.object({ token: MealPlanShareLinkTokenSchema });
2083
- var notificationIdParam = import_zod29.z.object({ notificationId: import_zod29.z.string().min(1) });
2084
- var couponIdParam = import_zod29.z.object({ couponId: CouponIdSchema });
2085
- var mealGroupIdParam = import_zod29.z.object({ mealGroupId: MealGroupIdSchema });
2131
+ var mealPlanShareTokenParam = import_zod30.z.object({ token: MealPlanShareLinkTokenSchema });
2132
+ var notificationIdParam = import_zod30.z.object({ notificationId: import_zod30.z.string().min(1) });
2133
+ var couponIdParam = import_zod30.z.object({ couponId: CouponIdSchema });
2134
+ var mealGroupIdParam = import_zod30.z.object({ mealGroupId: MealGroupIdSchema });
2086
2135
  var mealGroupMemberIdParam = mealGroupIdParam.extend({ memberId: MemberIdSchema });
2087
- var friendRequestIdParam = import_zod29.z.object({ requestId: FriendRequestIdSchema });
2088
- var sseTokenQuery = import_zod29.z.object({ token: import_zod29.z.string().min(1) });
2136
+ var friendRequestIdParam = import_zod30.z.object({ requestId: FriendRequestIdSchema });
2137
+ var sseTokenQuery = import_zod30.z.object({ token: import_zod30.z.string().min(1) });
2089
2138
  var apiContract = {
2090
2139
  auth: {
2091
2140
  signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
@@ -2113,7 +2162,7 @@ var apiContract = {
2113
2162
  mealStatus: {
2114
2163
  my: endpoint({ method: "GET", path: "/members/me/meal-status", response: MealStatusResponseSchema }),
2115
2164
  updateMealStatus: endpoint({ method: "PATCH", path: "/members/me/meal-status", body: UpdateMealStatusRequestSchema, response: NoContentSchema }),
2116
- friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod29.z.array(FriendMealItemResponseSchema) })
2165
+ friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod30.z.array(FriendMealItemResponseSchema) })
2117
2166
  },
2118
2167
  articles: {
2119
2168
  list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
@@ -2152,11 +2201,10 @@ var apiContract = {
2152
2201
  exposeNearbyFriends: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, body: ExposeMealPlanToNearbyFriendsRequestSchema, response: ExposeMealPlanToNearbyFriendsResponseSchema }),
2153
2202
  closeNearbyFriends: endpoint({ method: "DELETE", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, response: NoContentSchema }),
2154
2203
  nearbyFriendExposureEligibility: endpoint({ method: "GET", path: "/meal-plans/nearby-friends/eligibility", response: NearbyFriendExposureEligibilitySchema }),
2155
- nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod29.z.array(NearbyFriendMealPlanSummarySchema) }),
2204
+ nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod30.z.array(NearbyFriendMealPlanSummarySchema) }),
2156
2205
  requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
2157
2206
  acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
2158
2207
  rejectJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/reject", pathParams: mealPlanJoinRequestIdParam, response: NoContentSchema }),
2159
- vote: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/votes", pathParams: mealPlanDecisionStageIdParam, body: CreateMealPlanVoteRequestSchema, response: MealPlanResponseSchema }),
2160
2208
  completeStage: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/complete", pathParams: mealPlanDecisionStageIdParam, body: CompleteMealPlanDecisionStageRequestSchema, response: MealPlanResponseSchema }),
2161
2209
  decisionProgress: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/decision-progress", pathParams: mealPlanIdParam, response: MealPlanDecisionProgressSchema }),
2162
2210
  reopenDecisionTask: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen", pathParams: mealPlanDecisionTaskKeyParam, body: ReopenMealPlanDecisionTaskRequestSchema, response: MealPlanResponseSchema }),
@@ -2169,7 +2217,7 @@ var apiContract = {
2169
2217
  },
2170
2218
  mealGroups: {
2171
2219
  create: endpoint({ method: "POST", path: "/meal-groups", body: CreateMealGroupRequestSchema, response: MealGroupResponseSchema }),
2172
- list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod29.z.array(MealGroupResponseSchema) }),
2220
+ list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod30.z.array(MealGroupResponseSchema) }),
2173
2221
  detail: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId", pathParams: mealGroupIdParam, response: MealGroupResponseSchema }),
2174
2222
  startMealPlan: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/meal-plans", pathParams: mealGroupIdParam, body: StartMealPlanFromGroupRequestSchema, response: CreateMealPlanResponseSchema }),
2175
2223
  history: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/history", pathParams: mealGroupIdParam, response: MealGroupHistoryResponseSchema }),
@@ -2179,11 +2227,11 @@ var apiContract = {
2179
2227
  removeMember: endpoint({ method: "DELETE", path: "/meal-groups/:mealGroupId/members/:memberId", pathParams: mealGroupMemberIdParam, response: MealGroupResponseSchema })
2180
2228
  },
2181
2229
  friends: {
2182
- list: endpoint({ method: "GET", path: "/friends", response: import_zod29.z.array(FriendListItemResponseSchema) }),
2183
- blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod29.z.array(FriendBlockItemResponseSchema) }),
2230
+ list: endpoint({ method: "GET", path: "/friends", response: import_zod30.z.array(FriendListItemResponseSchema) }),
2231
+ blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod30.z.array(FriendBlockItemResponseSchema) }),
2184
2232
  search: endpoint({ method: "GET", path: "/friends/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
2185
- incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
2186
- outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
2233
+ incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod30.z.array(FriendRequestItemResponseSchema) }),
2234
+ outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod30.z.array(FriendRequestItemResponseSchema) }),
2187
2235
  sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
2188
2236
  acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
2189
2237
  rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
@@ -2193,7 +2241,7 @@ var apiContract = {
2193
2241
  unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
2194
2242
  },
2195
2243
  coupons: {
2196
- list: endpoint({ method: "GET", path: "/coupons", response: import_zod29.z.array(CouponResponseSchema) }),
2244
+ list: endpoint({ method: "GET", path: "/coupons", response: import_zod30.z.array(CouponResponseSchema) }),
2197
2245
  use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
2198
2246
  },
2199
2247
  challenges: {
@@ -2201,17 +2249,17 @@ var apiContract = {
2201
2249
  claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
2202
2250
  },
2203
2251
  referrals: {
2204
- list: endpoint({ method: "GET", path: "/referrals", response: import_zod29.z.array(ReferralItemResponseSchema) }),
2252
+ list: endpoint({ method: "GET", path: "/referrals", response: import_zod30.z.array(ReferralItemResponseSchema) }),
2205
2253
  create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
2206
2254
  redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
2207
2255
  },
2208
2256
  notifications: {
2209
- list: endpoint({ method: "GET", path: "/notifications", response: import_zod29.z.array(MealPlanNotificationSchema) }),
2257
+ list: endpoint({ method: "GET", path: "/notifications", response: import_zod30.z.array(MealPlanNotificationSchema) }),
2210
2258
  markRead: endpoint({ method: "PATCH", path: "/notifications/:notificationId/read", pathParams: notificationIdParam, response: MealPlanNotificationSchema }),
2211
2259
  delete: endpoint({ method: "DELETE", path: "/notifications/:notificationId", pathParams: notificationIdParam, response: NoContentSchema })
2212
2260
  },
2213
2261
  pushTokens: {
2214
- list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod29.z.array(PushTokenResponseSchema) }),
2262
+ list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod30.z.array(PushTokenResponseSchema) }),
2215
2263
  register: endpoint({ method: "POST", path: "/push-tokens", body: RegisterPushTokenRequestSchema, response: PushTokenResponseSchema }),
2216
2264
  revoke: endpoint({ method: "POST", path: "/push-tokens/revoke", body: RevokePushTokenRequestSchema, response: NoContentSchema })
2217
2265
  },
@@ -2221,10 +2269,10 @@ var apiContract = {
2221
2269
  endMealPlanSessions: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/end", pathParams: mealPlanIdParam, body: EndMealPlanLiveActivitySessionRequestSchema, response: NoContentSchema })
2222
2270
  },
2223
2271
  sse: {
2224
- notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod29.z.any() })
2272
+ notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod30.z.any() })
2225
2273
  },
2226
2274
  health: {
2227
- healthCheck: endpoint({ method: "GET", path: "/", response: import_zod29.z.string() })
2275
+ healthCheck: endpoint({ method: "GET", path: "/", response: import_zod30.z.string() })
2228
2276
  }
2229
2277
  };
2230
2278