@kimdaegyu/babmukdang-shared 2.0.6 → 2.0.7
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-C7JONACW.js → chunk-D4J2TV26.js} +1 -1
- package/dist/{chunk-TWX7TUMW.js → chunk-ENXVY4SR.js} +143 -111
- package/dist/{chunk-OLQ2HIKV.js → chunk-FWGPEHI4.js} +14 -2
- package/dist/domain/common/index.js +2 -2
- package/dist/domain/index.cjs +284 -247
- package/dist/domain/index.d.cts +9 -3
- package/dist/domain/index.d.ts +9 -3
- package/dist/domain/index.js +15 -3
- package/dist/domain/live-activity/index.js +1 -1
- package/dist/domain/meal-plan/index.cjs +149 -112
- package/dist/domain/meal-plan/index.d.cts +3 -1
- package/dist/domain/meal-plan/index.d.ts +3 -1
- package/dist/domain/meal-plan/index.js +13 -1
- package/dist/index.cjs +278 -247
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -89,6 +89,12 @@ __export(meal_plan_exports, {
|
|
|
89
89
|
MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
|
|
90
90
|
MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
|
|
91
91
|
MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
|
|
92
|
+
MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
|
|
93
|
+
MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
|
|
94
|
+
MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
|
|
95
|
+
MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
|
|
96
|
+
MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
|
|
97
|
+
MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
92
98
|
MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
|
|
93
99
|
MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
|
|
94
100
|
MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
|
|
@@ -1199,219 +1205,244 @@ function getMealPlanRestaurantProvisionCacheKey(area, menu) {
|
|
|
1199
1205
|
return `restaurant-search:${getMealPlanDecisionCandidateKey(area)}:${getMealPlanDecisionCandidateKey(menu)}`;
|
|
1200
1206
|
}
|
|
1201
1207
|
|
|
1202
|
-
// src/domain/meal-plan/meal-plan
|
|
1208
|
+
// src/domain/meal-plan/meal-plan.socket.ts
|
|
1203
1209
|
var import_zod13 = require("zod");
|
|
1204
|
-
var
|
|
1210
|
+
var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
|
|
1211
|
+
var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
|
|
1212
|
+
mealPlanId: MealPlanIdSchema,
|
|
1213
|
+
stageId: MealPlanDecisionStageIdSchema,
|
|
1214
|
+
guestSessionToken: import_zod13.z.string().min(1).optional()
|
|
1215
|
+
});
|
|
1216
|
+
var MealPlanDecisionVoteSocketErrorSchema = import_zod13.z.object({
|
|
1217
|
+
code: import_zod13.z.string().min(1),
|
|
1218
|
+
message: import_zod13.z.string().min(1)
|
|
1219
|
+
});
|
|
1220
|
+
var MealPlanDecisionVoteSocketSuccessAckSchema = import_zod13.z.object({
|
|
1221
|
+
ok: import_zod13.z.literal(true),
|
|
1222
|
+
mealPlan: MealPlanResponseSchema
|
|
1223
|
+
});
|
|
1224
|
+
var MealPlanDecisionVoteSocketFailureAckSchema = import_zod13.z.object({
|
|
1225
|
+
ok: import_zod13.z.literal(false),
|
|
1226
|
+
error: MealPlanDecisionVoteSocketErrorSchema
|
|
1227
|
+
});
|
|
1228
|
+
var MealPlanDecisionVoteSocketAckSchema = import_zod13.z.discriminatedUnion("ok", [
|
|
1229
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
1230
|
+
MealPlanDecisionVoteSocketFailureAckSchema
|
|
1231
|
+
]);
|
|
1232
|
+
|
|
1233
|
+
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
1234
|
+
var import_zod14 = require("zod");
|
|
1235
|
+
var CreateMealPlanShareLinkRequestSchema = import_zod14.z.object({
|
|
1205
1236
|
expiresAt: ISODateTimeStringSchema.optional(),
|
|
1206
|
-
guestJoinEnabled:
|
|
1237
|
+
guestJoinEnabled: import_zod14.z.boolean().default(true)
|
|
1207
1238
|
});
|
|
1208
|
-
var MealPlanShareLinkSummarySchema =
|
|
1239
|
+
var MealPlanShareLinkSummarySchema = import_zod14.z.object({
|
|
1209
1240
|
shareLinkId: MealPlanShareLinkIdSchema,
|
|
1210
1241
|
mealPlanId: MealPlanIdSchema,
|
|
1211
1242
|
token: MealPlanShareLinkTokenSchema,
|
|
1212
|
-
url:
|
|
1243
|
+
url: import_zod14.z.string().url(),
|
|
1213
1244
|
expiresAt: ISODateTimeStringSchema,
|
|
1214
|
-
guestJoinEnabled:
|
|
1245
|
+
guestJoinEnabled: import_zod14.z.boolean(),
|
|
1215
1246
|
createdAt: ISODateTimeStringSchema
|
|
1216
1247
|
});
|
|
1217
|
-
var MealPlanSharePreviewResponseSchema =
|
|
1248
|
+
var MealPlanSharePreviewResponseSchema = import_zod14.z.object({
|
|
1218
1249
|
mealPlanId: MealPlanIdSchema,
|
|
1219
1250
|
token: MealPlanShareLinkTokenSchema,
|
|
1220
|
-
title:
|
|
1221
|
-
ownerName:
|
|
1222
|
-
participantCount:
|
|
1251
|
+
title: import_zod14.z.string(),
|
|
1252
|
+
ownerName: import_zod14.z.string(),
|
|
1253
|
+
participantCount: import_zod14.z.number().int().min(1),
|
|
1223
1254
|
expiresAt: ISODateTimeStringSchema,
|
|
1224
|
-
guestJoinEnabled:
|
|
1255
|
+
guestJoinEnabled: import_zod14.z.boolean()
|
|
1225
1256
|
});
|
|
1226
|
-
var JoinMealPlanGuestRequestSchema =
|
|
1227
|
-
nickname:
|
|
1228
|
-
password:
|
|
1257
|
+
var JoinMealPlanGuestRequestSchema = import_zod14.z.object({
|
|
1258
|
+
nickname: import_zod14.z.string().min(1).max(50),
|
|
1259
|
+
password: import_zod14.z.string().min(1).max(100).optional()
|
|
1229
1260
|
});
|
|
1230
|
-
var JoinMealPlanGuestResponseSchema =
|
|
1261
|
+
var JoinMealPlanGuestResponseSchema = import_zod14.z.object({
|
|
1231
1262
|
mealPlanId: MealPlanIdSchema,
|
|
1232
|
-
guestId:
|
|
1233
|
-
sessionToken:
|
|
1263
|
+
guestId: import_zod14.z.string().min(1),
|
|
1264
|
+
sessionToken: import_zod14.z.string().min(1)
|
|
1234
1265
|
});
|
|
1235
|
-
var MealPlanGuestSessionQuerySchema =
|
|
1236
|
-
sessionToken:
|
|
1266
|
+
var MealPlanGuestSessionQuerySchema = import_zod14.z.object({
|
|
1267
|
+
sessionToken: import_zod14.z.string().min(1)
|
|
1237
1268
|
});
|
|
1238
|
-
var MealPlanGuestSessionResponseSchema =
|
|
1269
|
+
var MealPlanGuestSessionResponseSchema = import_zod14.z.object({
|
|
1239
1270
|
mealPlan: MealPlanResponseSchema,
|
|
1240
1271
|
token: MealPlanShareLinkTokenSchema,
|
|
1241
|
-
guestId:
|
|
1242
|
-
nickname:
|
|
1243
|
-
sessionToken:
|
|
1272
|
+
guestId: import_zod14.z.string().min(1),
|
|
1273
|
+
nickname: import_zod14.z.string().min(1).max(50),
|
|
1274
|
+
sessionToken: import_zod14.z.string().min(1)
|
|
1244
1275
|
});
|
|
1245
1276
|
|
|
1246
1277
|
// src/domain/meal-plan/meal-group.schema.ts
|
|
1247
|
-
var
|
|
1248
|
-
var MealGroupMemberRoleSchema =
|
|
1278
|
+
var import_zod15 = require("zod");
|
|
1279
|
+
var MealGroupMemberRoleSchema = import_zod15.z.enum([
|
|
1249
1280
|
"OWNER",
|
|
1250
1281
|
"MEMBER"
|
|
1251
1282
|
]);
|
|
1252
|
-
var MealGroupMemberSchema =
|
|
1283
|
+
var MealGroupMemberSchema = import_zod15.z.object({
|
|
1253
1284
|
member: MemberCoreSchema,
|
|
1254
1285
|
role: MealGroupMemberRoleSchema,
|
|
1255
1286
|
joinedAt: ISODateTimeStringSchema
|
|
1256
1287
|
});
|
|
1257
|
-
var MealGroupResponseSchema =
|
|
1288
|
+
var MealGroupResponseSchema = import_zod15.z.object({
|
|
1258
1289
|
mealGroupId: MealGroupIdSchema,
|
|
1259
|
-
name:
|
|
1290
|
+
name: import_zod15.z.string().min(1).max(50),
|
|
1260
1291
|
owner: MemberCoreSchema,
|
|
1261
|
-
profileImageUrl:
|
|
1262
|
-
members:
|
|
1263
|
-
recentMealPlanIds:
|
|
1292
|
+
profileImageUrl: import_zod15.z.string().url().nullable(),
|
|
1293
|
+
members: import_zod15.z.array(MealGroupMemberSchema),
|
|
1294
|
+
recentMealPlanIds: import_zod15.z.array(MealPlanIdSchema),
|
|
1264
1295
|
createdAt: ISODateTimeStringSchema,
|
|
1265
1296
|
updatedAt: ISODateTimeStringSchema
|
|
1266
1297
|
});
|
|
1267
|
-
var CreateMealGroupRequestSchema =
|
|
1268
|
-
name:
|
|
1269
|
-
memberIds:
|
|
1270
|
-
profileImageUrl:
|
|
1298
|
+
var CreateMealGroupRequestSchema = import_zod15.z.object({
|
|
1299
|
+
name: import_zod15.z.string().min(1).max(50),
|
|
1300
|
+
memberIds: import_zod15.z.array(import_zod15.z.number().int().positive()).min(1),
|
|
1301
|
+
profileImageUrl: import_zod15.z.string().url().nullable().optional(),
|
|
1271
1302
|
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
1272
1303
|
});
|
|
1273
|
-
var StartMealPlanFromGroupRequestSchema =
|
|
1274
|
-
title:
|
|
1304
|
+
var StartMealPlanFromGroupRequestSchema = import_zod15.z.object({
|
|
1305
|
+
title: import_zod15.z.string().min(1).max(100).optional()
|
|
1275
1306
|
});
|
|
1276
|
-
var AddMealGroupMemberRequestSchema =
|
|
1277
|
-
memberId:
|
|
1307
|
+
var AddMealGroupMemberRequestSchema = import_zod15.z.object({
|
|
1308
|
+
memberId: import_zod15.z.number().int().positive(),
|
|
1278
1309
|
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
1279
1310
|
});
|
|
1280
|
-
var UpdateMealGroupMemberRoleRequestSchema =
|
|
1311
|
+
var UpdateMealGroupMemberRoleRequestSchema = import_zod15.z.object({
|
|
1281
1312
|
role: MealGroupMemberRoleSchema
|
|
1282
1313
|
});
|
|
1283
1314
|
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
1284
|
-
var MealGroupPreferenceSummarySchema =
|
|
1315
|
+
var MealGroupPreferenceSummarySchema = import_zod15.z.object({
|
|
1285
1316
|
mealGroupId: MealGroupIdSchema,
|
|
1286
|
-
frequentMenuCategories:
|
|
1287
|
-
frequentRestaurants:
|
|
1288
|
-
recentMenuCategories:
|
|
1289
|
-
recommendationContext:
|
|
1290
|
-
preferredMenuCategories:
|
|
1291
|
-
excludedMenuCategories:
|
|
1292
|
-
candidateMenuCategories:
|
|
1317
|
+
frequentMenuCategories: import_zod15.z.array(import_zod15.z.object({ label: import_zod15.z.string(), count: import_zod15.z.number().int().min(0) })),
|
|
1318
|
+
frequentRestaurants: import_zod15.z.array(import_zod15.z.object({ restaurantName: import_zod15.z.string(), count: import_zod15.z.number().int().min(0) })),
|
|
1319
|
+
recentMenuCategories: import_zod15.z.array(import_zod15.z.string()),
|
|
1320
|
+
recommendationContext: import_zod15.z.object({
|
|
1321
|
+
preferredMenuCategories: import_zod15.z.array(import_zod15.z.string()),
|
|
1322
|
+
excludedMenuCategories: import_zod15.z.array(import_zod15.z.string()),
|
|
1323
|
+
candidateMenuCategories: import_zod15.z.array(import_zod15.z.string())
|
|
1293
1324
|
})
|
|
1294
1325
|
});
|
|
1295
|
-
var MealGroupHistoryResponseSchema =
|
|
1326
|
+
var MealGroupHistoryResponseSchema = import_zod15.z.array(MealGroupHistoryItemSchema);
|
|
1296
1327
|
|
|
1297
1328
|
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
1298
|
-
var
|
|
1299
|
-
var HomeMealPlanActionKindSchema =
|
|
1329
|
+
var import_zod16 = require("zod");
|
|
1330
|
+
var HomeMealPlanActionKindSchema = import_zod16.z.enum([
|
|
1300
1331
|
"CONTINUE_DECISION",
|
|
1301
1332
|
"TODAY_UPCOMING",
|
|
1302
1333
|
"RECORD_NEEDED",
|
|
1303
1334
|
"RESPOND_JOIN_REQUEST",
|
|
1304
1335
|
"NOTIFICATION_FOLLOW_UP"
|
|
1305
1336
|
]);
|
|
1306
|
-
var HomeMealPlanActionCardSchema =
|
|
1307
|
-
actionId:
|
|
1337
|
+
var HomeMealPlanActionCardSchema = import_zod16.z.object({
|
|
1338
|
+
actionId: import_zod16.z.string().min(1),
|
|
1308
1339
|
kind: HomeMealPlanActionKindSchema,
|
|
1309
|
-
priority:
|
|
1310
|
-
title:
|
|
1311
|
-
description:
|
|
1312
|
-
primaryAction:
|
|
1313
|
-
label:
|
|
1314
|
-
href:
|
|
1340
|
+
priority: import_zod16.z.number().int().min(0),
|
|
1341
|
+
title: import_zod16.z.string().min(1),
|
|
1342
|
+
description: import_zod16.z.string().min(1),
|
|
1343
|
+
primaryAction: import_zod16.z.object({
|
|
1344
|
+
label: import_zod16.z.string().min(1),
|
|
1345
|
+
href: import_zod16.z.string().min(1)
|
|
1315
1346
|
}),
|
|
1316
1347
|
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
1317
1348
|
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
1318
1349
|
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
1319
1350
|
});
|
|
1320
|
-
var HomeMealPlanDashboardResponseSchema =
|
|
1351
|
+
var HomeMealPlanDashboardResponseSchema = import_zod16.z.object({
|
|
1321
1352
|
generatedAt: ISODateTimeStringSchema,
|
|
1322
|
-
inProgress:
|
|
1323
|
-
today:
|
|
1324
|
-
recordNeeded:
|
|
1325
|
-
pendingJoinRequests:
|
|
1326
|
-
unreadNotifications:
|
|
1327
|
-
nextActions:
|
|
1328
|
-
});
|
|
1329
|
-
var MealMapLayerSchema =
|
|
1353
|
+
inProgress: import_zod16.z.array(MyMealPlanListItemSchema),
|
|
1354
|
+
today: import_zod16.z.array(MyMealPlanListItemSchema),
|
|
1355
|
+
recordNeeded: import_zod16.z.array(MyMealPlanListItemSchema),
|
|
1356
|
+
pendingJoinRequests: import_zod16.z.array(MealPlanJoinRequestSummarySchema),
|
|
1357
|
+
unreadNotifications: import_zod16.z.array(MealPlanNotificationSchema).default([]),
|
|
1358
|
+
nextActions: import_zod16.z.array(HomeMealPlanActionCardSchema)
|
|
1359
|
+
});
|
|
1360
|
+
var MealMapLayerSchema = import_zod16.z.enum([
|
|
1330
1361
|
"MY_MEAL_PLAN_PLACE",
|
|
1331
1362
|
"NEARBY_FRIEND_MEAL_PLAN",
|
|
1332
1363
|
"FRIEND_RECORD_LOCATION",
|
|
1333
1364
|
"RESTAURANT_CANDIDATE"
|
|
1334
1365
|
]);
|
|
1335
|
-
var MealMapMarkerBaseSchema =
|
|
1336
|
-
markerId:
|
|
1337
|
-
lat:
|
|
1338
|
-
lng:
|
|
1339
|
-
title:
|
|
1340
|
-
subtitle:
|
|
1341
|
-
href:
|
|
1366
|
+
var MealMapMarkerBaseSchema = import_zod16.z.object({
|
|
1367
|
+
markerId: import_zod16.z.string().min(1),
|
|
1368
|
+
lat: import_zod16.z.number().min(-90).max(90),
|
|
1369
|
+
lng: import_zod16.z.number().min(-180).max(180),
|
|
1370
|
+
title: import_zod16.z.string().min(1),
|
|
1371
|
+
subtitle: import_zod16.z.string().nullable(),
|
|
1372
|
+
href: import_zod16.z.string().min(1).nullable(),
|
|
1342
1373
|
mealPlanId: MealPlanIdSchema.nullable(),
|
|
1343
1374
|
articleId: ArticleIdSchema.nullable(),
|
|
1344
1375
|
restaurant: RestaurantSchema.nullable(),
|
|
1345
|
-
distanceMeters:
|
|
1376
|
+
distanceMeters: import_zod16.z.number().int().min(0).nullable(),
|
|
1346
1377
|
updatedAt: ISODateTimeStringSchema
|
|
1347
1378
|
});
|
|
1348
|
-
var MealMapMyMealPlanPlaceMetadataSchema =
|
|
1379
|
+
var MealMapMyMealPlanPlaceMetadataSchema = import_zod16.z.object({
|
|
1349
1380
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1350
|
-
status:
|
|
1351
|
-
participantCount:
|
|
1352
|
-
source:
|
|
1381
|
+
status: import_zod16.z.string().min(1),
|
|
1382
|
+
participantCount: import_zod16.z.number().int().min(1),
|
|
1383
|
+
source: import_zod16.z.string().min(1)
|
|
1353
1384
|
});
|
|
1354
|
-
var MealMapNearbyFriendMealPlanMetadataSchema =
|
|
1385
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = import_zod16.z.object({
|
|
1355
1386
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1356
|
-
ownerName:
|
|
1357
|
-
participantCount:
|
|
1387
|
+
ownerName: import_zod16.z.string().min(1),
|
|
1388
|
+
participantCount: import_zod16.z.number().int().min(1),
|
|
1358
1389
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1359
|
-
source:
|
|
1390
|
+
source: import_zod16.z.string().min(1)
|
|
1360
1391
|
});
|
|
1361
|
-
var MealMapFriendRecordLocationMetadataSchema =
|
|
1392
|
+
var MealMapFriendRecordLocationMetadataSchema = import_zod16.z.object({
|
|
1362
1393
|
authorId: MemberIdSchema.nullable().default(null),
|
|
1363
|
-
authorName:
|
|
1364
|
-
imageUrl:
|
|
1365
|
-
mealDate:
|
|
1394
|
+
authorName: import_zod16.z.string().min(1),
|
|
1395
|
+
imageUrl: import_zod16.z.string().nullable().default(null),
|
|
1396
|
+
mealDate: import_zod16.z.string().min(1)
|
|
1366
1397
|
});
|
|
1367
|
-
var MealMapRestaurantCandidateCompletionBlockedReasonSchema =
|
|
1398
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod16.z.enum([
|
|
1368
1399
|
"OWNER_ONLY",
|
|
1369
1400
|
"STAGE_ALREADY_COMPLETED",
|
|
1370
1401
|
"MEAL_PLAN_NOT_MUTABLE"
|
|
1371
1402
|
]);
|
|
1372
|
-
var MealMapRestaurantCandidateMetadataSchema =
|
|
1403
|
+
var MealMapRestaurantCandidateMetadataSchema = import_zod16.z.object({
|
|
1373
1404
|
stageId: MealPlanDecisionStageIdSchema,
|
|
1374
1405
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1375
|
-
status:
|
|
1376
|
-
source:
|
|
1377
|
-
stageStatus:
|
|
1378
|
-
canVote:
|
|
1379
|
-
canCompleteStage:
|
|
1406
|
+
status: import_zod16.z.string().min(1),
|
|
1407
|
+
source: import_zod16.z.enum(["search", "fallback", "manual"]).default("search"),
|
|
1408
|
+
stageStatus: import_zod16.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
|
|
1409
|
+
canVote: import_zod16.z.boolean().default(false),
|
|
1410
|
+
canCompleteStage: import_zod16.z.boolean().default(false),
|
|
1380
1411
|
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
1381
1412
|
});
|
|
1382
|
-
var MealMapMarkerSchema =
|
|
1413
|
+
var MealMapMarkerSchema = import_zod16.z.discriminatedUnion("layer", [
|
|
1383
1414
|
MealMapMarkerBaseSchema.extend({
|
|
1384
|
-
layer:
|
|
1415
|
+
layer: import_zod16.z.literal("MY_MEAL_PLAN_PLACE"),
|
|
1385
1416
|
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
1386
1417
|
}),
|
|
1387
1418
|
MealMapMarkerBaseSchema.extend({
|
|
1388
|
-
layer:
|
|
1419
|
+
layer: import_zod16.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
1389
1420
|
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
1390
1421
|
}),
|
|
1391
1422
|
MealMapMarkerBaseSchema.extend({
|
|
1392
|
-
layer:
|
|
1423
|
+
layer: import_zod16.z.literal("FRIEND_RECORD_LOCATION"),
|
|
1393
1424
|
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
1394
1425
|
}),
|
|
1395
1426
|
MealMapMarkerBaseSchema.extend({
|
|
1396
|
-
layer:
|
|
1427
|
+
layer: import_zod16.z.literal("RESTAURANT_CANDIDATE"),
|
|
1397
1428
|
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
1398
1429
|
})
|
|
1399
1430
|
]);
|
|
1400
|
-
var MealMapQuerySchema =
|
|
1401
|
-
friendRecordDays:
|
|
1431
|
+
var MealMapQuerySchema = import_zod16.z.object({
|
|
1432
|
+
friendRecordDays: import_zod16.z.coerce.number().int().min(1).max(90).optional().default(7)
|
|
1402
1433
|
});
|
|
1403
|
-
var MealMapResponseSchema =
|
|
1434
|
+
var MealMapResponseSchema = import_zod16.z.object({
|
|
1404
1435
|
generatedAt: ISODateTimeStringSchema,
|
|
1405
|
-
center:
|
|
1406
|
-
lat:
|
|
1407
|
-
lng:
|
|
1408
|
-
source:
|
|
1436
|
+
center: import_zod16.z.object({
|
|
1437
|
+
lat: import_zod16.z.number().min(-90).max(90),
|
|
1438
|
+
lng: import_zod16.z.number().min(-180).max(180),
|
|
1439
|
+
source: import_zod16.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
|
|
1409
1440
|
}),
|
|
1410
|
-
layers:
|
|
1411
|
-
myMealPlanPlaces:
|
|
1412
|
-
nearbyFriendMealPlans:
|
|
1413
|
-
friendRecordLocations:
|
|
1414
|
-
restaurantCandidates:
|
|
1441
|
+
layers: import_zod16.z.object({
|
|
1442
|
+
myMealPlanPlaces: import_zod16.z.array(MealMapMarkerSchema),
|
|
1443
|
+
nearbyFriendMealPlans: import_zod16.z.array(MealMapMarkerSchema),
|
|
1444
|
+
friendRecordLocations: import_zod16.z.array(MealMapMarkerSchema),
|
|
1445
|
+
restaurantCandidates: import_zod16.z.array(MealMapMarkerSchema)
|
|
1415
1446
|
})
|
|
1416
1447
|
});
|
|
1417
1448
|
|
|
@@ -1511,6 +1542,12 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1511
1542
|
MealPlanDecisionTaskProgressSchema,
|
|
1512
1543
|
MealPlanDecisionTaskReadyRequestSchema,
|
|
1513
1544
|
MealPlanDecisionTaskStatusSchema,
|
|
1545
|
+
MealPlanDecisionVoteSocketAckSchema,
|
|
1546
|
+
MealPlanDecisionVoteSocketErrorSchema,
|
|
1547
|
+
MealPlanDecisionVoteSocketEvent,
|
|
1548
|
+
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
1549
|
+
MealPlanDecisionVoteSocketPayloadSchema,
|
|
1550
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
1514
1551
|
MealPlanGuestParticipantSchema,
|
|
1515
1552
|
MealPlanGuestSessionQuerySchema,
|
|
1516
1553
|
MealPlanGuestSessionResponseSchema,
|
|
@@ -4153,6 +4153,8 @@ type MealPlanRestaurantSearchState = z.infer<typeof MealPlanRestaurantSearchStat
|
|
|
4153
4153
|
type MealPlanMenuRecommendationState = z.infer<typeof MealPlanMenuRecommendationStateSchema>;
|
|
4154
4154
|
type MealPlanDecisionStageMetadata = z.infer<typeof MealPlanDecisionStageMetadataSchema>;
|
|
4155
4155
|
|
|
4156
|
+
/** Socket.IO command name for creating a decision vote and materializing its candidate. */
|
|
4157
|
+
declare const MealPlanDecisionVoteSocketEvent: "mealPlan:decision:vote";
|
|
4156
4158
|
/**
|
|
4157
4159
|
* Canonical real-time write payload for a decision vote.
|
|
4158
4160
|
* Candidate materialization and vote handling are owned by the decision service.
|
|
@@ -5756,4 +5758,4 @@ declare function getMealPlanLiveActivityBehavior(kind: string): "NONE" | "START_
|
|
|
5756
5758
|
declare function shouldShowForegroundToast(kind: string): boolean;
|
|
5757
5759
|
declare function compareMealPlanNotificationsByPriority(channel: MealPlanNotificationPriorityChannel): (a: Pick<MealPlanNotification, "kind" | "createdAt" | "readAt">, b: Pick<MealPlanNotification, "kind" | "createdAt" | "readAt">) => number;
|
|
5758
5760
|
|
|
5759
|
-
export { type AddMealGroupMemberRequest, AddMealGroupMemberRequestSchema, type CompleteMealPlanDecisionStageRequest, CompleteMealPlanDecisionStageRequestSchema, type ConfirmMealPlanDecisionSnapshotRequest, ConfirmMealPlanDecisionSnapshotRequestSchema, type CreateMealGroupRequest, CreateMealGroupRequestSchema, type CreateMealPlanChangeRequest, CreateMealPlanChangeRequestSchema, type CreateMealPlanInviteRequest, CreateMealPlanInviteRequestSchema, type CreateMealPlanJoinRequest, CreateMealPlanJoinRequestSchema, type CreateMealPlanParticipantRequest, CreateMealPlanParticipantRequestSchema, type CreateMealPlanRequest, CreateMealPlanRequestSchema, type CreateMealPlanResponse, CreateMealPlanResponseSchema, type CreateMealPlanShareLinkRequest, CreateMealPlanShareLinkRequestSchema, type CreateMealPlanVoteRequest, CreateMealPlanVoteRequestSchema, type ExposeMealPlanToNearbyFriendsRequest, ExposeMealPlanToNearbyFriendsRequestSchema, type ExposeMealPlanToNearbyFriendsResponse, ExposeMealPlanToNearbyFriendsResponseSchema, type HomeMealPlanActionCard, HomeMealPlanActionCardSchema, type HomeMealPlanActionKind, HomeMealPlanActionKindSchema, type HomeMealPlanDashboardResponse, HomeMealPlanDashboardResponseSchema, type JoinMealPlanGuestRequest, JoinMealPlanGuestRequestSchema, type JoinMealPlanGuestResponse, JoinMealPlanGuestResponseSchema, MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES, type MealGroupHistoryItem, MealGroupHistoryItemSchema, type MealGroupHistoryResponse, MealGroupHistoryResponseSchema, type MealGroupMember, type MealGroupMemberRole, MealGroupMemberRoleSchema, MealGroupMemberSchema, type MealGroupPreferenceSummary, MealGroupPreferenceSummarySchema, type MealGroupResponse, MealGroupResponseSchema, type MealMapFriendRecordLocationMetadata, MealMapFriendRecordLocationMetadataSchema, type MealMapLayer, MealMapLayerSchema, type MealMapMarker, MealMapMarkerSchema, type MealMapMyMealPlanPlaceMetadata, MealMapMyMealPlanPlaceMetadataSchema, type MealMapNearbyFriendMealPlanMetadata, MealMapNearbyFriendMealPlanMetadataSchema, type MealMapQuery, MealMapQuerySchema, type MealMapResponse, MealMapResponseSchema, type MealMapRestaurantCandidateCompletionBlockedReason, MealMapRestaurantCandidateCompletionBlockedReasonSchema, type MealMapRestaurantCandidateMetadata, MealMapRestaurantCandidateMetadataSchema, type MealPlanChangeRequestStatus, MealPlanChangeRequestStatusSchema, type MealPlanChangeRequestSummary, MealPlanChangeRequestSummarySchema, type MealPlanChannel, MealPlanChannelSchema, type MealPlanChatMessageKind, MealPlanChatMessageKindSchema, type MealPlanChatMessageListResponse, MealPlanChatMessageListResponseSchema, type MealPlanChatMessageResponse, MealPlanChatMessageResponseSchema, type MealPlanChatRoomSummary, MealPlanChatRoomSummarySchema, type MealPlanChatSystemPayload, MealPlanChatSystemPayloadSchema, type MealPlanDecisionActorType, MealPlanDecisionActorTypeSchema, type MealPlanDecisionCandidate, MealPlanDecisionCandidateSchema, type MealPlanDecisionFinalField, MealPlanDecisionFinalFieldSchema, type MealPlanDecisionProgress, MealPlanDecisionProgressSchema, type MealPlanDecisionReason, MealPlanDecisionReasonSchema, type MealPlanDecisionSnapshot, MealPlanDecisionSnapshotSchema, type MealPlanDecisionSnapshotStatus, MealPlanDecisionSnapshotStatusSchema, MealPlanDecisionStageIdSchema, type MealPlanDecisionStageMetadata, MealPlanDecisionStageMetadataSchema, type MealPlanDecisionStageResponse, MealPlanDecisionStageResponseSchema, type MealPlanDecisionStageStatus, MealPlanDecisionStageStatusSchema, type MealPlanDecisionStageType, MealPlanDecisionStageTypeSchema, type MealPlanDecisionTaskKey, MealPlanDecisionTaskKeySchema, type MealPlanDecisionTaskProgress, MealPlanDecisionTaskProgressSchema, MealPlanDecisionTaskReadyRequestSchema, type MealPlanDecisionTaskStatus, MealPlanDecisionTaskStatusSchema, type MealPlanDecisionVoteSocketAck, type MealPlanDecisionVoteSocketError, type MealPlanDecisionVoteSocketFailureAck, type MealPlanDecisionVoteSocketPayload, type MealPlanDecisionVoteSocketSuccessAck, type MealPlanGuestParticipant, MealPlanGuestParticipantSchema, type MealPlanGuestSessionQuery, MealPlanGuestSessionQuerySchema, type MealPlanGuestSessionResponse, MealPlanGuestSessionResponseSchema, type MealPlanInviteListResponse, MealPlanInviteListResponseSchema, type MealPlanInviteStatus, MealPlanInviteStatusSchema, type MealPlanInviteSummary, MealPlanInviteSummarySchema, type MealPlanJoinRequestStatus, MealPlanJoinRequestStatusSchema, type MealPlanJoinRequestSummary, MealPlanJoinRequestSummarySchema, type MealPlanJoinSource, MealPlanJoinSourceSchema, MealPlanLatitudeSchema, type MealPlanLiveActivityBehavior, MealPlanLiveActivityBehaviorSchema, type MealPlanLocationCandidate, MealPlanLocationCandidateIdSchema, MealPlanLocationCandidateSchema, type MealPlanLocationCandidateSource, MealPlanLocationCandidateSourceSchema, MealPlanLongitudeSchema, type MealPlanMenuCandidate, MealPlanMenuCandidateIdSchema, MealPlanMenuCandidateSchema, type MealPlanMenuCandidateSource, MealPlanMenuCandidateSourceSchema, type MealPlanMenuRecommendationState, MealPlanMenuRecommendationStateSchema, type MealPlanNearbyFriendExposureBatchSummary, MealPlanNearbyFriendExposureBatchSummarySchema, MealPlanNearbyFriendExposureIdSchema, type MealPlanNearbyFriendExposureNotificationStatus, MealPlanNearbyFriendExposureNotificationStatusSchema, type MealPlanNearbyFriendExposureStatus, MealPlanNearbyFriendExposureStatusSchema, type MealPlanNearbyFriendExposureSummary, MealPlanNearbyFriendExposureSummarySchema, type MealPlanNearbyFriendRejectionReason, MealPlanNearbyFriendRejectionReasonSchema, type MealPlanNearbyFriendRejectionSummary, MealPlanNearbyFriendRejectionSummarySchema, type MealPlanNotification$1 as MealPlanNotification, type MealPlanNotificationKind$1 as MealPlanNotificationKind, MealPlanNotificationKindSchema, type MealPlanNotificationPriorityChannel$1 as MealPlanNotificationPriorityChannel, MealPlanNotificationPriorityChannelSchema, type MealPlanNotificationPriorityPolicy, type MealPlanNotificationPriorityPolicyItem, MealPlanNotificationPriorityPolicyItemSchema, MealPlanNotificationSchema, MealPlanParticipantIdSchema, type MealPlanParticipantResponse, MealPlanParticipantResponseSchema, type MealPlanParticipantRole, MealPlanParticipantRoleSchema, type MealPlanParticipantStatus, MealPlanParticipantStatusSchema, type MealPlanRecommendationContext, MealPlanRecommendationContextSchema, type MealPlanResponse, MealPlanResponseSchema, type MealPlanRestaurantCandidate, MealPlanRestaurantCandidateSchema, type MealPlanRestaurantSearchState, MealPlanRestaurantSearchStateSchema, type MealPlanRestaurantSearchStatus, MealPlanRestaurantSearchStatusSchema, type MealPlanShareLinkSummary, MealPlanShareLinkSummarySchema, type MealPlanSharePreviewResponse, MealPlanSharePreviewResponseSchema, type MealPlanStatus, MealPlanStatusSchema, type MealPlanSystemMessage, type MealPlanSystemMessageKind, MealPlanSystemMessageKindSchema, MealPlanSystemMessageSchema, type MealPlanViewerPermissions, MealPlanViewerPermissionsSchema, type MealPlanViewerRole, MealPlanViewerRoleSchema, type MealPlanVote, MealPlanVoteIdSchema, MealPlanVoteSchema, type MealPlanVoteType, MealPlanVoteTypeSchema, type MyMealPlanGroup, MyMealPlanGroupSchema, type MyMealPlanListItem, MyMealPlanListItemSchema, type MyMealPlanListResponse, MyMealPlanListResponseSchema, type NearbyFriendExposureEligibility, NearbyFriendExposureEligibilitySchema, type NearbyFriendMealPlanSummary, NearbyFriendMealPlanSummarySchema, type ReopenMealPlanDecisionTaskRequest, ReopenMealPlanDecisionTaskRequestSchema, type SendMealPlanChatMessageRequest, SendMealPlanChatMessageRequestSchema, type SendMealPlanInviteResponse, SendMealPlanInviteResponseSchema, type StartMealPlanFromGroupRequest, StartMealPlanFromGroupRequestSchema, type UpdateMealGroupMemberRoleRequest, UpdateMealGroupMemberRoleRequestSchema, type UpdateMealPlanContextRequest, UpdateMealPlanContextRequestSchema, compareMealPlanNotificationsByPriority, getMealPlanDecisionCandidateKey, getMealPlanLiveActivityBehavior, getMealPlanNotificationPriority, getMealPlanNotificationPriorityPolicy, getMealPlanRestaurantProvisionCacheKey, shouldShowForegroundToast };
|
|
5761
|
+
export { type AddMealGroupMemberRequest, AddMealGroupMemberRequestSchema, type CompleteMealPlanDecisionStageRequest, CompleteMealPlanDecisionStageRequestSchema, type ConfirmMealPlanDecisionSnapshotRequest, ConfirmMealPlanDecisionSnapshotRequestSchema, type CreateMealGroupRequest, CreateMealGroupRequestSchema, type CreateMealPlanChangeRequest, CreateMealPlanChangeRequestSchema, type CreateMealPlanInviteRequest, CreateMealPlanInviteRequestSchema, type CreateMealPlanJoinRequest, CreateMealPlanJoinRequestSchema, type CreateMealPlanParticipantRequest, CreateMealPlanParticipantRequestSchema, type CreateMealPlanRequest, CreateMealPlanRequestSchema, type CreateMealPlanResponse, CreateMealPlanResponseSchema, type CreateMealPlanShareLinkRequest, CreateMealPlanShareLinkRequestSchema, type CreateMealPlanVoteRequest, CreateMealPlanVoteRequestSchema, type ExposeMealPlanToNearbyFriendsRequest, ExposeMealPlanToNearbyFriendsRequestSchema, type ExposeMealPlanToNearbyFriendsResponse, ExposeMealPlanToNearbyFriendsResponseSchema, type HomeMealPlanActionCard, HomeMealPlanActionCardSchema, type HomeMealPlanActionKind, HomeMealPlanActionKindSchema, type HomeMealPlanDashboardResponse, HomeMealPlanDashboardResponseSchema, type JoinMealPlanGuestRequest, JoinMealPlanGuestRequestSchema, type JoinMealPlanGuestResponse, JoinMealPlanGuestResponseSchema, MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES, type MealGroupHistoryItem, MealGroupHistoryItemSchema, type MealGroupHistoryResponse, MealGroupHistoryResponseSchema, type MealGroupMember, type MealGroupMemberRole, MealGroupMemberRoleSchema, MealGroupMemberSchema, type MealGroupPreferenceSummary, MealGroupPreferenceSummarySchema, type MealGroupResponse, MealGroupResponseSchema, type MealMapFriendRecordLocationMetadata, MealMapFriendRecordLocationMetadataSchema, type MealMapLayer, MealMapLayerSchema, type MealMapMarker, MealMapMarkerSchema, type MealMapMyMealPlanPlaceMetadata, MealMapMyMealPlanPlaceMetadataSchema, type MealMapNearbyFriendMealPlanMetadata, MealMapNearbyFriendMealPlanMetadataSchema, type MealMapQuery, MealMapQuerySchema, type MealMapResponse, MealMapResponseSchema, type MealMapRestaurantCandidateCompletionBlockedReason, MealMapRestaurantCandidateCompletionBlockedReasonSchema, type MealMapRestaurantCandidateMetadata, MealMapRestaurantCandidateMetadataSchema, type MealPlanChangeRequestStatus, MealPlanChangeRequestStatusSchema, type MealPlanChangeRequestSummary, MealPlanChangeRequestSummarySchema, type MealPlanChannel, MealPlanChannelSchema, type MealPlanChatMessageKind, MealPlanChatMessageKindSchema, type MealPlanChatMessageListResponse, MealPlanChatMessageListResponseSchema, type MealPlanChatMessageResponse, MealPlanChatMessageResponseSchema, type MealPlanChatRoomSummary, MealPlanChatRoomSummarySchema, type MealPlanChatSystemPayload, MealPlanChatSystemPayloadSchema, type MealPlanDecisionActorType, MealPlanDecisionActorTypeSchema, type MealPlanDecisionCandidate, MealPlanDecisionCandidateSchema, type MealPlanDecisionFinalField, MealPlanDecisionFinalFieldSchema, type MealPlanDecisionProgress, MealPlanDecisionProgressSchema, type MealPlanDecisionReason, MealPlanDecisionReasonSchema, type MealPlanDecisionSnapshot, MealPlanDecisionSnapshotSchema, type MealPlanDecisionSnapshotStatus, MealPlanDecisionSnapshotStatusSchema, MealPlanDecisionStageIdSchema, type MealPlanDecisionStageMetadata, MealPlanDecisionStageMetadataSchema, type MealPlanDecisionStageResponse, MealPlanDecisionStageResponseSchema, type MealPlanDecisionStageStatus, MealPlanDecisionStageStatusSchema, type MealPlanDecisionStageType, MealPlanDecisionStageTypeSchema, type MealPlanDecisionTaskKey, MealPlanDecisionTaskKeySchema, type MealPlanDecisionTaskProgress, MealPlanDecisionTaskProgressSchema, MealPlanDecisionTaskReadyRequestSchema, type MealPlanDecisionTaskStatus, MealPlanDecisionTaskStatusSchema, type MealPlanDecisionVoteSocketAck, MealPlanDecisionVoteSocketAckSchema, type MealPlanDecisionVoteSocketError, MealPlanDecisionVoteSocketErrorSchema, MealPlanDecisionVoteSocketEvent, type MealPlanDecisionVoteSocketFailureAck, MealPlanDecisionVoteSocketFailureAckSchema, type MealPlanDecisionVoteSocketPayload, MealPlanDecisionVoteSocketPayloadSchema, type MealPlanDecisionVoteSocketSuccessAck, MealPlanDecisionVoteSocketSuccessAckSchema, type MealPlanGuestParticipant, MealPlanGuestParticipantSchema, type MealPlanGuestSessionQuery, MealPlanGuestSessionQuerySchema, type MealPlanGuestSessionResponse, MealPlanGuestSessionResponseSchema, type MealPlanInviteListResponse, MealPlanInviteListResponseSchema, type MealPlanInviteStatus, MealPlanInviteStatusSchema, type MealPlanInviteSummary, MealPlanInviteSummarySchema, type MealPlanJoinRequestStatus, MealPlanJoinRequestStatusSchema, type MealPlanJoinRequestSummary, MealPlanJoinRequestSummarySchema, type MealPlanJoinSource, MealPlanJoinSourceSchema, MealPlanLatitudeSchema, type MealPlanLiveActivityBehavior, MealPlanLiveActivityBehaviorSchema, type MealPlanLocationCandidate, MealPlanLocationCandidateIdSchema, MealPlanLocationCandidateSchema, type MealPlanLocationCandidateSource, MealPlanLocationCandidateSourceSchema, MealPlanLongitudeSchema, type MealPlanMenuCandidate, MealPlanMenuCandidateIdSchema, MealPlanMenuCandidateSchema, type MealPlanMenuCandidateSource, MealPlanMenuCandidateSourceSchema, type MealPlanMenuRecommendationState, MealPlanMenuRecommendationStateSchema, type MealPlanNearbyFriendExposureBatchSummary, MealPlanNearbyFriendExposureBatchSummarySchema, MealPlanNearbyFriendExposureIdSchema, type MealPlanNearbyFriendExposureNotificationStatus, MealPlanNearbyFriendExposureNotificationStatusSchema, type MealPlanNearbyFriendExposureStatus, MealPlanNearbyFriendExposureStatusSchema, type MealPlanNearbyFriendExposureSummary, MealPlanNearbyFriendExposureSummarySchema, type MealPlanNearbyFriendRejectionReason, MealPlanNearbyFriendRejectionReasonSchema, type MealPlanNearbyFriendRejectionSummary, MealPlanNearbyFriendRejectionSummarySchema, type MealPlanNotification$1 as MealPlanNotification, type MealPlanNotificationKind$1 as MealPlanNotificationKind, MealPlanNotificationKindSchema, type MealPlanNotificationPriorityChannel$1 as MealPlanNotificationPriorityChannel, MealPlanNotificationPriorityChannelSchema, type MealPlanNotificationPriorityPolicy, type MealPlanNotificationPriorityPolicyItem, MealPlanNotificationPriorityPolicyItemSchema, MealPlanNotificationSchema, MealPlanParticipantIdSchema, type MealPlanParticipantResponse, MealPlanParticipantResponseSchema, type MealPlanParticipantRole, MealPlanParticipantRoleSchema, type MealPlanParticipantStatus, MealPlanParticipantStatusSchema, type MealPlanRecommendationContext, MealPlanRecommendationContextSchema, type MealPlanResponse, MealPlanResponseSchema, type MealPlanRestaurantCandidate, MealPlanRestaurantCandidateSchema, type MealPlanRestaurantSearchState, MealPlanRestaurantSearchStateSchema, type MealPlanRestaurantSearchStatus, MealPlanRestaurantSearchStatusSchema, type MealPlanShareLinkSummary, MealPlanShareLinkSummarySchema, type MealPlanSharePreviewResponse, MealPlanSharePreviewResponseSchema, type MealPlanStatus, MealPlanStatusSchema, type MealPlanSystemMessage, type MealPlanSystemMessageKind, MealPlanSystemMessageKindSchema, MealPlanSystemMessageSchema, type MealPlanViewerPermissions, MealPlanViewerPermissionsSchema, type MealPlanViewerRole, MealPlanViewerRoleSchema, type MealPlanVote, MealPlanVoteIdSchema, MealPlanVoteSchema, type MealPlanVoteType, MealPlanVoteTypeSchema, type MyMealPlanGroup, MyMealPlanGroupSchema, type MyMealPlanListItem, MyMealPlanListItemSchema, type MyMealPlanListResponse, MyMealPlanListResponseSchema, type NearbyFriendExposureEligibility, NearbyFriendExposureEligibilitySchema, type NearbyFriendMealPlanSummary, NearbyFriendMealPlanSummarySchema, type ReopenMealPlanDecisionTaskRequest, ReopenMealPlanDecisionTaskRequestSchema, type SendMealPlanChatMessageRequest, SendMealPlanChatMessageRequestSchema, type SendMealPlanInviteResponse, SendMealPlanInviteResponseSchema, type StartMealPlanFromGroupRequest, StartMealPlanFromGroupRequestSchema, type UpdateMealGroupMemberRoleRequest, UpdateMealGroupMemberRoleRequestSchema, type UpdateMealPlanContextRequest, UpdateMealPlanContextRequestSchema, compareMealPlanNotificationsByPriority, getMealPlanDecisionCandidateKey, getMealPlanLiveActivityBehavior, getMealPlanNotificationPriority, getMealPlanNotificationPriorityPolicy, getMealPlanRestaurantProvisionCacheKey, shouldShowForegroundToast };
|
|
@@ -4153,6 +4153,8 @@ type MealPlanRestaurantSearchState = z.infer<typeof MealPlanRestaurantSearchStat
|
|
|
4153
4153
|
type MealPlanMenuRecommendationState = z.infer<typeof MealPlanMenuRecommendationStateSchema>;
|
|
4154
4154
|
type MealPlanDecisionStageMetadata = z.infer<typeof MealPlanDecisionStageMetadataSchema>;
|
|
4155
4155
|
|
|
4156
|
+
/** Socket.IO command name for creating a decision vote and materializing its candidate. */
|
|
4157
|
+
declare const MealPlanDecisionVoteSocketEvent: "mealPlan:decision:vote";
|
|
4156
4158
|
/**
|
|
4157
4159
|
* Canonical real-time write payload for a decision vote.
|
|
4158
4160
|
* Candidate materialization and vote handling are owned by the decision service.
|
|
@@ -5756,4 +5758,4 @@ declare function getMealPlanLiveActivityBehavior(kind: string): "NONE" | "START_
|
|
|
5756
5758
|
declare function shouldShowForegroundToast(kind: string): boolean;
|
|
5757
5759
|
declare function compareMealPlanNotificationsByPriority(channel: MealPlanNotificationPriorityChannel): (a: Pick<MealPlanNotification, "kind" | "createdAt" | "readAt">, b: Pick<MealPlanNotification, "kind" | "createdAt" | "readAt">) => number;
|
|
5758
5760
|
|
|
5759
|
-
export { type AddMealGroupMemberRequest, AddMealGroupMemberRequestSchema, type CompleteMealPlanDecisionStageRequest, CompleteMealPlanDecisionStageRequestSchema, type ConfirmMealPlanDecisionSnapshotRequest, ConfirmMealPlanDecisionSnapshotRequestSchema, type CreateMealGroupRequest, CreateMealGroupRequestSchema, type CreateMealPlanChangeRequest, CreateMealPlanChangeRequestSchema, type CreateMealPlanInviteRequest, CreateMealPlanInviteRequestSchema, type CreateMealPlanJoinRequest, CreateMealPlanJoinRequestSchema, type CreateMealPlanParticipantRequest, CreateMealPlanParticipantRequestSchema, type CreateMealPlanRequest, CreateMealPlanRequestSchema, type CreateMealPlanResponse, CreateMealPlanResponseSchema, type CreateMealPlanShareLinkRequest, CreateMealPlanShareLinkRequestSchema, type CreateMealPlanVoteRequest, CreateMealPlanVoteRequestSchema, type ExposeMealPlanToNearbyFriendsRequest, ExposeMealPlanToNearbyFriendsRequestSchema, type ExposeMealPlanToNearbyFriendsResponse, ExposeMealPlanToNearbyFriendsResponseSchema, type HomeMealPlanActionCard, HomeMealPlanActionCardSchema, type HomeMealPlanActionKind, HomeMealPlanActionKindSchema, type HomeMealPlanDashboardResponse, HomeMealPlanDashboardResponseSchema, type JoinMealPlanGuestRequest, JoinMealPlanGuestRequestSchema, type JoinMealPlanGuestResponse, JoinMealPlanGuestResponseSchema, MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES, type MealGroupHistoryItem, MealGroupHistoryItemSchema, type MealGroupHistoryResponse, MealGroupHistoryResponseSchema, type MealGroupMember, type MealGroupMemberRole, MealGroupMemberRoleSchema, MealGroupMemberSchema, type MealGroupPreferenceSummary, MealGroupPreferenceSummarySchema, type MealGroupResponse, MealGroupResponseSchema, type MealMapFriendRecordLocationMetadata, MealMapFriendRecordLocationMetadataSchema, type MealMapLayer, MealMapLayerSchema, type MealMapMarker, MealMapMarkerSchema, type MealMapMyMealPlanPlaceMetadata, MealMapMyMealPlanPlaceMetadataSchema, type MealMapNearbyFriendMealPlanMetadata, MealMapNearbyFriendMealPlanMetadataSchema, type MealMapQuery, MealMapQuerySchema, type MealMapResponse, MealMapResponseSchema, type MealMapRestaurantCandidateCompletionBlockedReason, MealMapRestaurantCandidateCompletionBlockedReasonSchema, type MealMapRestaurantCandidateMetadata, MealMapRestaurantCandidateMetadataSchema, type MealPlanChangeRequestStatus, MealPlanChangeRequestStatusSchema, type MealPlanChangeRequestSummary, MealPlanChangeRequestSummarySchema, type MealPlanChannel, MealPlanChannelSchema, type MealPlanChatMessageKind, MealPlanChatMessageKindSchema, type MealPlanChatMessageListResponse, MealPlanChatMessageListResponseSchema, type MealPlanChatMessageResponse, MealPlanChatMessageResponseSchema, type MealPlanChatRoomSummary, MealPlanChatRoomSummarySchema, type MealPlanChatSystemPayload, MealPlanChatSystemPayloadSchema, type MealPlanDecisionActorType, MealPlanDecisionActorTypeSchema, type MealPlanDecisionCandidate, MealPlanDecisionCandidateSchema, type MealPlanDecisionFinalField, MealPlanDecisionFinalFieldSchema, type MealPlanDecisionProgress, MealPlanDecisionProgressSchema, type MealPlanDecisionReason, MealPlanDecisionReasonSchema, type MealPlanDecisionSnapshot, MealPlanDecisionSnapshotSchema, type MealPlanDecisionSnapshotStatus, MealPlanDecisionSnapshotStatusSchema, MealPlanDecisionStageIdSchema, type MealPlanDecisionStageMetadata, MealPlanDecisionStageMetadataSchema, type MealPlanDecisionStageResponse, MealPlanDecisionStageResponseSchema, type MealPlanDecisionStageStatus, MealPlanDecisionStageStatusSchema, type MealPlanDecisionStageType, MealPlanDecisionStageTypeSchema, type MealPlanDecisionTaskKey, MealPlanDecisionTaskKeySchema, type MealPlanDecisionTaskProgress, MealPlanDecisionTaskProgressSchema, MealPlanDecisionTaskReadyRequestSchema, type MealPlanDecisionTaskStatus, MealPlanDecisionTaskStatusSchema, type MealPlanDecisionVoteSocketAck, type MealPlanDecisionVoteSocketError, type MealPlanDecisionVoteSocketFailureAck, type MealPlanDecisionVoteSocketPayload, type MealPlanDecisionVoteSocketSuccessAck, type MealPlanGuestParticipant, MealPlanGuestParticipantSchema, type MealPlanGuestSessionQuery, MealPlanGuestSessionQuerySchema, type MealPlanGuestSessionResponse, MealPlanGuestSessionResponseSchema, type MealPlanInviteListResponse, MealPlanInviteListResponseSchema, type MealPlanInviteStatus, MealPlanInviteStatusSchema, type MealPlanInviteSummary, MealPlanInviteSummarySchema, type MealPlanJoinRequestStatus, MealPlanJoinRequestStatusSchema, type MealPlanJoinRequestSummary, MealPlanJoinRequestSummarySchema, type MealPlanJoinSource, MealPlanJoinSourceSchema, MealPlanLatitudeSchema, type MealPlanLiveActivityBehavior, MealPlanLiveActivityBehaviorSchema, type MealPlanLocationCandidate, MealPlanLocationCandidateIdSchema, MealPlanLocationCandidateSchema, type MealPlanLocationCandidateSource, MealPlanLocationCandidateSourceSchema, MealPlanLongitudeSchema, type MealPlanMenuCandidate, MealPlanMenuCandidateIdSchema, MealPlanMenuCandidateSchema, type MealPlanMenuCandidateSource, MealPlanMenuCandidateSourceSchema, type MealPlanMenuRecommendationState, MealPlanMenuRecommendationStateSchema, type MealPlanNearbyFriendExposureBatchSummary, MealPlanNearbyFriendExposureBatchSummarySchema, MealPlanNearbyFriendExposureIdSchema, type MealPlanNearbyFriendExposureNotificationStatus, MealPlanNearbyFriendExposureNotificationStatusSchema, type MealPlanNearbyFriendExposureStatus, MealPlanNearbyFriendExposureStatusSchema, type MealPlanNearbyFriendExposureSummary, MealPlanNearbyFriendExposureSummarySchema, type MealPlanNearbyFriendRejectionReason, MealPlanNearbyFriendRejectionReasonSchema, type MealPlanNearbyFriendRejectionSummary, MealPlanNearbyFriendRejectionSummarySchema, type MealPlanNotification$1 as MealPlanNotification, type MealPlanNotificationKind$1 as MealPlanNotificationKind, MealPlanNotificationKindSchema, type MealPlanNotificationPriorityChannel$1 as MealPlanNotificationPriorityChannel, MealPlanNotificationPriorityChannelSchema, type MealPlanNotificationPriorityPolicy, type MealPlanNotificationPriorityPolicyItem, MealPlanNotificationPriorityPolicyItemSchema, MealPlanNotificationSchema, MealPlanParticipantIdSchema, type MealPlanParticipantResponse, MealPlanParticipantResponseSchema, type MealPlanParticipantRole, MealPlanParticipantRoleSchema, type MealPlanParticipantStatus, MealPlanParticipantStatusSchema, type MealPlanRecommendationContext, MealPlanRecommendationContextSchema, type MealPlanResponse, MealPlanResponseSchema, type MealPlanRestaurantCandidate, MealPlanRestaurantCandidateSchema, type MealPlanRestaurantSearchState, MealPlanRestaurantSearchStateSchema, type MealPlanRestaurantSearchStatus, MealPlanRestaurantSearchStatusSchema, type MealPlanShareLinkSummary, MealPlanShareLinkSummarySchema, type MealPlanSharePreviewResponse, MealPlanSharePreviewResponseSchema, type MealPlanStatus, MealPlanStatusSchema, type MealPlanSystemMessage, type MealPlanSystemMessageKind, MealPlanSystemMessageKindSchema, MealPlanSystemMessageSchema, type MealPlanViewerPermissions, MealPlanViewerPermissionsSchema, type MealPlanViewerRole, MealPlanViewerRoleSchema, type MealPlanVote, MealPlanVoteIdSchema, MealPlanVoteSchema, type MealPlanVoteType, MealPlanVoteTypeSchema, type MyMealPlanGroup, MyMealPlanGroupSchema, type MyMealPlanListItem, MyMealPlanListItemSchema, type MyMealPlanListResponse, MyMealPlanListResponseSchema, type NearbyFriendExposureEligibility, NearbyFriendExposureEligibilitySchema, type NearbyFriendMealPlanSummary, NearbyFriendMealPlanSummarySchema, type ReopenMealPlanDecisionTaskRequest, ReopenMealPlanDecisionTaskRequestSchema, type SendMealPlanChatMessageRequest, SendMealPlanChatMessageRequestSchema, type SendMealPlanInviteResponse, SendMealPlanInviteResponseSchema, type StartMealPlanFromGroupRequest, StartMealPlanFromGroupRequestSchema, type UpdateMealGroupMemberRoleRequest, UpdateMealGroupMemberRoleRequestSchema, type UpdateMealPlanContextRequest, UpdateMealPlanContextRequestSchema, compareMealPlanNotificationsByPriority, getMealPlanDecisionCandidateKey, getMealPlanLiveActivityBehavior, getMealPlanNotificationPriority, getMealPlanNotificationPriorityPolicy, getMealPlanRestaurantProvisionCacheKey, shouldShowForegroundToast };
|
|
5761
|
+
export { type AddMealGroupMemberRequest, AddMealGroupMemberRequestSchema, type CompleteMealPlanDecisionStageRequest, CompleteMealPlanDecisionStageRequestSchema, type ConfirmMealPlanDecisionSnapshotRequest, ConfirmMealPlanDecisionSnapshotRequestSchema, type CreateMealGroupRequest, CreateMealGroupRequestSchema, type CreateMealPlanChangeRequest, CreateMealPlanChangeRequestSchema, type CreateMealPlanInviteRequest, CreateMealPlanInviteRequestSchema, type CreateMealPlanJoinRequest, CreateMealPlanJoinRequestSchema, type CreateMealPlanParticipantRequest, CreateMealPlanParticipantRequestSchema, type CreateMealPlanRequest, CreateMealPlanRequestSchema, type CreateMealPlanResponse, CreateMealPlanResponseSchema, type CreateMealPlanShareLinkRequest, CreateMealPlanShareLinkRequestSchema, type CreateMealPlanVoteRequest, CreateMealPlanVoteRequestSchema, type ExposeMealPlanToNearbyFriendsRequest, ExposeMealPlanToNearbyFriendsRequestSchema, type ExposeMealPlanToNearbyFriendsResponse, ExposeMealPlanToNearbyFriendsResponseSchema, type HomeMealPlanActionCard, HomeMealPlanActionCardSchema, type HomeMealPlanActionKind, HomeMealPlanActionKindSchema, type HomeMealPlanDashboardResponse, HomeMealPlanDashboardResponseSchema, type JoinMealPlanGuestRequest, JoinMealPlanGuestRequestSchema, type JoinMealPlanGuestResponse, JoinMealPlanGuestResponseSchema, MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES, type MealGroupHistoryItem, MealGroupHistoryItemSchema, type MealGroupHistoryResponse, MealGroupHistoryResponseSchema, type MealGroupMember, type MealGroupMemberRole, MealGroupMemberRoleSchema, MealGroupMemberSchema, type MealGroupPreferenceSummary, MealGroupPreferenceSummarySchema, type MealGroupResponse, MealGroupResponseSchema, type MealMapFriendRecordLocationMetadata, MealMapFriendRecordLocationMetadataSchema, type MealMapLayer, MealMapLayerSchema, type MealMapMarker, MealMapMarkerSchema, type MealMapMyMealPlanPlaceMetadata, MealMapMyMealPlanPlaceMetadataSchema, type MealMapNearbyFriendMealPlanMetadata, MealMapNearbyFriendMealPlanMetadataSchema, type MealMapQuery, MealMapQuerySchema, type MealMapResponse, MealMapResponseSchema, type MealMapRestaurantCandidateCompletionBlockedReason, MealMapRestaurantCandidateCompletionBlockedReasonSchema, type MealMapRestaurantCandidateMetadata, MealMapRestaurantCandidateMetadataSchema, type MealPlanChangeRequestStatus, MealPlanChangeRequestStatusSchema, type MealPlanChangeRequestSummary, MealPlanChangeRequestSummarySchema, type MealPlanChannel, MealPlanChannelSchema, type MealPlanChatMessageKind, MealPlanChatMessageKindSchema, type MealPlanChatMessageListResponse, MealPlanChatMessageListResponseSchema, type MealPlanChatMessageResponse, MealPlanChatMessageResponseSchema, type MealPlanChatRoomSummary, MealPlanChatRoomSummarySchema, type MealPlanChatSystemPayload, MealPlanChatSystemPayloadSchema, type MealPlanDecisionActorType, MealPlanDecisionActorTypeSchema, type MealPlanDecisionCandidate, MealPlanDecisionCandidateSchema, type MealPlanDecisionFinalField, MealPlanDecisionFinalFieldSchema, type MealPlanDecisionProgress, MealPlanDecisionProgressSchema, type MealPlanDecisionReason, MealPlanDecisionReasonSchema, type MealPlanDecisionSnapshot, MealPlanDecisionSnapshotSchema, type MealPlanDecisionSnapshotStatus, MealPlanDecisionSnapshotStatusSchema, MealPlanDecisionStageIdSchema, type MealPlanDecisionStageMetadata, MealPlanDecisionStageMetadataSchema, type MealPlanDecisionStageResponse, MealPlanDecisionStageResponseSchema, type MealPlanDecisionStageStatus, MealPlanDecisionStageStatusSchema, type MealPlanDecisionStageType, MealPlanDecisionStageTypeSchema, type MealPlanDecisionTaskKey, MealPlanDecisionTaskKeySchema, type MealPlanDecisionTaskProgress, MealPlanDecisionTaskProgressSchema, MealPlanDecisionTaskReadyRequestSchema, type MealPlanDecisionTaskStatus, MealPlanDecisionTaskStatusSchema, type MealPlanDecisionVoteSocketAck, MealPlanDecisionVoteSocketAckSchema, type MealPlanDecisionVoteSocketError, MealPlanDecisionVoteSocketErrorSchema, MealPlanDecisionVoteSocketEvent, type MealPlanDecisionVoteSocketFailureAck, MealPlanDecisionVoteSocketFailureAckSchema, type MealPlanDecisionVoteSocketPayload, MealPlanDecisionVoteSocketPayloadSchema, type MealPlanDecisionVoteSocketSuccessAck, MealPlanDecisionVoteSocketSuccessAckSchema, type MealPlanGuestParticipant, MealPlanGuestParticipantSchema, type MealPlanGuestSessionQuery, MealPlanGuestSessionQuerySchema, type MealPlanGuestSessionResponse, MealPlanGuestSessionResponseSchema, type MealPlanInviteListResponse, MealPlanInviteListResponseSchema, type MealPlanInviteStatus, MealPlanInviteStatusSchema, type MealPlanInviteSummary, MealPlanInviteSummarySchema, type MealPlanJoinRequestStatus, MealPlanJoinRequestStatusSchema, type MealPlanJoinRequestSummary, MealPlanJoinRequestSummarySchema, type MealPlanJoinSource, MealPlanJoinSourceSchema, MealPlanLatitudeSchema, type MealPlanLiveActivityBehavior, MealPlanLiveActivityBehaviorSchema, type MealPlanLocationCandidate, MealPlanLocationCandidateIdSchema, MealPlanLocationCandidateSchema, type MealPlanLocationCandidateSource, MealPlanLocationCandidateSourceSchema, MealPlanLongitudeSchema, type MealPlanMenuCandidate, MealPlanMenuCandidateIdSchema, MealPlanMenuCandidateSchema, type MealPlanMenuCandidateSource, MealPlanMenuCandidateSourceSchema, type MealPlanMenuRecommendationState, MealPlanMenuRecommendationStateSchema, type MealPlanNearbyFriendExposureBatchSummary, MealPlanNearbyFriendExposureBatchSummarySchema, MealPlanNearbyFriendExposureIdSchema, type MealPlanNearbyFriendExposureNotificationStatus, MealPlanNearbyFriendExposureNotificationStatusSchema, type MealPlanNearbyFriendExposureStatus, MealPlanNearbyFriendExposureStatusSchema, type MealPlanNearbyFriendExposureSummary, MealPlanNearbyFriendExposureSummarySchema, type MealPlanNearbyFriendRejectionReason, MealPlanNearbyFriendRejectionReasonSchema, type MealPlanNearbyFriendRejectionSummary, MealPlanNearbyFriendRejectionSummarySchema, type MealPlanNotification$1 as MealPlanNotification, type MealPlanNotificationKind$1 as MealPlanNotificationKind, MealPlanNotificationKindSchema, type MealPlanNotificationPriorityChannel$1 as MealPlanNotificationPriorityChannel, MealPlanNotificationPriorityChannelSchema, type MealPlanNotificationPriorityPolicy, type MealPlanNotificationPriorityPolicyItem, MealPlanNotificationPriorityPolicyItemSchema, MealPlanNotificationSchema, MealPlanParticipantIdSchema, type MealPlanParticipantResponse, MealPlanParticipantResponseSchema, type MealPlanParticipantRole, MealPlanParticipantRoleSchema, type MealPlanParticipantStatus, MealPlanParticipantStatusSchema, type MealPlanRecommendationContext, MealPlanRecommendationContextSchema, type MealPlanResponse, MealPlanResponseSchema, type MealPlanRestaurantCandidate, MealPlanRestaurantCandidateSchema, type MealPlanRestaurantSearchState, MealPlanRestaurantSearchStateSchema, type MealPlanRestaurantSearchStatus, MealPlanRestaurantSearchStatusSchema, type MealPlanShareLinkSummary, MealPlanShareLinkSummarySchema, type MealPlanSharePreviewResponse, MealPlanSharePreviewResponseSchema, type MealPlanStatus, MealPlanStatusSchema, type MealPlanSystemMessage, type MealPlanSystemMessageKind, MealPlanSystemMessageKindSchema, MealPlanSystemMessageSchema, type MealPlanViewerPermissions, MealPlanViewerPermissionsSchema, type MealPlanViewerRole, MealPlanViewerRoleSchema, type MealPlanVote, MealPlanVoteIdSchema, MealPlanVoteSchema, type MealPlanVoteType, MealPlanVoteTypeSchema, type MyMealPlanGroup, MyMealPlanGroupSchema, type MyMealPlanListItem, MyMealPlanListItemSchema, type MyMealPlanListResponse, MyMealPlanListResponseSchema, type NearbyFriendExposureEligibility, NearbyFriendExposureEligibilitySchema, type NearbyFriendMealPlanSummary, NearbyFriendMealPlanSummarySchema, type ReopenMealPlanDecisionTaskRequest, ReopenMealPlanDecisionTaskRequestSchema, type SendMealPlanChatMessageRequest, SendMealPlanChatMessageRequestSchema, type SendMealPlanInviteResponse, SendMealPlanInviteResponseSchema, type StartMealPlanFromGroupRequest, StartMealPlanFromGroupRequestSchema, type UpdateMealGroupMemberRoleRequest, UpdateMealGroupMemberRoleRequestSchema, type UpdateMealPlanContextRequest, UpdateMealPlanContextRequestSchema, compareMealPlanNotificationsByPriority, getMealPlanDecisionCandidateKey, getMealPlanLiveActivityBehavior, getMealPlanNotificationPriority, getMealPlanNotificationPriorityPolicy, getMealPlanRestaurantProvisionCacheKey, shouldShowForegroundToast };
|
|
@@ -22,6 +22,12 @@ import {
|
|
|
22
22
|
MealMapResponseSchema,
|
|
23
23
|
MealMapRestaurantCandidateCompletionBlockedReasonSchema,
|
|
24
24
|
MealMapRestaurantCandidateMetadataSchema,
|
|
25
|
+
MealPlanDecisionVoteSocketAckSchema,
|
|
26
|
+
MealPlanDecisionVoteSocketErrorSchema,
|
|
27
|
+
MealPlanDecisionVoteSocketEvent,
|
|
28
|
+
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
29
|
+
MealPlanDecisionVoteSocketPayloadSchema,
|
|
30
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
25
31
|
MealPlanGuestSessionQuerySchema,
|
|
26
32
|
MealPlanGuestSessionResponseSchema,
|
|
27
33
|
MealPlanShareLinkSummarySchema,
|
|
@@ -35,7 +41,7 @@ import {
|
|
|
35
41
|
getMealPlanNotificationPriorityPolicy,
|
|
36
42
|
getMealPlanRestaurantProvisionCacheKey,
|
|
37
43
|
shouldShowForegroundToast
|
|
38
|
-
} from "../../chunk-
|
|
44
|
+
} from "../../chunk-ENXVY4SR.js";
|
|
39
45
|
import {
|
|
40
46
|
CompleteMealPlanDecisionStageRequestSchema,
|
|
41
47
|
ConfirmMealPlanDecisionSnapshotRequestSchema,
|
|
@@ -193,6 +199,12 @@ export {
|
|
|
193
199
|
MealPlanDecisionTaskProgressSchema,
|
|
194
200
|
MealPlanDecisionTaskReadyRequestSchema,
|
|
195
201
|
MealPlanDecisionTaskStatusSchema,
|
|
202
|
+
MealPlanDecisionVoteSocketAckSchema,
|
|
203
|
+
MealPlanDecisionVoteSocketErrorSchema,
|
|
204
|
+
MealPlanDecisionVoteSocketEvent,
|
|
205
|
+
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
206
|
+
MealPlanDecisionVoteSocketPayloadSchema,
|
|
207
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
196
208
|
MealPlanGuestParticipantSchema,
|
|
197
209
|
MealPlanGuestSessionQuerySchema,
|
|
198
210
|
MealPlanGuestSessionResponseSchema,
|