@kimdaegyu/babmukdang-shared 1.1.11 → 2.0.3

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.
Files changed (100) hide show
  1. package/dist/chunk-3TY6OPD3.js +91 -0
  2. package/dist/{chunk-W4C7XHTX.js → chunk-6O2YTBVC.js} +3 -3
  3. package/dist/{chunk-GTVEQYJW.js → chunk-7JYVBXKQ.js} +1 -1
  4. package/dist/chunk-7UZD4LBQ.js +459 -0
  5. package/dist/chunk-BSJC7OVV.js +10 -0
  6. package/dist/chunk-C63TN7L3.js +148 -0
  7. package/dist/chunk-CGFW5LYV.js +143 -0
  8. package/dist/chunk-GOOH2LGN.js +829 -0
  9. package/dist/chunk-LEH6UFL7.js +314 -0
  10. package/dist/{chunk-K3CZKI2F.js → chunk-NENVUHL5.js} +11 -8
  11. package/dist/chunk-OPMBGBYS.js +632 -0
  12. package/dist/{chunk-OJVXYCSH.js → chunk-QFPVAJ2U.js} +1 -1
  13. package/dist/{chunk-AI2YMBJX.js → chunk-RZPNVRRS.js} +5 -5
  14. package/dist/{chunk-4E5E3PFW.js → chunk-VD3VGLBQ.js} +13 -5
  15. package/dist/chunk-WYBFBLQC.js +111 -0
  16. package/dist/{chunk-H77ISYYC.js → chunk-XMRYAG3V.js} +20 -8
  17. package/dist/domain/article/index.cjs +71 -7
  18. package/dist/domain/article/index.d.cts +79 -796
  19. package/dist/domain/article/index.d.ts +79 -796
  20. package/dist/domain/article/index.js +4 -4
  21. package/dist/domain/auth/index.cjs +68 -6
  22. package/dist/domain/auth/index.d.cts +6 -46
  23. package/dist/domain/auth/index.d.ts +6 -46
  24. package/dist/domain/auth/index.js +3 -3
  25. package/dist/domain/common/index.cjs +1438 -330
  26. package/dist/domain/common/index.d.cts +212 -3037
  27. package/dist/domain/common/index.d.ts +212 -3037
  28. package/dist/domain/common/index.js +65 -30
  29. package/dist/domain/food/index.cjs +225 -0
  30. package/dist/domain/food/index.d.cts +321 -0
  31. package/dist/domain/food/index.d.ts +321 -0
  32. package/dist/domain/food/index.js +46 -0
  33. package/dist/domain/friend/index.cjs +78 -7
  34. package/dist/domain/friend/index.d.cts +39 -98
  35. package/dist/domain/friend/index.d.ts +39 -98
  36. package/dist/domain/friend/index.js +5 -3
  37. package/dist/domain/index.cjs +1930 -456
  38. package/dist/domain/index.d.cts +382 -123
  39. package/dist/domain/index.d.ts +382 -123
  40. package/dist/domain/index.js +429 -140
  41. package/dist/domain/live-activity/index.cjs +1112 -0
  42. package/dist/domain/live-activity/index.d.cts +177 -0
  43. package/dist/domain/live-activity/index.d.ts +177 -0
  44. package/dist/domain/live-activity/index.js +28 -0
  45. package/dist/domain/meal/index.cjs +68 -6
  46. package/dist/domain/meal/index.d.cts +21 -40
  47. package/dist/domain/meal/index.d.ts +21 -40
  48. package/dist/domain/meal/index.js +4 -4
  49. package/dist/domain/meal-plan/index.cjs +1540 -0
  50. package/dist/domain/meal-plan/index.d.cts +4523 -0
  51. package/dist/domain/meal-plan/index.d.ts +4523 -0
  52. package/dist/domain/meal-plan/index.js +255 -0
  53. package/dist/domain/member/index.cjs +94 -6
  54. package/dist/domain/member/index.d.cts +263 -273
  55. package/dist/domain/member/index.d.ts +263 -273
  56. package/dist/domain/member/index.js +26 -2
  57. package/dist/domain/promotion/index.cjs +10 -4
  58. package/dist/domain/promotion/index.d.cts +35 -112
  59. package/dist/domain/promotion/index.d.ts +35 -112
  60. package/dist/domain/promotion/index.js +2 -2
  61. package/dist/domain/push/index.cjs +1055 -0
  62. package/dist/domain/push/index.d.cts +169 -0
  63. package/dist/domain/push/index.d.ts +169 -0
  64. package/dist/domain/push/index.js +36 -0
  65. package/dist/domain/restaurant/index.cjs +10 -4
  66. package/dist/domain/restaurant/index.d.cts +27 -1
  67. package/dist/domain/restaurant/index.d.ts +27 -1
  68. package/dist/domain/restaurant/index.js +2 -2
  69. package/dist/index.cjs +1731 -399
  70. package/dist/index.d.cts +5 -7
  71. package/dist/index.d.ts +5 -7
  72. package/dist/index.js +17 -15
  73. package/package.json +52 -55
  74. package/dist/chunk-PFSZSKD5.js +0 -0
  75. package/dist/chunk-PQMEXOPZ.js +0 -232
  76. package/dist/chunk-W4TUW2GY.js +0 -40
  77. package/dist/chunk-WNYCCQM4.js +0 -342
  78. package/dist/chunk-YGFAVC5N.js +0 -34
  79. package/dist/chunk-YM7YU7IR.js +0 -319
  80. package/dist/chunk-ZH7D7B2Y.js +0 -78
  81. package/dist/domain/invitation/index.cjs +0 -82
  82. package/dist/domain/invitation/index.d.cts +0 -64
  83. package/dist/domain/invitation/index.d.ts +0 -64
  84. package/dist/domain/invitation/index.js +0 -13
  85. package/dist/domain/plan/index.cjs +0 -327
  86. package/dist/domain/plan/index.d.cts +0 -178
  87. package/dist/domain/plan/index.d.ts +0 -178
  88. package/dist/domain/plan/index.js +0 -18
  89. package/dist/domain/recruit/index.cjs +0 -189
  90. package/dist/domain/recruit/index.d.cts +0 -214
  91. package/dist/domain/recruit/index.d.ts +0 -214
  92. package/dist/domain/recruit/index.js +0 -30
  93. package/dist/domain/room/index.cjs +0 -401
  94. package/dist/domain/room/index.d.cts +0 -2643
  95. package/dist/domain/room/index.d.ts +0 -2643
  96. package/dist/domain/room/index.js +0 -82
  97. package/dist/id-dAYxfjZn.d.cts +0 -64
  98. package/dist/id-dAYxfjZn.d.ts +0 -64
  99. package/dist/restaurant.schema-CuEcX3S3.d.cts +0 -78
  100. package/dist/restaurant.schema-CuEcX3S3.d.ts +0 -78
@@ -0,0 +1,1540 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/domain/meal-plan/index.ts
31
+ var meal_plan_exports = {};
32
+ __export(meal_plan_exports, {
33
+ AddMealGroupMemberRequestSchema: () => AddMealGroupMemberRequestSchema,
34
+ CompleteMealPlanDecisionStageRequestSchema: () => CompleteMealPlanDecisionStageRequestSchema,
35
+ ConfirmMealPlanDecisionSnapshotRequestSchema: () => ConfirmMealPlanDecisionSnapshotRequestSchema,
36
+ CreateMealGroupRequestSchema: () => CreateMealGroupRequestSchema,
37
+ CreateMealPlanChangeRequestSchema: () => CreateMealPlanChangeRequestSchema,
38
+ CreateMealPlanInviteRequestSchema: () => CreateMealPlanInviteRequestSchema,
39
+ CreateMealPlanJoinRequestSchema: () => CreateMealPlanJoinRequestSchema,
40
+ CreateMealPlanParticipantRequestSchema: () => CreateMealPlanParticipantRequestSchema,
41
+ CreateMealPlanRequestSchema: () => CreateMealPlanRequestSchema,
42
+ CreateMealPlanResponseSchema: () => CreateMealPlanResponseSchema,
43
+ CreateMealPlanShareLinkRequestSchema: () => CreateMealPlanShareLinkRequestSchema,
44
+ CreateMealPlanVoteRequestSchema: () => CreateMealPlanVoteRequestSchema,
45
+ ExposeMealPlanToNearbyFriendsRequestSchema: () => ExposeMealPlanToNearbyFriendsRequestSchema,
46
+ ExposeMealPlanToNearbyFriendsResponseSchema: () => ExposeMealPlanToNearbyFriendsResponseSchema,
47
+ HomeMealPlanActionCardSchema: () => HomeMealPlanActionCardSchema,
48
+ HomeMealPlanActionKindSchema: () => HomeMealPlanActionKindSchema,
49
+ HomeMealPlanDashboardResponseSchema: () => HomeMealPlanDashboardResponseSchema,
50
+ JoinMealPlanGuestRequestSchema: () => JoinMealPlanGuestRequestSchema,
51
+ JoinMealPlanGuestResponseSchema: () => JoinMealPlanGuestResponseSchema,
52
+ MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES: () => MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES,
53
+ MealGroupHistoryItemSchema: () => MealGroupHistoryItemSchema,
54
+ MealGroupHistoryResponseSchema: () => MealGroupHistoryResponseSchema,
55
+ MealGroupMemberRoleSchema: () => MealGroupMemberRoleSchema,
56
+ MealGroupMemberSchema: () => MealGroupMemberSchema,
57
+ MealGroupPreferenceSummarySchema: () => MealGroupPreferenceSummarySchema,
58
+ MealGroupResponseSchema: () => MealGroupResponseSchema,
59
+ MealMapFriendRecordLocationMetadataSchema: () => MealMapFriendRecordLocationMetadataSchema,
60
+ MealMapLayerSchema: () => MealMapLayerSchema,
61
+ MealMapMarkerSchema: () => MealMapMarkerSchema,
62
+ MealMapMyMealPlanPlaceMetadataSchema: () => MealMapMyMealPlanPlaceMetadataSchema,
63
+ MealMapNearbyFriendMealPlanMetadataSchema: () => MealMapNearbyFriendMealPlanMetadataSchema,
64
+ MealMapQuerySchema: () => MealMapQuerySchema,
65
+ MealMapResponseSchema: () => MealMapResponseSchema,
66
+ MealMapRestaurantCandidateCompletionBlockedReasonSchema: () => MealMapRestaurantCandidateCompletionBlockedReasonSchema,
67
+ MealMapRestaurantCandidateMetadataSchema: () => MealMapRestaurantCandidateMetadataSchema,
68
+ MealPlanChangeRequestStatusSchema: () => MealPlanChangeRequestStatusSchema,
69
+ MealPlanChangeRequestSummarySchema: () => MealPlanChangeRequestSummarySchema,
70
+ MealPlanChannelSchema: () => MealPlanChannelSchema,
71
+ MealPlanChatMessageKindSchema: () => MealPlanChatMessageKindSchema,
72
+ MealPlanChatMessageListResponseSchema: () => MealPlanChatMessageListResponseSchema,
73
+ MealPlanChatMessageResponseSchema: () => MealPlanChatMessageResponseSchema,
74
+ MealPlanChatRoomSummarySchema: () => MealPlanChatRoomSummarySchema,
75
+ MealPlanChatSystemPayloadSchema: () => MealPlanChatSystemPayloadSchema,
76
+ MealPlanDecisionActorTypeSchema: () => MealPlanDecisionActorTypeSchema,
77
+ MealPlanDecisionCandidateSchema: () => MealPlanDecisionCandidateSchema,
78
+ MealPlanDecisionFinalFieldSchema: () => MealPlanDecisionFinalFieldSchema,
79
+ MealPlanDecisionProgressSchema: () => MealPlanDecisionProgressSchema,
80
+ MealPlanDecisionReasonSchema: () => MealPlanDecisionReasonSchema,
81
+ MealPlanDecisionSnapshotSchema: () => MealPlanDecisionSnapshotSchema,
82
+ MealPlanDecisionSnapshotStatusSchema: () => MealPlanDecisionSnapshotStatusSchema,
83
+ MealPlanDecisionStageIdSchema: () => MealPlanDecisionStageIdSchema,
84
+ MealPlanDecisionStageMetadataSchema: () => MealPlanDecisionStageMetadataSchema,
85
+ MealPlanDecisionStageResponseSchema: () => MealPlanDecisionStageResponseSchema,
86
+ MealPlanDecisionStageStatusSchema: () => MealPlanDecisionStageStatusSchema,
87
+ MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
88
+ MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
89
+ MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
90
+ MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
91
+ MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
92
+ MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
93
+ MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
94
+ MealPlanInviteListResponseSchema: () => MealPlanInviteListResponseSchema,
95
+ MealPlanInviteStatusSchema: () => MealPlanInviteStatusSchema,
96
+ MealPlanInviteSummarySchema: () => MealPlanInviteSummarySchema,
97
+ MealPlanJoinRequestStatusSchema: () => MealPlanJoinRequestStatusSchema,
98
+ MealPlanJoinRequestSummarySchema: () => MealPlanJoinRequestSummarySchema,
99
+ MealPlanJoinSourceSchema: () => MealPlanJoinSourceSchema,
100
+ MealPlanLatitudeSchema: () => MealPlanLatitudeSchema,
101
+ MealPlanLiveActivityBehaviorSchema: () => MealPlanLiveActivityBehaviorSchema,
102
+ MealPlanLocationCandidateIdSchema: () => MealPlanLocationCandidateIdSchema,
103
+ MealPlanLocationCandidateSchema: () => MealPlanLocationCandidateSchema,
104
+ MealPlanLocationCandidateSourceSchema: () => MealPlanLocationCandidateSourceSchema,
105
+ MealPlanLongitudeSchema: () => MealPlanLongitudeSchema,
106
+ MealPlanMenuCandidateIdSchema: () => MealPlanMenuCandidateIdSchema,
107
+ MealPlanMenuCandidateSchema: () => MealPlanMenuCandidateSchema,
108
+ MealPlanMenuCandidateSourceSchema: () => MealPlanMenuCandidateSourceSchema,
109
+ MealPlanNearbyFriendExposureBatchSummarySchema: () => MealPlanNearbyFriendExposureBatchSummarySchema,
110
+ MealPlanNearbyFriendExposureIdSchema: () => MealPlanNearbyFriendExposureIdSchema,
111
+ MealPlanNearbyFriendExposureNotificationStatusSchema: () => MealPlanNearbyFriendExposureNotificationStatusSchema,
112
+ MealPlanNearbyFriendExposureStatusSchema: () => MealPlanNearbyFriendExposureStatusSchema,
113
+ MealPlanNearbyFriendExposureSummarySchema: () => MealPlanNearbyFriendExposureSummarySchema,
114
+ MealPlanNearbyFriendRejectionReasonSchema: () => MealPlanNearbyFriendRejectionReasonSchema,
115
+ MealPlanNearbyFriendRejectionSummarySchema: () => MealPlanNearbyFriendRejectionSummarySchema,
116
+ MealPlanNotificationKindSchema: () => MealPlanNotificationKindSchema,
117
+ MealPlanNotificationPriorityChannelSchema: () => MealPlanNotificationPriorityChannelSchema,
118
+ MealPlanNotificationPriorityPolicyItemSchema: () => MealPlanNotificationPriorityPolicyItemSchema,
119
+ MealPlanNotificationSchema: () => MealPlanNotificationSchema,
120
+ MealPlanParticipantIdSchema: () => MealPlanParticipantIdSchema,
121
+ MealPlanParticipantResponseSchema: () => MealPlanParticipantResponseSchema,
122
+ MealPlanParticipantRoleSchema: () => MealPlanParticipantRoleSchema,
123
+ MealPlanParticipantStatusSchema: () => MealPlanParticipantStatusSchema,
124
+ MealPlanRecommendationContextSchema: () => MealPlanRecommendationContextSchema,
125
+ MealPlanResponseSchema: () => MealPlanResponseSchema,
126
+ MealPlanRestaurantCandidateSchema: () => MealPlanRestaurantCandidateSchema,
127
+ MealPlanRestaurantSearchStateSchema: () => MealPlanRestaurantSearchStateSchema,
128
+ MealPlanRestaurantSearchStatusSchema: () => MealPlanRestaurantSearchStatusSchema,
129
+ MealPlanShareLinkSummarySchema: () => MealPlanShareLinkSummarySchema,
130
+ MealPlanSharePreviewResponseSchema: () => MealPlanSharePreviewResponseSchema,
131
+ MealPlanStatusSchema: () => MealPlanStatusSchema,
132
+ MealPlanSystemMessageKindSchema: () => MealPlanSystemMessageKindSchema,
133
+ MealPlanSystemMessageSchema: () => MealPlanSystemMessageSchema,
134
+ MealPlanViewerPermissionsSchema: () => MealPlanViewerPermissionsSchema,
135
+ MealPlanViewerRoleSchema: () => MealPlanViewerRoleSchema,
136
+ MealPlanVoteIdSchema: () => MealPlanVoteIdSchema,
137
+ MealPlanVoteSchema: () => MealPlanVoteSchema,
138
+ MealPlanVoteTypeSchema: () => MealPlanVoteTypeSchema,
139
+ MyMealPlanGroupSchema: () => MyMealPlanGroupSchema,
140
+ MyMealPlanListItemSchema: () => MyMealPlanListItemSchema,
141
+ MyMealPlanListResponseSchema: () => MyMealPlanListResponseSchema,
142
+ NearbyFriendExposureEligibilitySchema: () => NearbyFriendExposureEligibilitySchema,
143
+ NearbyFriendMealPlanSummarySchema: () => NearbyFriendMealPlanSummarySchema,
144
+ ReopenMealPlanDecisionTaskRequestSchema: () => ReopenMealPlanDecisionTaskRequestSchema,
145
+ SendMealPlanChatMessageRequestSchema: () => SendMealPlanChatMessageRequestSchema,
146
+ SendMealPlanInviteResponseSchema: () => SendMealPlanInviteResponseSchema,
147
+ StartMealPlanFromGroupRequestSchema: () => StartMealPlanFromGroupRequestSchema,
148
+ UpdateMealGroupMemberRoleRequestSchema: () => UpdateMealGroupMemberRoleRequestSchema,
149
+ UpdateMealPlanContextRequestSchema: () => UpdateMealPlanContextRequestSchema,
150
+ compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
151
+ getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
152
+ getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
153
+ getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
154
+ shouldShowForegroundToast: () => shouldShowForegroundToast
155
+ });
156
+ module.exports = __toCommonJS(meal_plan_exports);
157
+
158
+ // src/domain/meal-plan/meal-plan.schema.ts
159
+ var import_zod12 = require("zod");
160
+
161
+ // src/domain/common/schema/date.schema.ts
162
+ var import_zod = require("zod");
163
+ var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
164
+ var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
165
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
166
+ var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
167
+
168
+ // src/domain/common/schema/id.schema.ts
169
+ var import_zod2 = require("zod");
170
+ var PositiveIntIdSchema = import_zod2.z.number().int().positive();
171
+ var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
172
+ var MemberIdSchema = PositiveIntIdSchema.brand();
173
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
174
+ var CommentIdSchema = PositiveIntIdSchema.brand();
175
+ var MealPlanIdSchema = import_zod2.z.string().uuid().brand();
176
+ var MealPlanInviteIdSchema = import_zod2.z.string().uuid().brand();
177
+ var MealPlanJoinRequestIdSchema = import_zod2.z.string().uuid().brand();
178
+ var MealPlanNearbyFriendExposureBatchIdSchema = import_zod2.z.string().uuid().brand();
179
+ var MealPlanChangeRequestIdSchema = import_zod2.z.string().uuid().brand();
180
+ var MealPlanShareLinkIdSchema = import_zod2.z.string().uuid().brand();
181
+ var MealPlanShareLinkTokenSchema = import_zod2.z.string().min(8).max(128).brand();
182
+ var MealPlanChatRoomIdSchema = import_zod2.z.string().uuid().brand();
183
+ var MealPlanChatMessageIdSchema = import_zod2.z.string().uuid().brand();
184
+ var MealGroupIdSchema = import_zod2.z.string().uuid().brand();
185
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
186
+ var CouponIdSchema = PositiveIntIdSchema.brand();
187
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
188
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
189
+ var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
190
+ var FoodCodeSchema = NonEmptyStringIdSchema.brand();
191
+ var FoodLabelSchema = NonEmptyStringIdSchema.brand();
192
+ var FoodSchema = import_zod2.z.object({
193
+ code: FoodCodeSchema,
194
+ label: FoodLabelSchema
195
+ });
196
+
197
+ // src/domain/member/member.schema.ts
198
+ var import_zod4 = require("zod");
199
+
200
+ // src/domain/common/contracts/upload.ts
201
+ var import_zod3 = __toESM(require("zod"), 1);
202
+ var UploadPresignImageResponseSchema = import_zod3.default.object({
203
+ key: import_zod3.default.string(),
204
+ putUrl: import_zod3.default.string().url(),
205
+ cdnUrl: import_zod3.default.string().url()
206
+ });
207
+ var UploadPresignImageRequestSchema = import_zod3.default.object({
208
+ contentType: import_zod3.default.string()
209
+ });
210
+
211
+ // src/domain/member/member.schema.ts
212
+ var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
213
+ var LocationConsentStatusSchema = import_zod4.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
214
+ var OnboardingStatusSchema = import_zod4.z.enum(["REQUIRED", "COMPLETED"]);
215
+ var PermissionKindSchema = import_zod4.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
216
+ var PermissionStatusSchema = import_zod4.z.enum([
217
+ "UNKNOWN",
218
+ "PROMPT",
219
+ "GRANTED",
220
+ "DENIED",
221
+ "LIMITED",
222
+ "UNSUPPORTED"
223
+ ]);
224
+ var PermissionPlatformSchema = import_zod4.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
225
+ var DevicePermissionSnapshotSchema = import_zod4.z.object({
226
+ kind: PermissionKindSchema,
227
+ status: PermissionStatusSchema,
228
+ platform: PermissionPlatformSchema.default("UNKNOWN"),
229
+ canAskAgain: import_zod4.z.boolean().optional(),
230
+ checkedAt: import_zod4.z.string().datetime()
231
+ });
232
+ var MemberLocationSchema = import_zod4.z.object({
233
+ latitude: import_zod4.z.number().min(-90).max(90),
234
+ longitude: import_zod4.z.number().min(-180).max(180),
235
+ accuracyMeters: import_zod4.z.number().min(0).nullable().optional(),
236
+ capturedAt: import_zod4.z.string().datetime()
237
+ });
238
+ var UpdateMemberLocationConsentRequestSchema = import_zod4.z.object({
239
+ locationConsentStatus: LocationConsentStatusSchema,
240
+ nearbyMealPlanExposureAllowed: import_zod4.z.boolean().default(false),
241
+ mealSuggestionAllowed: import_zod4.z.boolean().optional(),
242
+ permissionSnapshot: DevicePermissionSnapshotSchema.optional()
243
+ });
244
+ var MemberLocationSettingsResponseSchema = import_zod4.z.object({
245
+ locationConsentStatus: LocationConsentStatusSchema,
246
+ nearbyMealPlanExposureAllowed: import_zod4.z.boolean(),
247
+ mealSuggestionAllowed: import_zod4.z.boolean(),
248
+ lastKnownLocation: MemberLocationSchema.nullable(),
249
+ permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
250
+ updatedAt: import_zod4.z.string().datetime().nullable()
251
+ });
252
+ var MemberCoreSchema = import_zod4.z.object({
253
+ memberId: MemberIdSchema,
254
+ username: import_zod4.z.string().min(1).max(50),
255
+ profileImageUrl: import_zod4.z.string().url().nullable().optional()
256
+ });
257
+ var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
258
+ var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
259
+ var MemberResponseSchema = MemberCoreSchema.pick({
260
+ memberId: true,
261
+ username: true,
262
+ profileImageUrl: true
263
+ }).extend({
264
+ onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
265
+ onboardingCompletedAt: import_zod4.z.string().datetime().nullable().default(null),
266
+ locationConsentStatus: LocationConsentStatusSchema.optional(),
267
+ nearbyMealPlanExposureAllowed: import_zod4.z.boolean().optional()
268
+ });
269
+ var MemberSearchQuerySchema = import_zod4.z.object({
270
+ email: import_zod4.z.string().email().optional(),
271
+ username: import_zod4.z.string().optional()
272
+ });
273
+ var MemberSerachResponseSchema = import_zod4.z.array(MemberCoreSchema);
274
+ var MemberDetailSchema = MemberCoreSchema.extend({
275
+ bio: import_zod4.z.string().nullable(),
276
+ friendConunt: import_zod4.z.number().int().min(0).default(0),
277
+ completedPlans: import_zod4.z.number().int().min(0).default(0),
278
+ uncompletedPlans: import_zod4.z.number().int().min(0).default(0),
279
+ onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
280
+ onboardingCompletedAt: import_zod4.z.string().datetime().nullable().default(null),
281
+ locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
282
+ nearbyMealPlanExposureAllowed: import_zod4.z.boolean().default(false)
283
+ });
284
+ var FoodPreferenceItemSchema = FoodSchema.extend({});
285
+ var MemberFoodPreferenceSchema = import_zod4.z.object({
286
+ liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
287
+ disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
288
+ allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
289
+ });
290
+ var UpdateProfileRequestSchema = import_zod4.z.object({
291
+ username: import_zod4.z.string().min(1).max(50),
292
+ profileImageUrl: import_zod4.z.string().url().nullable(),
293
+ bio: import_zod4.z.string().max(500).nullable()
294
+ });
295
+ var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
296
+ var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
297
+ UpdatePreferenceRequestSchema
298
+ );
299
+ var OnboardingDraftSchema = import_zod4.z.object({
300
+ username: import_zod4.z.string().min(1).max(50).optional(),
301
+ profileImageUrl: import_zod4.z.string().url().nullable().optional(),
302
+ bio: import_zod4.z.string().max(500).nullable().optional(),
303
+ liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
304
+ disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
305
+ allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
306
+ });
307
+
308
+ // src/domain/restaurant/restaurant.schema.ts
309
+ var import_zod5 = require("zod");
310
+ var RestaurantSchema = import_zod5.z.object({
311
+ restaurantId: RestaurantIdSchema,
312
+ placeName: import_zod5.z.string(),
313
+ categoryName: import_zod5.z.string(),
314
+ categoryGroupName: import_zod5.z.string(),
315
+ distance: import_zod5.z.string().optional(),
316
+ roadAddressName: import_zod5.z.string(),
317
+ addressName: import_zod5.z.string(),
318
+ phone: import_zod5.z.string().nullable(),
319
+ placeUrl: import_zod5.z.string().url().nullable(),
320
+ lat: import_zod5.z.number(),
321
+ lng: import_zod5.z.number()
322
+ });
323
+ var KakaoPlaceRawSchema = import_zod5.z.object({
324
+ id: RestaurantIdSchema,
325
+ place_name: import_zod5.z.string(),
326
+ category_name: import_zod5.z.string(),
327
+ category_group_name: import_zod5.z.string(),
328
+ distance: import_zod5.z.string(),
329
+ road_address_name: import_zod5.z.string(),
330
+ address_name: import_zod5.z.string(),
331
+ phone: import_zod5.z.string(),
332
+ place_url: import_zod5.z.string().url().optional(),
333
+ lat: import_zod5.z.number(),
334
+ lng: import_zod5.z.number()
335
+ });
336
+
337
+ // src/domain/meal-plan/meal-plan-decision.schema.ts
338
+ var import_zod7 = require("zod");
339
+
340
+ // src/domain/food/food.schema.ts
341
+ var import_zod6 = require("zod");
342
+ var FoodGranularitySchema = import_zod6.z.enum(["main_dish", "side_dish", "beverage", "sauce"]);
343
+ var CuisineTagSchema = import_zod6.z.enum([
344
+ "korean",
345
+ "western",
346
+ "chinese",
347
+ "japanese",
348
+ "mexican",
349
+ "indian",
350
+ "asian",
351
+ "snack",
352
+ "dessert",
353
+ "beverage",
354
+ "unknown"
355
+ ]);
356
+ var FoodResolvedMatchSourceSchema = import_zod6.z.enum(["category", "alias", "lexical", "semantic"]);
357
+ var FoodCodeManifestImageSchema = import_zod6.z.object({
358
+ src: import_zod6.z.string().min(1),
359
+ avifSrcset: import_zod6.z.string().min(1).optional(),
360
+ thumbhashDataURL: import_zod6.z.string().min(1).optional(),
361
+ aspectRatio: import_zod6.z.number().positive().optional()
362
+ });
363
+ var FoodCodeManifestItemSchema = import_zod6.z.object({
364
+ code: FoodCodeSchema,
365
+ label: FoodLabelSchema,
366
+ aliases: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
367
+ parentCategory: import_zod6.z.string().min(1),
368
+ cuisineTags: import_zod6.z.array(CuisineTagSchema).default([]),
369
+ categoryTags: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
370
+ semanticTags: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
371
+ granularity: FoodGranularitySchema,
372
+ searchable: import_zod6.z.boolean(),
373
+ recommendable: import_zod6.z.boolean(),
374
+ previewEnabled: import_zod6.z.boolean(),
375
+ imageUrl: import_zod6.z.string().min(1).nullable().optional(),
376
+ image: FoodCodeManifestImageSchema.nullable().optional(),
377
+ popularity: import_zod6.z.number().nonnegative().optional(),
378
+ source: import_zod6.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
379
+ });
380
+ var FoodCodeManifestSchema = import_zod6.z.object({
381
+ version: import_zod6.z.string().min(1),
382
+ updatedAt: ISODateTimeStringSchema,
383
+ taxonomyVersion: import_zod6.z.string().min(1),
384
+ etag: import_zod6.z.string().min(1).optional(),
385
+ items: import_zod6.z.array(FoodCodeManifestItemSchema),
386
+ categoryIndex: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.array(FoodCodeSchema)),
387
+ aliasIndex: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.array(FoodCodeSchema)).optional()
388
+ });
389
+ var FoodImageIndexItemSchema = import_zod6.z.object({
390
+ code: FoodCodeSchema,
391
+ label: FoodLabelSchema,
392
+ imageUrl: import_zod6.z.string().min(1).nullable(),
393
+ image: FoodCodeManifestImageSchema.nullable(),
394
+ source: import_zod6.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
395
+ });
396
+ var FoodImageIndexManifestSchema = import_zod6.z.object({
397
+ version: import_zod6.z.string().min(1),
398
+ updatedAt: ISODateTimeStringSchema,
399
+ taxonomyVersion: import_zod6.z.string().min(1),
400
+ items: import_zod6.z.array(FoodImageIndexItemSchema)
401
+ });
402
+ var ResolvedFoodCodeSchema = import_zod6.z.object({
403
+ code: FoodCodeSchema,
404
+ label: FoodLabelSchema,
405
+ matchedBy: FoodResolvedMatchSourceSchema,
406
+ score: import_zod6.z.number(),
407
+ granularity: FoodGranularitySchema,
408
+ imageUrl: import_zod6.z.string().min(1).nullable().optional()
409
+ });
410
+ var BooleanQuerySchema = import_zod6.z.preprocess((value) => {
411
+ if (value === "true") return true;
412
+ if (value === "false") return false;
413
+ return value;
414
+ }, import_zod6.z.boolean());
415
+ var FoodResolveQuerySchema = import_zod6.z.object({
416
+ q: import_zod6.z.string().default(""),
417
+ limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().default(30),
418
+ recommendableOnly: BooleanQuerySchema.optional().default(true)
419
+ });
420
+ var FoodSearchQuerySchema = import_zod6.z.object({
421
+ q: import_zod6.z.string().default(""),
422
+ limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().default(20)
423
+ });
424
+ var FoodResolveResponseSchema = import_zod6.z.object({
425
+ query: import_zod6.z.string(),
426
+ items: import_zod6.z.array(ResolvedFoodCodeSchema)
427
+ });
428
+ var FoodAiClassMappingStatusSchema = import_zod6.z.enum([
429
+ "exact",
430
+ "broad",
431
+ "narrow",
432
+ "merged",
433
+ "ignored",
434
+ "review_required"
435
+ ]);
436
+ var AiClassFoodCodeMappingSchema = import_zod6.z.object({
437
+ classId: import_zod6.z.number().int().nonnegative(),
438
+ aiLabel: import_zod6.z.string().min(1),
439
+ aiAliases: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
440
+ representativeCode: FoodCodeSchema.nullable(),
441
+ candidateCodes: import_zod6.z.array(FoodCodeSchema).default([]),
442
+ mappingStatus: FoodAiClassMappingStatusSchema,
443
+ granularity: FoodGranularitySchema,
444
+ searchable: import_zod6.z.boolean(),
445
+ recommendable: import_zod6.z.boolean(),
446
+ reason: import_zod6.z.string().min(1).optional()
447
+ });
448
+ var AiClassToFoodCodeMapManifestSchema = import_zod6.z.object({
449
+ version: import_zod6.z.string().min(1),
450
+ updatedAt: ISODateTimeStringSchema,
451
+ modelTaxonomyVersion: import_zod6.z.string().min(1),
452
+ serviceTaxonomyVersion: import_zod6.z.string().min(1),
453
+ classes: import_zod6.z.array(AiClassFoodCodeMappingSchema)
454
+ });
455
+
456
+ // src/domain/meal-plan/meal-plan-decision.schema.ts
457
+ var MealPlanLatitudeSchema = import_zod7.z.number().brand();
458
+ var MealPlanLongitudeSchema = import_zod7.z.number().brand();
459
+ var MealPlanLocationCandidateIdSchema = import_zod7.z.string().min(1).brand();
460
+ var MealPlanMenuCandidateIdSchema = import_zod7.z.string().min(1).brand();
461
+ var MealPlanDecisionStageIdSchema = import_zod7.z.string().uuid().brand();
462
+ var MealPlanVoteIdSchema = import_zod7.z.string().uuid().brand();
463
+ var MealPlanLocationCandidateSourceSchema = import_zod7.z.enum([
464
+ "manual",
465
+ "map-marker",
466
+ "midpoint",
467
+ "user-location",
468
+ "search",
469
+ "recent-place",
470
+ "fallback"
471
+ ]);
472
+ var MealPlanLocationCandidateSchema = import_zod7.z.object({
473
+ locationId: MealPlanLocationCandidateIdSchema,
474
+ placeName: import_zod7.z.string().min(1),
475
+ lat: MealPlanLatitudeSchema,
476
+ lng: MealPlanLongitudeSchema,
477
+ address: import_zod7.z.string().default(""),
478
+ source: MealPlanLocationCandidateSourceSchema.default("manual"),
479
+ createdBy: MemberIdSchema.optional(),
480
+ createdAt: ISODateTimeStringSchema.optional()
481
+ });
482
+ var MealPlanMenuCandidateSourceSchema = import_zod7.z.enum([
483
+ "external-recommendation",
484
+ "prefer-menu",
485
+ "recent-menu",
486
+ "fallback",
487
+ "manual-search"
488
+ ]);
489
+ var MealPlanMenuCandidateSchema = import_zod7.z.object({
490
+ menuCandidateId: MealPlanMenuCandidateIdSchema,
491
+ menu: FoodSchema,
492
+ source: MealPlanMenuCandidateSourceSchema,
493
+ score: import_zod7.z.number().default(0),
494
+ imageUrl: import_zod7.z.string().min(1).nullable().default(null),
495
+ image: FoodCodeManifestImageSchema.nullable().default(null),
496
+ createdAt: ISODateTimeStringSchema
497
+ });
498
+ var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
499
+ candidateId: RestaurantIdSchema.optional(),
500
+ source: import_zod7.z.enum(["search", "fallback", "manual"]).optional(),
501
+ createdAt: ISODateTimeStringSchema.optional()
502
+ });
503
+ var MealPlanDecisionStageTypeSchema = import_zod7.z.enum([
504
+ "DATE",
505
+ "TIME",
506
+ "AREA",
507
+ "MENU",
508
+ "RESTAURANT",
509
+ "FINAL_CONFIRMATION"
510
+ ]);
511
+ var MealPlanDecisionStageStatusSchema = import_zod7.z.enum([
512
+ "OPEN",
513
+ "COMPLETED",
514
+ "REOPENED"
515
+ ]);
516
+ var MealPlanRestaurantSearchStatusSchema = import_zod7.z.enum([
517
+ "IDLE",
518
+ "PENDING",
519
+ "READY",
520
+ "FAILED",
521
+ "STALE"
522
+ ]);
523
+ var MealPlanRestaurantSearchStateSchema = import_zod7.z.object({
524
+ searchKey: import_zod7.z.string().min(1).nullable(),
525
+ status: MealPlanRestaurantSearchStatusSchema,
526
+ startedAt: ISODateTimeStringSchema.nullable(),
527
+ completedAt: ISODateTimeStringSchema.nullable(),
528
+ version: import_zod7.z.number().int().min(0),
529
+ candidateCount: import_zod7.z.number().int().min(0),
530
+ errorMessage: import_zod7.z.string().nullable().default(null)
531
+ });
532
+ var MealPlanDecisionStageMetadataSchema = import_zod7.z.object({
533
+ restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
534
+ }).catchall(import_zod7.z.unknown());
535
+ var MealPlanVoteTypeSchema = import_zod7.z.enum([
536
+ "PICK",
537
+ "EXCLUDE",
538
+ "PREFER",
539
+ "READY"
540
+ ]);
541
+ var MealPlanDecisionCandidateSchema = import_zod7.z.discriminatedUnion("stageType", [
542
+ import_zod7.z.object({ stageType: import_zod7.z.literal("DATE"), value: ISODateStringSchema }),
543
+ import_zod7.z.object({ stageType: import_zod7.z.literal("TIME"), value: TimeHHmmStringSchema }),
544
+ import_zod7.z.object({ stageType: import_zod7.z.literal("AREA"), value: MealPlanLocationCandidateSchema }),
545
+ import_zod7.z.object({ stageType: import_zod7.z.literal("MENU"), value: MealPlanMenuCandidateSchema }),
546
+ import_zod7.z.object({ stageType: import_zod7.z.literal("RESTAURANT"), value: MealPlanRestaurantCandidateSchema }),
547
+ import_zod7.z.object({ stageType: import_zod7.z.literal("FINAL_CONFIRMATION"), value: import_zod7.z.literal("READY") })
548
+ ]);
549
+ var MealPlanVoteSchema = import_zod7.z.object({
550
+ voteId: MealPlanVoteIdSchema,
551
+ voterId: MemberIdSchema.nullable(),
552
+ guestId: import_zod7.z.string().min(1).nullable(),
553
+ voteType: MealPlanVoteTypeSchema,
554
+ candidate: MealPlanDecisionCandidateSchema,
555
+ createdAt: ISODateTimeStringSchema
556
+ });
557
+ var MealPlanDecisionStageResponseSchema = import_zod7.z.object({
558
+ stageId: MealPlanDecisionStageIdSchema,
559
+ stageType: MealPlanDecisionStageTypeSchema,
560
+ status: MealPlanDecisionStageStatusSchema,
561
+ candidates: import_zod7.z.array(MealPlanDecisionCandidateSchema),
562
+ votes: import_zod7.z.array(MealPlanVoteSchema),
563
+ selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
564
+ metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
565
+ openedAt: ISODateTimeStringSchema,
566
+ completedAt: ISODateTimeStringSchema.nullable(),
567
+ reopenedAt: ISODateTimeStringSchema.nullable()
568
+ });
569
+ var CreateMealPlanVoteRequestSchema = import_zod7.z.object({
570
+ voteType: MealPlanVoteTypeSchema,
571
+ candidate: MealPlanDecisionCandidateSchema
572
+ });
573
+ var CompleteMealPlanDecisionStageRequestSchema = import_zod7.z.object({
574
+ selectedCandidate: MealPlanDecisionCandidateSchema
575
+ });
576
+ var MealPlanChangeRequestStatusSchema = import_zod7.z.enum([
577
+ "PENDING",
578
+ "ACCEPTED",
579
+ "REJECTED",
580
+ "CANCELLED"
581
+ ]);
582
+ var CreateMealPlanChangeRequestSchema = import_zod7.z.object({
583
+ stageType: MealPlanDecisionStageTypeSchema,
584
+ reason: import_zod7.z.string().min(1).max(500),
585
+ proposedCandidate: MealPlanDecisionCandidateSchema.optional()
586
+ });
587
+ var MealPlanChangeRequestSummarySchema = import_zod7.z.object({
588
+ changeRequestId: MealPlanChangeRequestIdSchema,
589
+ stageType: MealPlanDecisionStageTypeSchema,
590
+ status: MealPlanChangeRequestStatusSchema,
591
+ reason: import_zod7.z.string(),
592
+ requestedAt: ISODateTimeStringSchema
593
+ });
594
+ var MealPlanDecisionTaskKeySchema = import_zod7.z.enum([
595
+ "SCHEDULE_DATE",
596
+ "SCHEDULE_TIME",
597
+ "LOCATION_CANDIDATE",
598
+ "LOCATION_VOTE",
599
+ "EXCLUDE_MENU",
600
+ "PREFER_MENU",
601
+ "MENU_PICK",
602
+ "RESTAURANT_SEARCH",
603
+ "RESTAURANT_PICK",
604
+ "FINAL_CONFIRMATION"
605
+ ]);
606
+ var MealPlanDecisionTaskStatusSchema = import_zod7.z.enum([
607
+ "LOCKED",
608
+ "OPEN",
609
+ "RESOLVED",
610
+ "STALE"
611
+ ]);
612
+ var MealPlanDecisionFinalFieldSchema = import_zod7.z.enum([
613
+ "date",
614
+ "time",
615
+ "meetingAt",
616
+ "area",
617
+ "menu",
618
+ "restaurant"
619
+ ]);
620
+ var MealPlanDecisionSnapshotStatusSchema = import_zod7.z.enum([
621
+ "CANDIDATE",
622
+ "PROVISIONAL",
623
+ "FINAL",
624
+ "STALE"
625
+ ]);
626
+ var MealPlanDecisionReasonSchema = import_zod7.z.enum([
627
+ "COMMON_SCHEDULE",
628
+ "TOP_VOTED_LOCATION",
629
+ "TOP_PICKED_MENU",
630
+ "TOP_PICKED_RESTAURANT",
631
+ "OWNER_CONFIRMED",
632
+ "MANUAL_SELECTION"
633
+ ]);
634
+ var MealPlanDecisionActorTypeSchema = import_zod7.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
635
+ var MealPlanDecisionSnapshotSchema = import_zod7.z.object({
636
+ snapshotId: import_zod7.z.string().uuid(),
637
+ mealPlanId: import_zod7.z.string().uuid(),
638
+ field: MealPlanDecisionFinalFieldSchema,
639
+ value: import_zod7.z.unknown(),
640
+ status: MealPlanDecisionSnapshotStatusSchema,
641
+ reason: MealPlanDecisionReasonSchema,
642
+ score: import_zod7.z.number().nullable().default(null),
643
+ sourceEvent: import_zod7.z.string().min(1),
644
+ sourceActorType: MealPlanDecisionActorTypeSchema,
645
+ sourceMemberId: MemberIdSchema.nullable(),
646
+ sourceGuestId: import_zod7.z.string().min(1).nullable(),
647
+ sourceParticipantId: import_zod7.z.string().uuid().nullable(),
648
+ sourceVersion: import_zod7.z.number().int().min(0),
649
+ dependencyHash: import_zod7.z.string().min(1),
650
+ dependencyFields: import_zod7.z.array(MealPlanDecisionFinalFieldSchema),
651
+ createdAt: ISODateTimeStringSchema,
652
+ staleAt: ISODateTimeStringSchema.nullable()
653
+ });
654
+ var MealPlanDecisionTaskProgressSchema = import_zod7.z.object({
655
+ taskKey: MealPlanDecisionTaskKeySchema,
656
+ status: MealPlanDecisionTaskStatusSchema,
657
+ blockers: import_zod7.z.array(import_zod7.z.string()).default([]),
658
+ updatedAt: ISODateTimeStringSchema
659
+ });
660
+ var MealPlanDecisionProgressSchema = import_zod7.z.object({
661
+ mealPlanId: import_zod7.z.string().uuid(),
662
+ status: import_zod7.z.string().min(1),
663
+ tasks: import_zod7.z.array(MealPlanDecisionTaskProgressSchema),
664
+ final: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()),
665
+ provisional: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()),
666
+ snapshots: import_zod7.z.array(MealPlanDecisionSnapshotSchema),
667
+ version: import_zod7.z.number().int().min(0),
668
+ updatedAt: ISODateTimeStringSchema
669
+ });
670
+ var ReopenMealPlanDecisionTaskRequestSchema = import_zod7.z.object({
671
+ reason: import_zod7.z.string().max(500).optional()
672
+ });
673
+ var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod7.z.object({
674
+ snapshotId: import_zod7.z.string().uuid()
675
+ });
676
+
677
+ // src/domain/meal-plan/meal-plan-participant.schema.ts
678
+ var import_zod8 = require("zod");
679
+ var MealPlanParticipantIdSchema = import_zod8.z.string().uuid().brand();
680
+ var MealPlanParticipantRoleSchema = import_zod8.z.enum([
681
+ "OWNER",
682
+ "FRIEND",
683
+ "GUEST"
684
+ ]);
685
+ var MealPlanParticipantStatusSchema = import_zod8.z.enum([
686
+ "INVITED",
687
+ "REQUESTED",
688
+ "JOINED",
689
+ "READY",
690
+ "DECLINED",
691
+ "LEFT",
692
+ "REMOVED"
693
+ ]);
694
+ var MealPlanJoinSourceSchema = import_zod8.z.enum([
695
+ "OWNER",
696
+ "FRIEND_INVITE",
697
+ "LINK_GUEST",
698
+ "NEARBY_FRIENDS"
699
+ ]);
700
+ var MealPlanGuestParticipantSchema = import_zod8.z.object({
701
+ guestId: import_zod8.z.string().min(1),
702
+ nickname: import_zod8.z.string().min(1).max(50)
703
+ });
704
+ var MealPlanParticipantResponseSchema = import_zod8.z.object({
705
+ participantId: MealPlanParticipantIdSchema,
706
+ mealPlanId: MealPlanIdSchema,
707
+ member: MemberCoreSchema.nullable(),
708
+ guest: MealPlanGuestParticipantSchema.nullable(),
709
+ role: MealPlanParticipantRoleSchema,
710
+ status: MealPlanParticipantStatusSchema,
711
+ source: MealPlanJoinSourceSchema,
712
+ joinedAt: ISODateTimeStringSchema.nullable(),
713
+ readyAt: ISODateTimeStringSchema.nullable()
714
+ });
715
+ var CreateMealPlanParticipantRequestSchema = import_zod8.z.object({
716
+ memberId: MemberIdSchema.optional(),
717
+ guestNickname: import_zod8.z.string().min(1).max(50).optional(),
718
+ source: MealPlanJoinSourceSchema
719
+ });
720
+
721
+ // src/domain/meal-plan/meal-plan-invite.schema.ts
722
+ var import_zod9 = require("zod");
723
+ var MealPlanInviteStatusSchema = import_zod9.z.enum([
724
+ "PENDING",
725
+ "ACCEPTED",
726
+ "DECLINED",
727
+ "CANCELLED",
728
+ "EXPIRED"
729
+ ]);
730
+ var CreateMealPlanInviteRequestSchema = import_zod9.z.object({
731
+ inviteeId: MemberIdSchema,
732
+ message: import_zod9.z.string().max(500).default("")
733
+ });
734
+ var MealPlanInviteSummarySchema = import_zod9.z.object({
735
+ inviteId: MealPlanInviteIdSchema,
736
+ mealPlanId: MealPlanIdSchema,
737
+ inviter: MemberCoreSchema,
738
+ invitee: MemberCoreSchema,
739
+ status: MealPlanInviteStatusSchema,
740
+ message: import_zod9.z.string().max(500),
741
+ createdAt: ISODateTimeStringSchema,
742
+ respondedAt: ISODateTimeStringSchema.nullable()
743
+ });
744
+ var MealPlanInviteListResponseSchema = import_zod9.z.array(MealPlanInviteSummarySchema);
745
+ var SendMealPlanInviteResponseSchema = import_zod9.z.object({
746
+ inviteId: MealPlanInviteIdSchema
747
+ });
748
+
749
+ // src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
750
+ var import_zod10 = require("zod");
751
+ var MealPlanNearbyFriendExposureIdSchema = import_zod10.z.string().uuid().brand();
752
+ var MealPlanNearbyFriendExposureStatusSchema = import_zod10.z.enum([
753
+ "OPEN",
754
+ "CLOSED",
755
+ "EXPIRED"
756
+ ]);
757
+ var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod10.z.enum([
758
+ "PENDING",
759
+ "SENT",
760
+ "PARTIAL",
761
+ "FAILED",
762
+ "SKIPPED"
763
+ ]);
764
+ var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod10.z.object({
765
+ radiusMeters: import_zod10.z.number().int().min(100).max(5e3).default(1e3),
766
+ expiresAt: ISODateTimeStringSchema.optional()
767
+ });
768
+ var NearbyFriendExposureEligibilitySchema = import_zod10.z.object({
769
+ canExpose: import_zod10.z.boolean(),
770
+ locationConsentStatus: LocationConsentStatusSchema,
771
+ nearbyMealPlanExposureAllowed: import_zod10.z.boolean(),
772
+ mealSuggestionAllowed: import_zod10.z.boolean(),
773
+ hasLastKnownLocation: import_zod10.z.boolean(),
774
+ missingRequirements: import_zod10.z.array(import_zod10.z.enum([
775
+ "LOCATION_PERMISSION",
776
+ "SERVICE_LOCATION_CONSENT",
777
+ "NEARBY_EXPOSURE_TOGGLE",
778
+ "MEAL_SUGGESTION_TOGGLE",
779
+ "LAST_KNOWN_LOCATION"
780
+ ]))
781
+ });
782
+ var MealPlanNearbyFriendRejectionReasonSchema = import_zod10.z.enum([
783
+ "NOT_FRIEND",
784
+ "BLOCKED",
785
+ "LOCATION_CONSENT_REQUIRED",
786
+ "LOCATION_UNAVAILABLE",
787
+ "OUT_OF_RADIUS",
788
+ "MEAL_SUGGESTION_DISABLED",
789
+ "NOT_HUNGRY"
790
+ ]);
791
+ var MealPlanNearbyFriendRejectionSummarySchema = import_zod10.z.object({
792
+ reason: MealPlanNearbyFriendRejectionReasonSchema,
793
+ count: import_zod10.z.number().int().min(0)
794
+ });
795
+ var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod10.z.object({
796
+ mealPlanId: MealPlanIdSchema,
797
+ exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
798
+ exposedFriendCount: import_zod10.z.number().int().min(0),
799
+ rejectedFriendCount: import_zod10.z.number().int().min(0),
800
+ notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
801
+ rejectionSummary: import_zod10.z.array(MealPlanNearbyFriendRejectionSummarySchema)
802
+ });
803
+ var MealPlanNearbyFriendExposureSummarySchema = import_zod10.z.object({
804
+ exposureId: MealPlanNearbyFriendExposureIdSchema,
805
+ exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
806
+ mealPlanId: MealPlanIdSchema,
807
+ status: MealPlanNearbyFriendExposureStatusSchema,
808
+ radiusMeters: import_zod10.z.number().int().min(100),
809
+ exposedFriendCount: import_zod10.z.number().int().min(0),
810
+ openedAt: ISODateTimeStringSchema,
811
+ expiresAt: ISODateTimeStringSchema.nullable(),
812
+ closedAt: ISODateTimeStringSchema.nullable()
813
+ });
814
+ var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod10.z.object({
815
+ exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
816
+ mealPlanId: MealPlanIdSchema,
817
+ status: MealPlanNearbyFriendExposureStatusSchema,
818
+ radiusMeters: import_zod10.z.number().int().min(100),
819
+ exposedFriendCount: import_zod10.z.number().int().min(0),
820
+ rejectedFriendCount: import_zod10.z.number().int().min(0),
821
+ rejectionSummary: import_zod10.z.array(MealPlanNearbyFriendRejectionSummarySchema),
822
+ notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
823
+ notificationSentAt: ISODateTimeStringSchema.nullable(),
824
+ openedAt: ISODateTimeStringSchema,
825
+ expiresAt: ISODateTimeStringSchema.nullable(),
826
+ closedAt: ISODateTimeStringSchema.nullable()
827
+ });
828
+ var MealPlanJoinRequestStatusSchema = import_zod10.z.enum([
829
+ "PENDING",
830
+ "ACCEPTED",
831
+ "REJECTED",
832
+ "CANCELLED"
833
+ ]);
834
+ var CreateMealPlanJoinRequestSchema = import_zod10.z.object({
835
+ message: import_zod10.z.string().max(500).default("")
836
+ });
837
+ var MealPlanJoinRequestSummarySchema = import_zod10.z.object({
838
+ joinRequestId: MealPlanJoinRequestIdSchema,
839
+ mealPlanId: MealPlanIdSchema,
840
+ requester: MemberCoreSchema,
841
+ status: MealPlanJoinRequestStatusSchema,
842
+ message: import_zod10.z.string().max(500),
843
+ requestedAt: ISODateTimeStringSchema,
844
+ respondedAt: ISODateTimeStringSchema.nullable()
845
+ });
846
+ var NearbyFriendMealPlanSummarySchema = import_zod10.z.object({
847
+ mealPlanId: MealPlanIdSchema,
848
+ owner: MemberCoreSchema,
849
+ title: import_zod10.z.string(),
850
+ participantCount: import_zod10.z.number().int().min(1),
851
+ distanceMeters: import_zod10.z.number().int().min(0),
852
+ exposedAt: ISODateTimeStringSchema,
853
+ expiresAt: ISODateTimeStringSchema.nullable(),
854
+ joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
855
+ });
856
+
857
+ // src/domain/meal-plan/meal-plan-chat.schema.ts
858
+ var import_zod11 = require("zod");
859
+ var MealPlanChatMessageKindSchema = import_zod11.z.enum([
860
+ "USER",
861
+ "SYSTEM"
862
+ ]);
863
+ var MealPlanSystemMessageKindSchema = import_zod11.z.enum([
864
+ "PARTICIPANT_JOINED",
865
+ "PARTICIPANT_READY",
866
+ "PARTICIPANT_REMOVED",
867
+ "STATUS_CHANGED",
868
+ "DECISION_UPDATED",
869
+ "CONFIRMED",
870
+ "RECORD_NEEDED"
871
+ ]);
872
+ var MealPlanChatSystemPayloadSchema = import_zod11.z.object({
873
+ kind: MealPlanSystemMessageKindSchema
874
+ }).catchall(import_zod11.z.unknown());
875
+ var MealPlanChatMessageListResponseSchema = import_zod11.z.array(
876
+ import_zod11.z.lazy(() => MealPlanChatMessageResponseSchema)
877
+ );
878
+ var MealPlanChatRoomSummarySchema = import_zod11.z.object({
879
+ chatRoomId: MealPlanChatRoomIdSchema,
880
+ mealPlanId: MealPlanIdSchema,
881
+ messageCount: import_zod11.z.number().int().min(0),
882
+ lastMessageAt: ISODateTimeStringSchema.nullable(),
883
+ createdAt: ISODateTimeStringSchema
884
+ });
885
+ var SendMealPlanChatMessageRequestSchema = import_zod11.z.object({
886
+ message: import_zod11.z.string().min(1).max(500)
887
+ });
888
+ var MealPlanChatMessageResponseSchema = import_zod11.z.object({
889
+ messageId: MealPlanChatMessageIdSchema,
890
+ chatRoomId: MealPlanChatRoomIdSchema,
891
+ sender: MemberCoreSchema.nullable(),
892
+ guestId: import_zod11.z.string().min(1).nullable(),
893
+ guestNickname: import_zod11.z.string().min(1).nullable(),
894
+ kind: MealPlanChatMessageKindSchema,
895
+ message: import_zod11.z.string().min(1).max(1e3),
896
+ systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
897
+ createdAt: ISODateTimeStringSchema
898
+ });
899
+ var MealPlanSystemMessageSchema = import_zod11.z.object({
900
+ kind: MealPlanSystemMessageKindSchema,
901
+ message: import_zod11.z.string().min(1),
902
+ createdAt: ISODateTimeStringSchema
903
+ });
904
+
905
+ // src/domain/meal-plan/meal-plan.schema.ts
906
+ var MealPlanStatusSchema = import_zod12.z.enum([
907
+ "DRAFT",
908
+ "RECOMMENDING",
909
+ "GATHERING",
910
+ "DECIDING",
911
+ "READY",
912
+ "CONFIRMED",
913
+ "LOCKED",
914
+ "COMPLETED",
915
+ "RECORDED",
916
+ "CANCELLED"
917
+ ]);
918
+ var MealPlanChannelSchema = import_zod12.z.enum([
919
+ "OWNER_ONLY",
920
+ "FRIEND_INVITE",
921
+ "LINK_GUEST",
922
+ "NEARBY_FRIENDS"
923
+ ]);
924
+ var MealPlanRecommendationContextSchema = import_zod12.z.object({
925
+ mealDate: ISODateStringSchema.optional(),
926
+ mealTime: TimeHHmmStringSchema.optional(),
927
+ area: MealPlanLocationCandidateSchema.optional(),
928
+ preferredMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
929
+ excludedMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
930
+ candidateMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
931
+ budgetMin: import_zod12.z.number().int().min(0).optional(),
932
+ budgetMax: import_zod12.z.number().int().min(0).optional(),
933
+ memo: import_zod12.z.string().max(500).optional()
934
+ });
935
+ var CreateMealPlanRequestSchema = import_zod12.z.object({
936
+ title: import_zod12.z.string().min(1).max(100).optional(),
937
+ channels: import_zod12.z.array(MealPlanChannelSchema).default(["OWNER_ONLY"]),
938
+ recommendationContext: MealPlanRecommendationContextSchema.optional()
939
+ });
940
+ var CreateMealPlanResponseSchema = import_zod12.z.object({
941
+ mealPlanId: MealPlanIdSchema
942
+ });
943
+ var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
944
+ var MealPlanViewerRoleSchema = import_zod12.z.enum([
945
+ "OWNER",
946
+ "FRIEND",
947
+ "GUEST",
948
+ "NONE"
949
+ ]);
950
+ var MealPlanViewerPermissionsSchema = import_zod12.z.object({
951
+ canView: import_zod12.z.boolean(),
952
+ canInviteFriends: import_zod12.z.boolean(),
953
+ canManageParticipants: import_zod12.z.boolean(),
954
+ canCreateShareLink: import_zod12.z.boolean(),
955
+ canExposeNearbyFriends: import_zod12.z.boolean(),
956
+ canVote: import_zod12.z.boolean(),
957
+ canChat: import_zod12.z.boolean(),
958
+ canReadyMealPlan: import_zod12.z.boolean(),
959
+ canRequestChange: import_zod12.z.boolean(),
960
+ canReopenDecisionTask: import_zod12.z.boolean(),
961
+ canConfirmDecisionSnapshot: import_zod12.z.boolean(),
962
+ canConfirmMealPlan: import_zod12.z.boolean(),
963
+ canCompleteMealPlan: import_zod12.z.boolean(),
964
+ canRecordMealPlan: import_zod12.z.boolean(),
965
+ canCancelMealPlan: import_zod12.z.boolean()
966
+ });
967
+ var MealPlanResponseSchema = import_zod12.z.object({
968
+ mealPlanId: MealPlanIdSchema,
969
+ owner: MemberCoreSchema,
970
+ title: import_zod12.z.string().nullable(),
971
+ status: MealPlanStatusSchema,
972
+ channels: import_zod12.z.array(MealPlanChannelSchema),
973
+ participants: import_zod12.z.array(MealPlanParticipantResponseSchema),
974
+ pendingInvites: import_zod12.z.array(MealPlanInviteSummarySchema),
975
+ pendingJoinRequests: import_zod12.z.array(MealPlanJoinRequestSummarySchema),
976
+ decisionStages: import_zod12.z.array(MealPlanDecisionStageResponseSchema),
977
+ decisionProgress: MealPlanDecisionProgressSchema.nullable(),
978
+ viewerRole: MealPlanViewerRoleSchema,
979
+ viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
980
+ viewerPermissions: MealPlanViewerPermissionsSchema,
981
+ selectedDate: ISODateStringSchema.nullable(),
982
+ selectedTime: TimeHHmmStringSchema.nullable(),
983
+ selectedArea: MealPlanLocationCandidateSchema.nullable(),
984
+ selectedRestaurant: RestaurantSchema.nullable(),
985
+ selectedMenuCategory: import_zod12.z.string().nullable(),
986
+ chatRoom: MealPlanChatRoomSummarySchema.nullable(),
987
+ confirmedAt: ISODateTimeStringSchema.nullable(),
988
+ lockedAt: ISODateTimeStringSchema.nullable(),
989
+ completedAt: ISODateTimeStringSchema.nullable(),
990
+ recordedAt: ISODateTimeStringSchema.nullable(),
991
+ createdAt: ISODateTimeStringSchema,
992
+ updatedAt: ISODateTimeStringSchema
993
+ });
994
+ var MyMealPlanGroupSchema = import_zod12.z.enum(["DECIDING", "UPCOMING", "RECORD_NEEDED", "PAST"]);
995
+ var MyMealPlanListItemSchema = import_zod12.z.object({
996
+ mealPlanId: MealPlanIdSchema,
997
+ group: MyMealPlanGroupSchema,
998
+ title: import_zod12.z.string(),
999
+ status: MealPlanStatusSchema,
1000
+ channels: import_zod12.z.array(MealPlanChannelSchema),
1001
+ participantCount: import_zod12.z.number().int().min(1),
1002
+ selectedDate: ISODateStringSchema.nullable(),
1003
+ selectedTime: TimeHHmmStringSchema.nullable(),
1004
+ selectedAreaName: import_zod12.z.string().nullable(),
1005
+ selectedRestaurantName: import_zod12.z.string().nullable(),
1006
+ primaryAction: import_zod12.z.object({
1007
+ label: import_zod12.z.string(),
1008
+ href: import_zod12.z.string()
1009
+ }),
1010
+ updatedAt: ISODateTimeStringSchema
1011
+ });
1012
+ var MyMealPlanListResponseSchema = import_zod12.z.object({
1013
+ deciding: import_zod12.z.array(MyMealPlanListItemSchema),
1014
+ upcoming: import_zod12.z.array(MyMealPlanListItemSchema),
1015
+ recordNeeded: import_zod12.z.array(MyMealPlanListItemSchema),
1016
+ past: import_zod12.z.array(MyMealPlanListItemSchema)
1017
+ });
1018
+ var MealPlanNotificationKindSchema = import_zod12.z.enum([
1019
+ "MEAL_PLAN_INVITE_RECEIVED",
1020
+ "MEAL_PLAN_INVITE_ACCEPTED",
1021
+ "MEAL_PLAN_JOIN_REQUESTED",
1022
+ "MEAL_PLAN_JOIN_REQUEST_ACCEPTED",
1023
+ "MEAL_PLAN_NEARBY_FRIEND_EXPOSED",
1024
+ "MEAL_PLAN_PARTICIPANT_JOINED",
1025
+ "MEAL_PLAN_READY_COMPLETED",
1026
+ "MEAL_PLAN_CONFIRMED",
1027
+ "MEAL_PLAN_LOCKED",
1028
+ "MEAL_PLAN_RECORD_NEEDED"
1029
+ ]);
1030
+ var MealPlanNotificationPriorityChannelSchema = import_zod12.z.enum([
1031
+ "HOME",
1032
+ "NOTIFICATION_INBOX",
1033
+ "FCM_PUSH",
1034
+ "LIVE_ACTIVITY"
1035
+ ]);
1036
+ var MealPlanLiveActivityBehaviorSchema = import_zod12.z.enum([
1037
+ "NONE",
1038
+ "START_OR_UPDATE",
1039
+ "UPDATE",
1040
+ "END"
1041
+ ]);
1042
+ var MealPlanNotificationPriorityPolicyItemSchema = import_zod12.z.object({
1043
+ kind: MealPlanNotificationKindSchema,
1044
+ priority: import_zod12.z.number().int().min(0),
1045
+ homePriority: import_zod12.z.number().int().min(0),
1046
+ inboxPriority: import_zod12.z.number().int().min(0),
1047
+ fcmPriority: import_zod12.z.number().int().min(0),
1048
+ liveActivityPriority: import_zod12.z.number().int().min(0),
1049
+ liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
1050
+ foregroundToast: import_zod12.z.boolean()
1051
+ });
1052
+ var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
1053
+ MEAL_PLAN_JOIN_REQUESTED: {
1054
+ kind: "MEAL_PLAN_JOIN_REQUESTED",
1055
+ priority: 5,
1056
+ homePriority: 5,
1057
+ inboxPriority: 5,
1058
+ fcmPriority: 10,
1059
+ liveActivityPriority: 80,
1060
+ liveActivityBehavior: "NONE",
1061
+ foregroundToast: true
1062
+ },
1063
+ MEAL_PLAN_INVITE_RECEIVED: {
1064
+ kind: "MEAL_PLAN_INVITE_RECEIVED",
1065
+ priority: 12,
1066
+ homePriority: 12,
1067
+ inboxPriority: 12,
1068
+ fcmPriority: 15,
1069
+ liveActivityPriority: 80,
1070
+ liveActivityBehavior: "NONE",
1071
+ foregroundToast: true
1072
+ },
1073
+ MEAL_PLAN_RECORD_NEEDED: {
1074
+ kind: "MEAL_PLAN_RECORD_NEEDED",
1075
+ priority: 18,
1076
+ homePriority: 18,
1077
+ inboxPriority: 18,
1078
+ fcmPriority: 20,
1079
+ liveActivityPriority: 60,
1080
+ liveActivityBehavior: "END",
1081
+ foregroundToast: true
1082
+ },
1083
+ MEAL_PLAN_LOCKED: {
1084
+ kind: "MEAL_PLAN_LOCKED",
1085
+ priority: 22,
1086
+ homePriority: 22,
1087
+ inboxPriority: 22,
1088
+ fcmPriority: 8,
1089
+ liveActivityPriority: 5,
1090
+ liveActivityBehavior: "START_OR_UPDATE",
1091
+ foregroundToast: true
1092
+ },
1093
+ MEAL_PLAN_CONFIRMED: {
1094
+ kind: "MEAL_PLAN_CONFIRMED",
1095
+ priority: 24,
1096
+ homePriority: 24,
1097
+ inboxPriority: 24,
1098
+ fcmPriority: 12,
1099
+ liveActivityPriority: 12,
1100
+ liveActivityBehavior: "START_OR_UPDATE",
1101
+ foregroundToast: true
1102
+ },
1103
+ MEAL_PLAN_NEARBY_FRIEND_EXPOSED: {
1104
+ kind: "MEAL_PLAN_NEARBY_FRIEND_EXPOSED",
1105
+ priority: 28,
1106
+ homePriority: 28,
1107
+ inboxPriority: 28,
1108
+ fcmPriority: 24,
1109
+ liveActivityPriority: 80,
1110
+ liveActivityBehavior: "NONE",
1111
+ foregroundToast: false
1112
+ },
1113
+ MEAL_PLAN_READY_COMPLETED: {
1114
+ kind: "MEAL_PLAN_READY_COMPLETED",
1115
+ priority: 32,
1116
+ homePriority: 32,
1117
+ inboxPriority: 32,
1118
+ fcmPriority: 28,
1119
+ liveActivityPriority: 20,
1120
+ liveActivityBehavior: "UPDATE",
1121
+ foregroundToast: false
1122
+ },
1123
+ MEAL_PLAN_JOIN_REQUEST_ACCEPTED: {
1124
+ kind: "MEAL_PLAN_JOIN_REQUEST_ACCEPTED",
1125
+ priority: 36,
1126
+ homePriority: 36,
1127
+ inboxPriority: 36,
1128
+ fcmPriority: 30,
1129
+ liveActivityPriority: 80,
1130
+ liveActivityBehavior: "NONE",
1131
+ foregroundToast: true
1132
+ },
1133
+ MEAL_PLAN_INVITE_ACCEPTED: {
1134
+ kind: "MEAL_PLAN_INVITE_ACCEPTED",
1135
+ priority: 40,
1136
+ homePriority: 40,
1137
+ inboxPriority: 40,
1138
+ fcmPriority: 34,
1139
+ liveActivityPriority: 80,
1140
+ liveActivityBehavior: "NONE",
1141
+ foregroundToast: true
1142
+ },
1143
+ MEAL_PLAN_PARTICIPANT_JOINED: {
1144
+ kind: "MEAL_PLAN_PARTICIPANT_JOINED",
1145
+ priority: 44,
1146
+ homePriority: 44,
1147
+ inboxPriority: 44,
1148
+ fcmPriority: 38,
1149
+ liveActivityPriority: 32,
1150
+ liveActivityBehavior: "UPDATE",
1151
+ foregroundToast: false
1152
+ }
1153
+ };
1154
+ var MealPlanNotificationSchema = import_zod12.z.object({
1155
+ notificationId: import_zod12.z.string().min(1),
1156
+ kind: MealPlanNotificationKindSchema,
1157
+ mealPlanId: MealPlanIdSchema,
1158
+ deepLink: import_zod12.z.string().min(1),
1159
+ title: import_zod12.z.string().min(1),
1160
+ message: import_zod12.z.string().min(1),
1161
+ createdAt: ISODateTimeStringSchema,
1162
+ readAt: ISODateTimeStringSchema.nullable()
1163
+ });
1164
+
1165
+ // src/domain/meal-plan/meal-plan-share-link.schema.ts
1166
+ var import_zod13 = require("zod");
1167
+ var CreateMealPlanShareLinkRequestSchema = import_zod13.z.object({
1168
+ expiresAt: ISODateTimeStringSchema.optional(),
1169
+ guestJoinEnabled: import_zod13.z.boolean().default(true)
1170
+ });
1171
+ var MealPlanShareLinkSummarySchema = import_zod13.z.object({
1172
+ shareLinkId: MealPlanShareLinkIdSchema,
1173
+ mealPlanId: MealPlanIdSchema,
1174
+ token: MealPlanShareLinkTokenSchema,
1175
+ url: import_zod13.z.string().url(),
1176
+ expiresAt: ISODateTimeStringSchema,
1177
+ guestJoinEnabled: import_zod13.z.boolean(),
1178
+ createdAt: ISODateTimeStringSchema
1179
+ });
1180
+ var MealPlanSharePreviewResponseSchema = import_zod13.z.object({
1181
+ mealPlanId: MealPlanIdSchema,
1182
+ token: MealPlanShareLinkTokenSchema,
1183
+ title: import_zod13.z.string(),
1184
+ ownerName: import_zod13.z.string(),
1185
+ participantCount: import_zod13.z.number().int().min(1),
1186
+ expiresAt: ISODateTimeStringSchema,
1187
+ guestJoinEnabled: import_zod13.z.boolean()
1188
+ });
1189
+ var JoinMealPlanGuestRequestSchema = import_zod13.z.object({
1190
+ nickname: import_zod13.z.string().min(1).max(50),
1191
+ password: import_zod13.z.string().min(1).max(100).optional()
1192
+ });
1193
+ var JoinMealPlanGuestResponseSchema = import_zod13.z.object({
1194
+ mealPlanId: MealPlanIdSchema,
1195
+ guestId: import_zod13.z.string().min(1),
1196
+ sessionToken: import_zod13.z.string().min(1)
1197
+ });
1198
+ var MealPlanGuestSessionQuerySchema = import_zod13.z.object({
1199
+ sessionToken: import_zod13.z.string().min(1)
1200
+ });
1201
+ var MealPlanGuestSessionResponseSchema = import_zod13.z.object({
1202
+ mealPlan: MealPlanResponseSchema,
1203
+ token: MealPlanShareLinkTokenSchema,
1204
+ guestId: import_zod13.z.string().min(1),
1205
+ nickname: import_zod13.z.string().min(1).max(50),
1206
+ sessionToken: import_zod13.z.string().min(1)
1207
+ });
1208
+
1209
+ // src/domain/meal-plan/meal-group.schema.ts
1210
+ var import_zod14 = require("zod");
1211
+ var MealGroupMemberRoleSchema = import_zod14.z.enum([
1212
+ "OWNER",
1213
+ "MEMBER"
1214
+ ]);
1215
+ var MealGroupMemberSchema = import_zod14.z.object({
1216
+ member: MemberCoreSchema,
1217
+ role: MealGroupMemberRoleSchema,
1218
+ joinedAt: ISODateTimeStringSchema
1219
+ });
1220
+ var MealGroupResponseSchema = import_zod14.z.object({
1221
+ mealGroupId: MealGroupIdSchema,
1222
+ name: import_zod14.z.string().min(1).max(50),
1223
+ owner: MemberCoreSchema,
1224
+ profileImageUrl: import_zod14.z.string().url().nullable(),
1225
+ members: import_zod14.z.array(MealGroupMemberSchema),
1226
+ recentMealPlanIds: import_zod14.z.array(MealPlanIdSchema),
1227
+ createdAt: ISODateTimeStringSchema,
1228
+ updatedAt: ISODateTimeStringSchema
1229
+ });
1230
+ var CreateMealGroupRequestSchema = import_zod14.z.object({
1231
+ name: import_zod14.z.string().min(1).max(50),
1232
+ memberIds: import_zod14.z.array(import_zod14.z.number().int().positive()).min(1),
1233
+ profileImageUrl: import_zod14.z.string().url().nullable().optional(),
1234
+ sourceMealPlanId: MealPlanIdSchema.optional()
1235
+ });
1236
+ var StartMealPlanFromGroupRequestSchema = import_zod14.z.object({
1237
+ title: import_zod14.z.string().min(1).max(100).optional()
1238
+ });
1239
+ var AddMealGroupMemberRequestSchema = import_zod14.z.object({
1240
+ memberId: import_zod14.z.number().int().positive(),
1241
+ role: MealGroupMemberRoleSchema.default("MEMBER")
1242
+ });
1243
+ var UpdateMealGroupMemberRoleRequestSchema = import_zod14.z.object({
1244
+ role: MealGroupMemberRoleSchema
1245
+ });
1246
+ var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
1247
+ var MealGroupPreferenceSummarySchema = import_zod14.z.object({
1248
+ mealGroupId: MealGroupIdSchema,
1249
+ frequentMenuCategories: import_zod14.z.array(import_zod14.z.object({ label: import_zod14.z.string(), count: import_zod14.z.number().int().min(0) })),
1250
+ frequentRestaurants: import_zod14.z.array(import_zod14.z.object({ restaurantName: import_zod14.z.string(), count: import_zod14.z.number().int().min(0) })),
1251
+ recentMenuCategories: import_zod14.z.array(import_zod14.z.string()),
1252
+ recommendationContext: import_zod14.z.object({
1253
+ preferredMenuCategories: import_zod14.z.array(import_zod14.z.string()),
1254
+ excludedMenuCategories: import_zod14.z.array(import_zod14.z.string()),
1255
+ candidateMenuCategories: import_zod14.z.array(import_zod14.z.string())
1256
+ })
1257
+ });
1258
+ var MealGroupHistoryResponseSchema = import_zod14.z.array(MealGroupHistoryItemSchema);
1259
+
1260
+ // src/domain/meal-plan/meal-plan-home-map.schema.ts
1261
+ var import_zod15 = require("zod");
1262
+ var HomeMealPlanActionKindSchema = import_zod15.z.enum([
1263
+ "CONTINUE_DECISION",
1264
+ "TODAY_UPCOMING",
1265
+ "RECORD_NEEDED",
1266
+ "RESPOND_JOIN_REQUEST",
1267
+ "NOTIFICATION_FOLLOW_UP"
1268
+ ]);
1269
+ var HomeMealPlanActionCardSchema = import_zod15.z.object({
1270
+ actionId: import_zod15.z.string().min(1),
1271
+ kind: HomeMealPlanActionKindSchema,
1272
+ priority: import_zod15.z.number().int().min(0),
1273
+ title: import_zod15.z.string().min(1),
1274
+ description: import_zod15.z.string().min(1),
1275
+ primaryAction: import_zod15.z.object({
1276
+ label: import_zod15.z.string().min(1),
1277
+ href: import_zod15.z.string().min(1)
1278
+ }),
1279
+ mealPlan: MyMealPlanListItemSchema.nullable(),
1280
+ joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
1281
+ notification: MealPlanNotificationSchema.nullable().default(null)
1282
+ });
1283
+ var HomeMealPlanDashboardResponseSchema = import_zod15.z.object({
1284
+ generatedAt: ISODateTimeStringSchema,
1285
+ inProgress: import_zod15.z.array(MyMealPlanListItemSchema),
1286
+ today: import_zod15.z.array(MyMealPlanListItemSchema),
1287
+ recordNeeded: import_zod15.z.array(MyMealPlanListItemSchema),
1288
+ pendingJoinRequests: import_zod15.z.array(MealPlanJoinRequestSummarySchema),
1289
+ unreadNotifications: import_zod15.z.array(MealPlanNotificationSchema).default([]),
1290
+ nextActions: import_zod15.z.array(HomeMealPlanActionCardSchema)
1291
+ });
1292
+ var MealMapLayerSchema = import_zod15.z.enum([
1293
+ "MY_MEAL_PLAN_PLACE",
1294
+ "NEARBY_FRIEND_MEAL_PLAN",
1295
+ "FRIEND_RECORD_LOCATION",
1296
+ "RESTAURANT_CANDIDATE"
1297
+ ]);
1298
+ var MealMapMarkerBaseSchema = import_zod15.z.object({
1299
+ markerId: import_zod15.z.string().min(1),
1300
+ lat: import_zod15.z.number().min(-90).max(90),
1301
+ lng: import_zod15.z.number().min(-180).max(180),
1302
+ title: import_zod15.z.string().min(1),
1303
+ subtitle: import_zod15.z.string().nullable(),
1304
+ href: import_zod15.z.string().min(1).nullable(),
1305
+ mealPlanId: MealPlanIdSchema.nullable(),
1306
+ articleId: ArticleIdSchema.nullable(),
1307
+ restaurant: RestaurantSchema.nullable(),
1308
+ distanceMeters: import_zod15.z.number().int().min(0).nullable(),
1309
+ updatedAt: ISODateTimeStringSchema
1310
+ });
1311
+ var MealMapMyMealPlanPlaceMetadataSchema = import_zod15.z.object({
1312
+ ownerId: MemberIdSchema.nullable().default(null),
1313
+ status: import_zod15.z.string().min(1),
1314
+ participantCount: import_zod15.z.number().int().min(1),
1315
+ source: import_zod15.z.string().min(1)
1316
+ });
1317
+ var MealMapNearbyFriendMealPlanMetadataSchema = import_zod15.z.object({
1318
+ ownerId: MemberIdSchema.nullable().default(null),
1319
+ ownerName: import_zod15.z.string().min(1),
1320
+ participantCount: import_zod15.z.number().int().min(1),
1321
+ expiresAt: ISODateTimeStringSchema.nullable(),
1322
+ source: import_zod15.z.string().min(1)
1323
+ });
1324
+ var MealMapFriendRecordLocationMetadataSchema = import_zod15.z.object({
1325
+ authorId: MemberIdSchema.nullable().default(null),
1326
+ authorName: import_zod15.z.string().min(1),
1327
+ imageUrl: import_zod15.z.string().nullable().default(null),
1328
+ mealDate: import_zod15.z.string().min(1)
1329
+ });
1330
+ var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod15.z.enum([
1331
+ "OWNER_ONLY",
1332
+ "STAGE_ALREADY_COMPLETED",
1333
+ "MEAL_PLAN_NOT_MUTABLE"
1334
+ ]);
1335
+ var MealMapRestaurantCandidateMetadataSchema = import_zod15.z.object({
1336
+ stageId: MealPlanDecisionStageIdSchema,
1337
+ ownerId: MemberIdSchema.nullable().default(null),
1338
+ status: import_zod15.z.string().min(1),
1339
+ source: import_zod15.z.enum(["search", "fallback", "manual"]).default("search"),
1340
+ stageStatus: import_zod15.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1341
+ canVote: import_zod15.z.boolean().default(false),
1342
+ canCompleteStage: import_zod15.z.boolean().default(false),
1343
+ completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
1344
+ });
1345
+ var MealMapMarkerSchema = import_zod15.z.discriminatedUnion("layer", [
1346
+ MealMapMarkerBaseSchema.extend({
1347
+ layer: import_zod15.z.literal("MY_MEAL_PLAN_PLACE"),
1348
+ metadata: MealMapMyMealPlanPlaceMetadataSchema
1349
+ }),
1350
+ MealMapMarkerBaseSchema.extend({
1351
+ layer: import_zod15.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1352
+ metadata: MealMapNearbyFriendMealPlanMetadataSchema
1353
+ }),
1354
+ MealMapMarkerBaseSchema.extend({
1355
+ layer: import_zod15.z.literal("FRIEND_RECORD_LOCATION"),
1356
+ metadata: MealMapFriendRecordLocationMetadataSchema
1357
+ }),
1358
+ MealMapMarkerBaseSchema.extend({
1359
+ layer: import_zod15.z.literal("RESTAURANT_CANDIDATE"),
1360
+ metadata: MealMapRestaurantCandidateMetadataSchema
1361
+ })
1362
+ ]);
1363
+ var MealMapQuerySchema = import_zod15.z.object({
1364
+ friendRecordDays: import_zod15.z.coerce.number().int().min(1).max(90).optional().default(7)
1365
+ });
1366
+ var MealMapResponseSchema = import_zod15.z.object({
1367
+ generatedAt: ISODateTimeStringSchema,
1368
+ center: import_zod15.z.object({
1369
+ lat: import_zod15.z.number().min(-90).max(90),
1370
+ lng: import_zod15.z.number().min(-180).max(180),
1371
+ source: import_zod15.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1372
+ }),
1373
+ layers: import_zod15.z.object({
1374
+ myMealPlanPlaces: import_zod15.z.array(MealMapMarkerSchema),
1375
+ nearbyFriendMealPlans: import_zod15.z.array(MealMapMarkerSchema),
1376
+ friendRecordLocations: import_zod15.z.array(MealMapMarkerSchema),
1377
+ restaurantCandidates: import_zod15.z.array(MealMapMarkerSchema)
1378
+ })
1379
+ });
1380
+
1381
+ // src/domain/meal-plan/meal-plan-notification-priority.ts
1382
+ var DEFAULT_POLICY = MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES.MEAL_PLAN_PARTICIPANT_JOINED;
1383
+ function getMealPlanNotificationPriorityPolicy(kind) {
1384
+ return MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES[kind] ?? DEFAULT_POLICY;
1385
+ }
1386
+ function getMealPlanNotificationPriority(kind, channel = "HOME") {
1387
+ const policy = getMealPlanNotificationPriorityPolicy(kind);
1388
+ switch (channel) {
1389
+ case "HOME":
1390
+ return policy.homePriority;
1391
+ case "NOTIFICATION_INBOX":
1392
+ return policy.inboxPriority;
1393
+ case "FCM_PUSH":
1394
+ return policy.fcmPriority;
1395
+ case "LIVE_ACTIVITY":
1396
+ return policy.liveActivityPriority;
1397
+ default:
1398
+ return policy.priority;
1399
+ }
1400
+ }
1401
+ function getMealPlanLiveActivityBehavior(kind) {
1402
+ return getMealPlanNotificationPriorityPolicy(kind).liveActivityBehavior;
1403
+ }
1404
+ function shouldShowForegroundToast(kind) {
1405
+ return getMealPlanNotificationPriorityPolicy(kind).foregroundToast;
1406
+ }
1407
+ function compareMealPlanNotificationsByPriority(channel) {
1408
+ return (a, b) => {
1409
+ const unreadDelta = Number(Boolean(a.readAt)) - Number(Boolean(b.readAt));
1410
+ if (unreadDelta !== 0) return unreadDelta;
1411
+ const priorityDelta = getMealPlanNotificationPriority(a.kind, channel) - getMealPlanNotificationPriority(b.kind, channel);
1412
+ if (priorityDelta !== 0) return priorityDelta;
1413
+ return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
1414
+ };
1415
+ }
1416
+ // Annotate the CommonJS export names for ESM import in node:
1417
+ 0 && (module.exports = {
1418
+ AddMealGroupMemberRequestSchema,
1419
+ CompleteMealPlanDecisionStageRequestSchema,
1420
+ ConfirmMealPlanDecisionSnapshotRequestSchema,
1421
+ CreateMealGroupRequestSchema,
1422
+ CreateMealPlanChangeRequestSchema,
1423
+ CreateMealPlanInviteRequestSchema,
1424
+ CreateMealPlanJoinRequestSchema,
1425
+ CreateMealPlanParticipantRequestSchema,
1426
+ CreateMealPlanRequestSchema,
1427
+ CreateMealPlanResponseSchema,
1428
+ CreateMealPlanShareLinkRequestSchema,
1429
+ CreateMealPlanVoteRequestSchema,
1430
+ ExposeMealPlanToNearbyFriendsRequestSchema,
1431
+ ExposeMealPlanToNearbyFriendsResponseSchema,
1432
+ HomeMealPlanActionCardSchema,
1433
+ HomeMealPlanActionKindSchema,
1434
+ HomeMealPlanDashboardResponseSchema,
1435
+ JoinMealPlanGuestRequestSchema,
1436
+ JoinMealPlanGuestResponseSchema,
1437
+ MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES,
1438
+ MealGroupHistoryItemSchema,
1439
+ MealGroupHistoryResponseSchema,
1440
+ MealGroupMemberRoleSchema,
1441
+ MealGroupMemberSchema,
1442
+ MealGroupPreferenceSummarySchema,
1443
+ MealGroupResponseSchema,
1444
+ MealMapFriendRecordLocationMetadataSchema,
1445
+ MealMapLayerSchema,
1446
+ MealMapMarkerSchema,
1447
+ MealMapMyMealPlanPlaceMetadataSchema,
1448
+ MealMapNearbyFriendMealPlanMetadataSchema,
1449
+ MealMapQuerySchema,
1450
+ MealMapResponseSchema,
1451
+ MealMapRestaurantCandidateCompletionBlockedReasonSchema,
1452
+ MealMapRestaurantCandidateMetadataSchema,
1453
+ MealPlanChangeRequestStatusSchema,
1454
+ MealPlanChangeRequestSummarySchema,
1455
+ MealPlanChannelSchema,
1456
+ MealPlanChatMessageKindSchema,
1457
+ MealPlanChatMessageListResponseSchema,
1458
+ MealPlanChatMessageResponseSchema,
1459
+ MealPlanChatRoomSummarySchema,
1460
+ MealPlanChatSystemPayloadSchema,
1461
+ MealPlanDecisionActorTypeSchema,
1462
+ MealPlanDecisionCandidateSchema,
1463
+ MealPlanDecisionFinalFieldSchema,
1464
+ MealPlanDecisionProgressSchema,
1465
+ MealPlanDecisionReasonSchema,
1466
+ MealPlanDecisionSnapshotSchema,
1467
+ MealPlanDecisionSnapshotStatusSchema,
1468
+ MealPlanDecisionStageIdSchema,
1469
+ MealPlanDecisionStageMetadataSchema,
1470
+ MealPlanDecisionStageResponseSchema,
1471
+ MealPlanDecisionStageStatusSchema,
1472
+ MealPlanDecisionStageTypeSchema,
1473
+ MealPlanDecisionTaskKeySchema,
1474
+ MealPlanDecisionTaskProgressSchema,
1475
+ MealPlanDecisionTaskStatusSchema,
1476
+ MealPlanGuestParticipantSchema,
1477
+ MealPlanGuestSessionQuerySchema,
1478
+ MealPlanGuestSessionResponseSchema,
1479
+ MealPlanInviteListResponseSchema,
1480
+ MealPlanInviteStatusSchema,
1481
+ MealPlanInviteSummarySchema,
1482
+ MealPlanJoinRequestStatusSchema,
1483
+ MealPlanJoinRequestSummarySchema,
1484
+ MealPlanJoinSourceSchema,
1485
+ MealPlanLatitudeSchema,
1486
+ MealPlanLiveActivityBehaviorSchema,
1487
+ MealPlanLocationCandidateIdSchema,
1488
+ MealPlanLocationCandidateSchema,
1489
+ MealPlanLocationCandidateSourceSchema,
1490
+ MealPlanLongitudeSchema,
1491
+ MealPlanMenuCandidateIdSchema,
1492
+ MealPlanMenuCandidateSchema,
1493
+ MealPlanMenuCandidateSourceSchema,
1494
+ MealPlanNearbyFriendExposureBatchSummarySchema,
1495
+ MealPlanNearbyFriendExposureIdSchema,
1496
+ MealPlanNearbyFriendExposureNotificationStatusSchema,
1497
+ MealPlanNearbyFriendExposureStatusSchema,
1498
+ MealPlanNearbyFriendExposureSummarySchema,
1499
+ MealPlanNearbyFriendRejectionReasonSchema,
1500
+ MealPlanNearbyFriendRejectionSummarySchema,
1501
+ MealPlanNotificationKindSchema,
1502
+ MealPlanNotificationPriorityChannelSchema,
1503
+ MealPlanNotificationPriorityPolicyItemSchema,
1504
+ MealPlanNotificationSchema,
1505
+ MealPlanParticipantIdSchema,
1506
+ MealPlanParticipantResponseSchema,
1507
+ MealPlanParticipantRoleSchema,
1508
+ MealPlanParticipantStatusSchema,
1509
+ MealPlanRecommendationContextSchema,
1510
+ MealPlanResponseSchema,
1511
+ MealPlanRestaurantCandidateSchema,
1512
+ MealPlanRestaurantSearchStateSchema,
1513
+ MealPlanRestaurantSearchStatusSchema,
1514
+ MealPlanShareLinkSummarySchema,
1515
+ MealPlanSharePreviewResponseSchema,
1516
+ MealPlanStatusSchema,
1517
+ MealPlanSystemMessageKindSchema,
1518
+ MealPlanSystemMessageSchema,
1519
+ MealPlanViewerPermissionsSchema,
1520
+ MealPlanViewerRoleSchema,
1521
+ MealPlanVoteIdSchema,
1522
+ MealPlanVoteSchema,
1523
+ MealPlanVoteTypeSchema,
1524
+ MyMealPlanGroupSchema,
1525
+ MyMealPlanListItemSchema,
1526
+ MyMealPlanListResponseSchema,
1527
+ NearbyFriendExposureEligibilitySchema,
1528
+ NearbyFriendMealPlanSummarySchema,
1529
+ ReopenMealPlanDecisionTaskRequestSchema,
1530
+ SendMealPlanChatMessageRequestSchema,
1531
+ SendMealPlanInviteResponseSchema,
1532
+ StartMealPlanFromGroupRequestSchema,
1533
+ UpdateMealGroupMemberRoleRequestSchema,
1534
+ UpdateMealPlanContextRequestSchema,
1535
+ compareMealPlanNotificationsByPriority,
1536
+ getMealPlanLiveActivityBehavior,
1537
+ getMealPlanNotificationPriority,
1538
+ getMealPlanNotificationPriorityPolicy,
1539
+ shouldShowForegroundToast
1540
+ });