@kimdaegyu/babmukdang-shared 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-EX7S5FI5.js → chunk-3TY6OPD3.js} +4 -4
- package/dist/{chunk-QUAG5LF5.js → chunk-6O2YTBVC.js} +4 -11
- package/dist/{chunk-TOXRHSD6.js → chunk-7JYVBXKQ.js} +1 -1
- package/dist/chunk-7UZD4LBQ.js +459 -0
- package/dist/chunk-BSJC7OVV.js +10 -0
- package/dist/{chunk-YV734GYZ.js → chunk-C63TN7L3.js} +9 -26
- package/dist/{chunk-Q4BPFDVB.js → chunk-CGFW5LYV.js} +6 -34
- package/dist/{chunk-TIOX7OHA.js → chunk-GOOH2LGN.js} +24 -58
- package/dist/{chunk-EYZU5HPG.js → chunk-HRM3FQPL.js} +1 -4
- package/dist/{chunk-3BLXZW4U.js → chunk-LEH6UFL7.js} +11 -35
- package/dist/{chunk-P3MYMK34.js → chunk-NENVUHL5.js} +9 -17
- package/dist/{chunk-IPANLE7B.js → chunk-OPMBGBYS.js} +34 -34
- package/dist/{chunk-G7TITUHT.js → chunk-QFPVAJ2U.js} +1 -1
- package/dist/{chunk-65DWKLP6.js → chunk-RZPNVRRS.js} +5 -14
- package/dist/{chunk-DRCY5UNQ.js → chunk-VD3VGLBQ.js} +4 -9
- package/dist/{chunk-GESEM4IA.js → chunk-WYBFBLQC.js} +6 -17
- package/dist/{chunk-6R5CCY5Q.js → chunk-XMRYAG3V.js} +0 -2
- package/dist/domain/article/index.cjs +13 -41
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +8 -25
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +735 -1332
- package/dist/domain/common/index.js +15 -14
- package/dist/domain/food/index.cjs +5 -28
- package/dist/domain/food/index.d.cts +4 -4
- package/dist/domain/food/index.d.ts +4 -4
- package/dist/domain/food/index.js +7 -5
- package/dist/domain/friend/index.cjs +10 -35
- package/dist/domain/friend/index.js +4 -4
- package/dist/domain/index.cjs +736 -1476
- package/dist/domain/index.d.cts +4 -5
- package/dist/domain/index.d.ts +4 -5
- package/dist/domain/index.js +35 -35
- package/dist/domain/live-activity/index.cjs +422 -371
- package/dist/domain/live-activity/index.js +9 -8
- package/dist/domain/meal/index.cjs +11 -38
- package/dist/domain/meal/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +462 -426
- package/dist/domain/meal-plan/index.d.cts +149 -50
- package/dist/domain/meal-plan/index.d.ts +149 -50
- package/dist/domain/meal-plan/index.js +7 -8
- package/dist/domain/member/index.cjs +8 -25
- package/dist/domain/member/index.js +2 -2
- package/dist/domain/promotion/index.cjs +4 -16
- package/dist/domain/promotion/index.js +3 -3
- package/dist/domain/push/index.cjs +392 -341
- package/dist/domain/push/index.js +7 -6
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +736 -1475
- package/dist/index.js +17 -16
- package/package.json +1 -1
- package/dist/chunk-KREAZLLH.js +0 -1062
|
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
8
|
var __export = (target, all) => {
|
|
10
9
|
for (var name in all)
|
|
11
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -101,7 +100,7 @@ __export(common_exports, {
|
|
|
101
100
|
module.exports = __toCommonJS(common_exports);
|
|
102
101
|
|
|
103
102
|
// src/domain/common/contracts/api.ts
|
|
104
|
-
var
|
|
103
|
+
var import_zod29 = require("zod");
|
|
105
104
|
|
|
106
105
|
// src/domain/article/article.schema.ts
|
|
107
106
|
var import_zod7 = require("zod");
|
|
@@ -110,10 +109,7 @@ var import_zod7 = require("zod");
|
|
|
110
109
|
var import_zod = require("zod");
|
|
111
110
|
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
112
111
|
var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
113
|
-
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
114
|
-
offset: true,
|
|
115
|
-
message: "Expected ISO datetime string"
|
|
116
|
-
});
|
|
112
|
+
var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
|
|
117
113
|
var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
118
114
|
|
|
119
115
|
// src/domain/common/schema/id.schema.ts
|
|
@@ -160,14 +156,11 @@ var PageMetaSchema = import_zod3.z.object({
|
|
|
160
156
|
hasNext: import_zod3.z.boolean(),
|
|
161
157
|
hasPrevious: import_zod3.z.boolean()
|
|
162
158
|
});
|
|
163
|
-
var PageResponseSchema =
|
|
159
|
+
var PageResponseSchema = (item) => import_zod3.z.object({
|
|
164
160
|
items: import_zod3.z.array(item),
|
|
165
161
|
meta: PageMetaSchema
|
|
166
|
-
})
|
|
167
|
-
var SortDirectionSchema = import_zod3.z.enum([
|
|
168
|
-
"asc",
|
|
169
|
-
"desc"
|
|
170
|
-
]);
|
|
162
|
+
});
|
|
163
|
+
var SortDirectionSchema = import_zod3.z.enum(["asc", "desc"]);
|
|
171
164
|
|
|
172
165
|
// src/domain/member/member.schema.ts
|
|
173
166
|
var import_zod5 = require("zod");
|
|
@@ -184,24 +177,10 @@ var UploadPresignImageRequestSchema = import_zod4.default.object({
|
|
|
184
177
|
});
|
|
185
178
|
|
|
186
179
|
// src/domain/member/member.schema.ts
|
|
187
|
-
var MemberRoleSchema = import_zod5.z.enum([
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
]);
|
|
191
|
-
var LocationConsentStatusSchema = import_zod5.z.enum([
|
|
192
|
-
"UNKNOWN",
|
|
193
|
-
"GRANTED",
|
|
194
|
-
"DENIED"
|
|
195
|
-
]);
|
|
196
|
-
var OnboardingStatusSchema = import_zod5.z.enum([
|
|
197
|
-
"REQUIRED",
|
|
198
|
-
"COMPLETED"
|
|
199
|
-
]);
|
|
200
|
-
var PermissionKindSchema = import_zod5.z.enum([
|
|
201
|
-
"LOCATION",
|
|
202
|
-
"NOTIFICATION",
|
|
203
|
-
"CAMERA"
|
|
204
|
-
]);
|
|
180
|
+
var MemberRoleSchema = import_zod5.z.enum(["USER", "ADMIN"]);
|
|
181
|
+
var LocationConsentStatusSchema = import_zod5.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
|
|
182
|
+
var OnboardingStatusSchema = import_zod5.z.enum(["REQUIRED", "COMPLETED"]);
|
|
183
|
+
var PermissionKindSchema = import_zod5.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
|
|
205
184
|
var PermissionStatusSchema = import_zod5.z.enum([
|
|
206
185
|
"UNKNOWN",
|
|
207
186
|
"PROMPT",
|
|
@@ -210,12 +189,7 @@ var PermissionStatusSchema = import_zod5.z.enum([
|
|
|
210
189
|
"LIMITED",
|
|
211
190
|
"UNSUPPORTED"
|
|
212
191
|
]);
|
|
213
|
-
var PermissionPlatformSchema = import_zod5.z.enum([
|
|
214
|
-
"WEB",
|
|
215
|
-
"IOS",
|
|
216
|
-
"ANDROID",
|
|
217
|
-
"UNKNOWN"
|
|
218
|
-
]);
|
|
192
|
+
var PermissionPlatformSchema = import_zod5.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
|
|
219
193
|
var DevicePermissionSnapshotSchema = import_zod5.z.object({
|
|
220
194
|
kind: PermissionKindSchema,
|
|
221
195
|
status: PermissionStatusSchema,
|
|
@@ -289,7 +263,9 @@ var UpdateProfileRequestSchema = import_zod5.z.object({
|
|
|
289
263
|
bio: import_zod5.z.string().max(500).nullable()
|
|
290
264
|
});
|
|
291
265
|
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
292
|
-
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
266
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
267
|
+
UpdatePreferenceRequestSchema
|
|
268
|
+
);
|
|
293
269
|
var OnboardingDraftSchema = import_zod5.z.object({
|
|
294
270
|
username: import_zod5.z.string().min(1).max(50).optional(),
|
|
295
271
|
profileImageUrl: import_zod5.z.string().url().nullable().optional(),
|
|
@@ -330,11 +306,7 @@ var KakaoPlaceRawSchema = import_zod6.z.object({
|
|
|
330
306
|
});
|
|
331
307
|
|
|
332
308
|
// src/domain/article/article.schema.ts
|
|
333
|
-
var ArticleSortBySchema = import_zod7.z.enum([
|
|
334
|
-
"createdAt",
|
|
335
|
-
"likeCount",
|
|
336
|
-
"commentCount"
|
|
337
|
-
]);
|
|
309
|
+
var ArticleSortBySchema = import_zod7.z.enum(["createdAt", "likeCount", "commentCount"]);
|
|
338
310
|
var ArticleListQuerySchema = PageQuerySchema.extend({
|
|
339
311
|
sortBy: ArticleSortBySchema.optional().default("createdAt"),
|
|
340
312
|
direction: SortDirectionSchema.optional().default("desc")
|
|
@@ -456,10 +428,7 @@ var CacheInvalidationEventSchema = import_zod9.z.object({
|
|
|
456
428
|
type: import_zod9.z.literal("cache.invalidate"),
|
|
457
429
|
entity: CacheInvalidationEntitySchema,
|
|
458
430
|
action: CacheInvalidationActionSchema,
|
|
459
|
-
id: import_zod9.z.union([
|
|
460
|
-
import_zod9.z.string(),
|
|
461
|
-
import_zod9.z.number()
|
|
462
|
-
]).optional(),
|
|
431
|
+
id: import_zod9.z.union([import_zod9.z.string(), import_zod9.z.number()]).optional(),
|
|
463
432
|
keys: import_zod9.z.array(CacheInvalidationKeySchema).min(1),
|
|
464
433
|
occurredAt: import_zod9.z.string().datetime()
|
|
465
434
|
});
|
|
@@ -467,77 +436,36 @@ var CacheInvalidationEventSchema = import_zod9.z.object({
|
|
|
467
436
|
// src/domain/common/schema/envelope.schema.ts
|
|
468
437
|
var import_zod10 = require("zod");
|
|
469
438
|
var NoContentSchema = import_zod10.z.null();
|
|
470
|
-
var ApiSuccessSchema =
|
|
439
|
+
var ApiSuccessSchema = (data) => import_zod10.z.object({
|
|
471
440
|
success: import_zod10.z.literal(true),
|
|
472
441
|
code: import_zod10.z.number().int(),
|
|
473
442
|
message: import_zod10.z.string(),
|
|
474
443
|
data
|
|
475
|
-
})
|
|
444
|
+
});
|
|
476
445
|
var ApiFailureSchema = import_zod10.z.object({
|
|
477
446
|
success: import_zod10.z.literal(false),
|
|
478
447
|
status: import_zod10.z.number().int(),
|
|
479
448
|
code: import_zod10.z.string(),
|
|
480
449
|
message: import_zod10.z.string()
|
|
481
450
|
});
|
|
482
|
-
var ApiResponseSchema =
|
|
483
|
-
ApiSuccessSchema(data),
|
|
484
|
-
ApiFailureSchema
|
|
485
|
-
]), "ApiResponseSchema");
|
|
451
|
+
var ApiResponseSchema = (data) => import_zod10.z.union([ApiSuccessSchema(data), ApiFailureSchema]);
|
|
486
452
|
var CreatedEntityIdResponseSchema = import_zod10.z.discriminatedUnion("entity", [
|
|
487
|
-
import_zod10.z.object({
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}),
|
|
491
|
-
import_zod10.z.object({
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}),
|
|
495
|
-
import_zod10.z.object({
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}),
|
|
499
|
-
import_zod10.z.object({
|
|
500
|
-
entity: import_zod10.z.literal("coupon"),
|
|
501
|
-
id: CouponIdSchema
|
|
502
|
-
}),
|
|
503
|
-
import_zod10.z.object({
|
|
504
|
-
entity: import_zod10.z.literal("mealPlan"),
|
|
505
|
-
id: MealPlanIdSchema
|
|
506
|
-
}),
|
|
507
|
-
import_zod10.z.object({
|
|
508
|
-
entity: import_zod10.z.literal("mealPlanInvite"),
|
|
509
|
-
id: MealPlanInviteIdSchema
|
|
510
|
-
}),
|
|
511
|
-
import_zod10.z.object({
|
|
512
|
-
entity: import_zod10.z.literal("mealPlanJoinRequest"),
|
|
513
|
-
id: MealPlanJoinRequestIdSchema
|
|
514
|
-
}),
|
|
515
|
-
import_zod10.z.object({
|
|
516
|
-
entity: import_zod10.z.literal("mealPlanChangeRequest"),
|
|
517
|
-
id: MealPlanChangeRequestIdSchema
|
|
518
|
-
}),
|
|
519
|
-
import_zod10.z.object({
|
|
520
|
-
entity: import_zod10.z.literal("mealPlanShareLink"),
|
|
521
|
-
id: MealPlanShareLinkIdSchema
|
|
522
|
-
}),
|
|
523
|
-
import_zod10.z.object({
|
|
524
|
-
entity: import_zod10.z.literal("mealPlanChatMessage"),
|
|
525
|
-
id: MealPlanChatMessageIdSchema
|
|
526
|
-
}),
|
|
527
|
-
import_zod10.z.object({
|
|
528
|
-
entity: import_zod10.z.literal("mealGroup"),
|
|
529
|
-
id: MealGroupIdSchema
|
|
530
|
-
})
|
|
453
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("article"), id: ArticleIdSchema }),
|
|
454
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("comment"), id: CommentIdSchema }),
|
|
455
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("subscription"), id: SubscriptionIdSchema }),
|
|
456
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("coupon"), id: CouponIdSchema }),
|
|
457
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlan"), id: MealPlanIdSchema }),
|
|
458
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanInvite"), id: MealPlanInviteIdSchema }),
|
|
459
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanJoinRequest"), id: MealPlanJoinRequestIdSchema }),
|
|
460
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanChangeRequest"), id: MealPlanChangeRequestIdSchema }),
|
|
461
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanShareLink"), id: MealPlanShareLinkIdSchema }),
|
|
462
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanChatMessage"), id: MealPlanChatMessageIdSchema }),
|
|
463
|
+
import_zod10.z.object({ entity: import_zod10.z.literal("mealGroup"), id: MealGroupIdSchema })
|
|
531
464
|
]);
|
|
532
465
|
|
|
533
466
|
// src/domain/friend/friend.schema.ts
|
|
534
467
|
var import_zod11 = require("zod");
|
|
535
|
-
var FriendRequestStatusSchema = import_zod11.z.enum([
|
|
536
|
-
"PENDING",
|
|
537
|
-
"ACCEPTED",
|
|
538
|
-
"REJECTED",
|
|
539
|
-
"CANCELED"
|
|
540
|
-
]);
|
|
468
|
+
var FriendRequestStatusSchema = import_zod11.z.enum(["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]);
|
|
541
469
|
var FriendMealAvailabilitySchema = import_zod11.z.object({
|
|
542
470
|
isHungry: import_zod11.z.boolean(),
|
|
543
471
|
mealProposalAllowed: import_zod11.z.boolean(),
|
|
@@ -570,18 +498,11 @@ var MealStatusResponseSchema = import_zod12.z.object({
|
|
|
570
498
|
updatedAt: ISODateStringSchema,
|
|
571
499
|
secondsToAutoOff: import_zod12.z.number().int().min(0)
|
|
572
500
|
});
|
|
573
|
-
var MealStatusActionSchema = import_zod12.z.enum([
|
|
574
|
-
"ARTICLE_UPLOAD",
|
|
575
|
-
"SET_MANNUALY"
|
|
576
|
-
]);
|
|
501
|
+
var MealStatusActionSchema = import_zod12.z.enum(["ARTICLE_UPLOAD", "SET_MANNUALY"]);
|
|
577
502
|
var UpdateMealStatusRequestSchema = import_zod12.z.object({
|
|
578
503
|
action: MealStatusActionSchema.optional().default("SET_MANNUALY")
|
|
579
504
|
});
|
|
580
|
-
var MealStatusSchema = import_zod12.z.enum([
|
|
581
|
-
"ALL",
|
|
582
|
-
"HUNGRY",
|
|
583
|
-
"NOT_HUNGRY"
|
|
584
|
-
]);
|
|
505
|
+
var MealStatusSchema = import_zod12.z.enum(["ALL", "HUNGRY", "NOT_HUNGRY"]);
|
|
585
506
|
var FriendMealQuerySchema = import_zod12.z.object({
|
|
586
507
|
status: MealStatusSchema.optional().default("ALL")
|
|
587
508
|
});
|
|
@@ -592,57 +513,175 @@ var FriendMealItemResponseSchema = MemberCoreSchema.extend({
|
|
|
592
513
|
});
|
|
593
514
|
|
|
594
515
|
// src/domain/meal-plan/meal-plan.schema.ts
|
|
595
|
-
var
|
|
516
|
+
var import_zod19 = require("zod");
|
|
596
517
|
|
|
597
518
|
// src/domain/meal-plan/meal-plan-decision.schema.ts
|
|
519
|
+
var import_zod14 = require("zod");
|
|
520
|
+
|
|
521
|
+
// src/domain/food/food.schema.ts
|
|
598
522
|
var import_zod13 = require("zod");
|
|
599
|
-
var
|
|
600
|
-
var
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
523
|
+
var FoodGranularitySchema = import_zod13.z.enum(["main_dish", "side_dish", "beverage", "sauce"]);
|
|
524
|
+
var CuisineTagSchema = import_zod13.z.enum([
|
|
525
|
+
"korean",
|
|
526
|
+
"western",
|
|
527
|
+
"chinese",
|
|
528
|
+
"japanese",
|
|
529
|
+
"mexican",
|
|
530
|
+
"indian",
|
|
531
|
+
"asian",
|
|
532
|
+
"snack",
|
|
533
|
+
"dessert",
|
|
534
|
+
"beverage",
|
|
535
|
+
"unknown"
|
|
536
|
+
]);
|
|
537
|
+
var FoodResolvedMatchSourceSchema = import_zod13.z.enum(["category", "alias", "lexical", "semantic"]);
|
|
538
|
+
var FoodCodeManifestImageSchema = import_zod13.z.object({
|
|
539
|
+
src: import_zod13.z.string().min(1),
|
|
540
|
+
avifSrcset: import_zod13.z.string().min(1).optional(),
|
|
541
|
+
thumbhashDataURL: import_zod13.z.string().min(1).optional(),
|
|
542
|
+
aspectRatio: import_zod13.z.number().positive().optional()
|
|
543
|
+
});
|
|
544
|
+
var FoodCodeManifestItemSchema = import_zod13.z.object({
|
|
545
|
+
code: FoodCodeSchema,
|
|
546
|
+
label: FoodLabelSchema,
|
|
547
|
+
aliases: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
|
|
548
|
+
parentCategory: import_zod13.z.string().min(1),
|
|
549
|
+
cuisineTags: import_zod13.z.array(CuisineTagSchema).default([]),
|
|
550
|
+
categoryTags: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
|
|
551
|
+
semanticTags: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
|
|
552
|
+
granularity: FoodGranularitySchema,
|
|
553
|
+
searchable: import_zod13.z.boolean(),
|
|
554
|
+
recommendable: import_zod13.z.boolean(),
|
|
555
|
+
previewEnabled: import_zod13.z.boolean(),
|
|
556
|
+
imageUrl: import_zod13.z.string().min(1).nullable().optional(),
|
|
557
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
558
|
+
popularity: import_zod13.z.number().nonnegative().optional(),
|
|
559
|
+
source: import_zod13.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
|
|
560
|
+
});
|
|
561
|
+
var FoodCodeManifestSchema = import_zod13.z.object({
|
|
562
|
+
version: import_zod13.z.string().min(1),
|
|
563
|
+
updatedAt: ISODateTimeStringSchema,
|
|
564
|
+
taxonomyVersion: import_zod13.z.string().min(1),
|
|
565
|
+
etag: import_zod13.z.string().min(1).optional(),
|
|
566
|
+
items: import_zod13.z.array(FoodCodeManifestItemSchema),
|
|
567
|
+
categoryIndex: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.array(FoodCodeSchema)),
|
|
568
|
+
aliasIndex: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.array(FoodCodeSchema)).optional()
|
|
569
|
+
});
|
|
570
|
+
var FoodImageIndexItemSchema = import_zod13.z.object({
|
|
571
|
+
code: FoodCodeSchema,
|
|
572
|
+
label: FoodLabelSchema,
|
|
573
|
+
imageUrl: import_zod13.z.string().min(1).nullable(),
|
|
574
|
+
image: FoodCodeManifestImageSchema.nullable(),
|
|
575
|
+
source: import_zod13.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
|
|
576
|
+
});
|
|
577
|
+
var FoodImageIndexManifestSchema = import_zod13.z.object({
|
|
578
|
+
version: import_zod13.z.string().min(1),
|
|
579
|
+
updatedAt: ISODateTimeStringSchema,
|
|
580
|
+
taxonomyVersion: import_zod13.z.string().min(1),
|
|
581
|
+
items: import_zod13.z.array(FoodImageIndexItemSchema)
|
|
582
|
+
});
|
|
583
|
+
var ResolvedFoodCodeSchema = import_zod13.z.object({
|
|
584
|
+
code: FoodCodeSchema,
|
|
585
|
+
label: FoodLabelSchema,
|
|
586
|
+
matchedBy: FoodResolvedMatchSourceSchema,
|
|
587
|
+
score: import_zod13.z.number(),
|
|
588
|
+
granularity: FoodGranularitySchema,
|
|
589
|
+
imageUrl: import_zod13.z.string().min(1).nullable().optional()
|
|
590
|
+
});
|
|
591
|
+
var BooleanQuerySchema = import_zod13.z.preprocess((value) => {
|
|
592
|
+
if (value === "true") return true;
|
|
593
|
+
if (value === "false") return false;
|
|
594
|
+
return value;
|
|
595
|
+
}, import_zod13.z.boolean());
|
|
596
|
+
var FoodResolveQuerySchema = import_zod13.z.object({
|
|
597
|
+
q: import_zod13.z.string().default(""),
|
|
598
|
+
limit: import_zod13.z.coerce.number().int().min(1).max(100).optional().default(30),
|
|
599
|
+
recommendableOnly: BooleanQuerySchema.optional().default(true)
|
|
600
|
+
});
|
|
601
|
+
var FoodSearchQuerySchema = import_zod13.z.object({
|
|
602
|
+
q: import_zod13.z.string().default(""),
|
|
603
|
+
limit: import_zod13.z.coerce.number().int().min(1).max(100).optional().default(20)
|
|
604
|
+
});
|
|
605
|
+
var FoodResolveResponseSchema = import_zod13.z.object({
|
|
606
|
+
query: import_zod13.z.string(),
|
|
607
|
+
items: import_zod13.z.array(ResolvedFoodCodeSchema)
|
|
608
|
+
});
|
|
609
|
+
var FoodAiClassMappingStatusSchema = import_zod13.z.enum([
|
|
610
|
+
"exact",
|
|
611
|
+
"broad",
|
|
612
|
+
"narrow",
|
|
613
|
+
"merged",
|
|
614
|
+
"ignored",
|
|
615
|
+
"review_required"
|
|
616
|
+
]);
|
|
617
|
+
var AiClassFoodCodeMappingSchema = import_zod13.z.object({
|
|
618
|
+
classId: import_zod13.z.number().int().nonnegative(),
|
|
619
|
+
aiLabel: import_zod13.z.string().min(1),
|
|
620
|
+
aiAliases: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
|
|
621
|
+
representativeCode: FoodCodeSchema.nullable(),
|
|
622
|
+
candidateCodes: import_zod13.z.array(FoodCodeSchema).default([]),
|
|
623
|
+
mappingStatus: FoodAiClassMappingStatusSchema,
|
|
624
|
+
granularity: FoodGranularitySchema,
|
|
625
|
+
searchable: import_zod13.z.boolean(),
|
|
626
|
+
recommendable: import_zod13.z.boolean(),
|
|
627
|
+
reason: import_zod13.z.string().min(1).optional()
|
|
628
|
+
});
|
|
629
|
+
var AiClassToFoodCodeMapManifestSchema = import_zod13.z.object({
|
|
630
|
+
version: import_zod13.z.string().min(1),
|
|
631
|
+
updatedAt: ISODateTimeStringSchema,
|
|
632
|
+
modelTaxonomyVersion: import_zod13.z.string().min(1),
|
|
633
|
+
serviceTaxonomyVersion: import_zod13.z.string().min(1),
|
|
634
|
+
classes: import_zod13.z.array(AiClassFoodCodeMappingSchema)
|
|
635
|
+
});
|
|
636
|
+
|
|
637
|
+
// src/domain/meal-plan/meal-plan-decision.schema.ts
|
|
638
|
+
var MealPlanLatitudeSchema = import_zod14.z.number().brand();
|
|
639
|
+
var MealPlanLongitudeSchema = import_zod14.z.number().brand();
|
|
640
|
+
var MealPlanLocationCandidateIdSchema = import_zod14.z.string().min(1).brand();
|
|
641
|
+
var MealPlanMenuCandidateIdSchema = import_zod14.z.string().min(1).brand();
|
|
642
|
+
var MealPlanDecisionStageIdSchema = import_zod14.z.string().uuid().brand();
|
|
643
|
+
var MealPlanVoteIdSchema = import_zod14.z.string().uuid().brand();
|
|
644
|
+
var MealPlanLocationCandidateSourceSchema = import_zod14.z.enum([
|
|
606
645
|
"manual",
|
|
646
|
+
"map-marker",
|
|
607
647
|
"midpoint",
|
|
648
|
+
"user-location",
|
|
608
649
|
"search",
|
|
609
650
|
"recent-place",
|
|
610
651
|
"fallback"
|
|
611
652
|
]);
|
|
612
|
-
var MealPlanLocationCandidateSchema =
|
|
653
|
+
var MealPlanLocationCandidateSchema = import_zod14.z.object({
|
|
613
654
|
locationId: MealPlanLocationCandidateIdSchema,
|
|
614
|
-
placeName:
|
|
655
|
+
placeName: import_zod14.z.string().min(1),
|
|
615
656
|
lat: MealPlanLatitudeSchema,
|
|
616
657
|
lng: MealPlanLongitudeSchema,
|
|
617
|
-
address:
|
|
658
|
+
address: import_zod14.z.string().default(""),
|
|
618
659
|
source: MealPlanLocationCandidateSourceSchema.default("manual"),
|
|
619
660
|
createdBy: MemberIdSchema.optional(),
|
|
620
661
|
createdAt: ISODateTimeStringSchema.optional()
|
|
621
662
|
});
|
|
622
|
-
var MealPlanMenuCandidateSourceSchema =
|
|
663
|
+
var MealPlanMenuCandidateSourceSchema = import_zod14.z.enum([
|
|
623
664
|
"external-recommendation",
|
|
624
665
|
"prefer-menu",
|
|
625
666
|
"recent-menu",
|
|
626
667
|
"fallback",
|
|
627
668
|
"manual-search"
|
|
628
669
|
]);
|
|
629
|
-
var MealPlanMenuCandidateSchema =
|
|
670
|
+
var MealPlanMenuCandidateSchema = import_zod14.z.object({
|
|
630
671
|
menuCandidateId: MealPlanMenuCandidateIdSchema,
|
|
631
672
|
menu: FoodSchema,
|
|
632
673
|
source: MealPlanMenuCandidateSourceSchema,
|
|
633
|
-
score:
|
|
674
|
+
score: import_zod14.z.number().default(0),
|
|
675
|
+
imageUrl: import_zod14.z.string().min(1).nullable().default(null),
|
|
676
|
+
image: FoodCodeManifestImageSchema.nullable().default(null),
|
|
634
677
|
createdAt: ISODateTimeStringSchema
|
|
635
678
|
});
|
|
636
679
|
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
637
680
|
candidateId: RestaurantIdSchema.optional(),
|
|
638
|
-
source:
|
|
639
|
-
"search",
|
|
640
|
-
"fallback",
|
|
641
|
-
"manual"
|
|
642
|
-
]).optional(),
|
|
681
|
+
source: import_zod14.z.enum(["search", "fallback", "manual"]).optional(),
|
|
643
682
|
createdAt: ISODateTimeStringSchema.optional()
|
|
644
683
|
});
|
|
645
|
-
var MealPlanDecisionStageTypeSchema =
|
|
684
|
+
var MealPlanDecisionStageTypeSchema = import_zod14.z.enum([
|
|
646
685
|
"DATE",
|
|
647
686
|
"TIME",
|
|
648
687
|
"AREA",
|
|
@@ -650,108 +689,90 @@ var MealPlanDecisionStageTypeSchema = import_zod13.z.enum([
|
|
|
650
689
|
"RESTAURANT",
|
|
651
690
|
"FINAL_CONFIRMATION"
|
|
652
691
|
]);
|
|
653
|
-
var MealPlanDecisionStageStatusSchema =
|
|
692
|
+
var MealPlanDecisionStageStatusSchema = import_zod14.z.enum([
|
|
654
693
|
"OPEN",
|
|
655
694
|
"COMPLETED",
|
|
656
695
|
"REOPENED"
|
|
657
696
|
]);
|
|
658
|
-
var MealPlanRestaurantSearchStatusSchema =
|
|
697
|
+
var MealPlanRestaurantSearchStatusSchema = import_zod14.z.enum([
|
|
659
698
|
"IDLE",
|
|
660
699
|
"PENDING",
|
|
661
700
|
"READY",
|
|
662
701
|
"FAILED",
|
|
663
702
|
"STALE"
|
|
664
703
|
]);
|
|
665
|
-
var MealPlanRestaurantSearchStateSchema =
|
|
666
|
-
searchKey:
|
|
704
|
+
var MealPlanRestaurantSearchStateSchema = import_zod14.z.object({
|
|
705
|
+
searchKey: import_zod14.z.string().min(1).nullable(),
|
|
667
706
|
status: MealPlanRestaurantSearchStatusSchema,
|
|
668
707
|
startedAt: ISODateTimeStringSchema.nullable(),
|
|
669
708
|
completedAt: ISODateTimeStringSchema.nullable(),
|
|
670
|
-
version:
|
|
671
|
-
candidateCount:
|
|
672
|
-
errorMessage:
|
|
709
|
+
version: import_zod14.z.number().int().min(0),
|
|
710
|
+
candidateCount: import_zod14.z.number().int().min(0),
|
|
711
|
+
errorMessage: import_zod14.z.string().nullable().default(null)
|
|
673
712
|
});
|
|
674
|
-
var MealPlanDecisionStageMetadataSchema =
|
|
713
|
+
var MealPlanDecisionStageMetadataSchema = import_zod14.z.object({
|
|
675
714
|
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
676
|
-
}).catchall(
|
|
677
|
-
var MealPlanVoteTypeSchema =
|
|
715
|
+
}).catchall(import_zod14.z.unknown());
|
|
716
|
+
var MealPlanVoteTypeSchema = import_zod14.z.enum([
|
|
678
717
|
"PICK",
|
|
679
718
|
"EXCLUDE",
|
|
680
719
|
"PREFER",
|
|
681
720
|
"READY"
|
|
682
721
|
]);
|
|
683
|
-
var MealPlanDecisionCandidateSchema =
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}),
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
value: TimeHHmmStringSchema
|
|
691
|
-
}),
|
|
692
|
-
import_zod13.z.object({
|
|
693
|
-
stageType: import_zod13.z.literal("AREA"),
|
|
694
|
-
value: MealPlanLocationCandidateSchema
|
|
695
|
-
}),
|
|
696
|
-
import_zod13.z.object({
|
|
697
|
-
stageType: import_zod13.z.literal("MENU"),
|
|
698
|
-
value: MealPlanMenuCandidateSchema
|
|
699
|
-
}),
|
|
700
|
-
import_zod13.z.object({
|
|
701
|
-
stageType: import_zod13.z.literal("RESTAURANT"),
|
|
702
|
-
value: MealPlanRestaurantCandidateSchema
|
|
703
|
-
}),
|
|
704
|
-
import_zod13.z.object({
|
|
705
|
-
stageType: import_zod13.z.literal("FINAL_CONFIRMATION"),
|
|
706
|
-
value: import_zod13.z.literal("READY")
|
|
707
|
-
})
|
|
722
|
+
var MealPlanDecisionCandidateSchema = import_zod14.z.discriminatedUnion("stageType", [
|
|
723
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("DATE"), value: ISODateStringSchema }),
|
|
724
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("TIME"), value: TimeHHmmStringSchema }),
|
|
725
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("AREA"), value: MealPlanLocationCandidateSchema }),
|
|
726
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("MENU"), value: MealPlanMenuCandidateSchema }),
|
|
727
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("RESTAURANT"), value: MealPlanRestaurantCandidateSchema }),
|
|
728
|
+
import_zod14.z.object({ stageType: import_zod14.z.literal("FINAL_CONFIRMATION"), value: import_zod14.z.literal("READY") })
|
|
708
729
|
]);
|
|
709
|
-
var MealPlanVoteSchema =
|
|
730
|
+
var MealPlanVoteSchema = import_zod14.z.object({
|
|
710
731
|
voteId: MealPlanVoteIdSchema,
|
|
711
732
|
voterId: MemberIdSchema.nullable(),
|
|
712
|
-
guestId:
|
|
733
|
+
guestId: import_zod14.z.string().min(1).nullable(),
|
|
713
734
|
voteType: MealPlanVoteTypeSchema,
|
|
714
735
|
candidate: MealPlanDecisionCandidateSchema,
|
|
715
736
|
createdAt: ISODateTimeStringSchema
|
|
716
737
|
});
|
|
717
|
-
var MealPlanDecisionStageResponseSchema =
|
|
738
|
+
var MealPlanDecisionStageResponseSchema = import_zod14.z.object({
|
|
718
739
|
stageId: MealPlanDecisionStageIdSchema,
|
|
719
740
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
720
741
|
status: MealPlanDecisionStageStatusSchema,
|
|
721
|
-
candidates:
|
|
722
|
-
votes:
|
|
742
|
+
candidates: import_zod14.z.array(MealPlanDecisionCandidateSchema),
|
|
743
|
+
votes: import_zod14.z.array(MealPlanVoteSchema),
|
|
723
744
|
selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
|
|
724
745
|
metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
|
|
725
746
|
openedAt: ISODateTimeStringSchema,
|
|
726
747
|
completedAt: ISODateTimeStringSchema.nullable(),
|
|
727
748
|
reopenedAt: ISODateTimeStringSchema.nullable()
|
|
728
749
|
});
|
|
729
|
-
var CreateMealPlanVoteRequestSchema =
|
|
750
|
+
var CreateMealPlanVoteRequestSchema = import_zod14.z.object({
|
|
730
751
|
voteType: MealPlanVoteTypeSchema,
|
|
731
752
|
candidate: MealPlanDecisionCandidateSchema
|
|
732
753
|
});
|
|
733
|
-
var CompleteMealPlanDecisionStageRequestSchema =
|
|
754
|
+
var CompleteMealPlanDecisionStageRequestSchema = import_zod14.z.object({
|
|
734
755
|
selectedCandidate: MealPlanDecisionCandidateSchema
|
|
735
756
|
});
|
|
736
|
-
var MealPlanChangeRequestStatusSchema =
|
|
757
|
+
var MealPlanChangeRequestStatusSchema = import_zod14.z.enum([
|
|
737
758
|
"PENDING",
|
|
738
759
|
"ACCEPTED",
|
|
739
760
|
"REJECTED",
|
|
740
761
|
"CANCELLED"
|
|
741
762
|
]);
|
|
742
|
-
var CreateMealPlanChangeRequestSchema =
|
|
763
|
+
var CreateMealPlanChangeRequestSchema = import_zod14.z.object({
|
|
743
764
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
744
|
-
reason:
|
|
765
|
+
reason: import_zod14.z.string().min(1).max(500),
|
|
745
766
|
proposedCandidate: MealPlanDecisionCandidateSchema.optional()
|
|
746
767
|
});
|
|
747
|
-
var MealPlanChangeRequestSummarySchema =
|
|
768
|
+
var MealPlanChangeRequestSummarySchema = import_zod14.z.object({
|
|
748
769
|
changeRequestId: MealPlanChangeRequestIdSchema,
|
|
749
770
|
stageType: MealPlanDecisionStageTypeSchema,
|
|
750
771
|
status: MealPlanChangeRequestStatusSchema,
|
|
751
|
-
reason:
|
|
772
|
+
reason: import_zod14.z.string(),
|
|
752
773
|
requestedAt: ISODateTimeStringSchema
|
|
753
774
|
});
|
|
754
|
-
var MealPlanDecisionTaskKeySchema =
|
|
775
|
+
var MealPlanDecisionTaskKeySchema = import_zod14.z.enum([
|
|
755
776
|
"SCHEDULE_DATE",
|
|
756
777
|
"SCHEDULE_TIME",
|
|
757
778
|
"LOCATION_CANDIDATE",
|
|
@@ -763,14 +784,13 @@ var MealPlanDecisionTaskKeySchema = import_zod13.z.enum([
|
|
|
763
784
|
"RESTAURANT_PICK",
|
|
764
785
|
"FINAL_CONFIRMATION"
|
|
765
786
|
]);
|
|
766
|
-
var MealPlanDecisionTaskStatusSchema =
|
|
787
|
+
var MealPlanDecisionTaskStatusSchema = import_zod14.z.enum([
|
|
767
788
|
"LOCKED",
|
|
768
789
|
"OPEN",
|
|
769
|
-
"READY",
|
|
770
790
|
"RESOLVED",
|
|
771
791
|
"STALE"
|
|
772
792
|
]);
|
|
773
|
-
var MealPlanDecisionFinalFieldSchema =
|
|
793
|
+
var MealPlanDecisionFinalFieldSchema = import_zod14.z.enum([
|
|
774
794
|
"date",
|
|
775
795
|
"time",
|
|
776
796
|
"meetingAt",
|
|
@@ -778,82 +798,72 @@ var MealPlanDecisionFinalFieldSchema = import_zod13.z.enum([
|
|
|
778
798
|
"menu",
|
|
779
799
|
"restaurant"
|
|
780
800
|
]);
|
|
781
|
-
var MealPlanDecisionSnapshotStatusSchema =
|
|
801
|
+
var MealPlanDecisionSnapshotStatusSchema = import_zod14.z.enum([
|
|
782
802
|
"CANDIDATE",
|
|
783
803
|
"PROVISIONAL",
|
|
784
804
|
"FINAL",
|
|
785
805
|
"STALE"
|
|
786
806
|
]);
|
|
787
|
-
var MealPlanDecisionReasonSchema =
|
|
807
|
+
var MealPlanDecisionReasonSchema = import_zod14.z.enum([
|
|
788
808
|
"COMMON_SCHEDULE",
|
|
789
809
|
"TOP_VOTED_LOCATION",
|
|
790
810
|
"TOP_PICKED_MENU",
|
|
791
811
|
"TOP_PICKED_RESTAURANT",
|
|
792
812
|
"OWNER_CONFIRMED",
|
|
793
|
-
"TASK_ALL_READY",
|
|
794
813
|
"MANUAL_SELECTION"
|
|
795
814
|
]);
|
|
796
|
-
var MealPlanDecisionActorTypeSchema =
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
]);
|
|
801
|
-
var MealPlanDecisionSnapshotSchema = import_zod13.z.object({
|
|
802
|
-
snapshotId: import_zod13.z.string().uuid(),
|
|
803
|
-
mealPlanId: import_zod13.z.string().uuid(),
|
|
815
|
+
var MealPlanDecisionActorTypeSchema = import_zod14.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
|
|
816
|
+
var MealPlanDecisionSnapshotSchema = import_zod14.z.object({
|
|
817
|
+
snapshotId: import_zod14.z.string().uuid(),
|
|
818
|
+
mealPlanId: import_zod14.z.string().uuid(),
|
|
804
819
|
field: MealPlanDecisionFinalFieldSchema,
|
|
805
|
-
value:
|
|
820
|
+
value: import_zod14.z.unknown(),
|
|
806
821
|
status: MealPlanDecisionSnapshotStatusSchema,
|
|
807
822
|
reason: MealPlanDecisionReasonSchema,
|
|
808
|
-
score:
|
|
809
|
-
sourceEvent:
|
|
823
|
+
score: import_zod14.z.number().nullable().default(null),
|
|
824
|
+
sourceEvent: import_zod14.z.string().min(1),
|
|
810
825
|
sourceActorType: MealPlanDecisionActorTypeSchema,
|
|
811
826
|
sourceMemberId: MemberIdSchema.nullable(),
|
|
812
|
-
sourceGuestId:
|
|
813
|
-
sourceParticipantId:
|
|
814
|
-
sourceVersion:
|
|
815
|
-
dependencyHash:
|
|
816
|
-
dependencyFields:
|
|
827
|
+
sourceGuestId: import_zod14.z.string().min(1).nullable(),
|
|
828
|
+
sourceParticipantId: import_zod14.z.string().uuid().nullable(),
|
|
829
|
+
sourceVersion: import_zod14.z.number().int().min(0),
|
|
830
|
+
dependencyHash: import_zod14.z.string().min(1),
|
|
831
|
+
dependencyFields: import_zod14.z.array(MealPlanDecisionFinalFieldSchema),
|
|
817
832
|
createdAt: ISODateTimeStringSchema,
|
|
818
833
|
staleAt: ISODateTimeStringSchema.nullable()
|
|
819
834
|
});
|
|
820
|
-
var MealPlanDecisionTaskProgressSchema =
|
|
835
|
+
var MealPlanDecisionTaskProgressSchema = import_zod14.z.object({
|
|
821
836
|
taskKey: MealPlanDecisionTaskKeySchema,
|
|
822
837
|
status: MealPlanDecisionTaskStatusSchema,
|
|
823
|
-
|
|
824
|
-
participantCount: import_zod13.z.number().int().min(0),
|
|
825
|
-
blockers: import_zod13.z.array(import_zod13.z.string()).default([]),
|
|
838
|
+
blockers: import_zod14.z.array(import_zod14.z.string()).default([]),
|
|
826
839
|
updatedAt: ISODateTimeStringSchema
|
|
827
840
|
});
|
|
828
|
-
var MealPlanDecisionProgressSchema =
|
|
829
|
-
mealPlanId:
|
|
830
|
-
status:
|
|
831
|
-
tasks:
|
|
832
|
-
final:
|
|
833
|
-
provisional:
|
|
834
|
-
snapshots:
|
|
835
|
-
version:
|
|
841
|
+
var MealPlanDecisionProgressSchema = import_zod14.z.object({
|
|
842
|
+
mealPlanId: import_zod14.z.string().uuid(),
|
|
843
|
+
status: import_zod14.z.string().min(1),
|
|
844
|
+
tasks: import_zod14.z.array(MealPlanDecisionTaskProgressSchema),
|
|
845
|
+
final: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()),
|
|
846
|
+
provisional: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()),
|
|
847
|
+
snapshots: import_zod14.z.array(MealPlanDecisionSnapshotSchema),
|
|
848
|
+
version: import_zod14.z.number().int().min(0),
|
|
836
849
|
updatedAt: ISODateTimeStringSchema
|
|
837
850
|
});
|
|
838
|
-
var
|
|
839
|
-
|
|
840
|
-
});
|
|
841
|
-
var ReopenMealPlanDecisionTaskRequestSchema = import_zod13.z.object({
|
|
842
|
-
reason: import_zod13.z.string().max(500).optional()
|
|
851
|
+
var ReopenMealPlanDecisionTaskRequestSchema = import_zod14.z.object({
|
|
852
|
+
reason: import_zod14.z.string().max(500).optional()
|
|
843
853
|
});
|
|
844
|
-
var ConfirmMealPlanDecisionSnapshotRequestSchema =
|
|
845
|
-
snapshotId:
|
|
854
|
+
var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod14.z.object({
|
|
855
|
+
snapshotId: import_zod14.z.string().uuid()
|
|
846
856
|
});
|
|
847
857
|
|
|
848
858
|
// src/domain/meal-plan/meal-plan-participant.schema.ts
|
|
849
|
-
var
|
|
850
|
-
var MealPlanParticipantIdSchema =
|
|
851
|
-
var MealPlanParticipantRoleSchema =
|
|
859
|
+
var import_zod15 = require("zod");
|
|
860
|
+
var MealPlanParticipantIdSchema = import_zod15.z.string().uuid().brand();
|
|
861
|
+
var MealPlanParticipantRoleSchema = import_zod15.z.enum([
|
|
852
862
|
"OWNER",
|
|
853
863
|
"FRIEND",
|
|
854
864
|
"GUEST"
|
|
855
865
|
]);
|
|
856
|
-
var MealPlanParticipantStatusSchema =
|
|
866
|
+
var MealPlanParticipantStatusSchema = import_zod15.z.enum([
|
|
857
867
|
"INVITED",
|
|
858
868
|
"REQUESTED",
|
|
859
869
|
"JOINED",
|
|
@@ -862,17 +872,17 @@ var MealPlanParticipantStatusSchema = import_zod14.z.enum([
|
|
|
862
872
|
"LEFT",
|
|
863
873
|
"REMOVED"
|
|
864
874
|
]);
|
|
865
|
-
var MealPlanJoinSourceSchema =
|
|
875
|
+
var MealPlanJoinSourceSchema = import_zod15.z.enum([
|
|
866
876
|
"OWNER",
|
|
867
877
|
"FRIEND_INVITE",
|
|
868
878
|
"LINK_GUEST",
|
|
869
879
|
"NEARBY_FRIENDS"
|
|
870
880
|
]);
|
|
871
|
-
var MealPlanGuestParticipantSchema =
|
|
872
|
-
guestId:
|
|
873
|
-
nickname:
|
|
881
|
+
var MealPlanGuestParticipantSchema = import_zod15.z.object({
|
|
882
|
+
guestId: import_zod15.z.string().min(1),
|
|
883
|
+
nickname: import_zod15.z.string().min(1).max(50)
|
|
874
884
|
});
|
|
875
|
-
var MealPlanParticipantResponseSchema =
|
|
885
|
+
var MealPlanParticipantResponseSchema = import_zod15.z.object({
|
|
876
886
|
participantId: MealPlanParticipantIdSchema,
|
|
877
887
|
mealPlanId: MealPlanIdSchema,
|
|
878
888
|
member: MemberCoreSchema.nullable(),
|
|
@@ -883,66 +893,66 @@ var MealPlanParticipantResponseSchema = import_zod14.z.object({
|
|
|
883
893
|
joinedAt: ISODateTimeStringSchema.nullable(),
|
|
884
894
|
readyAt: ISODateTimeStringSchema.nullable()
|
|
885
895
|
});
|
|
886
|
-
var CreateMealPlanParticipantRequestSchema =
|
|
896
|
+
var CreateMealPlanParticipantRequestSchema = import_zod15.z.object({
|
|
887
897
|
memberId: MemberIdSchema.optional(),
|
|
888
|
-
guestNickname:
|
|
898
|
+
guestNickname: import_zod15.z.string().min(1).max(50).optional(),
|
|
889
899
|
source: MealPlanJoinSourceSchema
|
|
890
900
|
});
|
|
891
901
|
|
|
892
902
|
// src/domain/meal-plan/meal-plan-invite.schema.ts
|
|
893
|
-
var
|
|
894
|
-
var MealPlanInviteStatusSchema =
|
|
903
|
+
var import_zod16 = require("zod");
|
|
904
|
+
var MealPlanInviteStatusSchema = import_zod16.z.enum([
|
|
895
905
|
"PENDING",
|
|
896
906
|
"ACCEPTED",
|
|
897
907
|
"DECLINED",
|
|
898
908
|
"CANCELLED",
|
|
899
909
|
"EXPIRED"
|
|
900
910
|
]);
|
|
901
|
-
var CreateMealPlanInviteRequestSchema =
|
|
911
|
+
var CreateMealPlanInviteRequestSchema = import_zod16.z.object({
|
|
902
912
|
inviteeId: MemberIdSchema,
|
|
903
|
-
message:
|
|
913
|
+
message: import_zod16.z.string().max(500).default("")
|
|
904
914
|
});
|
|
905
|
-
var MealPlanInviteSummarySchema =
|
|
915
|
+
var MealPlanInviteSummarySchema = import_zod16.z.object({
|
|
906
916
|
inviteId: MealPlanInviteIdSchema,
|
|
907
917
|
mealPlanId: MealPlanIdSchema,
|
|
908
918
|
inviter: MemberCoreSchema,
|
|
909
919
|
invitee: MemberCoreSchema,
|
|
910
920
|
status: MealPlanInviteStatusSchema,
|
|
911
|
-
message:
|
|
921
|
+
message: import_zod16.z.string().max(500),
|
|
912
922
|
createdAt: ISODateTimeStringSchema,
|
|
913
923
|
respondedAt: ISODateTimeStringSchema.nullable()
|
|
914
924
|
});
|
|
915
|
-
var MealPlanInviteListResponseSchema =
|
|
916
|
-
var SendMealPlanInviteResponseSchema =
|
|
925
|
+
var MealPlanInviteListResponseSchema = import_zod16.z.array(MealPlanInviteSummarySchema);
|
|
926
|
+
var SendMealPlanInviteResponseSchema = import_zod16.z.object({
|
|
917
927
|
inviteId: MealPlanInviteIdSchema
|
|
918
928
|
});
|
|
919
929
|
|
|
920
930
|
// src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
|
|
921
|
-
var
|
|
922
|
-
var MealPlanNearbyFriendExposureIdSchema =
|
|
923
|
-
var MealPlanNearbyFriendExposureStatusSchema =
|
|
931
|
+
var import_zod17 = require("zod");
|
|
932
|
+
var MealPlanNearbyFriendExposureIdSchema = import_zod17.z.string().uuid().brand();
|
|
933
|
+
var MealPlanNearbyFriendExposureStatusSchema = import_zod17.z.enum([
|
|
924
934
|
"OPEN",
|
|
925
935
|
"CLOSED",
|
|
926
936
|
"EXPIRED"
|
|
927
937
|
]);
|
|
928
|
-
var MealPlanNearbyFriendExposureNotificationStatusSchema =
|
|
938
|
+
var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod17.z.enum([
|
|
929
939
|
"PENDING",
|
|
930
940
|
"SENT",
|
|
931
941
|
"PARTIAL",
|
|
932
942
|
"FAILED",
|
|
933
943
|
"SKIPPED"
|
|
934
944
|
]);
|
|
935
|
-
var ExposeMealPlanToNearbyFriendsRequestSchema =
|
|
936
|
-
radiusMeters:
|
|
945
|
+
var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod17.z.object({
|
|
946
|
+
radiusMeters: import_zod17.z.number().int().min(100).max(5e3).default(1e3),
|
|
937
947
|
expiresAt: ISODateTimeStringSchema.optional()
|
|
938
948
|
});
|
|
939
|
-
var NearbyFriendExposureEligibilitySchema =
|
|
940
|
-
canExpose:
|
|
949
|
+
var NearbyFriendExposureEligibilitySchema = import_zod17.z.object({
|
|
950
|
+
canExpose: import_zod17.z.boolean(),
|
|
941
951
|
locationConsentStatus: LocationConsentStatusSchema,
|
|
942
|
-
nearbyMealPlanExposureAllowed:
|
|
943
|
-
mealSuggestionAllowed:
|
|
944
|
-
hasLastKnownLocation:
|
|
945
|
-
missingRequirements:
|
|
952
|
+
nearbyMealPlanExposureAllowed: import_zod17.z.boolean(),
|
|
953
|
+
mealSuggestionAllowed: import_zod17.z.boolean(),
|
|
954
|
+
hasLastKnownLocation: import_zod17.z.boolean(),
|
|
955
|
+
missingRequirements: import_zod17.z.array(import_zod17.z.enum([
|
|
946
956
|
"LOCATION_PERMISSION",
|
|
947
957
|
"SERVICE_LOCATION_CONSENT",
|
|
948
958
|
"NEARBY_EXPOSURE_TOGGLE",
|
|
@@ -950,7 +960,7 @@ var NearbyFriendExposureEligibilitySchema = import_zod16.z.object({
|
|
|
950
960
|
"LAST_KNOWN_LOCATION"
|
|
951
961
|
]))
|
|
952
962
|
});
|
|
953
|
-
var MealPlanNearbyFriendRejectionReasonSchema =
|
|
963
|
+
var MealPlanNearbyFriendRejectionReasonSchema = import_zod17.z.enum([
|
|
954
964
|
"NOT_FRIEND",
|
|
955
965
|
"BLOCKED",
|
|
956
966
|
"LOCATION_CONSENT_REQUIRED",
|
|
@@ -959,79 +969,79 @@ var MealPlanNearbyFriendRejectionReasonSchema = import_zod16.z.enum([
|
|
|
959
969
|
"MEAL_SUGGESTION_DISABLED",
|
|
960
970
|
"NOT_HUNGRY"
|
|
961
971
|
]);
|
|
962
|
-
var MealPlanNearbyFriendRejectionSummarySchema =
|
|
972
|
+
var MealPlanNearbyFriendRejectionSummarySchema = import_zod17.z.object({
|
|
963
973
|
reason: MealPlanNearbyFriendRejectionReasonSchema,
|
|
964
|
-
count:
|
|
974
|
+
count: import_zod17.z.number().int().min(0)
|
|
965
975
|
});
|
|
966
|
-
var ExposeMealPlanToNearbyFriendsResponseSchema =
|
|
976
|
+
var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod17.z.object({
|
|
967
977
|
mealPlanId: MealPlanIdSchema,
|
|
968
978
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
|
|
969
|
-
exposedFriendCount:
|
|
970
|
-
rejectedFriendCount:
|
|
979
|
+
exposedFriendCount: import_zod17.z.number().int().min(0),
|
|
980
|
+
rejectedFriendCount: import_zod17.z.number().int().min(0),
|
|
971
981
|
notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
972
|
-
rejectionSummary:
|
|
982
|
+
rejectionSummary: import_zod17.z.array(MealPlanNearbyFriendRejectionSummarySchema)
|
|
973
983
|
});
|
|
974
|
-
var MealPlanNearbyFriendExposureSummarySchema =
|
|
984
|
+
var MealPlanNearbyFriendExposureSummarySchema = import_zod17.z.object({
|
|
975
985
|
exposureId: MealPlanNearbyFriendExposureIdSchema,
|
|
976
986
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
|
|
977
987
|
mealPlanId: MealPlanIdSchema,
|
|
978
988
|
status: MealPlanNearbyFriendExposureStatusSchema,
|
|
979
|
-
radiusMeters:
|
|
980
|
-
exposedFriendCount:
|
|
989
|
+
radiusMeters: import_zod17.z.number().int().min(100),
|
|
990
|
+
exposedFriendCount: import_zod17.z.number().int().min(0),
|
|
981
991
|
openedAt: ISODateTimeStringSchema,
|
|
982
992
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
983
993
|
closedAt: ISODateTimeStringSchema.nullable()
|
|
984
994
|
});
|
|
985
|
-
var MealPlanNearbyFriendExposureBatchSummarySchema =
|
|
995
|
+
var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod17.z.object({
|
|
986
996
|
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
|
|
987
997
|
mealPlanId: MealPlanIdSchema,
|
|
988
998
|
status: MealPlanNearbyFriendExposureStatusSchema,
|
|
989
|
-
radiusMeters:
|
|
990
|
-
exposedFriendCount:
|
|
991
|
-
rejectedFriendCount:
|
|
992
|
-
rejectionSummary:
|
|
999
|
+
radiusMeters: import_zod17.z.number().int().min(100),
|
|
1000
|
+
exposedFriendCount: import_zod17.z.number().int().min(0),
|
|
1001
|
+
rejectedFriendCount: import_zod17.z.number().int().min(0),
|
|
1002
|
+
rejectionSummary: import_zod17.z.array(MealPlanNearbyFriendRejectionSummarySchema),
|
|
993
1003
|
notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
994
1004
|
notificationSentAt: ISODateTimeStringSchema.nullable(),
|
|
995
1005
|
openedAt: ISODateTimeStringSchema,
|
|
996
1006
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
997
1007
|
closedAt: ISODateTimeStringSchema.nullable()
|
|
998
1008
|
});
|
|
999
|
-
var MealPlanJoinRequestStatusSchema =
|
|
1009
|
+
var MealPlanJoinRequestStatusSchema = import_zod17.z.enum([
|
|
1000
1010
|
"PENDING",
|
|
1001
1011
|
"ACCEPTED",
|
|
1002
1012
|
"REJECTED",
|
|
1003
1013
|
"CANCELLED"
|
|
1004
1014
|
]);
|
|
1005
|
-
var CreateMealPlanJoinRequestSchema =
|
|
1006
|
-
message:
|
|
1015
|
+
var CreateMealPlanJoinRequestSchema = import_zod17.z.object({
|
|
1016
|
+
message: import_zod17.z.string().max(500).default("")
|
|
1007
1017
|
});
|
|
1008
|
-
var MealPlanJoinRequestSummarySchema =
|
|
1018
|
+
var MealPlanJoinRequestSummarySchema = import_zod17.z.object({
|
|
1009
1019
|
joinRequestId: MealPlanJoinRequestIdSchema,
|
|
1010
1020
|
mealPlanId: MealPlanIdSchema,
|
|
1011
1021
|
requester: MemberCoreSchema,
|
|
1012
1022
|
status: MealPlanJoinRequestStatusSchema,
|
|
1013
|
-
message:
|
|
1023
|
+
message: import_zod17.z.string().max(500),
|
|
1014
1024
|
requestedAt: ISODateTimeStringSchema,
|
|
1015
1025
|
respondedAt: ISODateTimeStringSchema.nullable()
|
|
1016
1026
|
});
|
|
1017
|
-
var NearbyFriendMealPlanSummarySchema =
|
|
1027
|
+
var NearbyFriendMealPlanSummarySchema = import_zod17.z.object({
|
|
1018
1028
|
mealPlanId: MealPlanIdSchema,
|
|
1019
1029
|
owner: MemberCoreSchema,
|
|
1020
|
-
title:
|
|
1021
|
-
participantCount:
|
|
1022
|
-
distanceMeters:
|
|
1030
|
+
title: import_zod17.z.string(),
|
|
1031
|
+
participantCount: import_zod17.z.number().int().min(1),
|
|
1032
|
+
distanceMeters: import_zod17.z.number().int().min(0),
|
|
1023
1033
|
exposedAt: ISODateTimeStringSchema,
|
|
1024
1034
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1025
1035
|
joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
|
|
1026
1036
|
});
|
|
1027
1037
|
|
|
1028
1038
|
// src/domain/meal-plan/meal-plan-chat.schema.ts
|
|
1029
|
-
var
|
|
1030
|
-
var MealPlanChatMessageKindSchema =
|
|
1039
|
+
var import_zod18 = require("zod");
|
|
1040
|
+
var MealPlanChatMessageKindSchema = import_zod18.z.enum([
|
|
1031
1041
|
"USER",
|
|
1032
1042
|
"SYSTEM"
|
|
1033
1043
|
]);
|
|
1034
|
-
var MealPlanSystemMessageKindSchema =
|
|
1044
|
+
var MealPlanSystemMessageKindSchema = import_zod18.z.enum([
|
|
1035
1045
|
"PARTICIPANT_JOINED",
|
|
1036
1046
|
"PARTICIPANT_READY",
|
|
1037
1047
|
"PARTICIPANT_REMOVED",
|
|
@@ -1040,39 +1050,41 @@ var MealPlanSystemMessageKindSchema = import_zod17.z.enum([
|
|
|
1040
1050
|
"CONFIRMED",
|
|
1041
1051
|
"RECORD_NEEDED"
|
|
1042
1052
|
]);
|
|
1043
|
-
var MealPlanChatSystemPayloadSchema =
|
|
1053
|
+
var MealPlanChatSystemPayloadSchema = import_zod18.z.object({
|
|
1044
1054
|
kind: MealPlanSystemMessageKindSchema
|
|
1045
|
-
}).catchall(
|
|
1046
|
-
var MealPlanChatMessageListResponseSchema =
|
|
1047
|
-
|
|
1055
|
+
}).catchall(import_zod18.z.unknown());
|
|
1056
|
+
var MealPlanChatMessageListResponseSchema = import_zod18.z.array(
|
|
1057
|
+
import_zod18.z.lazy(() => MealPlanChatMessageResponseSchema)
|
|
1058
|
+
);
|
|
1059
|
+
var MealPlanChatRoomSummarySchema = import_zod18.z.object({
|
|
1048
1060
|
chatRoomId: MealPlanChatRoomIdSchema,
|
|
1049
1061
|
mealPlanId: MealPlanIdSchema,
|
|
1050
|
-
messageCount:
|
|
1062
|
+
messageCount: import_zod18.z.number().int().min(0),
|
|
1051
1063
|
lastMessageAt: ISODateTimeStringSchema.nullable(),
|
|
1052
1064
|
createdAt: ISODateTimeStringSchema
|
|
1053
1065
|
});
|
|
1054
|
-
var SendMealPlanChatMessageRequestSchema =
|
|
1055
|
-
message:
|
|
1066
|
+
var SendMealPlanChatMessageRequestSchema = import_zod18.z.object({
|
|
1067
|
+
message: import_zod18.z.string().min(1).max(500)
|
|
1056
1068
|
});
|
|
1057
|
-
var MealPlanChatMessageResponseSchema =
|
|
1069
|
+
var MealPlanChatMessageResponseSchema = import_zod18.z.object({
|
|
1058
1070
|
messageId: MealPlanChatMessageIdSchema,
|
|
1059
1071
|
chatRoomId: MealPlanChatRoomIdSchema,
|
|
1060
1072
|
sender: MemberCoreSchema.nullable(),
|
|
1061
|
-
guestId:
|
|
1062
|
-
guestNickname:
|
|
1073
|
+
guestId: import_zod18.z.string().min(1).nullable(),
|
|
1074
|
+
guestNickname: import_zod18.z.string().min(1).nullable(),
|
|
1063
1075
|
kind: MealPlanChatMessageKindSchema,
|
|
1064
|
-
message:
|
|
1076
|
+
message: import_zod18.z.string().min(1).max(1e3),
|
|
1065
1077
|
systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
|
|
1066
1078
|
createdAt: ISODateTimeStringSchema
|
|
1067
1079
|
});
|
|
1068
|
-
var MealPlanSystemMessageSchema =
|
|
1080
|
+
var MealPlanSystemMessageSchema = import_zod18.z.object({
|
|
1069
1081
|
kind: MealPlanSystemMessageKindSchema,
|
|
1070
|
-
message:
|
|
1082
|
+
message: import_zod18.z.string().min(1),
|
|
1071
1083
|
createdAt: ISODateTimeStringSchema
|
|
1072
1084
|
});
|
|
1073
1085
|
|
|
1074
1086
|
// src/domain/meal-plan/meal-plan.schema.ts
|
|
1075
|
-
var MealPlanStatusSchema =
|
|
1087
|
+
var MealPlanStatusSchema = import_zod19.z.enum([
|
|
1076
1088
|
"DRAFT",
|
|
1077
1089
|
"RECOMMENDING",
|
|
1078
1090
|
"GATHERING",
|
|
@@ -1084,78 +1096,74 @@ var MealPlanStatusSchema = import_zod18.z.enum([
|
|
|
1084
1096
|
"RECORDED",
|
|
1085
1097
|
"CANCELLED"
|
|
1086
1098
|
]);
|
|
1087
|
-
var MealPlanChannelSchema =
|
|
1099
|
+
var MealPlanChannelSchema = import_zod19.z.enum([
|
|
1088
1100
|
"OWNER_ONLY",
|
|
1089
1101
|
"FRIEND_INVITE",
|
|
1090
1102
|
"LINK_GUEST",
|
|
1091
1103
|
"NEARBY_FRIENDS"
|
|
1092
1104
|
]);
|
|
1093
|
-
var MealPlanRecommendationContextSchema =
|
|
1105
|
+
var MealPlanRecommendationContextSchema = import_zod19.z.object({
|
|
1094
1106
|
mealDate: ISODateStringSchema.optional(),
|
|
1095
1107
|
mealTime: TimeHHmmStringSchema.optional(),
|
|
1096
1108
|
area: MealPlanLocationCandidateSchema.optional(),
|
|
1097
|
-
preferredMenuCategories:
|
|
1098
|
-
excludedMenuCategories:
|
|
1099
|
-
candidateMenuCategories:
|
|
1100
|
-
budgetMin:
|
|
1101
|
-
budgetMax:
|
|
1102
|
-
memo:
|
|
1103
|
-
});
|
|
1104
|
-
var CreateMealPlanRequestSchema =
|
|
1105
|
-
title:
|
|
1106
|
-
channels:
|
|
1107
|
-
"OWNER_ONLY"
|
|
1108
|
-
]),
|
|
1109
|
+
preferredMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
|
|
1110
|
+
excludedMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
|
|
1111
|
+
candidateMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
|
|
1112
|
+
budgetMin: import_zod19.z.number().int().min(0).optional(),
|
|
1113
|
+
budgetMax: import_zod19.z.number().int().min(0).optional(),
|
|
1114
|
+
memo: import_zod19.z.string().max(500).optional()
|
|
1115
|
+
});
|
|
1116
|
+
var CreateMealPlanRequestSchema = import_zod19.z.object({
|
|
1117
|
+
title: import_zod19.z.string().min(1).max(100).optional(),
|
|
1118
|
+
channels: import_zod19.z.array(MealPlanChannelSchema).default(["OWNER_ONLY"]),
|
|
1109
1119
|
recommendationContext: MealPlanRecommendationContextSchema.optional()
|
|
1110
1120
|
});
|
|
1111
|
-
var CreateMealPlanResponseSchema =
|
|
1121
|
+
var CreateMealPlanResponseSchema = import_zod19.z.object({
|
|
1112
1122
|
mealPlanId: MealPlanIdSchema
|
|
1113
1123
|
});
|
|
1114
1124
|
var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
|
|
1115
|
-
var MealPlanViewerRoleSchema =
|
|
1125
|
+
var MealPlanViewerRoleSchema = import_zod19.z.enum([
|
|
1116
1126
|
"OWNER",
|
|
1117
1127
|
"FRIEND",
|
|
1118
1128
|
"GUEST",
|
|
1119
1129
|
"NONE"
|
|
1120
1130
|
]);
|
|
1121
|
-
var MealPlanViewerPermissionsSchema =
|
|
1122
|
-
canView:
|
|
1123
|
-
canInviteFriends:
|
|
1124
|
-
canManageParticipants:
|
|
1125
|
-
canCreateShareLink:
|
|
1126
|
-
canExposeNearbyFriends:
|
|
1127
|
-
canVote:
|
|
1128
|
-
canChat:
|
|
1129
|
-
canReadyMealPlan:
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
var MealPlanResponseSchema = import_zod18.z.object({
|
|
1131
|
+
var MealPlanViewerPermissionsSchema = import_zod19.z.object({
|
|
1132
|
+
canView: import_zod19.z.boolean(),
|
|
1133
|
+
canInviteFriends: import_zod19.z.boolean(),
|
|
1134
|
+
canManageParticipants: import_zod19.z.boolean(),
|
|
1135
|
+
canCreateShareLink: import_zod19.z.boolean(),
|
|
1136
|
+
canExposeNearbyFriends: import_zod19.z.boolean(),
|
|
1137
|
+
canVote: import_zod19.z.boolean(),
|
|
1138
|
+
canChat: import_zod19.z.boolean(),
|
|
1139
|
+
canReadyMealPlan: import_zod19.z.boolean(),
|
|
1140
|
+
canRequestChange: import_zod19.z.boolean(),
|
|
1141
|
+
canReopenDecisionTask: import_zod19.z.boolean(),
|
|
1142
|
+
canConfirmDecisionSnapshot: import_zod19.z.boolean(),
|
|
1143
|
+
canConfirmMealPlan: import_zod19.z.boolean(),
|
|
1144
|
+
canCompleteMealPlan: import_zod19.z.boolean(),
|
|
1145
|
+
canRecordMealPlan: import_zod19.z.boolean(),
|
|
1146
|
+
canCancelMealPlan: import_zod19.z.boolean()
|
|
1147
|
+
});
|
|
1148
|
+
var MealPlanResponseSchema = import_zod19.z.object({
|
|
1140
1149
|
mealPlanId: MealPlanIdSchema,
|
|
1141
1150
|
owner: MemberCoreSchema,
|
|
1142
|
-
title:
|
|
1151
|
+
title: import_zod19.z.string().nullable(),
|
|
1143
1152
|
status: MealPlanStatusSchema,
|
|
1144
|
-
channels:
|
|
1145
|
-
participants:
|
|
1146
|
-
pendingInvites:
|
|
1147
|
-
pendingJoinRequests:
|
|
1148
|
-
decisionStages:
|
|
1153
|
+
channels: import_zod19.z.array(MealPlanChannelSchema),
|
|
1154
|
+
participants: import_zod19.z.array(MealPlanParticipantResponseSchema),
|
|
1155
|
+
pendingInvites: import_zod19.z.array(MealPlanInviteSummarySchema),
|
|
1156
|
+
pendingJoinRequests: import_zod19.z.array(MealPlanJoinRequestSummarySchema),
|
|
1157
|
+
decisionStages: import_zod19.z.array(MealPlanDecisionStageResponseSchema),
|
|
1149
1158
|
decisionProgress: MealPlanDecisionProgressSchema.nullable(),
|
|
1150
1159
|
viewerRole: MealPlanViewerRoleSchema,
|
|
1151
1160
|
viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
|
|
1152
1161
|
viewerPermissions: MealPlanViewerPermissionsSchema,
|
|
1153
|
-
viewerTaskReadyMap: import_zod18.z.record(MealPlanDecisionTaskKeySchema, import_zod18.z.boolean()),
|
|
1154
1162
|
selectedDate: ISODateStringSchema.nullable(),
|
|
1155
1163
|
selectedTime: TimeHHmmStringSchema.nullable(),
|
|
1156
1164
|
selectedArea: MealPlanLocationCandidateSchema.nullable(),
|
|
1157
1165
|
selectedRestaurant: RestaurantSchema.nullable(),
|
|
1158
|
-
selectedMenuCategory:
|
|
1166
|
+
selectedMenuCategory: import_zod19.z.string().nullable(),
|
|
1159
1167
|
chatRoom: MealPlanChatRoomSummarySchema.nullable(),
|
|
1160
1168
|
confirmedAt: ISODateTimeStringSchema.nullable(),
|
|
1161
1169
|
lockedAt: ISODateTimeStringSchema.nullable(),
|
|
@@ -1164,36 +1172,31 @@ var MealPlanResponseSchema = import_zod18.z.object({
|
|
|
1164
1172
|
createdAt: ISODateTimeStringSchema,
|
|
1165
1173
|
updatedAt: ISODateTimeStringSchema
|
|
1166
1174
|
});
|
|
1167
|
-
var MyMealPlanGroupSchema =
|
|
1168
|
-
|
|
1169
|
-
"UPCOMING",
|
|
1170
|
-
"RECORD_NEEDED",
|
|
1171
|
-
"PAST"
|
|
1172
|
-
]);
|
|
1173
|
-
var MyMealPlanListItemSchema = import_zod18.z.object({
|
|
1175
|
+
var MyMealPlanGroupSchema = import_zod19.z.enum(["DECIDING", "UPCOMING", "RECORD_NEEDED", "PAST"]);
|
|
1176
|
+
var MyMealPlanListItemSchema = import_zod19.z.object({
|
|
1174
1177
|
mealPlanId: MealPlanIdSchema,
|
|
1175
1178
|
group: MyMealPlanGroupSchema,
|
|
1176
|
-
title:
|
|
1179
|
+
title: import_zod19.z.string(),
|
|
1177
1180
|
status: MealPlanStatusSchema,
|
|
1178
|
-
channels:
|
|
1179
|
-
participantCount:
|
|
1181
|
+
channels: import_zod19.z.array(MealPlanChannelSchema),
|
|
1182
|
+
participantCount: import_zod19.z.number().int().min(1),
|
|
1180
1183
|
selectedDate: ISODateStringSchema.nullable(),
|
|
1181
1184
|
selectedTime: TimeHHmmStringSchema.nullable(),
|
|
1182
|
-
selectedAreaName:
|
|
1183
|
-
selectedRestaurantName:
|
|
1184
|
-
primaryAction:
|
|
1185
|
-
label:
|
|
1186
|
-
href:
|
|
1185
|
+
selectedAreaName: import_zod19.z.string().nullable(),
|
|
1186
|
+
selectedRestaurantName: import_zod19.z.string().nullable(),
|
|
1187
|
+
primaryAction: import_zod19.z.object({
|
|
1188
|
+
label: import_zod19.z.string(),
|
|
1189
|
+
href: import_zod19.z.string()
|
|
1187
1190
|
}),
|
|
1188
1191
|
updatedAt: ISODateTimeStringSchema
|
|
1189
1192
|
});
|
|
1190
|
-
var MyMealPlanListResponseSchema =
|
|
1191
|
-
deciding:
|
|
1192
|
-
upcoming:
|
|
1193
|
-
recordNeeded:
|
|
1194
|
-
past:
|
|
1193
|
+
var MyMealPlanListResponseSchema = import_zod19.z.object({
|
|
1194
|
+
deciding: import_zod19.z.array(MyMealPlanListItemSchema),
|
|
1195
|
+
upcoming: import_zod19.z.array(MyMealPlanListItemSchema),
|
|
1196
|
+
recordNeeded: import_zod19.z.array(MyMealPlanListItemSchema),
|
|
1197
|
+
past: import_zod19.z.array(MyMealPlanListItemSchema)
|
|
1195
1198
|
});
|
|
1196
|
-
var MealPlanNotificationKindSchema =
|
|
1199
|
+
var MealPlanNotificationKindSchema = import_zod19.z.enum([
|
|
1197
1200
|
"MEAL_PLAN_INVITE_RECEIVED",
|
|
1198
1201
|
"MEAL_PLAN_INVITE_ACCEPTED",
|
|
1199
1202
|
"MEAL_PLAN_JOIN_REQUESTED",
|
|
@@ -1205,538 +1208,488 @@ var MealPlanNotificationKindSchema = import_zod18.z.enum([
|
|
|
1205
1208
|
"MEAL_PLAN_LOCKED",
|
|
1206
1209
|
"MEAL_PLAN_RECORD_NEEDED"
|
|
1207
1210
|
]);
|
|
1208
|
-
var MealPlanNotificationPriorityChannelSchema =
|
|
1211
|
+
var MealPlanNotificationPriorityChannelSchema = import_zod19.z.enum([
|
|
1209
1212
|
"HOME",
|
|
1210
1213
|
"NOTIFICATION_INBOX",
|
|
1211
1214
|
"FCM_PUSH",
|
|
1212
1215
|
"LIVE_ACTIVITY"
|
|
1213
1216
|
]);
|
|
1214
|
-
var MealPlanLiveActivityBehaviorSchema =
|
|
1217
|
+
var MealPlanLiveActivityBehaviorSchema = import_zod19.z.enum([
|
|
1215
1218
|
"NONE",
|
|
1216
1219
|
"START_OR_UPDATE",
|
|
1217
1220
|
"UPDATE",
|
|
1218
1221
|
"END"
|
|
1219
1222
|
]);
|
|
1220
|
-
var MealPlanNotificationPriorityPolicyItemSchema =
|
|
1223
|
+
var MealPlanNotificationPriorityPolicyItemSchema = import_zod19.z.object({
|
|
1221
1224
|
kind: MealPlanNotificationKindSchema,
|
|
1222
|
-
priority:
|
|
1223
|
-
homePriority:
|
|
1224
|
-
inboxPriority:
|
|
1225
|
-
fcmPriority:
|
|
1226
|
-
liveActivityPriority:
|
|
1225
|
+
priority: import_zod19.z.number().int().min(0),
|
|
1226
|
+
homePriority: import_zod19.z.number().int().min(0),
|
|
1227
|
+
inboxPriority: import_zod19.z.number().int().min(0),
|
|
1228
|
+
fcmPriority: import_zod19.z.number().int().min(0),
|
|
1229
|
+
liveActivityPriority: import_zod19.z.number().int().min(0),
|
|
1227
1230
|
liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
|
|
1228
|
-
foregroundToast:
|
|
1231
|
+
foregroundToast: import_zod19.z.boolean()
|
|
1229
1232
|
});
|
|
1230
|
-
var MealPlanNotificationSchema =
|
|
1231
|
-
notificationId:
|
|
1233
|
+
var MealPlanNotificationSchema = import_zod19.z.object({
|
|
1234
|
+
notificationId: import_zod19.z.string().min(1),
|
|
1232
1235
|
kind: MealPlanNotificationKindSchema,
|
|
1233
1236
|
mealPlanId: MealPlanIdSchema,
|
|
1234
|
-
deepLink:
|
|
1235
|
-
title:
|
|
1236
|
-
message:
|
|
1237
|
+
deepLink: import_zod19.z.string().min(1),
|
|
1238
|
+
title: import_zod19.z.string().min(1),
|
|
1239
|
+
message: import_zod19.z.string().min(1),
|
|
1237
1240
|
createdAt: ISODateTimeStringSchema,
|
|
1238
1241
|
readAt: ISODateTimeStringSchema.nullable()
|
|
1239
1242
|
});
|
|
1240
1243
|
|
|
1241
1244
|
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
1242
|
-
var
|
|
1243
|
-
var CreateMealPlanShareLinkRequestSchema =
|
|
1245
|
+
var import_zod20 = require("zod");
|
|
1246
|
+
var CreateMealPlanShareLinkRequestSchema = import_zod20.z.object({
|
|
1244
1247
|
expiresAt: ISODateTimeStringSchema.optional(),
|
|
1245
|
-
guestJoinEnabled:
|
|
1248
|
+
guestJoinEnabled: import_zod20.z.boolean().default(true)
|
|
1246
1249
|
});
|
|
1247
|
-
var MealPlanShareLinkSummarySchema =
|
|
1250
|
+
var MealPlanShareLinkSummarySchema = import_zod20.z.object({
|
|
1248
1251
|
shareLinkId: MealPlanShareLinkIdSchema,
|
|
1249
1252
|
mealPlanId: MealPlanIdSchema,
|
|
1250
1253
|
token: MealPlanShareLinkTokenSchema,
|
|
1251
|
-
url:
|
|
1254
|
+
url: import_zod20.z.string().url(),
|
|
1252
1255
|
expiresAt: ISODateTimeStringSchema,
|
|
1253
|
-
guestJoinEnabled:
|
|
1256
|
+
guestJoinEnabled: import_zod20.z.boolean(),
|
|
1254
1257
|
createdAt: ISODateTimeStringSchema
|
|
1255
1258
|
});
|
|
1256
|
-
var MealPlanSharePreviewResponseSchema =
|
|
1259
|
+
var MealPlanSharePreviewResponseSchema = import_zod20.z.object({
|
|
1257
1260
|
mealPlanId: MealPlanIdSchema,
|
|
1258
1261
|
token: MealPlanShareLinkTokenSchema,
|
|
1259
|
-
title:
|
|
1260
|
-
ownerName:
|
|
1261
|
-
participantCount:
|
|
1262
|
+
title: import_zod20.z.string(),
|
|
1263
|
+
ownerName: import_zod20.z.string(),
|
|
1264
|
+
participantCount: import_zod20.z.number().int().min(1),
|
|
1262
1265
|
expiresAt: ISODateTimeStringSchema,
|
|
1263
|
-
guestJoinEnabled:
|
|
1266
|
+
guestJoinEnabled: import_zod20.z.boolean()
|
|
1264
1267
|
});
|
|
1265
|
-
var JoinMealPlanGuestRequestSchema =
|
|
1266
|
-
nickname:
|
|
1267
|
-
password:
|
|
1268
|
+
var JoinMealPlanGuestRequestSchema = import_zod20.z.object({
|
|
1269
|
+
nickname: import_zod20.z.string().min(1).max(50),
|
|
1270
|
+
password: import_zod20.z.string().min(1).max(100).optional()
|
|
1268
1271
|
});
|
|
1269
|
-
var JoinMealPlanGuestResponseSchema =
|
|
1272
|
+
var JoinMealPlanGuestResponseSchema = import_zod20.z.object({
|
|
1270
1273
|
mealPlanId: MealPlanIdSchema,
|
|
1271
|
-
guestId:
|
|
1272
|
-
sessionToken:
|
|
1274
|
+
guestId: import_zod20.z.string().min(1),
|
|
1275
|
+
sessionToken: import_zod20.z.string().min(1)
|
|
1273
1276
|
});
|
|
1274
|
-
var MealPlanGuestSessionQuerySchema =
|
|
1275
|
-
sessionToken:
|
|
1277
|
+
var MealPlanGuestSessionQuerySchema = import_zod20.z.object({
|
|
1278
|
+
sessionToken: import_zod20.z.string().min(1)
|
|
1276
1279
|
});
|
|
1277
|
-
var MealPlanGuestSessionResponseSchema =
|
|
1280
|
+
var MealPlanGuestSessionResponseSchema = import_zod20.z.object({
|
|
1278
1281
|
mealPlan: MealPlanResponseSchema,
|
|
1279
1282
|
token: MealPlanShareLinkTokenSchema,
|
|
1280
|
-
guestId:
|
|
1281
|
-
nickname:
|
|
1282
|
-
sessionToken:
|
|
1283
|
+
guestId: import_zod20.z.string().min(1),
|
|
1284
|
+
nickname: import_zod20.z.string().min(1).max(50),
|
|
1285
|
+
sessionToken: import_zod20.z.string().min(1)
|
|
1283
1286
|
});
|
|
1284
1287
|
|
|
1285
1288
|
// src/domain/meal-plan/meal-group.schema.ts
|
|
1286
|
-
var
|
|
1287
|
-
var MealGroupMemberRoleSchema =
|
|
1289
|
+
var import_zod21 = require("zod");
|
|
1290
|
+
var MealGroupMemberRoleSchema = import_zod21.z.enum([
|
|
1288
1291
|
"OWNER",
|
|
1289
1292
|
"MEMBER"
|
|
1290
1293
|
]);
|
|
1291
|
-
var MealGroupMemberSchema =
|
|
1294
|
+
var MealGroupMemberSchema = import_zod21.z.object({
|
|
1292
1295
|
member: MemberCoreSchema,
|
|
1293
1296
|
role: MealGroupMemberRoleSchema,
|
|
1294
1297
|
joinedAt: ISODateTimeStringSchema
|
|
1295
1298
|
});
|
|
1296
|
-
var MealGroupResponseSchema =
|
|
1299
|
+
var MealGroupResponseSchema = import_zod21.z.object({
|
|
1297
1300
|
mealGroupId: MealGroupIdSchema,
|
|
1298
|
-
name:
|
|
1301
|
+
name: import_zod21.z.string().min(1).max(50),
|
|
1299
1302
|
owner: MemberCoreSchema,
|
|
1300
|
-
profileImageUrl:
|
|
1301
|
-
members:
|
|
1302
|
-
recentMealPlanIds:
|
|
1303
|
+
profileImageUrl: import_zod21.z.string().url().nullable(),
|
|
1304
|
+
members: import_zod21.z.array(MealGroupMemberSchema),
|
|
1305
|
+
recentMealPlanIds: import_zod21.z.array(MealPlanIdSchema),
|
|
1303
1306
|
createdAt: ISODateTimeStringSchema,
|
|
1304
1307
|
updatedAt: ISODateTimeStringSchema
|
|
1305
1308
|
});
|
|
1306
|
-
var CreateMealGroupRequestSchema =
|
|
1307
|
-
name:
|
|
1308
|
-
memberIds:
|
|
1309
|
-
profileImageUrl:
|
|
1309
|
+
var CreateMealGroupRequestSchema = import_zod21.z.object({
|
|
1310
|
+
name: import_zod21.z.string().min(1).max(50),
|
|
1311
|
+
memberIds: import_zod21.z.array(import_zod21.z.number().int().positive()).min(1),
|
|
1312
|
+
profileImageUrl: import_zod21.z.string().url().nullable().optional(),
|
|
1310
1313
|
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
1311
1314
|
});
|
|
1312
|
-
var StartMealPlanFromGroupRequestSchema =
|
|
1313
|
-
title:
|
|
1315
|
+
var StartMealPlanFromGroupRequestSchema = import_zod21.z.object({
|
|
1316
|
+
title: import_zod21.z.string().min(1).max(100).optional()
|
|
1314
1317
|
});
|
|
1315
|
-
var AddMealGroupMemberRequestSchema =
|
|
1316
|
-
memberId:
|
|
1318
|
+
var AddMealGroupMemberRequestSchema = import_zod21.z.object({
|
|
1319
|
+
memberId: import_zod21.z.number().int().positive(),
|
|
1317
1320
|
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
1318
1321
|
});
|
|
1319
|
-
var UpdateMealGroupMemberRoleRequestSchema =
|
|
1322
|
+
var UpdateMealGroupMemberRoleRequestSchema = import_zod21.z.object({
|
|
1320
1323
|
role: MealGroupMemberRoleSchema
|
|
1321
1324
|
});
|
|
1322
1325
|
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
1323
|
-
var MealGroupPreferenceSummarySchema =
|
|
1326
|
+
var MealGroupPreferenceSummarySchema = import_zod21.z.object({
|
|
1324
1327
|
mealGroupId: MealGroupIdSchema,
|
|
1325
|
-
frequentMenuCategories:
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
})),
|
|
1333
|
-
recentMenuCategories: import_zod20.z.array(import_zod20.z.string()),
|
|
1334
|
-
recommendationContext: import_zod20.z.object({
|
|
1335
|
-
preferredMenuCategories: import_zod20.z.array(import_zod20.z.string()),
|
|
1336
|
-
excludedMenuCategories: import_zod20.z.array(import_zod20.z.string()),
|
|
1337
|
-
candidateMenuCategories: import_zod20.z.array(import_zod20.z.string())
|
|
1328
|
+
frequentMenuCategories: import_zod21.z.array(import_zod21.z.object({ label: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
|
|
1329
|
+
frequentRestaurants: import_zod21.z.array(import_zod21.z.object({ restaurantName: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
|
|
1330
|
+
recentMenuCategories: import_zod21.z.array(import_zod21.z.string()),
|
|
1331
|
+
recommendationContext: import_zod21.z.object({
|
|
1332
|
+
preferredMenuCategories: import_zod21.z.array(import_zod21.z.string()),
|
|
1333
|
+
excludedMenuCategories: import_zod21.z.array(import_zod21.z.string()),
|
|
1334
|
+
candidateMenuCategories: import_zod21.z.array(import_zod21.z.string())
|
|
1338
1335
|
})
|
|
1339
1336
|
});
|
|
1340
|
-
var MealGroupHistoryResponseSchema =
|
|
1337
|
+
var MealGroupHistoryResponseSchema = import_zod21.z.array(MealGroupHistoryItemSchema);
|
|
1341
1338
|
|
|
1342
1339
|
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
1343
|
-
var
|
|
1344
|
-
var HomeMealPlanActionKindSchema =
|
|
1340
|
+
var import_zod22 = require("zod");
|
|
1341
|
+
var HomeMealPlanActionKindSchema = import_zod22.z.enum([
|
|
1345
1342
|
"CONTINUE_DECISION",
|
|
1346
1343
|
"TODAY_UPCOMING",
|
|
1347
1344
|
"RECORD_NEEDED",
|
|
1348
1345
|
"RESPOND_JOIN_REQUEST",
|
|
1349
1346
|
"NOTIFICATION_FOLLOW_UP"
|
|
1350
1347
|
]);
|
|
1351
|
-
var HomeMealPlanActionCardSchema =
|
|
1352
|
-
actionId:
|
|
1348
|
+
var HomeMealPlanActionCardSchema = import_zod22.z.object({
|
|
1349
|
+
actionId: import_zod22.z.string().min(1),
|
|
1353
1350
|
kind: HomeMealPlanActionKindSchema,
|
|
1354
|
-
priority:
|
|
1355
|
-
title:
|
|
1356
|
-
description:
|
|
1357
|
-
primaryAction:
|
|
1358
|
-
label:
|
|
1359
|
-
href:
|
|
1351
|
+
priority: import_zod22.z.number().int().min(0),
|
|
1352
|
+
title: import_zod22.z.string().min(1),
|
|
1353
|
+
description: import_zod22.z.string().min(1),
|
|
1354
|
+
primaryAction: import_zod22.z.object({
|
|
1355
|
+
label: import_zod22.z.string().min(1),
|
|
1356
|
+
href: import_zod22.z.string().min(1)
|
|
1360
1357
|
}),
|
|
1361
1358
|
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
1362
1359
|
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
1363
1360
|
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
1364
1361
|
});
|
|
1365
|
-
var HomeMealPlanDashboardResponseSchema =
|
|
1362
|
+
var HomeMealPlanDashboardResponseSchema = import_zod22.z.object({
|
|
1366
1363
|
generatedAt: ISODateTimeStringSchema,
|
|
1367
|
-
inProgress:
|
|
1368
|
-
today:
|
|
1369
|
-
recordNeeded:
|
|
1370
|
-
pendingJoinRequests:
|
|
1371
|
-
unreadNotifications:
|
|
1372
|
-
nextActions:
|
|
1373
|
-
});
|
|
1374
|
-
var MealMapLayerSchema =
|
|
1364
|
+
inProgress: import_zod22.z.array(MyMealPlanListItemSchema),
|
|
1365
|
+
today: import_zod22.z.array(MyMealPlanListItemSchema),
|
|
1366
|
+
recordNeeded: import_zod22.z.array(MyMealPlanListItemSchema),
|
|
1367
|
+
pendingJoinRequests: import_zod22.z.array(MealPlanJoinRequestSummarySchema),
|
|
1368
|
+
unreadNotifications: import_zod22.z.array(MealPlanNotificationSchema).default([]),
|
|
1369
|
+
nextActions: import_zod22.z.array(HomeMealPlanActionCardSchema)
|
|
1370
|
+
});
|
|
1371
|
+
var MealMapLayerSchema = import_zod22.z.enum([
|
|
1375
1372
|
"MY_MEAL_PLAN_PLACE",
|
|
1376
1373
|
"NEARBY_FRIEND_MEAL_PLAN",
|
|
1377
1374
|
"FRIEND_RECORD_LOCATION",
|
|
1378
1375
|
"RESTAURANT_CANDIDATE"
|
|
1379
1376
|
]);
|
|
1380
|
-
var MealMapMarkerBaseSchema =
|
|
1381
|
-
markerId:
|
|
1382
|
-
lat:
|
|
1383
|
-
lng:
|
|
1384
|
-
title:
|
|
1385
|
-
subtitle:
|
|
1386
|
-
href:
|
|
1377
|
+
var MealMapMarkerBaseSchema = import_zod22.z.object({
|
|
1378
|
+
markerId: import_zod22.z.string().min(1),
|
|
1379
|
+
lat: import_zod22.z.number().min(-90).max(90),
|
|
1380
|
+
lng: import_zod22.z.number().min(-180).max(180),
|
|
1381
|
+
title: import_zod22.z.string().min(1),
|
|
1382
|
+
subtitle: import_zod22.z.string().nullable(),
|
|
1383
|
+
href: import_zod22.z.string().min(1).nullable(),
|
|
1387
1384
|
mealPlanId: MealPlanIdSchema.nullable(),
|
|
1388
1385
|
articleId: ArticleIdSchema.nullable(),
|
|
1389
1386
|
restaurant: RestaurantSchema.nullable(),
|
|
1390
|
-
distanceMeters:
|
|
1387
|
+
distanceMeters: import_zod22.z.number().int().min(0).nullable(),
|
|
1391
1388
|
updatedAt: ISODateTimeStringSchema
|
|
1392
1389
|
});
|
|
1393
|
-
var MealMapMyMealPlanPlaceMetadataSchema =
|
|
1390
|
+
var MealMapMyMealPlanPlaceMetadataSchema = import_zod22.z.object({
|
|
1394
1391
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1395
|
-
status:
|
|
1396
|
-
participantCount:
|
|
1397
|
-
source:
|
|
1392
|
+
status: import_zod22.z.string().min(1),
|
|
1393
|
+
participantCount: import_zod22.z.number().int().min(1),
|
|
1394
|
+
source: import_zod22.z.string().min(1)
|
|
1398
1395
|
});
|
|
1399
|
-
var MealMapNearbyFriendMealPlanMetadataSchema =
|
|
1396
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = import_zod22.z.object({
|
|
1400
1397
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1401
|
-
ownerName:
|
|
1402
|
-
participantCount:
|
|
1398
|
+
ownerName: import_zod22.z.string().min(1),
|
|
1399
|
+
participantCount: import_zod22.z.number().int().min(1),
|
|
1403
1400
|
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
1404
|
-
source:
|
|
1401
|
+
source: import_zod22.z.string().min(1)
|
|
1405
1402
|
});
|
|
1406
|
-
var MealMapFriendRecordLocationMetadataSchema =
|
|
1403
|
+
var MealMapFriendRecordLocationMetadataSchema = import_zod22.z.object({
|
|
1407
1404
|
authorId: MemberIdSchema.nullable().default(null),
|
|
1408
|
-
authorName:
|
|
1409
|
-
imageUrl:
|
|
1410
|
-
mealDate:
|
|
1405
|
+
authorName: import_zod22.z.string().min(1),
|
|
1406
|
+
imageUrl: import_zod22.z.string().nullable().default(null),
|
|
1407
|
+
mealDate: import_zod22.z.string().min(1)
|
|
1411
1408
|
});
|
|
1412
|
-
var MealMapRestaurantCandidateCompletionBlockedReasonSchema =
|
|
1409
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod22.z.enum([
|
|
1413
1410
|
"OWNER_ONLY",
|
|
1414
1411
|
"STAGE_ALREADY_COMPLETED",
|
|
1415
1412
|
"MEAL_PLAN_NOT_MUTABLE"
|
|
1416
1413
|
]);
|
|
1417
|
-
var MealMapRestaurantCandidateMetadataSchema =
|
|
1414
|
+
var MealMapRestaurantCandidateMetadataSchema = import_zod22.z.object({
|
|
1418
1415
|
stageId: MealPlanDecisionStageIdSchema,
|
|
1419
1416
|
ownerId: MemberIdSchema.nullable().default(null),
|
|
1420
|
-
status:
|
|
1421
|
-
source:
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
]).default("search"),
|
|
1426
|
-
stageStatus: import_zod21.z.enum([
|
|
1427
|
-
"OPEN",
|
|
1428
|
-
"COMPLETED",
|
|
1429
|
-
"REOPENED"
|
|
1430
|
-
]).default("OPEN"),
|
|
1431
|
-
canVote: import_zod21.z.boolean().default(false),
|
|
1432
|
-
canCompleteStage: import_zod21.z.boolean().default(false),
|
|
1417
|
+
status: import_zod22.z.string().min(1),
|
|
1418
|
+
source: import_zod22.z.enum(["search", "fallback", "manual"]).default("search"),
|
|
1419
|
+
stageStatus: import_zod22.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
|
|
1420
|
+
canVote: import_zod22.z.boolean().default(false),
|
|
1421
|
+
canCompleteStage: import_zod22.z.boolean().default(false),
|
|
1433
1422
|
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
1434
1423
|
});
|
|
1435
|
-
var MealMapMarkerSchema =
|
|
1424
|
+
var MealMapMarkerSchema = import_zod22.z.discriminatedUnion("layer", [
|
|
1436
1425
|
MealMapMarkerBaseSchema.extend({
|
|
1437
|
-
layer:
|
|
1426
|
+
layer: import_zod22.z.literal("MY_MEAL_PLAN_PLACE"),
|
|
1438
1427
|
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
1439
1428
|
}),
|
|
1440
1429
|
MealMapMarkerBaseSchema.extend({
|
|
1441
|
-
layer:
|
|
1430
|
+
layer: import_zod22.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
1442
1431
|
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
1443
1432
|
}),
|
|
1444
1433
|
MealMapMarkerBaseSchema.extend({
|
|
1445
|
-
layer:
|
|
1434
|
+
layer: import_zod22.z.literal("FRIEND_RECORD_LOCATION"),
|
|
1446
1435
|
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
1447
1436
|
}),
|
|
1448
1437
|
MealMapMarkerBaseSchema.extend({
|
|
1449
|
-
layer:
|
|
1438
|
+
layer: import_zod22.z.literal("RESTAURANT_CANDIDATE"),
|
|
1450
1439
|
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
1451
1440
|
})
|
|
1452
1441
|
]);
|
|
1453
|
-
var MealMapQuerySchema =
|
|
1454
|
-
friendRecordDays:
|
|
1442
|
+
var MealMapQuerySchema = import_zod22.z.object({
|
|
1443
|
+
friendRecordDays: import_zod22.z.coerce.number().int().min(1).max(90).optional().default(7)
|
|
1455
1444
|
});
|
|
1456
|
-
var MealMapResponseSchema =
|
|
1445
|
+
var MealMapResponseSchema = import_zod22.z.object({
|
|
1457
1446
|
generatedAt: ISODateTimeStringSchema,
|
|
1458
|
-
center:
|
|
1459
|
-
lat:
|
|
1460
|
-
lng:
|
|
1461
|
-
source:
|
|
1462
|
-
"LAST_KNOWN_LOCATION",
|
|
1463
|
-
"MY_MEAL_PLAN",
|
|
1464
|
-
"DEFAULT"
|
|
1465
|
-
])
|
|
1447
|
+
center: import_zod22.z.object({
|
|
1448
|
+
lat: import_zod22.z.number().min(-90).max(90),
|
|
1449
|
+
lng: import_zod22.z.number().min(-180).max(180),
|
|
1450
|
+
source: import_zod22.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
|
|
1466
1451
|
}),
|
|
1467
|
-
layers:
|
|
1468
|
-
myMealPlanPlaces:
|
|
1469
|
-
nearbyFriendMealPlans:
|
|
1470
|
-
friendRecordLocations:
|
|
1471
|
-
restaurantCandidates:
|
|
1452
|
+
layers: import_zod22.z.object({
|
|
1453
|
+
myMealPlanPlaces: import_zod22.z.array(MealMapMarkerSchema),
|
|
1454
|
+
nearbyFriendMealPlans: import_zod22.z.array(MealMapMarkerSchema),
|
|
1455
|
+
friendRecordLocations: import_zod22.z.array(MealMapMarkerSchema),
|
|
1456
|
+
restaurantCandidates: import_zod22.z.array(MealMapMarkerSchema)
|
|
1472
1457
|
})
|
|
1473
1458
|
});
|
|
1474
1459
|
|
|
1475
1460
|
// src/domain/promotion/referral.schema.ts
|
|
1476
|
-
var
|
|
1477
|
-
var ReferralCreateResponseSchema =
|
|
1461
|
+
var import_zod23 = require("zod");
|
|
1462
|
+
var ReferralCreateResponseSchema = import_zod23.z.object({
|
|
1478
1463
|
code: ReferralCodeSchema,
|
|
1479
|
-
link:
|
|
1464
|
+
link: import_zod23.z.string().url(),
|
|
1480
1465
|
expiresAt: ISODateTimeStringSchema
|
|
1481
1466
|
});
|
|
1482
|
-
var ReferralItemResponseSchema =
|
|
1467
|
+
var ReferralItemResponseSchema = import_zod23.z.object({
|
|
1483
1468
|
code: ReferralCodeSchema,
|
|
1484
1469
|
createdAt: ISODateTimeStringSchema,
|
|
1485
1470
|
expiresAt: ISODateTimeStringSchema,
|
|
1486
|
-
used:
|
|
1471
|
+
used: import_zod23.z.boolean(),
|
|
1487
1472
|
usedByMemberId: MemberIdSchema.nullable(),
|
|
1488
|
-
usedByUsername:
|
|
1473
|
+
usedByUsername: import_zod23.z.string().nullable()
|
|
1489
1474
|
});
|
|
1490
|
-
var RedeemReferralRequestSchema =
|
|
1475
|
+
var RedeemReferralRequestSchema = import_zod23.z.object({
|
|
1491
1476
|
code: ReferralCodeSchema
|
|
1492
1477
|
});
|
|
1493
1478
|
|
|
1494
1479
|
// src/domain/promotion/coupon.schema.ts
|
|
1495
|
-
var
|
|
1496
|
-
var CouponTypeSchema =
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
]);
|
|
1500
|
-
var CouponStatusSchema = import_zod23.z.enum([
|
|
1501
|
-
"UNUSED",
|
|
1502
|
-
"USED"
|
|
1503
|
-
]);
|
|
1504
|
-
var CouponResponseSchema = import_zod23.z.object({
|
|
1480
|
+
var import_zod24 = require("zod");
|
|
1481
|
+
var CouponTypeSchema = import_zod24.z.enum(["DISCOUNT", "SERVICE"]);
|
|
1482
|
+
var CouponStatusSchema = import_zod24.z.enum(["UNUSED", "USED"]);
|
|
1483
|
+
var CouponResponseSchema = import_zod24.z.object({
|
|
1505
1484
|
couponId: CouponIdSchema,
|
|
1506
|
-
title:
|
|
1507
|
-
shopName:
|
|
1485
|
+
title: import_zod24.z.string(),
|
|
1486
|
+
shopName: import_zod24.z.string(),
|
|
1508
1487
|
type: CouponTypeSchema,
|
|
1509
|
-
condition:
|
|
1488
|
+
condition: import_zod24.z.string(),
|
|
1510
1489
|
expiresAt: ISODateStringSchema,
|
|
1511
|
-
used:
|
|
1512
|
-
thumbnailUrl:
|
|
1490
|
+
used: import_zod24.z.boolean(),
|
|
1491
|
+
thumbnailUrl: import_zod24.z.string().url()
|
|
1513
1492
|
});
|
|
1514
1493
|
|
|
1515
1494
|
// src/domain/promotion/challenge.schema.ts
|
|
1516
|
-
var
|
|
1517
|
-
var RewardTypeSchema =
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
days: import_zod24.z.array(import_zod24.z.boolean()),
|
|
1523
|
-
completed: import_zod24.z.number().int().min(0),
|
|
1524
|
-
goal: import_zod24.z.number().int().positive()
|
|
1495
|
+
var import_zod25 = require("zod");
|
|
1496
|
+
var RewardTypeSchema = import_zod25.z.enum(["WEEK", "MONTH"]);
|
|
1497
|
+
var WeekProgressSchema = import_zod25.z.object({
|
|
1498
|
+
days: import_zod25.z.array(import_zod25.z.boolean()),
|
|
1499
|
+
completed: import_zod25.z.number().int().min(0),
|
|
1500
|
+
goal: import_zod25.z.number().int().positive()
|
|
1525
1501
|
});
|
|
1526
|
-
var MonthProgressSchema =
|
|
1527
|
-
count:
|
|
1528
|
-
goal:
|
|
1502
|
+
var MonthProgressSchema = import_zod25.z.object({
|
|
1503
|
+
count: import_zod25.z.number().int().min(0),
|
|
1504
|
+
goal: import_zod25.z.number().int().positive()
|
|
1529
1505
|
});
|
|
1530
|
-
var ChallengeStatusResponseSchema =
|
|
1506
|
+
var ChallengeStatusResponseSchema = import_zod25.z.object({
|
|
1531
1507
|
week: WeekProgressSchema,
|
|
1532
1508
|
month: MonthProgressSchema,
|
|
1533
|
-
weekRewardAvailable:
|
|
1534
|
-
monthRewardAvailable:
|
|
1509
|
+
weekRewardAvailable: import_zod25.z.boolean(),
|
|
1510
|
+
monthRewardAvailable: import_zod25.z.boolean()
|
|
1535
1511
|
});
|
|
1536
|
-
var ClaimChallengeRewardRequestSchema =
|
|
1512
|
+
var ClaimChallengeRewardRequestSchema = import_zod25.z.object({
|
|
1537
1513
|
type: RewardTypeSchema
|
|
1538
1514
|
});
|
|
1539
|
-
var ClaimChallengeRewardResponseSchema =
|
|
1515
|
+
var ClaimChallengeRewardResponseSchema = import_zod25.z.object({
|
|
1540
1516
|
rewardType: RewardTypeSchema,
|
|
1541
|
-
claimed:
|
|
1517
|
+
claimed: import_zod25.z.boolean()
|
|
1542
1518
|
});
|
|
1543
1519
|
|
|
1544
1520
|
// src/domain/push/push.schema.ts
|
|
1545
|
-
var
|
|
1546
|
-
var PushProviderSchema =
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
]);
|
|
1550
|
-
var PushPlatformSchema = import_zod25.z.enum([
|
|
1551
|
-
"WEB",
|
|
1552
|
-
"ANDROID",
|
|
1553
|
-
"IOS"
|
|
1554
|
-
]);
|
|
1555
|
-
var PushPermissionStatusSchema = import_zod25.z.enum([
|
|
1521
|
+
var import_zod26 = require("zod");
|
|
1522
|
+
var PushProviderSchema = import_zod26.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
|
|
1523
|
+
var PushPlatformSchema = import_zod26.z.enum(["WEB", "ANDROID", "IOS"]);
|
|
1524
|
+
var PushPermissionStatusSchema = import_zod26.z.enum([
|
|
1556
1525
|
"UNKNOWN",
|
|
1557
1526
|
"PROMPT",
|
|
1558
1527
|
"GRANTED",
|
|
1559
1528
|
"DENIED"
|
|
1560
1529
|
]);
|
|
1561
|
-
var PushTokenStatusSchema =
|
|
1562
|
-
|
|
1563
|
-
"REVOKED",
|
|
1564
|
-
"DISABLED"
|
|
1565
|
-
]);
|
|
1566
|
-
var RegisterPushTokenRequestSchema = import_zod25.z.object({
|
|
1530
|
+
var PushTokenStatusSchema = import_zod26.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
|
|
1531
|
+
var RegisterPushTokenRequestSchema = import_zod26.z.object({
|
|
1567
1532
|
provider: PushProviderSchema.default("FCM"),
|
|
1568
1533
|
platform: PushPlatformSchema,
|
|
1569
|
-
token:
|
|
1570
|
-
deviceId:
|
|
1571
|
-
appVersion:
|
|
1572
|
-
buildNumber:
|
|
1534
|
+
token: import_zod26.z.string().min(10),
|
|
1535
|
+
deviceId: import_zod26.z.string().min(1).max(128),
|
|
1536
|
+
appVersion: import_zod26.z.string().min(1).max(64).optional(),
|
|
1537
|
+
buildNumber: import_zod26.z.string().min(1).max(64).optional(),
|
|
1573
1538
|
permissionStatus: PushPermissionStatusSchema
|
|
1574
1539
|
});
|
|
1575
|
-
var RevokePushTokenRequestSchema =
|
|
1540
|
+
var RevokePushTokenRequestSchema = import_zod26.z.object({
|
|
1576
1541
|
provider: PushProviderSchema.default("FCM"),
|
|
1577
|
-
token:
|
|
1578
|
-
deviceId:
|
|
1542
|
+
token: import_zod26.z.string().min(10).optional(),
|
|
1543
|
+
deviceId: import_zod26.z.string().min(1).max(128).optional()
|
|
1579
1544
|
});
|
|
1580
|
-
var PushTokenResponseSchema =
|
|
1581
|
-
pushTokenId:
|
|
1545
|
+
var PushTokenResponseSchema = import_zod26.z.object({
|
|
1546
|
+
pushTokenId: import_zod26.z.string().uuid(),
|
|
1582
1547
|
provider: PushProviderSchema,
|
|
1583
1548
|
platform: PushPlatformSchema,
|
|
1584
|
-
deviceId:
|
|
1549
|
+
deviceId: import_zod26.z.string(),
|
|
1585
1550
|
status: PushTokenStatusSchema,
|
|
1586
1551
|
permissionStatus: PushPermissionStatusSchema,
|
|
1587
|
-
appVersion:
|
|
1588
|
-
buildNumber:
|
|
1552
|
+
appVersion: import_zod26.z.string().nullable(),
|
|
1553
|
+
buildNumber: import_zod26.z.string().nullable(),
|
|
1589
1554
|
lastSeenAt: ISODateTimeStringSchema,
|
|
1590
1555
|
revokedAt: ISODateTimeStringSchema.nullable()
|
|
1591
1556
|
});
|
|
1592
|
-
var PushPayloadSchemaVersionSchema =
|
|
1593
|
-
var MealPlanPushPayloadDataSchema =
|
|
1557
|
+
var PushPayloadSchemaVersionSchema = import_zod26.z.literal("2026-06-17");
|
|
1558
|
+
var MealPlanPushPayloadDataSchema = import_zod26.z.object({
|
|
1594
1559
|
schemaVersion: PushPayloadSchemaVersionSchema,
|
|
1595
|
-
notificationId:
|
|
1560
|
+
notificationId: import_zod26.z.string().min(1),
|
|
1596
1561
|
kind: MealPlanNotificationKindSchema,
|
|
1597
1562
|
mealPlanId: MealPlanIdSchema,
|
|
1598
|
-
deepLink:
|
|
1599
|
-
title:
|
|
1600
|
-
body:
|
|
1601
|
-
fcmPriority:
|
|
1602
|
-
liveActivityPriority:
|
|
1563
|
+
deepLink: import_zod26.z.string().min(1),
|
|
1564
|
+
title: import_zod26.z.string().min(1),
|
|
1565
|
+
body: import_zod26.z.string().min(1),
|
|
1566
|
+
fcmPriority: import_zod26.z.coerce.number().int().min(0),
|
|
1567
|
+
liveActivityPriority: import_zod26.z.coerce.number().int().min(0),
|
|
1603
1568
|
liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
|
|
1604
1569
|
});
|
|
1605
|
-
var PushDeliveryStatusSchema =
|
|
1570
|
+
var PushDeliveryStatusSchema = import_zod26.z.enum([
|
|
1606
1571
|
"PENDING",
|
|
1607
1572
|
"SENT",
|
|
1608
1573
|
"FAILED",
|
|
1609
1574
|
"SKIPPED"
|
|
1610
1575
|
]);
|
|
1611
|
-
var PushDeliveryAttemptResultSchema =
|
|
1576
|
+
var PushDeliveryAttemptResultSchema = import_zod26.z.enum([
|
|
1612
1577
|
"SENT",
|
|
1613
1578
|
"FAILED",
|
|
1614
1579
|
"SKIPPED"
|
|
1615
1580
|
]);
|
|
1616
|
-
var PushDeliveryAttemptSummarySchema =
|
|
1617
|
-
attemptId:
|
|
1618
|
-
outboxId:
|
|
1619
|
-
pushTokenId:
|
|
1581
|
+
var PushDeliveryAttemptSummarySchema = import_zod26.z.object({
|
|
1582
|
+
attemptId: import_zod26.z.string().uuid(),
|
|
1583
|
+
outboxId: import_zod26.z.string().uuid(),
|
|
1584
|
+
pushTokenId: import_zod26.z.string().uuid().nullable(),
|
|
1620
1585
|
provider: PushProviderSchema,
|
|
1621
1586
|
result: PushDeliveryAttemptResultSchema,
|
|
1622
|
-
providerMessageId:
|
|
1623
|
-
errorCode:
|
|
1624
|
-
errorMessage:
|
|
1625
|
-
invalidToken:
|
|
1587
|
+
providerMessageId: import_zod26.z.string().nullable(),
|
|
1588
|
+
errorCode: import_zod26.z.string().nullable(),
|
|
1589
|
+
errorMessage: import_zod26.z.string().nullable(),
|
|
1590
|
+
invalidToken: import_zod26.z.boolean(),
|
|
1626
1591
|
createdAt: ISODateTimeStringSchema
|
|
1627
1592
|
});
|
|
1628
|
-
var PushDeliveryOutboxSummarySchema =
|
|
1629
|
-
outboxId:
|
|
1630
|
-
notificationId:
|
|
1631
|
-
memberId:
|
|
1593
|
+
var PushDeliveryOutboxSummarySchema = import_zod26.z.object({
|
|
1594
|
+
outboxId: import_zod26.z.string().uuid(),
|
|
1595
|
+
notificationId: import_zod26.z.string().min(1),
|
|
1596
|
+
memberId: import_zod26.z.number().int().positive(),
|
|
1632
1597
|
status: PushDeliveryStatusSchema,
|
|
1633
|
-
attemptCount:
|
|
1634
|
-
lastError:
|
|
1598
|
+
attemptCount: import_zod26.z.number().int().min(0),
|
|
1599
|
+
lastError: import_zod26.z.string().nullable(),
|
|
1635
1600
|
nextAttemptAt: ISODateTimeStringSchema.nullable(),
|
|
1636
1601
|
sentAt: ISODateTimeStringSchema.nullable(),
|
|
1637
1602
|
createdAt: ISODateTimeStringSchema
|
|
1638
1603
|
});
|
|
1639
1604
|
|
|
1640
1605
|
// src/domain/live-activity/live-activity.schema.ts
|
|
1641
|
-
var
|
|
1642
|
-
var MealPlanLiveActivityPlatformSchema =
|
|
1606
|
+
var import_zod27 = require("zod");
|
|
1607
|
+
var MealPlanLiveActivityPlatformSchema = import_zod27.z.enum([
|
|
1643
1608
|
"IOS_LIVE_ACTIVITY",
|
|
1644
1609
|
"ANDROID_LIVE_UPDATE"
|
|
1645
1610
|
]);
|
|
1646
|
-
var MealPlanLiveActivitySessionStatusSchema =
|
|
1611
|
+
var MealPlanLiveActivitySessionStatusSchema = import_zod27.z.enum([
|
|
1647
1612
|
"ACTIVE",
|
|
1648
1613
|
"ENDED",
|
|
1649
1614
|
"EXPIRED",
|
|
1650
1615
|
"DISABLED"
|
|
1651
1616
|
]);
|
|
1652
|
-
var MealPlanLiveActivityUpdateStatusSchema =
|
|
1617
|
+
var MealPlanLiveActivityUpdateStatusSchema = import_zod27.z.enum([
|
|
1653
1618
|
"PENDING",
|
|
1654
1619
|
"SENT",
|
|
1655
1620
|
"FAILED",
|
|
1656
1621
|
"SKIPPED"
|
|
1657
1622
|
]);
|
|
1658
|
-
var RegisterMealPlanLiveActivitySessionRequestSchema =
|
|
1623
|
+
var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
|
|
1659
1624
|
platform: MealPlanLiveActivityPlatformSchema,
|
|
1660
|
-
deviceId:
|
|
1661
|
-
activityId:
|
|
1662
|
-
pushToken:
|
|
1663
|
-
appVersion:
|
|
1664
|
-
buildNumber:
|
|
1625
|
+
deviceId: import_zod27.z.string().min(1).max(128),
|
|
1626
|
+
activityId: import_zod27.z.string().min(1).max(128),
|
|
1627
|
+
pushToken: import_zod27.z.string().min(10).optional(),
|
|
1628
|
+
appVersion: import_zod27.z.string().min(1).max(64).optional(),
|
|
1629
|
+
buildNumber: import_zod27.z.string().min(1).max(64).optional()
|
|
1665
1630
|
});
|
|
1666
|
-
var EndMealPlanLiveActivitySessionRequestSchema =
|
|
1631
|
+
var EndMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
|
|
1667
1632
|
platform: MealPlanLiveActivityPlatformSchema.optional(),
|
|
1668
|
-
deviceId:
|
|
1669
|
-
activityId:
|
|
1633
|
+
deviceId: import_zod27.z.string().min(1).max(128).optional(),
|
|
1634
|
+
activityId: import_zod27.z.string().min(1).max(128).optional()
|
|
1670
1635
|
});
|
|
1671
|
-
var MealPlanLiveActivityStateSchema =
|
|
1636
|
+
var MealPlanLiveActivityStateSchema = import_zod27.z.object({
|
|
1672
1637
|
mealPlanId: MealPlanIdSchema,
|
|
1673
|
-
title:
|
|
1674
|
-
status:
|
|
1638
|
+
title: import_zod27.z.string().min(1),
|
|
1639
|
+
status: import_zod27.z.string().min(1),
|
|
1675
1640
|
scheduledAt: ISODateTimeStringSchema.nullable(),
|
|
1676
|
-
restaurantName:
|
|
1677
|
-
placeName:
|
|
1678
|
-
deepLink:
|
|
1679
|
-
progressLabel:
|
|
1641
|
+
restaurantName: import_zod27.z.string().nullable(),
|
|
1642
|
+
placeName: import_zod27.z.string().nullable(),
|
|
1643
|
+
deepLink: import_zod27.z.string().min(1),
|
|
1644
|
+
progressLabel: import_zod27.z.string().min(1),
|
|
1680
1645
|
updatedAt: ISODateTimeStringSchema
|
|
1681
1646
|
});
|
|
1682
|
-
var MealPlanLiveActivitySessionResponseSchema =
|
|
1683
|
-
sessionId:
|
|
1647
|
+
var MealPlanLiveActivitySessionResponseSchema = import_zod27.z.object({
|
|
1648
|
+
sessionId: import_zod27.z.string().uuid(),
|
|
1684
1649
|
mealPlanId: MealPlanIdSchema,
|
|
1685
|
-
memberId:
|
|
1650
|
+
memberId: import_zod27.z.number().int().positive(),
|
|
1686
1651
|
platform: MealPlanLiveActivityPlatformSchema,
|
|
1687
1652
|
devicePlatform: PushPlatformSchema,
|
|
1688
|
-
deviceId:
|
|
1689
|
-
activityId:
|
|
1653
|
+
deviceId: import_zod27.z.string(),
|
|
1654
|
+
activityId: import_zod27.z.string(),
|
|
1690
1655
|
status: MealPlanLiveActivitySessionStatusSchema,
|
|
1691
|
-
appVersion:
|
|
1692
|
-
buildNumber:
|
|
1656
|
+
appVersion: import_zod27.z.string().nullable(),
|
|
1657
|
+
buildNumber: import_zod27.z.string().nullable(),
|
|
1693
1658
|
lastEventKind: MealPlanNotificationKindSchema.nullable(),
|
|
1694
1659
|
lastBehavior: MealPlanLiveActivityBehaviorSchema.nullable(),
|
|
1695
1660
|
lastUpdateStatus: MealPlanLiveActivityUpdateStatusSchema.nullable(),
|
|
1696
|
-
lastError:
|
|
1661
|
+
lastError: import_zod27.z.string().nullable(),
|
|
1697
1662
|
startedAt: ISODateTimeStringSchema,
|
|
1698
1663
|
endedAt: ISODateTimeStringSchema.nullable(),
|
|
1699
1664
|
updatedAt: ISODateTimeStringSchema
|
|
1700
1665
|
});
|
|
1701
|
-
var MealPlanLiveActivitySessionListResponseSchema =
|
|
1666
|
+
var MealPlanLiveActivitySessionListResponseSchema = import_zod27.z.object({
|
|
1702
1667
|
mealPlanId: MealPlanIdSchema,
|
|
1703
1668
|
state: MealPlanLiveActivityStateSchema,
|
|
1704
|
-
sessions:
|
|
1669
|
+
sessions: import_zod27.z.array(MealPlanLiveActivitySessionResponseSchema)
|
|
1705
1670
|
});
|
|
1706
1671
|
|
|
1707
1672
|
// src/domain/common/contracts/endpoint.ts
|
|
1708
|
-
var
|
|
1709
|
-
var NoBodySchema =
|
|
1710
|
-
var NoQuerySchema =
|
|
1711
|
-
var NoParamsSchema =
|
|
1712
|
-
var endpoint =
|
|
1673
|
+
var import_zod28 = require("zod");
|
|
1674
|
+
var NoBodySchema = import_zod28.z.undefined();
|
|
1675
|
+
var NoQuerySchema = import_zod28.z.undefined();
|
|
1676
|
+
var NoParamsSchema = import_zod28.z.undefined();
|
|
1677
|
+
var endpoint = (contract) => ({
|
|
1713
1678
|
method: contract.method,
|
|
1714
1679
|
path: contract.path,
|
|
1715
1680
|
pathParams: contract.pathParams ?? NoParamsSchema,
|
|
1716
1681
|
query: contract.query ?? NoQuerySchema,
|
|
1717
1682
|
body: contract.body ?? NoBodySchema,
|
|
1718
1683
|
response: contract.response
|
|
1719
|
-
})
|
|
1684
|
+
});
|
|
1720
1685
|
|
|
1721
1686
|
// src/domain/common/contracts/api.ts
|
|
1722
|
-
var memberIdParam =
|
|
1723
|
-
|
|
1724
|
-
});
|
|
1725
|
-
var
|
|
1726
|
-
|
|
1727
|
-
});
|
|
1728
|
-
var commentIdParam = import_zod28.z.object({
|
|
1729
|
-
commentId: CommentIdSchema
|
|
1730
|
-
});
|
|
1731
|
-
var mealPlanIdParam = import_zod28.z.object({
|
|
1732
|
-
mealPlanId: MealPlanIdSchema
|
|
1733
|
-
});
|
|
1734
|
-
var mealPlanInviteIdParam = import_zod28.z.object({
|
|
1735
|
-
inviteId: MealPlanInviteIdSchema
|
|
1736
|
-
});
|
|
1737
|
-
var mealPlanJoinRequestIdParam = import_zod28.z.object({
|
|
1738
|
-
requestId: MealPlanJoinRequestIdSchema
|
|
1739
|
-
});
|
|
1687
|
+
var memberIdParam = import_zod29.z.object({ memberId: MemberIdSchema });
|
|
1688
|
+
var articleIdParam = import_zod29.z.object({ articleId: ArticleIdSchema });
|
|
1689
|
+
var commentIdParam = import_zod29.z.object({ commentId: CommentIdSchema });
|
|
1690
|
+
var mealPlanIdParam = import_zod29.z.object({ mealPlanId: MealPlanIdSchema });
|
|
1691
|
+
var mealPlanInviteIdParam = import_zod29.z.object({ inviteId: MealPlanInviteIdSchema });
|
|
1692
|
+
var mealPlanJoinRequestIdParam = import_zod29.z.object({ requestId: MealPlanJoinRequestIdSchema });
|
|
1740
1693
|
var mealPlanDecisionStageIdParam = mealPlanIdParam.extend({
|
|
1741
1694
|
stageId: MealPlanDecisionStageIdSchema
|
|
1742
1695
|
});
|
|
@@ -1747,707 +1700,157 @@ var mealPlanDecisionTaskKeyParam = mealPlanIdParam.extend({
|
|
|
1747
1700
|
taskKey: MealPlanDecisionTaskKeySchema
|
|
1748
1701
|
});
|
|
1749
1702
|
var mealPlanDecisionSnapshotIdParam = mealPlanIdParam.extend({
|
|
1750
|
-
snapshotId:
|
|
1703
|
+
snapshotId: import_zod29.z.string().uuid()
|
|
1751
1704
|
});
|
|
1752
1705
|
var mealPlanParticipantIdParam = mealPlanIdParam.extend({
|
|
1753
|
-
participantId:
|
|
1754
|
-
});
|
|
1755
|
-
var mealPlanShareTokenParam =
|
|
1756
|
-
|
|
1757
|
-
});
|
|
1758
|
-
var
|
|
1759
|
-
|
|
1760
|
-
});
|
|
1761
|
-
var
|
|
1762
|
-
couponId: CouponIdSchema
|
|
1763
|
-
});
|
|
1764
|
-
var mealGroupIdParam = import_zod28.z.object({
|
|
1765
|
-
mealGroupId: MealGroupIdSchema
|
|
1766
|
-
});
|
|
1767
|
-
var mealGroupMemberIdParam = mealGroupIdParam.extend({
|
|
1768
|
-
memberId: MemberIdSchema
|
|
1769
|
-
});
|
|
1770
|
-
var friendRequestIdParam = import_zod28.z.object({
|
|
1771
|
-
requestId: FriendRequestIdSchema
|
|
1772
|
-
});
|
|
1773
|
-
var sseTokenQuery = import_zod28.z.object({
|
|
1774
|
-
token: import_zod28.z.string().min(1)
|
|
1775
|
-
});
|
|
1706
|
+
participantId: import_zod29.z.string().uuid()
|
|
1707
|
+
});
|
|
1708
|
+
var mealPlanShareTokenParam = import_zod29.z.object({ token: MealPlanShareLinkTokenSchema });
|
|
1709
|
+
var notificationIdParam = import_zod29.z.object({ notificationId: import_zod29.z.string().min(1) });
|
|
1710
|
+
var couponIdParam = import_zod29.z.object({ couponId: CouponIdSchema });
|
|
1711
|
+
var mealGroupIdParam = import_zod29.z.object({ mealGroupId: MealGroupIdSchema });
|
|
1712
|
+
var mealGroupMemberIdParam = mealGroupIdParam.extend({ memberId: MemberIdSchema });
|
|
1713
|
+
var friendRequestIdParam = import_zod29.z.object({ requestId: FriendRequestIdSchema });
|
|
1714
|
+
var sseTokenQuery = import_zod29.z.object({ token: import_zod29.z.string().min(1) });
|
|
1776
1715
|
var apiContract = {
|
|
1777
1716
|
auth: {
|
|
1778
|
-
signup: endpoint({
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
response: SignupResponseSchema
|
|
1783
|
-
}),
|
|
1784
|
-
login: endpoint({
|
|
1785
|
-
method: "POST",
|
|
1786
|
-
path: "/auth/login",
|
|
1787
|
-
body: LoginRequestSchema,
|
|
1788
|
-
response: TokenResponseSchema
|
|
1789
|
-
}),
|
|
1790
|
-
refresh: endpoint({
|
|
1791
|
-
method: "POST",
|
|
1792
|
-
path: "/auth/refresh",
|
|
1793
|
-
response: TokenResponseSchema
|
|
1794
|
-
}),
|
|
1795
|
-
logout: endpoint({
|
|
1796
|
-
method: "POST",
|
|
1797
|
-
path: "/auth/logout",
|
|
1798
|
-
response: NoContentSchema
|
|
1799
|
-
})
|
|
1717
|
+
signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
|
|
1718
|
+
login: endpoint({ method: "POST", path: "/auth/login", body: LoginRequestSchema, response: TokenResponseSchema }),
|
|
1719
|
+
refresh: endpoint({ method: "POST", path: "/auth/refresh", response: TokenResponseSchema }),
|
|
1720
|
+
logout: endpoint({ method: "POST", path: "/auth/logout", response: NoContentSchema })
|
|
1800
1721
|
},
|
|
1801
1722
|
members: {
|
|
1802
|
-
me: endpoint({
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
}),
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
}),
|
|
1812
|
-
|
|
1813
|
-
method: "GET",
|
|
1814
|
-
path: "/members/search",
|
|
1815
|
-
query: MemberSearchQuerySchema,
|
|
1816
|
-
response: MemberSerachResponseSchema
|
|
1817
|
-
}),
|
|
1818
|
-
memberProfile: endpoint({
|
|
1819
|
-
method: "GET",
|
|
1820
|
-
path: "/members/:memberId/profile",
|
|
1821
|
-
pathParams: memberIdParam,
|
|
1822
|
-
response: ProfileDetailResponseSchema
|
|
1823
|
-
}),
|
|
1824
|
-
presignProfileImage: endpoint({
|
|
1825
|
-
method: "POST",
|
|
1826
|
-
path: "/uploads/presign-profile",
|
|
1827
|
-
body: UploadProfileImageRequestSchema,
|
|
1828
|
-
response: UploadProfileImageResponseSchema
|
|
1829
|
-
}),
|
|
1830
|
-
createProfile: endpoint({
|
|
1831
|
-
method: "POST",
|
|
1832
|
-
path: "/members/onboarding",
|
|
1833
|
-
body: CreateProfileRequestSchema,
|
|
1834
|
-
response: NoContentSchema
|
|
1835
|
-
}),
|
|
1836
|
-
createProfileAlias: endpoint({
|
|
1837
|
-
method: "POST",
|
|
1838
|
-
path: "/onboarding",
|
|
1839
|
-
body: CreateProfileRequestSchema,
|
|
1840
|
-
response: NoContentSchema
|
|
1841
|
-
}),
|
|
1842
|
-
updateProfile: endpoint({
|
|
1843
|
-
method: "PATCH",
|
|
1844
|
-
path: "/members/me/profile",
|
|
1845
|
-
body: UpdateProfileRequestSchema,
|
|
1846
|
-
response: NoContentSchema
|
|
1847
|
-
}),
|
|
1848
|
-
locationSettings: endpoint({
|
|
1849
|
-
method: "GET",
|
|
1850
|
-
path: "/members/me/location-settings",
|
|
1851
|
-
response: MemberLocationSettingsResponseSchema
|
|
1852
|
-
}),
|
|
1853
|
-
updateLocationConsent: endpoint({
|
|
1854
|
-
method: "PATCH",
|
|
1855
|
-
path: "/members/me/location-consent",
|
|
1856
|
-
body: UpdateMemberLocationConsentRequestSchema,
|
|
1857
|
-
response: MemberLocationSettingsResponseSchema
|
|
1858
|
-
}),
|
|
1859
|
-
updateLocation: endpoint({
|
|
1860
|
-
method: "PATCH",
|
|
1861
|
-
path: "/members/me/location",
|
|
1862
|
-
body: UpdateMemberLocationRequestSchema,
|
|
1863
|
-
response: MemberLocationSettingsResponseSchema
|
|
1864
|
-
})
|
|
1723
|
+
me: endpoint({ method: "GET", path: "/members/me", response: MemberResponseSchema }),
|
|
1724
|
+
myProfile: endpoint({ method: "GET", path: "/members/me/profile", response: ProfileDetailResponseSchema }),
|
|
1725
|
+
search: endpoint({ method: "GET", path: "/members/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
|
|
1726
|
+
memberProfile: endpoint({ method: "GET", path: "/members/:memberId/profile", pathParams: memberIdParam, response: ProfileDetailResponseSchema }),
|
|
1727
|
+
presignProfileImage: endpoint({ method: "POST", path: "/uploads/presign-profile", body: UploadProfileImageRequestSchema, response: UploadProfileImageResponseSchema }),
|
|
1728
|
+
createProfile: endpoint({ method: "POST", path: "/members/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
|
|
1729
|
+
createProfileAlias: endpoint({ method: "POST", path: "/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
|
|
1730
|
+
updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema }),
|
|
1731
|
+
locationSettings: endpoint({ method: "GET", path: "/members/me/location-settings", response: MemberLocationSettingsResponseSchema }),
|
|
1732
|
+
updateLocationConsent: endpoint({ method: "PATCH", path: "/members/me/location-consent", body: UpdateMemberLocationConsentRequestSchema, response: MemberLocationSettingsResponseSchema }),
|
|
1733
|
+
updateLocation: endpoint({ method: "PATCH", path: "/members/me/location", body: UpdateMemberLocationRequestSchema, response: MemberLocationSettingsResponseSchema })
|
|
1865
1734
|
},
|
|
1866
1735
|
preferences: {
|
|
1867
|
-
my: endpoint({
|
|
1868
|
-
|
|
1869
|
-
path: "/preferences/me",
|
|
1870
|
-
response: MemberFoodPreferenceSchema
|
|
1871
|
-
}),
|
|
1872
|
-
update: endpoint({
|
|
1873
|
-
method: "PATCH",
|
|
1874
|
-
path: "/preferences/me",
|
|
1875
|
-
body: UpdatePreferenceRequestSchema,
|
|
1876
|
-
response: NoContentSchema
|
|
1877
|
-
})
|
|
1736
|
+
my: endpoint({ method: "GET", path: "/preferences/me", response: MemberFoodPreferenceSchema }),
|
|
1737
|
+
update: endpoint({ method: "PATCH", path: "/preferences/me", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
|
|
1878
1738
|
},
|
|
1879
1739
|
mealStatus: {
|
|
1880
|
-
my: endpoint({
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
response: MealStatusResponseSchema
|
|
1884
|
-
}),
|
|
1885
|
-
updateMealStatus: endpoint({
|
|
1886
|
-
method: "PATCH",
|
|
1887
|
-
path: "/members/me/meal-status",
|
|
1888
|
-
body: UpdateMealStatusRequestSchema,
|
|
1889
|
-
response: NoContentSchema
|
|
1890
|
-
}),
|
|
1891
|
-
friendMealStatus: endpoint({
|
|
1892
|
-
method: "GET",
|
|
1893
|
-
path: "/friends/me/meals",
|
|
1894
|
-
query: FriendMealQuerySchema,
|
|
1895
|
-
response: import_zod28.z.array(FriendMealItemResponseSchema)
|
|
1896
|
-
})
|
|
1740
|
+
my: endpoint({ method: "GET", path: "/members/me/meal-status", response: MealStatusResponseSchema }),
|
|
1741
|
+
updateMealStatus: endpoint({ method: "PATCH", path: "/members/me/meal-status", body: UpdateMealStatusRequestSchema, response: NoContentSchema }),
|
|
1742
|
+
friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod29.z.array(FriendMealItemResponseSchema) })
|
|
1897
1743
|
},
|
|
1898
1744
|
articles: {
|
|
1899
|
-
list: endpoint({
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
}),
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
query: ArticleListQuerySchema,
|
|
1910
|
-
response: PageArticleSummaryResponseSchema
|
|
1911
|
-
}),
|
|
1912
|
-
my: endpoint({
|
|
1913
|
-
method: "GET",
|
|
1914
|
-
path: "/articles/my",
|
|
1915
|
-
response: PageArticleSummaryResponseSchema
|
|
1916
|
-
}),
|
|
1917
|
-
detail: endpoint({
|
|
1918
|
-
method: "GET",
|
|
1919
|
-
path: "/articles/:articleId",
|
|
1920
|
-
pathParams: articleIdParam,
|
|
1921
|
-
response: ArticleDetailResponseSchema
|
|
1922
|
-
}),
|
|
1923
|
-
create: endpoint({
|
|
1924
|
-
method: "POST",
|
|
1925
|
-
path: "/articles",
|
|
1926
|
-
body: CreateArticleRequestSchema,
|
|
1927
|
-
response: CreatedEntityIdResponseSchema
|
|
1928
|
-
}),
|
|
1929
|
-
like: endpoint({
|
|
1930
|
-
method: "POST",
|
|
1931
|
-
path: "/articles/:articleId/like",
|
|
1932
|
-
pathParams: articleIdParam,
|
|
1933
|
-
response: ArticleLikeResponseSchema
|
|
1934
|
-
}),
|
|
1935
|
-
createComment: endpoint({
|
|
1936
|
-
method: "POST",
|
|
1937
|
-
path: "/articles/:articleId/comments",
|
|
1938
|
-
pathParams: articleIdParam,
|
|
1939
|
-
body: CreateCommentRequestSchema,
|
|
1940
|
-
response: CreatedEntityIdResponseSchema
|
|
1941
|
-
}),
|
|
1942
|
-
presignArticleImage: endpoint({
|
|
1943
|
-
method: "POST",
|
|
1944
|
-
path: "/uploads/presign-article",
|
|
1945
|
-
body: UploadArticleImageRequestSchema,
|
|
1946
|
-
response: UploadArticleImageResponseSchema
|
|
1947
|
-
}),
|
|
1948
|
-
delete: endpoint({
|
|
1949
|
-
method: "DELETE",
|
|
1950
|
-
path: "/articles/:articleId",
|
|
1951
|
-
pathParams: articleIdParam,
|
|
1952
|
-
response: NoContentSchema
|
|
1953
|
-
}),
|
|
1954
|
-
deleteComment: endpoint({
|
|
1955
|
-
method: "DELETE",
|
|
1956
|
-
path: "/articles/comments/:commentId",
|
|
1957
|
-
pathParams: commentIdParam,
|
|
1958
|
-
response: NoContentSchema
|
|
1959
|
-
})
|
|
1745
|
+
list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
|
|
1746
|
+
byMember: endpoint({ method: "GET", path: "/articles/by-author/:memberId", pathParams: memberIdParam, query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
|
|
1747
|
+
my: endpoint({ method: "GET", path: "/articles/my", response: PageArticleSummaryResponseSchema }),
|
|
1748
|
+
detail: endpoint({ method: "GET", path: "/articles/:articleId", pathParams: articleIdParam, response: ArticleDetailResponseSchema }),
|
|
1749
|
+
create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
1750
|
+
like: endpoint({ method: "POST", path: "/articles/:articleId/like", pathParams: articleIdParam, response: ArticleLikeResponseSchema }),
|
|
1751
|
+
createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
1752
|
+
presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", body: UploadArticleImageRequestSchema, response: UploadArticleImageResponseSchema }),
|
|
1753
|
+
delete: endpoint({ method: "DELETE", path: "/articles/:articleId", pathParams: articleIdParam, response: NoContentSchema }),
|
|
1754
|
+
deleteComment: endpoint({ method: "DELETE", path: "/articles/comments/:commentId", pathParams: commentIdParam, response: NoContentSchema })
|
|
1960
1755
|
},
|
|
1961
1756
|
mealPlans: {
|
|
1962
|
-
create: endpoint({
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
}),
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
}),
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
}),
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
}),
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
}),
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
}),
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
body: UpdateMealPlanContextRequestSchema,
|
|
2001
|
-
response: MealPlanResponseSchema
|
|
2002
|
-
}),
|
|
2003
|
-
complete: endpoint({
|
|
2004
|
-
method: "POST",
|
|
2005
|
-
path: "/meal-plans/:mealPlanId/complete",
|
|
2006
|
-
pathParams: mealPlanIdParam,
|
|
2007
|
-
response: MealPlanResponseSchema
|
|
2008
|
-
}),
|
|
2009
|
-
cancel: endpoint({
|
|
2010
|
-
method: "POST",
|
|
2011
|
-
path: "/meal-plans/:mealPlanId/cancel",
|
|
2012
|
-
pathParams: mealPlanIdParam,
|
|
2013
|
-
response: MealPlanResponseSchema
|
|
2014
|
-
}),
|
|
2015
|
-
removeParticipant: endpoint({
|
|
2016
|
-
method: "POST",
|
|
2017
|
-
path: "/meal-plans/:mealPlanId/participants/:participantId/remove",
|
|
2018
|
-
pathParams: mealPlanParticipantIdParam,
|
|
2019
|
-
response: MealPlanResponseSchema
|
|
2020
|
-
}),
|
|
2021
|
-
recorded: endpoint({
|
|
2022
|
-
method: "POST",
|
|
2023
|
-
path: "/meal-plans/:mealPlanId/recorded",
|
|
2024
|
-
pathParams: mealPlanIdParam,
|
|
2025
|
-
response: MealPlanResponseSchema
|
|
2026
|
-
}),
|
|
2027
|
-
invite: endpoint({
|
|
2028
|
-
method: "POST",
|
|
2029
|
-
path: "/meal-plans/:mealPlanId/invites",
|
|
2030
|
-
pathParams: mealPlanIdParam,
|
|
2031
|
-
body: CreateMealPlanInviteRequestSchema,
|
|
2032
|
-
response: SendMealPlanInviteResponseSchema
|
|
2033
|
-
}),
|
|
2034
|
-
receivedInvites: endpoint({
|
|
2035
|
-
method: "GET",
|
|
2036
|
-
path: "/meal-plans/invites/received",
|
|
2037
|
-
response: MealPlanInviteListResponseSchema
|
|
2038
|
-
}),
|
|
2039
|
-
sentInvites: endpoint({
|
|
2040
|
-
method: "GET",
|
|
2041
|
-
path: "/meal-plans/invites/sent",
|
|
2042
|
-
response: MealPlanInviteListResponseSchema
|
|
2043
|
-
}),
|
|
2044
|
-
acceptInvite: endpoint({
|
|
2045
|
-
method: "POST",
|
|
2046
|
-
path: "/meal-plans/invites/:inviteId/accept",
|
|
2047
|
-
pathParams: mealPlanInviteIdParam,
|
|
2048
|
-
response: MealPlanResponseSchema
|
|
2049
|
-
}),
|
|
2050
|
-
declineInvite: endpoint({
|
|
2051
|
-
method: "POST",
|
|
2052
|
-
path: "/meal-plans/invites/:inviteId/decline",
|
|
2053
|
-
pathParams: mealPlanInviteIdParam,
|
|
2054
|
-
response: NoContentSchema
|
|
2055
|
-
}),
|
|
2056
|
-
createShareLink: endpoint({
|
|
2057
|
-
method: "POST",
|
|
2058
|
-
path: "/meal-plans/:mealPlanId/share-links",
|
|
2059
|
-
pathParams: mealPlanIdParam,
|
|
2060
|
-
body: CreateMealPlanShareLinkRequestSchema,
|
|
2061
|
-
response: MealPlanShareLinkSummarySchema
|
|
2062
|
-
}),
|
|
2063
|
-
sharePreview: endpoint({
|
|
2064
|
-
method: "GET",
|
|
2065
|
-
path: "/meal-plan-links/:token",
|
|
2066
|
-
pathParams: mealPlanShareTokenParam,
|
|
2067
|
-
response: MealPlanSharePreviewResponseSchema
|
|
2068
|
-
}),
|
|
2069
|
-
joinGuest: endpoint({
|
|
2070
|
-
method: "POST",
|
|
2071
|
-
path: "/meal-plan-links/:token/join",
|
|
2072
|
-
pathParams: mealPlanShareTokenParam,
|
|
2073
|
-
body: JoinMealPlanGuestRequestSchema,
|
|
2074
|
-
response: JoinMealPlanGuestResponseSchema
|
|
2075
|
-
}),
|
|
2076
|
-
guestSession: endpoint({
|
|
2077
|
-
method: "GET",
|
|
2078
|
-
path: "/meal-plan-links/:token/session",
|
|
2079
|
-
pathParams: mealPlanShareTokenParam,
|
|
2080
|
-
query: MealPlanGuestSessionQuerySchema,
|
|
2081
|
-
response: MealPlanGuestSessionResponseSchema
|
|
2082
|
-
}),
|
|
2083
|
-
guestChatMessages: endpoint({
|
|
2084
|
-
method: "GET",
|
|
2085
|
-
path: "/meal-plan-links/:token/chat/messages",
|
|
2086
|
-
pathParams: mealPlanShareTokenParam,
|
|
2087
|
-
query: MealPlanGuestSessionQuerySchema,
|
|
2088
|
-
response: MealPlanChatMessageListResponseSchema
|
|
2089
|
-
}),
|
|
2090
|
-
exposeNearbyFriends: endpoint({
|
|
2091
|
-
method: "POST",
|
|
2092
|
-
path: "/meal-plans/:mealPlanId/nearby-friends/expose",
|
|
2093
|
-
pathParams: mealPlanIdParam,
|
|
2094
|
-
body: ExposeMealPlanToNearbyFriendsRequestSchema,
|
|
2095
|
-
response: ExposeMealPlanToNearbyFriendsResponseSchema
|
|
2096
|
-
}),
|
|
2097
|
-
closeNearbyFriends: endpoint({
|
|
2098
|
-
method: "DELETE",
|
|
2099
|
-
path: "/meal-plans/:mealPlanId/nearby-friends/expose",
|
|
2100
|
-
pathParams: mealPlanIdParam,
|
|
2101
|
-
response: NoContentSchema
|
|
2102
|
-
}),
|
|
2103
|
-
nearbyFriendExposureEligibility: endpoint({
|
|
2104
|
-
method: "GET",
|
|
2105
|
-
path: "/meal-plans/nearby-friends/eligibility",
|
|
2106
|
-
response: NearbyFriendExposureEligibilitySchema
|
|
2107
|
-
}),
|
|
2108
|
-
nearbyFriends: endpoint({
|
|
2109
|
-
method: "GET",
|
|
2110
|
-
path: "/meal-plans/nearby-friends",
|
|
2111
|
-
response: import_zod28.z.array(NearbyFriendMealPlanSummarySchema)
|
|
2112
|
-
}),
|
|
2113
|
-
requestJoin: endpoint({
|
|
2114
|
-
method: "POST",
|
|
2115
|
-
path: "/meal-plans/:mealPlanId/join-requests",
|
|
2116
|
-
pathParams: mealPlanIdParam,
|
|
2117
|
-
body: CreateMealPlanJoinRequestSchema,
|
|
2118
|
-
response: CreatedEntityIdResponseSchema
|
|
2119
|
-
}),
|
|
2120
|
-
acceptJoinRequest: endpoint({
|
|
2121
|
-
method: "POST",
|
|
2122
|
-
path: "/meal-plans/join-requests/:requestId/accept",
|
|
2123
|
-
pathParams: mealPlanJoinRequestIdParam,
|
|
2124
|
-
response: MealPlanResponseSchema
|
|
2125
|
-
}),
|
|
2126
|
-
rejectJoinRequest: endpoint({
|
|
2127
|
-
method: "POST",
|
|
2128
|
-
path: "/meal-plans/join-requests/:requestId/reject",
|
|
2129
|
-
pathParams: mealPlanJoinRequestIdParam,
|
|
2130
|
-
response: NoContentSchema
|
|
2131
|
-
}),
|
|
2132
|
-
vote: endpoint({
|
|
2133
|
-
method: "POST",
|
|
2134
|
-
path: "/meal-plans/:mealPlanId/stages/:stageId/votes",
|
|
2135
|
-
pathParams: mealPlanDecisionStageIdParam,
|
|
2136
|
-
body: CreateMealPlanVoteRequestSchema,
|
|
2137
|
-
response: MealPlanResponseSchema
|
|
2138
|
-
}),
|
|
2139
|
-
completeStage: endpoint({
|
|
2140
|
-
method: "POST",
|
|
2141
|
-
path: "/meal-plans/:mealPlanId/stages/:stageId/complete",
|
|
2142
|
-
pathParams: mealPlanDecisionStageIdParam,
|
|
2143
|
-
body: CompleteMealPlanDecisionStageRequestSchema,
|
|
2144
|
-
response: MealPlanResponseSchema
|
|
2145
|
-
}),
|
|
2146
|
-
decisionProgress: endpoint({
|
|
2147
|
-
method: "GET",
|
|
2148
|
-
path: "/meal-plans/:mealPlanId/decision-progress",
|
|
2149
|
-
pathParams: mealPlanIdParam,
|
|
2150
|
-
response: MealPlanDecisionProgressSchema
|
|
2151
|
-
}),
|
|
2152
|
-
readyDecisionTask: endpoint({
|
|
2153
|
-
method: "POST",
|
|
2154
|
-
path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/ready",
|
|
2155
|
-
pathParams: mealPlanDecisionTaskKeyParam,
|
|
2156
|
-
body: MealPlanDecisionTaskReadyRequestSchema,
|
|
2157
|
-
response: MealPlanResponseSchema
|
|
2158
|
-
}),
|
|
2159
|
-
reopenDecisionTask: endpoint({
|
|
2160
|
-
method: "POST",
|
|
2161
|
-
path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen",
|
|
2162
|
-
pathParams: mealPlanDecisionTaskKeyParam,
|
|
2163
|
-
body: ReopenMealPlanDecisionTaskRequestSchema,
|
|
2164
|
-
response: MealPlanResponseSchema
|
|
2165
|
-
}),
|
|
2166
|
-
confirmDecisionSnapshot: endpoint({
|
|
2167
|
-
method: "POST",
|
|
2168
|
-
path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm",
|
|
2169
|
-
pathParams: mealPlanDecisionSnapshotIdParam,
|
|
2170
|
-
body: ConfirmMealPlanDecisionSnapshotRequestSchema,
|
|
2171
|
-
response: MealPlanResponseSchema
|
|
2172
|
-
}),
|
|
2173
|
-
ready: endpoint({
|
|
2174
|
-
method: "POST",
|
|
2175
|
-
path: "/meal-plans/:mealPlanId/ready",
|
|
2176
|
-
pathParams: mealPlanIdParam,
|
|
2177
|
-
response: MealPlanResponseSchema
|
|
2178
|
-
}),
|
|
2179
|
-
unready: endpoint({
|
|
2180
|
-
method: "POST",
|
|
2181
|
-
path: "/meal-plans/:mealPlanId/unready",
|
|
2182
|
-
pathParams: mealPlanIdParam,
|
|
2183
|
-
response: MealPlanResponseSchema
|
|
2184
|
-
}),
|
|
2185
|
-
createChangeRequest: endpoint({
|
|
2186
|
-
method: "POST",
|
|
2187
|
-
path: "/meal-plans/:mealPlanId/change-requests",
|
|
2188
|
-
pathParams: mealPlanIdParam,
|
|
2189
|
-
body: CreateMealPlanChangeRequestSchema,
|
|
2190
|
-
response: CreatedEntityIdResponseSchema
|
|
2191
|
-
}),
|
|
2192
|
-
acceptChangeRequest: endpoint({
|
|
2193
|
-
method: "POST",
|
|
2194
|
-
path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept",
|
|
2195
|
-
pathParams: mealPlanChangeRequestIdParam,
|
|
2196
|
-
response: MealPlanResponseSchema
|
|
2197
|
-
}),
|
|
2198
|
-
confirm: endpoint({
|
|
2199
|
-
method: "POST",
|
|
2200
|
-
path: "/meal-plans/:mealPlanId/confirm",
|
|
2201
|
-
pathParams: mealPlanIdParam,
|
|
2202
|
-
response: MealPlanResponseSchema
|
|
2203
|
-
})
|
|
1757
|
+
create: endpoint({ method: "POST", path: "/meal-plans", body: CreateMealPlanRequestSchema, response: CreateMealPlanResponseSchema }),
|
|
1758
|
+
my: endpoint({ method: "GET", path: "/meal-plans/me", response: MyMealPlanListResponseSchema }),
|
|
1759
|
+
homeDashboard: endpoint({ method: "GET", path: "/meal-plans/home-dashboard", response: HomeMealPlanDashboardResponseSchema }),
|
|
1760
|
+
map: endpoint({ method: "GET", path: "/meal-plans/map", query: MealMapQuerySchema, response: MealMapResponseSchema }),
|
|
1761
|
+
detail: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
1762
|
+
chatMessages: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/chat/messages", pathParams: mealPlanIdParam, response: MealPlanChatMessageListResponseSchema }),
|
|
1763
|
+
updateContext: endpoint({ method: "PATCH", path: "/meal-plans/:mealPlanId/context", pathParams: mealPlanIdParam, body: UpdateMealPlanContextRequestSchema, response: MealPlanResponseSchema }),
|
|
1764
|
+
complete: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/complete", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
1765
|
+
cancel: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/cancel", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
1766
|
+
removeParticipant: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/participants/:participantId/remove", pathParams: mealPlanParticipantIdParam, response: MealPlanResponseSchema }),
|
|
1767
|
+
recorded: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/recorded", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
1768
|
+
invite: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/invites", pathParams: mealPlanIdParam, body: CreateMealPlanInviteRequestSchema, response: SendMealPlanInviteResponseSchema }),
|
|
1769
|
+
receivedInvites: endpoint({ method: "GET", path: "/meal-plans/invites/received", response: MealPlanInviteListResponseSchema }),
|
|
1770
|
+
sentInvites: endpoint({ method: "GET", path: "/meal-plans/invites/sent", response: MealPlanInviteListResponseSchema }),
|
|
1771
|
+
acceptInvite: endpoint({ method: "POST", path: "/meal-plans/invites/:inviteId/accept", pathParams: mealPlanInviteIdParam, response: MealPlanResponseSchema }),
|
|
1772
|
+
declineInvite: endpoint({ method: "POST", path: "/meal-plans/invites/:inviteId/decline", pathParams: mealPlanInviteIdParam, response: NoContentSchema }),
|
|
1773
|
+
createShareLink: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/share-links", pathParams: mealPlanIdParam, body: CreateMealPlanShareLinkRequestSchema, response: MealPlanShareLinkSummarySchema }),
|
|
1774
|
+
sharePreview: endpoint({ method: "GET", path: "/meal-plan-links/:token", pathParams: mealPlanShareTokenParam, response: MealPlanSharePreviewResponseSchema }),
|
|
1775
|
+
joinGuest: endpoint({ method: "POST", path: "/meal-plan-links/:token/join", pathParams: mealPlanShareTokenParam, body: JoinMealPlanGuestRequestSchema, response: JoinMealPlanGuestResponseSchema }),
|
|
1776
|
+
guestSession: endpoint({ method: "GET", path: "/meal-plan-links/:token/session", pathParams: mealPlanShareTokenParam, query: MealPlanGuestSessionQuerySchema, response: MealPlanGuestSessionResponseSchema }),
|
|
1777
|
+
guestChatMessages: endpoint({ method: "GET", path: "/meal-plan-links/:token/chat/messages", pathParams: mealPlanShareTokenParam, query: MealPlanGuestSessionQuerySchema, response: MealPlanChatMessageListResponseSchema }),
|
|
1778
|
+
exposeNearbyFriends: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, body: ExposeMealPlanToNearbyFriendsRequestSchema, response: ExposeMealPlanToNearbyFriendsResponseSchema }),
|
|
1779
|
+
closeNearbyFriends: endpoint({ method: "DELETE", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, response: NoContentSchema }),
|
|
1780
|
+
nearbyFriendExposureEligibility: endpoint({ method: "GET", path: "/meal-plans/nearby-friends/eligibility", response: NearbyFriendExposureEligibilitySchema }),
|
|
1781
|
+
nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod29.z.array(NearbyFriendMealPlanSummarySchema) }),
|
|
1782
|
+
requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
1783
|
+
acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
|
|
1784
|
+
rejectJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/reject", pathParams: mealPlanJoinRequestIdParam, response: NoContentSchema }),
|
|
1785
|
+
vote: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/votes", pathParams: mealPlanDecisionStageIdParam, body: CreateMealPlanVoteRequestSchema, response: MealPlanResponseSchema }),
|
|
1786
|
+
completeStage: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/complete", pathParams: mealPlanDecisionStageIdParam, body: CompleteMealPlanDecisionStageRequestSchema, response: MealPlanResponseSchema }),
|
|
1787
|
+
decisionProgress: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/decision-progress", pathParams: mealPlanIdParam, response: MealPlanDecisionProgressSchema }),
|
|
1788
|
+
reopenDecisionTask: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen", pathParams: mealPlanDecisionTaskKeyParam, body: ReopenMealPlanDecisionTaskRequestSchema, response: MealPlanResponseSchema }),
|
|
1789
|
+
confirmDecisionSnapshot: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm", pathParams: mealPlanDecisionSnapshotIdParam, body: ConfirmMealPlanDecisionSnapshotRequestSchema, response: MealPlanResponseSchema }),
|
|
1790
|
+
ready: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/ready", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
1791
|
+
unready: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/unready", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
|
|
1792
|
+
createChangeRequest: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/change-requests", pathParams: mealPlanIdParam, body: CreateMealPlanChangeRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
1793
|
+
acceptChangeRequest: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept", pathParams: mealPlanChangeRequestIdParam, response: MealPlanResponseSchema }),
|
|
1794
|
+
confirm: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/confirm", pathParams: mealPlanIdParam, response: MealPlanResponseSchema })
|
|
2204
1795
|
},
|
|
2205
1796
|
mealGroups: {
|
|
2206
|
-
create: endpoint({
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
}),
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
response: import_zod28.z.array(MealGroupResponseSchema)
|
|
2216
|
-
}),
|
|
2217
|
-
detail: endpoint({
|
|
2218
|
-
method: "GET",
|
|
2219
|
-
path: "/meal-groups/:mealGroupId",
|
|
2220
|
-
pathParams: mealGroupIdParam,
|
|
2221
|
-
response: MealGroupResponseSchema
|
|
2222
|
-
}),
|
|
2223
|
-
startMealPlan: endpoint({
|
|
2224
|
-
method: "POST",
|
|
2225
|
-
path: "/meal-groups/:mealGroupId/meal-plans",
|
|
2226
|
-
pathParams: mealGroupIdParam,
|
|
2227
|
-
body: StartMealPlanFromGroupRequestSchema,
|
|
2228
|
-
response: CreateMealPlanResponseSchema
|
|
2229
|
-
}),
|
|
2230
|
-
history: endpoint({
|
|
2231
|
-
method: "GET",
|
|
2232
|
-
path: "/meal-groups/:mealGroupId/history",
|
|
2233
|
-
pathParams: mealGroupIdParam,
|
|
2234
|
-
response: MealGroupHistoryResponseSchema
|
|
2235
|
-
}),
|
|
2236
|
-
preferences: endpoint({
|
|
2237
|
-
method: "GET",
|
|
2238
|
-
path: "/meal-groups/:mealGroupId/preferences",
|
|
2239
|
-
pathParams: mealGroupIdParam,
|
|
2240
|
-
response: MealGroupPreferenceSummarySchema
|
|
2241
|
-
}),
|
|
2242
|
-
addMember: endpoint({
|
|
2243
|
-
method: "POST",
|
|
2244
|
-
path: "/meal-groups/:mealGroupId/members",
|
|
2245
|
-
pathParams: mealGroupIdParam,
|
|
2246
|
-
body: AddMealGroupMemberRequestSchema,
|
|
2247
|
-
response: MealGroupResponseSchema
|
|
2248
|
-
}),
|
|
2249
|
-
updateMemberRole: endpoint({
|
|
2250
|
-
method: "PATCH",
|
|
2251
|
-
path: "/meal-groups/:mealGroupId/members/:memberId/role",
|
|
2252
|
-
pathParams: mealGroupMemberIdParam,
|
|
2253
|
-
body: UpdateMealGroupMemberRoleRequestSchema,
|
|
2254
|
-
response: MealGroupResponseSchema
|
|
2255
|
-
}),
|
|
2256
|
-
removeMember: endpoint({
|
|
2257
|
-
method: "DELETE",
|
|
2258
|
-
path: "/meal-groups/:mealGroupId/members/:memberId",
|
|
2259
|
-
pathParams: mealGroupMemberIdParam,
|
|
2260
|
-
response: MealGroupResponseSchema
|
|
2261
|
-
})
|
|
1797
|
+
create: endpoint({ method: "POST", path: "/meal-groups", body: CreateMealGroupRequestSchema, response: MealGroupResponseSchema }),
|
|
1798
|
+
list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod29.z.array(MealGroupResponseSchema) }),
|
|
1799
|
+
detail: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId", pathParams: mealGroupIdParam, response: MealGroupResponseSchema }),
|
|
1800
|
+
startMealPlan: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/meal-plans", pathParams: mealGroupIdParam, body: StartMealPlanFromGroupRequestSchema, response: CreateMealPlanResponseSchema }),
|
|
1801
|
+
history: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/history", pathParams: mealGroupIdParam, response: MealGroupHistoryResponseSchema }),
|
|
1802
|
+
preferences: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/preferences", pathParams: mealGroupIdParam, response: MealGroupPreferenceSummarySchema }),
|
|
1803
|
+
addMember: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/members", pathParams: mealGroupIdParam, body: AddMealGroupMemberRequestSchema, response: MealGroupResponseSchema }),
|
|
1804
|
+
updateMemberRole: endpoint({ method: "PATCH", path: "/meal-groups/:mealGroupId/members/:memberId/role", pathParams: mealGroupMemberIdParam, body: UpdateMealGroupMemberRoleRequestSchema, response: MealGroupResponseSchema }),
|
|
1805
|
+
removeMember: endpoint({ method: "DELETE", path: "/meal-groups/:mealGroupId/members/:memberId", pathParams: mealGroupMemberIdParam, response: MealGroupResponseSchema })
|
|
2262
1806
|
},
|
|
2263
1807
|
friends: {
|
|
2264
|
-
list: endpoint({
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
}),
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
}),
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
path: "/friends/search",
|
|
2277
|
-
query: MemberSearchQuerySchema,
|
|
2278
|
-
response: MemberSerachResponseSchema
|
|
2279
|
-
}),
|
|
2280
|
-
incomingRequest: endpoint({
|
|
2281
|
-
method: "GET",
|
|
2282
|
-
path: "/friends/requests/incoming",
|
|
2283
|
-
response: import_zod28.z.array(FriendRequestItemResponseSchema)
|
|
2284
|
-
}),
|
|
2285
|
-
outgoingRequest: endpoint({
|
|
2286
|
-
method: "GET",
|
|
2287
|
-
path: "/friends/requests/outgoing",
|
|
2288
|
-
response: import_zod28.z.array(FriendRequestItemResponseSchema)
|
|
2289
|
-
}),
|
|
2290
|
-
sendRequest: endpoint({
|
|
2291
|
-
method: "POST",
|
|
2292
|
-
path: "/friends/requests/:memberId",
|
|
2293
|
-
pathParams: memberIdParam,
|
|
2294
|
-
response: NoContentSchema
|
|
2295
|
-
}),
|
|
2296
|
-
acceptRequest: endpoint({
|
|
2297
|
-
method: "POST",
|
|
2298
|
-
path: "/friends/requests/:requestId/accept",
|
|
2299
|
-
pathParams: friendRequestIdParam,
|
|
2300
|
-
response: NoContentSchema
|
|
2301
|
-
}),
|
|
2302
|
-
rejectRequest: endpoint({
|
|
2303
|
-
method: "POST",
|
|
2304
|
-
path: "/friends/requests/:requestId/reject",
|
|
2305
|
-
pathParams: friendRequestIdParam,
|
|
2306
|
-
response: NoContentSchema
|
|
2307
|
-
}),
|
|
2308
|
-
block: endpoint({
|
|
2309
|
-
method: "POST",
|
|
2310
|
-
path: "/friends/blocks/:memberId",
|
|
2311
|
-
pathParams: memberIdParam,
|
|
2312
|
-
response: NoContentSchema
|
|
2313
|
-
}),
|
|
2314
|
-
cancelRequest: endpoint({
|
|
2315
|
-
method: "DELETE",
|
|
2316
|
-
path: "/friends/requests/:requestId",
|
|
2317
|
-
pathParams: friendRequestIdParam,
|
|
2318
|
-
response: NoContentSchema
|
|
2319
|
-
}),
|
|
2320
|
-
unblock: endpoint({
|
|
2321
|
-
method: "DELETE",
|
|
2322
|
-
path: "/friends/blocks/:memberId",
|
|
2323
|
-
pathParams: memberIdParam,
|
|
2324
|
-
response: NoContentSchema
|
|
2325
|
-
}),
|
|
2326
|
-
unfriend: endpoint({
|
|
2327
|
-
method: "DELETE",
|
|
2328
|
-
path: "/friends/:memberId",
|
|
2329
|
-
pathParams: memberIdParam,
|
|
2330
|
-
response: NoContentSchema
|
|
2331
|
-
})
|
|
1808
|
+
list: endpoint({ method: "GET", path: "/friends", response: import_zod29.z.array(FriendListItemResponseSchema) }),
|
|
1809
|
+
blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod29.z.array(FriendBlockItemResponseSchema) }),
|
|
1810
|
+
search: endpoint({ method: "GET", path: "/friends/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
|
|
1811
|
+
incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
|
|
1812
|
+
outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
|
|
1813
|
+
sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
|
|
1814
|
+
acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
|
|
1815
|
+
rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
|
|
1816
|
+
block: endpoint({ method: "POST", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
|
|
1817
|
+
cancelRequest: endpoint({ method: "DELETE", path: "/friends/requests/:requestId", pathParams: friendRequestIdParam, response: NoContentSchema }),
|
|
1818
|
+
unblock: endpoint({ method: "DELETE", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
|
|
1819
|
+
unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
|
|
2332
1820
|
},
|
|
2333
1821
|
coupons: {
|
|
2334
|
-
list: endpoint({
|
|
2335
|
-
|
|
2336
|
-
path: "/coupons",
|
|
2337
|
-
response: import_zod28.z.array(CouponResponseSchema)
|
|
2338
|
-
}),
|
|
2339
|
-
use: endpoint({
|
|
2340
|
-
method: "POST",
|
|
2341
|
-
path: "/coupons/:couponId/use",
|
|
2342
|
-
pathParams: couponIdParam,
|
|
2343
|
-
response: NoContentSchema
|
|
2344
|
-
})
|
|
1822
|
+
list: endpoint({ method: "GET", path: "/coupons", response: import_zod29.z.array(CouponResponseSchema) }),
|
|
1823
|
+
use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
|
|
2345
1824
|
},
|
|
2346
1825
|
challenges: {
|
|
2347
|
-
status: endpoint({
|
|
2348
|
-
|
|
2349
|
-
path: "/challenges/status",
|
|
2350
|
-
response: ChallengeStatusResponseSchema
|
|
2351
|
-
}),
|
|
2352
|
-
claimReward: endpoint({
|
|
2353
|
-
method: "POST",
|
|
2354
|
-
path: "/challenges/rewards",
|
|
2355
|
-
body: ClaimChallengeRewardRequestSchema,
|
|
2356
|
-
response: NoContentSchema
|
|
2357
|
-
})
|
|
1826
|
+
status: endpoint({ method: "GET", path: "/challenges/status", response: ChallengeStatusResponseSchema }),
|
|
1827
|
+
claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
|
|
2358
1828
|
},
|
|
2359
1829
|
referrals: {
|
|
2360
|
-
list: endpoint({
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
response: import_zod28.z.array(ReferralItemResponseSchema)
|
|
2364
|
-
}),
|
|
2365
|
-
create: endpoint({
|
|
2366
|
-
method: "POST",
|
|
2367
|
-
path: "/referrals",
|
|
2368
|
-
response: ReferralCreateResponseSchema
|
|
2369
|
-
}),
|
|
2370
|
-
redeem: endpoint({
|
|
2371
|
-
method: "POST",
|
|
2372
|
-
path: "/referrals/redeem",
|
|
2373
|
-
body: RedeemReferralRequestSchema,
|
|
2374
|
-
response: NoContentSchema
|
|
2375
|
-
})
|
|
1830
|
+
list: endpoint({ method: "GET", path: "/referrals", response: import_zod29.z.array(ReferralItemResponseSchema) }),
|
|
1831
|
+
create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
|
|
1832
|
+
redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
|
|
2376
1833
|
},
|
|
2377
1834
|
notifications: {
|
|
2378
|
-
list: endpoint({
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
response: import_zod28.z.array(MealPlanNotificationSchema)
|
|
2382
|
-
}),
|
|
2383
|
-
markRead: endpoint({
|
|
2384
|
-
method: "PATCH",
|
|
2385
|
-
path: "/notifications/:notificationId/read",
|
|
2386
|
-
pathParams: notificationIdParam,
|
|
2387
|
-
response: MealPlanNotificationSchema
|
|
2388
|
-
}),
|
|
2389
|
-
delete: endpoint({
|
|
2390
|
-
method: "DELETE",
|
|
2391
|
-
path: "/notifications/:notificationId",
|
|
2392
|
-
pathParams: notificationIdParam,
|
|
2393
|
-
response: NoContentSchema
|
|
2394
|
-
})
|
|
1835
|
+
list: endpoint({ method: "GET", path: "/notifications", response: import_zod29.z.array(MealPlanNotificationSchema) }),
|
|
1836
|
+
markRead: endpoint({ method: "PATCH", path: "/notifications/:notificationId/read", pathParams: notificationIdParam, response: MealPlanNotificationSchema }),
|
|
1837
|
+
delete: endpoint({ method: "DELETE", path: "/notifications/:notificationId", pathParams: notificationIdParam, response: NoContentSchema })
|
|
2395
1838
|
},
|
|
2396
1839
|
pushTokens: {
|
|
2397
|
-
list: endpoint({
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
response: import_zod28.z.array(PushTokenResponseSchema)
|
|
2401
|
-
}),
|
|
2402
|
-
register: endpoint({
|
|
2403
|
-
method: "POST",
|
|
2404
|
-
path: "/push-tokens",
|
|
2405
|
-
body: RegisterPushTokenRequestSchema,
|
|
2406
|
-
response: PushTokenResponseSchema
|
|
2407
|
-
}),
|
|
2408
|
-
revoke: endpoint({
|
|
2409
|
-
method: "POST",
|
|
2410
|
-
path: "/push-tokens/revoke",
|
|
2411
|
-
body: RevokePushTokenRequestSchema,
|
|
2412
|
-
response: NoContentSchema
|
|
2413
|
-
})
|
|
1840
|
+
list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod29.z.array(PushTokenResponseSchema) }),
|
|
1841
|
+
register: endpoint({ method: "POST", path: "/push-tokens", body: RegisterPushTokenRequestSchema, response: PushTokenResponseSchema }),
|
|
1842
|
+
revoke: endpoint({ method: "POST", path: "/push-tokens/revoke", body: RevokePushTokenRequestSchema, response: NoContentSchema })
|
|
2414
1843
|
},
|
|
2415
1844
|
liveActivities: {
|
|
2416
|
-
listMealPlanSessions: endpoint({
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
pathParams: mealPlanIdParam,
|
|
2420
|
-
response: MealPlanLiveActivitySessionListResponseSchema
|
|
2421
|
-
}),
|
|
2422
|
-
registerMealPlanSession: endpoint({
|
|
2423
|
-
method: "POST",
|
|
2424
|
-
path: "/meal-plans/:mealPlanId/live-activity/sessions",
|
|
2425
|
-
pathParams: mealPlanIdParam,
|
|
2426
|
-
body: RegisterMealPlanLiveActivitySessionRequestSchema,
|
|
2427
|
-
response: MealPlanLiveActivitySessionResponseSchema
|
|
2428
|
-
}),
|
|
2429
|
-
endMealPlanSessions: endpoint({
|
|
2430
|
-
method: "POST",
|
|
2431
|
-
path: "/meal-plans/:mealPlanId/live-activity/end",
|
|
2432
|
-
pathParams: mealPlanIdParam,
|
|
2433
|
-
body: EndMealPlanLiveActivitySessionRequestSchema,
|
|
2434
|
-
response: NoContentSchema
|
|
2435
|
-
})
|
|
1845
|
+
listMealPlanSessions: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/live-activity", pathParams: mealPlanIdParam, response: MealPlanLiveActivitySessionListResponseSchema }),
|
|
1846
|
+
registerMealPlanSession: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/sessions", pathParams: mealPlanIdParam, body: RegisterMealPlanLiveActivitySessionRequestSchema, response: MealPlanLiveActivitySessionResponseSchema }),
|
|
1847
|
+
endMealPlanSessions: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/end", pathParams: mealPlanIdParam, body: EndMealPlanLiveActivitySessionRequestSchema, response: NoContentSchema })
|
|
2436
1848
|
},
|
|
2437
1849
|
sse: {
|
|
2438
|
-
notifications: endpoint({
|
|
2439
|
-
method: "GET",
|
|
2440
|
-
path: "/sse/notifications",
|
|
2441
|
-
query: sseTokenQuery,
|
|
2442
|
-
response: import_zod28.z.any()
|
|
2443
|
-
})
|
|
1850
|
+
notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod29.z.any() })
|
|
2444
1851
|
},
|
|
2445
1852
|
health: {
|
|
2446
|
-
healthCheck: endpoint({
|
|
2447
|
-
method: "GET",
|
|
2448
|
-
path: "/",
|
|
2449
|
-
response: import_zod28.z.string()
|
|
2450
|
-
})
|
|
1853
|
+
healthCheck: endpoint({ method: "GET", path: "/", response: import_zod29.z.string() })
|
|
2451
1854
|
}
|
|
2452
1855
|
};
|
|
2453
1856
|
|
|
@@ -2459,24 +1862,24 @@ var makeApiResponseSchema = ApiResponseSchema;
|
|
|
2459
1862
|
var makeApiSuccessSchema = ApiSuccessSchema;
|
|
2460
1863
|
|
|
2461
1864
|
// src/domain/common/contracts/id.ts
|
|
2462
|
-
var toMemberId =
|
|
2463
|
-
var toArticleId =
|
|
2464
|
-
var toMealPlanId =
|
|
2465
|
-
var toMealPlanInviteId =
|
|
2466
|
-
var toMealPlanJoinRequestId =
|
|
2467
|
-
var toMealPlanNearbyFriendExposureBatchId =
|
|
2468
|
-
var toMealPlanChangeRequestId =
|
|
2469
|
-
var toMealPlanShareLinkId =
|
|
2470
|
-
var toMealPlanShareLinkToken =
|
|
2471
|
-
var toMealPlanChatRoomId =
|
|
2472
|
-
var toMealPlanChatMessageId =
|
|
2473
|
-
var toMealGroupId =
|
|
2474
|
-
var toRestaurantId =
|
|
2475
|
-
var toCommentId =
|
|
2476
|
-
var toCouponId =
|
|
2477
|
-
var toSubscriptionId =
|
|
2478
|
-
var toFriendRequestId =
|
|
2479
|
-
var toReferralCode =
|
|
1865
|
+
var toMemberId = (value) => MemberIdSchema.parse(value);
|
|
1866
|
+
var toArticleId = (value) => ArticleIdSchema.parse(value);
|
|
1867
|
+
var toMealPlanId = (value) => MealPlanIdSchema.parse(value);
|
|
1868
|
+
var toMealPlanInviteId = (value) => MealPlanInviteIdSchema.parse(value);
|
|
1869
|
+
var toMealPlanJoinRequestId = (value) => MealPlanJoinRequestIdSchema.parse(value);
|
|
1870
|
+
var toMealPlanNearbyFriendExposureBatchId = (value) => MealPlanNearbyFriendExposureBatchIdSchema.parse(value);
|
|
1871
|
+
var toMealPlanChangeRequestId = (value) => MealPlanChangeRequestIdSchema.parse(value);
|
|
1872
|
+
var toMealPlanShareLinkId = (value) => MealPlanShareLinkIdSchema.parse(value);
|
|
1873
|
+
var toMealPlanShareLinkToken = (value) => MealPlanShareLinkTokenSchema.parse(value);
|
|
1874
|
+
var toMealPlanChatRoomId = (value) => MealPlanChatRoomIdSchema.parse(value);
|
|
1875
|
+
var toMealPlanChatMessageId = (value) => MealPlanChatMessageIdSchema.parse(value);
|
|
1876
|
+
var toMealGroupId = (value) => MealGroupIdSchema.parse(value);
|
|
1877
|
+
var toRestaurantId = (value) => RestaurantIdSchema.parse(value);
|
|
1878
|
+
var toCommentId = (value) => CommentIdSchema.parse(value);
|
|
1879
|
+
var toCouponId = (value) => CouponIdSchema.parse(value);
|
|
1880
|
+
var toSubscriptionId = (value) => SubscriptionIdSchema.parse(value);
|
|
1881
|
+
var toFriendRequestId = (value) => FriendRequestIdSchema.parse(value);
|
|
1882
|
+
var toReferralCode = (value) => ReferralCodeSchema.parse(value);
|
|
2480
1883
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2481
1884
|
0 && (module.exports = {
|
|
2482
1885
|
ApiFailureSchema,
|