@kimdaegyu/babmukdang-shared 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-CUOJE3ER.js → chunk-5FPYU6NF.js} +2 -2
- package/dist/{chunk-IW342TDD.js → chunk-C7JONACW.js} +21 -21
- package/dist/{chunk-HHU5TRDP.js → chunk-KWJE3RYS.js} +1 -1
- package/dist/{chunk-QPTK7F7Y.js → chunk-LXRTJPS5.js} +25 -11
- package/dist/{chunk-2W4HVSYK.js → chunk-OLQ2HIKV.js} +60 -64
- package/dist/{chunk-FODWQLEY.js → chunk-TWX7TUMW.js} +137 -146
- package/dist/domain/article/index.js +2 -2
- package/dist/domain/common/index.cjs +17 -5
- package/dist/domain/common/index.js +11 -11
- package/dist/domain/friend/index.js +2 -2
- package/dist/domain/index.cjs +292 -288
- package/dist/domain/index.d.cts +8 -9
- package/dist/domain/index.d.ts +8 -9
- package/dist/domain/index.js +62 -66
- package/dist/domain/live-activity/index.cjs +17 -5
- package/dist/domain/live-activity/index.js +6 -6
- package/dist/domain/meal/index.js +2 -2
- package/dist/domain/meal-plan/index.cjs +157 -153
- package/dist/domain/meal-plan/index.d.cts +137 -107
- package/dist/domain/meal-plan/index.d.ts +137 -107
- package/dist/domain/meal-plan/index.js +12 -16
- package/dist/domain/push/index.cjs +17 -5
- package/dist/domain/push/index.js +4 -4
- package/dist/index.cjs +288 -282
- package/dist/index.js +13 -13
- package/package.json +1 -1
- package/dist/{chunk-EQLAVUHF.js → chunk-6O2YTBVC.js} +3 -3
- package/dist/{chunk-IRAFNZDL.js → chunk-NENVUHL5.js} +4 -4
- package/dist/{chunk-Q6Y2NBB6.js → chunk-VD3VGLBQ.js} +3 -3
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
MealPlanLiveActivityStateSchema,
|
|
8
8
|
MealPlanLiveActivityUpdateStatusSchema,
|
|
9
9
|
RegisterMealPlanLiveActivitySessionRequestSchema
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-CGFW5LYV.js";
|
|
10
|
+
} from "../../chunk-5FPYU6NF.js";
|
|
11
|
+
import "../../chunk-TWX7TUMW.js";
|
|
12
|
+
import "../../chunk-KWJE3RYS.js";
|
|
13
|
+
import "../../chunk-LXRTJPS5.js";
|
|
15
14
|
import "../../chunk-7JYVBXKQ.js";
|
|
16
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-CGFW5LYV.js";
|
|
17
16
|
import "../../chunk-C63TN7L3.js";
|
|
17
|
+
import "../../chunk-HRM3FQPL.js";
|
|
18
18
|
import "../../chunk-XMRYAG3V.js";
|
|
19
19
|
export {
|
|
20
20
|
EndMealPlanLiveActivitySessionRequestSchema,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
MealStatusResponseSchema,
|
|
6
6
|
MealStatusSchema,
|
|
7
7
|
UpdateMealStatusRequestSchema
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-6O2YTBVC.js";
|
|
9
9
|
import "../../chunk-NJTV6DRT.js";
|
|
10
|
-
import "../../chunk-HRM3FQPL.js";
|
|
11
10
|
import "../../chunk-C63TN7L3.js";
|
|
11
|
+
import "../../chunk-HRM3FQPL.js";
|
|
12
12
|
import "../../chunk-XMRYAG3V.js";
|
|
13
13
|
export {
|
|
14
14
|
FriendMealItemResponseSchema,
|
|
@@ -87,13 +87,8 @@ __export(meal_plan_exports, {
|
|
|
87
87
|
MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
|
|
88
88
|
MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
|
|
89
89
|
MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
|
|
90
|
+
MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
|
|
90
91
|
MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
|
|
91
|
-
MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
|
|
92
|
-
MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
|
|
93
|
-
MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
|
|
94
|
-
MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
|
|
95
|
-
MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
|
|
96
|
-
MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
97
92
|
MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
|
|
98
93
|
MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
|
|
99
94
|
MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
|
|
@@ -112,6 +107,7 @@ __export(meal_plan_exports, {
|
|
|
112
107
|
MealPlanMenuCandidateIdSchema: () => MealPlanMenuCandidateIdSchema,
|
|
113
108
|
MealPlanMenuCandidateSchema: () => MealPlanMenuCandidateSchema,
|
|
114
109
|
MealPlanMenuCandidateSourceSchema: () => MealPlanMenuCandidateSourceSchema,
|
|
110
|
+
MealPlanMenuRecommendationStateSchema: () => MealPlanMenuRecommendationStateSchema,
|
|
115
111
|
MealPlanNearbyFriendExposureBatchSummarySchema: () => MealPlanNearbyFriendExposureBatchSummarySchema,
|
|
116
112
|
MealPlanNearbyFriendExposureIdSchema: () => MealPlanNearbyFriendExposureIdSchema,
|
|
117
113
|
MealPlanNearbyFriendExposureNotificationStatusSchema: () => MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
@@ -154,9 +150,11 @@ __export(meal_plan_exports, {
|
|
|
154
150
|
UpdateMealGroupMemberRoleRequestSchema: () => UpdateMealGroupMemberRoleRequestSchema,
|
|
155
151
|
UpdateMealPlanContextRequestSchema: () => UpdateMealPlanContextRequestSchema,
|
|
156
152
|
compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
|
|
153
|
+
getMealPlanDecisionCandidateKey: () => getMealPlanDecisionCandidateKey,
|
|
157
154
|
getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
|
|
158
155
|
getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
|
|
159
156
|
getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
|
|
157
|
+
getMealPlanRestaurantProvisionCacheKey: () => getMealPlanRestaurantProvisionCacheKey,
|
|
160
158
|
shouldShowForegroundToast: () => shouldShowForegroundToast
|
|
161
159
|
});
|
|
162
160
|
module.exports = __toCommonJS(meal_plan_exports);
|
|
@@ -468,9 +466,7 @@ var MealPlanDecisionStageIdSchema = import_zod7.z.string().uuid().brand();
|
|
|
468
466
|
var MealPlanVoteIdSchema = import_zod7.z.string().uuid().brand();
|
|
469
467
|
var MealPlanLocationCandidateSourceSchema = import_zod7.z.enum([
|
|
470
468
|
"manual",
|
|
471
|
-
"map-marker",
|
|
472
469
|
"midpoint",
|
|
473
|
-
"user-location",
|
|
474
470
|
"search",
|
|
475
471
|
"recent-place",
|
|
476
472
|
"fallback"
|
|
@@ -497,8 +493,8 @@ var MealPlanMenuCandidateSchema = import_zod7.z.object({
|
|
|
497
493
|
menu: FoodSchema,
|
|
498
494
|
source: MealPlanMenuCandidateSourceSchema,
|
|
499
495
|
score: import_zod7.z.number().default(0),
|
|
500
|
-
imageUrl: import_zod7.z.string().min(1).nullable().
|
|
501
|
-
image: FoodCodeManifestImageSchema.nullable().
|
|
496
|
+
imageUrl: import_zod7.z.string().min(1).nullable().optional(),
|
|
497
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
502
498
|
createdAt: ISODateTimeStringSchema
|
|
503
499
|
});
|
|
504
500
|
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
@@ -535,8 +531,15 @@ var MealPlanRestaurantSearchStateSchema = import_zod7.z.object({
|
|
|
535
531
|
candidateCount: import_zod7.z.number().int().min(0),
|
|
536
532
|
errorMessage: import_zod7.z.string().nullable().default(null)
|
|
537
533
|
});
|
|
534
|
+
var MealPlanMenuRecommendationStateSchema = import_zod7.z.object({
|
|
535
|
+
preferenceKey: import_zod7.z.string().min(1),
|
|
536
|
+
generatedFromHash: import_zod7.z.string().min(1),
|
|
537
|
+
generatedAt: ISODateTimeStringSchema,
|
|
538
|
+
candidateCount: import_zod7.z.number().int().min(0)
|
|
539
|
+
});
|
|
538
540
|
var MealPlanDecisionStageMetadataSchema = import_zod7.z.object({
|
|
539
|
-
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
541
|
+
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional(),
|
|
542
|
+
menuRecommendation: MealPlanMenuRecommendationStateSchema.optional()
|
|
540
543
|
}).catchall(import_zod7.z.unknown());
|
|
541
544
|
var MealPlanVoteTypeSchema = import_zod7.z.enum([
|
|
542
545
|
"PICK",
|
|
@@ -612,6 +615,7 @@ var MealPlanDecisionTaskKeySchema = import_zod7.z.enum([
|
|
|
612
615
|
var MealPlanDecisionTaskStatusSchema = import_zod7.z.enum([
|
|
613
616
|
"LOCKED",
|
|
614
617
|
"OPEN",
|
|
618
|
+
"READY",
|
|
615
619
|
"RESOLVED",
|
|
616
620
|
"STALE"
|
|
617
621
|
]);
|
|
@@ -635,6 +639,7 @@ var MealPlanDecisionReasonSchema = import_zod7.z.enum([
|
|
|
635
639
|
"TOP_PICKED_MENU",
|
|
636
640
|
"TOP_PICKED_RESTAURANT",
|
|
637
641
|
"OWNER_CONFIRMED",
|
|
642
|
+
"TASK_ALL_READY",
|
|
638
643
|
"MANUAL_SELECTION"
|
|
639
644
|
]);
|
|
640
645
|
var MealPlanDecisionActorTypeSchema = import_zod7.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
|
|
@@ -660,6 +665,8 @@ var MealPlanDecisionSnapshotSchema = import_zod7.z.object({
|
|
|
660
665
|
var MealPlanDecisionTaskProgressSchema = import_zod7.z.object({
|
|
661
666
|
taskKey: MealPlanDecisionTaskKeySchema,
|
|
662
667
|
status: MealPlanDecisionTaskStatusSchema,
|
|
668
|
+
readyCount: import_zod7.z.number().int().min(0),
|
|
669
|
+
participantCount: import_zod7.z.number().int().min(0),
|
|
663
670
|
blockers: import_zod7.z.array(import_zod7.z.string()).default([]),
|
|
664
671
|
updatedAt: ISODateTimeStringSchema
|
|
665
672
|
});
|
|
@@ -673,6 +680,9 @@ var MealPlanDecisionProgressSchema = import_zod7.z.object({
|
|
|
673
680
|
version: import_zod7.z.number().int().min(0),
|
|
674
681
|
updatedAt: ISODateTimeStringSchema
|
|
675
682
|
});
|
|
683
|
+
var MealPlanDecisionTaskReadyRequestSchema = import_zod7.z.object({
|
|
684
|
+
isReady: import_zod7.z.boolean()
|
|
685
|
+
});
|
|
676
686
|
var ReopenMealPlanDecisionTaskRequestSchema = import_zod7.z.object({
|
|
677
687
|
reason: import_zod7.z.string().max(500).optional()
|
|
678
688
|
});
|
|
@@ -1168,244 +1178,240 @@ var MealPlanNotificationSchema = import_zod12.z.object({
|
|
|
1168
1178
|
readAt: ISODateTimeStringSchema.nullable()
|
|
1169
1179
|
});
|
|
1170
1180
|
|
|
1171
|
-
// src/domain/meal-plan/meal-plan.
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
}
|
|
1191
|
-
var MealPlanDecisionVoteSocketAckSchema = import_zod13.z.discriminatedUnion("ok", [
|
|
1192
|
-
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
1193
|
-
MealPlanDecisionVoteSocketFailureAckSchema
|
|
1194
|
-
]);
|
|
1181
|
+
// src/domain/meal-plan/meal-plan-decision.candidate-key.ts
|
|
1182
|
+
function getMealPlanDecisionCandidateKey(candidate) {
|
|
1183
|
+
switch (candidate.stageType) {
|
|
1184
|
+
case "DATE":
|
|
1185
|
+
case "TIME":
|
|
1186
|
+
return `${candidate.stageType}:${candidate.value}`;
|
|
1187
|
+
case "AREA":
|
|
1188
|
+
return `AREA:${candidate.value.locationId}`;
|
|
1189
|
+
case "MENU":
|
|
1190
|
+
return `MENU:${candidate.value.menu.code}`;
|
|
1191
|
+
case "RESTAURANT":
|
|
1192
|
+
return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
|
|
1193
|
+
case "FINAL_CONFIRMATION":
|
|
1194
|
+
return "FINAL_CONFIRMATION:READY";
|
|
1195
|
+
}
|
|
1196
|
+
return `UNKNOWN:${JSON.stringify(candidate)}`;
|
|
1197
|
+
}
|
|
1198
|
+
function getMealPlanRestaurantProvisionCacheKey(area, menu) {
|
|
1199
|
+
return `restaurant-search:${getMealPlanDecisionCandidateKey(area)}:${getMealPlanDecisionCandidateKey(menu)}`;
|
|
1200
|
+
}
|
|
1195
1201
|
|
|
1196
1202
|
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
1197
|
-
var
|
|
1198
|
-
var CreateMealPlanShareLinkRequestSchema =
|
|
1203
|
+
var import_zod13 = require("zod");
|
|
1204
|
+
var CreateMealPlanShareLinkRequestSchema = import_zod13.z.object({
|
|
1199
1205
|
expiresAt: ISODateTimeStringSchema.optional(),
|
|
1200
|
-
guestJoinEnabled:
|
|
1206
|
+
guestJoinEnabled: import_zod13.z.boolean().default(true)
|
|
1201
1207
|
});
|
|
1202
|
-
var MealPlanShareLinkSummarySchema =
|
|
1208
|
+
var MealPlanShareLinkSummarySchema = import_zod13.z.object({
|
|
1203
1209
|
shareLinkId: MealPlanShareLinkIdSchema,
|
|
1204
1210
|
mealPlanId: MealPlanIdSchema,
|
|
1205
1211
|
token: MealPlanShareLinkTokenSchema,
|
|
1206
|
-
url:
|
|
1212
|
+
url: import_zod13.z.string().url(),
|
|
1207
1213
|
expiresAt: ISODateTimeStringSchema,
|
|
1208
|
-
guestJoinEnabled:
|
|
1214
|
+
guestJoinEnabled: import_zod13.z.boolean(),
|
|
1209
1215
|
createdAt: ISODateTimeStringSchema
|
|
1210
1216
|
});
|
|
1211
|
-
var MealPlanSharePreviewResponseSchema =
|
|
1217
|
+
var MealPlanSharePreviewResponseSchema = import_zod13.z.object({
|
|
1212
1218
|
mealPlanId: MealPlanIdSchema,
|
|
1213
1219
|
token: MealPlanShareLinkTokenSchema,
|
|
1214
|
-
title:
|
|
1215
|
-
ownerName:
|
|
1216
|
-
participantCount:
|
|
1220
|
+
title: import_zod13.z.string(),
|
|
1221
|
+
ownerName: import_zod13.z.string(),
|
|
1222
|
+
participantCount: import_zod13.z.number().int().min(1),
|
|
1217
1223
|
expiresAt: ISODateTimeStringSchema,
|
|
1218
|
-
guestJoinEnabled:
|
|
1224
|
+
guestJoinEnabled: import_zod13.z.boolean()
|
|
1219
1225
|
});
|
|
1220
|
-
var JoinMealPlanGuestRequestSchema =
|
|
1221
|
-
nickname:
|
|
1222
|
-
password:
|
|
1226
|
+
var JoinMealPlanGuestRequestSchema = import_zod13.z.object({
|
|
1227
|
+
nickname: import_zod13.z.string().min(1).max(50),
|
|
1228
|
+
password: import_zod13.z.string().min(1).max(100).optional()
|
|
1223
1229
|
});
|
|
1224
|
-
var JoinMealPlanGuestResponseSchema =
|
|
1230
|
+
var JoinMealPlanGuestResponseSchema = import_zod13.z.object({
|
|
1225
1231
|
mealPlanId: MealPlanIdSchema,
|
|
1226
|
-
guestId:
|
|
1227
|
-
sessionToken:
|
|
1232
|
+
guestId: import_zod13.z.string().min(1),
|
|
1233
|
+
sessionToken: import_zod13.z.string().min(1)
|
|
1228
1234
|
});
|
|
1229
|
-
var MealPlanGuestSessionQuerySchema =
|
|
1230
|
-
sessionToken:
|
|
1235
|
+
var MealPlanGuestSessionQuerySchema = import_zod13.z.object({
|
|
1236
|
+
sessionToken: import_zod13.z.string().min(1)
|
|
1231
1237
|
});
|
|
1232
|
-
var MealPlanGuestSessionResponseSchema =
|
|
1238
|
+
var MealPlanGuestSessionResponseSchema = import_zod13.z.object({
|
|
1233
1239
|
mealPlan: MealPlanResponseSchema,
|
|
1234
1240
|
token: MealPlanShareLinkTokenSchema,
|
|
1235
|
-
guestId:
|
|
1236
|
-
nickname:
|
|
1237
|
-
sessionToken:
|
|
1241
|
+
guestId: import_zod13.z.string().min(1),
|
|
1242
|
+
nickname: import_zod13.z.string().min(1).max(50),
|
|
1243
|
+
sessionToken: import_zod13.z.string().min(1)
|
|
1238
1244
|
});
|
|
1239
1245
|
|
|
1240
1246
|
// src/domain/meal-plan/meal-group.schema.ts
|
|
1241
|
-
var
|
|
1242
|
-
var MealGroupMemberRoleSchema =
|
|
1247
|
+
var import_zod14 = require("zod");
|
|
1248
|
+
var MealGroupMemberRoleSchema = import_zod14.z.enum([
|
|
1243
1249
|
"OWNER",
|
|
1244
1250
|
"MEMBER"
|
|
1245
1251
|
]);
|
|
1246
|
-
var MealGroupMemberSchema =
|
|
1252
|
+
var MealGroupMemberSchema = import_zod14.z.object({
|
|
1247
1253
|
member: MemberCoreSchema,
|
|
1248
1254
|
role: MealGroupMemberRoleSchema,
|
|
1249
1255
|
joinedAt: ISODateTimeStringSchema
|
|
1250
1256
|
});
|
|
1251
|
-
var MealGroupResponseSchema =
|
|
1257
|
+
var MealGroupResponseSchema = import_zod14.z.object({
|
|
1252
1258
|
mealGroupId: MealGroupIdSchema,
|
|
1253
|
-
name:
|
|
1259
|
+
name: import_zod14.z.string().min(1).max(50),
|
|
1254
1260
|
owner: MemberCoreSchema,
|
|
1255
|
-
profileImageUrl:
|
|
1256
|
-
members:
|
|
1257
|
-
recentMealPlanIds:
|
|
1261
|
+
profileImageUrl: import_zod14.z.string().url().nullable(),
|
|
1262
|
+
members: import_zod14.z.array(MealGroupMemberSchema),
|
|
1263
|
+
recentMealPlanIds: import_zod14.z.array(MealPlanIdSchema),
|
|
1258
1264
|
createdAt: ISODateTimeStringSchema,
|
|
1259
1265
|
updatedAt: ISODateTimeStringSchema
|
|
1260
1266
|
});
|
|
1261
|
-
var CreateMealGroupRequestSchema =
|
|
1262
|
-
name:
|
|
1263
|
-
memberIds:
|
|
1264
|
-
profileImageUrl:
|
|
1267
|
+
var CreateMealGroupRequestSchema = import_zod14.z.object({
|
|
1268
|
+
name: import_zod14.z.string().min(1).max(50),
|
|
1269
|
+
memberIds: import_zod14.z.array(import_zod14.z.number().int().positive()).min(1),
|
|
1270
|
+
profileImageUrl: import_zod14.z.string().url().nullable().optional(),
|
|
1265
1271
|
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
1266
1272
|
});
|
|
1267
|
-
var StartMealPlanFromGroupRequestSchema =
|
|
1268
|
-
title:
|
|
1273
|
+
var StartMealPlanFromGroupRequestSchema = import_zod14.z.object({
|
|
1274
|
+
title: import_zod14.z.string().min(1).max(100).optional()
|
|
1269
1275
|
});
|
|
1270
|
-
var AddMealGroupMemberRequestSchema =
|
|
1271
|
-
memberId:
|
|
1276
|
+
var AddMealGroupMemberRequestSchema = import_zod14.z.object({
|
|
1277
|
+
memberId: import_zod14.z.number().int().positive(),
|
|
1272
1278
|
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
1273
1279
|
});
|
|
1274
|
-
var UpdateMealGroupMemberRoleRequestSchema =
|
|
1280
|
+
var UpdateMealGroupMemberRoleRequestSchema = import_zod14.z.object({
|
|
1275
1281
|
role: MealGroupMemberRoleSchema
|
|
1276
1282
|
});
|
|
1277
1283
|
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
1278
|
-
var MealGroupPreferenceSummarySchema =
|
|
1284
|
+
var MealGroupPreferenceSummarySchema = import_zod14.z.object({
|
|
1279
1285
|
mealGroupId: MealGroupIdSchema,
|
|
1280
|
-
frequentMenuCategories:
|
|
1281
|
-
frequentRestaurants:
|
|
1282
|
-
recentMenuCategories:
|
|
1283
|
-
recommendationContext:
|
|
1284
|
-
preferredMenuCategories:
|
|
1285
|
-
excludedMenuCategories:
|
|
1286
|
-
candidateMenuCategories:
|
|
1286
|
+
frequentMenuCategories: import_zod14.z.array(import_zod14.z.object({ label: import_zod14.z.string(), count: import_zod14.z.number().int().min(0) })),
|
|
1287
|
+
frequentRestaurants: import_zod14.z.array(import_zod14.z.object({ restaurantName: import_zod14.z.string(), count: import_zod14.z.number().int().min(0) })),
|
|
1288
|
+
recentMenuCategories: import_zod14.z.array(import_zod14.z.string()),
|
|
1289
|
+
recommendationContext: import_zod14.z.object({
|
|
1290
|
+
preferredMenuCategories: import_zod14.z.array(import_zod14.z.string()),
|
|
1291
|
+
excludedMenuCategories: import_zod14.z.array(import_zod14.z.string()),
|
|
1292
|
+
candidateMenuCategories: import_zod14.z.array(import_zod14.z.string())
|
|
1287
1293
|
})
|
|
1288
1294
|
});
|
|
1289
|
-
var MealGroupHistoryResponseSchema =
|
|
1295
|
+
var MealGroupHistoryResponseSchema = import_zod14.z.array(MealGroupHistoryItemSchema);
|
|
1290
1296
|
|
|
1291
1297
|
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
1292
|
-
var
|
|
1293
|
-
var HomeMealPlanActionKindSchema =
|
|
1298
|
+
var import_zod15 = require("zod");
|
|
1299
|
+
var HomeMealPlanActionKindSchema = import_zod15.z.enum([
|
|
1294
1300
|
"CONTINUE_DECISION",
|
|
1295
1301
|
"TODAY_UPCOMING",
|
|
1296
1302
|
"RECORD_NEEDED",
|
|
1297
1303
|
"RESPOND_JOIN_REQUEST",
|
|
1298
1304
|
"NOTIFICATION_FOLLOW_UP"
|
|
1299
1305
|
]);
|
|
1300
|
-
var HomeMealPlanActionCardSchema =
|
|
1301
|
-
actionId:
|
|
1306
|
+
var HomeMealPlanActionCardSchema = import_zod15.z.object({
|
|
1307
|
+
actionId: import_zod15.z.string().min(1),
|
|
1302
1308
|
kind: HomeMealPlanActionKindSchema,
|
|
1303
|
-
priority:
|
|
1304
|
-
title:
|
|
1305
|
-
description:
|
|
1306
|
-
primaryAction:
|
|
1307
|
-
label:
|
|
1308
|
-
href:
|
|
1309
|
+
priority: import_zod15.z.number().int().min(0),
|
|
1310
|
+
title: import_zod15.z.string().min(1),
|
|
1311
|
+
description: import_zod15.z.string().min(1),
|
|
1312
|
+
primaryAction: import_zod15.z.object({
|
|
1313
|
+
label: import_zod15.z.string().min(1),
|
|
1314
|
+
href: import_zod15.z.string().min(1)
|
|
1309
1315
|
}),
|
|
1310
1316
|
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
1311
1317
|
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
1312
1318
|
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
1313
1319
|
});
|
|
1314
|
-
var HomeMealPlanDashboardResponseSchema =
|
|
1320
|
+
var HomeMealPlanDashboardResponseSchema = import_zod15.z.object({
|
|
1315
1321
|
generatedAt: ISODateTimeStringSchema,
|
|
1316
|
-
inProgress:
|
|
1317
|
-
today:
|
|
1318
|
-
recordNeeded:
|
|
1319
|
-
pendingJoinRequests:
|
|
1320
|
-
unreadNotifications:
|
|
1321
|
-
nextActions:
|
|
1322
|
-
});
|
|
1323
|
-
var MealMapLayerSchema =
|
|
1322
|
+
inProgress: import_zod15.z.array(MyMealPlanListItemSchema),
|
|
1323
|
+
today: import_zod15.z.array(MyMealPlanListItemSchema),
|
|
1324
|
+
recordNeeded: import_zod15.z.array(MyMealPlanListItemSchema),
|
|
1325
|
+
pendingJoinRequests: import_zod15.z.array(MealPlanJoinRequestSummarySchema),
|
|
1326
|
+
unreadNotifications: import_zod15.z.array(MealPlanNotificationSchema).default([]),
|
|
1327
|
+
nextActions: import_zod15.z.array(HomeMealPlanActionCardSchema)
|
|
1328
|
+
});
|
|
1329
|
+
var MealMapLayerSchema = import_zod15.z.enum([
|
|
1324
1330
|
"MY_MEAL_PLAN_PLACE",
|
|
1325
1331
|
"NEARBY_FRIEND_MEAL_PLAN",
|
|
1326
1332
|
"FRIEND_RECORD_LOCATION",
|
|
1327
1333
|
"RESTAURANT_CANDIDATE"
|
|
1328
1334
|
]);
|
|
1329
|
-
var MealMapMarkerBaseSchema =
|
|
1330
|
-
markerId:
|
|
1331
|
-
lat:
|
|
1332
|
-
lng:
|
|
1333
|
-
title:
|
|
1334
|
-
subtitle:
|
|
1335
|
-
href:
|
|
1335
|
+
var MealMapMarkerBaseSchema = import_zod15.z.object({
|
|
1336
|
+
markerId: import_zod15.z.string().min(1),
|
|
1337
|
+
lat: import_zod15.z.number().min(-90).max(90),
|
|
1338
|
+
lng: import_zod15.z.number().min(-180).max(180),
|
|
1339
|
+
title: import_zod15.z.string().min(1),
|
|
1340
|
+
subtitle: import_zod15.z.string().nullable(),
|
|
1341
|
+
href: import_zod15.z.string().min(1).nullable(),
|
|
1336
1342
|
mealPlanId: MealPlanIdSchema.nullable(),
|
|
1337
1343
|
articleId: ArticleIdSchema.nullable(),
|
|
1338
1344
|
restaurant: RestaurantSchema.nullable(),
|
|
1339
|
-
distanceMeters:
|
|
1345
|
+
distanceMeters: import_zod15.z.number().int().min(0).nullable(),
|
|
1340
1346
|
updatedAt: ISODateTimeStringSchema
|
|
1341
1347
|
});
|
|
1342
|
-
var MealMapMyMealPlanPlaceMetadataSchema =
|
|
1348
|
+
var MealMapMyMealPlanPlaceMetadataSchema = import_zod15.z.object({
|
|
1343
1349
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1344
|
-
status:
|
|
1345
|
-
participantCount:
|
|
1346
|
-
source:
|
|
1350
|
+
status: import_zod15.z.string().min(1),
|
|
1351
|
+
participantCount: import_zod15.z.number().int().min(1),
|
|
1352
|
+
source: import_zod15.z.string().min(1)
|
|
1347
1353
|
});
|
|
1348
|
-
var MealMapNearbyFriendMealPlanMetadataSchema =
|
|
1354
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = import_zod15.z.object({
|
|
1349
1355
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1350
|
-
ownerName:
|
|
1351
|
-
participantCount:
|
|
1356
|
+
ownerName: import_zod15.z.string().min(1),
|
|
1357
|
+
participantCount: import_zod15.z.number().int().min(1),
|
|
1352
1358
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1353
|
-
source:
|
|
1359
|
+
source: import_zod15.z.string().min(1)
|
|
1354
1360
|
});
|
|
1355
|
-
var MealMapFriendRecordLocationMetadataSchema =
|
|
1361
|
+
var MealMapFriendRecordLocationMetadataSchema = import_zod15.z.object({
|
|
1356
1362
|
authorId: MemberIdSchema.nullable().default(null),
|
|
1357
|
-
authorName:
|
|
1358
|
-
imageUrl:
|
|
1359
|
-
mealDate:
|
|
1363
|
+
authorName: import_zod15.z.string().min(1),
|
|
1364
|
+
imageUrl: import_zod15.z.string().nullable().default(null),
|
|
1365
|
+
mealDate: import_zod15.z.string().min(1)
|
|
1360
1366
|
});
|
|
1361
|
-
var MealMapRestaurantCandidateCompletionBlockedReasonSchema =
|
|
1367
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod15.z.enum([
|
|
1362
1368
|
"OWNER_ONLY",
|
|
1363
1369
|
"STAGE_ALREADY_COMPLETED",
|
|
1364
1370
|
"MEAL_PLAN_NOT_MUTABLE"
|
|
1365
1371
|
]);
|
|
1366
|
-
var MealMapRestaurantCandidateMetadataSchema =
|
|
1372
|
+
var MealMapRestaurantCandidateMetadataSchema = import_zod15.z.object({
|
|
1367
1373
|
stageId: MealPlanDecisionStageIdSchema,
|
|
1368
1374
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1369
|
-
status:
|
|
1370
|
-
source:
|
|
1371
|
-
stageStatus:
|
|
1372
|
-
canVote:
|
|
1373
|
-
canCompleteStage:
|
|
1375
|
+
status: import_zod15.z.string().min(1),
|
|
1376
|
+
source: import_zod15.z.enum(["search", "fallback", "manual"]).default("search"),
|
|
1377
|
+
stageStatus: import_zod15.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
|
|
1378
|
+
canVote: import_zod15.z.boolean().default(false),
|
|
1379
|
+
canCompleteStage: import_zod15.z.boolean().default(false),
|
|
1374
1380
|
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
1375
1381
|
});
|
|
1376
|
-
var MealMapMarkerSchema =
|
|
1382
|
+
var MealMapMarkerSchema = import_zod15.z.discriminatedUnion("layer", [
|
|
1377
1383
|
MealMapMarkerBaseSchema.extend({
|
|
1378
|
-
layer:
|
|
1384
|
+
layer: import_zod15.z.literal("MY_MEAL_PLAN_PLACE"),
|
|
1379
1385
|
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
1380
1386
|
}),
|
|
1381
1387
|
MealMapMarkerBaseSchema.extend({
|
|
1382
|
-
layer:
|
|
1388
|
+
layer: import_zod15.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
1383
1389
|
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
1384
1390
|
}),
|
|
1385
1391
|
MealMapMarkerBaseSchema.extend({
|
|
1386
|
-
layer:
|
|
1392
|
+
layer: import_zod15.z.literal("FRIEND_RECORD_LOCATION"),
|
|
1387
1393
|
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
1388
1394
|
}),
|
|
1389
1395
|
MealMapMarkerBaseSchema.extend({
|
|
1390
|
-
layer:
|
|
1396
|
+
layer: import_zod15.z.literal("RESTAURANT_CANDIDATE"),
|
|
1391
1397
|
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
1392
1398
|
})
|
|
1393
1399
|
]);
|
|
1394
|
-
var MealMapQuerySchema =
|
|
1395
|
-
friendRecordDays:
|
|
1400
|
+
var MealMapQuerySchema = import_zod15.z.object({
|
|
1401
|
+
friendRecordDays: import_zod15.z.coerce.number().int().min(1).max(90).optional().default(7)
|
|
1396
1402
|
});
|
|
1397
|
-
var MealMapResponseSchema =
|
|
1403
|
+
var MealMapResponseSchema = import_zod15.z.object({
|
|
1398
1404
|
generatedAt: ISODateTimeStringSchema,
|
|
1399
|
-
center:
|
|
1400
|
-
lat:
|
|
1401
|
-
lng:
|
|
1402
|
-
source:
|
|
1405
|
+
center: import_zod15.z.object({
|
|
1406
|
+
lat: import_zod15.z.number().min(-90).max(90),
|
|
1407
|
+
lng: import_zod15.z.number().min(-180).max(180),
|
|
1408
|
+
source: import_zod15.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
|
|
1403
1409
|
}),
|
|
1404
|
-
layers:
|
|
1405
|
-
myMealPlanPlaces:
|
|
1406
|
-
nearbyFriendMealPlans:
|
|
1407
|
-
friendRecordLocations:
|
|
1408
|
-
restaurantCandidates:
|
|
1410
|
+
layers: import_zod15.z.object({
|
|
1411
|
+
myMealPlanPlaces: import_zod15.z.array(MealMapMarkerSchema),
|
|
1412
|
+
nearbyFriendMealPlans: import_zod15.z.array(MealMapMarkerSchema),
|
|
1413
|
+
friendRecordLocations: import_zod15.z.array(MealMapMarkerSchema),
|
|
1414
|
+
restaurantCandidates: import_zod15.z.array(MealMapMarkerSchema)
|
|
1409
1415
|
})
|
|
1410
1416
|
});
|
|
1411
1417
|
|
|
@@ -1503,13 +1509,8 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1503
1509
|
MealPlanDecisionStageTypeSchema,
|
|
1504
1510
|
MealPlanDecisionTaskKeySchema,
|
|
1505
1511
|
MealPlanDecisionTaskProgressSchema,
|
|
1512
|
+
MealPlanDecisionTaskReadyRequestSchema,
|
|
1506
1513
|
MealPlanDecisionTaskStatusSchema,
|
|
1507
|
-
MealPlanDecisionVoteSocketAckSchema,
|
|
1508
|
-
MealPlanDecisionVoteSocketErrorSchema,
|
|
1509
|
-
MealPlanDecisionVoteSocketEvent,
|
|
1510
|
-
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
1511
|
-
MealPlanDecisionVoteSocketPayloadSchema,
|
|
1512
|
-
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
1513
1514
|
MealPlanGuestParticipantSchema,
|
|
1514
1515
|
MealPlanGuestSessionQuerySchema,
|
|
1515
1516
|
MealPlanGuestSessionResponseSchema,
|
|
@@ -1528,6 +1529,7 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1528
1529
|
MealPlanMenuCandidateIdSchema,
|
|
1529
1530
|
MealPlanMenuCandidateSchema,
|
|
1530
1531
|
MealPlanMenuCandidateSourceSchema,
|
|
1532
|
+
MealPlanMenuRecommendationStateSchema,
|
|
1531
1533
|
MealPlanNearbyFriendExposureBatchSummarySchema,
|
|
1532
1534
|
MealPlanNearbyFriendExposureIdSchema,
|
|
1533
1535
|
MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
@@ -1570,8 +1572,10 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1570
1572
|
UpdateMealGroupMemberRoleRequestSchema,
|
|
1571
1573
|
UpdateMealPlanContextRequestSchema,
|
|
1572
1574
|
compareMealPlanNotificationsByPriority,
|
|
1575
|
+
getMealPlanDecisionCandidateKey,
|
|
1573
1576
|
getMealPlanLiveActivityBehavior,
|
|
1574
1577
|
getMealPlanNotificationPriority,
|
|
1575
1578
|
getMealPlanNotificationPriorityPolicy,
|
|
1579
|
+
getMealPlanRestaurantProvisionCacheKey,
|
|
1576
1580
|
shouldShowForegroundToast
|
|
1577
1581
|
});
|