@kimdaegyu/babmukdang-shared 1.1.11 → 2.0.2
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-3BLXZW4U.js +338 -0
- package/dist/{chunk-AI2YMBJX.js → chunk-65DWKLP6.js} +18 -9
- package/dist/{chunk-H77ISYYC.js → chunk-6R5CCY5Q.js} +22 -8
- package/dist/{chunk-4E5E3PFW.js → chunk-DRCY5UNQ.js} +20 -7
- package/dist/chunk-EX7S5FI5.js +91 -0
- package/dist/{chunk-HRM3FQPL.js → chunk-EYZU5HPG.js} +4 -1
- package/dist/{chunk-OJVXYCSH.js → chunk-G7TITUHT.js} +1 -1
- package/dist/chunk-GESEM4IA.js +122 -0
- package/dist/chunk-IPANLE7B.js +632 -0
- package/dist/chunk-KREAZLLH.js +1062 -0
- package/dist/{chunk-K3CZKI2F.js → chunk-P3MYMK34.js} +24 -13
- package/dist/chunk-Q4BPFDVB.js +171 -0
- package/dist/{chunk-W4C7XHTX.js → chunk-QUAG5LF5.js} +13 -6
- package/dist/chunk-TIOX7OHA.js +863 -0
- package/dist/{chunk-GTVEQYJW.js → chunk-TOXRHSD6.js} +1 -1
- package/dist/chunk-YV734GYZ.js +165 -0
- package/dist/domain/article/index.cjs +107 -15
- package/dist/domain/article/index.d.cts +79 -796
- package/dist/domain/article/index.d.ts +79 -796
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +88 -9
- package/dist/domain/auth/index.d.cts +6 -46
- package/dist/domain/auth/index.d.ts +6 -46
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +2100 -395
- package/dist/domain/common/index.d.cts +212 -3037
- package/dist/domain/common/index.d.ts +212 -3037
- package/dist/domain/common/index.js +65 -31
- package/dist/domain/food/index.cjs +248 -0
- package/dist/domain/food/index.d.cts +321 -0
- package/dist/domain/food/index.d.ts +321 -0
- package/dist/domain/food/index.js +44 -0
- package/dist/domain/friend/index.cjs +108 -12
- package/dist/domain/friend/index.d.cts +39 -98
- package/dist/domain/friend/index.d.ts +39 -98
- package/dist/domain/friend/index.js +6 -4
- package/dist/domain/index.cjs +2736 -522
- package/dist/domain/index.d.cts +383 -123
- package/dist/domain/index.d.ts +383 -123
- package/dist/domain/index.js +429 -140
- package/dist/domain/live-activity/index.cjs +1061 -0
- package/dist/domain/live-activity/index.d.cts +177 -0
- package/dist/domain/live-activity/index.d.ts +177 -0
- package/dist/domain/live-activity/index.js +27 -0
- package/dist/domain/meal/index.cjs +101 -12
- package/dist/domain/meal/index.d.cts +21 -40
- package/dist/domain/meal/index.d.ts +21 -40
- package/dist/domain/meal/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +1504 -0
- package/dist/domain/meal-plan/index.d.cts +4424 -0
- package/dist/domain/meal-plan/index.d.ts +4424 -0
- package/dist/domain/meal-plan/index.js +256 -0
- package/dist/domain/member/index.cjs +114 -9
- package/dist/domain/member/index.d.cts +263 -273
- package/dist/domain/member/index.d.ts +263 -273
- package/dist/domain/member/index.js +26 -2
- package/dist/domain/promotion/index.cjs +26 -8
- package/dist/domain/promotion/index.d.cts +35 -112
- package/dist/domain/promotion/index.d.ts +35 -112
- package/dist/domain/promotion/index.js +3 -3
- package/dist/domain/push/index.cjs +1004 -0
- package/dist/domain/push/index.d.cts +169 -0
- package/dist/domain/push/index.d.ts +169 -0
- package/dist/domain/push/index.js +35 -0
- package/dist/domain/restaurant/index.cjs +10 -4
- package/dist/domain/restaurant/index.d.cts +27 -1
- package/dist/domain/restaurant/index.d.ts +27 -1
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +2535 -464
- package/dist/index.d.cts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +16 -15
- package/package.json +52 -55
- package/dist/chunk-PFSZSKD5.js +0 -0
- package/dist/chunk-PQMEXOPZ.js +0 -232
- package/dist/chunk-W4TUW2GY.js +0 -40
- package/dist/chunk-WNYCCQM4.js +0 -342
- package/dist/chunk-YGFAVC5N.js +0 -34
- package/dist/chunk-YM7YU7IR.js +0 -319
- package/dist/chunk-ZH7D7B2Y.js +0 -78
- package/dist/domain/invitation/index.cjs +0 -82
- package/dist/domain/invitation/index.d.cts +0 -64
- package/dist/domain/invitation/index.d.ts +0 -64
- package/dist/domain/invitation/index.js +0 -13
- package/dist/domain/plan/index.cjs +0 -327
- package/dist/domain/plan/index.d.cts +0 -178
- package/dist/domain/plan/index.d.ts +0 -178
- package/dist/domain/plan/index.js +0 -18
- package/dist/domain/recruit/index.cjs +0 -189
- package/dist/domain/recruit/index.d.cts +0 -214
- package/dist/domain/recruit/index.d.ts +0 -214
- package/dist/domain/recruit/index.js +0 -30
- package/dist/domain/room/index.cjs +0 -401
- package/dist/domain/room/index.d.cts +0 -2643
- package/dist/domain/room/index.d.ts +0 -2643
- package/dist/domain/room/index.js +0 -82
- package/dist/id-dAYxfjZn.d.cts +0 -64
- package/dist/id-dAYxfjZn.d.ts +0 -64
- package/dist/restaurant.schema-CuEcX3S3.d.cts +0 -78
- package/dist/restaurant.schema-CuEcX3S3.d.ts +0 -78
|
@@ -0,0 +1,1061 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/domain/live-activity/index.ts
|
|
31
|
+
var live_activity_exports = {};
|
|
32
|
+
__export(live_activity_exports, {
|
|
33
|
+
EndMealPlanLiveActivitySessionRequestSchema: () => EndMealPlanLiveActivitySessionRequestSchema,
|
|
34
|
+
MealPlanLiveActivityPlatformSchema: () => MealPlanLiveActivityPlatformSchema,
|
|
35
|
+
MealPlanLiveActivitySessionListResponseSchema: () => MealPlanLiveActivitySessionListResponseSchema,
|
|
36
|
+
MealPlanLiveActivitySessionResponseSchema: () => MealPlanLiveActivitySessionResponseSchema,
|
|
37
|
+
MealPlanLiveActivitySessionStatusSchema: () => MealPlanLiveActivitySessionStatusSchema,
|
|
38
|
+
MealPlanLiveActivityStateSchema: () => MealPlanLiveActivityStateSchema,
|
|
39
|
+
MealPlanLiveActivityUpdateStatusSchema: () => MealPlanLiveActivityUpdateStatusSchema,
|
|
40
|
+
RegisterMealPlanLiveActivitySessionRequestSchema: () => RegisterMealPlanLiveActivitySessionRequestSchema
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(live_activity_exports);
|
|
43
|
+
|
|
44
|
+
// src/domain/live-activity/live-activity.schema.ts
|
|
45
|
+
var import_zod13 = require("zod");
|
|
46
|
+
|
|
47
|
+
// src/domain/common/schema/date.schema.ts
|
|
48
|
+
var import_zod = require("zod");
|
|
49
|
+
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
50
|
+
var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
51
|
+
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
52
|
+
offset: true,
|
|
53
|
+
message: "Expected ISO datetime string"
|
|
54
|
+
});
|
|
55
|
+
var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
56
|
+
|
|
57
|
+
// src/domain/common/schema/id.schema.ts
|
|
58
|
+
var import_zod2 = require("zod");
|
|
59
|
+
var PositiveIntIdSchema = import_zod2.z.number().int().positive();
|
|
60
|
+
var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
|
|
61
|
+
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
62
|
+
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
63
|
+
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
64
|
+
var MealPlanIdSchema = import_zod2.z.string().uuid().brand();
|
|
65
|
+
var MealPlanInviteIdSchema = import_zod2.z.string().uuid().brand();
|
|
66
|
+
var MealPlanJoinRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
67
|
+
var MealPlanNearbyFriendExposureBatchIdSchema = import_zod2.z.string().uuid().brand();
|
|
68
|
+
var MealPlanChangeRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
69
|
+
var MealPlanShareLinkIdSchema = import_zod2.z.string().uuid().brand();
|
|
70
|
+
var MealPlanShareLinkTokenSchema = import_zod2.z.string().min(8).max(128).brand();
|
|
71
|
+
var MealPlanChatRoomIdSchema = import_zod2.z.string().uuid().brand();
|
|
72
|
+
var MealPlanChatMessageIdSchema = import_zod2.z.string().uuid().brand();
|
|
73
|
+
var MealGroupIdSchema = import_zod2.z.string().uuid().brand();
|
|
74
|
+
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
75
|
+
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
76
|
+
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
77
|
+
var FriendRequestIdSchema = PositiveIntIdSchema.brand();
|
|
78
|
+
var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
|
|
79
|
+
var FoodCodeSchema = NonEmptyStringIdSchema.brand();
|
|
80
|
+
var FoodLabelSchema = NonEmptyStringIdSchema.brand();
|
|
81
|
+
var FoodSchema = import_zod2.z.object({
|
|
82
|
+
code: FoodCodeSchema,
|
|
83
|
+
label: FoodLabelSchema
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// src/domain/meal-plan/meal-plan.schema.ts
|
|
87
|
+
var import_zod11 = require("zod");
|
|
88
|
+
|
|
89
|
+
// src/domain/member/member.schema.ts
|
|
90
|
+
var import_zod4 = require("zod");
|
|
91
|
+
|
|
92
|
+
// src/domain/common/contracts/upload.ts
|
|
93
|
+
var import_zod3 = __toESM(require("zod"), 1);
|
|
94
|
+
var UploadPresignImageResponseSchema = import_zod3.default.object({
|
|
95
|
+
key: import_zod3.default.string(),
|
|
96
|
+
putUrl: import_zod3.default.string().url(),
|
|
97
|
+
cdnUrl: import_zod3.default.string().url()
|
|
98
|
+
});
|
|
99
|
+
var UploadPresignImageRequestSchema = import_zod3.default.object({
|
|
100
|
+
contentType: import_zod3.default.string()
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
// src/domain/member/member.schema.ts
|
|
104
|
+
var MemberRoleSchema = import_zod4.z.enum([
|
|
105
|
+
"USER",
|
|
106
|
+
"ADMIN"
|
|
107
|
+
]);
|
|
108
|
+
var LocationConsentStatusSchema = import_zod4.z.enum([
|
|
109
|
+
"UNKNOWN",
|
|
110
|
+
"GRANTED",
|
|
111
|
+
"DENIED"
|
|
112
|
+
]);
|
|
113
|
+
var OnboardingStatusSchema = import_zod4.z.enum([
|
|
114
|
+
"REQUIRED",
|
|
115
|
+
"COMPLETED"
|
|
116
|
+
]);
|
|
117
|
+
var PermissionKindSchema = import_zod4.z.enum([
|
|
118
|
+
"LOCATION",
|
|
119
|
+
"NOTIFICATION",
|
|
120
|
+
"CAMERA"
|
|
121
|
+
]);
|
|
122
|
+
var PermissionStatusSchema = import_zod4.z.enum([
|
|
123
|
+
"UNKNOWN",
|
|
124
|
+
"PROMPT",
|
|
125
|
+
"GRANTED",
|
|
126
|
+
"DENIED",
|
|
127
|
+
"LIMITED",
|
|
128
|
+
"UNSUPPORTED"
|
|
129
|
+
]);
|
|
130
|
+
var PermissionPlatformSchema = import_zod4.z.enum([
|
|
131
|
+
"WEB",
|
|
132
|
+
"IOS",
|
|
133
|
+
"ANDROID",
|
|
134
|
+
"UNKNOWN"
|
|
135
|
+
]);
|
|
136
|
+
var DevicePermissionSnapshotSchema = import_zod4.z.object({
|
|
137
|
+
kind: PermissionKindSchema,
|
|
138
|
+
status: PermissionStatusSchema,
|
|
139
|
+
platform: PermissionPlatformSchema.default("UNKNOWN"),
|
|
140
|
+
canAskAgain: import_zod4.z.boolean().optional(),
|
|
141
|
+
checkedAt: import_zod4.z.string().datetime()
|
|
142
|
+
});
|
|
143
|
+
var MemberLocationSchema = import_zod4.z.object({
|
|
144
|
+
latitude: import_zod4.z.number().min(-90).max(90),
|
|
145
|
+
longitude: import_zod4.z.number().min(-180).max(180),
|
|
146
|
+
accuracyMeters: import_zod4.z.number().min(0).nullable().optional(),
|
|
147
|
+
capturedAt: import_zod4.z.string().datetime()
|
|
148
|
+
});
|
|
149
|
+
var UpdateMemberLocationConsentRequestSchema = import_zod4.z.object({
|
|
150
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
151
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().default(false),
|
|
152
|
+
mealSuggestionAllowed: import_zod4.z.boolean().optional(),
|
|
153
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.optional()
|
|
154
|
+
});
|
|
155
|
+
var MemberLocationSettingsResponseSchema = import_zod4.z.object({
|
|
156
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
157
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean(),
|
|
158
|
+
mealSuggestionAllowed: import_zod4.z.boolean(),
|
|
159
|
+
lastKnownLocation: MemberLocationSchema.nullable(),
|
|
160
|
+
permissionSnapshot: DevicePermissionSnapshotSchema.nullable().optional(),
|
|
161
|
+
updatedAt: import_zod4.z.string().datetime().nullable()
|
|
162
|
+
});
|
|
163
|
+
var MemberCoreSchema = import_zod4.z.object({
|
|
164
|
+
memberId: MemberIdSchema,
|
|
165
|
+
username: import_zod4.z.string().min(1).max(50),
|
|
166
|
+
profileImageUrl: import_zod4.z.string().url().nullable().optional()
|
|
167
|
+
});
|
|
168
|
+
var UploadProfileImageResponseSchema = UploadPresignImageResponseSchema.extend({});
|
|
169
|
+
var UploadProfileImageRequestSchema = UploadPresignImageRequestSchema.extend({});
|
|
170
|
+
var MemberResponseSchema = MemberCoreSchema.pick({
|
|
171
|
+
memberId: true,
|
|
172
|
+
username: true,
|
|
173
|
+
profileImageUrl: true
|
|
174
|
+
}).extend({
|
|
175
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
176
|
+
onboardingCompletedAt: import_zod4.z.string().datetime().nullable().default(null),
|
|
177
|
+
locationConsentStatus: LocationConsentStatusSchema.optional(),
|
|
178
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().optional()
|
|
179
|
+
});
|
|
180
|
+
var MemberSearchQuerySchema = import_zod4.z.object({
|
|
181
|
+
email: import_zod4.z.string().email().optional(),
|
|
182
|
+
username: import_zod4.z.string().optional()
|
|
183
|
+
});
|
|
184
|
+
var MemberSerachResponseSchema = import_zod4.z.array(MemberCoreSchema);
|
|
185
|
+
var MemberDetailSchema = MemberCoreSchema.extend({
|
|
186
|
+
bio: import_zod4.z.string().nullable(),
|
|
187
|
+
friendConunt: import_zod4.z.number().int().min(0).default(0),
|
|
188
|
+
completedPlans: import_zod4.z.number().int().min(0).default(0),
|
|
189
|
+
uncompletedPlans: import_zod4.z.number().int().min(0).default(0),
|
|
190
|
+
onboardingStatus: OnboardingStatusSchema.default("REQUIRED"),
|
|
191
|
+
onboardingCompletedAt: import_zod4.z.string().datetime().nullable().default(null),
|
|
192
|
+
locationConsentStatus: LocationConsentStatusSchema.default("UNKNOWN"),
|
|
193
|
+
nearbyMealPlanExposureAllowed: import_zod4.z.boolean().default(false)
|
|
194
|
+
});
|
|
195
|
+
var FoodPreferenceItemSchema = FoodSchema.extend({});
|
|
196
|
+
var MemberFoodPreferenceSchema = import_zod4.z.object({
|
|
197
|
+
liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
|
|
198
|
+
disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
|
|
199
|
+
allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
|
|
200
|
+
});
|
|
201
|
+
var UpdateProfileRequestSchema = import_zod4.z.object({
|
|
202
|
+
username: import_zod4.z.string().min(1).max(50),
|
|
203
|
+
profileImageUrl: import_zod4.z.string().url().nullable(),
|
|
204
|
+
bio: import_zod4.z.string().max(500).nullable()
|
|
205
|
+
});
|
|
206
|
+
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
207
|
+
var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
|
|
208
|
+
var OnboardingDraftSchema = import_zod4.z.object({
|
|
209
|
+
username: import_zod4.z.string().min(1).max(50).optional(),
|
|
210
|
+
profileImageUrl: import_zod4.z.string().url().nullable().optional(),
|
|
211
|
+
bio: import_zod4.z.string().max(500).nullable().optional(),
|
|
212
|
+
liked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
|
|
213
|
+
disliked: import_zod4.z.array(FoodPreferenceItemSchema).optional(),
|
|
214
|
+
allergy: import_zod4.z.array(FoodPreferenceItemSchema).optional()
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
// src/domain/restaurant/restaurant.schema.ts
|
|
218
|
+
var import_zod5 = require("zod");
|
|
219
|
+
var RestaurantSchema = import_zod5.z.object({
|
|
220
|
+
restaurantId: RestaurantIdSchema,
|
|
221
|
+
placeName: import_zod5.z.string(),
|
|
222
|
+
categoryName: import_zod5.z.string(),
|
|
223
|
+
categoryGroupName: import_zod5.z.string(),
|
|
224
|
+
distance: import_zod5.z.string().optional(),
|
|
225
|
+
roadAddressName: import_zod5.z.string(),
|
|
226
|
+
addressName: import_zod5.z.string(),
|
|
227
|
+
phone: import_zod5.z.string().nullable(),
|
|
228
|
+
placeUrl: import_zod5.z.string().url().nullable(),
|
|
229
|
+
lat: import_zod5.z.number(),
|
|
230
|
+
lng: import_zod5.z.number()
|
|
231
|
+
});
|
|
232
|
+
var KakaoPlaceRawSchema = import_zod5.z.object({
|
|
233
|
+
id: RestaurantIdSchema,
|
|
234
|
+
place_name: import_zod5.z.string(),
|
|
235
|
+
category_name: import_zod5.z.string(),
|
|
236
|
+
category_group_name: import_zod5.z.string(),
|
|
237
|
+
distance: import_zod5.z.string(),
|
|
238
|
+
road_address_name: import_zod5.z.string(),
|
|
239
|
+
address_name: import_zod5.z.string(),
|
|
240
|
+
phone: import_zod5.z.string(),
|
|
241
|
+
place_url: import_zod5.z.string().url().optional(),
|
|
242
|
+
lat: import_zod5.z.number(),
|
|
243
|
+
lng: import_zod5.z.number()
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
// src/domain/meal-plan/meal-plan-decision.schema.ts
|
|
247
|
+
var import_zod6 = require("zod");
|
|
248
|
+
var MealPlanLatitudeSchema = import_zod6.z.number().brand();
|
|
249
|
+
var MealPlanLongitudeSchema = import_zod6.z.number().brand();
|
|
250
|
+
var MealPlanLocationCandidateIdSchema = import_zod6.z.string().min(1).brand();
|
|
251
|
+
var MealPlanMenuCandidateIdSchema = import_zod6.z.string().min(1).brand();
|
|
252
|
+
var MealPlanDecisionStageIdSchema = import_zod6.z.string().uuid().brand();
|
|
253
|
+
var MealPlanVoteIdSchema = import_zod6.z.string().uuid().brand();
|
|
254
|
+
var MealPlanLocationCandidateSourceSchema = import_zod6.z.enum([
|
|
255
|
+
"manual",
|
|
256
|
+
"midpoint",
|
|
257
|
+
"search",
|
|
258
|
+
"recent-place",
|
|
259
|
+
"fallback"
|
|
260
|
+
]);
|
|
261
|
+
var MealPlanLocationCandidateSchema = import_zod6.z.object({
|
|
262
|
+
locationId: MealPlanLocationCandidateIdSchema,
|
|
263
|
+
placeName: import_zod6.z.string().min(1),
|
|
264
|
+
lat: MealPlanLatitudeSchema,
|
|
265
|
+
lng: MealPlanLongitudeSchema,
|
|
266
|
+
address: import_zod6.z.string().default(""),
|
|
267
|
+
source: MealPlanLocationCandidateSourceSchema.default("manual"),
|
|
268
|
+
createdBy: MemberIdSchema.optional(),
|
|
269
|
+
createdAt: ISODateTimeStringSchema.optional()
|
|
270
|
+
});
|
|
271
|
+
var MealPlanMenuCandidateSourceSchema = import_zod6.z.enum([
|
|
272
|
+
"external-recommendation",
|
|
273
|
+
"prefer-menu",
|
|
274
|
+
"recent-menu",
|
|
275
|
+
"fallback",
|
|
276
|
+
"manual-search"
|
|
277
|
+
]);
|
|
278
|
+
var MealPlanMenuCandidateSchema = import_zod6.z.object({
|
|
279
|
+
menuCandidateId: MealPlanMenuCandidateIdSchema,
|
|
280
|
+
menu: FoodSchema,
|
|
281
|
+
source: MealPlanMenuCandidateSourceSchema,
|
|
282
|
+
score: import_zod6.z.number().default(0),
|
|
283
|
+
createdAt: ISODateTimeStringSchema
|
|
284
|
+
});
|
|
285
|
+
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
286
|
+
candidateId: RestaurantIdSchema.optional(),
|
|
287
|
+
source: import_zod6.z.enum([
|
|
288
|
+
"search",
|
|
289
|
+
"fallback",
|
|
290
|
+
"manual"
|
|
291
|
+
]).optional(),
|
|
292
|
+
createdAt: ISODateTimeStringSchema.optional()
|
|
293
|
+
});
|
|
294
|
+
var MealPlanDecisionStageTypeSchema = import_zod6.z.enum([
|
|
295
|
+
"DATE",
|
|
296
|
+
"TIME",
|
|
297
|
+
"AREA",
|
|
298
|
+
"MENU",
|
|
299
|
+
"RESTAURANT",
|
|
300
|
+
"FINAL_CONFIRMATION"
|
|
301
|
+
]);
|
|
302
|
+
var MealPlanDecisionStageStatusSchema = import_zod6.z.enum([
|
|
303
|
+
"OPEN",
|
|
304
|
+
"COMPLETED",
|
|
305
|
+
"REOPENED"
|
|
306
|
+
]);
|
|
307
|
+
var MealPlanRestaurantSearchStatusSchema = import_zod6.z.enum([
|
|
308
|
+
"IDLE",
|
|
309
|
+
"PENDING",
|
|
310
|
+
"READY",
|
|
311
|
+
"FAILED",
|
|
312
|
+
"STALE"
|
|
313
|
+
]);
|
|
314
|
+
var MealPlanRestaurantSearchStateSchema = import_zod6.z.object({
|
|
315
|
+
searchKey: import_zod6.z.string().min(1).nullable(),
|
|
316
|
+
status: MealPlanRestaurantSearchStatusSchema,
|
|
317
|
+
startedAt: ISODateTimeStringSchema.nullable(),
|
|
318
|
+
completedAt: ISODateTimeStringSchema.nullable(),
|
|
319
|
+
version: import_zod6.z.number().int().min(0),
|
|
320
|
+
candidateCount: import_zod6.z.number().int().min(0),
|
|
321
|
+
errorMessage: import_zod6.z.string().nullable().default(null)
|
|
322
|
+
});
|
|
323
|
+
var MealPlanDecisionStageMetadataSchema = import_zod6.z.object({
|
|
324
|
+
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
325
|
+
}).catchall(import_zod6.z.unknown());
|
|
326
|
+
var MealPlanVoteTypeSchema = import_zod6.z.enum([
|
|
327
|
+
"PICK",
|
|
328
|
+
"EXCLUDE",
|
|
329
|
+
"PREFER",
|
|
330
|
+
"READY"
|
|
331
|
+
]);
|
|
332
|
+
var MealPlanDecisionCandidateSchema = import_zod6.z.discriminatedUnion("stageType", [
|
|
333
|
+
import_zod6.z.object({
|
|
334
|
+
stageType: import_zod6.z.literal("DATE"),
|
|
335
|
+
value: ISODateStringSchema
|
|
336
|
+
}),
|
|
337
|
+
import_zod6.z.object({
|
|
338
|
+
stageType: import_zod6.z.literal("TIME"),
|
|
339
|
+
value: TimeHHmmStringSchema
|
|
340
|
+
}),
|
|
341
|
+
import_zod6.z.object({
|
|
342
|
+
stageType: import_zod6.z.literal("AREA"),
|
|
343
|
+
value: MealPlanLocationCandidateSchema
|
|
344
|
+
}),
|
|
345
|
+
import_zod6.z.object({
|
|
346
|
+
stageType: import_zod6.z.literal("MENU"),
|
|
347
|
+
value: MealPlanMenuCandidateSchema
|
|
348
|
+
}),
|
|
349
|
+
import_zod6.z.object({
|
|
350
|
+
stageType: import_zod6.z.literal("RESTAURANT"),
|
|
351
|
+
value: MealPlanRestaurantCandidateSchema
|
|
352
|
+
}),
|
|
353
|
+
import_zod6.z.object({
|
|
354
|
+
stageType: import_zod6.z.literal("FINAL_CONFIRMATION"),
|
|
355
|
+
value: import_zod6.z.literal("READY")
|
|
356
|
+
})
|
|
357
|
+
]);
|
|
358
|
+
var MealPlanVoteSchema = import_zod6.z.object({
|
|
359
|
+
voteId: MealPlanVoteIdSchema,
|
|
360
|
+
voterId: MemberIdSchema.nullable(),
|
|
361
|
+
guestId: import_zod6.z.string().min(1).nullable(),
|
|
362
|
+
voteType: MealPlanVoteTypeSchema,
|
|
363
|
+
candidate: MealPlanDecisionCandidateSchema,
|
|
364
|
+
createdAt: ISODateTimeStringSchema
|
|
365
|
+
});
|
|
366
|
+
var MealPlanDecisionStageResponseSchema = import_zod6.z.object({
|
|
367
|
+
stageId: MealPlanDecisionStageIdSchema,
|
|
368
|
+
stageType: MealPlanDecisionStageTypeSchema,
|
|
369
|
+
status: MealPlanDecisionStageStatusSchema,
|
|
370
|
+
candidates: import_zod6.z.array(MealPlanDecisionCandidateSchema),
|
|
371
|
+
votes: import_zod6.z.array(MealPlanVoteSchema),
|
|
372
|
+
selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
|
|
373
|
+
metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
|
|
374
|
+
openedAt: ISODateTimeStringSchema,
|
|
375
|
+
completedAt: ISODateTimeStringSchema.nullable(),
|
|
376
|
+
reopenedAt: ISODateTimeStringSchema.nullable()
|
|
377
|
+
});
|
|
378
|
+
var CreateMealPlanVoteRequestSchema = import_zod6.z.object({
|
|
379
|
+
voteType: MealPlanVoteTypeSchema,
|
|
380
|
+
candidate: MealPlanDecisionCandidateSchema
|
|
381
|
+
});
|
|
382
|
+
var CompleteMealPlanDecisionStageRequestSchema = import_zod6.z.object({
|
|
383
|
+
selectedCandidate: MealPlanDecisionCandidateSchema
|
|
384
|
+
});
|
|
385
|
+
var MealPlanChangeRequestStatusSchema = import_zod6.z.enum([
|
|
386
|
+
"PENDING",
|
|
387
|
+
"ACCEPTED",
|
|
388
|
+
"REJECTED",
|
|
389
|
+
"CANCELLED"
|
|
390
|
+
]);
|
|
391
|
+
var CreateMealPlanChangeRequestSchema = import_zod6.z.object({
|
|
392
|
+
stageType: MealPlanDecisionStageTypeSchema,
|
|
393
|
+
reason: import_zod6.z.string().min(1).max(500),
|
|
394
|
+
proposedCandidate: MealPlanDecisionCandidateSchema.optional()
|
|
395
|
+
});
|
|
396
|
+
var MealPlanChangeRequestSummarySchema = import_zod6.z.object({
|
|
397
|
+
changeRequestId: MealPlanChangeRequestIdSchema,
|
|
398
|
+
stageType: MealPlanDecisionStageTypeSchema,
|
|
399
|
+
status: MealPlanChangeRequestStatusSchema,
|
|
400
|
+
reason: import_zod6.z.string(),
|
|
401
|
+
requestedAt: ISODateTimeStringSchema
|
|
402
|
+
});
|
|
403
|
+
var MealPlanDecisionTaskKeySchema = import_zod6.z.enum([
|
|
404
|
+
"SCHEDULE_DATE",
|
|
405
|
+
"SCHEDULE_TIME",
|
|
406
|
+
"LOCATION_CANDIDATE",
|
|
407
|
+
"LOCATION_VOTE",
|
|
408
|
+
"EXCLUDE_MENU",
|
|
409
|
+
"PREFER_MENU",
|
|
410
|
+
"MENU_PICK",
|
|
411
|
+
"RESTAURANT_SEARCH",
|
|
412
|
+
"RESTAURANT_PICK",
|
|
413
|
+
"FINAL_CONFIRMATION"
|
|
414
|
+
]);
|
|
415
|
+
var MealPlanDecisionTaskStatusSchema = import_zod6.z.enum([
|
|
416
|
+
"LOCKED",
|
|
417
|
+
"OPEN",
|
|
418
|
+
"READY",
|
|
419
|
+
"RESOLVED",
|
|
420
|
+
"STALE"
|
|
421
|
+
]);
|
|
422
|
+
var MealPlanDecisionFinalFieldSchema = import_zod6.z.enum([
|
|
423
|
+
"date",
|
|
424
|
+
"time",
|
|
425
|
+
"meetingAt",
|
|
426
|
+
"area",
|
|
427
|
+
"menu",
|
|
428
|
+
"restaurant"
|
|
429
|
+
]);
|
|
430
|
+
var MealPlanDecisionSnapshotStatusSchema = import_zod6.z.enum([
|
|
431
|
+
"CANDIDATE",
|
|
432
|
+
"PROVISIONAL",
|
|
433
|
+
"FINAL",
|
|
434
|
+
"STALE"
|
|
435
|
+
]);
|
|
436
|
+
var MealPlanDecisionReasonSchema = import_zod6.z.enum([
|
|
437
|
+
"COMMON_SCHEDULE",
|
|
438
|
+
"TOP_VOTED_LOCATION",
|
|
439
|
+
"TOP_PICKED_MENU",
|
|
440
|
+
"TOP_PICKED_RESTAURANT",
|
|
441
|
+
"OWNER_CONFIRMED",
|
|
442
|
+
"TASK_ALL_READY",
|
|
443
|
+
"MANUAL_SELECTION"
|
|
444
|
+
]);
|
|
445
|
+
var MealPlanDecisionActorTypeSchema = import_zod6.z.enum([
|
|
446
|
+
"MEMBER",
|
|
447
|
+
"GUEST",
|
|
448
|
+
"SYSTEM"
|
|
449
|
+
]);
|
|
450
|
+
var MealPlanDecisionSnapshotSchema = import_zod6.z.object({
|
|
451
|
+
snapshotId: import_zod6.z.string().uuid(),
|
|
452
|
+
mealPlanId: import_zod6.z.string().uuid(),
|
|
453
|
+
field: MealPlanDecisionFinalFieldSchema,
|
|
454
|
+
value: import_zod6.z.unknown(),
|
|
455
|
+
status: MealPlanDecisionSnapshotStatusSchema,
|
|
456
|
+
reason: MealPlanDecisionReasonSchema,
|
|
457
|
+
score: import_zod6.z.number().nullable().default(null),
|
|
458
|
+
sourceEvent: import_zod6.z.string().min(1),
|
|
459
|
+
sourceActorType: MealPlanDecisionActorTypeSchema,
|
|
460
|
+
sourceMemberId: MemberIdSchema.nullable(),
|
|
461
|
+
sourceGuestId: import_zod6.z.string().min(1).nullable(),
|
|
462
|
+
sourceParticipantId: import_zod6.z.string().uuid().nullable(),
|
|
463
|
+
sourceVersion: import_zod6.z.number().int().min(0),
|
|
464
|
+
dependencyHash: import_zod6.z.string().min(1),
|
|
465
|
+
dependencyFields: import_zod6.z.array(MealPlanDecisionFinalFieldSchema),
|
|
466
|
+
createdAt: ISODateTimeStringSchema,
|
|
467
|
+
staleAt: ISODateTimeStringSchema.nullable()
|
|
468
|
+
});
|
|
469
|
+
var MealPlanDecisionTaskProgressSchema = import_zod6.z.object({
|
|
470
|
+
taskKey: MealPlanDecisionTaskKeySchema,
|
|
471
|
+
status: MealPlanDecisionTaskStatusSchema,
|
|
472
|
+
readyCount: import_zod6.z.number().int().min(0),
|
|
473
|
+
participantCount: import_zod6.z.number().int().min(0),
|
|
474
|
+
blockers: import_zod6.z.array(import_zod6.z.string()).default([]),
|
|
475
|
+
updatedAt: ISODateTimeStringSchema
|
|
476
|
+
});
|
|
477
|
+
var MealPlanDecisionProgressSchema = import_zod6.z.object({
|
|
478
|
+
mealPlanId: import_zod6.z.string().uuid(),
|
|
479
|
+
status: import_zod6.z.string().min(1),
|
|
480
|
+
tasks: import_zod6.z.array(MealPlanDecisionTaskProgressSchema),
|
|
481
|
+
final: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()),
|
|
482
|
+
provisional: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()),
|
|
483
|
+
snapshots: import_zod6.z.array(MealPlanDecisionSnapshotSchema),
|
|
484
|
+
version: import_zod6.z.number().int().min(0),
|
|
485
|
+
updatedAt: ISODateTimeStringSchema
|
|
486
|
+
});
|
|
487
|
+
var MealPlanDecisionTaskReadyRequestSchema = import_zod6.z.object({
|
|
488
|
+
isReady: import_zod6.z.boolean()
|
|
489
|
+
});
|
|
490
|
+
var ReopenMealPlanDecisionTaskRequestSchema = import_zod6.z.object({
|
|
491
|
+
reason: import_zod6.z.string().max(500).optional()
|
|
492
|
+
});
|
|
493
|
+
var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod6.z.object({
|
|
494
|
+
snapshotId: import_zod6.z.string().uuid()
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
// src/domain/meal-plan/meal-plan-participant.schema.ts
|
|
498
|
+
var import_zod7 = require("zod");
|
|
499
|
+
var MealPlanParticipantIdSchema = import_zod7.z.string().uuid().brand();
|
|
500
|
+
var MealPlanParticipantRoleSchema = import_zod7.z.enum([
|
|
501
|
+
"OWNER",
|
|
502
|
+
"FRIEND",
|
|
503
|
+
"GUEST"
|
|
504
|
+
]);
|
|
505
|
+
var MealPlanParticipantStatusSchema = import_zod7.z.enum([
|
|
506
|
+
"INVITED",
|
|
507
|
+
"REQUESTED",
|
|
508
|
+
"JOINED",
|
|
509
|
+
"READY",
|
|
510
|
+
"DECLINED",
|
|
511
|
+
"LEFT",
|
|
512
|
+
"REMOVED"
|
|
513
|
+
]);
|
|
514
|
+
var MealPlanJoinSourceSchema = import_zod7.z.enum([
|
|
515
|
+
"OWNER",
|
|
516
|
+
"FRIEND_INVITE",
|
|
517
|
+
"LINK_GUEST",
|
|
518
|
+
"NEARBY_FRIENDS"
|
|
519
|
+
]);
|
|
520
|
+
var MealPlanGuestParticipantSchema = import_zod7.z.object({
|
|
521
|
+
guestId: import_zod7.z.string().min(1),
|
|
522
|
+
nickname: import_zod7.z.string().min(1).max(50)
|
|
523
|
+
});
|
|
524
|
+
var MealPlanParticipantResponseSchema = import_zod7.z.object({
|
|
525
|
+
participantId: MealPlanParticipantIdSchema,
|
|
526
|
+
mealPlanId: MealPlanIdSchema,
|
|
527
|
+
member: MemberCoreSchema.nullable(),
|
|
528
|
+
guest: MealPlanGuestParticipantSchema.nullable(),
|
|
529
|
+
role: MealPlanParticipantRoleSchema,
|
|
530
|
+
status: MealPlanParticipantStatusSchema,
|
|
531
|
+
source: MealPlanJoinSourceSchema,
|
|
532
|
+
joinedAt: ISODateTimeStringSchema.nullable(),
|
|
533
|
+
readyAt: ISODateTimeStringSchema.nullable()
|
|
534
|
+
});
|
|
535
|
+
var CreateMealPlanParticipantRequestSchema = import_zod7.z.object({
|
|
536
|
+
memberId: MemberIdSchema.optional(),
|
|
537
|
+
guestNickname: import_zod7.z.string().min(1).max(50).optional(),
|
|
538
|
+
source: MealPlanJoinSourceSchema
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
// src/domain/meal-plan/meal-plan-invite.schema.ts
|
|
542
|
+
var import_zod8 = require("zod");
|
|
543
|
+
var MealPlanInviteStatusSchema = import_zod8.z.enum([
|
|
544
|
+
"PENDING",
|
|
545
|
+
"ACCEPTED",
|
|
546
|
+
"DECLINED",
|
|
547
|
+
"CANCELLED",
|
|
548
|
+
"EXPIRED"
|
|
549
|
+
]);
|
|
550
|
+
var CreateMealPlanInviteRequestSchema = import_zod8.z.object({
|
|
551
|
+
inviteeId: MemberIdSchema,
|
|
552
|
+
message: import_zod8.z.string().max(500).default("")
|
|
553
|
+
});
|
|
554
|
+
var MealPlanInviteSummarySchema = import_zod8.z.object({
|
|
555
|
+
inviteId: MealPlanInviteIdSchema,
|
|
556
|
+
mealPlanId: MealPlanIdSchema,
|
|
557
|
+
inviter: MemberCoreSchema,
|
|
558
|
+
invitee: MemberCoreSchema,
|
|
559
|
+
status: MealPlanInviteStatusSchema,
|
|
560
|
+
message: import_zod8.z.string().max(500),
|
|
561
|
+
createdAt: ISODateTimeStringSchema,
|
|
562
|
+
respondedAt: ISODateTimeStringSchema.nullable()
|
|
563
|
+
});
|
|
564
|
+
var MealPlanInviteListResponseSchema = import_zod8.z.array(MealPlanInviteSummarySchema);
|
|
565
|
+
var SendMealPlanInviteResponseSchema = import_zod8.z.object({
|
|
566
|
+
inviteId: MealPlanInviteIdSchema
|
|
567
|
+
});
|
|
568
|
+
|
|
569
|
+
// src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
|
|
570
|
+
var import_zod9 = require("zod");
|
|
571
|
+
var MealPlanNearbyFriendExposureIdSchema = import_zod9.z.string().uuid().brand();
|
|
572
|
+
var MealPlanNearbyFriendExposureStatusSchema = import_zod9.z.enum([
|
|
573
|
+
"OPEN",
|
|
574
|
+
"CLOSED",
|
|
575
|
+
"EXPIRED"
|
|
576
|
+
]);
|
|
577
|
+
var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod9.z.enum([
|
|
578
|
+
"PENDING",
|
|
579
|
+
"SENT",
|
|
580
|
+
"PARTIAL",
|
|
581
|
+
"FAILED",
|
|
582
|
+
"SKIPPED"
|
|
583
|
+
]);
|
|
584
|
+
var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod9.z.object({
|
|
585
|
+
radiusMeters: import_zod9.z.number().int().min(100).max(5e3).default(1e3),
|
|
586
|
+
expiresAt: ISODateTimeStringSchema.optional()
|
|
587
|
+
});
|
|
588
|
+
var NearbyFriendExposureEligibilitySchema = import_zod9.z.object({
|
|
589
|
+
canExpose: import_zod9.z.boolean(),
|
|
590
|
+
locationConsentStatus: LocationConsentStatusSchema,
|
|
591
|
+
nearbyMealPlanExposureAllowed: import_zod9.z.boolean(),
|
|
592
|
+
mealSuggestionAllowed: import_zod9.z.boolean(),
|
|
593
|
+
hasLastKnownLocation: import_zod9.z.boolean(),
|
|
594
|
+
missingRequirements: import_zod9.z.array(import_zod9.z.enum([
|
|
595
|
+
"LOCATION_PERMISSION",
|
|
596
|
+
"SERVICE_LOCATION_CONSENT",
|
|
597
|
+
"NEARBY_EXPOSURE_TOGGLE",
|
|
598
|
+
"MEAL_SUGGESTION_TOGGLE",
|
|
599
|
+
"LAST_KNOWN_LOCATION"
|
|
600
|
+
]))
|
|
601
|
+
});
|
|
602
|
+
var MealPlanNearbyFriendRejectionReasonSchema = import_zod9.z.enum([
|
|
603
|
+
"NOT_FRIEND",
|
|
604
|
+
"BLOCKED",
|
|
605
|
+
"LOCATION_CONSENT_REQUIRED",
|
|
606
|
+
"LOCATION_UNAVAILABLE",
|
|
607
|
+
"OUT_OF_RADIUS",
|
|
608
|
+
"MEAL_SUGGESTION_DISABLED",
|
|
609
|
+
"NOT_HUNGRY"
|
|
610
|
+
]);
|
|
611
|
+
var MealPlanNearbyFriendRejectionSummarySchema = import_zod9.z.object({
|
|
612
|
+
reason: MealPlanNearbyFriendRejectionReasonSchema,
|
|
613
|
+
count: import_zod9.z.number().int().min(0)
|
|
614
|
+
});
|
|
615
|
+
var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod9.z.object({
|
|
616
|
+
mealPlanId: MealPlanIdSchema,
|
|
617
|
+
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
|
|
618
|
+
exposedFriendCount: import_zod9.z.number().int().min(0),
|
|
619
|
+
rejectedFriendCount: import_zod9.z.number().int().min(0),
|
|
620
|
+
notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
621
|
+
rejectionSummary: import_zod9.z.array(MealPlanNearbyFriendRejectionSummarySchema)
|
|
622
|
+
});
|
|
623
|
+
var MealPlanNearbyFriendExposureSummarySchema = import_zod9.z.object({
|
|
624
|
+
exposureId: MealPlanNearbyFriendExposureIdSchema,
|
|
625
|
+
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
|
|
626
|
+
mealPlanId: MealPlanIdSchema,
|
|
627
|
+
status: MealPlanNearbyFriendExposureStatusSchema,
|
|
628
|
+
radiusMeters: import_zod9.z.number().int().min(100),
|
|
629
|
+
exposedFriendCount: import_zod9.z.number().int().min(0),
|
|
630
|
+
openedAt: ISODateTimeStringSchema,
|
|
631
|
+
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
632
|
+
closedAt: ISODateTimeStringSchema.nullable()
|
|
633
|
+
});
|
|
634
|
+
var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod9.z.object({
|
|
635
|
+
exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
|
|
636
|
+
mealPlanId: MealPlanIdSchema,
|
|
637
|
+
status: MealPlanNearbyFriendExposureStatusSchema,
|
|
638
|
+
radiusMeters: import_zod9.z.number().int().min(100),
|
|
639
|
+
exposedFriendCount: import_zod9.z.number().int().min(0),
|
|
640
|
+
rejectedFriendCount: import_zod9.z.number().int().min(0),
|
|
641
|
+
rejectionSummary: import_zod9.z.array(MealPlanNearbyFriendRejectionSummarySchema),
|
|
642
|
+
notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
643
|
+
notificationSentAt: ISODateTimeStringSchema.nullable(),
|
|
644
|
+
openedAt: ISODateTimeStringSchema,
|
|
645
|
+
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
646
|
+
closedAt: ISODateTimeStringSchema.nullable()
|
|
647
|
+
});
|
|
648
|
+
var MealPlanJoinRequestStatusSchema = import_zod9.z.enum([
|
|
649
|
+
"PENDING",
|
|
650
|
+
"ACCEPTED",
|
|
651
|
+
"REJECTED",
|
|
652
|
+
"CANCELLED"
|
|
653
|
+
]);
|
|
654
|
+
var CreateMealPlanJoinRequestSchema = import_zod9.z.object({
|
|
655
|
+
message: import_zod9.z.string().max(500).default("")
|
|
656
|
+
});
|
|
657
|
+
var MealPlanJoinRequestSummarySchema = import_zod9.z.object({
|
|
658
|
+
joinRequestId: MealPlanJoinRequestIdSchema,
|
|
659
|
+
mealPlanId: MealPlanIdSchema,
|
|
660
|
+
requester: MemberCoreSchema,
|
|
661
|
+
status: MealPlanJoinRequestStatusSchema,
|
|
662
|
+
message: import_zod9.z.string().max(500),
|
|
663
|
+
requestedAt: ISODateTimeStringSchema,
|
|
664
|
+
respondedAt: ISODateTimeStringSchema.nullable()
|
|
665
|
+
});
|
|
666
|
+
var NearbyFriendMealPlanSummarySchema = import_zod9.z.object({
|
|
667
|
+
mealPlanId: MealPlanIdSchema,
|
|
668
|
+
owner: MemberCoreSchema,
|
|
669
|
+
title: import_zod9.z.string(),
|
|
670
|
+
participantCount: import_zod9.z.number().int().min(1),
|
|
671
|
+
distanceMeters: import_zod9.z.number().int().min(0),
|
|
672
|
+
exposedAt: ISODateTimeStringSchema,
|
|
673
|
+
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
674
|
+
joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
|
|
675
|
+
});
|
|
676
|
+
|
|
677
|
+
// src/domain/meal-plan/meal-plan-chat.schema.ts
|
|
678
|
+
var import_zod10 = require("zod");
|
|
679
|
+
var MealPlanChatMessageKindSchema = import_zod10.z.enum([
|
|
680
|
+
"USER",
|
|
681
|
+
"SYSTEM"
|
|
682
|
+
]);
|
|
683
|
+
var MealPlanSystemMessageKindSchema = import_zod10.z.enum([
|
|
684
|
+
"PARTICIPANT_JOINED",
|
|
685
|
+
"PARTICIPANT_READY",
|
|
686
|
+
"PARTICIPANT_REMOVED",
|
|
687
|
+
"STATUS_CHANGED",
|
|
688
|
+
"DECISION_UPDATED",
|
|
689
|
+
"CONFIRMED",
|
|
690
|
+
"RECORD_NEEDED"
|
|
691
|
+
]);
|
|
692
|
+
var MealPlanChatSystemPayloadSchema = import_zod10.z.object({
|
|
693
|
+
kind: MealPlanSystemMessageKindSchema
|
|
694
|
+
}).catchall(import_zod10.z.unknown());
|
|
695
|
+
var MealPlanChatMessageListResponseSchema = import_zod10.z.array(import_zod10.z.lazy(() => MealPlanChatMessageResponseSchema));
|
|
696
|
+
var MealPlanChatRoomSummarySchema = import_zod10.z.object({
|
|
697
|
+
chatRoomId: MealPlanChatRoomIdSchema,
|
|
698
|
+
mealPlanId: MealPlanIdSchema,
|
|
699
|
+
messageCount: import_zod10.z.number().int().min(0),
|
|
700
|
+
lastMessageAt: ISODateTimeStringSchema.nullable(),
|
|
701
|
+
createdAt: ISODateTimeStringSchema
|
|
702
|
+
});
|
|
703
|
+
var SendMealPlanChatMessageRequestSchema = import_zod10.z.object({
|
|
704
|
+
message: import_zod10.z.string().min(1).max(500)
|
|
705
|
+
});
|
|
706
|
+
var MealPlanChatMessageResponseSchema = import_zod10.z.object({
|
|
707
|
+
messageId: MealPlanChatMessageIdSchema,
|
|
708
|
+
chatRoomId: MealPlanChatRoomIdSchema,
|
|
709
|
+
sender: MemberCoreSchema.nullable(),
|
|
710
|
+
guestId: import_zod10.z.string().min(1).nullable(),
|
|
711
|
+
guestNickname: import_zod10.z.string().min(1).nullable(),
|
|
712
|
+
kind: MealPlanChatMessageKindSchema,
|
|
713
|
+
message: import_zod10.z.string().min(1).max(1e3),
|
|
714
|
+
systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
|
|
715
|
+
createdAt: ISODateTimeStringSchema
|
|
716
|
+
});
|
|
717
|
+
var MealPlanSystemMessageSchema = import_zod10.z.object({
|
|
718
|
+
kind: MealPlanSystemMessageKindSchema,
|
|
719
|
+
message: import_zod10.z.string().min(1),
|
|
720
|
+
createdAt: ISODateTimeStringSchema
|
|
721
|
+
});
|
|
722
|
+
|
|
723
|
+
// src/domain/meal-plan/meal-plan.schema.ts
|
|
724
|
+
var MealPlanStatusSchema = import_zod11.z.enum([
|
|
725
|
+
"DRAFT",
|
|
726
|
+
"RECOMMENDING",
|
|
727
|
+
"GATHERING",
|
|
728
|
+
"DECIDING",
|
|
729
|
+
"READY",
|
|
730
|
+
"CONFIRMED",
|
|
731
|
+
"LOCKED",
|
|
732
|
+
"COMPLETED",
|
|
733
|
+
"RECORDED",
|
|
734
|
+
"CANCELLED"
|
|
735
|
+
]);
|
|
736
|
+
var MealPlanChannelSchema = import_zod11.z.enum([
|
|
737
|
+
"OWNER_ONLY",
|
|
738
|
+
"FRIEND_INVITE",
|
|
739
|
+
"LINK_GUEST",
|
|
740
|
+
"NEARBY_FRIENDS"
|
|
741
|
+
]);
|
|
742
|
+
var MealPlanRecommendationContextSchema = import_zod11.z.object({
|
|
743
|
+
mealDate: ISODateStringSchema.optional(),
|
|
744
|
+
mealTime: TimeHHmmStringSchema.optional(),
|
|
745
|
+
area: MealPlanLocationCandidateSchema.optional(),
|
|
746
|
+
preferredMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
|
|
747
|
+
excludedMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
|
|
748
|
+
candidateMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
|
|
749
|
+
budgetMin: import_zod11.z.number().int().min(0).optional(),
|
|
750
|
+
budgetMax: import_zod11.z.number().int().min(0).optional(),
|
|
751
|
+
memo: import_zod11.z.string().max(500).optional()
|
|
752
|
+
});
|
|
753
|
+
var CreateMealPlanRequestSchema = import_zod11.z.object({
|
|
754
|
+
title: import_zod11.z.string().min(1).max(100).optional(),
|
|
755
|
+
channels: import_zod11.z.array(MealPlanChannelSchema).default([
|
|
756
|
+
"OWNER_ONLY"
|
|
757
|
+
]),
|
|
758
|
+
recommendationContext: MealPlanRecommendationContextSchema.optional()
|
|
759
|
+
});
|
|
760
|
+
var CreateMealPlanResponseSchema = import_zod11.z.object({
|
|
761
|
+
mealPlanId: MealPlanIdSchema
|
|
762
|
+
});
|
|
763
|
+
var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
|
|
764
|
+
var MealPlanViewerRoleSchema = import_zod11.z.enum([
|
|
765
|
+
"OWNER",
|
|
766
|
+
"FRIEND",
|
|
767
|
+
"GUEST",
|
|
768
|
+
"NONE"
|
|
769
|
+
]);
|
|
770
|
+
var MealPlanViewerPermissionsSchema = import_zod11.z.object({
|
|
771
|
+
canView: import_zod11.z.boolean(),
|
|
772
|
+
canInviteFriends: import_zod11.z.boolean(),
|
|
773
|
+
canManageParticipants: import_zod11.z.boolean(),
|
|
774
|
+
canCreateShareLink: import_zod11.z.boolean(),
|
|
775
|
+
canExposeNearbyFriends: import_zod11.z.boolean(),
|
|
776
|
+
canVote: import_zod11.z.boolean(),
|
|
777
|
+
canChat: import_zod11.z.boolean(),
|
|
778
|
+
canReadyMealPlan: import_zod11.z.boolean(),
|
|
779
|
+
canReadyDecisionTask: import_zod11.z.boolean(),
|
|
780
|
+
canRequestChange: import_zod11.z.boolean(),
|
|
781
|
+
canReopenDecisionTask: import_zod11.z.boolean(),
|
|
782
|
+
canConfirmDecisionSnapshot: import_zod11.z.boolean(),
|
|
783
|
+
canConfirmMealPlan: import_zod11.z.boolean(),
|
|
784
|
+
canCompleteMealPlan: import_zod11.z.boolean(),
|
|
785
|
+
canRecordMealPlan: import_zod11.z.boolean(),
|
|
786
|
+
canCancelMealPlan: import_zod11.z.boolean()
|
|
787
|
+
});
|
|
788
|
+
var MealPlanResponseSchema = import_zod11.z.object({
|
|
789
|
+
mealPlanId: MealPlanIdSchema,
|
|
790
|
+
owner: MemberCoreSchema,
|
|
791
|
+
title: import_zod11.z.string().nullable(),
|
|
792
|
+
status: MealPlanStatusSchema,
|
|
793
|
+
channels: import_zod11.z.array(MealPlanChannelSchema),
|
|
794
|
+
participants: import_zod11.z.array(MealPlanParticipantResponseSchema),
|
|
795
|
+
pendingInvites: import_zod11.z.array(MealPlanInviteSummarySchema),
|
|
796
|
+
pendingJoinRequests: import_zod11.z.array(MealPlanJoinRequestSummarySchema),
|
|
797
|
+
decisionStages: import_zod11.z.array(MealPlanDecisionStageResponseSchema),
|
|
798
|
+
decisionProgress: MealPlanDecisionProgressSchema.nullable(),
|
|
799
|
+
viewerRole: MealPlanViewerRoleSchema,
|
|
800
|
+
viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
|
|
801
|
+
viewerPermissions: MealPlanViewerPermissionsSchema,
|
|
802
|
+
viewerTaskReadyMap: import_zod11.z.record(MealPlanDecisionTaskKeySchema, import_zod11.z.boolean()),
|
|
803
|
+
selectedDate: ISODateStringSchema.nullable(),
|
|
804
|
+
selectedTime: TimeHHmmStringSchema.nullable(),
|
|
805
|
+
selectedArea: MealPlanLocationCandidateSchema.nullable(),
|
|
806
|
+
selectedRestaurant: RestaurantSchema.nullable(),
|
|
807
|
+
selectedMenuCategory: import_zod11.z.string().nullable(),
|
|
808
|
+
chatRoom: MealPlanChatRoomSummarySchema.nullable(),
|
|
809
|
+
confirmedAt: ISODateTimeStringSchema.nullable(),
|
|
810
|
+
lockedAt: ISODateTimeStringSchema.nullable(),
|
|
811
|
+
completedAt: ISODateTimeStringSchema.nullable(),
|
|
812
|
+
recordedAt: ISODateTimeStringSchema.nullable(),
|
|
813
|
+
createdAt: ISODateTimeStringSchema,
|
|
814
|
+
updatedAt: ISODateTimeStringSchema
|
|
815
|
+
});
|
|
816
|
+
var MyMealPlanGroupSchema = import_zod11.z.enum([
|
|
817
|
+
"DECIDING",
|
|
818
|
+
"UPCOMING",
|
|
819
|
+
"RECORD_NEEDED",
|
|
820
|
+
"PAST"
|
|
821
|
+
]);
|
|
822
|
+
var MyMealPlanListItemSchema = import_zod11.z.object({
|
|
823
|
+
mealPlanId: MealPlanIdSchema,
|
|
824
|
+
group: MyMealPlanGroupSchema,
|
|
825
|
+
title: import_zod11.z.string(),
|
|
826
|
+
status: MealPlanStatusSchema,
|
|
827
|
+
channels: import_zod11.z.array(MealPlanChannelSchema),
|
|
828
|
+
participantCount: import_zod11.z.number().int().min(1),
|
|
829
|
+
selectedDate: ISODateStringSchema.nullable(),
|
|
830
|
+
selectedTime: TimeHHmmStringSchema.nullable(),
|
|
831
|
+
selectedAreaName: import_zod11.z.string().nullable(),
|
|
832
|
+
selectedRestaurantName: import_zod11.z.string().nullable(),
|
|
833
|
+
primaryAction: import_zod11.z.object({
|
|
834
|
+
label: import_zod11.z.string(),
|
|
835
|
+
href: import_zod11.z.string()
|
|
836
|
+
}),
|
|
837
|
+
updatedAt: ISODateTimeStringSchema
|
|
838
|
+
});
|
|
839
|
+
var MyMealPlanListResponseSchema = import_zod11.z.object({
|
|
840
|
+
deciding: import_zod11.z.array(MyMealPlanListItemSchema),
|
|
841
|
+
upcoming: import_zod11.z.array(MyMealPlanListItemSchema),
|
|
842
|
+
recordNeeded: import_zod11.z.array(MyMealPlanListItemSchema),
|
|
843
|
+
past: import_zod11.z.array(MyMealPlanListItemSchema)
|
|
844
|
+
});
|
|
845
|
+
var MealPlanNotificationKindSchema = import_zod11.z.enum([
|
|
846
|
+
"MEAL_PLAN_INVITE_RECEIVED",
|
|
847
|
+
"MEAL_PLAN_INVITE_ACCEPTED",
|
|
848
|
+
"MEAL_PLAN_JOIN_REQUESTED",
|
|
849
|
+
"MEAL_PLAN_JOIN_REQUEST_ACCEPTED",
|
|
850
|
+
"MEAL_PLAN_NEARBY_FRIEND_EXPOSED",
|
|
851
|
+
"MEAL_PLAN_PARTICIPANT_JOINED",
|
|
852
|
+
"MEAL_PLAN_READY_COMPLETED",
|
|
853
|
+
"MEAL_PLAN_CONFIRMED",
|
|
854
|
+
"MEAL_PLAN_LOCKED",
|
|
855
|
+
"MEAL_PLAN_RECORD_NEEDED"
|
|
856
|
+
]);
|
|
857
|
+
var MealPlanNotificationPriorityChannelSchema = import_zod11.z.enum([
|
|
858
|
+
"HOME",
|
|
859
|
+
"NOTIFICATION_INBOX",
|
|
860
|
+
"FCM_PUSH",
|
|
861
|
+
"LIVE_ACTIVITY"
|
|
862
|
+
]);
|
|
863
|
+
var MealPlanLiveActivityBehaviorSchema = import_zod11.z.enum([
|
|
864
|
+
"NONE",
|
|
865
|
+
"START_OR_UPDATE",
|
|
866
|
+
"UPDATE",
|
|
867
|
+
"END"
|
|
868
|
+
]);
|
|
869
|
+
var MealPlanNotificationPriorityPolicyItemSchema = import_zod11.z.object({
|
|
870
|
+
kind: MealPlanNotificationKindSchema,
|
|
871
|
+
priority: import_zod11.z.number().int().min(0),
|
|
872
|
+
homePriority: import_zod11.z.number().int().min(0),
|
|
873
|
+
inboxPriority: import_zod11.z.number().int().min(0),
|
|
874
|
+
fcmPriority: import_zod11.z.number().int().min(0),
|
|
875
|
+
liveActivityPriority: import_zod11.z.number().int().min(0),
|
|
876
|
+
liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
|
|
877
|
+
foregroundToast: import_zod11.z.boolean()
|
|
878
|
+
});
|
|
879
|
+
var MealPlanNotificationSchema = import_zod11.z.object({
|
|
880
|
+
notificationId: import_zod11.z.string().min(1),
|
|
881
|
+
kind: MealPlanNotificationKindSchema,
|
|
882
|
+
mealPlanId: MealPlanIdSchema,
|
|
883
|
+
deepLink: import_zod11.z.string().min(1),
|
|
884
|
+
title: import_zod11.z.string().min(1),
|
|
885
|
+
message: import_zod11.z.string().min(1),
|
|
886
|
+
createdAt: ISODateTimeStringSchema,
|
|
887
|
+
readAt: ISODateTimeStringSchema.nullable()
|
|
888
|
+
});
|
|
889
|
+
|
|
890
|
+
// src/domain/push/push.schema.ts
|
|
891
|
+
var import_zod12 = require("zod");
|
|
892
|
+
var PushProviderSchema = import_zod12.z.enum([
|
|
893
|
+
"FCM",
|
|
894
|
+
"APNS_LIVE_ACTIVITY"
|
|
895
|
+
]);
|
|
896
|
+
var PushPlatformSchema = import_zod12.z.enum([
|
|
897
|
+
"WEB",
|
|
898
|
+
"ANDROID",
|
|
899
|
+
"IOS"
|
|
900
|
+
]);
|
|
901
|
+
var PushPermissionStatusSchema = import_zod12.z.enum([
|
|
902
|
+
"UNKNOWN",
|
|
903
|
+
"PROMPT",
|
|
904
|
+
"GRANTED",
|
|
905
|
+
"DENIED"
|
|
906
|
+
]);
|
|
907
|
+
var PushTokenStatusSchema = import_zod12.z.enum([
|
|
908
|
+
"ACTIVE",
|
|
909
|
+
"REVOKED",
|
|
910
|
+
"DISABLED"
|
|
911
|
+
]);
|
|
912
|
+
var RegisterPushTokenRequestSchema = import_zod12.z.object({
|
|
913
|
+
provider: PushProviderSchema.default("FCM"),
|
|
914
|
+
platform: PushPlatformSchema,
|
|
915
|
+
token: import_zod12.z.string().min(10),
|
|
916
|
+
deviceId: import_zod12.z.string().min(1).max(128),
|
|
917
|
+
appVersion: import_zod12.z.string().min(1).max(64).optional(),
|
|
918
|
+
buildNumber: import_zod12.z.string().min(1).max(64).optional(),
|
|
919
|
+
permissionStatus: PushPermissionStatusSchema
|
|
920
|
+
});
|
|
921
|
+
var RevokePushTokenRequestSchema = import_zod12.z.object({
|
|
922
|
+
provider: PushProviderSchema.default("FCM"),
|
|
923
|
+
token: import_zod12.z.string().min(10).optional(),
|
|
924
|
+
deviceId: import_zod12.z.string().min(1).max(128).optional()
|
|
925
|
+
});
|
|
926
|
+
var PushTokenResponseSchema = import_zod12.z.object({
|
|
927
|
+
pushTokenId: import_zod12.z.string().uuid(),
|
|
928
|
+
provider: PushProviderSchema,
|
|
929
|
+
platform: PushPlatformSchema,
|
|
930
|
+
deviceId: import_zod12.z.string(),
|
|
931
|
+
status: PushTokenStatusSchema,
|
|
932
|
+
permissionStatus: PushPermissionStatusSchema,
|
|
933
|
+
appVersion: import_zod12.z.string().nullable(),
|
|
934
|
+
buildNumber: import_zod12.z.string().nullable(),
|
|
935
|
+
lastSeenAt: ISODateTimeStringSchema,
|
|
936
|
+
revokedAt: ISODateTimeStringSchema.nullable()
|
|
937
|
+
});
|
|
938
|
+
var PushPayloadSchemaVersionSchema = import_zod12.z.literal("2026-06-17");
|
|
939
|
+
var MealPlanPushPayloadDataSchema = import_zod12.z.object({
|
|
940
|
+
schemaVersion: PushPayloadSchemaVersionSchema,
|
|
941
|
+
notificationId: import_zod12.z.string().min(1),
|
|
942
|
+
kind: MealPlanNotificationKindSchema,
|
|
943
|
+
mealPlanId: MealPlanIdSchema,
|
|
944
|
+
deepLink: import_zod12.z.string().min(1),
|
|
945
|
+
title: import_zod12.z.string().min(1),
|
|
946
|
+
body: import_zod12.z.string().min(1),
|
|
947
|
+
fcmPriority: import_zod12.z.coerce.number().int().min(0),
|
|
948
|
+
liveActivityPriority: import_zod12.z.coerce.number().int().min(0),
|
|
949
|
+
liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
|
|
950
|
+
});
|
|
951
|
+
var PushDeliveryStatusSchema = import_zod12.z.enum([
|
|
952
|
+
"PENDING",
|
|
953
|
+
"SENT",
|
|
954
|
+
"FAILED",
|
|
955
|
+
"SKIPPED"
|
|
956
|
+
]);
|
|
957
|
+
var PushDeliveryAttemptResultSchema = import_zod12.z.enum([
|
|
958
|
+
"SENT",
|
|
959
|
+
"FAILED",
|
|
960
|
+
"SKIPPED"
|
|
961
|
+
]);
|
|
962
|
+
var PushDeliveryAttemptSummarySchema = import_zod12.z.object({
|
|
963
|
+
attemptId: import_zod12.z.string().uuid(),
|
|
964
|
+
outboxId: import_zod12.z.string().uuid(),
|
|
965
|
+
pushTokenId: import_zod12.z.string().uuid().nullable(),
|
|
966
|
+
provider: PushProviderSchema,
|
|
967
|
+
result: PushDeliveryAttemptResultSchema,
|
|
968
|
+
providerMessageId: import_zod12.z.string().nullable(),
|
|
969
|
+
errorCode: import_zod12.z.string().nullable(),
|
|
970
|
+
errorMessage: import_zod12.z.string().nullable(),
|
|
971
|
+
invalidToken: import_zod12.z.boolean(),
|
|
972
|
+
createdAt: ISODateTimeStringSchema
|
|
973
|
+
});
|
|
974
|
+
var PushDeliveryOutboxSummarySchema = import_zod12.z.object({
|
|
975
|
+
outboxId: import_zod12.z.string().uuid(),
|
|
976
|
+
notificationId: import_zod12.z.string().min(1),
|
|
977
|
+
memberId: import_zod12.z.number().int().positive(),
|
|
978
|
+
status: PushDeliveryStatusSchema,
|
|
979
|
+
attemptCount: import_zod12.z.number().int().min(0),
|
|
980
|
+
lastError: import_zod12.z.string().nullable(),
|
|
981
|
+
nextAttemptAt: ISODateTimeStringSchema.nullable(),
|
|
982
|
+
sentAt: ISODateTimeStringSchema.nullable(),
|
|
983
|
+
createdAt: ISODateTimeStringSchema
|
|
984
|
+
});
|
|
985
|
+
|
|
986
|
+
// src/domain/live-activity/live-activity.schema.ts
|
|
987
|
+
var MealPlanLiveActivityPlatformSchema = import_zod13.z.enum([
|
|
988
|
+
"IOS_LIVE_ACTIVITY",
|
|
989
|
+
"ANDROID_LIVE_UPDATE"
|
|
990
|
+
]);
|
|
991
|
+
var MealPlanLiveActivitySessionStatusSchema = import_zod13.z.enum([
|
|
992
|
+
"ACTIVE",
|
|
993
|
+
"ENDED",
|
|
994
|
+
"EXPIRED",
|
|
995
|
+
"DISABLED"
|
|
996
|
+
]);
|
|
997
|
+
var MealPlanLiveActivityUpdateStatusSchema = import_zod13.z.enum([
|
|
998
|
+
"PENDING",
|
|
999
|
+
"SENT",
|
|
1000
|
+
"FAILED",
|
|
1001
|
+
"SKIPPED"
|
|
1002
|
+
]);
|
|
1003
|
+
var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod13.z.object({
|
|
1004
|
+
platform: MealPlanLiveActivityPlatformSchema,
|
|
1005
|
+
deviceId: import_zod13.z.string().min(1).max(128),
|
|
1006
|
+
activityId: import_zod13.z.string().min(1).max(128),
|
|
1007
|
+
pushToken: import_zod13.z.string().min(10).optional(),
|
|
1008
|
+
appVersion: import_zod13.z.string().min(1).max(64).optional(),
|
|
1009
|
+
buildNumber: import_zod13.z.string().min(1).max(64).optional()
|
|
1010
|
+
});
|
|
1011
|
+
var EndMealPlanLiveActivitySessionRequestSchema = import_zod13.z.object({
|
|
1012
|
+
platform: MealPlanLiveActivityPlatformSchema.optional(),
|
|
1013
|
+
deviceId: import_zod13.z.string().min(1).max(128).optional(),
|
|
1014
|
+
activityId: import_zod13.z.string().min(1).max(128).optional()
|
|
1015
|
+
});
|
|
1016
|
+
var MealPlanLiveActivityStateSchema = import_zod13.z.object({
|
|
1017
|
+
mealPlanId: MealPlanIdSchema,
|
|
1018
|
+
title: import_zod13.z.string().min(1),
|
|
1019
|
+
status: import_zod13.z.string().min(1),
|
|
1020
|
+
scheduledAt: ISODateTimeStringSchema.nullable(),
|
|
1021
|
+
restaurantName: import_zod13.z.string().nullable(),
|
|
1022
|
+
placeName: import_zod13.z.string().nullable(),
|
|
1023
|
+
deepLink: import_zod13.z.string().min(1),
|
|
1024
|
+
progressLabel: import_zod13.z.string().min(1),
|
|
1025
|
+
updatedAt: ISODateTimeStringSchema
|
|
1026
|
+
});
|
|
1027
|
+
var MealPlanLiveActivitySessionResponseSchema = import_zod13.z.object({
|
|
1028
|
+
sessionId: import_zod13.z.string().uuid(),
|
|
1029
|
+
mealPlanId: MealPlanIdSchema,
|
|
1030
|
+
memberId: import_zod13.z.number().int().positive(),
|
|
1031
|
+
platform: MealPlanLiveActivityPlatformSchema,
|
|
1032
|
+
devicePlatform: PushPlatformSchema,
|
|
1033
|
+
deviceId: import_zod13.z.string(),
|
|
1034
|
+
activityId: import_zod13.z.string(),
|
|
1035
|
+
status: MealPlanLiveActivitySessionStatusSchema,
|
|
1036
|
+
appVersion: import_zod13.z.string().nullable(),
|
|
1037
|
+
buildNumber: import_zod13.z.string().nullable(),
|
|
1038
|
+
lastEventKind: MealPlanNotificationKindSchema.nullable(),
|
|
1039
|
+
lastBehavior: MealPlanLiveActivityBehaviorSchema.nullable(),
|
|
1040
|
+
lastUpdateStatus: MealPlanLiveActivityUpdateStatusSchema.nullable(),
|
|
1041
|
+
lastError: import_zod13.z.string().nullable(),
|
|
1042
|
+
startedAt: ISODateTimeStringSchema,
|
|
1043
|
+
endedAt: ISODateTimeStringSchema.nullable(),
|
|
1044
|
+
updatedAt: ISODateTimeStringSchema
|
|
1045
|
+
});
|
|
1046
|
+
var MealPlanLiveActivitySessionListResponseSchema = import_zod13.z.object({
|
|
1047
|
+
mealPlanId: MealPlanIdSchema,
|
|
1048
|
+
state: MealPlanLiveActivityStateSchema,
|
|
1049
|
+
sessions: import_zod13.z.array(MealPlanLiveActivitySessionResponseSchema)
|
|
1050
|
+
});
|
|
1051
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1052
|
+
0 && (module.exports = {
|
|
1053
|
+
EndMealPlanLiveActivitySessionRequestSchema,
|
|
1054
|
+
MealPlanLiveActivityPlatformSchema,
|
|
1055
|
+
MealPlanLiveActivitySessionListResponseSchema,
|
|
1056
|
+
MealPlanLiveActivitySessionResponseSchema,
|
|
1057
|
+
MealPlanLiveActivitySessionStatusSchema,
|
|
1058
|
+
MealPlanLiveActivityStateSchema,
|
|
1059
|
+
MealPlanLiveActivityUpdateStatusSchema,
|
|
1060
|
+
RegisterMealPlanLiveActivitySessionRequestSchema
|
|
1061
|
+
});
|