@kimdaegyu/babmukdang-shared 2.0.6 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,8 +87,13 @@ __export(meal_plan_exports, {
87
87
  MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
88
88
  MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
89
89
  MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
90
- MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
91
90
  MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
91
+ MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
92
+ MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
93
+ MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
94
+ MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
95
+ MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
96
+ MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
92
97
  MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
93
98
  MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
94
99
  MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
@@ -466,7 +471,9 @@ var MealPlanDecisionStageIdSchema = import_zod7.z.string().uuid().brand();
466
471
  var MealPlanVoteIdSchema = import_zod7.z.string().uuid().brand();
467
472
  var MealPlanLocationCandidateSourceSchema = import_zod7.z.enum([
468
473
  "manual",
474
+ "map-marker",
469
475
  "midpoint",
476
+ "user-location",
470
477
  "search",
471
478
  "recent-place",
472
479
  "fallback"
@@ -493,8 +500,8 @@ var MealPlanMenuCandidateSchema = import_zod7.z.object({
493
500
  menu: FoodSchema,
494
501
  source: MealPlanMenuCandidateSourceSchema,
495
502
  score: import_zod7.z.number().default(0),
496
- imageUrl: import_zod7.z.string().min(1).nullable().optional(),
497
- image: FoodCodeManifestImageSchema.nullable().optional(),
503
+ imageUrl: import_zod7.z.string().min(1).nullable().default(null),
504
+ image: FoodCodeManifestImageSchema.nullable().default(null),
498
505
  createdAt: ISODateTimeStringSchema
499
506
  });
500
507
  var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
@@ -615,7 +622,6 @@ var MealPlanDecisionTaskKeySchema = import_zod7.z.enum([
615
622
  var MealPlanDecisionTaskStatusSchema = import_zod7.z.enum([
616
623
  "LOCKED",
617
624
  "OPEN",
618
- "READY",
619
625
  "RESOLVED",
620
626
  "STALE"
621
627
  ]);
@@ -639,7 +645,6 @@ var MealPlanDecisionReasonSchema = import_zod7.z.enum([
639
645
  "TOP_PICKED_MENU",
640
646
  "TOP_PICKED_RESTAURANT",
641
647
  "OWNER_CONFIRMED",
642
- "TASK_ALL_READY",
643
648
  "MANUAL_SELECTION"
644
649
  ]);
645
650
  var MealPlanDecisionActorTypeSchema = import_zod7.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
@@ -665,8 +670,6 @@ var MealPlanDecisionSnapshotSchema = import_zod7.z.object({
665
670
  var MealPlanDecisionTaskProgressSchema = import_zod7.z.object({
666
671
  taskKey: MealPlanDecisionTaskKeySchema,
667
672
  status: MealPlanDecisionTaskStatusSchema,
668
- readyCount: import_zod7.z.number().int().min(0),
669
- participantCount: import_zod7.z.number().int().min(0),
670
673
  blockers: import_zod7.z.array(import_zod7.z.string()).default([]),
671
674
  updatedAt: ISODateTimeStringSchema
672
675
  });
@@ -680,9 +683,6 @@ var MealPlanDecisionProgressSchema = import_zod7.z.object({
680
683
  version: import_zod7.z.number().int().min(0),
681
684
  updatedAt: ISODateTimeStringSchema
682
685
  });
683
- var MealPlanDecisionTaskReadyRequestSchema = import_zod7.z.object({
684
- isReady: import_zod7.z.boolean()
685
- });
686
686
  var ReopenMealPlanDecisionTaskRequestSchema = import_zod7.z.object({
687
687
  reason: import_zod7.z.string().max(500).optional()
688
688
  });
@@ -1199,219 +1199,244 @@ function getMealPlanRestaurantProvisionCacheKey(area, menu) {
1199
1199
  return `restaurant-search:${getMealPlanDecisionCandidateKey(area)}:${getMealPlanDecisionCandidateKey(menu)}`;
1200
1200
  }
1201
1201
 
1202
- // src/domain/meal-plan/meal-plan-share-link.schema.ts
1202
+ // src/domain/meal-plan/meal-plan.socket.ts
1203
1203
  var import_zod13 = require("zod");
1204
- var CreateMealPlanShareLinkRequestSchema = import_zod13.z.object({
1204
+ var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
1205
+ var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
1206
+ mealPlanId: MealPlanIdSchema,
1207
+ stageId: MealPlanDecisionStageIdSchema,
1208
+ guestSessionToken: import_zod13.z.string().min(1).optional()
1209
+ });
1210
+ var MealPlanDecisionVoteSocketErrorSchema = import_zod13.z.object({
1211
+ code: import_zod13.z.string().min(1),
1212
+ message: import_zod13.z.string().min(1)
1213
+ });
1214
+ var MealPlanDecisionVoteSocketSuccessAckSchema = import_zod13.z.object({
1215
+ ok: import_zod13.z.literal(true),
1216
+ mealPlan: MealPlanResponseSchema
1217
+ });
1218
+ var MealPlanDecisionVoteSocketFailureAckSchema = import_zod13.z.object({
1219
+ ok: import_zod13.z.literal(false),
1220
+ error: MealPlanDecisionVoteSocketErrorSchema
1221
+ });
1222
+ var MealPlanDecisionVoteSocketAckSchema = import_zod13.z.discriminatedUnion("ok", [
1223
+ MealPlanDecisionVoteSocketSuccessAckSchema,
1224
+ MealPlanDecisionVoteSocketFailureAckSchema
1225
+ ]);
1226
+
1227
+ // src/domain/meal-plan/meal-plan-share-link.schema.ts
1228
+ var import_zod14 = require("zod");
1229
+ var CreateMealPlanShareLinkRequestSchema = import_zod14.z.object({
1205
1230
  expiresAt: ISODateTimeStringSchema.optional(),
1206
- guestJoinEnabled: import_zod13.z.boolean().default(true)
1231
+ guestJoinEnabled: import_zod14.z.boolean().default(true)
1207
1232
  });
1208
- var MealPlanShareLinkSummarySchema = import_zod13.z.object({
1233
+ var MealPlanShareLinkSummarySchema = import_zod14.z.object({
1209
1234
  shareLinkId: MealPlanShareLinkIdSchema,
1210
1235
  mealPlanId: MealPlanIdSchema,
1211
1236
  token: MealPlanShareLinkTokenSchema,
1212
- url: import_zod13.z.string().url(),
1237
+ url: import_zod14.z.string().url(),
1213
1238
  expiresAt: ISODateTimeStringSchema,
1214
- guestJoinEnabled: import_zod13.z.boolean(),
1239
+ guestJoinEnabled: import_zod14.z.boolean(),
1215
1240
  createdAt: ISODateTimeStringSchema
1216
1241
  });
1217
- var MealPlanSharePreviewResponseSchema = import_zod13.z.object({
1242
+ var MealPlanSharePreviewResponseSchema = import_zod14.z.object({
1218
1243
  mealPlanId: MealPlanIdSchema,
1219
1244
  token: MealPlanShareLinkTokenSchema,
1220
- title: import_zod13.z.string(),
1221
- ownerName: import_zod13.z.string(),
1222
- participantCount: import_zod13.z.number().int().min(1),
1245
+ title: import_zod14.z.string(),
1246
+ ownerName: import_zod14.z.string(),
1247
+ participantCount: import_zod14.z.number().int().min(1),
1223
1248
  expiresAt: ISODateTimeStringSchema,
1224
- guestJoinEnabled: import_zod13.z.boolean()
1249
+ guestJoinEnabled: import_zod14.z.boolean()
1225
1250
  });
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()
1251
+ var JoinMealPlanGuestRequestSchema = import_zod14.z.object({
1252
+ nickname: import_zod14.z.string().min(1).max(50),
1253
+ password: import_zod14.z.string().min(1).max(100).optional()
1229
1254
  });
1230
- var JoinMealPlanGuestResponseSchema = import_zod13.z.object({
1255
+ var JoinMealPlanGuestResponseSchema = import_zod14.z.object({
1231
1256
  mealPlanId: MealPlanIdSchema,
1232
- guestId: import_zod13.z.string().min(1),
1233
- sessionToken: import_zod13.z.string().min(1)
1257
+ guestId: import_zod14.z.string().min(1),
1258
+ sessionToken: import_zod14.z.string().min(1)
1234
1259
  });
1235
- var MealPlanGuestSessionQuerySchema = import_zod13.z.object({
1236
- sessionToken: import_zod13.z.string().min(1)
1260
+ var MealPlanGuestSessionQuerySchema = import_zod14.z.object({
1261
+ sessionToken: import_zod14.z.string().min(1)
1237
1262
  });
1238
- var MealPlanGuestSessionResponseSchema = import_zod13.z.object({
1263
+ var MealPlanGuestSessionResponseSchema = import_zod14.z.object({
1239
1264
  mealPlan: MealPlanResponseSchema,
1240
1265
  token: MealPlanShareLinkTokenSchema,
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)
1266
+ guestId: import_zod14.z.string().min(1),
1267
+ nickname: import_zod14.z.string().min(1).max(50),
1268
+ sessionToken: import_zod14.z.string().min(1)
1244
1269
  });
1245
1270
 
1246
1271
  // src/domain/meal-plan/meal-group.schema.ts
1247
- var import_zod14 = require("zod");
1248
- var MealGroupMemberRoleSchema = import_zod14.z.enum([
1272
+ var import_zod15 = require("zod");
1273
+ var MealGroupMemberRoleSchema = import_zod15.z.enum([
1249
1274
  "OWNER",
1250
1275
  "MEMBER"
1251
1276
  ]);
1252
- var MealGroupMemberSchema = import_zod14.z.object({
1277
+ var MealGroupMemberSchema = import_zod15.z.object({
1253
1278
  member: MemberCoreSchema,
1254
1279
  role: MealGroupMemberRoleSchema,
1255
1280
  joinedAt: ISODateTimeStringSchema
1256
1281
  });
1257
- var MealGroupResponseSchema = import_zod14.z.object({
1282
+ var MealGroupResponseSchema = import_zod15.z.object({
1258
1283
  mealGroupId: MealGroupIdSchema,
1259
- name: import_zod14.z.string().min(1).max(50),
1284
+ name: import_zod15.z.string().min(1).max(50),
1260
1285
  owner: MemberCoreSchema,
1261
- profileImageUrl: import_zod14.z.string().url().nullable(),
1262
- members: import_zod14.z.array(MealGroupMemberSchema),
1263
- recentMealPlanIds: import_zod14.z.array(MealPlanIdSchema),
1286
+ profileImageUrl: import_zod15.z.string().url().nullable(),
1287
+ members: import_zod15.z.array(MealGroupMemberSchema),
1288
+ recentMealPlanIds: import_zod15.z.array(MealPlanIdSchema),
1264
1289
  createdAt: ISODateTimeStringSchema,
1265
1290
  updatedAt: ISODateTimeStringSchema
1266
1291
  });
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(),
1292
+ var CreateMealGroupRequestSchema = import_zod15.z.object({
1293
+ name: import_zod15.z.string().min(1).max(50),
1294
+ memberIds: import_zod15.z.array(import_zod15.z.number().int().positive()).min(1),
1295
+ profileImageUrl: import_zod15.z.string().url().nullable().optional(),
1271
1296
  sourceMealPlanId: MealPlanIdSchema.optional()
1272
1297
  });
1273
- var StartMealPlanFromGroupRequestSchema = import_zod14.z.object({
1274
- title: import_zod14.z.string().min(1).max(100).optional()
1298
+ var StartMealPlanFromGroupRequestSchema = import_zod15.z.object({
1299
+ title: import_zod15.z.string().min(1).max(100).optional()
1275
1300
  });
1276
- var AddMealGroupMemberRequestSchema = import_zod14.z.object({
1277
- memberId: import_zod14.z.number().int().positive(),
1301
+ var AddMealGroupMemberRequestSchema = import_zod15.z.object({
1302
+ memberId: import_zod15.z.number().int().positive(),
1278
1303
  role: MealGroupMemberRoleSchema.default("MEMBER")
1279
1304
  });
1280
- var UpdateMealGroupMemberRoleRequestSchema = import_zod14.z.object({
1305
+ var UpdateMealGroupMemberRoleRequestSchema = import_zod15.z.object({
1281
1306
  role: MealGroupMemberRoleSchema
1282
1307
  });
1283
1308
  var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
1284
- var MealGroupPreferenceSummarySchema = import_zod14.z.object({
1309
+ var MealGroupPreferenceSummarySchema = import_zod15.z.object({
1285
1310
  mealGroupId: MealGroupIdSchema,
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())
1311
+ frequentMenuCategories: import_zod15.z.array(import_zod15.z.object({ label: import_zod15.z.string(), count: import_zod15.z.number().int().min(0) })),
1312
+ frequentRestaurants: import_zod15.z.array(import_zod15.z.object({ restaurantName: import_zod15.z.string(), count: import_zod15.z.number().int().min(0) })),
1313
+ recentMenuCategories: import_zod15.z.array(import_zod15.z.string()),
1314
+ recommendationContext: import_zod15.z.object({
1315
+ preferredMenuCategories: import_zod15.z.array(import_zod15.z.string()),
1316
+ excludedMenuCategories: import_zod15.z.array(import_zod15.z.string()),
1317
+ candidateMenuCategories: import_zod15.z.array(import_zod15.z.string())
1293
1318
  })
1294
1319
  });
1295
- var MealGroupHistoryResponseSchema = import_zod14.z.array(MealGroupHistoryItemSchema);
1320
+ var MealGroupHistoryResponseSchema = import_zod15.z.array(MealGroupHistoryItemSchema);
1296
1321
 
1297
1322
  // src/domain/meal-plan/meal-plan-home-map.schema.ts
1298
- var import_zod15 = require("zod");
1299
- var HomeMealPlanActionKindSchema = import_zod15.z.enum([
1323
+ var import_zod16 = require("zod");
1324
+ var HomeMealPlanActionKindSchema = import_zod16.z.enum([
1300
1325
  "CONTINUE_DECISION",
1301
1326
  "TODAY_UPCOMING",
1302
1327
  "RECORD_NEEDED",
1303
1328
  "RESPOND_JOIN_REQUEST",
1304
1329
  "NOTIFICATION_FOLLOW_UP"
1305
1330
  ]);
1306
- var HomeMealPlanActionCardSchema = import_zod15.z.object({
1307
- actionId: import_zod15.z.string().min(1),
1331
+ var HomeMealPlanActionCardSchema = import_zod16.z.object({
1332
+ actionId: import_zod16.z.string().min(1),
1308
1333
  kind: HomeMealPlanActionKindSchema,
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)
1334
+ priority: import_zod16.z.number().int().min(0),
1335
+ title: import_zod16.z.string().min(1),
1336
+ description: import_zod16.z.string().min(1),
1337
+ primaryAction: import_zod16.z.object({
1338
+ label: import_zod16.z.string().min(1),
1339
+ href: import_zod16.z.string().min(1)
1315
1340
  }),
1316
1341
  mealPlan: MyMealPlanListItemSchema.nullable(),
1317
1342
  joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
1318
1343
  notification: MealPlanNotificationSchema.nullable().default(null)
1319
1344
  });
1320
- var HomeMealPlanDashboardResponseSchema = import_zod15.z.object({
1345
+ var HomeMealPlanDashboardResponseSchema = import_zod16.z.object({
1321
1346
  generatedAt: ISODateTimeStringSchema,
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([
1347
+ inProgress: import_zod16.z.array(MyMealPlanListItemSchema),
1348
+ today: import_zod16.z.array(MyMealPlanListItemSchema),
1349
+ recordNeeded: import_zod16.z.array(MyMealPlanListItemSchema),
1350
+ pendingJoinRequests: import_zod16.z.array(MealPlanJoinRequestSummarySchema),
1351
+ unreadNotifications: import_zod16.z.array(MealPlanNotificationSchema).default([]),
1352
+ nextActions: import_zod16.z.array(HomeMealPlanActionCardSchema)
1353
+ });
1354
+ var MealMapLayerSchema = import_zod16.z.enum([
1330
1355
  "MY_MEAL_PLAN_PLACE",
1331
1356
  "NEARBY_FRIEND_MEAL_PLAN",
1332
1357
  "FRIEND_RECORD_LOCATION",
1333
1358
  "RESTAURANT_CANDIDATE"
1334
1359
  ]);
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(),
1360
+ var MealMapMarkerBaseSchema = import_zod16.z.object({
1361
+ markerId: import_zod16.z.string().min(1),
1362
+ lat: import_zod16.z.number().min(-90).max(90),
1363
+ lng: import_zod16.z.number().min(-180).max(180),
1364
+ title: import_zod16.z.string().min(1),
1365
+ subtitle: import_zod16.z.string().nullable(),
1366
+ href: import_zod16.z.string().min(1).nullable(),
1342
1367
  mealPlanId: MealPlanIdSchema.nullable(),
1343
1368
  articleId: ArticleIdSchema.nullable(),
1344
1369
  restaurant: RestaurantSchema.nullable(),
1345
- distanceMeters: import_zod15.z.number().int().min(0).nullable(),
1370
+ distanceMeters: import_zod16.z.number().int().min(0).nullable(),
1346
1371
  updatedAt: ISODateTimeStringSchema
1347
1372
  });
1348
- var MealMapMyMealPlanPlaceMetadataSchema = import_zod15.z.object({
1373
+ var MealMapMyMealPlanPlaceMetadataSchema = import_zod16.z.object({
1349
1374
  ownerId: MemberIdSchema.nullable().default(null),
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)
1375
+ status: import_zod16.z.string().min(1),
1376
+ participantCount: import_zod16.z.number().int().min(1),
1377
+ source: import_zod16.z.string().min(1)
1353
1378
  });
1354
- var MealMapNearbyFriendMealPlanMetadataSchema = import_zod15.z.object({
1379
+ var MealMapNearbyFriendMealPlanMetadataSchema = import_zod16.z.object({
1355
1380
  ownerId: MemberIdSchema.nullable().default(null),
1356
- ownerName: import_zod15.z.string().min(1),
1357
- participantCount: import_zod15.z.number().int().min(1),
1381
+ ownerName: import_zod16.z.string().min(1),
1382
+ participantCount: import_zod16.z.number().int().min(1),
1358
1383
  expiresAt: ISODateTimeStringSchema.nullable(),
1359
- source: import_zod15.z.string().min(1)
1384
+ source: import_zod16.z.string().min(1)
1360
1385
  });
1361
- var MealMapFriendRecordLocationMetadataSchema = import_zod15.z.object({
1386
+ var MealMapFriendRecordLocationMetadataSchema = import_zod16.z.object({
1362
1387
  authorId: MemberIdSchema.nullable().default(null),
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)
1388
+ authorName: import_zod16.z.string().min(1),
1389
+ imageUrl: import_zod16.z.string().nullable().default(null),
1390
+ mealDate: import_zod16.z.string().min(1)
1366
1391
  });
1367
- var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod15.z.enum([
1392
+ var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod16.z.enum([
1368
1393
  "OWNER_ONLY",
1369
1394
  "STAGE_ALREADY_COMPLETED",
1370
1395
  "MEAL_PLAN_NOT_MUTABLE"
1371
1396
  ]);
1372
- var MealMapRestaurantCandidateMetadataSchema = import_zod15.z.object({
1397
+ var MealMapRestaurantCandidateMetadataSchema = import_zod16.z.object({
1373
1398
  stageId: MealPlanDecisionStageIdSchema,
1374
1399
  ownerId: MemberIdSchema.nullable().default(null),
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),
1400
+ status: import_zod16.z.string().min(1),
1401
+ source: import_zod16.z.enum(["search", "fallback", "manual"]).default("search"),
1402
+ stageStatus: import_zod16.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1403
+ canVote: import_zod16.z.boolean().default(false),
1404
+ canCompleteStage: import_zod16.z.boolean().default(false),
1380
1405
  completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
1381
1406
  });
1382
- var MealMapMarkerSchema = import_zod15.z.discriminatedUnion("layer", [
1407
+ var MealMapMarkerSchema = import_zod16.z.discriminatedUnion("layer", [
1383
1408
  MealMapMarkerBaseSchema.extend({
1384
- layer: import_zod15.z.literal("MY_MEAL_PLAN_PLACE"),
1409
+ layer: import_zod16.z.literal("MY_MEAL_PLAN_PLACE"),
1385
1410
  metadata: MealMapMyMealPlanPlaceMetadataSchema
1386
1411
  }),
1387
1412
  MealMapMarkerBaseSchema.extend({
1388
- layer: import_zod15.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1413
+ layer: import_zod16.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1389
1414
  metadata: MealMapNearbyFriendMealPlanMetadataSchema
1390
1415
  }),
1391
1416
  MealMapMarkerBaseSchema.extend({
1392
- layer: import_zod15.z.literal("FRIEND_RECORD_LOCATION"),
1417
+ layer: import_zod16.z.literal("FRIEND_RECORD_LOCATION"),
1393
1418
  metadata: MealMapFriendRecordLocationMetadataSchema
1394
1419
  }),
1395
1420
  MealMapMarkerBaseSchema.extend({
1396
- layer: import_zod15.z.literal("RESTAURANT_CANDIDATE"),
1421
+ layer: import_zod16.z.literal("RESTAURANT_CANDIDATE"),
1397
1422
  metadata: MealMapRestaurantCandidateMetadataSchema
1398
1423
  })
1399
1424
  ]);
1400
- var MealMapQuerySchema = import_zod15.z.object({
1401
- friendRecordDays: import_zod15.z.coerce.number().int().min(1).max(90).optional().default(7)
1425
+ var MealMapQuerySchema = import_zod16.z.object({
1426
+ friendRecordDays: import_zod16.z.coerce.number().int().min(1).max(90).optional().default(7)
1402
1427
  });
1403
- var MealMapResponseSchema = import_zod15.z.object({
1428
+ var MealMapResponseSchema = import_zod16.z.object({
1404
1429
  generatedAt: ISODateTimeStringSchema,
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"])
1430
+ center: import_zod16.z.object({
1431
+ lat: import_zod16.z.number().min(-90).max(90),
1432
+ lng: import_zod16.z.number().min(-180).max(180),
1433
+ source: import_zod16.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1409
1434
  }),
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)
1435
+ layers: import_zod16.z.object({
1436
+ myMealPlanPlaces: import_zod16.z.array(MealMapMarkerSchema),
1437
+ nearbyFriendMealPlans: import_zod16.z.array(MealMapMarkerSchema),
1438
+ friendRecordLocations: import_zod16.z.array(MealMapMarkerSchema),
1439
+ restaurantCandidates: import_zod16.z.array(MealMapMarkerSchema)
1415
1440
  })
1416
1441
  });
1417
1442
 
@@ -1509,8 +1534,13 @@ function compareMealPlanNotificationsByPriority(channel) {
1509
1534
  MealPlanDecisionStageTypeSchema,
1510
1535
  MealPlanDecisionTaskKeySchema,
1511
1536
  MealPlanDecisionTaskProgressSchema,
1512
- MealPlanDecisionTaskReadyRequestSchema,
1513
1537
  MealPlanDecisionTaskStatusSchema,
1538
+ MealPlanDecisionVoteSocketAckSchema,
1539
+ MealPlanDecisionVoteSocketErrorSchema,
1540
+ MealPlanDecisionVoteSocketEvent,
1541
+ MealPlanDecisionVoteSocketFailureAckSchema,
1542
+ MealPlanDecisionVoteSocketPayloadSchema,
1543
+ MealPlanDecisionVoteSocketSuccessAckSchema,
1514
1544
  MealPlanGuestParticipantSchema,
1515
1545
  MealPlanGuestSessionQuerySchema,
1516
1546
  MealPlanGuestSessionResponseSchema,