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