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