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