@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
package/dist/index.cjs
CHANGED
|
@@ -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 });
|
|
@@ -168,7 +167,6 @@ __export(domain_exports, {
|
|
|
168
167
|
MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
|
|
169
168
|
MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
|
|
170
169
|
MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
|
|
171
|
-
MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
|
|
172
170
|
MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
|
|
173
171
|
MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
|
|
174
172
|
MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
|
|
@@ -343,10 +341,7 @@ var import_zod7 = require("zod");
|
|
|
343
341
|
var import_zod = require("zod");
|
|
344
342
|
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
345
343
|
var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
346
|
-
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
347
|
-
offset: true,
|
|
348
|
-
message: "Expected ISO datetime string"
|
|
349
|
-
});
|
|
344
|
+
var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
|
|
350
345
|
var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
351
346
|
|
|
352
347
|
// src/domain/common/schema/id.schema.ts
|
|
@@ -393,14 +388,11 @@ var PageMetaSchema = import_zod3.z.object({
|
|
|
393
388
|
hasNext: import_zod3.z.boolean(),
|
|
394
389
|
hasPrevious: import_zod3.z.boolean()
|
|
395
390
|
});
|
|
396
|
-
var PageResponseSchema =
|
|
391
|
+
var PageResponseSchema = (item) => import_zod3.z.object({
|
|
397
392
|
items: import_zod3.z.array(item),
|
|
398
393
|
meta: PageMetaSchema
|
|
399
|
-
})
|
|
400
|
-
var SortDirectionSchema = import_zod3.z.enum([
|
|
401
|
-
"asc",
|
|
402
|
-
"desc"
|
|
403
|
-
]);
|
|
394
|
+
});
|
|
395
|
+
var SortDirectionSchema = import_zod3.z.enum(["asc", "desc"]);
|
|
404
396
|
|
|
405
397
|
// src/domain/member/member.schema.ts
|
|
406
398
|
var import_zod5 = require("zod");
|
|
@@ -417,24 +409,10 @@ var UploadPresignImageRequestSchema = import_zod4.default.object({
|
|
|
417
409
|
});
|
|
418
410
|
|
|
419
411
|
// src/domain/member/member.schema.ts
|
|
420
|
-
var MemberRoleSchema = import_zod5.z.enum([
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
]);
|
|
424
|
-
var LocationConsentStatusSchema = import_zod5.z.enum([
|
|
425
|
-
"UNKNOWN",
|
|
426
|
-
"GRANTED",
|
|
427
|
-
"DENIED"
|
|
428
|
-
]);
|
|
429
|
-
var OnboardingStatusSchema = import_zod5.z.enum([
|
|
430
|
-
"REQUIRED",
|
|
431
|
-
"COMPLETED"
|
|
432
|
-
]);
|
|
433
|
-
var PermissionKindSchema = import_zod5.z.enum([
|
|
434
|
-
"LOCATION",
|
|
435
|
-
"NOTIFICATION",
|
|
436
|
-
"CAMERA"
|
|
437
|
-
]);
|
|
412
|
+
var MemberRoleSchema = import_zod5.z.enum(["USER", "ADMIN"]);
|
|
413
|
+
var LocationConsentStatusSchema = import_zod5.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
|
|
414
|
+
var OnboardingStatusSchema = import_zod5.z.enum(["REQUIRED", "COMPLETED"]);
|
|
415
|
+
var PermissionKindSchema = import_zod5.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
|
|
438
416
|
var PermissionStatusSchema = import_zod5.z.enum([
|
|
439
417
|
"UNKNOWN",
|
|
440
418
|
"PROMPT",
|
|
@@ -443,12 +421,7 @@ var PermissionStatusSchema = import_zod5.z.enum([
|
|
|
443
421
|
"LIMITED",
|
|
444
422
|
"UNSUPPORTED"
|
|
445
423
|
]);
|
|
446
|
-
var PermissionPlatformSchema = import_zod5.z.enum([
|
|
447
|
-
"WEB",
|
|
448
|
-
"IOS",
|
|
449
|
-
"ANDROID",
|
|
450
|
-
"UNKNOWN"
|
|
451
|
-
]);
|
|
424
|
+
var PermissionPlatformSchema = import_zod5.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
|
|
452
425
|
var DevicePermissionSnapshotSchema = import_zod5.z.object({
|
|
453
426
|
kind: PermissionKindSchema,
|
|
454
427
|
status: PermissionStatusSchema,
|
|
@@ -522,7 +495,9 @@ var UpdateProfileRequestSchema = import_zod5.z.object({
|
|
|
522
495
|
bio: import_zod5.z.string().max(500).nullable()
|
|
523
496
|
});
|
|
524
497
|
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
525
|
-
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
498
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
499
|
+
UpdatePreferenceRequestSchema
|
|
500
|
+
);
|
|
526
501
|
var OnboardingDraftSchema = import_zod5.z.object({
|
|
527
502
|
username: import_zod5.z.string().min(1).max(50).optional(),
|
|
528
503
|
profileImageUrl: import_zod5.z.string().url().nullable().optional(),
|
|
@@ -563,11 +538,7 @@ var KakaoPlaceRawSchema = import_zod6.z.object({
|
|
|
563
538
|
});
|
|
564
539
|
|
|
565
540
|
// src/domain/article/article.schema.ts
|
|
566
|
-
var ArticleSortBySchema = import_zod7.z.enum([
|
|
567
|
-
"createdAt",
|
|
568
|
-
"likeCount",
|
|
569
|
-
"commentCount"
|
|
570
|
-
]);
|
|
541
|
+
var ArticleSortBySchema = import_zod7.z.enum(["createdAt", "likeCount", "commentCount"]);
|
|
571
542
|
var ArticleListQuerySchema = PageQuerySchema.extend({
|
|
572
543
|
sortBy: ArticleSortBySchema.optional().default("createdAt"),
|
|
573
544
|
direction: SortDirectionSchema.optional().default("desc")
|
|
@@ -644,7 +615,7 @@ var SignupResponseSchema = import_zod8.z.object({
|
|
|
644
615
|
});
|
|
645
616
|
|
|
646
617
|
// src/domain/common/contracts/api.ts
|
|
647
|
-
var
|
|
618
|
+
var import_zod29 = require("zod");
|
|
648
619
|
|
|
649
620
|
// src/domain/common/schema/cache-invalidation.schema.ts
|
|
650
621
|
var import_zod9 = require("zod");
|
|
@@ -692,10 +663,7 @@ var CacheInvalidationEventSchema = import_zod9.z.object({
|
|
|
692
663
|
type: import_zod9.z.literal("cache.invalidate"),
|
|
693
664
|
entity: CacheInvalidationEntitySchema,
|
|
694
665
|
action: CacheInvalidationActionSchema,
|
|
695
|
-
id: import_zod9.z.union([
|
|
696
|
-
import_zod9.z.string(),
|
|
697
|
-
import_zod9.z.number()
|
|
698
|
-
]).optional(),
|
|
666
|
+
id: import_zod9.z.union([import_zod9.z.string(), import_zod9.z.number()]).optional(),
|
|
699
667
|
keys: import_zod9.z.array(CacheInvalidationKeySchema).min(1),
|
|
700
668
|
occurredAt: import_zod9.z.string().datetime()
|
|
701
669
|
});
|
|
@@ -703,77 +671,36 @@ var CacheInvalidationEventSchema = import_zod9.z.object({
|
|
|
703
671
|
// src/domain/common/schema/envelope.schema.ts
|
|
704
672
|
var import_zod10 = require("zod");
|
|
705
673
|
var NoContentSchema = import_zod10.z.null();
|
|
706
|
-
var ApiSuccessSchema =
|
|
674
|
+
var ApiSuccessSchema = (data) => import_zod10.z.object({
|
|
707
675
|
success: import_zod10.z.literal(true),
|
|
708
676
|
code: import_zod10.z.number().int(),
|
|
709
677
|
message: import_zod10.z.string(),
|
|
710
678
|
data
|
|
711
|
-
})
|
|
679
|
+
});
|
|
712
680
|
var ApiFailureSchema = import_zod10.z.object({
|
|
713
681
|
success: import_zod10.z.literal(false),
|
|
714
682
|
status: import_zod10.z.number().int(),
|
|
715
683
|
code: import_zod10.z.string(),
|
|
716
684
|
message: import_zod10.z.string()
|
|
717
685
|
});
|
|
718
|
-
var ApiResponseSchema =
|
|
719
|
-
ApiSuccessSchema(data),
|
|
720
|
-
ApiFailureSchema
|
|
721
|
-
]), "ApiResponseSchema");
|
|
686
|
+
var ApiResponseSchema = (data) => import_zod10.z.union([ApiSuccessSchema(data), ApiFailureSchema]);
|
|
722
687
|
var CreatedEntityIdResponseSchema = import_zod10.z.discriminatedUnion("entity", [
|
|
723
|
-
import_zod10.z.object({
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}),
|
|
727
|
-
import_zod10.z.object({
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}),
|
|
731
|
-
import_zod10.z.object({
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
}),
|
|
735
|
-
import_zod10.z.object({
|
|
736
|
-
entity: import_zod10.z.literal("coupon"),
|
|
737
|
-
id: CouponIdSchema
|
|
738
|
-
}),
|
|
739
|
-
import_zod10.z.object({
|
|
740
|
-
entity: import_zod10.z.literal("mealPlan"),
|
|
741
|
-
id: MealPlanIdSchema
|
|
742
|
-
}),
|
|
743
|
-
import_zod10.z.object({
|
|
744
|
-
entity: import_zod10.z.literal("mealPlanInvite"),
|
|
745
|
-
id: MealPlanInviteIdSchema
|
|
746
|
-
}),
|
|
747
|
-
import_zod10.z.object({
|
|
748
|
-
entity: import_zod10.z.literal("mealPlanJoinRequest"),
|
|
749
|
-
id: MealPlanJoinRequestIdSchema
|
|
750
|
-
}),
|
|
751
|
-
import_zod10.z.object({
|
|
752
|
-
entity: import_zod10.z.literal("mealPlanChangeRequest"),
|
|
753
|
-
id: MealPlanChangeRequestIdSchema
|
|
754
|
-
}),
|
|
755
|
-
import_zod10.z.object({
|
|
756
|
-
entity: import_zod10.z.literal("mealPlanShareLink"),
|
|
757
|
-
id: MealPlanShareLinkIdSchema
|
|
758
|
-
}),
|
|
759
|
-
import_zod10.z.object({
|
|
760
|
-
entity: import_zod10.z.literal("mealPlanChatMessage"),
|
|
761
|
-
id: MealPlanChatMessageIdSchema
|
|
762
|
-
}),
|
|
763
|
-
import_zod10.z.object({
|
|
764
|
-
entity: import_zod10.z.literal("mealGroup"),
|
|
765
|
-
id: MealGroupIdSchema
|
|
766
|
-
})
|
|
688
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("article"), id: ArticleIdSchema }),
|
|
689
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("comment"), id: CommentIdSchema }),
|
|
690
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("subscription"), id: SubscriptionIdSchema }),
|
|
691
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("coupon"), id: CouponIdSchema }),
|
|
692
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlan"), id: MealPlanIdSchema }),
|
|
693
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanInvite"), id: MealPlanInviteIdSchema }),
|
|
694
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanJoinRequest"), id: MealPlanJoinRequestIdSchema }),
|
|
695
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanChangeRequest"), id: MealPlanChangeRequestIdSchema }),
|
|
696
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanShareLink"), id: MealPlanShareLinkIdSchema }),
|
|
697
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanChatMessage"), id: MealPlanChatMessageIdSchema }),
|
|
698
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealGroup"), id: MealGroupIdSchema })
|
|
767
699
|
]);
|
|
768
700
|
|
|
769
701
|
// src/domain/friend/friend.schema.ts
|
|
770
702
|
var import_zod11 = require("zod");
|
|
771
|
-
var FriendRequestStatusSchema = import_zod11.z.enum([
|
|
772
|
-
"PENDING",
|
|
773
|
-
"ACCEPTED",
|
|
774
|
-
"REJECTED",
|
|
775
|
-
"CANCELED"
|
|
776
|
-
]);
|
|
703
|
+
var FriendRequestStatusSchema = import_zod11.z.enum(["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]);
|
|
777
704
|
var FriendMealAvailabilitySchema = import_zod11.z.object({
|
|
778
705
|
isHungry: import_zod11.z.boolean(),
|
|
779
706
|
mealProposalAllowed: import_zod11.z.boolean(),
|
|
@@ -806,18 +733,11 @@ var MealStatusResponseSchema = import_zod12.z.object({
|
|
|
806
733
|
updatedAt: ISODateStringSchema,
|
|
807
734
|
secondsToAutoOff: import_zod12.z.number().int().min(0)
|
|
808
735
|
});
|
|
809
|
-
var MealStatusActionSchema = import_zod12.z.enum([
|
|
810
|
-
"ARTICLE_UPLOAD",
|
|
811
|
-
"SET_MANNUALY"
|
|
812
|
-
]);
|
|
736
|
+
var MealStatusActionSchema = import_zod12.z.enum(["ARTICLE_UPLOAD", "SET_MANNUALY"]);
|
|
813
737
|
var UpdateMealStatusRequestSchema = import_zod12.z.object({
|
|
814
738
|
action: MealStatusActionSchema.optional().default("SET_MANNUALY")
|
|
815
739
|
});
|
|
816
|
-
var MealStatusSchema = import_zod12.z.enum([
|
|
817
|
-
"ALL",
|
|
818
|
-
"HUNGRY",
|
|
819
|
-
"NOT_HUNGRY"
|
|
820
|
-
]);
|
|
740
|
+
var MealStatusSchema = import_zod12.z.enum(["ALL", "HUNGRY", "NOT_HUNGRY"]);
|
|
821
741
|
var FriendMealQuerySchema = import_zod12.z.object({
|
|
822
742
|
status: MealStatusSchema.optional().default("ALL")
|
|
823
743
|
});
|
|
@@ -828,57 +748,176 @@ var FriendMealItemResponseSchema = MemberCoreSchema.extend({
|
|
|
828
748
|
});
|
|
829
749
|
|
|
830
750
|
// src/domain/meal-plan/meal-plan.schema.ts
|
|
831
|
-
var
|
|
751
|
+
var import_zod19 = require("zod");
|
|
832
752
|
|
|
833
753
|
// src/domain/meal-plan/meal-plan-decision.schema.ts
|
|
754
|
+
var import_zod14 = require("zod");
|
|
755
|
+
|
|
756
|
+
// src/domain/food/food.schema.ts
|
|
834
757
|
var import_zod13 = require("zod");
|
|
835
|
-
var
|
|
836
|
-
var
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
758
|
+
var FoodGranularitySchema = import_zod13.z.enum(["main_dish", "side_dish", "beverage", "sauce"]);
|
|
759
|
+
var CuisineTagSchema = import_zod13.z.enum([
|
|
760
|
+
"korean",
|
|
761
|
+
"western",
|
|
762
|
+
"chinese",
|
|
763
|
+
"japanese",
|
|
764
|
+
"mexican",
|
|
765
|
+
"indian",
|
|
766
|
+
"asian",
|
|
767
|
+
"snack",
|
|
768
|
+
"dessert",
|
|
769
|
+
"beverage",
|
|
770
|
+
"unknown"
|
|
771
|
+
]);
|
|
772
|
+
var FoodResolvedMatchSourceSchema = import_zod13.z.enum(["category", "alias", "lexical", "semantic"]);
|
|
773
|
+
var FoodCodeManifestImageSchema = import_zod13.z.object({
|
|
774
|
+
src: import_zod13.z.string().min(1),
|
|
775
|
+
avifSrcset: import_zod13.z.string().min(1).optional(),
|
|
776
|
+
thumbhashDataURL: import_zod13.z.string().min(1).optional(),
|
|
777
|
+
aspectRatio: import_zod13.z.number().positive().optional()
|
|
778
|
+
});
|
|
779
|
+
var FoodCodeManifestItemSchema = import_zod13.z.object({
|
|
780
|
+
code: FoodCodeSchema,
|
|
781
|
+
label: FoodLabelSchema,
|
|
782
|
+
aliases: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
|
|
783
|
+
parentCategory: import_zod13.z.string().min(1),
|
|
784
|
+
cuisineTags: import_zod13.z.array(CuisineTagSchema).default([]),
|
|
785
|
+
categoryTags: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
|
|
786
|
+
semanticTags: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
|
|
787
|
+
granularity: FoodGranularitySchema,
|
|
788
|
+
searchable: import_zod13.z.boolean(),
|
|
789
|
+
recommendable: import_zod13.z.boolean(),
|
|
790
|
+
previewEnabled: import_zod13.z.boolean(),
|
|
791
|
+
imageUrl: import_zod13.z.string().min(1).nullable().optional(),
|
|
792
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
793
|
+
popularity: import_zod13.z.number().nonnegative().optional(),
|
|
794
|
+
source: import_zod13.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
|
|
795
|
+
});
|
|
796
|
+
var FoodCodeManifestSchema = import_zod13.z.object({
|
|
797
|
+
version: import_zod13.z.string().min(1),
|
|
798
|
+
updatedAt: ISODateTimeStringSchema,
|
|
799
|
+
taxonomyVersion: import_zod13.z.string().min(1),
|
|
800
|
+
etag: import_zod13.z.string().min(1).optional(),
|
|
801
|
+
items: import_zod13.z.array(FoodCodeManifestItemSchema),
|
|
802
|
+
categoryIndex: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.array(FoodCodeSchema)),
|
|
803
|
+
aliasIndex: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.array(FoodCodeSchema)).optional()
|
|
804
|
+
});
|
|
805
|
+
var FoodImageIndexItemSchema = import_zod13.z.object({
|
|
806
|
+
code: FoodCodeSchema,
|
|
807
|
+
label: FoodLabelSchema,
|
|
808
|
+
imageUrl: import_zod13.z.string().min(1).nullable(),
|
|
809
|
+
image: FoodCodeManifestImageSchema.nullable(),
|
|
810
|
+
source: import_zod13.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
|
|
811
|
+
});
|
|
812
|
+
var FoodImageIndexManifestSchema = import_zod13.z.object({
|
|
813
|
+
version: import_zod13.z.string().min(1),
|
|
814
|
+
updatedAt: ISODateTimeStringSchema,
|
|
815
|
+
taxonomyVersion: import_zod13.z.string().min(1),
|
|
816
|
+
items: import_zod13.z.array(FoodImageIndexItemSchema)
|
|
817
|
+
});
|
|
818
|
+
var ResolvedFoodCodeSchema = import_zod13.z.object({
|
|
819
|
+
code: FoodCodeSchema,
|
|
820
|
+
label: FoodLabelSchema,
|
|
821
|
+
matchedBy: FoodResolvedMatchSourceSchema,
|
|
822
|
+
score: import_zod13.z.number(),
|
|
823
|
+
granularity: FoodGranularitySchema,
|
|
824
|
+
imageUrl: import_zod13.z.string().min(1).nullable().optional()
|
|
825
|
+
});
|
|
826
|
+
var BooleanQuerySchema = import_zod13.z.preprocess((value) => {
|
|
827
|
+
if (value === "true") return true;
|
|
828
|
+
if (value === "false") return false;
|
|
829
|
+
return value;
|
|
830
|
+
}, import_zod13.z.boolean());
|
|
831
|
+
var FoodResolveQuerySchema = import_zod13.z.object({
|
|
832
|
+
q: import_zod13.z.string().default(""),
|
|
833
|
+
limit: import_zod13.z.coerce.number().int().min(1).max(100).optional().default(30),
|
|
834
|
+
recommendableOnly: BooleanQuerySchema.optional().default(true)
|
|
835
|
+
});
|
|
836
|
+
var FoodSearchQuerySchema = import_zod13.z.object({
|
|
837
|
+
q: import_zod13.z.string().default(""),
|
|
838
|
+
limit: import_zod13.z.coerce.number().int().min(1).max(100).optional().default(20)
|
|
839
|
+
});
|
|
840
|
+
var FoodResolveResponseSchema = import_zod13.z.object({
|
|
841
|
+
query: import_zod13.z.string(),
|
|
842
|
+
items: import_zod13.z.array(ResolvedFoodCodeSchema)
|
|
843
|
+
});
|
|
844
|
+
var FoodSearchResponseSchema = FoodResolveResponseSchema;
|
|
845
|
+
var FoodAiClassMappingStatusSchema = import_zod13.z.enum([
|
|
846
|
+
"exact",
|
|
847
|
+
"broad",
|
|
848
|
+
"narrow",
|
|
849
|
+
"merged",
|
|
850
|
+
"ignored",
|
|
851
|
+
"review_required"
|
|
852
|
+
]);
|
|
853
|
+
var AiClassFoodCodeMappingSchema = import_zod13.z.object({
|
|
854
|
+
classId: import_zod13.z.number().int().nonnegative(),
|
|
855
|
+
aiLabel: import_zod13.z.string().min(1),
|
|
856
|
+
aiAliases: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
|
|
857
|
+
representativeCode: FoodCodeSchema.nullable(),
|
|
858
|
+
candidateCodes: import_zod13.z.array(FoodCodeSchema).default([]),
|
|
859
|
+
mappingStatus: FoodAiClassMappingStatusSchema,
|
|
860
|
+
granularity: FoodGranularitySchema,
|
|
861
|
+
searchable: import_zod13.z.boolean(),
|
|
862
|
+
recommendable: import_zod13.z.boolean(),
|
|
863
|
+
reason: import_zod13.z.string().min(1).optional()
|
|
864
|
+
});
|
|
865
|
+
var AiClassToFoodCodeMapManifestSchema = import_zod13.z.object({
|
|
866
|
+
version: import_zod13.z.string().min(1),
|
|
867
|
+
updatedAt: ISODateTimeStringSchema,
|
|
868
|
+
modelTaxonomyVersion: import_zod13.z.string().min(1),
|
|
869
|
+
serviceTaxonomyVersion: import_zod13.z.string().min(1),
|
|
870
|
+
classes: import_zod13.z.array(AiClassFoodCodeMappingSchema)
|
|
871
|
+
});
|
|
872
|
+
|
|
873
|
+
// src/domain/meal-plan/meal-plan-decision.schema.ts
|
|
874
|
+
var MealPlanLatitudeSchema = import_zod14.z.number().brand();
|
|
875
|
+
var MealPlanLongitudeSchema = import_zod14.z.number().brand();
|
|
876
|
+
var MealPlanLocationCandidateIdSchema = import_zod14.z.string().min(1).brand();
|
|
877
|
+
var MealPlanMenuCandidateIdSchema = import_zod14.z.string().min(1).brand();
|
|
878
|
+
var MealPlanDecisionStageIdSchema = import_zod14.z.string().uuid().brand();
|
|
879
|
+
var MealPlanVoteIdSchema = import_zod14.z.string().uuid().brand();
|
|
880
|
+
var MealPlanLocationCandidateSourceSchema = import_zod14.z.enum([
|
|
842
881
|
"manual",
|
|
882
|
+
"map-marker",
|
|
843
883
|
"midpoint",
|
|
884
|
+
"user-location",
|
|
844
885
|
"search",
|
|
845
886
|
"recent-place",
|
|
846
887
|
"fallback"
|
|
847
888
|
]);
|
|
848
|
-
var MealPlanLocationCandidateSchema =
|
|
889
|
+
var MealPlanLocationCandidateSchema = import_zod14.z.object({
|
|
849
890
|
locationId: MealPlanLocationCandidateIdSchema,
|
|
850
|
-
placeName:
|
|
891
|
+
placeName: import_zod14.z.string().min(1),
|
|
851
892
|
lat: MealPlanLatitudeSchema,
|
|
852
893
|
lng: MealPlanLongitudeSchema,
|
|
853
|
-
address:
|
|
894
|
+
address: import_zod14.z.string().default(""),
|
|
854
895
|
source: MealPlanLocationCandidateSourceSchema.default("manual"),
|
|
855
896
|
createdBy: MemberIdSchema.optional(),
|
|
856
897
|
createdAt: ISODateTimeStringSchema.optional()
|
|
857
898
|
});
|
|
858
|
-
var MealPlanMenuCandidateSourceSchema =
|
|
899
|
+
var MealPlanMenuCandidateSourceSchema = import_zod14.z.enum([
|
|
859
900
|
"external-recommendation",
|
|
860
901
|
"prefer-menu",
|
|
861
902
|
"recent-menu",
|
|
862
903
|
"fallback",
|
|
863
904
|
"manual-search"
|
|
864
905
|
]);
|
|
865
|
-
var MealPlanMenuCandidateSchema =
|
|
906
|
+
var MealPlanMenuCandidateSchema = import_zod14.z.object({
|
|
866
907
|
menuCandidateId: MealPlanMenuCandidateIdSchema,
|
|
867
908
|
menu: FoodSchema,
|
|
868
909
|
source: MealPlanMenuCandidateSourceSchema,
|
|
869
|
-
score:
|
|
910
|
+
score: import_zod14.z.number().default(0),
|
|
911
|
+
imageUrl: import_zod14.z.string().min(1).nullable().default(null),
|
|
912
|
+
image: FoodCodeManifestImageSchema.nullable().default(null),
|
|
870
913
|
createdAt: ISODateTimeStringSchema
|
|
871
914
|
});
|
|
872
915
|
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
873
916
|
candidateId: RestaurantIdSchema.optional(),
|
|
874
|
-
source:
|
|
875
|
-
"search",
|
|
876
|
-
"fallback",
|
|
877
|
-
"manual"
|
|
878
|
-
]).optional(),
|
|
917
|
+
source: import_zod14.z.enum(["search", "fallback", "manual"]).optional(),
|
|
879
918
|
createdAt: ISODateTimeStringSchema.optional()
|
|
880
919
|
});
|
|
881
|
-
var MealPlanDecisionStageTypeSchema =
|
|
920
|
+
var MealPlanDecisionStageTypeSchema = import_zod14.z.enum([
|
|
882
921
|
"DATE",
|
|
883
922
|
"TIME",
|
|
884
923
|
"AREA",
|
|
@@ -886,108 +925,90 @@ var MealPlanDecisionStageTypeSchema = import_zod13.z.enum([
|
|
|
886
925
|
"RESTAURANT",
|
|
887
926
|
"FINAL_CONFIRMATION"
|
|
888
927
|
]);
|
|
889
|
-
var MealPlanDecisionStageStatusSchema =
|
|
928
|
+
var MealPlanDecisionStageStatusSchema = import_zod14.z.enum([
|
|
890
929
|
"OPEN",
|
|
891
930
|
"COMPLETED",
|
|
892
931
|
"REOPENED"
|
|
893
932
|
]);
|
|
894
|
-
var MealPlanRestaurantSearchStatusSchema =
|
|
933
|
+
var MealPlanRestaurantSearchStatusSchema = import_zod14.z.enum([
|
|
895
934
|
"IDLE",
|
|
896
935
|
"PENDING",
|
|
897
936
|
"READY",
|
|
898
937
|
"FAILED",
|
|
899
938
|
"STALE"
|
|
900
939
|
]);
|
|
901
|
-
var MealPlanRestaurantSearchStateSchema =
|
|
902
|
-
searchKey:
|
|
940
|
+
var MealPlanRestaurantSearchStateSchema = import_zod14.z.object({
|
|
941
|
+
searchKey: import_zod14.z.string().min(1).nullable(),
|
|
903
942
|
status: MealPlanRestaurantSearchStatusSchema,
|
|
904
943
|
startedAt: ISODateTimeStringSchema.nullable(),
|
|
905
944
|
completedAt: ISODateTimeStringSchema.nullable(),
|
|
906
|
-
version:
|
|
907
|
-
candidateCount:
|
|
908
|
-
errorMessage:
|
|
945
|
+
version: import_zod14.z.number().int().min(0),
|
|
946
|
+
candidateCount: import_zod14.z.number().int().min(0),
|
|
947
|
+
errorMessage: import_zod14.z.string().nullable().default(null)
|
|
909
948
|
});
|
|
910
|
-
var MealPlanDecisionStageMetadataSchema =
|
|
949
|
+
var MealPlanDecisionStageMetadataSchema = import_zod14.z.object({
|
|
911
950
|
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
912
|
-
}).catchall(
|
|
913
|
-
var MealPlanVoteTypeSchema =
|
|
951
|
+
}).catchall(import_zod14.z.unknown());
|
|
952
|
+
var MealPlanVoteTypeSchema = import_zod14.z.enum([
|
|
914
953
|
"PICK",
|
|
915
954
|
"EXCLUDE",
|
|
916
955
|
"PREFER",
|
|
917
956
|
"READY"
|
|
918
957
|
]);
|
|
919
|
-
var MealPlanDecisionCandidateSchema =
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
value: TimeHHmmStringSchema
|
|
927
|
-
}),
|
|
928
|
-
import_zod13.z.object({
|
|
929
|
-
stageType: import_zod13.z.literal("AREA"),
|
|
930
|
-
value: MealPlanLocationCandidateSchema
|
|
931
|
-
}),
|
|
932
|
-
import_zod13.z.object({
|
|
933
|
-
stageType: import_zod13.z.literal("MENU"),
|
|
934
|
-
value: MealPlanMenuCandidateSchema
|
|
935
|
-
}),
|
|
936
|
-
import_zod13.z.object({
|
|
937
|
-
stageType: import_zod13.z.literal("RESTAURANT"),
|
|
938
|
-
value: MealPlanRestaurantCandidateSchema
|
|
939
|
-
}),
|
|
940
|
-
import_zod13.z.object({
|
|
941
|
-
stageType: import_zod13.z.literal("FINAL_CONFIRMATION"),
|
|
942
|
-
value: import_zod13.z.literal("READY")
|
|
943
|
-
})
|
|
958
|
+
var MealPlanDecisionCandidateSchema = import_zod14.z.discriminatedUnion("stageType", [
|
|
959
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("DATE"), value: ISODateStringSchema }),
|
|
960
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("TIME"), value: TimeHHmmStringSchema }),
|
|
961
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("AREA"), value: MealPlanLocationCandidateSchema }),
|
|
962
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("MENU"), value: MealPlanMenuCandidateSchema }),
|
|
963
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("RESTAURANT"), value: MealPlanRestaurantCandidateSchema }),
|
|
964
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("FINAL_CONFIRMATION"), value: import_zod14.z.literal("READY") })
|
|
944
965
|
]);
|
|
945
|
-
var MealPlanVoteSchema =
|
|
966
|
+
var MealPlanVoteSchema = import_zod14.z.object({
|
|
946
967
|
voteId: MealPlanVoteIdSchema,
|
|
947
968
|
voterId: MemberIdSchema.nullable(),
|
|
948
|
-
guestId:
|
|
969
|
+
guestId: import_zod14.z.string().min(1).nullable(),
|
|
949
970
|
voteType: MealPlanVoteTypeSchema,
|
|
950
971
|
candidate: MealPlanDecisionCandidateSchema,
|
|
951
972
|
createdAt: ISODateTimeStringSchema
|
|
952
973
|
});
|
|
953
|
-
var MealPlanDecisionStageResponseSchema =
|
|
974
|
+
var MealPlanDecisionStageResponseSchema = import_zod14.z.object({
|
|
954
975
|
stageId: MealPlanDecisionStageIdSchema,
|
|
955
976
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
956
977
|
status: MealPlanDecisionStageStatusSchema,
|
|
957
|
-
candidates:
|
|
958
|
-
votes:
|
|
978
|
+
candidates: import_zod14.z.array(MealPlanDecisionCandidateSchema),
|
|
979
|
+
votes: import_zod14.z.array(MealPlanVoteSchema),
|
|
959
980
|
selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
|
|
960
981
|
metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
|
|
961
982
|
openedAt: ISODateTimeStringSchema,
|
|
962
983
|
completedAt: ISODateTimeStringSchema.nullable(),
|
|
963
984
|
reopenedAt: ISODateTimeStringSchema.nullable()
|
|
964
985
|
});
|
|
965
|
-
var CreateMealPlanVoteRequestSchema =
|
|
986
|
+
var CreateMealPlanVoteRequestSchema = import_zod14.z.object({
|
|
966
987
|
voteType: MealPlanVoteTypeSchema,
|
|
967
988
|
candidate: MealPlanDecisionCandidateSchema
|
|
968
989
|
});
|
|
969
|
-
var CompleteMealPlanDecisionStageRequestSchema =
|
|
990
|
+
var CompleteMealPlanDecisionStageRequestSchema = import_zod14.z.object({
|
|
970
991
|
selectedCandidate: MealPlanDecisionCandidateSchema
|
|
971
992
|
});
|
|
972
|
-
var MealPlanChangeRequestStatusSchema =
|
|
993
|
+
var MealPlanChangeRequestStatusSchema = import_zod14.z.enum([
|
|
973
994
|
"PENDING",
|
|
974
995
|
"ACCEPTED",
|
|
975
996
|
"REJECTED",
|
|
976
997
|
"CANCELLED"
|
|
977
998
|
]);
|
|
978
|
-
var CreateMealPlanChangeRequestSchema =
|
|
999
|
+
var CreateMealPlanChangeRequestSchema = import_zod14.z.object({
|
|
979
1000
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
980
|
-
reason:
|
|
1001
|
+
reason: import_zod14.z.string().min(1).max(500),
|
|
981
1002
|
proposedCandidate: MealPlanDecisionCandidateSchema.optional()
|
|
982
1003
|
});
|
|
983
|
-
var MealPlanChangeRequestSummarySchema =
|
|
1004
|
+
var MealPlanChangeRequestSummarySchema = import_zod14.z.object({
|
|
984
1005
|
changeRequestId: MealPlanChangeRequestIdSchema,
|
|
985
1006
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
986
1007
|
status: MealPlanChangeRequestStatusSchema,
|
|
987
|
-
reason:
|
|
1008
|
+
reason: import_zod14.z.string(),
|
|
988
1009
|
requestedAt: ISODateTimeStringSchema
|
|
989
1010
|
});
|
|
990
|
-
var MealPlanDecisionTaskKeySchema =
|
|
1011
|
+
var MealPlanDecisionTaskKeySchema = import_zod14.z.enum([
|
|
991
1012
|
"SCHEDULE_DATE",
|
|
992
1013
|
"SCHEDULE_TIME",
|
|
993
1014
|
"LOCATION_CANDIDATE",
|
|
@@ -999,14 +1020,13 @@ var MealPlanDecisionTaskKeySchema = import_zod13.z.enum([
|
|
|
999
1020
|
"RESTAURANT_PICK",
|
|
1000
1021
|
"FINAL_CONFIRMATION"
|
|
1001
1022
|
]);
|
|
1002
|
-
var MealPlanDecisionTaskStatusSchema =
|
|
1023
|
+
var MealPlanDecisionTaskStatusSchema = import_zod14.z.enum([
|
|
1003
1024
|
"LOCKED",
|
|
1004
1025
|
"OPEN",
|
|
1005
|
-
"READY",
|
|
1006
1026
|
"RESOLVED",
|
|
1007
1027
|
"STALE"
|
|
1008
1028
|
]);
|
|
1009
|
-
var MealPlanDecisionFinalFieldSchema =
|
|
1029
|
+
var MealPlanDecisionFinalFieldSchema = import_zod14.z.enum([
|
|
1010
1030
|
"date",
|
|
1011
1031
|
"time",
|
|
1012
1032
|
"meetingAt",
|
|
@@ -1014,82 +1034,72 @@ var MealPlanDecisionFinalFieldSchema = import_zod13.z.enum([
|
|
|
1014
1034
|
"menu",
|
|
1015
1035
|
"restaurant"
|
|
1016
1036
|
]);
|
|
1017
|
-
var MealPlanDecisionSnapshotStatusSchema =
|
|
1037
|
+
var MealPlanDecisionSnapshotStatusSchema = import_zod14.z.enum([
|
|
1018
1038
|
"CANDIDATE",
|
|
1019
1039
|
"PROVISIONAL",
|
|
1020
1040
|
"FINAL",
|
|
1021
1041
|
"STALE"
|
|
1022
1042
|
]);
|
|
1023
|
-
var MealPlanDecisionReasonSchema =
|
|
1043
|
+
var MealPlanDecisionReasonSchema = import_zod14.z.enum([
|
|
1024
1044
|
"COMMON_SCHEDULE",
|
|
1025
1045
|
"TOP_VOTED_LOCATION",
|
|
1026
1046
|
"TOP_PICKED_MENU",
|
|
1027
1047
|
"TOP_PICKED_RESTAURANT",
|
|
1028
1048
|
"OWNER_CONFIRMED",
|
|
1029
|
-
"TASK_ALL_READY",
|
|
1030
1049
|
"MANUAL_SELECTION"
|
|
1031
1050
|
]);
|
|
1032
|
-
var MealPlanDecisionActorTypeSchema =
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
]);
|
|
1037
|
-
var MealPlanDecisionSnapshotSchema = import_zod13.z.object({
|
|
1038
|
-
snapshotId: import_zod13.z.string().uuid(),
|
|
1039
|
-
mealPlanId: import_zod13.z.string().uuid(),
|
|
1051
|
+
var MealPlanDecisionActorTypeSchema = import_zod14.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
|
|
1052
|
+
var MealPlanDecisionSnapshotSchema = import_zod14.z.object({
|
|
1053
|
+
snapshotId: import_zod14.z.string().uuid(),
|
|
1054
|
+
mealPlanId: import_zod14.z.string().uuid(),
|
|
1040
1055
|
field: MealPlanDecisionFinalFieldSchema,
|
|
1041
|
-
value:
|
|
1056
|
+
value: import_zod14.z.unknown(),
|
|
1042
1057
|
status: MealPlanDecisionSnapshotStatusSchema,
|
|
1043
1058
|
reason: MealPlanDecisionReasonSchema,
|
|
1044
|
-
score:
|
|
1045
|
-
sourceEvent:
|
|
1059
|
+
score: import_zod14.z.number().nullable().default(null),
|
|
1060
|
+
sourceEvent: import_zod14.z.string().min(1),
|
|
1046
1061
|
sourceActorType: MealPlanDecisionActorTypeSchema,
|
|
1047
1062
|
sourceMemberId: MemberIdSchema.nullable(),
|
|
1048
|
-
sourceGuestId:
|
|
1049
|
-
sourceParticipantId:
|
|
1050
|
-
sourceVersion:
|
|
1051
|
-
dependencyHash:
|
|
1052
|
-
dependencyFields:
|
|
1063
|
+
sourceGuestId: import_zod14.z.string().min(1).nullable(),
|
|
1064
|
+
sourceParticipantId: import_zod14.z.string().uuid().nullable(),
|
|
1065
|
+
sourceVersion: import_zod14.z.number().int().min(0),
|
|
1066
|
+
dependencyHash: import_zod14.z.string().min(1),
|
|
1067
|
+
dependencyFields: import_zod14.z.array(MealPlanDecisionFinalFieldSchema),
|
|
1053
1068
|
createdAt: ISODateTimeStringSchema,
|
|
1054
1069
|
staleAt: ISODateTimeStringSchema.nullable()
|
|
1055
1070
|
});
|
|
1056
|
-
var MealPlanDecisionTaskProgressSchema =
|
|
1071
|
+
var MealPlanDecisionTaskProgressSchema = import_zod14.z.object({
|
|
1057
1072
|
taskKey: MealPlanDecisionTaskKeySchema,
|
|
1058
1073
|
status: MealPlanDecisionTaskStatusSchema,
|
|
1059
|
-
|
|
1060
|
-
participantCount: import_zod13.z.number().int().min(0),
|
|
1061
|
-
blockers: import_zod13.z.array(import_zod13.z.string()).default([]),
|
|
1074
|
+
blockers: import_zod14.z.array(import_zod14.z.string()).default([]),
|
|
1062
1075
|
updatedAt: ISODateTimeStringSchema
|
|
1063
1076
|
});
|
|
1064
|
-
var MealPlanDecisionProgressSchema =
|
|
1065
|
-
mealPlanId:
|
|
1066
|
-
status:
|
|
1067
|
-
tasks:
|
|
1068
|
-
final:
|
|
1069
|
-
provisional:
|
|
1070
|
-
snapshots:
|
|
1071
|
-
version:
|
|
1077
|
+
var MealPlanDecisionProgressSchema = import_zod14.z.object({
|
|
1078
|
+
mealPlanId: import_zod14.z.string().uuid(),
|
|
1079
|
+
status: import_zod14.z.string().min(1),
|
|
1080
|
+
tasks: import_zod14.z.array(MealPlanDecisionTaskProgressSchema),
|
|
1081
|
+
final: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()),
|
|
1082
|
+
provisional: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()),
|
|
1083
|
+
snapshots: import_zod14.z.array(MealPlanDecisionSnapshotSchema),
|
|
1084
|
+
version: import_zod14.z.number().int().min(0),
|
|
1072
1085
|
updatedAt: ISODateTimeStringSchema
|
|
1073
1086
|
});
|
|
1074
|
-
var
|
|
1075
|
-
|
|
1076
|
-
});
|
|
1077
|
-
var ReopenMealPlanDecisionTaskRequestSchema = import_zod13.z.object({
|
|
1078
|
-
reason: import_zod13.z.string().max(500).optional()
|
|
1087
|
+
var ReopenMealPlanDecisionTaskRequestSchema = import_zod14.z.object({
|
|
1088
|
+
reason: import_zod14.z.string().max(500).optional()
|
|
1079
1089
|
});
|
|
1080
|
-
var ConfirmMealPlanDecisionSnapshotRequestSchema =
|
|
1081
|
-
snapshotId:
|
|
1090
|
+
var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod14.z.object({
|
|
1091
|
+
snapshotId: import_zod14.z.string().uuid()
|
|
1082
1092
|
});
|
|
1083
1093
|
|
|
1084
1094
|
// src/domain/meal-plan/meal-plan-participant.schema.ts
|
|
1085
|
-
var
|
|
1086
|
-
var MealPlanParticipantIdSchema =
|
|
1087
|
-
var MealPlanParticipantRoleSchema =
|
|
1095
|
+
var import_zod15 = require("zod");
|
|
1096
|
+
var MealPlanParticipantIdSchema = import_zod15.z.string().uuid().brand();
|
|
1097
|
+
var MealPlanParticipantRoleSchema = import_zod15.z.enum([
|
|
1088
1098
|
"OWNER",
|
|
1089
1099
|
"FRIEND",
|
|
1090
1100
|
"GUEST"
|
|
1091
1101
|
]);
|
|
1092
|
-
var MealPlanParticipantStatusSchema =
|
|
1102
|
+
var MealPlanParticipantStatusSchema = import_zod15.z.enum([
|
|
1093
1103
|
"INVITED",
|
|
1094
1104
|
"REQUESTED",
|
|
1095
1105
|
"JOINED",
|
|
@@ -1098,17 +1108,17 @@ var MealPlanParticipantStatusSchema = import_zod14.z.enum([
|
|
|
1098
1108
|
"LEFT",
|
|
1099
1109
|
"REMOVED"
|
|
1100
1110
|
]);
|
|
1101
|
-
var MealPlanJoinSourceSchema =
|
|
1111
|
+
var MealPlanJoinSourceSchema = import_zod15.z.enum([
|
|
1102
1112
|
"OWNER",
|
|
1103
1113
|
"FRIEND_INVITE",
|
|
1104
1114
|
"LINK_GUEST",
|
|
1105
1115
|
"NEARBY_FRIENDS"
|
|
1106
1116
|
]);
|
|
1107
|
-
var MealPlanGuestParticipantSchema =
|
|
1108
|
-
guestId:
|
|
1109
|
-
nickname:
|
|
1117
|
+
var MealPlanGuestParticipantSchema = import_zod15.z.object({
|
|
1118
|
+
guestId: import_zod15.z.string().min(1),
|
|
1119
|
+
nickname: import_zod15.z.string().min(1).max(50)
|
|
1110
1120
|
});
|
|
1111
|
-
var MealPlanParticipantResponseSchema =
|
|
1121
|
+
var MealPlanParticipantResponseSchema = import_zod15.z.object({
|
|
1112
1122
|
participantId: MealPlanParticipantIdSchema,
|
|
1113
1123
|
mealPlanId: MealPlanIdSchema,
|
|
1114
1124
|
member: MemberCoreSchema.nullable(),
|
|
@@ -1119,66 +1129,66 @@ var MealPlanParticipantResponseSchema = import_zod14.z.object({
|
|
|
1119
1129
|
joinedAt: ISODateTimeStringSchema.nullable(),
|
|
1120
1130
|
readyAt: ISODateTimeStringSchema.nullable()
|
|
1121
1131
|
});
|
|
1122
|
-
var CreateMealPlanParticipantRequestSchema =
|
|
1132
|
+
var CreateMealPlanParticipantRequestSchema = import_zod15.z.object({
|
|
1123
1133
|
memberId: MemberIdSchema.optional(),
|
|
1124
|
-
guestNickname:
|
|
1134
|
+
guestNickname: import_zod15.z.string().min(1).max(50).optional(),
|
|
1125
1135
|
source: MealPlanJoinSourceSchema
|
|
1126
1136
|
});
|
|
1127
1137
|
|
|
1128
1138
|
// src/domain/meal-plan/meal-plan-invite.schema.ts
|
|
1129
|
-
var
|
|
1130
|
-
var MealPlanInviteStatusSchema =
|
|
1139
|
+
var import_zod16 = require("zod");
|
|
1140
|
+
var MealPlanInviteStatusSchema = import_zod16.z.enum([
|
|
1131
1141
|
"PENDING",
|
|
1132
1142
|
"ACCEPTED",
|
|
1133
1143
|
"DECLINED",
|
|
1134
1144
|
"CANCELLED",
|
|
1135
1145
|
"EXPIRED"
|
|
1136
1146
|
]);
|
|
1137
|
-
var CreateMealPlanInviteRequestSchema =
|
|
1147
|
+
var CreateMealPlanInviteRequestSchema = import_zod16.z.object({
|
|
1138
1148
|
inviteeId: MemberIdSchema,
|
|
1139
|
-
message:
|
|
1149
|
+
message: import_zod16.z.string().max(500).default("")
|
|
1140
1150
|
});
|
|
1141
|
-
var MealPlanInviteSummarySchema =
|
|
1151
|
+
var MealPlanInviteSummarySchema = import_zod16.z.object({
|
|
1142
1152
|
inviteId: MealPlanInviteIdSchema,
|
|
1143
1153
|
mealPlanId: MealPlanIdSchema,
|
|
1144
1154
|
inviter: MemberCoreSchema,
|
|
1145
1155
|
invitee: MemberCoreSchema,
|
|
1146
1156
|
status: MealPlanInviteStatusSchema,
|
|
1147
|
-
message:
|
|
1157
|
+
message: import_zod16.z.string().max(500),
|
|
1148
1158
|
createdAt: ISODateTimeStringSchema,
|
|
1149
1159
|
respondedAt: ISODateTimeStringSchema.nullable()
|
|
1150
1160
|
});
|
|
1151
|
-
var MealPlanInviteListResponseSchema =
|
|
1152
|
-
var SendMealPlanInviteResponseSchema =
|
|
1161
|
+
var MealPlanInviteListResponseSchema = import_zod16.z.array(MealPlanInviteSummarySchema);
|
|
1162
|
+
var SendMealPlanInviteResponseSchema = import_zod16.z.object({
|
|
1153
1163
|
inviteId: MealPlanInviteIdSchema
|
|
1154
1164
|
});
|
|
1155
1165
|
|
|
1156
1166
|
// src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
|
|
1157
|
-
var
|
|
1158
|
-
var MealPlanNearbyFriendExposureIdSchema =
|
|
1159
|
-
var MealPlanNearbyFriendExposureStatusSchema =
|
|
1167
|
+
var import_zod17 = require("zod");
|
|
1168
|
+
var MealPlanNearbyFriendExposureIdSchema = import_zod17.z.string().uuid().brand();
|
|
1169
|
+
var MealPlanNearbyFriendExposureStatusSchema = import_zod17.z.enum([
|
|
1160
1170
|
"OPEN",
|
|
1161
1171
|
"CLOSED",
|
|
1162
1172
|
"EXPIRED"
|
|
1163
1173
|
]);
|
|
1164
|
-
var MealPlanNearbyFriendExposureNotificationStatusSchema =
|
|
1174
|
+
var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod17.z.enum([
|
|
1165
1175
|
"PENDING",
|
|
1166
1176
|
"SENT",
|
|
1167
1177
|
"PARTIAL",
|
|
1168
1178
|
"FAILED",
|
|
1169
1179
|
"SKIPPED"
|
|
1170
1180
|
]);
|
|
1171
|
-
var ExposeMealPlanToNearbyFriendsRequestSchema =
|
|
1172
|
-
radiusMeters:
|
|
1181
|
+
var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod17.z.object({
|
|
1182
|
+
radiusMeters: import_zod17.z.number().int().min(100).max(5e3).default(1e3),
|
|
1173
1183
|
expiresAt: ISODateTimeStringSchema.optional()
|
|
1174
1184
|
});
|
|
1175
|
-
var NearbyFriendExposureEligibilitySchema =
|
|
1176
|
-
canExpose:
|
|
1185
|
+
var NearbyFriendExposureEligibilitySchema = import_zod17.z.object({
|
|
1186
|
+
canExpose: import_zod17.z.boolean(),
|
|
1177
1187
|
locationConsentStatus: LocationConsentStatusSchema,
|
|
1178
|
-
nearbyMealPlanExposureAllowed:
|
|
1179
|
-
mealSuggestionAllowed:
|
|
1180
|
-
hasLastKnownLocation:
|
|
1181
|
-
missingRequirements:
|
|
1188
|
+
nearbyMealPlanExposureAllowed: import_zod17.z.boolean(),
|
|
1189
|
+
mealSuggestionAllowed: import_zod17.z.boolean(),
|
|
1190
|
+
hasLastKnownLocation: import_zod17.z.boolean(),
|
|
1191
|
+
missingRequirements: import_zod17.z.array(import_zod17.z.enum([
|
|
1182
1192
|
"LOCATION_PERMISSION",
|
|
1183
1193
|
"SERVICE_LOCATION_CONSENT",
|
|
1184
1194
|
"NEARBY_EXPOSURE_TOGGLE",
|
|
@@ -1186,7 +1196,7 @@ var NearbyFriendExposureEligibilitySchema = import_zod16.z.object({
|
|
|
1186
1196
|
"LAST_KNOWN_LOCATION"
|
|
1187
1197
|
]))
|
|
1188
1198
|
});
|
|
1189
|
-
var MealPlanNearbyFriendRejectionReasonSchema =
|
|
1199
|
+
var MealPlanNearbyFriendRejectionReasonSchema = import_zod17.z.enum([
|
|
1190
1200
|
"NOT_FRIEND",
|
|
1191
1201
|
"BLOCKED",
|
|
1192
1202
|
"LOCATION_CONSENT_REQUIRED",
|
|
@@ -1195,79 +1205,79 @@ var MealPlanNearbyFriendRejectionReasonSchema = import_zod16.z.enum([
|
|
|
1195
1205
|
"MEAL_SUGGESTION_DISABLED",
|
|
1196
1206
|
"NOT_HUNGRY"
|
|
1197
1207
|
]);
|
|
1198
|
-
var MealPlanNearbyFriendRejectionSummarySchema =
|
|
1208
|
+
var MealPlanNearbyFriendRejectionSummarySchema = import_zod17.z.object({
|
|
1199
1209
|
reason: MealPlanNearbyFriendRejectionReasonSchema,
|
|
1200
|
-
count:
|
|
1210
|
+
count: import_zod17.z.number().int().min(0)
|
|
1201
1211
|
});
|
|
1202
|
-
var ExposeMealPlanToNearbyFriendsResponseSchema =
|
|
1212
|
+
var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod17.z.object({
|
|
1203
1213
|
mealPlanId: MealPlanIdSchema,
|
|
1204
1214
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
|
|
1205
|
-
exposedFriendCount:
|
|
1206
|
-
rejectedFriendCount:
|
|
1215
|
+
exposedFriendCount: import_zod17.z.number().int().min(0),
|
|
1216
|
+
rejectedFriendCount: import_zod17.z.number().int().min(0),
|
|
1207
1217
|
notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
1208
|
-
rejectionSummary:
|
|
1218
|
+
rejectionSummary: import_zod17.z.array(MealPlanNearbyFriendRejectionSummarySchema)
|
|
1209
1219
|
});
|
|
1210
|
-
var MealPlanNearbyFriendExposureSummarySchema =
|
|
1220
|
+
var MealPlanNearbyFriendExposureSummarySchema = import_zod17.z.object({
|
|
1211
1221
|
exposureId: MealPlanNearbyFriendExposureIdSchema,
|
|
1212
1222
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
|
|
1213
1223
|
mealPlanId: MealPlanIdSchema,
|
|
1214
1224
|
status: MealPlanNearbyFriendExposureStatusSchema,
|
|
1215
|
-
radiusMeters:
|
|
1216
|
-
exposedFriendCount:
|
|
1225
|
+
radiusMeters: import_zod17.z.number().int().min(100),
|
|
1226
|
+
exposedFriendCount: import_zod17.z.number().int().min(0),
|
|
1217
1227
|
openedAt: ISODateTimeStringSchema,
|
|
1218
1228
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1219
1229
|
closedAt: ISODateTimeStringSchema.nullable()
|
|
1220
1230
|
});
|
|
1221
|
-
var MealPlanNearbyFriendExposureBatchSummarySchema =
|
|
1231
|
+
var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod17.z.object({
|
|
1222
1232
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
|
|
1223
1233
|
mealPlanId: MealPlanIdSchema,
|
|
1224
1234
|
status: MealPlanNearbyFriendExposureStatusSchema,
|
|
1225
|
-
radiusMeters:
|
|
1226
|
-
exposedFriendCount:
|
|
1227
|
-
rejectedFriendCount:
|
|
1228
|
-
rejectionSummary:
|
|
1235
|
+
radiusMeters: import_zod17.z.number().int().min(100),
|
|
1236
|
+
exposedFriendCount: import_zod17.z.number().int().min(0),
|
|
1237
|
+
rejectedFriendCount: import_zod17.z.number().int().min(0),
|
|
1238
|
+
rejectionSummary: import_zod17.z.array(MealPlanNearbyFriendRejectionSummarySchema),
|
|
1229
1239
|
notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
1230
1240
|
notificationSentAt: ISODateTimeStringSchema.nullable(),
|
|
1231
1241
|
openedAt: ISODateTimeStringSchema,
|
|
1232
1242
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1233
1243
|
closedAt: ISODateTimeStringSchema.nullable()
|
|
1234
1244
|
});
|
|
1235
|
-
var MealPlanJoinRequestStatusSchema =
|
|
1245
|
+
var MealPlanJoinRequestStatusSchema = import_zod17.z.enum([
|
|
1236
1246
|
"PENDING",
|
|
1237
1247
|
"ACCEPTED",
|
|
1238
1248
|
"REJECTED",
|
|
1239
1249
|
"CANCELLED"
|
|
1240
1250
|
]);
|
|
1241
|
-
var CreateMealPlanJoinRequestSchema =
|
|
1242
|
-
message:
|
|
1251
|
+
var CreateMealPlanJoinRequestSchema = import_zod17.z.object({
|
|
1252
|
+
message: import_zod17.z.string().max(500).default("")
|
|
1243
1253
|
});
|
|
1244
|
-
var MealPlanJoinRequestSummarySchema =
|
|
1254
|
+
var MealPlanJoinRequestSummarySchema = import_zod17.z.object({
|
|
1245
1255
|
joinRequestId: MealPlanJoinRequestIdSchema,
|
|
1246
1256
|
mealPlanId: MealPlanIdSchema,
|
|
1247
1257
|
requester: MemberCoreSchema,
|
|
1248
1258
|
status: MealPlanJoinRequestStatusSchema,
|
|
1249
|
-
message:
|
|
1259
|
+
message: import_zod17.z.string().max(500),
|
|
1250
1260
|
requestedAt: ISODateTimeStringSchema,
|
|
1251
1261
|
respondedAt: ISODateTimeStringSchema.nullable()
|
|
1252
1262
|
});
|
|
1253
|
-
var NearbyFriendMealPlanSummarySchema =
|
|
1263
|
+
var NearbyFriendMealPlanSummarySchema = import_zod17.z.object({
|
|
1254
1264
|
mealPlanId: MealPlanIdSchema,
|
|
1255
1265
|
owner: MemberCoreSchema,
|
|
1256
|
-
title:
|
|
1257
|
-
participantCount:
|
|
1258
|
-
distanceMeters:
|
|
1266
|
+
title: import_zod17.z.string(),
|
|
1267
|
+
participantCount: import_zod17.z.number().int().min(1),
|
|
1268
|
+
distanceMeters: import_zod17.z.number().int().min(0),
|
|
1259
1269
|
exposedAt: ISODateTimeStringSchema,
|
|
1260
1270
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1261
1271
|
joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
|
|
1262
1272
|
});
|
|
1263
1273
|
|
|
1264
1274
|
// src/domain/meal-plan/meal-plan-chat.schema.ts
|
|
1265
|
-
var
|
|
1266
|
-
var MealPlanChatMessageKindSchema =
|
|
1275
|
+
var import_zod18 = require("zod");
|
|
1276
|
+
var MealPlanChatMessageKindSchema = import_zod18.z.enum([
|
|
1267
1277
|
"USER",
|
|
1268
1278
|
"SYSTEM"
|
|
1269
1279
|
]);
|
|
1270
|
-
var MealPlanSystemMessageKindSchema =
|
|
1280
|
+
var MealPlanSystemMessageKindSchema = import_zod18.z.enum([
|
|
1271
1281
|
"PARTICIPANT_JOINED",
|
|
1272
1282
|
"PARTICIPANT_READY",
|
|
1273
1283
|
"PARTICIPANT_REMOVED",
|
|
@@ -1276,39 +1286,41 @@ var MealPlanSystemMessageKindSchema = import_zod17.z.enum([
|
|
|
1276
1286
|
"CONFIRMED",
|
|
1277
1287
|
"RECORD_NEEDED"
|
|
1278
1288
|
]);
|
|
1279
|
-
var MealPlanChatSystemPayloadSchema =
|
|
1289
|
+
var MealPlanChatSystemPayloadSchema = import_zod18.z.object({
|
|
1280
1290
|
kind: MealPlanSystemMessageKindSchema
|
|
1281
|
-
}).catchall(
|
|
1282
|
-
var MealPlanChatMessageListResponseSchema =
|
|
1283
|
-
|
|
1291
|
+
}).catchall(import_zod18.z.unknown());
|
|
1292
|
+
var MealPlanChatMessageListResponseSchema = import_zod18.z.array(
|
|
1293
|
+
import_zod18.z.lazy(() => MealPlanChatMessageResponseSchema)
|
|
1294
|
+
);
|
|
1295
|
+
var MealPlanChatRoomSummarySchema = import_zod18.z.object({
|
|
1284
1296
|
chatRoomId: MealPlanChatRoomIdSchema,
|
|
1285
1297
|
mealPlanId: MealPlanIdSchema,
|
|
1286
|
-
messageCount:
|
|
1298
|
+
messageCount: import_zod18.z.number().int().min(0),
|
|
1287
1299
|
lastMessageAt: ISODateTimeStringSchema.nullable(),
|
|
1288
1300
|
createdAt: ISODateTimeStringSchema
|
|
1289
1301
|
});
|
|
1290
|
-
var SendMealPlanChatMessageRequestSchema =
|
|
1291
|
-
message:
|
|
1302
|
+
var SendMealPlanChatMessageRequestSchema = import_zod18.z.object({
|
|
1303
|
+
message: import_zod18.z.string().min(1).max(500)
|
|
1292
1304
|
});
|
|
1293
|
-
var MealPlanChatMessageResponseSchema =
|
|
1305
|
+
var MealPlanChatMessageResponseSchema = import_zod18.z.object({
|
|
1294
1306
|
messageId: MealPlanChatMessageIdSchema,
|
|
1295
1307
|
chatRoomId: MealPlanChatRoomIdSchema,
|
|
1296
1308
|
sender: MemberCoreSchema.nullable(),
|
|
1297
|
-
guestId:
|
|
1298
|
-
guestNickname:
|
|
1309
|
+
guestId: import_zod18.z.string().min(1).nullable(),
|
|
1310
|
+
guestNickname: import_zod18.z.string().min(1).nullable(),
|
|
1299
1311
|
kind: MealPlanChatMessageKindSchema,
|
|
1300
|
-
message:
|
|
1312
|
+
message: import_zod18.z.string().min(1).max(1e3),
|
|
1301
1313
|
systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
|
|
1302
1314
|
createdAt: ISODateTimeStringSchema
|
|
1303
1315
|
});
|
|
1304
|
-
var MealPlanSystemMessageSchema =
|
|
1316
|
+
var MealPlanSystemMessageSchema = import_zod18.z.object({
|
|
1305
1317
|
kind: MealPlanSystemMessageKindSchema,
|
|
1306
|
-
message:
|
|
1318
|
+
message: import_zod18.z.string().min(1),
|
|
1307
1319
|
createdAt: ISODateTimeStringSchema
|
|
1308
1320
|
});
|
|
1309
1321
|
|
|
1310
1322
|
// src/domain/meal-plan/meal-plan.schema.ts
|
|
1311
|
-
var MealPlanStatusSchema =
|
|
1323
|
+
var MealPlanStatusSchema = import_zod19.z.enum([
|
|
1312
1324
|
"DRAFT",
|
|
1313
1325
|
"RECOMMENDING",
|
|
1314
1326
|
"GATHERING",
|
|
@@ -1320,78 +1332,74 @@ var MealPlanStatusSchema = import_zod18.z.enum([
|
|
|
1320
1332
|
"RECORDED",
|
|
1321
1333
|
"CANCELLED"
|
|
1322
1334
|
]);
|
|
1323
|
-
var MealPlanChannelSchema =
|
|
1335
|
+
var MealPlanChannelSchema = import_zod19.z.enum([
|
|
1324
1336
|
"OWNER_ONLY",
|
|
1325
1337
|
"FRIEND_INVITE",
|
|
1326
1338
|
"LINK_GUEST",
|
|
1327
1339
|
"NEARBY_FRIENDS"
|
|
1328
1340
|
]);
|
|
1329
|
-
var MealPlanRecommendationContextSchema =
|
|
1341
|
+
var MealPlanRecommendationContextSchema = import_zod19.z.object({
|
|
1330
1342
|
mealDate: ISODateStringSchema.optional(),
|
|
1331
1343
|
mealTime: TimeHHmmStringSchema.optional(),
|
|
1332
1344
|
area: MealPlanLocationCandidateSchema.optional(),
|
|
1333
|
-
preferredMenuCategories:
|
|
1334
|
-
excludedMenuCategories:
|
|
1335
|
-
candidateMenuCategories:
|
|
1336
|
-
budgetMin:
|
|
1337
|
-
budgetMax:
|
|
1338
|
-
memo:
|
|
1339
|
-
});
|
|
1340
|
-
var CreateMealPlanRequestSchema =
|
|
1341
|
-
title:
|
|
1342
|
-
channels:
|
|
1343
|
-
"OWNER_ONLY"
|
|
1344
|
-
]),
|
|
1345
|
+
preferredMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
|
|
1346
|
+
excludedMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
|
|
1347
|
+
candidateMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
|
|
1348
|
+
budgetMin: import_zod19.z.number().int().min(0).optional(),
|
|
1349
|
+
budgetMax: import_zod19.z.number().int().min(0).optional(),
|
|
1350
|
+
memo: import_zod19.z.string().max(500).optional()
|
|
1351
|
+
});
|
|
1352
|
+
var CreateMealPlanRequestSchema = import_zod19.z.object({
|
|
1353
|
+
title: import_zod19.z.string().min(1).max(100).optional(),
|
|
1354
|
+
channels: import_zod19.z.array(MealPlanChannelSchema).default(["OWNER_ONLY"]),
|
|
1345
1355
|
recommendationContext: MealPlanRecommendationContextSchema.optional()
|
|
1346
1356
|
});
|
|
1347
|
-
var CreateMealPlanResponseSchema =
|
|
1357
|
+
var CreateMealPlanResponseSchema = import_zod19.z.object({
|
|
1348
1358
|
mealPlanId: MealPlanIdSchema
|
|
1349
1359
|
});
|
|
1350
1360
|
var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
|
|
1351
|
-
var MealPlanViewerRoleSchema =
|
|
1361
|
+
var MealPlanViewerRoleSchema = import_zod19.z.enum([
|
|
1352
1362
|
"OWNER",
|
|
1353
1363
|
"FRIEND",
|
|
1354
1364
|
"GUEST",
|
|
1355
1365
|
"NONE"
|
|
1356
1366
|
]);
|
|
1357
|
-
var MealPlanViewerPermissionsSchema =
|
|
1358
|
-
canView:
|
|
1359
|
-
canInviteFriends:
|
|
1360
|
-
canManageParticipants:
|
|
1361
|
-
canCreateShareLink:
|
|
1362
|
-
canExposeNearbyFriends:
|
|
1363
|
-
canVote:
|
|
1364
|
-
canChat:
|
|
1365
|
-
canReadyMealPlan:
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
var MealPlanResponseSchema = import_zod18.z.object({
|
|
1367
|
+
var MealPlanViewerPermissionsSchema = import_zod19.z.object({
|
|
1368
|
+
canView: import_zod19.z.boolean(),
|
|
1369
|
+
canInviteFriends: import_zod19.z.boolean(),
|
|
1370
|
+
canManageParticipants: import_zod19.z.boolean(),
|
|
1371
|
+
canCreateShareLink: import_zod19.z.boolean(),
|
|
1372
|
+
canExposeNearbyFriends: import_zod19.z.boolean(),
|
|
1373
|
+
canVote: import_zod19.z.boolean(),
|
|
1374
|
+
canChat: import_zod19.z.boolean(),
|
|
1375
|
+
canReadyMealPlan: import_zod19.z.boolean(),
|
|
1376
|
+
canRequestChange: import_zod19.z.boolean(),
|
|
1377
|
+
canReopenDecisionTask: import_zod19.z.boolean(),
|
|
1378
|
+
canConfirmDecisionSnapshot: import_zod19.z.boolean(),
|
|
1379
|
+
canConfirmMealPlan: import_zod19.z.boolean(),
|
|
1380
|
+
canCompleteMealPlan: import_zod19.z.boolean(),
|
|
1381
|
+
canRecordMealPlan: import_zod19.z.boolean(),
|
|
1382
|
+
canCancelMealPlan: import_zod19.z.boolean()
|
|
1383
|
+
});
|
|
1384
|
+
var MealPlanResponseSchema = import_zod19.z.object({
|
|
1376
1385
|
mealPlanId: MealPlanIdSchema,
|
|
1377
1386
|
owner: MemberCoreSchema,
|
|
1378
|
-
title:
|
|
1387
|
+
title: import_zod19.z.string().nullable(),
|
|
1379
1388
|
status: MealPlanStatusSchema,
|
|
1380
|
-
channels:
|
|
1381
|
-
participants:
|
|
1382
|
-
pendingInvites:
|
|
1383
|
-
pendingJoinRequests:
|
|
1384
|
-
decisionStages:
|
|
1389
|
+
channels: import_zod19.z.array(MealPlanChannelSchema),
|
|
1390
|
+
participants: import_zod19.z.array(MealPlanParticipantResponseSchema),
|
|
1391
|
+
pendingInvites: import_zod19.z.array(MealPlanInviteSummarySchema),
|
|
1392
|
+
pendingJoinRequests: import_zod19.z.array(MealPlanJoinRequestSummarySchema),
|
|
1393
|
+
decisionStages: import_zod19.z.array(MealPlanDecisionStageResponseSchema),
|
|
1385
1394
|
decisionProgress: MealPlanDecisionProgressSchema.nullable(),
|
|
1386
1395
|
viewerRole: MealPlanViewerRoleSchema,
|
|
1387
1396
|
viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
|
|
1388
1397
|
viewerPermissions: MealPlanViewerPermissionsSchema,
|
|
1389
|
-
viewerTaskReadyMap: import_zod18.z.record(MealPlanDecisionTaskKeySchema, import_zod18.z.boolean()),
|
|
1390
1398
|
selectedDate: ISODateStringSchema.nullable(),
|
|
1391
1399
|
selectedTime: TimeHHmmStringSchema.nullable(),
|
|
1392
1400
|
selectedArea: MealPlanLocationCandidateSchema.nullable(),
|
|
1393
1401
|
selectedRestaurant: RestaurantSchema.nullable(),
|
|
1394
|
-
selectedMenuCategory:
|
|
1402
|
+
selectedMenuCategory: import_zod19.z.string().nullable(),
|
|
1395
1403
|
chatRoom: MealPlanChatRoomSummarySchema.nullable(),
|
|
1396
1404
|
confirmedAt: ISODateTimeStringSchema.nullable(),
|
|
1397
1405
|
lockedAt: ISODateTimeStringSchema.nullable(),
|
|
@@ -1400,36 +1408,31 @@ var MealPlanResponseSchema = import_zod18.z.object({
|
|
|
1400
1408
|
createdAt: ISODateTimeStringSchema,
|
|
1401
1409
|
updatedAt: ISODateTimeStringSchema
|
|
1402
1410
|
});
|
|
1403
|
-
var MyMealPlanGroupSchema =
|
|
1404
|
-
|
|
1405
|
-
"UPCOMING",
|
|
1406
|
-
"RECORD_NEEDED",
|
|
1407
|
-
"PAST"
|
|
1408
|
-
]);
|
|
1409
|
-
var MyMealPlanListItemSchema = import_zod18.z.object({
|
|
1411
|
+
var MyMealPlanGroupSchema = import_zod19.z.enum(["DECIDING", "UPCOMING", "RECORD_NEEDED", "PAST"]);
|
|
1412
|
+
var MyMealPlanListItemSchema = import_zod19.z.object({
|
|
1410
1413
|
mealPlanId: MealPlanIdSchema,
|
|
1411
1414
|
group: MyMealPlanGroupSchema,
|
|
1412
|
-
title:
|
|
1415
|
+
title: import_zod19.z.string(),
|
|
1413
1416
|
status: MealPlanStatusSchema,
|
|
1414
|
-
channels:
|
|
1415
|
-
participantCount:
|
|
1417
|
+
channels: import_zod19.z.array(MealPlanChannelSchema),
|
|
1418
|
+
participantCount: import_zod19.z.number().int().min(1),
|
|
1416
1419
|
selectedDate: ISODateStringSchema.nullable(),
|
|
1417
1420
|
selectedTime: TimeHHmmStringSchema.nullable(),
|
|
1418
|
-
selectedAreaName:
|
|
1419
|
-
selectedRestaurantName:
|
|
1420
|
-
primaryAction:
|
|
1421
|
-
label:
|
|
1422
|
-
href:
|
|
1421
|
+
selectedAreaName: import_zod19.z.string().nullable(),
|
|
1422
|
+
selectedRestaurantName: import_zod19.z.string().nullable(),
|
|
1423
|
+
primaryAction: import_zod19.z.object({
|
|
1424
|
+
label: import_zod19.z.string(),
|
|
1425
|
+
href: import_zod19.z.string()
|
|
1423
1426
|
}),
|
|
1424
1427
|
updatedAt: ISODateTimeStringSchema
|
|
1425
1428
|
});
|
|
1426
|
-
var MyMealPlanListResponseSchema =
|
|
1427
|
-
deciding:
|
|
1428
|
-
upcoming:
|
|
1429
|
-
recordNeeded:
|
|
1430
|
-
past:
|
|
1429
|
+
var MyMealPlanListResponseSchema = import_zod19.z.object({
|
|
1430
|
+
deciding: import_zod19.z.array(MyMealPlanListItemSchema),
|
|
1431
|
+
upcoming: import_zod19.z.array(MyMealPlanListItemSchema),
|
|
1432
|
+
recordNeeded: import_zod19.z.array(MyMealPlanListItemSchema),
|
|
1433
|
+
past: import_zod19.z.array(MyMealPlanListItemSchema)
|
|
1431
1434
|
});
|
|
1432
|
-
var MealPlanNotificationKindSchema =
|
|
1435
|
+
var MealPlanNotificationKindSchema = import_zod19.z.enum([
|
|
1433
1436
|
"MEAL_PLAN_INVITE_RECEIVED",
|
|
1434
1437
|
"MEAL_PLAN_INVITE_ACCEPTED",
|
|
1435
1438
|
"MEAL_PLAN_JOIN_REQUESTED",
|
|
@@ -1441,27 +1444,27 @@ var MealPlanNotificationKindSchema = import_zod18.z.enum([
|
|
|
1441
1444
|
"MEAL_PLAN_LOCKED",
|
|
1442
1445
|
"MEAL_PLAN_RECORD_NEEDED"
|
|
1443
1446
|
]);
|
|
1444
|
-
var MealPlanNotificationPriorityChannelSchema =
|
|
1447
|
+
var MealPlanNotificationPriorityChannelSchema = import_zod19.z.enum([
|
|
1445
1448
|
"HOME",
|
|
1446
1449
|
"NOTIFICATION_INBOX",
|
|
1447
1450
|
"FCM_PUSH",
|
|
1448
1451
|
"LIVE_ACTIVITY"
|
|
1449
1452
|
]);
|
|
1450
|
-
var MealPlanLiveActivityBehaviorSchema =
|
|
1453
|
+
var MealPlanLiveActivityBehaviorSchema = import_zod19.z.enum([
|
|
1451
1454
|
"NONE",
|
|
1452
1455
|
"START_OR_UPDATE",
|
|
1453
1456
|
"UPDATE",
|
|
1454
1457
|
"END"
|
|
1455
1458
|
]);
|
|
1456
|
-
var MealPlanNotificationPriorityPolicyItemSchema =
|
|
1459
|
+
var MealPlanNotificationPriorityPolicyItemSchema = import_zod19.z.object({
|
|
1457
1460
|
kind: MealPlanNotificationKindSchema,
|
|
1458
|
-
priority:
|
|
1459
|
-
homePriority:
|
|
1460
|
-
inboxPriority:
|
|
1461
|
-
fcmPriority:
|
|
1462
|
-
liveActivityPriority:
|
|
1461
|
+
priority: import_zod19.z.number().int().min(0),
|
|
1462
|
+
homePriority: import_zod19.z.number().int().min(0),
|
|
1463
|
+
inboxPriority: import_zod19.z.number().int().min(0),
|
|
1464
|
+
fcmPriority: import_zod19.z.number().int().min(0),
|
|
1465
|
+
liveActivityPriority: import_zod19.z.number().int().min(0),
|
|
1463
1466
|
liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
|
|
1464
|
-
foregroundToast:
|
|
1467
|
+
foregroundToast: import_zod19.z.boolean()
|
|
1465
1468
|
});
|
|
1466
1469
|
var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
|
|
1467
1470
|
MEAL_PLAN_JOIN_REQUESTED: {
|
|
@@ -1565,248 +1568,230 @@ var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
|
|
|
1565
1568
|
foregroundToast: false
|
|
1566
1569
|
}
|
|
1567
1570
|
};
|
|
1568
|
-
var MealPlanNotificationSchema =
|
|
1569
|
-
notificationId:
|
|
1571
|
+
var MealPlanNotificationSchema = import_zod19.z.object({
|
|
1572
|
+
notificationId: import_zod19.z.string().min(1),
|
|
1570
1573
|
kind: MealPlanNotificationKindSchema,
|
|
1571
1574
|
mealPlanId: MealPlanIdSchema,
|
|
1572
|
-
deepLink:
|
|
1573
|
-
title:
|
|
1574
|
-
message:
|
|
1575
|
+
deepLink: import_zod19.z.string().min(1),
|
|
1576
|
+
title: import_zod19.z.string().min(1),
|
|
1577
|
+
message: import_zod19.z.string().min(1),
|
|
1575
1578
|
createdAt: ISODateTimeStringSchema,
|
|
1576
1579
|
readAt: ISODateTimeStringSchema.nullable()
|
|
1577
1580
|
});
|
|
1578
1581
|
|
|
1579
1582
|
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
1580
|
-
var
|
|
1581
|
-
var CreateMealPlanShareLinkRequestSchema =
|
|
1583
|
+
var import_zod20 = require("zod");
|
|
1584
|
+
var CreateMealPlanShareLinkRequestSchema = import_zod20.z.object({
|
|
1582
1585
|
expiresAt: ISODateTimeStringSchema.optional(),
|
|
1583
|
-
guestJoinEnabled:
|
|
1586
|
+
guestJoinEnabled: import_zod20.z.boolean().default(true)
|
|
1584
1587
|
});
|
|
1585
|
-
var MealPlanShareLinkSummarySchema =
|
|
1588
|
+
var MealPlanShareLinkSummarySchema = import_zod20.z.object({
|
|
1586
1589
|
shareLinkId: MealPlanShareLinkIdSchema,
|
|
1587
1590
|
mealPlanId: MealPlanIdSchema,
|
|
1588
1591
|
token: MealPlanShareLinkTokenSchema,
|
|
1589
|
-
url:
|
|
1592
|
+
url: import_zod20.z.string().url(),
|
|
1590
1593
|
expiresAt: ISODateTimeStringSchema,
|
|
1591
|
-
guestJoinEnabled:
|
|
1594
|
+
guestJoinEnabled: import_zod20.z.boolean(),
|
|
1592
1595
|
createdAt: ISODateTimeStringSchema
|
|
1593
1596
|
});
|
|
1594
|
-
var MealPlanSharePreviewResponseSchema =
|
|
1597
|
+
var MealPlanSharePreviewResponseSchema = import_zod20.z.object({
|
|
1595
1598
|
mealPlanId: MealPlanIdSchema,
|
|
1596
1599
|
token: MealPlanShareLinkTokenSchema,
|
|
1597
|
-
title:
|
|
1598
|
-
ownerName:
|
|
1599
|
-
participantCount:
|
|
1600
|
+
title: import_zod20.z.string(),
|
|
1601
|
+
ownerName: import_zod20.z.string(),
|
|
1602
|
+
participantCount: import_zod20.z.number().int().min(1),
|
|
1600
1603
|
expiresAt: ISODateTimeStringSchema,
|
|
1601
|
-
guestJoinEnabled:
|
|
1604
|
+
guestJoinEnabled: import_zod20.z.boolean()
|
|
1602
1605
|
});
|
|
1603
|
-
var JoinMealPlanGuestRequestSchema =
|
|
1604
|
-
nickname:
|
|
1605
|
-
password:
|
|
1606
|
+
var JoinMealPlanGuestRequestSchema = import_zod20.z.object({
|
|
1607
|
+
nickname: import_zod20.z.string().min(1).max(50),
|
|
1608
|
+
password: import_zod20.z.string().min(1).max(100).optional()
|
|
1606
1609
|
});
|
|
1607
|
-
var JoinMealPlanGuestResponseSchema =
|
|
1610
|
+
var JoinMealPlanGuestResponseSchema = import_zod20.z.object({
|
|
1608
1611
|
mealPlanId: MealPlanIdSchema,
|
|
1609
|
-
guestId:
|
|
1610
|
-
sessionToken:
|
|
1612
|
+
guestId: import_zod20.z.string().min(1),
|
|
1613
|
+
sessionToken: import_zod20.z.string().min(1)
|
|
1611
1614
|
});
|
|
1612
|
-
var MealPlanGuestSessionQuerySchema =
|
|
1613
|
-
sessionToken:
|
|
1615
|
+
var MealPlanGuestSessionQuerySchema = import_zod20.z.object({
|
|
1616
|
+
sessionToken: import_zod20.z.string().min(1)
|
|
1614
1617
|
});
|
|
1615
|
-
var MealPlanGuestSessionResponseSchema =
|
|
1618
|
+
var MealPlanGuestSessionResponseSchema = import_zod20.z.object({
|
|
1616
1619
|
mealPlan: MealPlanResponseSchema,
|
|
1617
1620
|
token: MealPlanShareLinkTokenSchema,
|
|
1618
|
-
guestId:
|
|
1619
|
-
nickname:
|
|
1620
|
-
sessionToken:
|
|
1621
|
+
guestId: import_zod20.z.string().min(1),
|
|
1622
|
+
nickname: import_zod20.z.string().min(1).max(50),
|
|
1623
|
+
sessionToken: import_zod20.z.string().min(1)
|
|
1621
1624
|
});
|
|
1622
1625
|
|
|
1623
1626
|
// src/domain/meal-plan/meal-group.schema.ts
|
|
1624
|
-
var
|
|
1625
|
-
var MealGroupMemberRoleSchema =
|
|
1627
|
+
var import_zod21 = require("zod");
|
|
1628
|
+
var MealGroupMemberRoleSchema = import_zod21.z.enum([
|
|
1626
1629
|
"OWNER",
|
|
1627
1630
|
"MEMBER"
|
|
1628
1631
|
]);
|
|
1629
|
-
var MealGroupMemberSchema =
|
|
1632
|
+
var MealGroupMemberSchema = import_zod21.z.object({
|
|
1630
1633
|
member: MemberCoreSchema,
|
|
1631
1634
|
role: MealGroupMemberRoleSchema,
|
|
1632
1635
|
joinedAt: ISODateTimeStringSchema
|
|
1633
1636
|
});
|
|
1634
|
-
var MealGroupResponseSchema =
|
|
1637
|
+
var MealGroupResponseSchema = import_zod21.z.object({
|
|
1635
1638
|
mealGroupId: MealGroupIdSchema,
|
|
1636
|
-
name:
|
|
1639
|
+
name: import_zod21.z.string().min(1).max(50),
|
|
1637
1640
|
owner: MemberCoreSchema,
|
|
1638
|
-
profileImageUrl:
|
|
1639
|
-
members:
|
|
1640
|
-
recentMealPlanIds:
|
|
1641
|
+
profileImageUrl: import_zod21.z.string().url().nullable(),
|
|
1642
|
+
members: import_zod21.z.array(MealGroupMemberSchema),
|
|
1643
|
+
recentMealPlanIds: import_zod21.z.array(MealPlanIdSchema),
|
|
1641
1644
|
createdAt: ISODateTimeStringSchema,
|
|
1642
1645
|
updatedAt: ISODateTimeStringSchema
|
|
1643
1646
|
});
|
|
1644
|
-
var CreateMealGroupRequestSchema =
|
|
1645
|
-
name:
|
|
1646
|
-
memberIds:
|
|
1647
|
-
profileImageUrl:
|
|
1647
|
+
var CreateMealGroupRequestSchema = import_zod21.z.object({
|
|
1648
|
+
name: import_zod21.z.string().min(1).max(50),
|
|
1649
|
+
memberIds: import_zod21.z.array(import_zod21.z.number().int().positive()).min(1),
|
|
1650
|
+
profileImageUrl: import_zod21.z.string().url().nullable().optional(),
|
|
1648
1651
|
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
1649
1652
|
});
|
|
1650
|
-
var StartMealPlanFromGroupRequestSchema =
|
|
1651
|
-
title:
|
|
1653
|
+
var StartMealPlanFromGroupRequestSchema = import_zod21.z.object({
|
|
1654
|
+
title: import_zod21.z.string().min(1).max(100).optional()
|
|
1652
1655
|
});
|
|
1653
|
-
var AddMealGroupMemberRequestSchema =
|
|
1654
|
-
memberId:
|
|
1656
|
+
var AddMealGroupMemberRequestSchema = import_zod21.z.object({
|
|
1657
|
+
memberId: import_zod21.z.number().int().positive(),
|
|
1655
1658
|
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
1656
1659
|
});
|
|
1657
|
-
var UpdateMealGroupMemberRoleRequestSchema =
|
|
1660
|
+
var UpdateMealGroupMemberRoleRequestSchema = import_zod21.z.object({
|
|
1658
1661
|
role: MealGroupMemberRoleSchema
|
|
1659
1662
|
});
|
|
1660
1663
|
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
1661
|
-
var MealGroupPreferenceSummarySchema =
|
|
1664
|
+
var MealGroupPreferenceSummarySchema = import_zod21.z.object({
|
|
1662
1665
|
mealGroupId: MealGroupIdSchema,
|
|
1663
|
-
frequentMenuCategories:
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
})),
|
|
1671
|
-
recentMenuCategories: import_zod20.z.array(import_zod20.z.string()),
|
|
1672
|
-
recommendationContext: import_zod20.z.object({
|
|
1673
|
-
preferredMenuCategories: import_zod20.z.array(import_zod20.z.string()),
|
|
1674
|
-
excludedMenuCategories: import_zod20.z.array(import_zod20.z.string()),
|
|
1675
|
-
candidateMenuCategories: import_zod20.z.array(import_zod20.z.string())
|
|
1666
|
+
frequentMenuCategories: import_zod21.z.array(import_zod21.z.object({ label: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
|
|
1667
|
+
frequentRestaurants: import_zod21.z.array(import_zod21.z.object({ restaurantName: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
|
|
1668
|
+
recentMenuCategories: import_zod21.z.array(import_zod21.z.string()),
|
|
1669
|
+
recommendationContext: import_zod21.z.object({
|
|
1670
|
+
preferredMenuCategories: import_zod21.z.array(import_zod21.z.string()),
|
|
1671
|
+
excludedMenuCategories: import_zod21.z.array(import_zod21.z.string()),
|
|
1672
|
+
candidateMenuCategories: import_zod21.z.array(import_zod21.z.string())
|
|
1676
1673
|
})
|
|
1677
1674
|
});
|
|
1678
|
-
var MealGroupHistoryResponseSchema =
|
|
1675
|
+
var MealGroupHistoryResponseSchema = import_zod21.z.array(MealGroupHistoryItemSchema);
|
|
1679
1676
|
|
|
1680
1677
|
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
1681
|
-
var
|
|
1682
|
-
var HomeMealPlanActionKindSchema =
|
|
1678
|
+
var import_zod22 = require("zod");
|
|
1679
|
+
var HomeMealPlanActionKindSchema = import_zod22.z.enum([
|
|
1683
1680
|
"CONTINUE_DECISION",
|
|
1684
1681
|
"TODAY_UPCOMING",
|
|
1685
1682
|
"RECORD_NEEDED",
|
|
1686
1683
|
"RESPOND_JOIN_REQUEST",
|
|
1687
1684
|
"NOTIFICATION_FOLLOW_UP"
|
|
1688
1685
|
]);
|
|
1689
|
-
var HomeMealPlanActionCardSchema =
|
|
1690
|
-
actionId:
|
|
1686
|
+
var HomeMealPlanActionCardSchema = import_zod22.z.object({
|
|
1687
|
+
actionId: import_zod22.z.string().min(1),
|
|
1691
1688
|
kind: HomeMealPlanActionKindSchema,
|
|
1692
|
-
priority:
|
|
1693
|
-
title:
|
|
1694
|
-
description:
|
|
1695
|
-
primaryAction:
|
|
1696
|
-
label:
|
|
1697
|
-
href:
|
|
1689
|
+
priority: import_zod22.z.number().int().min(0),
|
|
1690
|
+
title: import_zod22.z.string().min(1),
|
|
1691
|
+
description: import_zod22.z.string().min(1),
|
|
1692
|
+
primaryAction: import_zod22.z.object({
|
|
1693
|
+
label: import_zod22.z.string().min(1),
|
|
1694
|
+
href: import_zod22.z.string().min(1)
|
|
1698
1695
|
}),
|
|
1699
1696
|
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
1700
1697
|
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
1701
1698
|
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
1702
1699
|
});
|
|
1703
|
-
var HomeMealPlanDashboardResponseSchema =
|
|
1700
|
+
var HomeMealPlanDashboardResponseSchema = import_zod22.z.object({
|
|
1704
1701
|
generatedAt: ISODateTimeStringSchema,
|
|
1705
|
-
inProgress:
|
|
1706
|
-
today:
|
|
1707
|
-
recordNeeded:
|
|
1708
|
-
pendingJoinRequests:
|
|
1709
|
-
unreadNotifications:
|
|
1710
|
-
nextActions:
|
|
1711
|
-
});
|
|
1712
|
-
var MealMapLayerSchema =
|
|
1702
|
+
inProgress: import_zod22.z.array(MyMealPlanListItemSchema),
|
|
1703
|
+
today: import_zod22.z.array(MyMealPlanListItemSchema),
|
|
1704
|
+
recordNeeded: import_zod22.z.array(MyMealPlanListItemSchema),
|
|
1705
|
+
pendingJoinRequests: import_zod22.z.array(MealPlanJoinRequestSummarySchema),
|
|
1706
|
+
unreadNotifications: import_zod22.z.array(MealPlanNotificationSchema).default([]),
|
|
1707
|
+
nextActions: import_zod22.z.array(HomeMealPlanActionCardSchema)
|
|
1708
|
+
});
|
|
1709
|
+
var MealMapLayerSchema = import_zod22.z.enum([
|
|
1713
1710
|
"MY_MEAL_PLAN_PLACE",
|
|
1714
1711
|
"NEARBY_FRIEND_MEAL_PLAN",
|
|
1715
1712
|
"FRIEND_RECORD_LOCATION",
|
|
1716
1713
|
"RESTAURANT_CANDIDATE"
|
|
1717
1714
|
]);
|
|
1718
|
-
var MealMapMarkerBaseSchema =
|
|
1719
|
-
markerId:
|
|
1720
|
-
lat:
|
|
1721
|
-
lng:
|
|
1722
|
-
title:
|
|
1723
|
-
subtitle:
|
|
1724
|
-
href:
|
|
1715
|
+
var MealMapMarkerBaseSchema = import_zod22.z.object({
|
|
1716
|
+
markerId: import_zod22.z.string().min(1),
|
|
1717
|
+
lat: import_zod22.z.number().min(-90).max(90),
|
|
1718
|
+
lng: import_zod22.z.number().min(-180).max(180),
|
|
1719
|
+
title: import_zod22.z.string().min(1),
|
|
1720
|
+
subtitle: import_zod22.z.string().nullable(),
|
|
1721
|
+
href: import_zod22.z.string().min(1).nullable(),
|
|
1725
1722
|
mealPlanId: MealPlanIdSchema.nullable(),
|
|
1726
1723
|
articleId: ArticleIdSchema.nullable(),
|
|
1727
1724
|
restaurant: RestaurantSchema.nullable(),
|
|
1728
|
-
distanceMeters:
|
|
1725
|
+
distanceMeters: import_zod22.z.number().int().min(0).nullable(),
|
|
1729
1726
|
updatedAt: ISODateTimeStringSchema
|
|
1730
1727
|
});
|
|
1731
|
-
var MealMapMyMealPlanPlaceMetadataSchema =
|
|
1728
|
+
var MealMapMyMealPlanPlaceMetadataSchema = import_zod22.z.object({
|
|
1732
1729
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1733
|
-
status:
|
|
1734
|
-
participantCount:
|
|
1735
|
-
source:
|
|
1730
|
+
status: import_zod22.z.string().min(1),
|
|
1731
|
+
participantCount: import_zod22.z.number().int().min(1),
|
|
1732
|
+
source: import_zod22.z.string().min(1)
|
|
1736
1733
|
});
|
|
1737
|
-
var MealMapNearbyFriendMealPlanMetadataSchema =
|
|
1734
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = import_zod22.z.object({
|
|
1738
1735
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1739
|
-
ownerName:
|
|
1740
|
-
participantCount:
|
|
1736
|
+
ownerName: import_zod22.z.string().min(1),
|
|
1737
|
+
participantCount: import_zod22.z.number().int().min(1),
|
|
1741
1738
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1742
|
-
source:
|
|
1739
|
+
source: import_zod22.z.string().min(1)
|
|
1743
1740
|
});
|
|
1744
|
-
var MealMapFriendRecordLocationMetadataSchema =
|
|
1741
|
+
var MealMapFriendRecordLocationMetadataSchema = import_zod22.z.object({
|
|
1745
1742
|
authorId: MemberIdSchema.nullable().default(null),
|
|
1746
|
-
authorName:
|
|
1747
|
-
imageUrl:
|
|
1748
|
-
mealDate:
|
|
1743
|
+
authorName: import_zod22.z.string().min(1),
|
|
1744
|
+
imageUrl: import_zod22.z.string().nullable().default(null),
|
|
1745
|
+
mealDate: import_zod22.z.string().min(1)
|
|
1749
1746
|
});
|
|
1750
|
-
var MealMapRestaurantCandidateCompletionBlockedReasonSchema =
|
|
1747
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod22.z.enum([
|
|
1751
1748
|
"OWNER_ONLY",
|
|
1752
1749
|
"STAGE_ALREADY_COMPLETED",
|
|
1753
1750
|
"MEAL_PLAN_NOT_MUTABLE"
|
|
1754
1751
|
]);
|
|
1755
|
-
var MealMapRestaurantCandidateMetadataSchema =
|
|
1752
|
+
var MealMapRestaurantCandidateMetadataSchema = import_zod22.z.object({
|
|
1756
1753
|
stageId: MealPlanDecisionStageIdSchema,
|
|
1757
1754
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1758
|
-
status:
|
|
1759
|
-
source:
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
]).default("search"),
|
|
1764
|
-
stageStatus: import_zod21.z.enum([
|
|
1765
|
-
"OPEN",
|
|
1766
|
-
"COMPLETED",
|
|
1767
|
-
"REOPENED"
|
|
1768
|
-
]).default("OPEN"),
|
|
1769
|
-
canVote: import_zod21.z.boolean().default(false),
|
|
1770
|
-
canCompleteStage: import_zod21.z.boolean().default(false),
|
|
1755
|
+
status: import_zod22.z.string().min(1),
|
|
1756
|
+
source: import_zod22.z.enum(["search", "fallback", "manual"]).default("search"),
|
|
1757
|
+
stageStatus: import_zod22.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
|
|
1758
|
+
canVote: import_zod22.z.boolean().default(false),
|
|
1759
|
+
canCompleteStage: import_zod22.z.boolean().default(false),
|
|
1771
1760
|
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
1772
1761
|
});
|
|
1773
|
-
var MealMapMarkerSchema =
|
|
1762
|
+
var MealMapMarkerSchema = import_zod22.z.discriminatedUnion("layer", [
|
|
1774
1763
|
MealMapMarkerBaseSchema.extend({
|
|
1775
|
-
layer:
|
|
1764
|
+
layer: import_zod22.z.literal("MY_MEAL_PLAN_PLACE"),
|
|
1776
1765
|
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
1777
1766
|
}),
|
|
1778
1767
|
MealMapMarkerBaseSchema.extend({
|
|
1779
|
-
layer:
|
|
1768
|
+
layer: import_zod22.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
1780
1769
|
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
1781
1770
|
}),
|
|
1782
1771
|
MealMapMarkerBaseSchema.extend({
|
|
1783
|
-
layer:
|
|
1772
|
+
layer: import_zod22.z.literal("FRIEND_RECORD_LOCATION"),
|
|
1784
1773
|
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
1785
1774
|
}),
|
|
1786
1775
|
MealMapMarkerBaseSchema.extend({
|
|
1787
|
-
layer:
|
|
1776
|
+
layer: import_zod22.z.literal("RESTAURANT_CANDIDATE"),
|
|
1788
1777
|
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
1789
1778
|
})
|
|
1790
1779
|
]);
|
|
1791
|
-
var MealMapQuerySchema =
|
|
1792
|
-
friendRecordDays:
|
|
1780
|
+
var MealMapQuerySchema = import_zod22.z.object({
|
|
1781
|
+
friendRecordDays: import_zod22.z.coerce.number().int().min(1).max(90).optional().default(7)
|
|
1793
1782
|
});
|
|
1794
|
-
var MealMapResponseSchema =
|
|
1783
|
+
var MealMapResponseSchema = import_zod22.z.object({
|
|
1795
1784
|
generatedAt: ISODateTimeStringSchema,
|
|
1796
|
-
center:
|
|
1797
|
-
lat:
|
|
1798
|
-
lng:
|
|
1799
|
-
source:
|
|
1800
|
-
"LAST_KNOWN_LOCATION",
|
|
1801
|
-
"MY_MEAL_PLAN",
|
|
1802
|
-
"DEFAULT"
|
|
1803
|
-
])
|
|
1785
|
+
center: import_zod22.z.object({
|
|
1786
|
+
lat: import_zod22.z.number().min(-90).max(90),
|
|
1787
|
+
lng: import_zod22.z.number().min(-180).max(180),
|
|
1788
|
+
source: import_zod22.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
|
|
1804
1789
|
}),
|
|
1805
|
-
layers:
|
|
1806
|
-
myMealPlanPlaces:
|
|
1807
|
-
nearbyFriendMealPlans:
|
|
1808
|
-
friendRecordLocations:
|
|
1809
|
-
restaurantCandidates:
|
|
1790
|
+
layers: import_zod22.z.object({
|
|
1791
|
+
myMealPlanPlaces: import_zod22.z.array(MealMapMarkerSchema),
|
|
1792
|
+
nearbyFriendMealPlans: import_zod22.z.array(MealMapMarkerSchema),
|
|
1793
|
+
friendRecordLocations: import_zod22.z.array(MealMapMarkerSchema),
|
|
1794
|
+
restaurantCandidates: import_zod22.z.array(MealMapMarkerSchema)
|
|
1810
1795
|
})
|
|
1811
1796
|
});
|
|
1812
1797
|
|
|
@@ -1815,7 +1800,6 @@ var DEFAULT_POLICY = MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES.MEAL_PLAN_PARTICIP
|
|
|
1815
1800
|
function getMealPlanNotificationPriorityPolicy(kind) {
|
|
1816
1801
|
return MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES[kind] ?? DEFAULT_POLICY;
|
|
1817
1802
|
}
|
|
1818
|
-
__name(getMealPlanNotificationPriorityPolicy, "getMealPlanNotificationPriorityPolicy");
|
|
1819
1803
|
function getMealPlanNotificationPriority(kind, channel = "HOME") {
|
|
1820
1804
|
const policy = getMealPlanNotificationPriorityPolicy(kind);
|
|
1821
1805
|
switch (channel) {
|
|
@@ -1831,15 +1815,12 @@ function getMealPlanNotificationPriority(kind, channel = "HOME") {
|
|
|
1831
1815
|
return policy.priority;
|
|
1832
1816
|
}
|
|
1833
1817
|
}
|
|
1834
|
-
__name(getMealPlanNotificationPriority, "getMealPlanNotificationPriority");
|
|
1835
1818
|
function getMealPlanLiveActivityBehavior(kind) {
|
|
1836
1819
|
return getMealPlanNotificationPriorityPolicy(kind).liveActivityBehavior;
|
|
1837
1820
|
}
|
|
1838
|
-
__name(getMealPlanLiveActivityBehavior, "getMealPlanLiveActivityBehavior");
|
|
1839
1821
|
function shouldShowForegroundToast(kind) {
|
|
1840
1822
|
return getMealPlanNotificationPriorityPolicy(kind).foregroundToast;
|
|
1841
1823
|
}
|
|
1842
|
-
__name(shouldShowForegroundToast, "shouldShowForegroundToast");
|
|
1843
1824
|
function compareMealPlanNotificationsByPriority(channel) {
|
|
1844
1825
|
return (a, b) => {
|
|
1845
1826
|
const unreadDelta = Number(Boolean(a.readAt)) - Number(Boolean(b.readAt));
|
|
@@ -1849,273 +1830,240 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
1849
1830
|
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
|
|
1850
1831
|
};
|
|
1851
1832
|
}
|
|
1852
|
-
__name(compareMealPlanNotificationsByPriority, "compareMealPlanNotificationsByPriority");
|
|
1853
1833
|
|
|
1854
1834
|
// src/domain/promotion/referral.schema.ts
|
|
1855
|
-
var
|
|
1856
|
-
var ReferralCreateResponseSchema =
|
|
1835
|
+
var import_zod23 = require("zod");
|
|
1836
|
+
var ReferralCreateResponseSchema = import_zod23.z.object({
|
|
1857
1837
|
code: ReferralCodeSchema,
|
|
1858
|
-
link:
|
|
1838
|
+
link: import_zod23.z.string().url(),
|
|
1859
1839
|
expiresAt: ISODateTimeStringSchema
|
|
1860
1840
|
});
|
|
1861
|
-
var ReferralItemResponseSchema =
|
|
1841
|
+
var ReferralItemResponseSchema = import_zod23.z.object({
|
|
1862
1842
|
code: ReferralCodeSchema,
|
|
1863
1843
|
createdAt: ISODateTimeStringSchema,
|
|
1864
1844
|
expiresAt: ISODateTimeStringSchema,
|
|
1865
|
-
used:
|
|
1845
|
+
used: import_zod23.z.boolean(),
|
|
1866
1846
|
usedByMemberId: MemberIdSchema.nullable(),
|
|
1867
|
-
usedByUsername:
|
|
1847
|
+
usedByUsername: import_zod23.z.string().nullable()
|
|
1868
1848
|
});
|
|
1869
|
-
var RedeemReferralRequestSchema =
|
|
1849
|
+
var RedeemReferralRequestSchema = import_zod23.z.object({
|
|
1870
1850
|
code: ReferralCodeSchema
|
|
1871
1851
|
});
|
|
1872
1852
|
|
|
1873
1853
|
// src/domain/promotion/coupon.schema.ts
|
|
1874
|
-
var
|
|
1875
|
-
var CouponTypeSchema =
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
]);
|
|
1879
|
-
var CouponStatusSchema = import_zod23.z.enum([
|
|
1880
|
-
"UNUSED",
|
|
1881
|
-
"USED"
|
|
1882
|
-
]);
|
|
1883
|
-
var CouponResponseSchema = import_zod23.z.object({
|
|
1854
|
+
var import_zod24 = require("zod");
|
|
1855
|
+
var CouponTypeSchema = import_zod24.z.enum(["DISCOUNT", "SERVICE"]);
|
|
1856
|
+
var CouponStatusSchema = import_zod24.z.enum(["UNUSED", "USED"]);
|
|
1857
|
+
var CouponResponseSchema = import_zod24.z.object({
|
|
1884
1858
|
couponId: CouponIdSchema,
|
|
1885
|
-
title:
|
|
1886
|
-
shopName:
|
|
1859
|
+
title: import_zod24.z.string(),
|
|
1860
|
+
shopName: import_zod24.z.string(),
|
|
1887
1861
|
type: CouponTypeSchema,
|
|
1888
|
-
condition:
|
|
1862
|
+
condition: import_zod24.z.string(),
|
|
1889
1863
|
expiresAt: ISODateStringSchema,
|
|
1890
|
-
used:
|
|
1891
|
-
thumbnailUrl:
|
|
1864
|
+
used: import_zod24.z.boolean(),
|
|
1865
|
+
thumbnailUrl: import_zod24.z.string().url()
|
|
1892
1866
|
});
|
|
1893
1867
|
|
|
1894
1868
|
// src/domain/promotion/challenge.schema.ts
|
|
1895
|
-
var
|
|
1896
|
-
var RewardTypeSchema =
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
days: import_zod24.z.array(import_zod24.z.boolean()),
|
|
1902
|
-
completed: import_zod24.z.number().int().min(0),
|
|
1903
|
-
goal: import_zod24.z.number().int().positive()
|
|
1869
|
+
var import_zod25 = require("zod");
|
|
1870
|
+
var RewardTypeSchema = import_zod25.z.enum(["WEEK", "MONTH"]);
|
|
1871
|
+
var WeekProgressSchema = import_zod25.z.object({
|
|
1872
|
+
days: import_zod25.z.array(import_zod25.z.boolean()),
|
|
1873
|
+
completed: import_zod25.z.number().int().min(0),
|
|
1874
|
+
goal: import_zod25.z.number().int().positive()
|
|
1904
1875
|
});
|
|
1905
|
-
var MonthProgressSchema =
|
|
1906
|
-
count:
|
|
1907
|
-
goal:
|
|
1876
|
+
var MonthProgressSchema = import_zod25.z.object({
|
|
1877
|
+
count: import_zod25.z.number().int().min(0),
|
|
1878
|
+
goal: import_zod25.z.number().int().positive()
|
|
1908
1879
|
});
|
|
1909
|
-
var ChallengeStatusResponseSchema =
|
|
1880
|
+
var ChallengeStatusResponseSchema = import_zod25.z.object({
|
|
1910
1881
|
week: WeekProgressSchema,
|
|
1911
1882
|
month: MonthProgressSchema,
|
|
1912
|
-
weekRewardAvailable:
|
|
1913
|
-
monthRewardAvailable:
|
|
1883
|
+
weekRewardAvailable: import_zod25.z.boolean(),
|
|
1884
|
+
monthRewardAvailable: import_zod25.z.boolean()
|
|
1914
1885
|
});
|
|
1915
|
-
var ClaimChallengeRewardRequestSchema =
|
|
1886
|
+
var ClaimChallengeRewardRequestSchema = import_zod25.z.object({
|
|
1916
1887
|
type: RewardTypeSchema
|
|
1917
1888
|
});
|
|
1918
|
-
var ClaimChallengeRewardResponseSchema =
|
|
1889
|
+
var ClaimChallengeRewardResponseSchema = import_zod25.z.object({
|
|
1919
1890
|
rewardType: RewardTypeSchema,
|
|
1920
|
-
claimed:
|
|
1891
|
+
claimed: import_zod25.z.boolean()
|
|
1921
1892
|
});
|
|
1922
1893
|
|
|
1923
1894
|
// src/domain/push/push.schema.ts
|
|
1924
|
-
var
|
|
1925
|
-
var PushProviderSchema =
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
]);
|
|
1929
|
-
var PushPlatformSchema = import_zod25.z.enum([
|
|
1930
|
-
"WEB",
|
|
1931
|
-
"ANDROID",
|
|
1932
|
-
"IOS"
|
|
1933
|
-
]);
|
|
1934
|
-
var PushPermissionStatusSchema = import_zod25.z.enum([
|
|
1895
|
+
var import_zod26 = require("zod");
|
|
1896
|
+
var PushProviderSchema = import_zod26.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
|
|
1897
|
+
var PushPlatformSchema = import_zod26.z.enum(["WEB", "ANDROID", "IOS"]);
|
|
1898
|
+
var PushPermissionStatusSchema = import_zod26.z.enum([
|
|
1935
1899
|
"UNKNOWN",
|
|
1936
1900
|
"PROMPT",
|
|
1937
1901
|
"GRANTED",
|
|
1938
1902
|
"DENIED"
|
|
1939
1903
|
]);
|
|
1940
|
-
var PushTokenStatusSchema =
|
|
1941
|
-
|
|
1942
|
-
"REVOKED",
|
|
1943
|
-
"DISABLED"
|
|
1944
|
-
]);
|
|
1945
|
-
var RegisterPushTokenRequestSchema = import_zod25.z.object({
|
|
1904
|
+
var PushTokenStatusSchema = import_zod26.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
|
|
1905
|
+
var RegisterPushTokenRequestSchema = import_zod26.z.object({
|
|
1946
1906
|
provider: PushProviderSchema.default("FCM"),
|
|
1947
1907
|
platform: PushPlatformSchema,
|
|
1948
|
-
token:
|
|
1949
|
-
deviceId:
|
|
1950
|
-
appVersion:
|
|
1951
|
-
buildNumber:
|
|
1908
|
+
token: import_zod26.z.string().min(10),
|
|
1909
|
+
deviceId: import_zod26.z.string().min(1).max(128),
|
|
1910
|
+
appVersion: import_zod26.z.string().min(1).max(64).optional(),
|
|
1911
|
+
buildNumber: import_zod26.z.string().min(1).max(64).optional(),
|
|
1952
1912
|
permissionStatus: PushPermissionStatusSchema
|
|
1953
1913
|
});
|
|
1954
|
-
var RevokePushTokenRequestSchema =
|
|
1914
|
+
var RevokePushTokenRequestSchema = import_zod26.z.object({
|
|
1955
1915
|
provider: PushProviderSchema.default("FCM"),
|
|
1956
|
-
token:
|
|
1957
|
-
deviceId:
|
|
1916
|
+
token: import_zod26.z.string().min(10).optional(),
|
|
1917
|
+
deviceId: import_zod26.z.string().min(1).max(128).optional()
|
|
1958
1918
|
});
|
|
1959
|
-
var PushTokenResponseSchema =
|
|
1960
|
-
pushTokenId:
|
|
1919
|
+
var PushTokenResponseSchema = import_zod26.z.object({
|
|
1920
|
+
pushTokenId: import_zod26.z.string().uuid(),
|
|
1961
1921
|
provider: PushProviderSchema,
|
|
1962
1922
|
platform: PushPlatformSchema,
|
|
1963
|
-
deviceId:
|
|
1923
|
+
deviceId: import_zod26.z.string(),
|
|
1964
1924
|
status: PushTokenStatusSchema,
|
|
1965
1925
|
permissionStatus: PushPermissionStatusSchema,
|
|
1966
|
-
appVersion:
|
|
1967
|
-
buildNumber:
|
|
1926
|
+
appVersion: import_zod26.z.string().nullable(),
|
|
1927
|
+
buildNumber: import_zod26.z.string().nullable(),
|
|
1968
1928
|
lastSeenAt: ISODateTimeStringSchema,
|
|
1969
1929
|
revokedAt: ISODateTimeStringSchema.nullable()
|
|
1970
1930
|
});
|
|
1971
|
-
var PushPayloadSchemaVersionSchema =
|
|
1972
|
-
var MealPlanPushPayloadDataSchema =
|
|
1931
|
+
var PushPayloadSchemaVersionSchema = import_zod26.z.literal("2026-06-17");
|
|
1932
|
+
var MealPlanPushPayloadDataSchema = import_zod26.z.object({
|
|
1973
1933
|
schemaVersion: PushPayloadSchemaVersionSchema,
|
|
1974
|
-
notificationId:
|
|
1934
|
+
notificationId: import_zod26.z.string().min(1),
|
|
1975
1935
|
kind: MealPlanNotificationKindSchema,
|
|
1976
1936
|
mealPlanId: MealPlanIdSchema,
|
|
1977
|
-
deepLink:
|
|
1978
|
-
title:
|
|
1979
|
-
body:
|
|
1980
|
-
fcmPriority:
|
|
1981
|
-
liveActivityPriority:
|
|
1937
|
+
deepLink: import_zod26.z.string().min(1),
|
|
1938
|
+
title: import_zod26.z.string().min(1),
|
|
1939
|
+
body: import_zod26.z.string().min(1),
|
|
1940
|
+
fcmPriority: import_zod26.z.coerce.number().int().min(0),
|
|
1941
|
+
liveActivityPriority: import_zod26.z.coerce.number().int().min(0),
|
|
1982
1942
|
liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
|
|
1983
1943
|
});
|
|
1984
|
-
var PushDeliveryStatusSchema =
|
|
1944
|
+
var PushDeliveryStatusSchema = import_zod26.z.enum([
|
|
1985
1945
|
"PENDING",
|
|
1986
1946
|
"SENT",
|
|
1987
1947
|
"FAILED",
|
|
1988
1948
|
"SKIPPED"
|
|
1989
1949
|
]);
|
|
1990
|
-
var PushDeliveryAttemptResultSchema =
|
|
1950
|
+
var PushDeliveryAttemptResultSchema = import_zod26.z.enum([
|
|
1991
1951
|
"SENT",
|
|
1992
1952
|
"FAILED",
|
|
1993
1953
|
"SKIPPED"
|
|
1994
1954
|
]);
|
|
1995
|
-
var PushDeliveryAttemptSummarySchema =
|
|
1996
|
-
attemptId:
|
|
1997
|
-
outboxId:
|
|
1998
|
-
pushTokenId:
|
|
1955
|
+
var PushDeliveryAttemptSummarySchema = import_zod26.z.object({
|
|
1956
|
+
attemptId: import_zod26.z.string().uuid(),
|
|
1957
|
+
outboxId: import_zod26.z.string().uuid(),
|
|
1958
|
+
pushTokenId: import_zod26.z.string().uuid().nullable(),
|
|
1999
1959
|
provider: PushProviderSchema,
|
|
2000
1960
|
result: PushDeliveryAttemptResultSchema,
|
|
2001
|
-
providerMessageId:
|
|
2002
|
-
errorCode:
|
|
2003
|
-
errorMessage:
|
|
2004
|
-
invalidToken:
|
|
1961
|
+
providerMessageId: import_zod26.z.string().nullable(),
|
|
1962
|
+
errorCode: import_zod26.z.string().nullable(),
|
|
1963
|
+
errorMessage: import_zod26.z.string().nullable(),
|
|
1964
|
+
invalidToken: import_zod26.z.boolean(),
|
|
2005
1965
|
createdAt: ISODateTimeStringSchema
|
|
2006
1966
|
});
|
|
2007
|
-
var PushDeliveryOutboxSummarySchema =
|
|
2008
|
-
outboxId:
|
|
2009
|
-
notificationId:
|
|
2010
|
-
memberId:
|
|
1967
|
+
var PushDeliveryOutboxSummarySchema = import_zod26.z.object({
|
|
1968
|
+
outboxId: import_zod26.z.string().uuid(),
|
|
1969
|
+
notificationId: import_zod26.z.string().min(1),
|
|
1970
|
+
memberId: import_zod26.z.number().int().positive(),
|
|
2011
1971
|
status: PushDeliveryStatusSchema,
|
|
2012
|
-
attemptCount:
|
|
2013
|
-
lastError:
|
|
1972
|
+
attemptCount: import_zod26.z.number().int().min(0),
|
|
1973
|
+
lastError: import_zod26.z.string().nullable(),
|
|
2014
1974
|
nextAttemptAt: ISODateTimeStringSchema.nullable(),
|
|
2015
1975
|
sentAt: ISODateTimeStringSchema.nullable(),
|
|
2016
1976
|
createdAt: ISODateTimeStringSchema
|
|
2017
1977
|
});
|
|
2018
1978
|
|
|
2019
1979
|
// src/domain/live-activity/live-activity.schema.ts
|
|
2020
|
-
var
|
|
2021
|
-
var MealPlanLiveActivityPlatformSchema =
|
|
1980
|
+
var import_zod27 = require("zod");
|
|
1981
|
+
var MealPlanLiveActivityPlatformSchema = import_zod27.z.enum([
|
|
2022
1982
|
"IOS_LIVE_ACTIVITY",
|
|
2023
1983
|
"ANDROID_LIVE_UPDATE"
|
|
2024
1984
|
]);
|
|
2025
|
-
var MealPlanLiveActivitySessionStatusSchema =
|
|
1985
|
+
var MealPlanLiveActivitySessionStatusSchema = import_zod27.z.enum([
|
|
2026
1986
|
"ACTIVE",
|
|
2027
1987
|
"ENDED",
|
|
2028
1988
|
"EXPIRED",
|
|
2029
1989
|
"DISABLED"
|
|
2030
1990
|
]);
|
|
2031
|
-
var MealPlanLiveActivityUpdateStatusSchema =
|
|
1991
|
+
var MealPlanLiveActivityUpdateStatusSchema = import_zod27.z.enum([
|
|
2032
1992
|
"PENDING",
|
|
2033
1993
|
"SENT",
|
|
2034
1994
|
"FAILED",
|
|
2035
1995
|
"SKIPPED"
|
|
2036
1996
|
]);
|
|
2037
|
-
var RegisterMealPlanLiveActivitySessionRequestSchema =
|
|
1997
|
+
var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
|
|
2038
1998
|
platform: MealPlanLiveActivityPlatformSchema,
|
|
2039
|
-
deviceId:
|
|
2040
|
-
activityId:
|
|
2041
|
-
pushToken:
|
|
2042
|
-
appVersion:
|
|
2043
|
-
buildNumber:
|
|
1999
|
+
deviceId: import_zod27.z.string().min(1).max(128),
|
|
2000
|
+
activityId: import_zod27.z.string().min(1).max(128),
|
|
2001
|
+
pushToken: import_zod27.z.string().min(10).optional(),
|
|
2002
|
+
appVersion: import_zod27.z.string().min(1).max(64).optional(),
|
|
2003
|
+
buildNumber: import_zod27.z.string().min(1).max(64).optional()
|
|
2044
2004
|
});
|
|
2045
|
-
var EndMealPlanLiveActivitySessionRequestSchema =
|
|
2005
|
+
var EndMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
|
|
2046
2006
|
platform: MealPlanLiveActivityPlatformSchema.optional(),
|
|
2047
|
-
deviceId:
|
|
2048
|
-
activityId:
|
|
2007
|
+
deviceId: import_zod27.z.string().min(1).max(128).optional(),
|
|
2008
|
+
activityId: import_zod27.z.string().min(1).max(128).optional()
|
|
2049
2009
|
});
|
|
2050
|
-
var MealPlanLiveActivityStateSchema =
|
|
2010
|
+
var MealPlanLiveActivityStateSchema = import_zod27.z.object({
|
|
2051
2011
|
mealPlanId: MealPlanIdSchema,
|
|
2052
|
-
title:
|
|
2053
|
-
status:
|
|
2012
|
+
title: import_zod27.z.string().min(1),
|
|
2013
|
+
status: import_zod27.z.string().min(1),
|
|
2054
2014
|
scheduledAt: ISODateTimeStringSchema.nullable(),
|
|
2055
|
-
restaurantName:
|
|
2056
|
-
placeName:
|
|
2057
|
-
deepLink:
|
|
2058
|
-
progressLabel:
|
|
2015
|
+
restaurantName: import_zod27.z.string().nullable(),
|
|
2016
|
+
placeName: import_zod27.z.string().nullable(),
|
|
2017
|
+
deepLink: import_zod27.z.string().min(1),
|
|
2018
|
+
progressLabel: import_zod27.z.string().min(1),
|
|
2059
2019
|
updatedAt: ISODateTimeStringSchema
|
|
2060
2020
|
});
|
|
2061
|
-
var MealPlanLiveActivitySessionResponseSchema =
|
|
2062
|
-
sessionId:
|
|
2021
|
+
var MealPlanLiveActivitySessionResponseSchema = import_zod27.z.object({
|
|
2022
|
+
sessionId: import_zod27.z.string().uuid(),
|
|
2063
2023
|
mealPlanId: MealPlanIdSchema,
|
|
2064
|
-
memberId:
|
|
2024
|
+
memberId: import_zod27.z.number().int().positive(),
|
|
2065
2025
|
platform: MealPlanLiveActivityPlatformSchema,
|
|
2066
2026
|
devicePlatform: PushPlatformSchema,
|
|
2067
|
-
deviceId:
|
|
2068
|
-
activityId:
|
|
2027
|
+
deviceId: import_zod27.z.string(),
|
|
2028
|
+
activityId: import_zod27.z.string(),
|
|
2069
2029
|
status: MealPlanLiveActivitySessionStatusSchema,
|
|
2070
|
-
appVersion:
|
|
2071
|
-
buildNumber:
|
|
2030
|
+
appVersion: import_zod27.z.string().nullable(),
|
|
2031
|
+
buildNumber: import_zod27.z.string().nullable(),
|
|
2072
2032
|
lastEventKind: MealPlanNotificationKindSchema.nullable(),
|
|
2073
2033
|
lastBehavior: MealPlanLiveActivityBehaviorSchema.nullable(),
|
|
2074
2034
|
lastUpdateStatus: MealPlanLiveActivityUpdateStatusSchema.nullable(),
|
|
2075
|
-
lastError:
|
|
2035
|
+
lastError: import_zod27.z.string().nullable(),
|
|
2076
2036
|
startedAt: ISODateTimeStringSchema,
|
|
2077
2037
|
endedAt: ISODateTimeStringSchema.nullable(),
|
|
2078
2038
|
updatedAt: ISODateTimeStringSchema
|
|
2079
2039
|
});
|
|
2080
|
-
var MealPlanLiveActivitySessionListResponseSchema =
|
|
2040
|
+
var MealPlanLiveActivitySessionListResponseSchema = import_zod27.z.object({
|
|
2081
2041
|
mealPlanId: MealPlanIdSchema,
|
|
2082
2042
|
state: MealPlanLiveActivityStateSchema,
|
|
2083
|
-
sessions:
|
|
2043
|
+
sessions: import_zod27.z.array(MealPlanLiveActivitySessionResponseSchema)
|
|
2084
2044
|
});
|
|
2085
2045
|
|
|
2086
2046
|
// src/domain/common/contracts/endpoint.ts
|
|
2087
|
-
var
|
|
2088
|
-
var NoBodySchema =
|
|
2089
|
-
var NoQuerySchema =
|
|
2090
|
-
var NoParamsSchema =
|
|
2091
|
-
var endpoint =
|
|
2047
|
+
var import_zod28 = require("zod");
|
|
2048
|
+
var NoBodySchema = import_zod28.z.undefined();
|
|
2049
|
+
var NoQuerySchema = import_zod28.z.undefined();
|
|
2050
|
+
var NoParamsSchema = import_zod28.z.undefined();
|
|
2051
|
+
var endpoint = (contract) => ({
|
|
2092
2052
|
method: contract.method,
|
|
2093
2053
|
path: contract.path,
|
|
2094
2054
|
pathParams: contract.pathParams ?? NoParamsSchema,
|
|
2095
2055
|
query: contract.query ?? NoQuerySchema,
|
|
2096
2056
|
body: contract.body ?? NoBodySchema,
|
|
2097
2057
|
response: contract.response
|
|
2098
|
-
})
|
|
2058
|
+
});
|
|
2099
2059
|
|
|
2100
2060
|
// src/domain/common/contracts/api.ts
|
|
2101
|
-
var memberIdParam =
|
|
2102
|
-
|
|
2103
|
-
});
|
|
2104
|
-
var
|
|
2105
|
-
|
|
2106
|
-
});
|
|
2107
|
-
var commentIdParam = import_zod28.z.object({
|
|
2108
|
-
commentId: CommentIdSchema
|
|
2109
|
-
});
|
|
2110
|
-
var mealPlanIdParam = import_zod28.z.object({
|
|
2111
|
-
mealPlanId: MealPlanIdSchema
|
|
2112
|
-
});
|
|
2113
|
-
var mealPlanInviteIdParam = import_zod28.z.object({
|
|
2114
|
-
inviteId: MealPlanInviteIdSchema
|
|
2115
|
-
});
|
|
2116
|
-
var mealPlanJoinRequestIdParam = import_zod28.z.object({
|
|
2117
|
-
requestId: MealPlanJoinRequestIdSchema
|
|
2118
|
-
});
|
|
2061
|
+
var memberIdParam = import_zod29.z.object({ memberId: MemberIdSchema });
|
|
2062
|
+
var articleIdParam = import_zod29.z.object({ articleId: ArticleIdSchema });
|
|
2063
|
+
var commentIdParam = import_zod29.z.object({ commentId: CommentIdSchema });
|
|
2064
|
+
var mealPlanIdParam = import_zod29.z.object({ mealPlanId: MealPlanIdSchema });
|
|
2065
|
+
var mealPlanInviteIdParam = import_zod29.z.object({ inviteId: MealPlanInviteIdSchema });
|
|
2066
|
+
var mealPlanJoinRequestIdParam = import_zod29.z.object({ requestId: MealPlanJoinRequestIdSchema });
|
|
2119
2067
|
var mealPlanDecisionStageIdParam = mealPlanIdParam.extend({
|
|
2120
2068
|
stageId: MealPlanDecisionStageIdSchema
|
|
2121
2069
|
});
|
|
@@ -2126,707 +2074,157 @@ var mealPlanDecisionTaskKeyParam = mealPlanIdParam.extend({
|
|
|
2126
2074
|
taskKey: MealPlanDecisionTaskKeySchema
|
|
2127
2075
|
});
|
|
2128
2076
|
var mealPlanDecisionSnapshotIdParam = mealPlanIdParam.extend({
|
|
2129
|
-
snapshotId:
|
|
2077
|
+
snapshotId: import_zod29.z.string().uuid()
|
|
2130
2078
|
});
|
|
2131
2079
|
var mealPlanParticipantIdParam = mealPlanIdParam.extend({
|
|
2132
|
-
participantId:
|
|
2133
|
-
});
|
|
2134
|
-
var mealPlanShareTokenParam =
|
|
2135
|
-
|
|
2136
|
-
});
|
|
2137
|
-
var
|
|
2138
|
-
|
|
2139
|
-
});
|
|
2140
|
-
var
|
|
2141
|
-
couponId: CouponIdSchema
|
|
2142
|
-
});
|
|
2143
|
-
var mealGroupIdParam = import_zod28.z.object({
|
|
2144
|
-
mealGroupId: MealGroupIdSchema
|
|
2145
|
-
});
|
|
2146
|
-
var mealGroupMemberIdParam = mealGroupIdParam.extend({
|
|
2147
|
-
memberId: MemberIdSchema
|
|
2148
|
-
});
|
|
2149
|
-
var friendRequestIdParam = import_zod28.z.object({
|
|
2150
|
-
requestId: FriendRequestIdSchema
|
|
2151
|
-
});
|
|
2152
|
-
var sseTokenQuery = import_zod28.z.object({
|
|
2153
|
-
token: import_zod28.z.string().min(1)
|
|
2154
|
-
});
|
|
2080
|
+
participantId: import_zod29.z.string().uuid()
|
|
2081
|
+
});
|
|
2082
|
+
var mealPlanShareTokenParam = import_zod29.z.object({ token: MealPlanShareLinkTokenSchema });
|
|
2083
|
+
var notificationIdParam = import_zod29.z.object({ notificationId: import_zod29.z.string().min(1) });
|
|
2084
|
+
var couponIdParam = import_zod29.z.object({ couponId: CouponIdSchema });
|
|
2085
|
+
var mealGroupIdParam = import_zod29.z.object({ mealGroupId: MealGroupIdSchema });
|
|
2086
|
+
var mealGroupMemberIdParam = mealGroupIdParam.extend({ memberId: MemberIdSchema });
|
|
2087
|
+
var friendRequestIdParam = import_zod29.z.object({ requestId: FriendRequestIdSchema });
|
|
2088
|
+
var sseTokenQuery = import_zod29.z.object({ token: import_zod29.z.string().min(1) });
|
|
2155
2089
|
var apiContract = {
|
|
2156
2090
|
auth: {
|
|
2157
|
-
signup: endpoint({
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
response: SignupResponseSchema
|
|
2162
|
-
}),
|
|
2163
|
-
login: endpoint({
|
|
2164
|
-
method: "POST",
|
|
2165
|
-
path: "/auth/login",
|
|
2166
|
-
body: LoginRequestSchema,
|
|
2167
|
-
response: TokenResponseSchema
|
|
2168
|
-
}),
|
|
2169
|
-
refresh: endpoint({
|
|
2170
|
-
method: "POST",
|
|
2171
|
-
path: "/auth/refresh",
|
|
2172
|
-
response: TokenResponseSchema
|
|
2173
|
-
}),
|
|
2174
|
-
logout: endpoint({
|
|
2175
|
-
method: "POST",
|
|
2176
|
-
path: "/auth/logout",
|
|
2177
|
-
response: NoContentSchema
|
|
2178
|
-
})
|
|
2091
|
+
signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
|
|
2092
|
+
login: endpoint({ method: "POST", path: "/auth/login", body: LoginRequestSchema, response: TokenResponseSchema }),
|
|
2093
|
+
refresh: endpoint({ method: "POST", path: "/auth/refresh", response: TokenResponseSchema }),
|
|
2094
|
+
logout: endpoint({ method: "POST", path: "/auth/logout", response: NoContentSchema })
|
|
2179
2095
|
},
|
|
2180
2096
|
members: {
|
|
2181
|
-
me: endpoint({
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
}),
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
}),
|
|
2191
|
-
|
|
2192
|
-
method: "GET",
|
|
2193
|
-
path: "/members/search",
|
|
2194
|
-
query: MemberSearchQuerySchema,
|
|
2195
|
-
response: MemberSerachResponseSchema
|
|
2196
|
-
}),
|
|
2197
|
-
memberProfile: endpoint({
|
|
2198
|
-
method: "GET",
|
|
2199
|
-
path: "/members/:memberId/profile",
|
|
2200
|
-
pathParams: memberIdParam,
|
|
2201
|
-
response: ProfileDetailResponseSchema
|
|
2202
|
-
}),
|
|
2203
|
-
presignProfileImage: endpoint({
|
|
2204
|
-
method: "POST",
|
|
2205
|
-
path: "/uploads/presign-profile",
|
|
2206
|
-
body: UploadProfileImageRequestSchema,
|
|
2207
|
-
response: UploadProfileImageResponseSchema
|
|
2208
|
-
}),
|
|
2209
|
-
createProfile: endpoint({
|
|
2210
|
-
method: "POST",
|
|
2211
|
-
path: "/members/onboarding",
|
|
2212
|
-
body: CreateProfileRequestSchema,
|
|
2213
|
-
response: NoContentSchema
|
|
2214
|
-
}),
|
|
2215
|
-
createProfileAlias: endpoint({
|
|
2216
|
-
method: "POST",
|
|
2217
|
-
path: "/onboarding",
|
|
2218
|
-
body: CreateProfileRequestSchema,
|
|
2219
|
-
response: NoContentSchema
|
|
2220
|
-
}),
|
|
2221
|
-
updateProfile: endpoint({
|
|
2222
|
-
method: "PATCH",
|
|
2223
|
-
path: "/members/me/profile",
|
|
2224
|
-
body: UpdateProfileRequestSchema,
|
|
2225
|
-
response: NoContentSchema
|
|
2226
|
-
}),
|
|
2227
|
-
locationSettings: endpoint({
|
|
2228
|
-
method: "GET",
|
|
2229
|
-
path: "/members/me/location-settings",
|
|
2230
|
-
response: MemberLocationSettingsResponseSchema
|
|
2231
|
-
}),
|
|
2232
|
-
updateLocationConsent: endpoint({
|
|
2233
|
-
method: "PATCH",
|
|
2234
|
-
path: "/members/me/location-consent",
|
|
2235
|
-
body: UpdateMemberLocationConsentRequestSchema,
|
|
2236
|
-
response: MemberLocationSettingsResponseSchema
|
|
2237
|
-
}),
|
|
2238
|
-
updateLocation: endpoint({
|
|
2239
|
-
method: "PATCH",
|
|
2240
|
-
path: "/members/me/location",
|
|
2241
|
-
body: UpdateMemberLocationRequestSchema,
|
|
2242
|
-
response: MemberLocationSettingsResponseSchema
|
|
2243
|
-
})
|
|
2097
|
+
me: endpoint({ method: "GET", path: "/members/me", response: MemberResponseSchema }),
|
|
2098
|
+
myProfile: endpoint({ method: "GET", path: "/members/me/profile", response: ProfileDetailResponseSchema }),
|
|
2099
|
+
search: endpoint({ method: "GET", path: "/members/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
|
|
2100
|
+
memberProfile: endpoint({ method: "GET", path: "/members/:memberId/profile", pathParams: memberIdParam, response: ProfileDetailResponseSchema }),
|
|
2101
|
+
presignProfileImage: endpoint({ method: "POST", path: "/uploads/presign-profile", body: UploadProfileImageRequestSchema, response: UploadProfileImageResponseSchema }),
|
|
2102
|
+
createProfile: endpoint({ method: "POST", path: "/members/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
|
|
2103
|
+
createProfileAlias: endpoint({ method: "POST", path: "/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
|
|
2104
|
+
updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema }),
|
|
2105
|
+
locationSettings: endpoint({ method: "GET", path: "/members/me/location-settings", response: MemberLocationSettingsResponseSchema }),
|
|
2106
|
+
updateLocationConsent: endpoint({ method: "PATCH", path: "/members/me/location-consent", body: UpdateMemberLocationConsentRequestSchema, response: MemberLocationSettingsResponseSchema }),
|
|
2107
|
+
updateLocation: endpoint({ method: "PATCH", path: "/members/me/location", body: UpdateMemberLocationRequestSchema, response: MemberLocationSettingsResponseSchema })
|
|
2244
2108
|
},
|
|
2245
2109
|
preferences: {
|
|
2246
|
-
my: endpoint({
|
|
2247
|
-
|
|
2248
|
-
path: "/preferences/me",
|
|
2249
|
-
response: MemberFoodPreferenceSchema
|
|
2250
|
-
}),
|
|
2251
|
-
update: endpoint({
|
|
2252
|
-
method: "PATCH",
|
|
2253
|
-
path: "/preferences/me",
|
|
2254
|
-
body: UpdatePreferenceRequestSchema,
|
|
2255
|
-
response: NoContentSchema
|
|
2256
|
-
})
|
|
2110
|
+
my: endpoint({ method: "GET", path: "/preferences/me", response: MemberFoodPreferenceSchema }),
|
|
2111
|
+
update: endpoint({ method: "PATCH", path: "/preferences/me", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
|
|
2257
2112
|
},
|
|
2258
2113
|
mealStatus: {
|
|
2259
|
-
my: endpoint({
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
response: MealStatusResponseSchema
|
|
2263
|
-
}),
|
|
2264
|
-
updateMealStatus: endpoint({
|
|
2265
|
-
method: "PATCH",
|
|
2266
|
-
path: "/members/me/meal-status",
|
|
2267
|
-
body: UpdateMealStatusRequestSchema,
|
|
2268
|
-
response: NoContentSchema
|
|
2269
|
-
}),
|
|
2270
|
-
friendMealStatus: endpoint({
|
|
2271
|
-
method: "GET",
|
|
2272
|
-
path: "/friends/me/meals",
|
|
2273
|
-
query: FriendMealQuerySchema,
|
|
2274
|
-
response: import_zod28.z.array(FriendMealItemResponseSchema)
|
|
2275
|
-
})
|
|
2114
|
+
my: endpoint({ method: "GET", path: "/members/me/meal-status", response: MealStatusResponseSchema }),
|
|
2115
|
+
updateMealStatus: endpoint({ method: "PATCH", path: "/members/me/meal-status", body: UpdateMealStatusRequestSchema, response: NoContentSchema }),
|
|
2116
|
+
friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod29.z.array(FriendMealItemResponseSchema) })
|
|
2276
2117
|
},
|
|
2277
2118
|
articles: {
|
|
2278
|
-
list: endpoint({
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
}),
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
query: ArticleListQuerySchema,
|
|
2289
|
-
response: PageArticleSummaryResponseSchema
|
|
2290
|
-
}),
|
|
2291
|
-
my: endpoint({
|
|
2292
|
-
method: "GET",
|
|
2293
|
-
path: "/articles/my",
|
|
2294
|
-
response: PageArticleSummaryResponseSchema
|
|
2295
|
-
}),
|
|
2296
|
-
detail: endpoint({
|
|
2297
|
-
method: "GET",
|
|
2298
|
-
path: "/articles/:articleId",
|
|
2299
|
-
pathParams: articleIdParam,
|
|
2300
|
-
response: ArticleDetailResponseSchema
|
|
2301
|
-
}),
|
|
2302
|
-
create: endpoint({
|
|
2303
|
-
method: "POST",
|
|
2304
|
-
path: "/articles",
|
|
2305
|
-
body: CreateArticleRequestSchema,
|
|
2306
|
-
response: CreatedEntityIdResponseSchema
|
|
2307
|
-
}),
|
|
2308
|
-
like: endpoint({
|
|
2309
|
-
method: "POST",
|
|
2310
|
-
path: "/articles/:articleId/like",
|
|
2311
|
-
pathParams: articleIdParam,
|
|
2312
|
-
response: ArticleLikeResponseSchema
|
|
2313
|
-
}),
|
|
2314
|
-
createComment: endpoint({
|
|
2315
|
-
method: "POST",
|
|
2316
|
-
path: "/articles/:articleId/comments",
|
|
2317
|
-
pathParams: articleIdParam,
|
|
2318
|
-
body: CreateCommentRequestSchema,
|
|
2319
|
-
response: CreatedEntityIdResponseSchema
|
|
2320
|
-
}),
|
|
2321
|
-
presignArticleImage: endpoint({
|
|
2322
|
-
method: "POST",
|
|
2323
|
-
path: "/uploads/presign-article",
|
|
2324
|
-
body: UploadArticleImageRequestSchema,
|
|
2325
|
-
response: UploadArticleImageResponseSchema
|
|
2326
|
-
}),
|
|
2327
|
-
delete: endpoint({
|
|
2328
|
-
method: "DELETE",
|
|
2329
|
-
path: "/articles/:articleId",
|
|
2330
|
-
pathParams: articleIdParam,
|
|
2331
|
-
response: NoContentSchema
|
|
2332
|
-
}),
|
|
2333
|
-
deleteComment: endpoint({
|
|
2334
|
-
method: "DELETE",
|
|
2335
|
-
path: "/articles/comments/:commentId",
|
|
2336
|
-
pathParams: commentIdParam,
|
|
2337
|
-
response: NoContentSchema
|
|
2338
|
-
})
|
|
2119
|
+
list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
|
|
2120
|
+
byMember: endpoint({ method: "GET", path: "/articles/by-author/:memberId", pathParams: memberIdParam, query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
|
|
2121
|
+
my: endpoint({ method: "GET", path: "/articles/my", response: PageArticleSummaryResponseSchema }),
|
|
2122
|
+
detail: endpoint({ method: "GET", path: "/articles/:articleId", pathParams: articleIdParam, response: ArticleDetailResponseSchema }),
|
|
2123
|
+
create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
2124
|
+
like: endpoint({ method: "POST", path: "/articles/:articleId/like", pathParams: articleIdParam, response: ArticleLikeResponseSchema }),
|
|
2125
|
+
createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
2126
|
+
presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", body: UploadArticleImageRequestSchema, response: UploadArticleImageResponseSchema }),
|
|
2127
|
+
delete: endpoint({ method: "DELETE", path: "/articles/:articleId", pathParams: articleIdParam, response: NoContentSchema }),
|
|
2128
|
+
deleteComment: endpoint({ method: "DELETE", path: "/articles/comments/:commentId", pathParams: commentIdParam, response: NoContentSchema })
|
|
2339
2129
|
},
|
|
2340
2130
|
mealPlans: {
|
|
2341
|
-
create: endpoint({
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
}),
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
}),
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
}),
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
}),
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
}),
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
}),
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
body: UpdateMealPlanContextRequestSchema,
|
|
2380
|
-
response: MealPlanResponseSchema
|
|
2381
|
-
}),
|
|
2382
|
-
complete: endpoint({
|
|
2383
|
-
method: "POST",
|
|
2384
|
-
path: "/meal-plans/:mealPlanId/complete",
|
|
2385
|
-
pathParams: mealPlanIdParam,
|
|
2386
|
-
response: MealPlanResponseSchema
|
|
2387
|
-
}),
|
|
2388
|
-
cancel: endpoint({
|
|
2389
|
-
method: "POST",
|
|
2390
|
-
path: "/meal-plans/:mealPlanId/cancel",
|
|
2391
|
-
pathParams: mealPlanIdParam,
|
|
2392
|
-
response: MealPlanResponseSchema
|
|
2393
|
-
}),
|
|
2394
|
-
removeParticipant: endpoint({
|
|
2395
|
-
method: "POST",
|
|
2396
|
-
path: "/meal-plans/:mealPlanId/participants/:participantId/remove",
|
|
2397
|
-
pathParams: mealPlanParticipantIdParam,
|
|
2398
|
-
response: MealPlanResponseSchema
|
|
2399
|
-
}),
|
|
2400
|
-
recorded: endpoint({
|
|
2401
|
-
method: "POST",
|
|
2402
|
-
path: "/meal-plans/:mealPlanId/recorded",
|
|
2403
|
-
pathParams: mealPlanIdParam,
|
|
2404
|
-
response: MealPlanResponseSchema
|
|
2405
|
-
}),
|
|
2406
|
-
invite: endpoint({
|
|
2407
|
-
method: "POST",
|
|
2408
|
-
path: "/meal-plans/:mealPlanId/invites",
|
|
2409
|
-
pathParams: mealPlanIdParam,
|
|
2410
|
-
body: CreateMealPlanInviteRequestSchema,
|
|
2411
|
-
response: SendMealPlanInviteResponseSchema
|
|
2412
|
-
}),
|
|
2413
|
-
receivedInvites: endpoint({
|
|
2414
|
-
method: "GET",
|
|
2415
|
-
path: "/meal-plans/invites/received",
|
|
2416
|
-
response: MealPlanInviteListResponseSchema
|
|
2417
|
-
}),
|
|
2418
|
-
sentInvites: endpoint({
|
|
2419
|
-
method: "GET",
|
|
2420
|
-
path: "/meal-plans/invites/sent",
|
|
2421
|
-
response: MealPlanInviteListResponseSchema
|
|
2422
|
-
}),
|
|
2423
|
-
acceptInvite: endpoint({
|
|
2424
|
-
method: "POST",
|
|
2425
|
-
path: "/meal-plans/invites/:inviteId/accept",
|
|
2426
|
-
pathParams: mealPlanInviteIdParam,
|
|
2427
|
-
response: MealPlanResponseSchema
|
|
2428
|
-
}),
|
|
2429
|
-
declineInvite: endpoint({
|
|
2430
|
-
method: "POST",
|
|
2431
|
-
path: "/meal-plans/invites/:inviteId/decline",
|
|
2432
|
-
pathParams: mealPlanInviteIdParam,
|
|
2433
|
-
response: NoContentSchema
|
|
2434
|
-
}),
|
|
2435
|
-
createShareLink: endpoint({
|
|
2436
|
-
method: "POST",
|
|
2437
|
-
path: "/meal-plans/:mealPlanId/share-links",
|
|
2438
|
-
pathParams: mealPlanIdParam,
|
|
2439
|
-
body: CreateMealPlanShareLinkRequestSchema,
|
|
2440
|
-
response: MealPlanShareLinkSummarySchema
|
|
2441
|
-
}),
|
|
2442
|
-
sharePreview: endpoint({
|
|
2443
|
-
method: "GET",
|
|
2444
|
-
path: "/meal-plan-links/:token",
|
|
2445
|
-
pathParams: mealPlanShareTokenParam,
|
|
2446
|
-
response: MealPlanSharePreviewResponseSchema
|
|
2447
|
-
}),
|
|
2448
|
-
joinGuest: endpoint({
|
|
2449
|
-
method: "POST",
|
|
2450
|
-
path: "/meal-plan-links/:token/join",
|
|
2451
|
-
pathParams: mealPlanShareTokenParam,
|
|
2452
|
-
body: JoinMealPlanGuestRequestSchema,
|
|
2453
|
-
response: JoinMealPlanGuestResponseSchema
|
|
2454
|
-
}),
|
|
2455
|
-
guestSession: endpoint({
|
|
2456
|
-
method: "GET",
|
|
2457
|
-
path: "/meal-plan-links/:token/session",
|
|
2458
|
-
pathParams: mealPlanShareTokenParam,
|
|
2459
|
-
query: MealPlanGuestSessionQuerySchema,
|
|
2460
|
-
response: MealPlanGuestSessionResponseSchema
|
|
2461
|
-
}),
|
|
2462
|
-
guestChatMessages: endpoint({
|
|
2463
|
-
method: "GET",
|
|
2464
|
-
path: "/meal-plan-links/:token/chat/messages",
|
|
2465
|
-
pathParams: mealPlanShareTokenParam,
|
|
2466
|
-
query: MealPlanGuestSessionQuerySchema,
|
|
2467
|
-
response: MealPlanChatMessageListResponseSchema
|
|
2468
|
-
}),
|
|
2469
|
-
exposeNearbyFriends: endpoint({
|
|
2470
|
-
method: "POST",
|
|
2471
|
-
path: "/meal-plans/:mealPlanId/nearby-friends/expose",
|
|
2472
|
-
pathParams: mealPlanIdParam,
|
|
2473
|
-
body: ExposeMealPlanToNearbyFriendsRequestSchema,
|
|
2474
|
-
response: ExposeMealPlanToNearbyFriendsResponseSchema
|
|
2475
|
-
}),
|
|
2476
|
-
closeNearbyFriends: endpoint({
|
|
2477
|
-
method: "DELETE",
|
|
2478
|
-
path: "/meal-plans/:mealPlanId/nearby-friends/expose",
|
|
2479
|
-
pathParams: mealPlanIdParam,
|
|
2480
|
-
response: NoContentSchema
|
|
2481
|
-
}),
|
|
2482
|
-
nearbyFriendExposureEligibility: endpoint({
|
|
2483
|
-
method: "GET",
|
|
2484
|
-
path: "/meal-plans/nearby-friends/eligibility",
|
|
2485
|
-
response: NearbyFriendExposureEligibilitySchema
|
|
2486
|
-
}),
|
|
2487
|
-
nearbyFriends: endpoint({
|
|
2488
|
-
method: "GET",
|
|
2489
|
-
path: "/meal-plans/nearby-friends",
|
|
2490
|
-
response: import_zod28.z.array(NearbyFriendMealPlanSummarySchema)
|
|
2491
|
-
}),
|
|
2492
|
-
requestJoin: endpoint({
|
|
2493
|
-
method: "POST",
|
|
2494
|
-
path: "/meal-plans/:mealPlanId/join-requests",
|
|
2495
|
-
pathParams: mealPlanIdParam,
|
|
2496
|
-
body: CreateMealPlanJoinRequestSchema,
|
|
2497
|
-
response: CreatedEntityIdResponseSchema
|
|
2498
|
-
}),
|
|
2499
|
-
acceptJoinRequest: endpoint({
|
|
2500
|
-
method: "POST",
|
|
2501
|
-
path: "/meal-plans/join-requests/:requestId/accept",
|
|
2502
|
-
pathParams: mealPlanJoinRequestIdParam,
|
|
2503
|
-
response: MealPlanResponseSchema
|
|
2504
|
-
}),
|
|
2505
|
-
rejectJoinRequest: endpoint({
|
|
2506
|
-
method: "POST",
|
|
2507
|
-
path: "/meal-plans/join-requests/:requestId/reject",
|
|
2508
|
-
pathParams: mealPlanJoinRequestIdParam,
|
|
2509
|
-
response: NoContentSchema
|
|
2510
|
-
}),
|
|
2511
|
-
vote: endpoint({
|
|
2512
|
-
method: "POST",
|
|
2513
|
-
path: "/meal-plans/:mealPlanId/stages/:stageId/votes",
|
|
2514
|
-
pathParams: mealPlanDecisionStageIdParam,
|
|
2515
|
-
body: CreateMealPlanVoteRequestSchema,
|
|
2516
|
-
response: MealPlanResponseSchema
|
|
2517
|
-
}),
|
|
2518
|
-
completeStage: endpoint({
|
|
2519
|
-
method: "POST",
|
|
2520
|
-
path: "/meal-plans/:mealPlanId/stages/:stageId/complete",
|
|
2521
|
-
pathParams: mealPlanDecisionStageIdParam,
|
|
2522
|
-
body: CompleteMealPlanDecisionStageRequestSchema,
|
|
2523
|
-
response: MealPlanResponseSchema
|
|
2524
|
-
}),
|
|
2525
|
-
decisionProgress: endpoint({
|
|
2526
|
-
method: "GET",
|
|
2527
|
-
path: "/meal-plans/:mealPlanId/decision-progress",
|
|
2528
|
-
pathParams: mealPlanIdParam,
|
|
2529
|
-
response: MealPlanDecisionProgressSchema
|
|
2530
|
-
}),
|
|
2531
|
-
readyDecisionTask: endpoint({
|
|
2532
|
-
method: "POST",
|
|
2533
|
-
path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/ready",
|
|
2534
|
-
pathParams: mealPlanDecisionTaskKeyParam,
|
|
2535
|
-
body: MealPlanDecisionTaskReadyRequestSchema,
|
|
2536
|
-
response: MealPlanResponseSchema
|
|
2537
|
-
}),
|
|
2538
|
-
reopenDecisionTask: endpoint({
|
|
2539
|
-
method: "POST",
|
|
2540
|
-
path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen",
|
|
2541
|
-
pathParams: mealPlanDecisionTaskKeyParam,
|
|
2542
|
-
body: ReopenMealPlanDecisionTaskRequestSchema,
|
|
2543
|
-
response: MealPlanResponseSchema
|
|
2544
|
-
}),
|
|
2545
|
-
confirmDecisionSnapshot: endpoint({
|
|
2546
|
-
method: "POST",
|
|
2547
|
-
path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm",
|
|
2548
|
-
pathParams: mealPlanDecisionSnapshotIdParam,
|
|
2549
|
-
body: ConfirmMealPlanDecisionSnapshotRequestSchema,
|
|
2550
|
-
response: MealPlanResponseSchema
|
|
2551
|
-
}),
|
|
2552
|
-
ready: endpoint({
|
|
2553
|
-
method: "POST",
|
|
2554
|
-
path: "/meal-plans/:mealPlanId/ready",
|
|
2555
|
-
pathParams: mealPlanIdParam,
|
|
2556
|
-
response: MealPlanResponseSchema
|
|
2557
|
-
}),
|
|
2558
|
-
unready: endpoint({
|
|
2559
|
-
method: "POST",
|
|
2560
|
-
path: "/meal-plans/:mealPlanId/unready",
|
|
2561
|
-
pathParams: mealPlanIdParam,
|
|
2562
|
-
response: MealPlanResponseSchema
|
|
2563
|
-
}),
|
|
2564
|
-
createChangeRequest: endpoint({
|
|
2565
|
-
method: "POST",
|
|
2566
|
-
path: "/meal-plans/:mealPlanId/change-requests",
|
|
2567
|
-
pathParams: mealPlanIdParam,
|
|
2568
|
-
body: CreateMealPlanChangeRequestSchema,
|
|
2569
|
-
response: CreatedEntityIdResponseSchema
|
|
2570
|
-
}),
|
|
2571
|
-
acceptChangeRequest: endpoint({
|
|
2572
|
-
method: "POST",
|
|
2573
|
-
path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept",
|
|
2574
|
-
pathParams: mealPlanChangeRequestIdParam,
|
|
2575
|
-
response: MealPlanResponseSchema
|
|
2576
|
-
}),
|
|
2577
|
-
confirm: endpoint({
|
|
2578
|
-
method: "POST",
|
|
2579
|
-
path: "/meal-plans/:mealPlanId/confirm",
|
|
2580
|
-
pathParams: mealPlanIdParam,
|
|
2581
|
-
response: MealPlanResponseSchema
|
|
2582
|
-
})
|
|
2131
|
+
create: endpoint({ method: "POST", path: "/meal-plans", body: CreateMealPlanRequestSchema, response: CreateMealPlanResponseSchema }),
|
|
2132
|
+
my: endpoint({ method: "GET", path: "/meal-plans/me", response: MyMealPlanListResponseSchema }),
|
|
2133
|
+
homeDashboard: endpoint({ method: "GET", path: "/meal-plans/home-dashboard", response: HomeMealPlanDashboardResponseSchema }),
|
|
2134
|
+
map: endpoint({ method: "GET", path: "/meal-plans/map", query: MealMapQuerySchema, response: MealMapResponseSchema }),
|
|
2135
|
+
detail: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
2136
|
+
chatMessages: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/chat/messages", pathParams: mealPlanIdParam, response: MealPlanChatMessageListResponseSchema }),
|
|
2137
|
+
updateContext: endpoint({ method: "PATCH", path: "/meal-plans/:mealPlanId/context", pathParams: mealPlanIdParam, body: UpdateMealPlanContextRequestSchema, response: MealPlanResponseSchema }),
|
|
2138
|
+
complete: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/complete", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
2139
|
+
cancel: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/cancel", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
2140
|
+
removeParticipant: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/participants/:participantId/remove", pathParams: mealPlanParticipantIdParam, response: MealPlanResponseSchema }),
|
|
2141
|
+
recorded: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/recorded", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
2142
|
+
invite: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/invites", pathParams: mealPlanIdParam, body: CreateMealPlanInviteRequestSchema, response: SendMealPlanInviteResponseSchema }),
|
|
2143
|
+
receivedInvites: endpoint({ method: "GET", path: "/meal-plans/invites/received", response: MealPlanInviteListResponseSchema }),
|
|
2144
|
+
sentInvites: endpoint({ method: "GET", path: "/meal-plans/invites/sent", response: MealPlanInviteListResponseSchema }),
|
|
2145
|
+
acceptInvite: endpoint({ method: "POST", path: "/meal-plans/invites/:inviteId/accept", pathParams: mealPlanInviteIdParam, response: MealPlanResponseSchema }),
|
|
2146
|
+
declineInvite: endpoint({ method: "POST", path: "/meal-plans/invites/:inviteId/decline", pathParams: mealPlanInviteIdParam, response: NoContentSchema }),
|
|
2147
|
+
createShareLink: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/share-links", pathParams: mealPlanIdParam, body: CreateMealPlanShareLinkRequestSchema, response: MealPlanShareLinkSummarySchema }),
|
|
2148
|
+
sharePreview: endpoint({ method: "GET", path: "/meal-plan-links/:token", pathParams: mealPlanShareTokenParam, response: MealPlanSharePreviewResponseSchema }),
|
|
2149
|
+
joinGuest: endpoint({ method: "POST", path: "/meal-plan-links/:token/join", pathParams: mealPlanShareTokenParam, body: JoinMealPlanGuestRequestSchema, response: JoinMealPlanGuestResponseSchema }),
|
|
2150
|
+
guestSession: endpoint({ method: "GET", path: "/meal-plan-links/:token/session", pathParams: mealPlanShareTokenParam, query: MealPlanGuestSessionQuerySchema, response: MealPlanGuestSessionResponseSchema }),
|
|
2151
|
+
guestChatMessages: endpoint({ method: "GET", path: "/meal-plan-links/:token/chat/messages", pathParams: mealPlanShareTokenParam, query: MealPlanGuestSessionQuerySchema, response: MealPlanChatMessageListResponseSchema }),
|
|
2152
|
+
exposeNearbyFriends: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, body: ExposeMealPlanToNearbyFriendsRequestSchema, response: ExposeMealPlanToNearbyFriendsResponseSchema }),
|
|
2153
|
+
closeNearbyFriends: endpoint({ method: "DELETE", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, response: NoContentSchema }),
|
|
2154
|
+
nearbyFriendExposureEligibility: endpoint({ method: "GET", path: "/meal-plans/nearby-friends/eligibility", response: NearbyFriendExposureEligibilitySchema }),
|
|
2155
|
+
nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod29.z.array(NearbyFriendMealPlanSummarySchema) }),
|
|
2156
|
+
requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
2157
|
+
acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
|
|
2158
|
+
rejectJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/reject", pathParams: mealPlanJoinRequestIdParam, response: NoContentSchema }),
|
|
2159
|
+
vote: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/votes", pathParams: mealPlanDecisionStageIdParam, body: CreateMealPlanVoteRequestSchema, response: MealPlanResponseSchema }),
|
|
2160
|
+
completeStage: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/complete", pathParams: mealPlanDecisionStageIdParam, body: CompleteMealPlanDecisionStageRequestSchema, response: MealPlanResponseSchema }),
|
|
2161
|
+
decisionProgress: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/decision-progress", pathParams: mealPlanIdParam, response: MealPlanDecisionProgressSchema }),
|
|
2162
|
+
reopenDecisionTask: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen", pathParams: mealPlanDecisionTaskKeyParam, body: ReopenMealPlanDecisionTaskRequestSchema, response: MealPlanResponseSchema }),
|
|
2163
|
+
confirmDecisionSnapshot: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm", pathParams: mealPlanDecisionSnapshotIdParam, body: ConfirmMealPlanDecisionSnapshotRequestSchema, response: MealPlanResponseSchema }),
|
|
2164
|
+
ready: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/ready", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
2165
|
+
unready: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/unready", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
2166
|
+
createChangeRequest: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/change-requests", pathParams: mealPlanIdParam, body: CreateMealPlanChangeRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
2167
|
+
acceptChangeRequest: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept", pathParams: mealPlanChangeRequestIdParam, response: MealPlanResponseSchema }),
|
|
2168
|
+
confirm: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/confirm", pathParams: mealPlanIdParam, response: MealPlanResponseSchema })
|
|
2583
2169
|
},
|
|
2584
2170
|
mealGroups: {
|
|
2585
|
-
create: endpoint({
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
}),
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
response: import_zod28.z.array(MealGroupResponseSchema)
|
|
2595
|
-
}),
|
|
2596
|
-
detail: endpoint({
|
|
2597
|
-
method: "GET",
|
|
2598
|
-
path: "/meal-groups/:mealGroupId",
|
|
2599
|
-
pathParams: mealGroupIdParam,
|
|
2600
|
-
response: MealGroupResponseSchema
|
|
2601
|
-
}),
|
|
2602
|
-
startMealPlan: endpoint({
|
|
2603
|
-
method: "POST",
|
|
2604
|
-
path: "/meal-groups/:mealGroupId/meal-plans",
|
|
2605
|
-
pathParams: mealGroupIdParam,
|
|
2606
|
-
body: StartMealPlanFromGroupRequestSchema,
|
|
2607
|
-
response: CreateMealPlanResponseSchema
|
|
2608
|
-
}),
|
|
2609
|
-
history: endpoint({
|
|
2610
|
-
method: "GET",
|
|
2611
|
-
path: "/meal-groups/:mealGroupId/history",
|
|
2612
|
-
pathParams: mealGroupIdParam,
|
|
2613
|
-
response: MealGroupHistoryResponseSchema
|
|
2614
|
-
}),
|
|
2615
|
-
preferences: endpoint({
|
|
2616
|
-
method: "GET",
|
|
2617
|
-
path: "/meal-groups/:mealGroupId/preferences",
|
|
2618
|
-
pathParams: mealGroupIdParam,
|
|
2619
|
-
response: MealGroupPreferenceSummarySchema
|
|
2620
|
-
}),
|
|
2621
|
-
addMember: endpoint({
|
|
2622
|
-
method: "POST",
|
|
2623
|
-
path: "/meal-groups/:mealGroupId/members",
|
|
2624
|
-
pathParams: mealGroupIdParam,
|
|
2625
|
-
body: AddMealGroupMemberRequestSchema,
|
|
2626
|
-
response: MealGroupResponseSchema
|
|
2627
|
-
}),
|
|
2628
|
-
updateMemberRole: endpoint({
|
|
2629
|
-
method: "PATCH",
|
|
2630
|
-
path: "/meal-groups/:mealGroupId/members/:memberId/role",
|
|
2631
|
-
pathParams: mealGroupMemberIdParam,
|
|
2632
|
-
body: UpdateMealGroupMemberRoleRequestSchema,
|
|
2633
|
-
response: MealGroupResponseSchema
|
|
2634
|
-
}),
|
|
2635
|
-
removeMember: endpoint({
|
|
2636
|
-
method: "DELETE",
|
|
2637
|
-
path: "/meal-groups/:mealGroupId/members/:memberId",
|
|
2638
|
-
pathParams: mealGroupMemberIdParam,
|
|
2639
|
-
response: MealGroupResponseSchema
|
|
2640
|
-
})
|
|
2171
|
+
create: endpoint({ method: "POST", path: "/meal-groups", body: CreateMealGroupRequestSchema, response: MealGroupResponseSchema }),
|
|
2172
|
+
list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod29.z.array(MealGroupResponseSchema) }),
|
|
2173
|
+
detail: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId", pathParams: mealGroupIdParam, response: MealGroupResponseSchema }),
|
|
2174
|
+
startMealPlan: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/meal-plans", pathParams: mealGroupIdParam, body: StartMealPlanFromGroupRequestSchema, response: CreateMealPlanResponseSchema }),
|
|
2175
|
+
history: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/history", pathParams: mealGroupIdParam, response: MealGroupHistoryResponseSchema }),
|
|
2176
|
+
preferences: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/preferences", pathParams: mealGroupIdParam, response: MealGroupPreferenceSummarySchema }),
|
|
2177
|
+
addMember: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/members", pathParams: mealGroupIdParam, body: AddMealGroupMemberRequestSchema, response: MealGroupResponseSchema }),
|
|
2178
|
+
updateMemberRole: endpoint({ method: "PATCH", path: "/meal-groups/:mealGroupId/members/:memberId/role", pathParams: mealGroupMemberIdParam, body: UpdateMealGroupMemberRoleRequestSchema, response: MealGroupResponseSchema }),
|
|
2179
|
+
removeMember: endpoint({ method: "DELETE", path: "/meal-groups/:mealGroupId/members/:memberId", pathParams: mealGroupMemberIdParam, response: MealGroupResponseSchema })
|
|
2641
2180
|
},
|
|
2642
2181
|
friends: {
|
|
2643
|
-
list: endpoint({
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
}),
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
}),
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
path: "/friends/search",
|
|
2656
|
-
query: MemberSearchQuerySchema,
|
|
2657
|
-
response: MemberSerachResponseSchema
|
|
2658
|
-
}),
|
|
2659
|
-
incomingRequest: endpoint({
|
|
2660
|
-
method: "GET",
|
|
2661
|
-
path: "/friends/requests/incoming",
|
|
2662
|
-
response: import_zod28.z.array(FriendRequestItemResponseSchema)
|
|
2663
|
-
}),
|
|
2664
|
-
outgoingRequest: endpoint({
|
|
2665
|
-
method: "GET",
|
|
2666
|
-
path: "/friends/requests/outgoing",
|
|
2667
|
-
response: import_zod28.z.array(FriendRequestItemResponseSchema)
|
|
2668
|
-
}),
|
|
2669
|
-
sendRequest: endpoint({
|
|
2670
|
-
method: "POST",
|
|
2671
|
-
path: "/friends/requests/:memberId",
|
|
2672
|
-
pathParams: memberIdParam,
|
|
2673
|
-
response: NoContentSchema
|
|
2674
|
-
}),
|
|
2675
|
-
acceptRequest: endpoint({
|
|
2676
|
-
method: "POST",
|
|
2677
|
-
path: "/friends/requests/:requestId/accept",
|
|
2678
|
-
pathParams: friendRequestIdParam,
|
|
2679
|
-
response: NoContentSchema
|
|
2680
|
-
}),
|
|
2681
|
-
rejectRequest: endpoint({
|
|
2682
|
-
method: "POST",
|
|
2683
|
-
path: "/friends/requests/:requestId/reject",
|
|
2684
|
-
pathParams: friendRequestIdParam,
|
|
2685
|
-
response: NoContentSchema
|
|
2686
|
-
}),
|
|
2687
|
-
block: endpoint({
|
|
2688
|
-
method: "POST",
|
|
2689
|
-
path: "/friends/blocks/:memberId",
|
|
2690
|
-
pathParams: memberIdParam,
|
|
2691
|
-
response: NoContentSchema
|
|
2692
|
-
}),
|
|
2693
|
-
cancelRequest: endpoint({
|
|
2694
|
-
method: "DELETE",
|
|
2695
|
-
path: "/friends/requests/:requestId",
|
|
2696
|
-
pathParams: friendRequestIdParam,
|
|
2697
|
-
response: NoContentSchema
|
|
2698
|
-
}),
|
|
2699
|
-
unblock: endpoint({
|
|
2700
|
-
method: "DELETE",
|
|
2701
|
-
path: "/friends/blocks/:memberId",
|
|
2702
|
-
pathParams: memberIdParam,
|
|
2703
|
-
response: NoContentSchema
|
|
2704
|
-
}),
|
|
2705
|
-
unfriend: endpoint({
|
|
2706
|
-
method: "DELETE",
|
|
2707
|
-
path: "/friends/:memberId",
|
|
2708
|
-
pathParams: memberIdParam,
|
|
2709
|
-
response: NoContentSchema
|
|
2710
|
-
})
|
|
2182
|
+
list: endpoint({ method: "GET", path: "/friends", response: import_zod29.z.array(FriendListItemResponseSchema) }),
|
|
2183
|
+
blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod29.z.array(FriendBlockItemResponseSchema) }),
|
|
2184
|
+
search: endpoint({ method: "GET", path: "/friends/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
|
|
2185
|
+
incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
|
|
2186
|
+
outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
|
|
2187
|
+
sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
|
|
2188
|
+
acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
|
|
2189
|
+
rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
|
|
2190
|
+
block: endpoint({ method: "POST", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
|
|
2191
|
+
cancelRequest: endpoint({ method: "DELETE", path: "/friends/requests/:requestId", pathParams: friendRequestIdParam, response: NoContentSchema }),
|
|
2192
|
+
unblock: endpoint({ method: "DELETE", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
|
|
2193
|
+
unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
|
|
2711
2194
|
},
|
|
2712
2195
|
coupons: {
|
|
2713
|
-
list: endpoint({
|
|
2714
|
-
|
|
2715
|
-
path: "/coupons",
|
|
2716
|
-
response: import_zod28.z.array(CouponResponseSchema)
|
|
2717
|
-
}),
|
|
2718
|
-
use: endpoint({
|
|
2719
|
-
method: "POST",
|
|
2720
|
-
path: "/coupons/:couponId/use",
|
|
2721
|
-
pathParams: couponIdParam,
|
|
2722
|
-
response: NoContentSchema
|
|
2723
|
-
})
|
|
2196
|
+
list: endpoint({ method: "GET", path: "/coupons", response: import_zod29.z.array(CouponResponseSchema) }),
|
|
2197
|
+
use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
|
|
2724
2198
|
},
|
|
2725
2199
|
challenges: {
|
|
2726
|
-
status: endpoint({
|
|
2727
|
-
|
|
2728
|
-
path: "/challenges/status",
|
|
2729
|
-
response: ChallengeStatusResponseSchema
|
|
2730
|
-
}),
|
|
2731
|
-
claimReward: endpoint({
|
|
2732
|
-
method: "POST",
|
|
2733
|
-
path: "/challenges/rewards",
|
|
2734
|
-
body: ClaimChallengeRewardRequestSchema,
|
|
2735
|
-
response: NoContentSchema
|
|
2736
|
-
})
|
|
2200
|
+
status: endpoint({ method: "GET", path: "/challenges/status", response: ChallengeStatusResponseSchema }),
|
|
2201
|
+
claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
|
|
2737
2202
|
},
|
|
2738
2203
|
referrals: {
|
|
2739
|
-
list: endpoint({
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
response: import_zod28.z.array(ReferralItemResponseSchema)
|
|
2743
|
-
}),
|
|
2744
|
-
create: endpoint({
|
|
2745
|
-
method: "POST",
|
|
2746
|
-
path: "/referrals",
|
|
2747
|
-
response: ReferralCreateResponseSchema
|
|
2748
|
-
}),
|
|
2749
|
-
redeem: endpoint({
|
|
2750
|
-
method: "POST",
|
|
2751
|
-
path: "/referrals/redeem",
|
|
2752
|
-
body: RedeemReferralRequestSchema,
|
|
2753
|
-
response: NoContentSchema
|
|
2754
|
-
})
|
|
2204
|
+
list: endpoint({ method: "GET", path: "/referrals", response: import_zod29.z.array(ReferralItemResponseSchema) }),
|
|
2205
|
+
create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
|
|
2206
|
+
redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
|
|
2755
2207
|
},
|
|
2756
2208
|
notifications: {
|
|
2757
|
-
list: endpoint({
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
response: import_zod28.z.array(MealPlanNotificationSchema)
|
|
2761
|
-
}),
|
|
2762
|
-
markRead: endpoint({
|
|
2763
|
-
method: "PATCH",
|
|
2764
|
-
path: "/notifications/:notificationId/read",
|
|
2765
|
-
pathParams: notificationIdParam,
|
|
2766
|
-
response: MealPlanNotificationSchema
|
|
2767
|
-
}),
|
|
2768
|
-
delete: endpoint({
|
|
2769
|
-
method: "DELETE",
|
|
2770
|
-
path: "/notifications/:notificationId",
|
|
2771
|
-
pathParams: notificationIdParam,
|
|
2772
|
-
response: NoContentSchema
|
|
2773
|
-
})
|
|
2209
|
+
list: endpoint({ method: "GET", path: "/notifications", response: import_zod29.z.array(MealPlanNotificationSchema) }),
|
|
2210
|
+
markRead: endpoint({ method: "PATCH", path: "/notifications/:notificationId/read", pathParams: notificationIdParam, response: MealPlanNotificationSchema }),
|
|
2211
|
+
delete: endpoint({ method: "DELETE", path: "/notifications/:notificationId", pathParams: notificationIdParam, response: NoContentSchema })
|
|
2774
2212
|
},
|
|
2775
2213
|
pushTokens: {
|
|
2776
|
-
list: endpoint({
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
response: import_zod28.z.array(PushTokenResponseSchema)
|
|
2780
|
-
}),
|
|
2781
|
-
register: endpoint({
|
|
2782
|
-
method: "POST",
|
|
2783
|
-
path: "/push-tokens",
|
|
2784
|
-
body: RegisterPushTokenRequestSchema,
|
|
2785
|
-
response: PushTokenResponseSchema
|
|
2786
|
-
}),
|
|
2787
|
-
revoke: endpoint({
|
|
2788
|
-
method: "POST",
|
|
2789
|
-
path: "/push-tokens/revoke",
|
|
2790
|
-
body: RevokePushTokenRequestSchema,
|
|
2791
|
-
response: NoContentSchema
|
|
2792
|
-
})
|
|
2214
|
+
list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod29.z.array(PushTokenResponseSchema) }),
|
|
2215
|
+
register: endpoint({ method: "POST", path: "/push-tokens", body: RegisterPushTokenRequestSchema, response: PushTokenResponseSchema }),
|
|
2216
|
+
revoke: endpoint({ method: "POST", path: "/push-tokens/revoke", body: RevokePushTokenRequestSchema, response: NoContentSchema })
|
|
2793
2217
|
},
|
|
2794
2218
|
liveActivities: {
|
|
2795
|
-
listMealPlanSessions: endpoint({
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
pathParams: mealPlanIdParam,
|
|
2799
|
-
response: MealPlanLiveActivitySessionListResponseSchema
|
|
2800
|
-
}),
|
|
2801
|
-
registerMealPlanSession: endpoint({
|
|
2802
|
-
method: "POST",
|
|
2803
|
-
path: "/meal-plans/:mealPlanId/live-activity/sessions",
|
|
2804
|
-
pathParams: mealPlanIdParam,
|
|
2805
|
-
body: RegisterMealPlanLiveActivitySessionRequestSchema,
|
|
2806
|
-
response: MealPlanLiveActivitySessionResponseSchema
|
|
2807
|
-
}),
|
|
2808
|
-
endMealPlanSessions: endpoint({
|
|
2809
|
-
method: "POST",
|
|
2810
|
-
path: "/meal-plans/:mealPlanId/live-activity/end",
|
|
2811
|
-
pathParams: mealPlanIdParam,
|
|
2812
|
-
body: EndMealPlanLiveActivitySessionRequestSchema,
|
|
2813
|
-
response: NoContentSchema
|
|
2814
|
-
})
|
|
2219
|
+
listMealPlanSessions: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/live-activity", pathParams: mealPlanIdParam, response: MealPlanLiveActivitySessionListResponseSchema }),
|
|
2220
|
+
registerMealPlanSession: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/sessions", pathParams: mealPlanIdParam, body: RegisterMealPlanLiveActivitySessionRequestSchema, response: MealPlanLiveActivitySessionResponseSchema }),
|
|
2221
|
+
endMealPlanSessions: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/end", pathParams: mealPlanIdParam, body: EndMealPlanLiveActivitySessionRequestSchema, response: NoContentSchema })
|
|
2815
2222
|
},
|
|
2816
2223
|
sse: {
|
|
2817
|
-
notifications: endpoint({
|
|
2818
|
-
method: "GET",
|
|
2819
|
-
path: "/sse/notifications",
|
|
2820
|
-
query: sseTokenQuery,
|
|
2821
|
-
response: import_zod28.z.any()
|
|
2822
|
-
})
|
|
2224
|
+
notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod29.z.any() })
|
|
2823
2225
|
},
|
|
2824
2226
|
health: {
|
|
2825
|
-
healthCheck: endpoint({
|
|
2826
|
-
method: "GET",
|
|
2827
|
-
path: "/",
|
|
2828
|
-
response: import_zod28.z.string()
|
|
2829
|
-
})
|
|
2227
|
+
healthCheck: endpoint({ method: "GET", path: "/", response: import_zod29.z.string() })
|
|
2830
2228
|
}
|
|
2831
2229
|
};
|
|
2832
2230
|
|
|
@@ -2838,166 +2236,29 @@ var makeApiResponseSchema = ApiResponseSchema;
|
|
|
2838
2236
|
var makeApiSuccessSchema = ApiSuccessSchema;
|
|
2839
2237
|
|
|
2840
2238
|
// src/domain/common/contracts/id.ts
|
|
2841
|
-
var toMemberId =
|
|
2842
|
-
var toArticleId =
|
|
2843
|
-
var toMealPlanId =
|
|
2844
|
-
var toMealPlanInviteId =
|
|
2845
|
-
var toMealPlanJoinRequestId =
|
|
2846
|
-
var toMealPlanNearbyFriendExposureBatchId =
|
|
2847
|
-
var toMealPlanChangeRequestId =
|
|
2848
|
-
var toMealPlanShareLinkId =
|
|
2849
|
-
var toMealPlanShareLinkToken =
|
|
2850
|
-
var toMealPlanChatRoomId =
|
|
2851
|
-
var toMealPlanChatMessageId =
|
|
2852
|
-
var toMealGroupId =
|
|
2853
|
-
var toRestaurantId =
|
|
2854
|
-
var toCommentId =
|
|
2855
|
-
var toCouponId =
|
|
2856
|
-
var toSubscriptionId =
|
|
2857
|
-
var toFriendRequestId =
|
|
2858
|
-
var toReferralCode =
|
|
2239
|
+
var toMemberId = (value) => MemberIdSchema.parse(value);
|
|
2240
|
+
var toArticleId = (value) => ArticleIdSchema.parse(value);
|
|
2241
|
+
var toMealPlanId = (value) => MealPlanIdSchema.parse(value);
|
|
2242
|
+
var toMealPlanInviteId = (value) => MealPlanInviteIdSchema.parse(value);
|
|
2243
|
+
var toMealPlanJoinRequestId = (value) => MealPlanJoinRequestIdSchema.parse(value);
|
|
2244
|
+
var toMealPlanNearbyFriendExposureBatchId = (value) => MealPlanNearbyFriendExposureBatchIdSchema.parse(value);
|
|
2245
|
+
var toMealPlanChangeRequestId = (value) => MealPlanChangeRequestIdSchema.parse(value);
|
|
2246
|
+
var toMealPlanShareLinkId = (value) => MealPlanShareLinkIdSchema.parse(value);
|
|
2247
|
+
var toMealPlanShareLinkToken = (value) => MealPlanShareLinkTokenSchema.parse(value);
|
|
2248
|
+
var toMealPlanChatRoomId = (value) => MealPlanChatRoomIdSchema.parse(value);
|
|
2249
|
+
var toMealPlanChatMessageId = (value) => MealPlanChatMessageIdSchema.parse(value);
|
|
2250
|
+
var toMealGroupId = (value) => MealGroupIdSchema.parse(value);
|
|
2251
|
+
var toRestaurantId = (value) => RestaurantIdSchema.parse(value);
|
|
2252
|
+
var toCommentId = (value) => CommentIdSchema.parse(value);
|
|
2253
|
+
var toCouponId = (value) => CouponIdSchema.parse(value);
|
|
2254
|
+
var toSubscriptionId = (value) => SubscriptionIdSchema.parse(value);
|
|
2255
|
+
var toFriendRequestId = (value) => FriendRequestIdSchema.parse(value);
|
|
2256
|
+
var toReferralCode = (value) => ReferralCodeSchema.parse(value);
|
|
2859
2257
|
|
|
2860
2258
|
// src/domain/food/food.contracts.ts
|
|
2861
2259
|
var FOOD_CODE_MANIFEST_PATH = "/manifests/food-code-manifest.json";
|
|
2862
2260
|
var AI_CLASS_TO_FOOD_CODE_MAP_PATH = "/manifests/ai-class-to-food-code-map.json";
|
|
2863
2261
|
var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
|
|
2864
|
-
|
|
2865
|
-
// src/domain/food/food.schema.ts
|
|
2866
|
-
var import_zod29 = require("zod");
|
|
2867
|
-
var FoodGranularitySchema = import_zod29.z.enum([
|
|
2868
|
-
"main_dish",
|
|
2869
|
-
"side_dish",
|
|
2870
|
-
"beverage",
|
|
2871
|
-
"sauce"
|
|
2872
|
-
]);
|
|
2873
|
-
var CuisineTagSchema = import_zod29.z.enum([
|
|
2874
|
-
"korean",
|
|
2875
|
-
"western",
|
|
2876
|
-
"chinese",
|
|
2877
|
-
"japanese",
|
|
2878
|
-
"mexican",
|
|
2879
|
-
"indian",
|
|
2880
|
-
"asian",
|
|
2881
|
-
"snack",
|
|
2882
|
-
"dessert",
|
|
2883
|
-
"beverage",
|
|
2884
|
-
"unknown"
|
|
2885
|
-
]);
|
|
2886
|
-
var FoodResolvedMatchSourceSchema = import_zod29.z.enum([
|
|
2887
|
-
"category",
|
|
2888
|
-
"alias",
|
|
2889
|
-
"lexical",
|
|
2890
|
-
"semantic"
|
|
2891
|
-
]);
|
|
2892
|
-
var FoodCodeManifestImageSchema = import_zod29.z.object({
|
|
2893
|
-
src: import_zod29.z.string().min(1),
|
|
2894
|
-
avifSrcset: import_zod29.z.string().min(1).optional(),
|
|
2895
|
-
thumbhashDataURL: import_zod29.z.string().min(1).optional(),
|
|
2896
|
-
aspectRatio: import_zod29.z.number().positive().optional()
|
|
2897
|
-
});
|
|
2898
|
-
var FoodCodeManifestItemSchema = import_zod29.z.object({
|
|
2899
|
-
code: FoodCodeSchema,
|
|
2900
|
-
label: FoodLabelSchema,
|
|
2901
|
-
aliases: import_zod29.z.array(import_zod29.z.string().min(1)).default([]),
|
|
2902
|
-
parentCategory: import_zod29.z.string().min(1),
|
|
2903
|
-
cuisineTags: import_zod29.z.array(CuisineTagSchema).default([]),
|
|
2904
|
-
categoryTags: import_zod29.z.array(import_zod29.z.string().min(1)).default([]),
|
|
2905
|
-
semanticTags: import_zod29.z.array(import_zod29.z.string().min(1)).default([]),
|
|
2906
|
-
granularity: FoodGranularitySchema,
|
|
2907
|
-
searchable: import_zod29.z.boolean(),
|
|
2908
|
-
recommendable: import_zod29.z.boolean(),
|
|
2909
|
-
previewEnabled: import_zod29.z.boolean(),
|
|
2910
|
-
imageUrl: import_zod29.z.string().min(1).nullable().optional(),
|
|
2911
|
-
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
2912
|
-
popularity: import_zod29.z.number().nonnegative().optional(),
|
|
2913
|
-
source: import_zod29.z.enum([
|
|
2914
|
-
"foodname",
|
|
2915
|
-
"manual",
|
|
2916
|
-
"foodai",
|
|
2917
|
-
"legacy"
|
|
2918
|
-
]).optional()
|
|
2919
|
-
});
|
|
2920
|
-
var FoodCodeManifestSchema = import_zod29.z.object({
|
|
2921
|
-
version: import_zod29.z.string().min(1),
|
|
2922
|
-
updatedAt: ISODateTimeStringSchema,
|
|
2923
|
-
taxonomyVersion: import_zod29.z.string().min(1),
|
|
2924
|
-
etag: import_zod29.z.string().min(1).optional(),
|
|
2925
|
-
items: import_zod29.z.array(FoodCodeManifestItemSchema),
|
|
2926
|
-
categoryIndex: import_zod29.z.record(import_zod29.z.string(), import_zod29.z.array(FoodCodeSchema)),
|
|
2927
|
-
aliasIndex: import_zod29.z.record(import_zod29.z.string(), import_zod29.z.array(FoodCodeSchema)).optional()
|
|
2928
|
-
});
|
|
2929
|
-
var FoodImageIndexItemSchema = import_zod29.z.object({
|
|
2930
|
-
code: FoodCodeSchema,
|
|
2931
|
-
label: FoodLabelSchema,
|
|
2932
|
-
imageUrl: import_zod29.z.string().min(1).nullable(),
|
|
2933
|
-
image: FoodCodeManifestImageSchema.nullable(),
|
|
2934
|
-
source: import_zod29.z.enum([
|
|
2935
|
-
"foodname",
|
|
2936
|
-
"manual",
|
|
2937
|
-
"foodai",
|
|
2938
|
-
"legacy"
|
|
2939
|
-
]).optional()
|
|
2940
|
-
});
|
|
2941
|
-
var FoodImageIndexManifestSchema = import_zod29.z.object({
|
|
2942
|
-
version: import_zod29.z.string().min(1),
|
|
2943
|
-
updatedAt: ISODateTimeStringSchema,
|
|
2944
|
-
taxonomyVersion: import_zod29.z.string().min(1),
|
|
2945
|
-
items: import_zod29.z.array(FoodImageIndexItemSchema)
|
|
2946
|
-
});
|
|
2947
|
-
var ResolvedFoodCodeSchema = import_zod29.z.object({
|
|
2948
|
-
code: FoodCodeSchema,
|
|
2949
|
-
label: FoodLabelSchema,
|
|
2950
|
-
matchedBy: FoodResolvedMatchSourceSchema,
|
|
2951
|
-
score: import_zod29.z.number(),
|
|
2952
|
-
granularity: FoodGranularitySchema,
|
|
2953
|
-
imageUrl: import_zod29.z.string().min(1).nullable().optional()
|
|
2954
|
-
});
|
|
2955
|
-
var BooleanQuerySchema = import_zod29.z.preprocess((value) => {
|
|
2956
|
-
if (value === "true") return true;
|
|
2957
|
-
if (value === "false") return false;
|
|
2958
|
-
return value;
|
|
2959
|
-
}, import_zod29.z.boolean());
|
|
2960
|
-
var FoodResolveQuerySchema = import_zod29.z.object({
|
|
2961
|
-
q: import_zod29.z.string().default(""),
|
|
2962
|
-
limit: import_zod29.z.coerce.number().int().min(1).max(100).optional().default(30),
|
|
2963
|
-
recommendableOnly: BooleanQuerySchema.optional().default(true)
|
|
2964
|
-
});
|
|
2965
|
-
var FoodSearchQuerySchema = import_zod29.z.object({
|
|
2966
|
-
q: import_zod29.z.string().default(""),
|
|
2967
|
-
limit: import_zod29.z.coerce.number().int().min(1).max(100).optional().default(20)
|
|
2968
|
-
});
|
|
2969
|
-
var FoodResolveResponseSchema = import_zod29.z.object({
|
|
2970
|
-
query: import_zod29.z.string(),
|
|
2971
|
-
items: import_zod29.z.array(ResolvedFoodCodeSchema)
|
|
2972
|
-
});
|
|
2973
|
-
var FoodSearchResponseSchema = FoodResolveResponseSchema;
|
|
2974
|
-
var FoodAiClassMappingStatusSchema = import_zod29.z.enum([
|
|
2975
|
-
"exact",
|
|
2976
|
-
"broad",
|
|
2977
|
-
"narrow",
|
|
2978
|
-
"merged",
|
|
2979
|
-
"ignored",
|
|
2980
|
-
"review_required"
|
|
2981
|
-
]);
|
|
2982
|
-
var AiClassFoodCodeMappingSchema = import_zod29.z.object({
|
|
2983
|
-
classId: import_zod29.z.number().int().nonnegative(),
|
|
2984
|
-
aiLabel: import_zod29.z.string().min(1),
|
|
2985
|
-
aiAliases: import_zod29.z.array(import_zod29.z.string().min(1)).default([]),
|
|
2986
|
-
representativeCode: FoodCodeSchema.nullable(),
|
|
2987
|
-
candidateCodes: import_zod29.z.array(FoodCodeSchema).default([]),
|
|
2988
|
-
mappingStatus: FoodAiClassMappingStatusSchema,
|
|
2989
|
-
granularity: FoodGranularitySchema,
|
|
2990
|
-
searchable: import_zod29.z.boolean(),
|
|
2991
|
-
recommendable: import_zod29.z.boolean(),
|
|
2992
|
-
reason: import_zod29.z.string().min(1).optional()
|
|
2993
|
-
});
|
|
2994
|
-
var AiClassToFoodCodeMapManifestSchema = import_zod29.z.object({
|
|
2995
|
-
version: import_zod29.z.string().min(1),
|
|
2996
|
-
updatedAt: ISODateTimeStringSchema,
|
|
2997
|
-
modelTaxonomyVersion: import_zod29.z.string().min(1),
|
|
2998
|
-
serviceTaxonomyVersion: import_zod29.z.string().min(1),
|
|
2999
|
-
classes: import_zod29.z.array(AiClassFoodCodeMappingSchema)
|
|
3000
|
-
});
|
|
3001
2262
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3002
2263
|
0 && (module.exports = {
|
|
3003
2264
|
domain
|