@kimdaegyu/babmukdang-shared 2.0.3 → 2.0.5
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-7FNZBMB2.js +364 -0
- package/dist/{chunk-7UZD4LBQ.js → chunk-ITXM3XFJ.js} +1 -3
- package/dist/{chunk-OPMBGBYS.js → chunk-S2Q64AFI.js} +16 -2
- package/dist/domain/common/index.cjs +0 -1
- package/dist/domain/common/index.js +2 -2
- package/dist/domain/index.cjs +303 -248
- package/dist/domain/index.d.cts +15 -3
- package/dist/domain/index.d.ts +15 -3
- package/dist/domain/index.js +17 -3
- package/dist/domain/live-activity/index.js +1 -1
- package/dist/domain/meal-plan/index.cjs +168 -112
- package/dist/domain/meal-plan/index.d.cts +1217 -1
- package/dist/domain/meal-plan/index.d.ts +1217 -1
- package/dist/domain/meal-plan/index.js +15 -1
- package/dist/index.cjs +296 -248
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-LEH6UFL7.js +0 -314
|
@@ -88,6 +88,12 @@ __export(meal_plan_exports, {
|
|
|
88
88
|
MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
|
|
89
89
|
MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
|
|
90
90
|
MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
|
|
91
|
+
MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
|
|
92
|
+
MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
|
|
93
|
+
MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
|
|
94
|
+
MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
|
|
95
|
+
MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
|
|
96
|
+
MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
91
97
|
MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
|
|
92
98
|
MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
|
|
93
99
|
MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
|
|
@@ -148,6 +154,7 @@ __export(meal_plan_exports, {
|
|
|
148
154
|
UpdateMealGroupMemberRoleRequestSchema: () => UpdateMealGroupMemberRoleRequestSchema,
|
|
149
155
|
UpdateMealPlanContextRequestSchema: () => UpdateMealPlanContextRequestSchema,
|
|
150
156
|
compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
|
|
157
|
+
getMealPlanDecisionCandidateKey: () => getMealPlanDecisionCandidateKey,
|
|
151
158
|
getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
|
|
152
159
|
getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
|
|
153
160
|
getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
|
|
@@ -1162,219 +1169,261 @@ var MealPlanNotificationSchema = import_zod12.z.object({
|
|
|
1162
1169
|
readAt: ISODateTimeStringSchema.nullable()
|
|
1163
1170
|
});
|
|
1164
1171
|
|
|
1165
|
-
// src/domain/meal-plan/meal-plan-
|
|
1172
|
+
// src/domain/meal-plan/meal-plan-decision.candidate-key.ts
|
|
1173
|
+
function getMealPlanDecisionCandidateKey(candidate) {
|
|
1174
|
+
switch (candidate.stageType) {
|
|
1175
|
+
case "DATE":
|
|
1176
|
+
case "TIME":
|
|
1177
|
+
return `${candidate.stageType}:${candidate.value}`;
|
|
1178
|
+
case "AREA":
|
|
1179
|
+
return `AREA:${candidate.value.locationId}`;
|
|
1180
|
+
case "MENU":
|
|
1181
|
+
return `MENU:${candidate.value.menuCandidateId}`;
|
|
1182
|
+
case "RESTAURANT":
|
|
1183
|
+
return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
|
|
1184
|
+
case "FINAL_CONFIRMATION":
|
|
1185
|
+
return "FINAL_CONFIRMATION:READY";
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
// src/domain/meal-plan/meal-plan.socket.ts
|
|
1166
1190
|
var import_zod13 = require("zod");
|
|
1167
|
-
var
|
|
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
|
+
|
|
1214
|
+
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
1215
|
+
var import_zod14 = require("zod");
|
|
1216
|
+
var CreateMealPlanShareLinkRequestSchema = import_zod14.z.object({
|
|
1168
1217
|
expiresAt: ISODateTimeStringSchema.optional(),
|
|
1169
|
-
guestJoinEnabled:
|
|
1218
|
+
guestJoinEnabled: import_zod14.z.boolean().default(true)
|
|
1170
1219
|
});
|
|
1171
|
-
var MealPlanShareLinkSummarySchema =
|
|
1220
|
+
var MealPlanShareLinkSummarySchema = import_zod14.z.object({
|
|
1172
1221
|
shareLinkId: MealPlanShareLinkIdSchema,
|
|
1173
1222
|
mealPlanId: MealPlanIdSchema,
|
|
1174
1223
|
token: MealPlanShareLinkTokenSchema,
|
|
1175
|
-
url:
|
|
1224
|
+
url: import_zod14.z.string().url(),
|
|
1176
1225
|
expiresAt: ISODateTimeStringSchema,
|
|
1177
|
-
guestJoinEnabled:
|
|
1226
|
+
guestJoinEnabled: import_zod14.z.boolean(),
|
|
1178
1227
|
createdAt: ISODateTimeStringSchema
|
|
1179
1228
|
});
|
|
1180
|
-
var MealPlanSharePreviewResponseSchema =
|
|
1229
|
+
var MealPlanSharePreviewResponseSchema = import_zod14.z.object({
|
|
1181
1230
|
mealPlanId: MealPlanIdSchema,
|
|
1182
1231
|
token: MealPlanShareLinkTokenSchema,
|
|
1183
|
-
title:
|
|
1184
|
-
ownerName:
|
|
1185
|
-
participantCount:
|
|
1232
|
+
title: import_zod14.z.string(),
|
|
1233
|
+
ownerName: import_zod14.z.string(),
|
|
1234
|
+
participantCount: import_zod14.z.number().int().min(1),
|
|
1186
1235
|
expiresAt: ISODateTimeStringSchema,
|
|
1187
|
-
guestJoinEnabled:
|
|
1236
|
+
guestJoinEnabled: import_zod14.z.boolean()
|
|
1188
1237
|
});
|
|
1189
|
-
var JoinMealPlanGuestRequestSchema =
|
|
1190
|
-
nickname:
|
|
1191
|
-
password:
|
|
1238
|
+
var JoinMealPlanGuestRequestSchema = import_zod14.z.object({
|
|
1239
|
+
nickname: import_zod14.z.string().min(1).max(50),
|
|
1240
|
+
password: import_zod14.z.string().min(1).max(100).optional()
|
|
1192
1241
|
});
|
|
1193
|
-
var JoinMealPlanGuestResponseSchema =
|
|
1242
|
+
var JoinMealPlanGuestResponseSchema = import_zod14.z.object({
|
|
1194
1243
|
mealPlanId: MealPlanIdSchema,
|
|
1195
|
-
guestId:
|
|
1196
|
-
sessionToken:
|
|
1244
|
+
guestId: import_zod14.z.string().min(1),
|
|
1245
|
+
sessionToken: import_zod14.z.string().min(1)
|
|
1197
1246
|
});
|
|
1198
|
-
var MealPlanGuestSessionQuerySchema =
|
|
1199
|
-
sessionToken:
|
|
1247
|
+
var MealPlanGuestSessionQuerySchema = import_zod14.z.object({
|
|
1248
|
+
sessionToken: import_zod14.z.string().min(1)
|
|
1200
1249
|
});
|
|
1201
|
-
var MealPlanGuestSessionResponseSchema =
|
|
1250
|
+
var MealPlanGuestSessionResponseSchema = import_zod14.z.object({
|
|
1202
1251
|
mealPlan: MealPlanResponseSchema,
|
|
1203
1252
|
token: MealPlanShareLinkTokenSchema,
|
|
1204
|
-
guestId:
|
|
1205
|
-
nickname:
|
|
1206
|
-
sessionToken:
|
|
1253
|
+
guestId: import_zod14.z.string().min(1),
|
|
1254
|
+
nickname: import_zod14.z.string().min(1).max(50),
|
|
1255
|
+
sessionToken: import_zod14.z.string().min(1)
|
|
1207
1256
|
});
|
|
1208
1257
|
|
|
1209
1258
|
// src/domain/meal-plan/meal-group.schema.ts
|
|
1210
|
-
var
|
|
1211
|
-
var MealGroupMemberRoleSchema =
|
|
1259
|
+
var import_zod15 = require("zod");
|
|
1260
|
+
var MealGroupMemberRoleSchema = import_zod15.z.enum([
|
|
1212
1261
|
"OWNER",
|
|
1213
1262
|
"MEMBER"
|
|
1214
1263
|
]);
|
|
1215
|
-
var MealGroupMemberSchema =
|
|
1264
|
+
var MealGroupMemberSchema = import_zod15.z.object({
|
|
1216
1265
|
member: MemberCoreSchema,
|
|
1217
1266
|
role: MealGroupMemberRoleSchema,
|
|
1218
1267
|
joinedAt: ISODateTimeStringSchema
|
|
1219
1268
|
});
|
|
1220
|
-
var MealGroupResponseSchema =
|
|
1269
|
+
var MealGroupResponseSchema = import_zod15.z.object({
|
|
1221
1270
|
mealGroupId: MealGroupIdSchema,
|
|
1222
|
-
name:
|
|
1271
|
+
name: import_zod15.z.string().min(1).max(50),
|
|
1223
1272
|
owner: MemberCoreSchema,
|
|
1224
|
-
profileImageUrl:
|
|
1225
|
-
members:
|
|
1226
|
-
recentMealPlanIds:
|
|
1273
|
+
profileImageUrl: import_zod15.z.string().url().nullable(),
|
|
1274
|
+
members: import_zod15.z.array(MealGroupMemberSchema),
|
|
1275
|
+
recentMealPlanIds: import_zod15.z.array(MealPlanIdSchema),
|
|
1227
1276
|
createdAt: ISODateTimeStringSchema,
|
|
1228
1277
|
updatedAt: ISODateTimeStringSchema
|
|
1229
1278
|
});
|
|
1230
|
-
var CreateMealGroupRequestSchema =
|
|
1231
|
-
name:
|
|
1232
|
-
memberIds:
|
|
1233
|
-
profileImageUrl:
|
|
1279
|
+
var CreateMealGroupRequestSchema = import_zod15.z.object({
|
|
1280
|
+
name: import_zod15.z.string().min(1).max(50),
|
|
1281
|
+
memberIds: import_zod15.z.array(import_zod15.z.number().int().positive()).min(1),
|
|
1282
|
+
profileImageUrl: import_zod15.z.string().url().nullable().optional(),
|
|
1234
1283
|
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
1235
1284
|
});
|
|
1236
|
-
var StartMealPlanFromGroupRequestSchema =
|
|
1237
|
-
title:
|
|
1285
|
+
var StartMealPlanFromGroupRequestSchema = import_zod15.z.object({
|
|
1286
|
+
title: import_zod15.z.string().min(1).max(100).optional()
|
|
1238
1287
|
});
|
|
1239
|
-
var AddMealGroupMemberRequestSchema =
|
|
1240
|
-
memberId:
|
|
1288
|
+
var AddMealGroupMemberRequestSchema = import_zod15.z.object({
|
|
1289
|
+
memberId: import_zod15.z.number().int().positive(),
|
|
1241
1290
|
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
1242
1291
|
});
|
|
1243
|
-
var UpdateMealGroupMemberRoleRequestSchema =
|
|
1292
|
+
var UpdateMealGroupMemberRoleRequestSchema = import_zod15.z.object({
|
|
1244
1293
|
role: MealGroupMemberRoleSchema
|
|
1245
1294
|
});
|
|
1246
1295
|
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
1247
|
-
var MealGroupPreferenceSummarySchema =
|
|
1296
|
+
var MealGroupPreferenceSummarySchema = import_zod15.z.object({
|
|
1248
1297
|
mealGroupId: MealGroupIdSchema,
|
|
1249
|
-
frequentMenuCategories:
|
|
1250
|
-
frequentRestaurants:
|
|
1251
|
-
recentMenuCategories:
|
|
1252
|
-
recommendationContext:
|
|
1253
|
-
preferredMenuCategories:
|
|
1254
|
-
excludedMenuCategories:
|
|
1255
|
-
candidateMenuCategories:
|
|
1298
|
+
frequentMenuCategories: import_zod15.z.array(import_zod15.z.object({ label: import_zod15.z.string(), count: import_zod15.z.number().int().min(0) })),
|
|
1299
|
+
frequentRestaurants: import_zod15.z.array(import_zod15.z.object({ restaurantName: import_zod15.z.string(), count: import_zod15.z.number().int().min(0) })),
|
|
1300
|
+
recentMenuCategories: import_zod15.z.array(import_zod15.z.string()),
|
|
1301
|
+
recommendationContext: import_zod15.z.object({
|
|
1302
|
+
preferredMenuCategories: import_zod15.z.array(import_zod15.z.string()),
|
|
1303
|
+
excludedMenuCategories: import_zod15.z.array(import_zod15.z.string()),
|
|
1304
|
+
candidateMenuCategories: import_zod15.z.array(import_zod15.z.string())
|
|
1256
1305
|
})
|
|
1257
1306
|
});
|
|
1258
|
-
var MealGroupHistoryResponseSchema =
|
|
1307
|
+
var MealGroupHistoryResponseSchema = import_zod15.z.array(MealGroupHistoryItemSchema);
|
|
1259
1308
|
|
|
1260
1309
|
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
1261
|
-
var
|
|
1262
|
-
var HomeMealPlanActionKindSchema =
|
|
1310
|
+
var import_zod16 = require("zod");
|
|
1311
|
+
var HomeMealPlanActionKindSchema = import_zod16.z.enum([
|
|
1263
1312
|
"CONTINUE_DECISION",
|
|
1264
1313
|
"TODAY_UPCOMING",
|
|
1265
1314
|
"RECORD_NEEDED",
|
|
1266
1315
|
"RESPOND_JOIN_REQUEST",
|
|
1267
1316
|
"NOTIFICATION_FOLLOW_UP"
|
|
1268
1317
|
]);
|
|
1269
|
-
var HomeMealPlanActionCardSchema =
|
|
1270
|
-
actionId:
|
|
1318
|
+
var HomeMealPlanActionCardSchema = import_zod16.z.object({
|
|
1319
|
+
actionId: import_zod16.z.string().min(1),
|
|
1271
1320
|
kind: HomeMealPlanActionKindSchema,
|
|
1272
|
-
priority:
|
|
1273
|
-
title:
|
|
1274
|
-
description:
|
|
1275
|
-
primaryAction:
|
|
1276
|
-
label:
|
|
1277
|
-
href:
|
|
1321
|
+
priority: import_zod16.z.number().int().min(0),
|
|
1322
|
+
title: import_zod16.z.string().min(1),
|
|
1323
|
+
description: import_zod16.z.string().min(1),
|
|
1324
|
+
primaryAction: import_zod16.z.object({
|
|
1325
|
+
label: import_zod16.z.string().min(1),
|
|
1326
|
+
href: import_zod16.z.string().min(1)
|
|
1278
1327
|
}),
|
|
1279
1328
|
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
1280
1329
|
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
1281
1330
|
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
1282
1331
|
});
|
|
1283
|
-
var HomeMealPlanDashboardResponseSchema =
|
|
1332
|
+
var HomeMealPlanDashboardResponseSchema = import_zod16.z.object({
|
|
1284
1333
|
generatedAt: ISODateTimeStringSchema,
|
|
1285
|
-
inProgress:
|
|
1286
|
-
today:
|
|
1287
|
-
recordNeeded:
|
|
1288
|
-
pendingJoinRequests:
|
|
1289
|
-
unreadNotifications:
|
|
1290
|
-
nextActions:
|
|
1291
|
-
});
|
|
1292
|
-
var MealMapLayerSchema =
|
|
1334
|
+
inProgress: import_zod16.z.array(MyMealPlanListItemSchema),
|
|
1335
|
+
today: import_zod16.z.array(MyMealPlanListItemSchema),
|
|
1336
|
+
recordNeeded: import_zod16.z.array(MyMealPlanListItemSchema),
|
|
1337
|
+
pendingJoinRequests: import_zod16.z.array(MealPlanJoinRequestSummarySchema),
|
|
1338
|
+
unreadNotifications: import_zod16.z.array(MealPlanNotificationSchema).default([]),
|
|
1339
|
+
nextActions: import_zod16.z.array(HomeMealPlanActionCardSchema)
|
|
1340
|
+
});
|
|
1341
|
+
var MealMapLayerSchema = import_zod16.z.enum([
|
|
1293
1342
|
"MY_MEAL_PLAN_PLACE",
|
|
1294
1343
|
"NEARBY_FRIEND_MEAL_PLAN",
|
|
1295
1344
|
"FRIEND_RECORD_LOCATION",
|
|
1296
1345
|
"RESTAURANT_CANDIDATE"
|
|
1297
1346
|
]);
|
|
1298
|
-
var MealMapMarkerBaseSchema =
|
|
1299
|
-
markerId:
|
|
1300
|
-
lat:
|
|
1301
|
-
lng:
|
|
1302
|
-
title:
|
|
1303
|
-
subtitle:
|
|
1304
|
-
href:
|
|
1347
|
+
var MealMapMarkerBaseSchema = import_zod16.z.object({
|
|
1348
|
+
markerId: import_zod16.z.string().min(1),
|
|
1349
|
+
lat: import_zod16.z.number().min(-90).max(90),
|
|
1350
|
+
lng: import_zod16.z.number().min(-180).max(180),
|
|
1351
|
+
title: import_zod16.z.string().min(1),
|
|
1352
|
+
subtitle: import_zod16.z.string().nullable(),
|
|
1353
|
+
href: import_zod16.z.string().min(1).nullable(),
|
|
1305
1354
|
mealPlanId: MealPlanIdSchema.nullable(),
|
|
1306
1355
|
articleId: ArticleIdSchema.nullable(),
|
|
1307
1356
|
restaurant: RestaurantSchema.nullable(),
|
|
1308
|
-
distanceMeters:
|
|
1357
|
+
distanceMeters: import_zod16.z.number().int().min(0).nullable(),
|
|
1309
1358
|
updatedAt: ISODateTimeStringSchema
|
|
1310
1359
|
});
|
|
1311
|
-
var MealMapMyMealPlanPlaceMetadataSchema =
|
|
1360
|
+
var MealMapMyMealPlanPlaceMetadataSchema = import_zod16.z.object({
|
|
1312
1361
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1313
|
-
status:
|
|
1314
|
-
participantCount:
|
|
1315
|
-
source:
|
|
1362
|
+
status: import_zod16.z.string().min(1),
|
|
1363
|
+
participantCount: import_zod16.z.number().int().min(1),
|
|
1364
|
+
source: import_zod16.z.string().min(1)
|
|
1316
1365
|
});
|
|
1317
|
-
var MealMapNearbyFriendMealPlanMetadataSchema =
|
|
1366
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = import_zod16.z.object({
|
|
1318
1367
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1319
|
-
ownerName:
|
|
1320
|
-
participantCount:
|
|
1368
|
+
ownerName: import_zod16.z.string().min(1),
|
|
1369
|
+
participantCount: import_zod16.z.number().int().min(1),
|
|
1321
1370
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1322
|
-
source:
|
|
1371
|
+
source: import_zod16.z.string().min(1)
|
|
1323
1372
|
});
|
|
1324
|
-
var MealMapFriendRecordLocationMetadataSchema =
|
|
1373
|
+
var MealMapFriendRecordLocationMetadataSchema = import_zod16.z.object({
|
|
1325
1374
|
authorId: MemberIdSchema.nullable().default(null),
|
|
1326
|
-
authorName:
|
|
1327
|
-
imageUrl:
|
|
1328
|
-
mealDate:
|
|
1375
|
+
authorName: import_zod16.z.string().min(1),
|
|
1376
|
+
imageUrl: import_zod16.z.string().nullable().default(null),
|
|
1377
|
+
mealDate: import_zod16.z.string().min(1)
|
|
1329
1378
|
});
|
|
1330
|
-
var MealMapRestaurantCandidateCompletionBlockedReasonSchema =
|
|
1379
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod16.z.enum([
|
|
1331
1380
|
"OWNER_ONLY",
|
|
1332
1381
|
"STAGE_ALREADY_COMPLETED",
|
|
1333
1382
|
"MEAL_PLAN_NOT_MUTABLE"
|
|
1334
1383
|
]);
|
|
1335
|
-
var MealMapRestaurantCandidateMetadataSchema =
|
|
1384
|
+
var MealMapRestaurantCandidateMetadataSchema = import_zod16.z.object({
|
|
1336
1385
|
stageId: MealPlanDecisionStageIdSchema,
|
|
1337
1386
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1338
|
-
status:
|
|
1339
|
-
source:
|
|
1340
|
-
stageStatus:
|
|
1341
|
-
canVote:
|
|
1342
|
-
canCompleteStage:
|
|
1387
|
+
status: import_zod16.z.string().min(1),
|
|
1388
|
+
source: import_zod16.z.enum(["search", "fallback", "manual"]).default("search"),
|
|
1389
|
+
stageStatus: import_zod16.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
|
|
1390
|
+
canVote: import_zod16.z.boolean().default(false),
|
|
1391
|
+
canCompleteStage: import_zod16.z.boolean().default(false),
|
|
1343
1392
|
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
1344
1393
|
});
|
|
1345
|
-
var MealMapMarkerSchema =
|
|
1394
|
+
var MealMapMarkerSchema = import_zod16.z.discriminatedUnion("layer", [
|
|
1346
1395
|
MealMapMarkerBaseSchema.extend({
|
|
1347
|
-
layer:
|
|
1396
|
+
layer: import_zod16.z.literal("MY_MEAL_PLAN_PLACE"),
|
|
1348
1397
|
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
1349
1398
|
}),
|
|
1350
1399
|
MealMapMarkerBaseSchema.extend({
|
|
1351
|
-
layer:
|
|
1400
|
+
layer: import_zod16.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
1352
1401
|
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
1353
1402
|
}),
|
|
1354
1403
|
MealMapMarkerBaseSchema.extend({
|
|
1355
|
-
layer:
|
|
1404
|
+
layer: import_zod16.z.literal("FRIEND_RECORD_LOCATION"),
|
|
1356
1405
|
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
1357
1406
|
}),
|
|
1358
1407
|
MealMapMarkerBaseSchema.extend({
|
|
1359
|
-
layer:
|
|
1408
|
+
layer: import_zod16.z.literal("RESTAURANT_CANDIDATE"),
|
|
1360
1409
|
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
1361
1410
|
})
|
|
1362
1411
|
]);
|
|
1363
|
-
var MealMapQuerySchema =
|
|
1364
|
-
friendRecordDays:
|
|
1412
|
+
var MealMapQuerySchema = import_zod16.z.object({
|
|
1413
|
+
friendRecordDays: import_zod16.z.coerce.number().int().min(1).max(90).optional().default(7)
|
|
1365
1414
|
});
|
|
1366
|
-
var MealMapResponseSchema =
|
|
1415
|
+
var MealMapResponseSchema = import_zod16.z.object({
|
|
1367
1416
|
generatedAt: ISODateTimeStringSchema,
|
|
1368
|
-
center:
|
|
1369
|
-
lat:
|
|
1370
|
-
lng:
|
|
1371
|
-
source:
|
|
1417
|
+
center: import_zod16.z.object({
|
|
1418
|
+
lat: import_zod16.z.number().min(-90).max(90),
|
|
1419
|
+
lng: import_zod16.z.number().min(-180).max(180),
|
|
1420
|
+
source: import_zod16.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
|
|
1372
1421
|
}),
|
|
1373
|
-
layers:
|
|
1374
|
-
myMealPlanPlaces:
|
|
1375
|
-
nearbyFriendMealPlans:
|
|
1376
|
-
friendRecordLocations:
|
|
1377
|
-
restaurantCandidates:
|
|
1422
|
+
layers: import_zod16.z.object({
|
|
1423
|
+
myMealPlanPlaces: import_zod16.z.array(MealMapMarkerSchema),
|
|
1424
|
+
nearbyFriendMealPlans: import_zod16.z.array(MealMapMarkerSchema),
|
|
1425
|
+
friendRecordLocations: import_zod16.z.array(MealMapMarkerSchema),
|
|
1426
|
+
restaurantCandidates: import_zod16.z.array(MealMapMarkerSchema)
|
|
1378
1427
|
})
|
|
1379
1428
|
});
|
|
1380
1429
|
|
|
@@ -1473,6 +1522,12 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1473
1522
|
MealPlanDecisionTaskKeySchema,
|
|
1474
1523
|
MealPlanDecisionTaskProgressSchema,
|
|
1475
1524
|
MealPlanDecisionTaskStatusSchema,
|
|
1525
|
+
MealPlanDecisionVoteSocketAckSchema,
|
|
1526
|
+
MealPlanDecisionVoteSocketErrorSchema,
|
|
1527
|
+
MealPlanDecisionVoteSocketEvent,
|
|
1528
|
+
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
1529
|
+
MealPlanDecisionVoteSocketPayloadSchema,
|
|
1530
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
1476
1531
|
MealPlanGuestParticipantSchema,
|
|
1477
1532
|
MealPlanGuestSessionQuerySchema,
|
|
1478
1533
|
MealPlanGuestSessionResponseSchema,
|
|
@@ -1533,6 +1588,7 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1533
1588
|
UpdateMealGroupMemberRoleRequestSchema,
|
|
1534
1589
|
UpdateMealPlanContextRequestSchema,
|
|
1535
1590
|
compareMealPlanNotificationsByPriority,
|
|
1591
|
+
getMealPlanDecisionCandidateKey,
|
|
1536
1592
|
getMealPlanLiveActivityBehavior,
|
|
1537
1593
|
getMealPlanNotificationPriority,
|
|
1538
1594
|
getMealPlanNotificationPriorityPolicy,
|