@kimdaegyu/babmukdang-shared 2.0.5 → 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-3TY6OPD3.js → chunk-5FPYU6NF.js} +2 -2
- package/dist/{chunk-ITXM3XFJ.js → chunk-C7JONACW.js} +4 -4
- package/dist/{chunk-WYBFBLQC.js → chunk-KWJE3RYS.js} +1 -1
- package/dist/{chunk-GOOH2LGN.js → chunk-LXRTJPS5.js} +19 -5
- package/dist/{chunk-S2Q64AFI.js → chunk-OLQ2HIKV.js} +11 -17
- package/dist/{chunk-7FNZBMB2.js → chunk-TWX7TUMW.js} +118 -145
- package/dist/domain/common/index.cjs +17 -5
- package/dist/domain/common/index.js +5 -5
- package/dist/domain/index.cjs +275 -290
- package/dist/domain/index.d.cts +7 -9
- package/dist/domain/index.d.ts +7 -9
- package/dist/domain/index.js +12 -18
- package/dist/domain/live-activity/index.cjs +17 -5
- package/dist/domain/live-activity/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +140 -155
- package/dist/domain/meal-plan/index.d.cts +132 -112
- package/dist/domain/meal-plan/index.d.ts +132 -112
- package/dist/domain/meal-plan/index.js +8 -14
- package/dist/domain/push/index.cjs +17 -5
- package/dist/domain/push/index.js +2 -2
- package/dist/index.cjs +272 -284
- package/dist/index.js +6 -6
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -158,6 +154,7 @@ __export(meal_plan_exports, {
|
|
|
158
154
|
getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
|
|
159
155
|
getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
|
|
160
156
|
getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
|
|
157
|
+
getMealPlanRestaurantProvisionCacheKey: () => getMealPlanRestaurantProvisionCacheKey,
|
|
161
158
|
shouldShowForegroundToast: () => shouldShowForegroundToast
|
|
162
159
|
});
|
|
163
160
|
module.exports = __toCommonJS(meal_plan_exports);
|
|
@@ -469,9 +466,7 @@ var MealPlanDecisionStageIdSchema = import_zod7.z.string().uuid().brand();
|
|
|
469
466
|
var MealPlanVoteIdSchema = import_zod7.z.string().uuid().brand();
|
|
470
467
|
var MealPlanLocationCandidateSourceSchema = import_zod7.z.enum([
|
|
471
468
|
"manual",
|
|
472
|
-
"map-marker",
|
|
473
469
|
"midpoint",
|
|
474
|
-
"user-location",
|
|
475
470
|
"search",
|
|
476
471
|
"recent-place",
|
|
477
472
|
"fallback"
|
|
@@ -498,8 +493,8 @@ var MealPlanMenuCandidateSchema = import_zod7.z.object({
|
|
|
498
493
|
menu: FoodSchema,
|
|
499
494
|
source: MealPlanMenuCandidateSourceSchema,
|
|
500
495
|
score: import_zod7.z.number().default(0),
|
|
501
|
-
imageUrl: import_zod7.z.string().min(1).nullable().
|
|
502
|
-
image: FoodCodeManifestImageSchema.nullable().
|
|
496
|
+
imageUrl: import_zod7.z.string().min(1).nullable().optional(),
|
|
497
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
503
498
|
createdAt: ISODateTimeStringSchema
|
|
504
499
|
});
|
|
505
500
|
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
@@ -536,8 +531,15 @@ var MealPlanRestaurantSearchStateSchema = import_zod7.z.object({
|
|
|
536
531
|
candidateCount: import_zod7.z.number().int().min(0),
|
|
537
532
|
errorMessage: import_zod7.z.string().nullable().default(null)
|
|
538
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
|
+
});
|
|
539
540
|
var MealPlanDecisionStageMetadataSchema = import_zod7.z.object({
|
|
540
|
-
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
541
|
+
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional(),
|
|
542
|
+
menuRecommendation: MealPlanMenuRecommendationStateSchema.optional()
|
|
541
543
|
}).catchall(import_zod7.z.unknown());
|
|
542
544
|
var MealPlanVoteTypeSchema = import_zod7.z.enum([
|
|
543
545
|
"PICK",
|
|
@@ -613,6 +615,7 @@ var MealPlanDecisionTaskKeySchema = import_zod7.z.enum([
|
|
|
613
615
|
var MealPlanDecisionTaskStatusSchema = import_zod7.z.enum([
|
|
614
616
|
"LOCKED",
|
|
615
617
|
"OPEN",
|
|
618
|
+
"READY",
|
|
616
619
|
"RESOLVED",
|
|
617
620
|
"STALE"
|
|
618
621
|
]);
|
|
@@ -636,6 +639,7 @@ var MealPlanDecisionReasonSchema = import_zod7.z.enum([
|
|
|
636
639
|
"TOP_PICKED_MENU",
|
|
637
640
|
"TOP_PICKED_RESTAURANT",
|
|
638
641
|
"OWNER_CONFIRMED",
|
|
642
|
+
"TASK_ALL_READY",
|
|
639
643
|
"MANUAL_SELECTION"
|
|
640
644
|
]);
|
|
641
645
|
var MealPlanDecisionActorTypeSchema = import_zod7.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
|
|
@@ -661,6 +665,8 @@ var MealPlanDecisionSnapshotSchema = import_zod7.z.object({
|
|
|
661
665
|
var MealPlanDecisionTaskProgressSchema = import_zod7.z.object({
|
|
662
666
|
taskKey: MealPlanDecisionTaskKeySchema,
|
|
663
667
|
status: MealPlanDecisionTaskStatusSchema,
|
|
668
|
+
readyCount: import_zod7.z.number().int().min(0),
|
|
669
|
+
participantCount: import_zod7.z.number().int().min(0),
|
|
664
670
|
blockers: import_zod7.z.array(import_zod7.z.string()).default([]),
|
|
665
671
|
updatedAt: ISODateTimeStringSchema
|
|
666
672
|
});
|
|
@@ -674,6 +680,9 @@ var MealPlanDecisionProgressSchema = import_zod7.z.object({
|
|
|
674
680
|
version: import_zod7.z.number().int().min(0),
|
|
675
681
|
updatedAt: ISODateTimeStringSchema
|
|
676
682
|
});
|
|
683
|
+
var MealPlanDecisionTaskReadyRequestSchema = import_zod7.z.object({
|
|
684
|
+
isReady: import_zod7.z.boolean()
|
|
685
|
+
});
|
|
677
686
|
var ReopenMealPlanDecisionTaskRequestSchema = import_zod7.z.object({
|
|
678
687
|
reason: import_zod7.z.string().max(500).optional()
|
|
679
688
|
});
|
|
@@ -1178,252 +1187,231 @@ function getMealPlanDecisionCandidateKey(candidate) {
|
|
|
1178
1187
|
case "AREA":
|
|
1179
1188
|
return `AREA:${candidate.value.locationId}`;
|
|
1180
1189
|
case "MENU":
|
|
1181
|
-
return `MENU:${candidate.value.
|
|
1190
|
+
return `MENU:${candidate.value.menu.code}`;
|
|
1182
1191
|
case "RESTAURANT":
|
|
1183
1192
|
return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
|
|
1184
1193
|
case "FINAL_CONFIRMATION":
|
|
1185
1194
|
return "FINAL_CONFIRMATION:READY";
|
|
1186
1195
|
}
|
|
1196
|
+
return `UNKNOWN:${JSON.stringify(candidate)}`;
|
|
1197
|
+
}
|
|
1198
|
+
function getMealPlanRestaurantProvisionCacheKey(area, menu) {
|
|
1199
|
+
return `restaurant-search:${getMealPlanDecisionCandidateKey(area)}:${getMealPlanDecisionCandidateKey(menu)}`;
|
|
1187
1200
|
}
|
|
1188
|
-
|
|
1189
|
-
// src/domain/meal-plan/meal-plan.socket.ts
|
|
1190
|
-
var import_zod13 = require("zod");
|
|
1191
|
-
var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
|
|
1192
|
-
var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
|
|
1193
|
-
mealPlanId: MealPlanIdSchema,
|
|
1194
|
-
stageId: MealPlanDecisionStageIdSchema,
|
|
1195
|
-
guestSessionToken: import_zod13.z.string().min(1).optional()
|
|
1196
|
-
});
|
|
1197
|
-
var MealPlanDecisionVoteSocketErrorSchema = import_zod13.z.object({
|
|
1198
|
-
code: import_zod13.z.string().min(1),
|
|
1199
|
-
message: import_zod13.z.string().min(1)
|
|
1200
|
-
});
|
|
1201
|
-
var MealPlanDecisionVoteSocketSuccessAckSchema = import_zod13.z.object({
|
|
1202
|
-
ok: import_zod13.z.literal(true),
|
|
1203
|
-
mealPlan: MealPlanResponseSchema
|
|
1204
|
-
});
|
|
1205
|
-
var MealPlanDecisionVoteSocketFailureAckSchema = import_zod13.z.object({
|
|
1206
|
-
ok: import_zod13.z.literal(false),
|
|
1207
|
-
error: MealPlanDecisionVoteSocketErrorSchema
|
|
1208
|
-
});
|
|
1209
|
-
var MealPlanDecisionVoteSocketAckSchema = import_zod13.z.discriminatedUnion("ok", [
|
|
1210
|
-
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
1211
|
-
MealPlanDecisionVoteSocketFailureAckSchema
|
|
1212
|
-
]);
|
|
1213
1201
|
|
|
1214
1202
|
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
1215
|
-
var
|
|
1216
|
-
var CreateMealPlanShareLinkRequestSchema =
|
|
1203
|
+
var import_zod13 = require("zod");
|
|
1204
|
+
var CreateMealPlanShareLinkRequestSchema = import_zod13.z.object({
|
|
1217
1205
|
expiresAt: ISODateTimeStringSchema.optional(),
|
|
1218
|
-
guestJoinEnabled:
|
|
1206
|
+
guestJoinEnabled: import_zod13.z.boolean().default(true)
|
|
1219
1207
|
});
|
|
1220
|
-
var MealPlanShareLinkSummarySchema =
|
|
1208
|
+
var MealPlanShareLinkSummarySchema = import_zod13.z.object({
|
|
1221
1209
|
shareLinkId: MealPlanShareLinkIdSchema,
|
|
1222
1210
|
mealPlanId: MealPlanIdSchema,
|
|
1223
1211
|
token: MealPlanShareLinkTokenSchema,
|
|
1224
|
-
url:
|
|
1212
|
+
url: import_zod13.z.string().url(),
|
|
1225
1213
|
expiresAt: ISODateTimeStringSchema,
|
|
1226
|
-
guestJoinEnabled:
|
|
1214
|
+
guestJoinEnabled: import_zod13.z.boolean(),
|
|
1227
1215
|
createdAt: ISODateTimeStringSchema
|
|
1228
1216
|
});
|
|
1229
|
-
var MealPlanSharePreviewResponseSchema =
|
|
1217
|
+
var MealPlanSharePreviewResponseSchema = import_zod13.z.object({
|
|
1230
1218
|
mealPlanId: MealPlanIdSchema,
|
|
1231
1219
|
token: MealPlanShareLinkTokenSchema,
|
|
1232
|
-
title:
|
|
1233
|
-
ownerName:
|
|
1234
|
-
participantCount:
|
|
1220
|
+
title: import_zod13.z.string(),
|
|
1221
|
+
ownerName: import_zod13.z.string(),
|
|
1222
|
+
participantCount: import_zod13.z.number().int().min(1),
|
|
1235
1223
|
expiresAt: ISODateTimeStringSchema,
|
|
1236
|
-
guestJoinEnabled:
|
|
1224
|
+
guestJoinEnabled: import_zod13.z.boolean()
|
|
1237
1225
|
});
|
|
1238
|
-
var JoinMealPlanGuestRequestSchema =
|
|
1239
|
-
nickname:
|
|
1240
|
-
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()
|
|
1241
1229
|
});
|
|
1242
|
-
var JoinMealPlanGuestResponseSchema =
|
|
1230
|
+
var JoinMealPlanGuestResponseSchema = import_zod13.z.object({
|
|
1243
1231
|
mealPlanId: MealPlanIdSchema,
|
|
1244
|
-
guestId:
|
|
1245
|
-
sessionToken:
|
|
1232
|
+
guestId: import_zod13.z.string().min(1),
|
|
1233
|
+
sessionToken: import_zod13.z.string().min(1)
|
|
1246
1234
|
});
|
|
1247
|
-
var MealPlanGuestSessionQuerySchema =
|
|
1248
|
-
sessionToken:
|
|
1235
|
+
var MealPlanGuestSessionQuerySchema = import_zod13.z.object({
|
|
1236
|
+
sessionToken: import_zod13.z.string().min(1)
|
|
1249
1237
|
});
|
|
1250
|
-
var MealPlanGuestSessionResponseSchema =
|
|
1238
|
+
var MealPlanGuestSessionResponseSchema = import_zod13.z.object({
|
|
1251
1239
|
mealPlan: MealPlanResponseSchema,
|
|
1252
1240
|
token: MealPlanShareLinkTokenSchema,
|
|
1253
|
-
guestId:
|
|
1254
|
-
nickname:
|
|
1255
|
-
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)
|
|
1256
1244
|
});
|
|
1257
1245
|
|
|
1258
1246
|
// src/domain/meal-plan/meal-group.schema.ts
|
|
1259
|
-
var
|
|
1260
|
-
var MealGroupMemberRoleSchema =
|
|
1247
|
+
var import_zod14 = require("zod");
|
|
1248
|
+
var MealGroupMemberRoleSchema = import_zod14.z.enum([
|
|
1261
1249
|
"OWNER",
|
|
1262
1250
|
"MEMBER"
|
|
1263
1251
|
]);
|
|
1264
|
-
var MealGroupMemberSchema =
|
|
1252
|
+
var MealGroupMemberSchema = import_zod14.z.object({
|
|
1265
1253
|
member: MemberCoreSchema,
|
|
1266
1254
|
role: MealGroupMemberRoleSchema,
|
|
1267
1255
|
joinedAt: ISODateTimeStringSchema
|
|
1268
1256
|
});
|
|
1269
|
-
var MealGroupResponseSchema =
|
|
1257
|
+
var MealGroupResponseSchema = import_zod14.z.object({
|
|
1270
1258
|
mealGroupId: MealGroupIdSchema,
|
|
1271
|
-
name:
|
|
1259
|
+
name: import_zod14.z.string().min(1).max(50),
|
|
1272
1260
|
owner: MemberCoreSchema,
|
|
1273
|
-
profileImageUrl:
|
|
1274
|
-
members:
|
|
1275
|
-
recentMealPlanIds:
|
|
1261
|
+
profileImageUrl: import_zod14.z.string().url().nullable(),
|
|
1262
|
+
members: import_zod14.z.array(MealGroupMemberSchema),
|
|
1263
|
+
recentMealPlanIds: import_zod14.z.array(MealPlanIdSchema),
|
|
1276
1264
|
createdAt: ISODateTimeStringSchema,
|
|
1277
1265
|
updatedAt: ISODateTimeStringSchema
|
|
1278
1266
|
});
|
|
1279
|
-
var CreateMealGroupRequestSchema =
|
|
1280
|
-
name:
|
|
1281
|
-
memberIds:
|
|
1282
|
-
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(),
|
|
1283
1271
|
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
1284
1272
|
});
|
|
1285
|
-
var StartMealPlanFromGroupRequestSchema =
|
|
1286
|
-
title:
|
|
1273
|
+
var StartMealPlanFromGroupRequestSchema = import_zod14.z.object({
|
|
1274
|
+
title: import_zod14.z.string().min(1).max(100).optional()
|
|
1287
1275
|
});
|
|
1288
|
-
var AddMealGroupMemberRequestSchema =
|
|
1289
|
-
memberId:
|
|
1276
|
+
var AddMealGroupMemberRequestSchema = import_zod14.z.object({
|
|
1277
|
+
memberId: import_zod14.z.number().int().positive(),
|
|
1290
1278
|
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
1291
1279
|
});
|
|
1292
|
-
var UpdateMealGroupMemberRoleRequestSchema =
|
|
1280
|
+
var UpdateMealGroupMemberRoleRequestSchema = import_zod14.z.object({
|
|
1293
1281
|
role: MealGroupMemberRoleSchema
|
|
1294
1282
|
});
|
|
1295
1283
|
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
1296
|
-
var MealGroupPreferenceSummarySchema =
|
|
1284
|
+
var MealGroupPreferenceSummarySchema = import_zod14.z.object({
|
|
1297
1285
|
mealGroupId: MealGroupIdSchema,
|
|
1298
|
-
frequentMenuCategories:
|
|
1299
|
-
frequentRestaurants:
|
|
1300
|
-
recentMenuCategories:
|
|
1301
|
-
recommendationContext:
|
|
1302
|
-
preferredMenuCategories:
|
|
1303
|
-
excludedMenuCategories:
|
|
1304
|
-
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())
|
|
1305
1293
|
})
|
|
1306
1294
|
});
|
|
1307
|
-
var MealGroupHistoryResponseSchema =
|
|
1295
|
+
var MealGroupHistoryResponseSchema = import_zod14.z.array(MealGroupHistoryItemSchema);
|
|
1308
1296
|
|
|
1309
1297
|
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
1310
|
-
var
|
|
1311
|
-
var HomeMealPlanActionKindSchema =
|
|
1298
|
+
var import_zod15 = require("zod");
|
|
1299
|
+
var HomeMealPlanActionKindSchema = import_zod15.z.enum([
|
|
1312
1300
|
"CONTINUE_DECISION",
|
|
1313
1301
|
"TODAY_UPCOMING",
|
|
1314
1302
|
"RECORD_NEEDED",
|
|
1315
1303
|
"RESPOND_JOIN_REQUEST",
|
|
1316
1304
|
"NOTIFICATION_FOLLOW_UP"
|
|
1317
1305
|
]);
|
|
1318
|
-
var HomeMealPlanActionCardSchema =
|
|
1319
|
-
actionId:
|
|
1306
|
+
var HomeMealPlanActionCardSchema = import_zod15.z.object({
|
|
1307
|
+
actionId: import_zod15.z.string().min(1),
|
|
1320
1308
|
kind: HomeMealPlanActionKindSchema,
|
|
1321
|
-
priority:
|
|
1322
|
-
title:
|
|
1323
|
-
description:
|
|
1324
|
-
primaryAction:
|
|
1325
|
-
label:
|
|
1326
|
-
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)
|
|
1327
1315
|
}),
|
|
1328
1316
|
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
1329
1317
|
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
1330
1318
|
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
1331
1319
|
});
|
|
1332
|
-
var HomeMealPlanDashboardResponseSchema =
|
|
1320
|
+
var HomeMealPlanDashboardResponseSchema = import_zod15.z.object({
|
|
1333
1321
|
generatedAt: ISODateTimeStringSchema,
|
|
1334
|
-
inProgress:
|
|
1335
|
-
today:
|
|
1336
|
-
recordNeeded:
|
|
1337
|
-
pendingJoinRequests:
|
|
1338
|
-
unreadNotifications:
|
|
1339
|
-
nextActions:
|
|
1340
|
-
});
|
|
1341
|
-
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([
|
|
1342
1330
|
"MY_MEAL_PLAN_PLACE",
|
|
1343
1331
|
"NEARBY_FRIEND_MEAL_PLAN",
|
|
1344
1332
|
"FRIEND_RECORD_LOCATION",
|
|
1345
1333
|
"RESTAURANT_CANDIDATE"
|
|
1346
1334
|
]);
|
|
1347
|
-
var MealMapMarkerBaseSchema =
|
|
1348
|
-
markerId:
|
|
1349
|
-
lat:
|
|
1350
|
-
lng:
|
|
1351
|
-
title:
|
|
1352
|
-
subtitle:
|
|
1353
|
-
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(),
|
|
1354
1342
|
mealPlanId: MealPlanIdSchema.nullable(),
|
|
1355
1343
|
articleId: ArticleIdSchema.nullable(),
|
|
1356
1344
|
restaurant: RestaurantSchema.nullable(),
|
|
1357
|
-
distanceMeters:
|
|
1345
|
+
distanceMeters: import_zod15.z.number().int().min(0).nullable(),
|
|
1358
1346
|
updatedAt: ISODateTimeStringSchema
|
|
1359
1347
|
});
|
|
1360
|
-
var MealMapMyMealPlanPlaceMetadataSchema =
|
|
1348
|
+
var MealMapMyMealPlanPlaceMetadataSchema = import_zod15.z.object({
|
|
1361
1349
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1362
|
-
status:
|
|
1363
|
-
participantCount:
|
|
1364
|
-
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)
|
|
1365
1353
|
});
|
|
1366
|
-
var MealMapNearbyFriendMealPlanMetadataSchema =
|
|
1354
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = import_zod15.z.object({
|
|
1367
1355
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1368
|
-
ownerName:
|
|
1369
|
-
participantCount:
|
|
1356
|
+
ownerName: import_zod15.z.string().min(1),
|
|
1357
|
+
participantCount: import_zod15.z.number().int().min(1),
|
|
1370
1358
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1371
|
-
source:
|
|
1359
|
+
source: import_zod15.z.string().min(1)
|
|
1372
1360
|
});
|
|
1373
|
-
var MealMapFriendRecordLocationMetadataSchema =
|
|
1361
|
+
var MealMapFriendRecordLocationMetadataSchema = import_zod15.z.object({
|
|
1374
1362
|
authorId: MemberIdSchema.nullable().default(null),
|
|
1375
|
-
authorName:
|
|
1376
|
-
imageUrl:
|
|
1377
|
-
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)
|
|
1378
1366
|
});
|
|
1379
|
-
var MealMapRestaurantCandidateCompletionBlockedReasonSchema =
|
|
1367
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod15.z.enum([
|
|
1380
1368
|
"OWNER_ONLY",
|
|
1381
1369
|
"STAGE_ALREADY_COMPLETED",
|
|
1382
1370
|
"MEAL_PLAN_NOT_MUTABLE"
|
|
1383
1371
|
]);
|
|
1384
|
-
var MealMapRestaurantCandidateMetadataSchema =
|
|
1372
|
+
var MealMapRestaurantCandidateMetadataSchema = import_zod15.z.object({
|
|
1385
1373
|
stageId: MealPlanDecisionStageIdSchema,
|
|
1386
1374
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1387
|
-
status:
|
|
1388
|
-
source:
|
|
1389
|
-
stageStatus:
|
|
1390
|
-
canVote:
|
|
1391
|
-
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),
|
|
1392
1380
|
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
1393
1381
|
});
|
|
1394
|
-
var MealMapMarkerSchema =
|
|
1382
|
+
var MealMapMarkerSchema = import_zod15.z.discriminatedUnion("layer", [
|
|
1395
1383
|
MealMapMarkerBaseSchema.extend({
|
|
1396
|
-
layer:
|
|
1384
|
+
layer: import_zod15.z.literal("MY_MEAL_PLAN_PLACE"),
|
|
1397
1385
|
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
1398
1386
|
}),
|
|
1399
1387
|
MealMapMarkerBaseSchema.extend({
|
|
1400
|
-
layer:
|
|
1388
|
+
layer: import_zod15.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
1401
1389
|
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
1402
1390
|
}),
|
|
1403
1391
|
MealMapMarkerBaseSchema.extend({
|
|
1404
|
-
layer:
|
|
1392
|
+
layer: import_zod15.z.literal("FRIEND_RECORD_LOCATION"),
|
|
1405
1393
|
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
1406
1394
|
}),
|
|
1407
1395
|
MealMapMarkerBaseSchema.extend({
|
|
1408
|
-
layer:
|
|
1396
|
+
layer: import_zod15.z.literal("RESTAURANT_CANDIDATE"),
|
|
1409
1397
|
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
1410
1398
|
})
|
|
1411
1399
|
]);
|
|
1412
|
-
var MealMapQuerySchema =
|
|
1413
|
-
friendRecordDays:
|
|
1400
|
+
var MealMapQuerySchema = import_zod15.z.object({
|
|
1401
|
+
friendRecordDays: import_zod15.z.coerce.number().int().min(1).max(90).optional().default(7)
|
|
1414
1402
|
});
|
|
1415
|
-
var MealMapResponseSchema =
|
|
1403
|
+
var MealMapResponseSchema = import_zod15.z.object({
|
|
1416
1404
|
generatedAt: ISODateTimeStringSchema,
|
|
1417
|
-
center:
|
|
1418
|
-
lat:
|
|
1419
|
-
lng:
|
|
1420
|
-
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"])
|
|
1421
1409
|
}),
|
|
1422
|
-
layers:
|
|
1423
|
-
myMealPlanPlaces:
|
|
1424
|
-
nearbyFriendMealPlans:
|
|
1425
|
-
friendRecordLocations:
|
|
1426
|
-
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)
|
|
1427
1415
|
})
|
|
1428
1416
|
});
|
|
1429
1417
|
|
|
@@ -1521,13 +1509,8 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1521
1509
|
MealPlanDecisionStageTypeSchema,
|
|
1522
1510
|
MealPlanDecisionTaskKeySchema,
|
|
1523
1511
|
MealPlanDecisionTaskProgressSchema,
|
|
1512
|
+
MealPlanDecisionTaskReadyRequestSchema,
|
|
1524
1513
|
MealPlanDecisionTaskStatusSchema,
|
|
1525
|
-
MealPlanDecisionVoteSocketAckSchema,
|
|
1526
|
-
MealPlanDecisionVoteSocketErrorSchema,
|
|
1527
|
-
MealPlanDecisionVoteSocketEvent,
|
|
1528
|
-
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
1529
|
-
MealPlanDecisionVoteSocketPayloadSchema,
|
|
1530
|
-
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
1531
1514
|
MealPlanGuestParticipantSchema,
|
|
1532
1515
|
MealPlanGuestSessionQuerySchema,
|
|
1533
1516
|
MealPlanGuestSessionResponseSchema,
|
|
@@ -1546,6 +1529,7 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1546
1529
|
MealPlanMenuCandidateIdSchema,
|
|
1547
1530
|
MealPlanMenuCandidateSchema,
|
|
1548
1531
|
MealPlanMenuCandidateSourceSchema,
|
|
1532
|
+
MealPlanMenuRecommendationStateSchema,
|
|
1549
1533
|
MealPlanNearbyFriendExposureBatchSummarySchema,
|
|
1550
1534
|
MealPlanNearbyFriendExposureIdSchema,
|
|
1551
1535
|
MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
@@ -1592,5 +1576,6 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1592
1576
|
getMealPlanLiveActivityBehavior,
|
|
1593
1577
|
getMealPlanNotificationPriority,
|
|
1594
1578
|
getMealPlanNotificationPriorityPolicy,
|
|
1579
|
+
getMealPlanRestaurantProvisionCacheKey,
|
|
1595
1580
|
shouldShowForegroundToast
|
|
1596
1581
|
});
|