@kimdaegyu/babmukdang-shared 2.0.2 → 2.0.3
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-EX7S5FI5.js → chunk-3TY6OPD3.js} +4 -4
- package/dist/{chunk-QUAG5LF5.js → chunk-6O2YTBVC.js} +4 -11
- package/dist/{chunk-TOXRHSD6.js → chunk-7JYVBXKQ.js} +1 -1
- package/dist/chunk-7UZD4LBQ.js +459 -0
- package/dist/chunk-BSJC7OVV.js +10 -0
- package/dist/{chunk-YV734GYZ.js → chunk-C63TN7L3.js} +9 -26
- package/dist/{chunk-Q4BPFDVB.js → chunk-CGFW5LYV.js} +6 -34
- package/dist/{chunk-TIOX7OHA.js → chunk-GOOH2LGN.js} +24 -58
- package/dist/{chunk-EYZU5HPG.js → chunk-HRM3FQPL.js} +1 -4
- package/dist/{chunk-3BLXZW4U.js → chunk-LEH6UFL7.js} +11 -35
- package/dist/{chunk-P3MYMK34.js → chunk-NENVUHL5.js} +9 -17
- package/dist/{chunk-IPANLE7B.js → chunk-OPMBGBYS.js} +34 -34
- package/dist/{chunk-G7TITUHT.js → chunk-QFPVAJ2U.js} +1 -1
- package/dist/{chunk-65DWKLP6.js → chunk-RZPNVRRS.js} +5 -14
- package/dist/{chunk-DRCY5UNQ.js → chunk-VD3VGLBQ.js} +4 -9
- package/dist/{chunk-GESEM4IA.js → chunk-WYBFBLQC.js} +6 -17
- package/dist/{chunk-6R5CCY5Q.js → chunk-XMRYAG3V.js} +0 -2
- package/dist/domain/article/index.cjs +13 -41
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +8 -25
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +735 -1332
- package/dist/domain/common/index.js +15 -14
- package/dist/domain/food/index.cjs +5 -28
- package/dist/domain/food/index.d.cts +4 -4
- package/dist/domain/food/index.d.ts +4 -4
- package/dist/domain/food/index.js +7 -5
- package/dist/domain/friend/index.cjs +10 -35
- package/dist/domain/friend/index.js +4 -4
- package/dist/domain/index.cjs +736 -1476
- package/dist/domain/index.d.cts +4 -5
- package/dist/domain/index.d.ts +4 -5
- package/dist/domain/index.js +35 -35
- package/dist/domain/live-activity/index.cjs +422 -371
- package/dist/domain/live-activity/index.js +9 -8
- package/dist/domain/meal/index.cjs +11 -38
- package/dist/domain/meal/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +462 -426
- package/dist/domain/meal-plan/index.d.cts +149 -50
- package/dist/domain/meal-plan/index.d.ts +149 -50
- package/dist/domain/meal-plan/index.js +7 -8
- package/dist/domain/member/index.cjs +8 -25
- package/dist/domain/member/index.js +2 -2
- package/dist/domain/promotion/index.cjs +4 -16
- package/dist/domain/promotion/index.js +3 -3
- package/dist/domain/push/index.cjs +392 -341
- package/dist/domain/push/index.js +7 -6
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +736 -1475
- package/dist/index.js +17 -16
- package/package.json +1 -1
- package/dist/chunk-KREAZLLH.js +0 -1062
|
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
8
|
var __export = (target, all) => {
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -88,7 +87,6 @@ __export(meal_plan_exports, {
|
|
|
88
87
|
MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
|
|
89
88
|
MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
|
|
90
89
|
MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
|
|
91
|
-
MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
|
|
92
90
|
MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
|
|
93
91
|
MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
|
|
94
92
|
MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
|
|
@@ -158,16 +156,13 @@ __export(meal_plan_exports, {
|
|
|
158
156
|
module.exports = __toCommonJS(meal_plan_exports);
|
|
159
157
|
|
|
160
158
|
// src/domain/meal-plan/meal-plan.schema.ts
|
|
161
|
-
var
|
|
159
|
+
var import_zod12 = require("zod");
|
|
162
160
|
|
|
163
161
|
// src/domain/common/schema/date.schema.ts
|
|
164
162
|
var import_zod = require("zod");
|
|
165
163
|
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
166
164
|
var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
167
|
-
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
168
|
-
offset: true,
|
|
169
|
-
message: "Expected ISO datetime string"
|
|
170
|
-
});
|
|
165
|
+
var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
|
|
171
166
|
var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
172
167
|
|
|
173
168
|
// src/domain/common/schema/id.schema.ts
|
|
@@ -214,24 +209,10 @@ var UploadPresignImageRequestSchema = import_zod3.default.object({
|
|
|
214
209
|
});
|
|
215
210
|
|
|
216
211
|
// src/domain/member/member.schema.ts
|
|
217
|
-
var MemberRoleSchema = import_zod4.z.enum([
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
]);
|
|
221
|
-
var LocationConsentStatusSchema = import_zod4.z.enum([
|
|
222
|
-
"UNKNOWN",
|
|
223
|
-
"GRANTED",
|
|
224
|
-
"DENIED"
|
|
225
|
-
]);
|
|
226
|
-
var OnboardingStatusSchema = import_zod4.z.enum([
|
|
227
|
-
"REQUIRED",
|
|
228
|
-
"COMPLETED"
|
|
229
|
-
]);
|
|
230
|
-
var PermissionKindSchema = import_zod4.z.enum([
|
|
231
|
-
"LOCATION",
|
|
232
|
-
"NOTIFICATION",
|
|
233
|
-
"CAMERA"
|
|
234
|
-
]);
|
|
212
|
+
var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
|
|
213
|
+
var LocationConsentStatusSchema = import_zod4.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
|
|
214
|
+
var OnboardingStatusSchema = import_zod4.z.enum(["REQUIRED", "COMPLETED"]);
|
|
215
|
+
var PermissionKindSchema = import_zod4.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
|
|
235
216
|
var PermissionStatusSchema = import_zod4.z.enum([
|
|
236
217
|
"UNKNOWN",
|
|
237
218
|
"PROMPT",
|
|
@@ -240,12 +221,7 @@ var PermissionStatusSchema = import_zod4.z.enum([
|
|
|
240
221
|
"LIMITED",
|
|
241
222
|
"UNSUPPORTED"
|
|
242
223
|
]);
|
|
243
|
-
var PermissionPlatformSchema = import_zod4.z.enum([
|
|
244
|
-
"WEB",
|
|
245
|
-
"IOS",
|
|
246
|
-
"ANDROID",
|
|
247
|
-
"UNKNOWN"
|
|
248
|
-
]);
|
|
224
|
+
var PermissionPlatformSchema = import_zod4.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
|
|
249
225
|
var DevicePermissionSnapshotSchema = import_zod4.z.object({
|
|
250
226
|
kind: PermissionKindSchema,
|
|
251
227
|
status: PermissionStatusSchema,
|
|
@@ -317,7 +293,9 @@ var UpdateProfileRequestSchema = import_zod4.z.object({
|
|
|
317
293
|
bio: import_zod4.z.string().max(500).nullable()
|
|
318
294
|
});
|
|
319
295
|
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
320
|
-
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
296
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
297
|
+
UpdatePreferenceRequestSchema
|
|
298
|
+
);
|
|
321
299
|
var OnboardingDraftSchema = import_zod4.z.object({
|
|
322
300
|
username: import_zod4.z.string().min(1).max(50).optional(),
|
|
323
301
|
profileImageUrl: import_zod4.z.string().url().nullable().optional(),
|
|
@@ -357,54 +335,172 @@ var KakaoPlaceRawSchema = import_zod5.z.object({
|
|
|
357
335
|
});
|
|
358
336
|
|
|
359
337
|
// src/domain/meal-plan/meal-plan-decision.schema.ts
|
|
338
|
+
var import_zod7 = require("zod");
|
|
339
|
+
|
|
340
|
+
// src/domain/food/food.schema.ts
|
|
360
341
|
var import_zod6 = require("zod");
|
|
361
|
-
var
|
|
362
|
-
var
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
342
|
+
var FoodGranularitySchema = import_zod6.z.enum(["main_dish", "side_dish", "beverage", "sauce"]);
|
|
343
|
+
var CuisineTagSchema = import_zod6.z.enum([
|
|
344
|
+
"korean",
|
|
345
|
+
"western",
|
|
346
|
+
"chinese",
|
|
347
|
+
"japanese",
|
|
348
|
+
"mexican",
|
|
349
|
+
"indian",
|
|
350
|
+
"asian",
|
|
351
|
+
"snack",
|
|
352
|
+
"dessert",
|
|
353
|
+
"beverage",
|
|
354
|
+
"unknown"
|
|
355
|
+
]);
|
|
356
|
+
var FoodResolvedMatchSourceSchema = import_zod6.z.enum(["category", "alias", "lexical", "semantic"]);
|
|
357
|
+
var FoodCodeManifestImageSchema = import_zod6.z.object({
|
|
358
|
+
src: import_zod6.z.string().min(1),
|
|
359
|
+
avifSrcset: import_zod6.z.string().min(1).optional(),
|
|
360
|
+
thumbhashDataURL: import_zod6.z.string().min(1).optional(),
|
|
361
|
+
aspectRatio: import_zod6.z.number().positive().optional()
|
|
362
|
+
});
|
|
363
|
+
var FoodCodeManifestItemSchema = import_zod6.z.object({
|
|
364
|
+
code: FoodCodeSchema,
|
|
365
|
+
label: FoodLabelSchema,
|
|
366
|
+
aliases: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
|
|
367
|
+
parentCategory: import_zod6.z.string().min(1),
|
|
368
|
+
cuisineTags: import_zod6.z.array(CuisineTagSchema).default([]),
|
|
369
|
+
categoryTags: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
|
|
370
|
+
semanticTags: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
|
|
371
|
+
granularity: FoodGranularitySchema,
|
|
372
|
+
searchable: import_zod6.z.boolean(),
|
|
373
|
+
recommendable: import_zod6.z.boolean(),
|
|
374
|
+
previewEnabled: import_zod6.z.boolean(),
|
|
375
|
+
imageUrl: import_zod6.z.string().min(1).nullable().optional(),
|
|
376
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
377
|
+
popularity: import_zod6.z.number().nonnegative().optional(),
|
|
378
|
+
source: import_zod6.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
|
|
379
|
+
});
|
|
380
|
+
var FoodCodeManifestSchema = import_zod6.z.object({
|
|
381
|
+
version: import_zod6.z.string().min(1),
|
|
382
|
+
updatedAt: ISODateTimeStringSchema,
|
|
383
|
+
taxonomyVersion: import_zod6.z.string().min(1),
|
|
384
|
+
etag: import_zod6.z.string().min(1).optional(),
|
|
385
|
+
items: import_zod6.z.array(FoodCodeManifestItemSchema),
|
|
386
|
+
categoryIndex: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.array(FoodCodeSchema)),
|
|
387
|
+
aliasIndex: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.array(FoodCodeSchema)).optional()
|
|
388
|
+
});
|
|
389
|
+
var FoodImageIndexItemSchema = import_zod6.z.object({
|
|
390
|
+
code: FoodCodeSchema,
|
|
391
|
+
label: FoodLabelSchema,
|
|
392
|
+
imageUrl: import_zod6.z.string().min(1).nullable(),
|
|
393
|
+
image: FoodCodeManifestImageSchema.nullable(),
|
|
394
|
+
source: import_zod6.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
|
|
395
|
+
});
|
|
396
|
+
var FoodImageIndexManifestSchema = import_zod6.z.object({
|
|
397
|
+
version: import_zod6.z.string().min(1),
|
|
398
|
+
updatedAt: ISODateTimeStringSchema,
|
|
399
|
+
taxonomyVersion: import_zod6.z.string().min(1),
|
|
400
|
+
items: import_zod6.z.array(FoodImageIndexItemSchema)
|
|
401
|
+
});
|
|
402
|
+
var ResolvedFoodCodeSchema = import_zod6.z.object({
|
|
403
|
+
code: FoodCodeSchema,
|
|
404
|
+
label: FoodLabelSchema,
|
|
405
|
+
matchedBy: FoodResolvedMatchSourceSchema,
|
|
406
|
+
score: import_zod6.z.number(),
|
|
407
|
+
granularity: FoodGranularitySchema,
|
|
408
|
+
imageUrl: import_zod6.z.string().min(1).nullable().optional()
|
|
409
|
+
});
|
|
410
|
+
var BooleanQuerySchema = import_zod6.z.preprocess((value) => {
|
|
411
|
+
if (value === "true") return true;
|
|
412
|
+
if (value === "false") return false;
|
|
413
|
+
return value;
|
|
414
|
+
}, import_zod6.z.boolean());
|
|
415
|
+
var FoodResolveQuerySchema = import_zod6.z.object({
|
|
416
|
+
q: import_zod6.z.string().default(""),
|
|
417
|
+
limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().default(30),
|
|
418
|
+
recommendableOnly: BooleanQuerySchema.optional().default(true)
|
|
419
|
+
});
|
|
420
|
+
var FoodSearchQuerySchema = import_zod6.z.object({
|
|
421
|
+
q: import_zod6.z.string().default(""),
|
|
422
|
+
limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().default(20)
|
|
423
|
+
});
|
|
424
|
+
var FoodResolveResponseSchema = import_zod6.z.object({
|
|
425
|
+
query: import_zod6.z.string(),
|
|
426
|
+
items: import_zod6.z.array(ResolvedFoodCodeSchema)
|
|
427
|
+
});
|
|
428
|
+
var FoodAiClassMappingStatusSchema = import_zod6.z.enum([
|
|
429
|
+
"exact",
|
|
430
|
+
"broad",
|
|
431
|
+
"narrow",
|
|
432
|
+
"merged",
|
|
433
|
+
"ignored",
|
|
434
|
+
"review_required"
|
|
435
|
+
]);
|
|
436
|
+
var AiClassFoodCodeMappingSchema = import_zod6.z.object({
|
|
437
|
+
classId: import_zod6.z.number().int().nonnegative(),
|
|
438
|
+
aiLabel: import_zod6.z.string().min(1),
|
|
439
|
+
aiAliases: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
|
|
440
|
+
representativeCode: FoodCodeSchema.nullable(),
|
|
441
|
+
candidateCodes: import_zod6.z.array(FoodCodeSchema).default([]),
|
|
442
|
+
mappingStatus: FoodAiClassMappingStatusSchema,
|
|
443
|
+
granularity: FoodGranularitySchema,
|
|
444
|
+
searchable: import_zod6.z.boolean(),
|
|
445
|
+
recommendable: import_zod6.z.boolean(),
|
|
446
|
+
reason: import_zod6.z.string().min(1).optional()
|
|
447
|
+
});
|
|
448
|
+
var AiClassToFoodCodeMapManifestSchema = import_zod6.z.object({
|
|
449
|
+
version: import_zod6.z.string().min(1),
|
|
450
|
+
updatedAt: ISODateTimeStringSchema,
|
|
451
|
+
modelTaxonomyVersion: import_zod6.z.string().min(1),
|
|
452
|
+
serviceTaxonomyVersion: import_zod6.z.string().min(1),
|
|
453
|
+
classes: import_zod6.z.array(AiClassFoodCodeMappingSchema)
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
// src/domain/meal-plan/meal-plan-decision.schema.ts
|
|
457
|
+
var MealPlanLatitudeSchema = import_zod7.z.number().brand();
|
|
458
|
+
var MealPlanLongitudeSchema = import_zod7.z.number().brand();
|
|
459
|
+
var MealPlanLocationCandidateIdSchema = import_zod7.z.string().min(1).brand();
|
|
460
|
+
var MealPlanMenuCandidateIdSchema = import_zod7.z.string().min(1).brand();
|
|
461
|
+
var MealPlanDecisionStageIdSchema = import_zod7.z.string().uuid().brand();
|
|
462
|
+
var MealPlanVoteIdSchema = import_zod7.z.string().uuid().brand();
|
|
463
|
+
var MealPlanLocationCandidateSourceSchema = import_zod7.z.enum([
|
|
368
464
|
"manual",
|
|
465
|
+
"map-marker",
|
|
369
466
|
"midpoint",
|
|
467
|
+
"user-location",
|
|
370
468
|
"search",
|
|
371
469
|
"recent-place",
|
|
372
470
|
"fallback"
|
|
373
471
|
]);
|
|
374
|
-
var MealPlanLocationCandidateSchema =
|
|
472
|
+
var MealPlanLocationCandidateSchema = import_zod7.z.object({
|
|
375
473
|
locationId: MealPlanLocationCandidateIdSchema,
|
|
376
|
-
placeName:
|
|
474
|
+
placeName: import_zod7.z.string().min(1),
|
|
377
475
|
lat: MealPlanLatitudeSchema,
|
|
378
476
|
lng: MealPlanLongitudeSchema,
|
|
379
|
-
address:
|
|
477
|
+
address: import_zod7.z.string().default(""),
|
|
380
478
|
source: MealPlanLocationCandidateSourceSchema.default("manual"),
|
|
381
479
|
createdBy: MemberIdSchema.optional(),
|
|
382
480
|
createdAt: ISODateTimeStringSchema.optional()
|
|
383
481
|
});
|
|
384
|
-
var MealPlanMenuCandidateSourceSchema =
|
|
482
|
+
var MealPlanMenuCandidateSourceSchema = import_zod7.z.enum([
|
|
385
483
|
"external-recommendation",
|
|
386
484
|
"prefer-menu",
|
|
387
485
|
"recent-menu",
|
|
388
486
|
"fallback",
|
|
389
487
|
"manual-search"
|
|
390
488
|
]);
|
|
391
|
-
var MealPlanMenuCandidateSchema =
|
|
489
|
+
var MealPlanMenuCandidateSchema = import_zod7.z.object({
|
|
392
490
|
menuCandidateId: MealPlanMenuCandidateIdSchema,
|
|
393
491
|
menu: FoodSchema,
|
|
394
492
|
source: MealPlanMenuCandidateSourceSchema,
|
|
395
|
-
score:
|
|
493
|
+
score: import_zod7.z.number().default(0),
|
|
494
|
+
imageUrl: import_zod7.z.string().min(1).nullable().default(null),
|
|
495
|
+
image: FoodCodeManifestImageSchema.nullable().default(null),
|
|
396
496
|
createdAt: ISODateTimeStringSchema
|
|
397
497
|
});
|
|
398
498
|
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
399
499
|
candidateId: RestaurantIdSchema.optional(),
|
|
400
|
-
source:
|
|
401
|
-
"search",
|
|
402
|
-
"fallback",
|
|
403
|
-
"manual"
|
|
404
|
-
]).optional(),
|
|
500
|
+
source: import_zod7.z.enum(["search", "fallback", "manual"]).optional(),
|
|
405
501
|
createdAt: ISODateTimeStringSchema.optional()
|
|
406
502
|
});
|
|
407
|
-
var MealPlanDecisionStageTypeSchema =
|
|
503
|
+
var MealPlanDecisionStageTypeSchema = import_zod7.z.enum([
|
|
408
504
|
"DATE",
|
|
409
505
|
"TIME",
|
|
410
506
|
"AREA",
|
|
@@ -412,108 +508,90 @@ var MealPlanDecisionStageTypeSchema = import_zod6.z.enum([
|
|
|
412
508
|
"RESTAURANT",
|
|
413
509
|
"FINAL_CONFIRMATION"
|
|
414
510
|
]);
|
|
415
|
-
var MealPlanDecisionStageStatusSchema =
|
|
511
|
+
var MealPlanDecisionStageStatusSchema = import_zod7.z.enum([
|
|
416
512
|
"OPEN",
|
|
417
513
|
"COMPLETED",
|
|
418
514
|
"REOPENED"
|
|
419
515
|
]);
|
|
420
|
-
var MealPlanRestaurantSearchStatusSchema =
|
|
516
|
+
var MealPlanRestaurantSearchStatusSchema = import_zod7.z.enum([
|
|
421
517
|
"IDLE",
|
|
422
518
|
"PENDING",
|
|
423
519
|
"READY",
|
|
424
520
|
"FAILED",
|
|
425
521
|
"STALE"
|
|
426
522
|
]);
|
|
427
|
-
var MealPlanRestaurantSearchStateSchema =
|
|
428
|
-
searchKey:
|
|
523
|
+
var MealPlanRestaurantSearchStateSchema = import_zod7.z.object({
|
|
524
|
+
searchKey: import_zod7.z.string().min(1).nullable(),
|
|
429
525
|
status: MealPlanRestaurantSearchStatusSchema,
|
|
430
526
|
startedAt: ISODateTimeStringSchema.nullable(),
|
|
431
527
|
completedAt: ISODateTimeStringSchema.nullable(),
|
|
432
|
-
version:
|
|
433
|
-
candidateCount:
|
|
434
|
-
errorMessage:
|
|
528
|
+
version: import_zod7.z.number().int().min(0),
|
|
529
|
+
candidateCount: import_zod7.z.number().int().min(0),
|
|
530
|
+
errorMessage: import_zod7.z.string().nullable().default(null)
|
|
435
531
|
});
|
|
436
|
-
var MealPlanDecisionStageMetadataSchema =
|
|
532
|
+
var MealPlanDecisionStageMetadataSchema = import_zod7.z.object({
|
|
437
533
|
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
438
|
-
}).catchall(
|
|
439
|
-
var MealPlanVoteTypeSchema =
|
|
534
|
+
}).catchall(import_zod7.z.unknown());
|
|
535
|
+
var MealPlanVoteTypeSchema = import_zod7.z.enum([
|
|
440
536
|
"PICK",
|
|
441
537
|
"EXCLUDE",
|
|
442
538
|
"PREFER",
|
|
443
539
|
"READY"
|
|
444
540
|
]);
|
|
445
|
-
var MealPlanDecisionCandidateSchema =
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}),
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
value: TimeHHmmStringSchema
|
|
453
|
-
}),
|
|
454
|
-
import_zod6.z.object({
|
|
455
|
-
stageType: import_zod6.z.literal("AREA"),
|
|
456
|
-
value: MealPlanLocationCandidateSchema
|
|
457
|
-
}),
|
|
458
|
-
import_zod6.z.object({
|
|
459
|
-
stageType: import_zod6.z.literal("MENU"),
|
|
460
|
-
value: MealPlanMenuCandidateSchema
|
|
461
|
-
}),
|
|
462
|
-
import_zod6.z.object({
|
|
463
|
-
stageType: import_zod6.z.literal("RESTAURANT"),
|
|
464
|
-
value: MealPlanRestaurantCandidateSchema
|
|
465
|
-
}),
|
|
466
|
-
import_zod6.z.object({
|
|
467
|
-
stageType: import_zod6.z.literal("FINAL_CONFIRMATION"),
|
|
468
|
-
value: import_zod6.z.literal("READY")
|
|
469
|
-
})
|
|
541
|
+
var MealPlanDecisionCandidateSchema = import_zod7.z.discriminatedUnion("stageType", [
|
|
542
|
+
import_zod7.z.object({ stageType: import_zod7.z.literal("DATE"), value: ISODateStringSchema }),
|
|
543
|
+
import_zod7.z.object({ stageType: import_zod7.z.literal("TIME"), value: TimeHHmmStringSchema }),
|
|
544
|
+
import_zod7.z.object({ stageType: import_zod7.z.literal("AREA"), value: MealPlanLocationCandidateSchema }),
|
|
545
|
+
import_zod7.z.object({ stageType: import_zod7.z.literal("MENU"), value: MealPlanMenuCandidateSchema }),
|
|
546
|
+
import_zod7.z.object({ stageType: import_zod7.z.literal("RESTAURANT"), value: MealPlanRestaurantCandidateSchema }),
|
|
547
|
+
import_zod7.z.object({ stageType: import_zod7.z.literal("FINAL_CONFIRMATION"), value: import_zod7.z.literal("READY") })
|
|
470
548
|
]);
|
|
471
|
-
var MealPlanVoteSchema =
|
|
549
|
+
var MealPlanVoteSchema = import_zod7.z.object({
|
|
472
550
|
voteId: MealPlanVoteIdSchema,
|
|
473
551
|
voterId: MemberIdSchema.nullable(),
|
|
474
|
-
guestId:
|
|
552
|
+
guestId: import_zod7.z.string().min(1).nullable(),
|
|
475
553
|
voteType: MealPlanVoteTypeSchema,
|
|
476
554
|
candidate: MealPlanDecisionCandidateSchema,
|
|
477
555
|
createdAt: ISODateTimeStringSchema
|
|
478
556
|
});
|
|
479
|
-
var MealPlanDecisionStageResponseSchema =
|
|
557
|
+
var MealPlanDecisionStageResponseSchema = import_zod7.z.object({
|
|
480
558
|
stageId: MealPlanDecisionStageIdSchema,
|
|
481
559
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
482
560
|
status: MealPlanDecisionStageStatusSchema,
|
|
483
|
-
candidates:
|
|
484
|
-
votes:
|
|
561
|
+
candidates: import_zod7.z.array(MealPlanDecisionCandidateSchema),
|
|
562
|
+
votes: import_zod7.z.array(MealPlanVoteSchema),
|
|
485
563
|
selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
|
|
486
564
|
metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
|
|
487
565
|
openedAt: ISODateTimeStringSchema,
|
|
488
566
|
completedAt: ISODateTimeStringSchema.nullable(),
|
|
489
567
|
reopenedAt: ISODateTimeStringSchema.nullable()
|
|
490
568
|
});
|
|
491
|
-
var CreateMealPlanVoteRequestSchema =
|
|
569
|
+
var CreateMealPlanVoteRequestSchema = import_zod7.z.object({
|
|
492
570
|
voteType: MealPlanVoteTypeSchema,
|
|
493
571
|
candidate: MealPlanDecisionCandidateSchema
|
|
494
572
|
});
|
|
495
|
-
var CompleteMealPlanDecisionStageRequestSchema =
|
|
573
|
+
var CompleteMealPlanDecisionStageRequestSchema = import_zod7.z.object({
|
|
496
574
|
selectedCandidate: MealPlanDecisionCandidateSchema
|
|
497
575
|
});
|
|
498
|
-
var MealPlanChangeRequestStatusSchema =
|
|
576
|
+
var MealPlanChangeRequestStatusSchema = import_zod7.z.enum([
|
|
499
577
|
"PENDING",
|
|
500
578
|
"ACCEPTED",
|
|
501
579
|
"REJECTED",
|
|
502
580
|
"CANCELLED"
|
|
503
581
|
]);
|
|
504
|
-
var CreateMealPlanChangeRequestSchema =
|
|
582
|
+
var CreateMealPlanChangeRequestSchema = import_zod7.z.object({
|
|
505
583
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
506
|
-
reason:
|
|
584
|
+
reason: import_zod7.z.string().min(1).max(500),
|
|
507
585
|
proposedCandidate: MealPlanDecisionCandidateSchema.optional()
|
|
508
586
|
});
|
|
509
|
-
var MealPlanChangeRequestSummarySchema =
|
|
587
|
+
var MealPlanChangeRequestSummarySchema = import_zod7.z.object({
|
|
510
588
|
changeRequestId: MealPlanChangeRequestIdSchema,
|
|
511
589
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
512
590
|
status: MealPlanChangeRequestStatusSchema,
|
|
513
|
-
reason:
|
|
591
|
+
reason: import_zod7.z.string(),
|
|
514
592
|
requestedAt: ISODateTimeStringSchema
|
|
515
593
|
});
|
|
516
|
-
var MealPlanDecisionTaskKeySchema =
|
|
594
|
+
var MealPlanDecisionTaskKeySchema = import_zod7.z.enum([
|
|
517
595
|
"SCHEDULE_DATE",
|
|
518
596
|
"SCHEDULE_TIME",
|
|
519
597
|
"LOCATION_CANDIDATE",
|
|
@@ -525,14 +603,13 @@ var MealPlanDecisionTaskKeySchema = import_zod6.z.enum([
|
|
|
525
603
|
"RESTAURANT_PICK",
|
|
526
604
|
"FINAL_CONFIRMATION"
|
|
527
605
|
]);
|
|
528
|
-
var MealPlanDecisionTaskStatusSchema =
|
|
606
|
+
var MealPlanDecisionTaskStatusSchema = import_zod7.z.enum([
|
|
529
607
|
"LOCKED",
|
|
530
608
|
"OPEN",
|
|
531
|
-
"READY",
|
|
532
609
|
"RESOLVED",
|
|
533
610
|
"STALE"
|
|
534
611
|
]);
|
|
535
|
-
var MealPlanDecisionFinalFieldSchema =
|
|
612
|
+
var MealPlanDecisionFinalFieldSchema = import_zod7.z.enum([
|
|
536
613
|
"date",
|
|
537
614
|
"time",
|
|
538
615
|
"meetingAt",
|
|
@@ -540,82 +617,72 @@ var MealPlanDecisionFinalFieldSchema = import_zod6.z.enum([
|
|
|
540
617
|
"menu",
|
|
541
618
|
"restaurant"
|
|
542
619
|
]);
|
|
543
|
-
var MealPlanDecisionSnapshotStatusSchema =
|
|
620
|
+
var MealPlanDecisionSnapshotStatusSchema = import_zod7.z.enum([
|
|
544
621
|
"CANDIDATE",
|
|
545
622
|
"PROVISIONAL",
|
|
546
623
|
"FINAL",
|
|
547
624
|
"STALE"
|
|
548
625
|
]);
|
|
549
|
-
var MealPlanDecisionReasonSchema =
|
|
626
|
+
var MealPlanDecisionReasonSchema = import_zod7.z.enum([
|
|
550
627
|
"COMMON_SCHEDULE",
|
|
551
628
|
"TOP_VOTED_LOCATION",
|
|
552
629
|
"TOP_PICKED_MENU",
|
|
553
630
|
"TOP_PICKED_RESTAURANT",
|
|
554
631
|
"OWNER_CONFIRMED",
|
|
555
|
-
"TASK_ALL_READY",
|
|
556
632
|
"MANUAL_SELECTION"
|
|
557
633
|
]);
|
|
558
|
-
var MealPlanDecisionActorTypeSchema =
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
]);
|
|
563
|
-
var MealPlanDecisionSnapshotSchema = import_zod6.z.object({
|
|
564
|
-
snapshotId: import_zod6.z.string().uuid(),
|
|
565
|
-
mealPlanId: import_zod6.z.string().uuid(),
|
|
634
|
+
var MealPlanDecisionActorTypeSchema = import_zod7.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
|
|
635
|
+
var MealPlanDecisionSnapshotSchema = import_zod7.z.object({
|
|
636
|
+
snapshotId: import_zod7.z.string().uuid(),
|
|
637
|
+
mealPlanId: import_zod7.z.string().uuid(),
|
|
566
638
|
field: MealPlanDecisionFinalFieldSchema,
|
|
567
|
-
value:
|
|
639
|
+
value: import_zod7.z.unknown(),
|
|
568
640
|
status: MealPlanDecisionSnapshotStatusSchema,
|
|
569
641
|
reason: MealPlanDecisionReasonSchema,
|
|
570
|
-
score:
|
|
571
|
-
sourceEvent:
|
|
642
|
+
score: import_zod7.z.number().nullable().default(null),
|
|
643
|
+
sourceEvent: import_zod7.z.string().min(1),
|
|
572
644
|
sourceActorType: MealPlanDecisionActorTypeSchema,
|
|
573
645
|
sourceMemberId: MemberIdSchema.nullable(),
|
|
574
|
-
sourceGuestId:
|
|
575
|
-
sourceParticipantId:
|
|
576
|
-
sourceVersion:
|
|
577
|
-
dependencyHash:
|
|
578
|
-
dependencyFields:
|
|
646
|
+
sourceGuestId: import_zod7.z.string().min(1).nullable(),
|
|
647
|
+
sourceParticipantId: import_zod7.z.string().uuid().nullable(),
|
|
648
|
+
sourceVersion: import_zod7.z.number().int().min(0),
|
|
649
|
+
dependencyHash: import_zod7.z.string().min(1),
|
|
650
|
+
dependencyFields: import_zod7.z.array(MealPlanDecisionFinalFieldSchema),
|
|
579
651
|
createdAt: ISODateTimeStringSchema,
|
|
580
652
|
staleAt: ISODateTimeStringSchema.nullable()
|
|
581
653
|
});
|
|
582
|
-
var MealPlanDecisionTaskProgressSchema =
|
|
654
|
+
var MealPlanDecisionTaskProgressSchema = import_zod7.z.object({
|
|
583
655
|
taskKey: MealPlanDecisionTaskKeySchema,
|
|
584
656
|
status: MealPlanDecisionTaskStatusSchema,
|
|
585
|
-
|
|
586
|
-
participantCount: import_zod6.z.number().int().min(0),
|
|
587
|
-
blockers: import_zod6.z.array(import_zod6.z.string()).default([]),
|
|
657
|
+
blockers: import_zod7.z.array(import_zod7.z.string()).default([]),
|
|
588
658
|
updatedAt: ISODateTimeStringSchema
|
|
589
659
|
});
|
|
590
|
-
var MealPlanDecisionProgressSchema =
|
|
591
|
-
mealPlanId:
|
|
592
|
-
status:
|
|
593
|
-
tasks:
|
|
594
|
-
final:
|
|
595
|
-
provisional:
|
|
596
|
-
snapshots:
|
|
597
|
-
version:
|
|
660
|
+
var MealPlanDecisionProgressSchema = import_zod7.z.object({
|
|
661
|
+
mealPlanId: import_zod7.z.string().uuid(),
|
|
662
|
+
status: import_zod7.z.string().min(1),
|
|
663
|
+
tasks: import_zod7.z.array(MealPlanDecisionTaskProgressSchema),
|
|
664
|
+
final: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()),
|
|
665
|
+
provisional: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()),
|
|
666
|
+
snapshots: import_zod7.z.array(MealPlanDecisionSnapshotSchema),
|
|
667
|
+
version: import_zod7.z.number().int().min(0),
|
|
598
668
|
updatedAt: ISODateTimeStringSchema
|
|
599
669
|
});
|
|
600
|
-
var
|
|
601
|
-
|
|
670
|
+
var ReopenMealPlanDecisionTaskRequestSchema = import_zod7.z.object({
|
|
671
|
+
reason: import_zod7.z.string().max(500).optional()
|
|
602
672
|
});
|
|
603
|
-
var
|
|
604
|
-
|
|
605
|
-
});
|
|
606
|
-
var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod6.z.object({
|
|
607
|
-
snapshotId: import_zod6.z.string().uuid()
|
|
673
|
+
var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod7.z.object({
|
|
674
|
+
snapshotId: import_zod7.z.string().uuid()
|
|
608
675
|
});
|
|
609
676
|
|
|
610
677
|
// src/domain/meal-plan/meal-plan-participant.schema.ts
|
|
611
|
-
var
|
|
612
|
-
var MealPlanParticipantIdSchema =
|
|
613
|
-
var MealPlanParticipantRoleSchema =
|
|
678
|
+
var import_zod8 = require("zod");
|
|
679
|
+
var MealPlanParticipantIdSchema = import_zod8.z.string().uuid().brand();
|
|
680
|
+
var MealPlanParticipantRoleSchema = import_zod8.z.enum([
|
|
614
681
|
"OWNER",
|
|
615
682
|
"FRIEND",
|
|
616
683
|
"GUEST"
|
|
617
684
|
]);
|
|
618
|
-
var MealPlanParticipantStatusSchema =
|
|
685
|
+
var MealPlanParticipantStatusSchema = import_zod8.z.enum([
|
|
619
686
|
"INVITED",
|
|
620
687
|
"REQUESTED",
|
|
621
688
|
"JOINED",
|
|
@@ -624,17 +691,17 @@ var MealPlanParticipantStatusSchema = import_zod7.z.enum([
|
|
|
624
691
|
"LEFT",
|
|
625
692
|
"REMOVED"
|
|
626
693
|
]);
|
|
627
|
-
var MealPlanJoinSourceSchema =
|
|
694
|
+
var MealPlanJoinSourceSchema = import_zod8.z.enum([
|
|
628
695
|
"OWNER",
|
|
629
696
|
"FRIEND_INVITE",
|
|
630
697
|
"LINK_GUEST",
|
|
631
698
|
"NEARBY_FRIENDS"
|
|
632
699
|
]);
|
|
633
|
-
var MealPlanGuestParticipantSchema =
|
|
634
|
-
guestId:
|
|
635
|
-
nickname:
|
|
700
|
+
var MealPlanGuestParticipantSchema = import_zod8.z.object({
|
|
701
|
+
guestId: import_zod8.z.string().min(1),
|
|
702
|
+
nickname: import_zod8.z.string().min(1).max(50)
|
|
636
703
|
});
|
|
637
|
-
var MealPlanParticipantResponseSchema =
|
|
704
|
+
var MealPlanParticipantResponseSchema = import_zod8.z.object({
|
|
638
705
|
participantId: MealPlanParticipantIdSchema,
|
|
639
706
|
mealPlanId: MealPlanIdSchema,
|
|
640
707
|
member: MemberCoreSchema.nullable(),
|
|
@@ -645,66 +712,66 @@ var MealPlanParticipantResponseSchema = import_zod7.z.object({
|
|
|
645
712
|
joinedAt: ISODateTimeStringSchema.nullable(),
|
|
646
713
|
readyAt: ISODateTimeStringSchema.nullable()
|
|
647
714
|
});
|
|
648
|
-
var CreateMealPlanParticipantRequestSchema =
|
|
715
|
+
var CreateMealPlanParticipantRequestSchema = import_zod8.z.object({
|
|
649
716
|
memberId: MemberIdSchema.optional(),
|
|
650
|
-
guestNickname:
|
|
717
|
+
guestNickname: import_zod8.z.string().min(1).max(50).optional(),
|
|
651
718
|
source: MealPlanJoinSourceSchema
|
|
652
719
|
});
|
|
653
720
|
|
|
654
721
|
// src/domain/meal-plan/meal-plan-invite.schema.ts
|
|
655
|
-
var
|
|
656
|
-
var MealPlanInviteStatusSchema =
|
|
722
|
+
var import_zod9 = require("zod");
|
|
723
|
+
var MealPlanInviteStatusSchema = import_zod9.z.enum([
|
|
657
724
|
"PENDING",
|
|
658
725
|
"ACCEPTED",
|
|
659
726
|
"DECLINED",
|
|
660
727
|
"CANCELLED",
|
|
661
728
|
"EXPIRED"
|
|
662
729
|
]);
|
|
663
|
-
var CreateMealPlanInviteRequestSchema =
|
|
730
|
+
var CreateMealPlanInviteRequestSchema = import_zod9.z.object({
|
|
664
731
|
inviteeId: MemberIdSchema,
|
|
665
|
-
message:
|
|
732
|
+
message: import_zod9.z.string().max(500).default("")
|
|
666
733
|
});
|
|
667
|
-
var MealPlanInviteSummarySchema =
|
|
734
|
+
var MealPlanInviteSummarySchema = import_zod9.z.object({
|
|
668
735
|
inviteId: MealPlanInviteIdSchema,
|
|
669
736
|
mealPlanId: MealPlanIdSchema,
|
|
670
737
|
inviter: MemberCoreSchema,
|
|
671
738
|
invitee: MemberCoreSchema,
|
|
672
739
|
status: MealPlanInviteStatusSchema,
|
|
673
|
-
message:
|
|
740
|
+
message: import_zod9.z.string().max(500),
|
|
674
741
|
createdAt: ISODateTimeStringSchema,
|
|
675
742
|
respondedAt: ISODateTimeStringSchema.nullable()
|
|
676
743
|
});
|
|
677
|
-
var MealPlanInviteListResponseSchema =
|
|
678
|
-
var SendMealPlanInviteResponseSchema =
|
|
744
|
+
var MealPlanInviteListResponseSchema = import_zod9.z.array(MealPlanInviteSummarySchema);
|
|
745
|
+
var SendMealPlanInviteResponseSchema = import_zod9.z.object({
|
|
679
746
|
inviteId: MealPlanInviteIdSchema
|
|
680
747
|
});
|
|
681
748
|
|
|
682
749
|
// src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
|
|
683
|
-
var
|
|
684
|
-
var MealPlanNearbyFriendExposureIdSchema =
|
|
685
|
-
var MealPlanNearbyFriendExposureStatusSchema =
|
|
750
|
+
var import_zod10 = require("zod");
|
|
751
|
+
var MealPlanNearbyFriendExposureIdSchema = import_zod10.z.string().uuid().brand();
|
|
752
|
+
var MealPlanNearbyFriendExposureStatusSchema = import_zod10.z.enum([
|
|
686
753
|
"OPEN",
|
|
687
754
|
"CLOSED",
|
|
688
755
|
"EXPIRED"
|
|
689
756
|
]);
|
|
690
|
-
var MealPlanNearbyFriendExposureNotificationStatusSchema =
|
|
757
|
+
var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod10.z.enum([
|
|
691
758
|
"PENDING",
|
|
692
759
|
"SENT",
|
|
693
760
|
"PARTIAL",
|
|
694
761
|
"FAILED",
|
|
695
762
|
"SKIPPED"
|
|
696
763
|
]);
|
|
697
|
-
var ExposeMealPlanToNearbyFriendsRequestSchema =
|
|
698
|
-
radiusMeters:
|
|
764
|
+
var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod10.z.object({
|
|
765
|
+
radiusMeters: import_zod10.z.number().int().min(100).max(5e3).default(1e3),
|
|
699
766
|
expiresAt: ISODateTimeStringSchema.optional()
|
|
700
767
|
});
|
|
701
|
-
var NearbyFriendExposureEligibilitySchema =
|
|
702
|
-
canExpose:
|
|
768
|
+
var NearbyFriendExposureEligibilitySchema = import_zod10.z.object({
|
|
769
|
+
canExpose: import_zod10.z.boolean(),
|
|
703
770
|
locationConsentStatus: LocationConsentStatusSchema,
|
|
704
|
-
nearbyMealPlanExposureAllowed:
|
|
705
|
-
mealSuggestionAllowed:
|
|
706
|
-
hasLastKnownLocation:
|
|
707
|
-
missingRequirements:
|
|
771
|
+
nearbyMealPlanExposureAllowed: import_zod10.z.boolean(),
|
|
772
|
+
mealSuggestionAllowed: import_zod10.z.boolean(),
|
|
773
|
+
hasLastKnownLocation: import_zod10.z.boolean(),
|
|
774
|
+
missingRequirements: import_zod10.z.array(import_zod10.z.enum([
|
|
708
775
|
"LOCATION_PERMISSION",
|
|
709
776
|
"SERVICE_LOCATION_CONSENT",
|
|
710
777
|
"NEARBY_EXPOSURE_TOGGLE",
|
|
@@ -712,7 +779,7 @@ var NearbyFriendExposureEligibilitySchema = import_zod9.z.object({
|
|
|
712
779
|
"LAST_KNOWN_LOCATION"
|
|
713
780
|
]))
|
|
714
781
|
});
|
|
715
|
-
var MealPlanNearbyFriendRejectionReasonSchema =
|
|
782
|
+
var MealPlanNearbyFriendRejectionReasonSchema = import_zod10.z.enum([
|
|
716
783
|
"NOT_FRIEND",
|
|
717
784
|
"BLOCKED",
|
|
718
785
|
"LOCATION_CONSENT_REQUIRED",
|
|
@@ -721,79 +788,79 @@ var MealPlanNearbyFriendRejectionReasonSchema = import_zod9.z.enum([
|
|
|
721
788
|
"MEAL_SUGGESTION_DISABLED",
|
|
722
789
|
"NOT_HUNGRY"
|
|
723
790
|
]);
|
|
724
|
-
var MealPlanNearbyFriendRejectionSummarySchema =
|
|
791
|
+
var MealPlanNearbyFriendRejectionSummarySchema = import_zod10.z.object({
|
|
725
792
|
reason: MealPlanNearbyFriendRejectionReasonSchema,
|
|
726
|
-
count:
|
|
793
|
+
count: import_zod10.z.number().int().min(0)
|
|
727
794
|
});
|
|
728
|
-
var ExposeMealPlanToNearbyFriendsResponseSchema =
|
|
795
|
+
var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod10.z.object({
|
|
729
796
|
mealPlanId: MealPlanIdSchema,
|
|
730
797
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
|
|
731
|
-
exposedFriendCount:
|
|
732
|
-
rejectedFriendCount:
|
|
798
|
+
exposedFriendCount: import_zod10.z.number().int().min(0),
|
|
799
|
+
rejectedFriendCount: import_zod10.z.number().int().min(0),
|
|
733
800
|
notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
734
|
-
rejectionSummary:
|
|
801
|
+
rejectionSummary: import_zod10.z.array(MealPlanNearbyFriendRejectionSummarySchema)
|
|
735
802
|
});
|
|
736
|
-
var MealPlanNearbyFriendExposureSummarySchema =
|
|
803
|
+
var MealPlanNearbyFriendExposureSummarySchema = import_zod10.z.object({
|
|
737
804
|
exposureId: MealPlanNearbyFriendExposureIdSchema,
|
|
738
805
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
|
|
739
806
|
mealPlanId: MealPlanIdSchema,
|
|
740
807
|
status: MealPlanNearbyFriendExposureStatusSchema,
|
|
741
|
-
radiusMeters:
|
|
742
|
-
exposedFriendCount:
|
|
808
|
+
radiusMeters: import_zod10.z.number().int().min(100),
|
|
809
|
+
exposedFriendCount: import_zod10.z.number().int().min(0),
|
|
743
810
|
openedAt: ISODateTimeStringSchema,
|
|
744
811
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
745
812
|
closedAt: ISODateTimeStringSchema.nullable()
|
|
746
813
|
});
|
|
747
|
-
var MealPlanNearbyFriendExposureBatchSummarySchema =
|
|
814
|
+
var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod10.z.object({
|
|
748
815
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
|
|
749
816
|
mealPlanId: MealPlanIdSchema,
|
|
750
817
|
status: MealPlanNearbyFriendExposureStatusSchema,
|
|
751
|
-
radiusMeters:
|
|
752
|
-
exposedFriendCount:
|
|
753
|
-
rejectedFriendCount:
|
|
754
|
-
rejectionSummary:
|
|
818
|
+
radiusMeters: import_zod10.z.number().int().min(100),
|
|
819
|
+
exposedFriendCount: import_zod10.z.number().int().min(0),
|
|
820
|
+
rejectedFriendCount: import_zod10.z.number().int().min(0),
|
|
821
|
+
rejectionSummary: import_zod10.z.array(MealPlanNearbyFriendRejectionSummarySchema),
|
|
755
822
|
notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
756
823
|
notificationSentAt: ISODateTimeStringSchema.nullable(),
|
|
757
824
|
openedAt: ISODateTimeStringSchema,
|
|
758
825
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
759
826
|
closedAt: ISODateTimeStringSchema.nullable()
|
|
760
827
|
});
|
|
761
|
-
var MealPlanJoinRequestStatusSchema =
|
|
828
|
+
var MealPlanJoinRequestStatusSchema = import_zod10.z.enum([
|
|
762
829
|
"PENDING",
|
|
763
830
|
"ACCEPTED",
|
|
764
831
|
"REJECTED",
|
|
765
832
|
"CANCELLED"
|
|
766
833
|
]);
|
|
767
|
-
var CreateMealPlanJoinRequestSchema =
|
|
768
|
-
message:
|
|
834
|
+
var CreateMealPlanJoinRequestSchema = import_zod10.z.object({
|
|
835
|
+
message: import_zod10.z.string().max(500).default("")
|
|
769
836
|
});
|
|
770
|
-
var MealPlanJoinRequestSummarySchema =
|
|
837
|
+
var MealPlanJoinRequestSummarySchema = import_zod10.z.object({
|
|
771
838
|
joinRequestId: MealPlanJoinRequestIdSchema,
|
|
772
839
|
mealPlanId: MealPlanIdSchema,
|
|
773
840
|
requester: MemberCoreSchema,
|
|
774
841
|
status: MealPlanJoinRequestStatusSchema,
|
|
775
|
-
message:
|
|
842
|
+
message: import_zod10.z.string().max(500),
|
|
776
843
|
requestedAt: ISODateTimeStringSchema,
|
|
777
844
|
respondedAt: ISODateTimeStringSchema.nullable()
|
|
778
845
|
});
|
|
779
|
-
var NearbyFriendMealPlanSummarySchema =
|
|
846
|
+
var NearbyFriendMealPlanSummarySchema = import_zod10.z.object({
|
|
780
847
|
mealPlanId: MealPlanIdSchema,
|
|
781
848
|
owner: MemberCoreSchema,
|
|
782
|
-
title:
|
|
783
|
-
participantCount:
|
|
784
|
-
distanceMeters:
|
|
849
|
+
title: import_zod10.z.string(),
|
|
850
|
+
participantCount: import_zod10.z.number().int().min(1),
|
|
851
|
+
distanceMeters: import_zod10.z.number().int().min(0),
|
|
785
852
|
exposedAt: ISODateTimeStringSchema,
|
|
786
853
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
787
854
|
joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
|
|
788
855
|
});
|
|
789
856
|
|
|
790
857
|
// src/domain/meal-plan/meal-plan-chat.schema.ts
|
|
791
|
-
var
|
|
792
|
-
var MealPlanChatMessageKindSchema =
|
|
858
|
+
var import_zod11 = require("zod");
|
|
859
|
+
var MealPlanChatMessageKindSchema = import_zod11.z.enum([
|
|
793
860
|
"USER",
|
|
794
861
|
"SYSTEM"
|
|
795
862
|
]);
|
|
796
|
-
var MealPlanSystemMessageKindSchema =
|
|
863
|
+
var MealPlanSystemMessageKindSchema = import_zod11.z.enum([
|
|
797
864
|
"PARTICIPANT_JOINED",
|
|
798
865
|
"PARTICIPANT_READY",
|
|
799
866
|
"PARTICIPANT_REMOVED",
|
|
@@ -802,39 +869,41 @@ var MealPlanSystemMessageKindSchema = import_zod10.z.enum([
|
|
|
802
869
|
"CONFIRMED",
|
|
803
870
|
"RECORD_NEEDED"
|
|
804
871
|
]);
|
|
805
|
-
var MealPlanChatSystemPayloadSchema =
|
|
872
|
+
var MealPlanChatSystemPayloadSchema = import_zod11.z.object({
|
|
806
873
|
kind: MealPlanSystemMessageKindSchema
|
|
807
|
-
}).catchall(
|
|
808
|
-
var MealPlanChatMessageListResponseSchema =
|
|
809
|
-
|
|
874
|
+
}).catchall(import_zod11.z.unknown());
|
|
875
|
+
var MealPlanChatMessageListResponseSchema = import_zod11.z.array(
|
|
876
|
+
import_zod11.z.lazy(() => MealPlanChatMessageResponseSchema)
|
|
877
|
+
);
|
|
878
|
+
var MealPlanChatRoomSummarySchema = import_zod11.z.object({
|
|
810
879
|
chatRoomId: MealPlanChatRoomIdSchema,
|
|
811
880
|
mealPlanId: MealPlanIdSchema,
|
|
812
|
-
messageCount:
|
|
881
|
+
messageCount: import_zod11.z.number().int().min(0),
|
|
813
882
|
lastMessageAt: ISODateTimeStringSchema.nullable(),
|
|
814
883
|
createdAt: ISODateTimeStringSchema
|
|
815
884
|
});
|
|
816
|
-
var SendMealPlanChatMessageRequestSchema =
|
|
817
|
-
message:
|
|
885
|
+
var SendMealPlanChatMessageRequestSchema = import_zod11.z.object({
|
|
886
|
+
message: import_zod11.z.string().min(1).max(500)
|
|
818
887
|
});
|
|
819
|
-
var MealPlanChatMessageResponseSchema =
|
|
888
|
+
var MealPlanChatMessageResponseSchema = import_zod11.z.object({
|
|
820
889
|
messageId: MealPlanChatMessageIdSchema,
|
|
821
890
|
chatRoomId: MealPlanChatRoomIdSchema,
|
|
822
891
|
sender: MemberCoreSchema.nullable(),
|
|
823
|
-
guestId:
|
|
824
|
-
guestNickname:
|
|
892
|
+
guestId: import_zod11.z.string().min(1).nullable(),
|
|
893
|
+
guestNickname: import_zod11.z.string().min(1).nullable(),
|
|
825
894
|
kind: MealPlanChatMessageKindSchema,
|
|
826
|
-
message:
|
|
895
|
+
message: import_zod11.z.string().min(1).max(1e3),
|
|
827
896
|
systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
|
|
828
897
|
createdAt: ISODateTimeStringSchema
|
|
829
898
|
});
|
|
830
|
-
var MealPlanSystemMessageSchema =
|
|
899
|
+
var MealPlanSystemMessageSchema = import_zod11.z.object({
|
|
831
900
|
kind: MealPlanSystemMessageKindSchema,
|
|
832
|
-
message:
|
|
901
|
+
message: import_zod11.z.string().min(1),
|
|
833
902
|
createdAt: ISODateTimeStringSchema
|
|
834
903
|
});
|
|
835
904
|
|
|
836
905
|
// src/domain/meal-plan/meal-plan.schema.ts
|
|
837
|
-
var MealPlanStatusSchema =
|
|
906
|
+
var MealPlanStatusSchema = import_zod12.z.enum([
|
|
838
907
|
"DRAFT",
|
|
839
908
|
"RECOMMENDING",
|
|
840
909
|
"GATHERING",
|
|
@@ -846,78 +915,74 @@ var MealPlanStatusSchema = import_zod11.z.enum([
|
|
|
846
915
|
"RECORDED",
|
|
847
916
|
"CANCELLED"
|
|
848
917
|
]);
|
|
849
|
-
var MealPlanChannelSchema =
|
|
918
|
+
var MealPlanChannelSchema = import_zod12.z.enum([
|
|
850
919
|
"OWNER_ONLY",
|
|
851
920
|
"FRIEND_INVITE",
|
|
852
921
|
"LINK_GUEST",
|
|
853
922
|
"NEARBY_FRIENDS"
|
|
854
923
|
]);
|
|
855
|
-
var MealPlanRecommendationContextSchema =
|
|
924
|
+
var MealPlanRecommendationContextSchema = import_zod12.z.object({
|
|
856
925
|
mealDate: ISODateStringSchema.optional(),
|
|
857
926
|
mealTime: TimeHHmmStringSchema.optional(),
|
|
858
927
|
area: MealPlanLocationCandidateSchema.optional(),
|
|
859
|
-
preferredMenuCategories:
|
|
860
|
-
excludedMenuCategories:
|
|
861
|
-
candidateMenuCategories:
|
|
862
|
-
budgetMin:
|
|
863
|
-
budgetMax:
|
|
864
|
-
memo:
|
|
865
|
-
});
|
|
866
|
-
var CreateMealPlanRequestSchema =
|
|
867
|
-
title:
|
|
868
|
-
channels:
|
|
869
|
-
"OWNER_ONLY"
|
|
870
|
-
]),
|
|
928
|
+
preferredMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
|
|
929
|
+
excludedMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
|
|
930
|
+
candidateMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
|
|
931
|
+
budgetMin: import_zod12.z.number().int().min(0).optional(),
|
|
932
|
+
budgetMax: import_zod12.z.number().int().min(0).optional(),
|
|
933
|
+
memo: import_zod12.z.string().max(500).optional()
|
|
934
|
+
});
|
|
935
|
+
var CreateMealPlanRequestSchema = import_zod12.z.object({
|
|
936
|
+
title: import_zod12.z.string().min(1).max(100).optional(),
|
|
937
|
+
channels: import_zod12.z.array(MealPlanChannelSchema).default(["OWNER_ONLY"]),
|
|
871
938
|
recommendationContext: MealPlanRecommendationContextSchema.optional()
|
|
872
939
|
});
|
|
873
|
-
var CreateMealPlanResponseSchema =
|
|
940
|
+
var CreateMealPlanResponseSchema = import_zod12.z.object({
|
|
874
941
|
mealPlanId: MealPlanIdSchema
|
|
875
942
|
});
|
|
876
943
|
var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
|
|
877
|
-
var MealPlanViewerRoleSchema =
|
|
944
|
+
var MealPlanViewerRoleSchema = import_zod12.z.enum([
|
|
878
945
|
"OWNER",
|
|
879
946
|
"FRIEND",
|
|
880
947
|
"GUEST",
|
|
881
948
|
"NONE"
|
|
882
949
|
]);
|
|
883
|
-
var MealPlanViewerPermissionsSchema =
|
|
884
|
-
canView:
|
|
885
|
-
canInviteFriends:
|
|
886
|
-
canManageParticipants:
|
|
887
|
-
canCreateShareLink:
|
|
888
|
-
canExposeNearbyFriends:
|
|
889
|
-
canVote:
|
|
890
|
-
canChat:
|
|
891
|
-
canReadyMealPlan:
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
var MealPlanResponseSchema = import_zod11.z.object({
|
|
950
|
+
var MealPlanViewerPermissionsSchema = import_zod12.z.object({
|
|
951
|
+
canView: import_zod12.z.boolean(),
|
|
952
|
+
canInviteFriends: import_zod12.z.boolean(),
|
|
953
|
+
canManageParticipants: import_zod12.z.boolean(),
|
|
954
|
+
canCreateShareLink: import_zod12.z.boolean(),
|
|
955
|
+
canExposeNearbyFriends: import_zod12.z.boolean(),
|
|
956
|
+
canVote: import_zod12.z.boolean(),
|
|
957
|
+
canChat: import_zod12.z.boolean(),
|
|
958
|
+
canReadyMealPlan: import_zod12.z.boolean(),
|
|
959
|
+
canRequestChange: import_zod12.z.boolean(),
|
|
960
|
+
canReopenDecisionTask: import_zod12.z.boolean(),
|
|
961
|
+
canConfirmDecisionSnapshot: import_zod12.z.boolean(),
|
|
962
|
+
canConfirmMealPlan: import_zod12.z.boolean(),
|
|
963
|
+
canCompleteMealPlan: import_zod12.z.boolean(),
|
|
964
|
+
canRecordMealPlan: import_zod12.z.boolean(),
|
|
965
|
+
canCancelMealPlan: import_zod12.z.boolean()
|
|
966
|
+
});
|
|
967
|
+
var MealPlanResponseSchema = import_zod12.z.object({
|
|
902
968
|
mealPlanId: MealPlanIdSchema,
|
|
903
969
|
owner: MemberCoreSchema,
|
|
904
|
-
title:
|
|
970
|
+
title: import_zod12.z.string().nullable(),
|
|
905
971
|
status: MealPlanStatusSchema,
|
|
906
|
-
channels:
|
|
907
|
-
participants:
|
|
908
|
-
pendingInvites:
|
|
909
|
-
pendingJoinRequests:
|
|
910
|
-
decisionStages:
|
|
972
|
+
channels: import_zod12.z.array(MealPlanChannelSchema),
|
|
973
|
+
participants: import_zod12.z.array(MealPlanParticipantResponseSchema),
|
|
974
|
+
pendingInvites: import_zod12.z.array(MealPlanInviteSummarySchema),
|
|
975
|
+
pendingJoinRequests: import_zod12.z.array(MealPlanJoinRequestSummarySchema),
|
|
976
|
+
decisionStages: import_zod12.z.array(MealPlanDecisionStageResponseSchema),
|
|
911
977
|
decisionProgress: MealPlanDecisionProgressSchema.nullable(),
|
|
912
978
|
viewerRole: MealPlanViewerRoleSchema,
|
|
913
979
|
viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
|
|
914
980
|
viewerPermissions: MealPlanViewerPermissionsSchema,
|
|
915
|
-
viewerTaskReadyMap: import_zod11.z.record(MealPlanDecisionTaskKeySchema, import_zod11.z.boolean()),
|
|
916
981
|
selectedDate: ISODateStringSchema.nullable(),
|
|
917
982
|
selectedTime: TimeHHmmStringSchema.nullable(),
|
|
918
983
|
selectedArea: MealPlanLocationCandidateSchema.nullable(),
|
|
919
984
|
selectedRestaurant: RestaurantSchema.nullable(),
|
|
920
|
-
selectedMenuCategory:
|
|
985
|
+
selectedMenuCategory: import_zod12.z.string().nullable(),
|
|
921
986
|
chatRoom: MealPlanChatRoomSummarySchema.nullable(),
|
|
922
987
|
confirmedAt: ISODateTimeStringSchema.nullable(),
|
|
923
988
|
lockedAt: ISODateTimeStringSchema.nullable(),
|
|
@@ -926,36 +991,31 @@ var MealPlanResponseSchema = import_zod11.z.object({
|
|
|
926
991
|
createdAt: ISODateTimeStringSchema,
|
|
927
992
|
updatedAt: ISODateTimeStringSchema
|
|
928
993
|
});
|
|
929
|
-
var MyMealPlanGroupSchema =
|
|
930
|
-
|
|
931
|
-
"UPCOMING",
|
|
932
|
-
"RECORD_NEEDED",
|
|
933
|
-
"PAST"
|
|
934
|
-
]);
|
|
935
|
-
var MyMealPlanListItemSchema = import_zod11.z.object({
|
|
994
|
+
var MyMealPlanGroupSchema = import_zod12.z.enum(["DECIDING", "UPCOMING", "RECORD_NEEDED", "PAST"]);
|
|
995
|
+
var MyMealPlanListItemSchema = import_zod12.z.object({
|
|
936
996
|
mealPlanId: MealPlanIdSchema,
|
|
937
997
|
group: MyMealPlanGroupSchema,
|
|
938
|
-
title:
|
|
998
|
+
title: import_zod12.z.string(),
|
|
939
999
|
status: MealPlanStatusSchema,
|
|
940
|
-
channels:
|
|
941
|
-
participantCount:
|
|
1000
|
+
channels: import_zod12.z.array(MealPlanChannelSchema),
|
|
1001
|
+
participantCount: import_zod12.z.number().int().min(1),
|
|
942
1002
|
selectedDate: ISODateStringSchema.nullable(),
|
|
943
1003
|
selectedTime: TimeHHmmStringSchema.nullable(),
|
|
944
|
-
selectedAreaName:
|
|
945
|
-
selectedRestaurantName:
|
|
946
|
-
primaryAction:
|
|
947
|
-
label:
|
|
948
|
-
href:
|
|
1004
|
+
selectedAreaName: import_zod12.z.string().nullable(),
|
|
1005
|
+
selectedRestaurantName: import_zod12.z.string().nullable(),
|
|
1006
|
+
primaryAction: import_zod12.z.object({
|
|
1007
|
+
label: import_zod12.z.string(),
|
|
1008
|
+
href: import_zod12.z.string()
|
|
949
1009
|
}),
|
|
950
1010
|
updatedAt: ISODateTimeStringSchema
|
|
951
1011
|
});
|
|
952
|
-
var MyMealPlanListResponseSchema =
|
|
953
|
-
deciding:
|
|
954
|
-
upcoming:
|
|
955
|
-
recordNeeded:
|
|
956
|
-
past:
|
|
1012
|
+
var MyMealPlanListResponseSchema = import_zod12.z.object({
|
|
1013
|
+
deciding: import_zod12.z.array(MyMealPlanListItemSchema),
|
|
1014
|
+
upcoming: import_zod12.z.array(MyMealPlanListItemSchema),
|
|
1015
|
+
recordNeeded: import_zod12.z.array(MyMealPlanListItemSchema),
|
|
1016
|
+
past: import_zod12.z.array(MyMealPlanListItemSchema)
|
|
957
1017
|
});
|
|
958
|
-
var MealPlanNotificationKindSchema =
|
|
1018
|
+
var MealPlanNotificationKindSchema = import_zod12.z.enum([
|
|
959
1019
|
"MEAL_PLAN_INVITE_RECEIVED",
|
|
960
1020
|
"MEAL_PLAN_INVITE_ACCEPTED",
|
|
961
1021
|
"MEAL_PLAN_JOIN_REQUESTED",
|
|
@@ -967,27 +1027,27 @@ var MealPlanNotificationKindSchema = import_zod11.z.enum([
|
|
|
967
1027
|
"MEAL_PLAN_LOCKED",
|
|
968
1028
|
"MEAL_PLAN_RECORD_NEEDED"
|
|
969
1029
|
]);
|
|
970
|
-
var MealPlanNotificationPriorityChannelSchema =
|
|
1030
|
+
var MealPlanNotificationPriorityChannelSchema = import_zod12.z.enum([
|
|
971
1031
|
"HOME",
|
|
972
1032
|
"NOTIFICATION_INBOX",
|
|
973
1033
|
"FCM_PUSH",
|
|
974
1034
|
"LIVE_ACTIVITY"
|
|
975
1035
|
]);
|
|
976
|
-
var MealPlanLiveActivityBehaviorSchema =
|
|
1036
|
+
var MealPlanLiveActivityBehaviorSchema = import_zod12.z.enum([
|
|
977
1037
|
"NONE",
|
|
978
1038
|
"START_OR_UPDATE",
|
|
979
1039
|
"UPDATE",
|
|
980
1040
|
"END"
|
|
981
1041
|
]);
|
|
982
|
-
var MealPlanNotificationPriorityPolicyItemSchema =
|
|
1042
|
+
var MealPlanNotificationPriorityPolicyItemSchema = import_zod12.z.object({
|
|
983
1043
|
kind: MealPlanNotificationKindSchema,
|
|
984
|
-
priority:
|
|
985
|
-
homePriority:
|
|
986
|
-
inboxPriority:
|
|
987
|
-
fcmPriority:
|
|
988
|
-
liveActivityPriority:
|
|
1044
|
+
priority: import_zod12.z.number().int().min(0),
|
|
1045
|
+
homePriority: import_zod12.z.number().int().min(0),
|
|
1046
|
+
inboxPriority: import_zod12.z.number().int().min(0),
|
|
1047
|
+
fcmPriority: import_zod12.z.number().int().min(0),
|
|
1048
|
+
liveActivityPriority: import_zod12.z.number().int().min(0),
|
|
989
1049
|
liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
|
|
990
|
-
foregroundToast:
|
|
1050
|
+
foregroundToast: import_zod12.z.boolean()
|
|
991
1051
|
});
|
|
992
1052
|
var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
|
|
993
1053
|
MEAL_PLAN_JOIN_REQUESTED: {
|
|
@@ -1091,248 +1151,230 @@ var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
|
|
|
1091
1151
|
foregroundToast: false
|
|
1092
1152
|
}
|
|
1093
1153
|
};
|
|
1094
|
-
var MealPlanNotificationSchema =
|
|
1095
|
-
notificationId:
|
|
1154
|
+
var MealPlanNotificationSchema = import_zod12.z.object({
|
|
1155
|
+
notificationId: import_zod12.z.string().min(1),
|
|
1096
1156
|
kind: MealPlanNotificationKindSchema,
|
|
1097
1157
|
mealPlanId: MealPlanIdSchema,
|
|
1098
|
-
deepLink:
|
|
1099
|
-
title:
|
|
1100
|
-
message:
|
|
1158
|
+
deepLink: import_zod12.z.string().min(1),
|
|
1159
|
+
title: import_zod12.z.string().min(1),
|
|
1160
|
+
message: import_zod12.z.string().min(1),
|
|
1101
1161
|
createdAt: ISODateTimeStringSchema,
|
|
1102
1162
|
readAt: ISODateTimeStringSchema.nullable()
|
|
1103
1163
|
});
|
|
1104
1164
|
|
|
1105
1165
|
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
1106
|
-
var
|
|
1107
|
-
var CreateMealPlanShareLinkRequestSchema =
|
|
1166
|
+
var import_zod13 = require("zod");
|
|
1167
|
+
var CreateMealPlanShareLinkRequestSchema = import_zod13.z.object({
|
|
1108
1168
|
expiresAt: ISODateTimeStringSchema.optional(),
|
|
1109
|
-
guestJoinEnabled:
|
|
1169
|
+
guestJoinEnabled: import_zod13.z.boolean().default(true)
|
|
1110
1170
|
});
|
|
1111
|
-
var MealPlanShareLinkSummarySchema =
|
|
1171
|
+
var MealPlanShareLinkSummarySchema = import_zod13.z.object({
|
|
1112
1172
|
shareLinkId: MealPlanShareLinkIdSchema,
|
|
1113
1173
|
mealPlanId: MealPlanIdSchema,
|
|
1114
1174
|
token: MealPlanShareLinkTokenSchema,
|
|
1115
|
-
url:
|
|
1175
|
+
url: import_zod13.z.string().url(),
|
|
1116
1176
|
expiresAt: ISODateTimeStringSchema,
|
|
1117
|
-
guestJoinEnabled:
|
|
1177
|
+
guestJoinEnabled: import_zod13.z.boolean(),
|
|
1118
1178
|
createdAt: ISODateTimeStringSchema
|
|
1119
1179
|
});
|
|
1120
|
-
var MealPlanSharePreviewResponseSchema =
|
|
1180
|
+
var MealPlanSharePreviewResponseSchema = import_zod13.z.object({
|
|
1121
1181
|
mealPlanId: MealPlanIdSchema,
|
|
1122
1182
|
token: MealPlanShareLinkTokenSchema,
|
|
1123
|
-
title:
|
|
1124
|
-
ownerName:
|
|
1125
|
-
participantCount:
|
|
1183
|
+
title: import_zod13.z.string(),
|
|
1184
|
+
ownerName: import_zod13.z.string(),
|
|
1185
|
+
participantCount: import_zod13.z.number().int().min(1),
|
|
1126
1186
|
expiresAt: ISODateTimeStringSchema,
|
|
1127
|
-
guestJoinEnabled:
|
|
1187
|
+
guestJoinEnabled: import_zod13.z.boolean()
|
|
1128
1188
|
});
|
|
1129
|
-
var JoinMealPlanGuestRequestSchema =
|
|
1130
|
-
nickname:
|
|
1131
|
-
password:
|
|
1189
|
+
var JoinMealPlanGuestRequestSchema = import_zod13.z.object({
|
|
1190
|
+
nickname: import_zod13.z.string().min(1).max(50),
|
|
1191
|
+
password: import_zod13.z.string().min(1).max(100).optional()
|
|
1132
1192
|
});
|
|
1133
|
-
var JoinMealPlanGuestResponseSchema =
|
|
1193
|
+
var JoinMealPlanGuestResponseSchema = import_zod13.z.object({
|
|
1134
1194
|
mealPlanId: MealPlanIdSchema,
|
|
1135
|
-
guestId:
|
|
1136
|
-
sessionToken:
|
|
1195
|
+
guestId: import_zod13.z.string().min(1),
|
|
1196
|
+
sessionToken: import_zod13.z.string().min(1)
|
|
1137
1197
|
});
|
|
1138
|
-
var MealPlanGuestSessionQuerySchema =
|
|
1139
|
-
sessionToken:
|
|
1198
|
+
var MealPlanGuestSessionQuerySchema = import_zod13.z.object({
|
|
1199
|
+
sessionToken: import_zod13.z.string().min(1)
|
|
1140
1200
|
});
|
|
1141
|
-
var MealPlanGuestSessionResponseSchema =
|
|
1201
|
+
var MealPlanGuestSessionResponseSchema = import_zod13.z.object({
|
|
1142
1202
|
mealPlan: MealPlanResponseSchema,
|
|
1143
1203
|
token: MealPlanShareLinkTokenSchema,
|
|
1144
|
-
guestId:
|
|
1145
|
-
nickname:
|
|
1146
|
-
sessionToken:
|
|
1204
|
+
guestId: import_zod13.z.string().min(1),
|
|
1205
|
+
nickname: import_zod13.z.string().min(1).max(50),
|
|
1206
|
+
sessionToken: import_zod13.z.string().min(1)
|
|
1147
1207
|
});
|
|
1148
1208
|
|
|
1149
1209
|
// src/domain/meal-plan/meal-group.schema.ts
|
|
1150
|
-
var
|
|
1151
|
-
var MealGroupMemberRoleSchema =
|
|
1210
|
+
var import_zod14 = require("zod");
|
|
1211
|
+
var MealGroupMemberRoleSchema = import_zod14.z.enum([
|
|
1152
1212
|
"OWNER",
|
|
1153
1213
|
"MEMBER"
|
|
1154
1214
|
]);
|
|
1155
|
-
var MealGroupMemberSchema =
|
|
1215
|
+
var MealGroupMemberSchema = import_zod14.z.object({
|
|
1156
1216
|
member: MemberCoreSchema,
|
|
1157
1217
|
role: MealGroupMemberRoleSchema,
|
|
1158
1218
|
joinedAt: ISODateTimeStringSchema
|
|
1159
1219
|
});
|
|
1160
|
-
var MealGroupResponseSchema =
|
|
1220
|
+
var MealGroupResponseSchema = import_zod14.z.object({
|
|
1161
1221
|
mealGroupId: MealGroupIdSchema,
|
|
1162
|
-
name:
|
|
1222
|
+
name: import_zod14.z.string().min(1).max(50),
|
|
1163
1223
|
owner: MemberCoreSchema,
|
|
1164
|
-
profileImageUrl:
|
|
1165
|
-
members:
|
|
1166
|
-
recentMealPlanIds:
|
|
1224
|
+
profileImageUrl: import_zod14.z.string().url().nullable(),
|
|
1225
|
+
members: import_zod14.z.array(MealGroupMemberSchema),
|
|
1226
|
+
recentMealPlanIds: import_zod14.z.array(MealPlanIdSchema),
|
|
1167
1227
|
createdAt: ISODateTimeStringSchema,
|
|
1168
1228
|
updatedAt: ISODateTimeStringSchema
|
|
1169
1229
|
});
|
|
1170
|
-
var CreateMealGroupRequestSchema =
|
|
1171
|
-
name:
|
|
1172
|
-
memberIds:
|
|
1173
|
-
profileImageUrl:
|
|
1230
|
+
var CreateMealGroupRequestSchema = import_zod14.z.object({
|
|
1231
|
+
name: import_zod14.z.string().min(1).max(50),
|
|
1232
|
+
memberIds: import_zod14.z.array(import_zod14.z.number().int().positive()).min(1),
|
|
1233
|
+
profileImageUrl: import_zod14.z.string().url().nullable().optional(),
|
|
1174
1234
|
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
1175
1235
|
});
|
|
1176
|
-
var StartMealPlanFromGroupRequestSchema =
|
|
1177
|
-
title:
|
|
1236
|
+
var StartMealPlanFromGroupRequestSchema = import_zod14.z.object({
|
|
1237
|
+
title: import_zod14.z.string().min(1).max(100).optional()
|
|
1178
1238
|
});
|
|
1179
|
-
var AddMealGroupMemberRequestSchema =
|
|
1180
|
-
memberId:
|
|
1239
|
+
var AddMealGroupMemberRequestSchema = import_zod14.z.object({
|
|
1240
|
+
memberId: import_zod14.z.number().int().positive(),
|
|
1181
1241
|
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
1182
1242
|
});
|
|
1183
|
-
var UpdateMealGroupMemberRoleRequestSchema =
|
|
1243
|
+
var UpdateMealGroupMemberRoleRequestSchema = import_zod14.z.object({
|
|
1184
1244
|
role: MealGroupMemberRoleSchema
|
|
1185
1245
|
});
|
|
1186
1246
|
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
1187
|
-
var MealGroupPreferenceSummarySchema =
|
|
1247
|
+
var MealGroupPreferenceSummarySchema = import_zod14.z.object({
|
|
1188
1248
|
mealGroupId: MealGroupIdSchema,
|
|
1189
|
-
frequentMenuCategories:
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
})),
|
|
1197
|
-
recentMenuCategories: import_zod13.z.array(import_zod13.z.string()),
|
|
1198
|
-
recommendationContext: import_zod13.z.object({
|
|
1199
|
-
preferredMenuCategories: import_zod13.z.array(import_zod13.z.string()),
|
|
1200
|
-
excludedMenuCategories: import_zod13.z.array(import_zod13.z.string()),
|
|
1201
|
-
candidateMenuCategories: import_zod13.z.array(import_zod13.z.string())
|
|
1249
|
+
frequentMenuCategories: import_zod14.z.array(import_zod14.z.object({ label: import_zod14.z.string(), count: import_zod14.z.number().int().min(0) })),
|
|
1250
|
+
frequentRestaurants: import_zod14.z.array(import_zod14.z.object({ restaurantName: import_zod14.z.string(), count: import_zod14.z.number().int().min(0) })),
|
|
1251
|
+
recentMenuCategories: import_zod14.z.array(import_zod14.z.string()),
|
|
1252
|
+
recommendationContext: import_zod14.z.object({
|
|
1253
|
+
preferredMenuCategories: import_zod14.z.array(import_zod14.z.string()),
|
|
1254
|
+
excludedMenuCategories: import_zod14.z.array(import_zod14.z.string()),
|
|
1255
|
+
candidateMenuCategories: import_zod14.z.array(import_zod14.z.string())
|
|
1202
1256
|
})
|
|
1203
1257
|
});
|
|
1204
|
-
var MealGroupHistoryResponseSchema =
|
|
1258
|
+
var MealGroupHistoryResponseSchema = import_zod14.z.array(MealGroupHistoryItemSchema);
|
|
1205
1259
|
|
|
1206
1260
|
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
1207
|
-
var
|
|
1208
|
-
var HomeMealPlanActionKindSchema =
|
|
1261
|
+
var import_zod15 = require("zod");
|
|
1262
|
+
var HomeMealPlanActionKindSchema = import_zod15.z.enum([
|
|
1209
1263
|
"CONTINUE_DECISION",
|
|
1210
1264
|
"TODAY_UPCOMING",
|
|
1211
1265
|
"RECORD_NEEDED",
|
|
1212
1266
|
"RESPOND_JOIN_REQUEST",
|
|
1213
1267
|
"NOTIFICATION_FOLLOW_UP"
|
|
1214
1268
|
]);
|
|
1215
|
-
var HomeMealPlanActionCardSchema =
|
|
1216
|
-
actionId:
|
|
1269
|
+
var HomeMealPlanActionCardSchema = import_zod15.z.object({
|
|
1270
|
+
actionId: import_zod15.z.string().min(1),
|
|
1217
1271
|
kind: HomeMealPlanActionKindSchema,
|
|
1218
|
-
priority:
|
|
1219
|
-
title:
|
|
1220
|
-
description:
|
|
1221
|
-
primaryAction:
|
|
1222
|
-
label:
|
|
1223
|
-
href:
|
|
1272
|
+
priority: import_zod15.z.number().int().min(0),
|
|
1273
|
+
title: import_zod15.z.string().min(1),
|
|
1274
|
+
description: import_zod15.z.string().min(1),
|
|
1275
|
+
primaryAction: import_zod15.z.object({
|
|
1276
|
+
label: import_zod15.z.string().min(1),
|
|
1277
|
+
href: import_zod15.z.string().min(1)
|
|
1224
1278
|
}),
|
|
1225
1279
|
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
1226
1280
|
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
1227
1281
|
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
1228
1282
|
});
|
|
1229
|
-
var HomeMealPlanDashboardResponseSchema =
|
|
1283
|
+
var HomeMealPlanDashboardResponseSchema = import_zod15.z.object({
|
|
1230
1284
|
generatedAt: ISODateTimeStringSchema,
|
|
1231
|
-
inProgress:
|
|
1232
|
-
today:
|
|
1233
|
-
recordNeeded:
|
|
1234
|
-
pendingJoinRequests:
|
|
1235
|
-
unreadNotifications:
|
|
1236
|
-
nextActions:
|
|
1237
|
-
});
|
|
1238
|
-
var MealMapLayerSchema =
|
|
1285
|
+
inProgress: import_zod15.z.array(MyMealPlanListItemSchema),
|
|
1286
|
+
today: import_zod15.z.array(MyMealPlanListItemSchema),
|
|
1287
|
+
recordNeeded: import_zod15.z.array(MyMealPlanListItemSchema),
|
|
1288
|
+
pendingJoinRequests: import_zod15.z.array(MealPlanJoinRequestSummarySchema),
|
|
1289
|
+
unreadNotifications: import_zod15.z.array(MealPlanNotificationSchema).default([]),
|
|
1290
|
+
nextActions: import_zod15.z.array(HomeMealPlanActionCardSchema)
|
|
1291
|
+
});
|
|
1292
|
+
var MealMapLayerSchema = import_zod15.z.enum([
|
|
1239
1293
|
"MY_MEAL_PLAN_PLACE",
|
|
1240
1294
|
"NEARBY_FRIEND_MEAL_PLAN",
|
|
1241
1295
|
"FRIEND_RECORD_LOCATION",
|
|
1242
1296
|
"RESTAURANT_CANDIDATE"
|
|
1243
1297
|
]);
|
|
1244
|
-
var MealMapMarkerBaseSchema =
|
|
1245
|
-
markerId:
|
|
1246
|
-
lat:
|
|
1247
|
-
lng:
|
|
1248
|
-
title:
|
|
1249
|
-
subtitle:
|
|
1250
|
-
href:
|
|
1298
|
+
var MealMapMarkerBaseSchema = import_zod15.z.object({
|
|
1299
|
+
markerId: import_zod15.z.string().min(1),
|
|
1300
|
+
lat: import_zod15.z.number().min(-90).max(90),
|
|
1301
|
+
lng: import_zod15.z.number().min(-180).max(180),
|
|
1302
|
+
title: import_zod15.z.string().min(1),
|
|
1303
|
+
subtitle: import_zod15.z.string().nullable(),
|
|
1304
|
+
href: import_zod15.z.string().min(1).nullable(),
|
|
1251
1305
|
mealPlanId: MealPlanIdSchema.nullable(),
|
|
1252
1306
|
articleId: ArticleIdSchema.nullable(),
|
|
1253
1307
|
restaurant: RestaurantSchema.nullable(),
|
|
1254
|
-
distanceMeters:
|
|
1308
|
+
distanceMeters: import_zod15.z.number().int().min(0).nullable(),
|
|
1255
1309
|
updatedAt: ISODateTimeStringSchema
|
|
1256
1310
|
});
|
|
1257
|
-
var MealMapMyMealPlanPlaceMetadataSchema =
|
|
1311
|
+
var MealMapMyMealPlanPlaceMetadataSchema = import_zod15.z.object({
|
|
1258
1312
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1259
|
-
status:
|
|
1260
|
-
participantCount:
|
|
1261
|
-
source:
|
|
1313
|
+
status: import_zod15.z.string().min(1),
|
|
1314
|
+
participantCount: import_zod15.z.number().int().min(1),
|
|
1315
|
+
source: import_zod15.z.string().min(1)
|
|
1262
1316
|
});
|
|
1263
|
-
var MealMapNearbyFriendMealPlanMetadataSchema =
|
|
1317
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = import_zod15.z.object({
|
|
1264
1318
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1265
|
-
ownerName:
|
|
1266
|
-
participantCount:
|
|
1319
|
+
ownerName: import_zod15.z.string().min(1),
|
|
1320
|
+
participantCount: import_zod15.z.number().int().min(1),
|
|
1267
1321
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1268
|
-
source:
|
|
1322
|
+
source: import_zod15.z.string().min(1)
|
|
1269
1323
|
});
|
|
1270
|
-
var MealMapFriendRecordLocationMetadataSchema =
|
|
1324
|
+
var MealMapFriendRecordLocationMetadataSchema = import_zod15.z.object({
|
|
1271
1325
|
authorId: MemberIdSchema.nullable().default(null),
|
|
1272
|
-
authorName:
|
|
1273
|
-
imageUrl:
|
|
1274
|
-
mealDate:
|
|
1326
|
+
authorName: import_zod15.z.string().min(1),
|
|
1327
|
+
imageUrl: import_zod15.z.string().nullable().default(null),
|
|
1328
|
+
mealDate: import_zod15.z.string().min(1)
|
|
1275
1329
|
});
|
|
1276
|
-
var MealMapRestaurantCandidateCompletionBlockedReasonSchema =
|
|
1330
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod15.z.enum([
|
|
1277
1331
|
"OWNER_ONLY",
|
|
1278
1332
|
"STAGE_ALREADY_COMPLETED",
|
|
1279
1333
|
"MEAL_PLAN_NOT_MUTABLE"
|
|
1280
1334
|
]);
|
|
1281
|
-
var MealMapRestaurantCandidateMetadataSchema =
|
|
1335
|
+
var MealMapRestaurantCandidateMetadataSchema = import_zod15.z.object({
|
|
1282
1336
|
stageId: MealPlanDecisionStageIdSchema,
|
|
1283
1337
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1284
|
-
status:
|
|
1285
|
-
source:
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
]).default("search"),
|
|
1290
|
-
stageStatus: import_zod14.z.enum([
|
|
1291
|
-
"OPEN",
|
|
1292
|
-
"COMPLETED",
|
|
1293
|
-
"REOPENED"
|
|
1294
|
-
]).default("OPEN"),
|
|
1295
|
-
canVote: import_zod14.z.boolean().default(false),
|
|
1296
|
-
canCompleteStage: import_zod14.z.boolean().default(false),
|
|
1338
|
+
status: import_zod15.z.string().min(1),
|
|
1339
|
+
source: import_zod15.z.enum(["search", "fallback", "manual"]).default("search"),
|
|
1340
|
+
stageStatus: import_zod15.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
|
|
1341
|
+
canVote: import_zod15.z.boolean().default(false),
|
|
1342
|
+
canCompleteStage: import_zod15.z.boolean().default(false),
|
|
1297
1343
|
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
1298
1344
|
});
|
|
1299
|
-
var MealMapMarkerSchema =
|
|
1345
|
+
var MealMapMarkerSchema = import_zod15.z.discriminatedUnion("layer", [
|
|
1300
1346
|
MealMapMarkerBaseSchema.extend({
|
|
1301
|
-
layer:
|
|
1347
|
+
layer: import_zod15.z.literal("MY_MEAL_PLAN_PLACE"),
|
|
1302
1348
|
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
1303
1349
|
}),
|
|
1304
1350
|
MealMapMarkerBaseSchema.extend({
|
|
1305
|
-
layer:
|
|
1351
|
+
layer: import_zod15.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
1306
1352
|
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
1307
1353
|
}),
|
|
1308
1354
|
MealMapMarkerBaseSchema.extend({
|
|
1309
|
-
layer:
|
|
1355
|
+
layer: import_zod15.z.literal("FRIEND_RECORD_LOCATION"),
|
|
1310
1356
|
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
1311
1357
|
}),
|
|
1312
1358
|
MealMapMarkerBaseSchema.extend({
|
|
1313
|
-
layer:
|
|
1359
|
+
layer: import_zod15.z.literal("RESTAURANT_CANDIDATE"),
|
|
1314
1360
|
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
1315
1361
|
})
|
|
1316
1362
|
]);
|
|
1317
|
-
var MealMapQuerySchema =
|
|
1318
|
-
friendRecordDays:
|
|
1363
|
+
var MealMapQuerySchema = import_zod15.z.object({
|
|
1364
|
+
friendRecordDays: import_zod15.z.coerce.number().int().min(1).max(90).optional().default(7)
|
|
1319
1365
|
});
|
|
1320
|
-
var MealMapResponseSchema =
|
|
1366
|
+
var MealMapResponseSchema = import_zod15.z.object({
|
|
1321
1367
|
generatedAt: ISODateTimeStringSchema,
|
|
1322
|
-
center:
|
|
1323
|
-
lat:
|
|
1324
|
-
lng:
|
|
1325
|
-
source:
|
|
1326
|
-
"LAST_KNOWN_LOCATION",
|
|
1327
|
-
"MY_MEAL_PLAN",
|
|
1328
|
-
"DEFAULT"
|
|
1329
|
-
])
|
|
1368
|
+
center: import_zod15.z.object({
|
|
1369
|
+
lat: import_zod15.z.number().min(-90).max(90),
|
|
1370
|
+
lng: import_zod15.z.number().min(-180).max(180),
|
|
1371
|
+
source: import_zod15.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
|
|
1330
1372
|
}),
|
|
1331
|
-
layers:
|
|
1332
|
-
myMealPlanPlaces:
|
|
1333
|
-
nearbyFriendMealPlans:
|
|
1334
|
-
friendRecordLocations:
|
|
1335
|
-
restaurantCandidates:
|
|
1373
|
+
layers: import_zod15.z.object({
|
|
1374
|
+
myMealPlanPlaces: import_zod15.z.array(MealMapMarkerSchema),
|
|
1375
|
+
nearbyFriendMealPlans: import_zod15.z.array(MealMapMarkerSchema),
|
|
1376
|
+
friendRecordLocations: import_zod15.z.array(MealMapMarkerSchema),
|
|
1377
|
+
restaurantCandidates: import_zod15.z.array(MealMapMarkerSchema)
|
|
1336
1378
|
})
|
|
1337
1379
|
});
|
|
1338
1380
|
|
|
@@ -1341,7 +1383,6 @@ var DEFAULT_POLICY = MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES.MEAL_PLAN_PARTICIP
|
|
|
1341
1383
|
function getMealPlanNotificationPriorityPolicy(kind) {
|
|
1342
1384
|
return MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES[kind] ?? DEFAULT_POLICY;
|
|
1343
1385
|
}
|
|
1344
|
-
__name(getMealPlanNotificationPriorityPolicy, "getMealPlanNotificationPriorityPolicy");
|
|
1345
1386
|
function getMealPlanNotificationPriority(kind, channel = "HOME") {
|
|
1346
1387
|
const policy = getMealPlanNotificationPriorityPolicy(kind);
|
|
1347
1388
|
switch (channel) {
|
|
@@ -1357,15 +1398,12 @@ function getMealPlanNotificationPriority(kind, channel = "HOME") {
|
|
|
1357
1398
|
return policy.priority;
|
|
1358
1399
|
}
|
|
1359
1400
|
}
|
|
1360
|
-
__name(getMealPlanNotificationPriority, "getMealPlanNotificationPriority");
|
|
1361
1401
|
function getMealPlanLiveActivityBehavior(kind) {
|
|
1362
1402
|
return getMealPlanNotificationPriorityPolicy(kind).liveActivityBehavior;
|
|
1363
1403
|
}
|
|
1364
|
-
__name(getMealPlanLiveActivityBehavior, "getMealPlanLiveActivityBehavior");
|
|
1365
1404
|
function shouldShowForegroundToast(kind) {
|
|
1366
1405
|
return getMealPlanNotificationPriorityPolicy(kind).foregroundToast;
|
|
1367
1406
|
}
|
|
1368
|
-
__name(shouldShowForegroundToast, "shouldShowForegroundToast");
|
|
1369
1407
|
function compareMealPlanNotificationsByPriority(channel) {
|
|
1370
1408
|
return (a, b) => {
|
|
1371
1409
|
const unreadDelta = Number(Boolean(a.readAt)) - Number(Boolean(b.readAt));
|
|
@@ -1375,7 +1413,6 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1375
1413
|
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
|
|
1376
1414
|
};
|
|
1377
1415
|
}
|
|
1378
|
-
__name(compareMealPlanNotificationsByPriority, "compareMealPlanNotificationsByPriority");
|
|
1379
1416
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1380
1417
|
0 && (module.exports = {
|
|
1381
1418
|
AddMealGroupMemberRequestSchema,
|
|
@@ -1435,7 +1472,6 @@ __name(compareMealPlanNotificationsByPriority, "compareMealPlanNotificationsByPr
|
|
|
1435
1472
|
MealPlanDecisionStageTypeSchema,
|
|
1436
1473
|
MealPlanDecisionTaskKeySchema,
|
|
1437
1474
|
MealPlanDecisionTaskProgressSchema,
|
|
1438
|
-
MealPlanDecisionTaskReadyRequestSchema,
|
|
1439
1475
|
MealPlanDecisionTaskStatusSchema,
|
|
1440
1476
|
MealPlanGuestParticipantSchema,
|
|
1441
1477
|
MealPlanGuestSessionQuerySchema,
|