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