@kimdaegyu/babmukdang-shared 2.0.3 → 2.0.5
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-7FNZBMB2.js +364 -0
- package/dist/{chunk-7UZD4LBQ.js → chunk-ITXM3XFJ.js} +1 -3
- package/dist/{chunk-OPMBGBYS.js → chunk-S2Q64AFI.js} +16 -2
- package/dist/domain/common/index.cjs +0 -1
- package/dist/domain/common/index.js +2 -2
- package/dist/domain/index.cjs +303 -248
- package/dist/domain/index.d.cts +15 -3
- package/dist/domain/index.d.ts +15 -3
- package/dist/domain/index.js +17 -3
- package/dist/domain/live-activity/index.js +1 -1
- package/dist/domain/meal-plan/index.cjs +168 -112
- package/dist/domain/meal-plan/index.d.cts +1217 -1
- package/dist/domain/meal-plan/index.d.ts +1217 -1
- package/dist/domain/meal-plan/index.js +15 -1
- package/dist/index.cjs +296 -248
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-LEH6UFL7.js +0 -314
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CreateMealPlanVoteRequestSchema,
|
|
3
|
+
MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES,
|
|
4
|
+
MealPlanDecisionStageIdSchema,
|
|
5
|
+
MealPlanJoinRequestSummarySchema,
|
|
6
|
+
MealPlanNotificationSchema,
|
|
7
|
+
MealPlanResponseSchema,
|
|
8
|
+
MyMealPlanListItemSchema
|
|
9
|
+
} from "./chunk-GOOH2LGN.js";
|
|
10
|
+
import {
|
|
11
|
+
RestaurantSchema
|
|
12
|
+
} from "./chunk-7JYVBXKQ.js";
|
|
13
|
+
import {
|
|
14
|
+
MemberCoreSchema
|
|
15
|
+
} from "./chunk-C63TN7L3.js";
|
|
16
|
+
import {
|
|
17
|
+
ISODateTimeStringSchema
|
|
18
|
+
} from "./chunk-HRM3FQPL.js";
|
|
19
|
+
import {
|
|
20
|
+
ArticleIdSchema,
|
|
21
|
+
MealGroupIdSchema,
|
|
22
|
+
MealPlanIdSchema,
|
|
23
|
+
MealPlanShareLinkIdSchema,
|
|
24
|
+
MealPlanShareLinkTokenSchema,
|
|
25
|
+
MemberIdSchema
|
|
26
|
+
} from "./chunk-XMRYAG3V.js";
|
|
27
|
+
|
|
28
|
+
// src/domain/meal-plan/meal-plan-decision.candidate-key.ts
|
|
29
|
+
function getMealPlanDecisionCandidateKey(candidate) {
|
|
30
|
+
switch (candidate.stageType) {
|
|
31
|
+
case "DATE":
|
|
32
|
+
case "TIME":
|
|
33
|
+
return `${candidate.stageType}:${candidate.value}`;
|
|
34
|
+
case "AREA":
|
|
35
|
+
return `AREA:${candidate.value.locationId}`;
|
|
36
|
+
case "MENU":
|
|
37
|
+
return `MENU:${candidate.value.menuCandidateId}`;
|
|
38
|
+
case "RESTAURANT":
|
|
39
|
+
return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
|
|
40
|
+
case "FINAL_CONFIRMATION":
|
|
41
|
+
return "FINAL_CONFIRMATION:READY";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// src/domain/meal-plan/meal-plan.socket.ts
|
|
46
|
+
import { z } from "zod";
|
|
47
|
+
var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
|
|
48
|
+
var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
|
|
49
|
+
mealPlanId: MealPlanIdSchema,
|
|
50
|
+
stageId: MealPlanDecisionStageIdSchema,
|
|
51
|
+
guestSessionToken: z.string().min(1).optional()
|
|
52
|
+
});
|
|
53
|
+
var MealPlanDecisionVoteSocketErrorSchema = z.object({
|
|
54
|
+
code: z.string().min(1),
|
|
55
|
+
message: z.string().min(1)
|
|
56
|
+
});
|
|
57
|
+
var MealPlanDecisionVoteSocketSuccessAckSchema = z.object({
|
|
58
|
+
ok: z.literal(true),
|
|
59
|
+
mealPlan: MealPlanResponseSchema
|
|
60
|
+
});
|
|
61
|
+
var MealPlanDecisionVoteSocketFailureAckSchema = z.object({
|
|
62
|
+
ok: z.literal(false),
|
|
63
|
+
error: MealPlanDecisionVoteSocketErrorSchema
|
|
64
|
+
});
|
|
65
|
+
var MealPlanDecisionVoteSocketAckSchema = z.discriminatedUnion("ok", [
|
|
66
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
67
|
+
MealPlanDecisionVoteSocketFailureAckSchema
|
|
68
|
+
]);
|
|
69
|
+
|
|
70
|
+
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
71
|
+
import { z as z2 } from "zod";
|
|
72
|
+
var CreateMealPlanShareLinkRequestSchema = z2.object({
|
|
73
|
+
expiresAt: ISODateTimeStringSchema.optional(),
|
|
74
|
+
guestJoinEnabled: z2.boolean().default(true)
|
|
75
|
+
});
|
|
76
|
+
var MealPlanShareLinkSummarySchema = z2.object({
|
|
77
|
+
shareLinkId: MealPlanShareLinkIdSchema,
|
|
78
|
+
mealPlanId: MealPlanIdSchema,
|
|
79
|
+
token: MealPlanShareLinkTokenSchema,
|
|
80
|
+
url: z2.string().url(),
|
|
81
|
+
expiresAt: ISODateTimeStringSchema,
|
|
82
|
+
guestJoinEnabled: z2.boolean(),
|
|
83
|
+
createdAt: ISODateTimeStringSchema
|
|
84
|
+
});
|
|
85
|
+
var MealPlanSharePreviewResponseSchema = z2.object({
|
|
86
|
+
mealPlanId: MealPlanIdSchema,
|
|
87
|
+
token: MealPlanShareLinkTokenSchema,
|
|
88
|
+
title: z2.string(),
|
|
89
|
+
ownerName: z2.string(),
|
|
90
|
+
participantCount: z2.number().int().min(1),
|
|
91
|
+
expiresAt: ISODateTimeStringSchema,
|
|
92
|
+
guestJoinEnabled: z2.boolean()
|
|
93
|
+
});
|
|
94
|
+
var JoinMealPlanGuestRequestSchema = z2.object({
|
|
95
|
+
nickname: z2.string().min(1).max(50),
|
|
96
|
+
password: z2.string().min(1).max(100).optional()
|
|
97
|
+
});
|
|
98
|
+
var JoinMealPlanGuestResponseSchema = z2.object({
|
|
99
|
+
mealPlanId: MealPlanIdSchema,
|
|
100
|
+
guestId: z2.string().min(1),
|
|
101
|
+
sessionToken: z2.string().min(1)
|
|
102
|
+
});
|
|
103
|
+
var MealPlanGuestSessionQuerySchema = z2.object({
|
|
104
|
+
sessionToken: z2.string().min(1)
|
|
105
|
+
});
|
|
106
|
+
var MealPlanGuestSessionResponseSchema = z2.object({
|
|
107
|
+
mealPlan: MealPlanResponseSchema,
|
|
108
|
+
token: MealPlanShareLinkTokenSchema,
|
|
109
|
+
guestId: z2.string().min(1),
|
|
110
|
+
nickname: z2.string().min(1).max(50),
|
|
111
|
+
sessionToken: z2.string().min(1)
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// src/domain/meal-plan/meal-group.schema.ts
|
|
115
|
+
import { z as z3 } from "zod";
|
|
116
|
+
var MealGroupMemberRoleSchema = z3.enum([
|
|
117
|
+
"OWNER",
|
|
118
|
+
"MEMBER"
|
|
119
|
+
]);
|
|
120
|
+
var MealGroupMemberSchema = z3.object({
|
|
121
|
+
member: MemberCoreSchema,
|
|
122
|
+
role: MealGroupMemberRoleSchema,
|
|
123
|
+
joinedAt: ISODateTimeStringSchema
|
|
124
|
+
});
|
|
125
|
+
var MealGroupResponseSchema = z3.object({
|
|
126
|
+
mealGroupId: MealGroupIdSchema,
|
|
127
|
+
name: z3.string().min(1).max(50),
|
|
128
|
+
owner: MemberCoreSchema,
|
|
129
|
+
profileImageUrl: z3.string().url().nullable(),
|
|
130
|
+
members: z3.array(MealGroupMemberSchema),
|
|
131
|
+
recentMealPlanIds: z3.array(MealPlanIdSchema),
|
|
132
|
+
createdAt: ISODateTimeStringSchema,
|
|
133
|
+
updatedAt: ISODateTimeStringSchema
|
|
134
|
+
});
|
|
135
|
+
var CreateMealGroupRequestSchema = z3.object({
|
|
136
|
+
name: z3.string().min(1).max(50),
|
|
137
|
+
memberIds: z3.array(z3.number().int().positive()).min(1),
|
|
138
|
+
profileImageUrl: z3.string().url().nullable().optional(),
|
|
139
|
+
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
140
|
+
});
|
|
141
|
+
var StartMealPlanFromGroupRequestSchema = z3.object({
|
|
142
|
+
title: z3.string().min(1).max(100).optional()
|
|
143
|
+
});
|
|
144
|
+
var AddMealGroupMemberRequestSchema = z3.object({
|
|
145
|
+
memberId: z3.number().int().positive(),
|
|
146
|
+
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
147
|
+
});
|
|
148
|
+
var UpdateMealGroupMemberRoleRequestSchema = z3.object({
|
|
149
|
+
role: MealGroupMemberRoleSchema
|
|
150
|
+
});
|
|
151
|
+
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
152
|
+
var MealGroupPreferenceSummarySchema = z3.object({
|
|
153
|
+
mealGroupId: MealGroupIdSchema,
|
|
154
|
+
frequentMenuCategories: z3.array(z3.object({ label: z3.string(), count: z3.number().int().min(0) })),
|
|
155
|
+
frequentRestaurants: z3.array(z3.object({ restaurantName: z3.string(), count: z3.number().int().min(0) })),
|
|
156
|
+
recentMenuCategories: z3.array(z3.string()),
|
|
157
|
+
recommendationContext: z3.object({
|
|
158
|
+
preferredMenuCategories: z3.array(z3.string()),
|
|
159
|
+
excludedMenuCategories: z3.array(z3.string()),
|
|
160
|
+
candidateMenuCategories: z3.array(z3.string())
|
|
161
|
+
})
|
|
162
|
+
});
|
|
163
|
+
var MealGroupHistoryResponseSchema = z3.array(MealGroupHistoryItemSchema);
|
|
164
|
+
|
|
165
|
+
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
166
|
+
import { z as z4 } from "zod";
|
|
167
|
+
var HomeMealPlanActionKindSchema = z4.enum([
|
|
168
|
+
"CONTINUE_DECISION",
|
|
169
|
+
"TODAY_UPCOMING",
|
|
170
|
+
"RECORD_NEEDED",
|
|
171
|
+
"RESPOND_JOIN_REQUEST",
|
|
172
|
+
"NOTIFICATION_FOLLOW_UP"
|
|
173
|
+
]);
|
|
174
|
+
var HomeMealPlanActionCardSchema = z4.object({
|
|
175
|
+
actionId: z4.string().min(1),
|
|
176
|
+
kind: HomeMealPlanActionKindSchema,
|
|
177
|
+
priority: z4.number().int().min(0),
|
|
178
|
+
title: z4.string().min(1),
|
|
179
|
+
description: z4.string().min(1),
|
|
180
|
+
primaryAction: z4.object({
|
|
181
|
+
label: z4.string().min(1),
|
|
182
|
+
href: z4.string().min(1)
|
|
183
|
+
}),
|
|
184
|
+
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
185
|
+
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
186
|
+
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
187
|
+
});
|
|
188
|
+
var HomeMealPlanDashboardResponseSchema = z4.object({
|
|
189
|
+
generatedAt: ISODateTimeStringSchema,
|
|
190
|
+
inProgress: z4.array(MyMealPlanListItemSchema),
|
|
191
|
+
today: z4.array(MyMealPlanListItemSchema),
|
|
192
|
+
recordNeeded: z4.array(MyMealPlanListItemSchema),
|
|
193
|
+
pendingJoinRequests: z4.array(MealPlanJoinRequestSummarySchema),
|
|
194
|
+
unreadNotifications: z4.array(MealPlanNotificationSchema).default([]),
|
|
195
|
+
nextActions: z4.array(HomeMealPlanActionCardSchema)
|
|
196
|
+
});
|
|
197
|
+
var MealMapLayerSchema = z4.enum([
|
|
198
|
+
"MY_MEAL_PLAN_PLACE",
|
|
199
|
+
"NEARBY_FRIEND_MEAL_PLAN",
|
|
200
|
+
"FRIEND_RECORD_LOCATION",
|
|
201
|
+
"RESTAURANT_CANDIDATE"
|
|
202
|
+
]);
|
|
203
|
+
var MealMapMarkerBaseSchema = z4.object({
|
|
204
|
+
markerId: z4.string().min(1),
|
|
205
|
+
lat: z4.number().min(-90).max(90),
|
|
206
|
+
lng: z4.number().min(-180).max(180),
|
|
207
|
+
title: z4.string().min(1),
|
|
208
|
+
subtitle: z4.string().nullable(),
|
|
209
|
+
href: z4.string().min(1).nullable(),
|
|
210
|
+
mealPlanId: MealPlanIdSchema.nullable(),
|
|
211
|
+
articleId: ArticleIdSchema.nullable(),
|
|
212
|
+
restaurant: RestaurantSchema.nullable(),
|
|
213
|
+
distanceMeters: z4.number().int().min(0).nullable(),
|
|
214
|
+
updatedAt: ISODateTimeStringSchema
|
|
215
|
+
});
|
|
216
|
+
var MealMapMyMealPlanPlaceMetadataSchema = z4.object({
|
|
217
|
+
ownerId: MemberIdSchema.nullable().default(null),
|
|
218
|
+
status: z4.string().min(1),
|
|
219
|
+
participantCount: z4.number().int().min(1),
|
|
220
|
+
source: z4.string().min(1)
|
|
221
|
+
});
|
|
222
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = z4.object({
|
|
223
|
+
ownerId: MemberIdSchema.nullable().default(null),
|
|
224
|
+
ownerName: z4.string().min(1),
|
|
225
|
+
participantCount: z4.number().int().min(1),
|
|
226
|
+
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
227
|
+
source: z4.string().min(1)
|
|
228
|
+
});
|
|
229
|
+
var MealMapFriendRecordLocationMetadataSchema = z4.object({
|
|
230
|
+
authorId: MemberIdSchema.nullable().default(null),
|
|
231
|
+
authorName: z4.string().min(1),
|
|
232
|
+
imageUrl: z4.string().nullable().default(null),
|
|
233
|
+
mealDate: z4.string().min(1)
|
|
234
|
+
});
|
|
235
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = z4.enum([
|
|
236
|
+
"OWNER_ONLY",
|
|
237
|
+
"STAGE_ALREADY_COMPLETED",
|
|
238
|
+
"MEAL_PLAN_NOT_MUTABLE"
|
|
239
|
+
]);
|
|
240
|
+
var MealMapRestaurantCandidateMetadataSchema = z4.object({
|
|
241
|
+
stageId: MealPlanDecisionStageIdSchema,
|
|
242
|
+
ownerId: MemberIdSchema.nullable().default(null),
|
|
243
|
+
status: z4.string().min(1),
|
|
244
|
+
source: z4.enum(["search", "fallback", "manual"]).default("search"),
|
|
245
|
+
stageStatus: z4.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
|
|
246
|
+
canVote: z4.boolean().default(false),
|
|
247
|
+
canCompleteStage: z4.boolean().default(false),
|
|
248
|
+
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
249
|
+
});
|
|
250
|
+
var MealMapMarkerSchema = z4.discriminatedUnion("layer", [
|
|
251
|
+
MealMapMarkerBaseSchema.extend({
|
|
252
|
+
layer: z4.literal("MY_MEAL_PLAN_PLACE"),
|
|
253
|
+
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
254
|
+
}),
|
|
255
|
+
MealMapMarkerBaseSchema.extend({
|
|
256
|
+
layer: z4.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
257
|
+
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
258
|
+
}),
|
|
259
|
+
MealMapMarkerBaseSchema.extend({
|
|
260
|
+
layer: z4.literal("FRIEND_RECORD_LOCATION"),
|
|
261
|
+
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
262
|
+
}),
|
|
263
|
+
MealMapMarkerBaseSchema.extend({
|
|
264
|
+
layer: z4.literal("RESTAURANT_CANDIDATE"),
|
|
265
|
+
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
266
|
+
})
|
|
267
|
+
]);
|
|
268
|
+
var MealMapQuerySchema = z4.object({
|
|
269
|
+
friendRecordDays: z4.coerce.number().int().min(1).max(90).optional().default(7)
|
|
270
|
+
});
|
|
271
|
+
var MealMapResponseSchema = z4.object({
|
|
272
|
+
generatedAt: ISODateTimeStringSchema,
|
|
273
|
+
center: z4.object({
|
|
274
|
+
lat: z4.number().min(-90).max(90),
|
|
275
|
+
lng: z4.number().min(-180).max(180),
|
|
276
|
+
source: z4.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
|
|
277
|
+
}),
|
|
278
|
+
layers: z4.object({
|
|
279
|
+
myMealPlanPlaces: z4.array(MealMapMarkerSchema),
|
|
280
|
+
nearbyFriendMealPlans: z4.array(MealMapMarkerSchema),
|
|
281
|
+
friendRecordLocations: z4.array(MealMapMarkerSchema),
|
|
282
|
+
restaurantCandidates: z4.array(MealMapMarkerSchema)
|
|
283
|
+
})
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
// src/domain/meal-plan/meal-plan-notification-priority.ts
|
|
287
|
+
var DEFAULT_POLICY = MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES.MEAL_PLAN_PARTICIPANT_JOINED;
|
|
288
|
+
function getMealPlanNotificationPriorityPolicy(kind) {
|
|
289
|
+
return MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES[kind] ?? DEFAULT_POLICY;
|
|
290
|
+
}
|
|
291
|
+
function getMealPlanNotificationPriority(kind, channel = "HOME") {
|
|
292
|
+
const policy = getMealPlanNotificationPriorityPolicy(kind);
|
|
293
|
+
switch (channel) {
|
|
294
|
+
case "HOME":
|
|
295
|
+
return policy.homePriority;
|
|
296
|
+
case "NOTIFICATION_INBOX":
|
|
297
|
+
return policy.inboxPriority;
|
|
298
|
+
case "FCM_PUSH":
|
|
299
|
+
return policy.fcmPriority;
|
|
300
|
+
case "LIVE_ACTIVITY":
|
|
301
|
+
return policy.liveActivityPriority;
|
|
302
|
+
default:
|
|
303
|
+
return policy.priority;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
function getMealPlanLiveActivityBehavior(kind) {
|
|
307
|
+
return getMealPlanNotificationPriorityPolicy(kind).liveActivityBehavior;
|
|
308
|
+
}
|
|
309
|
+
function shouldShowForegroundToast(kind) {
|
|
310
|
+
return getMealPlanNotificationPriorityPolicy(kind).foregroundToast;
|
|
311
|
+
}
|
|
312
|
+
function compareMealPlanNotificationsByPriority(channel) {
|
|
313
|
+
return (a, b) => {
|
|
314
|
+
const unreadDelta = Number(Boolean(a.readAt)) - Number(Boolean(b.readAt));
|
|
315
|
+
if (unreadDelta !== 0) return unreadDelta;
|
|
316
|
+
const priorityDelta = getMealPlanNotificationPriority(a.kind, channel) - getMealPlanNotificationPriority(b.kind, channel);
|
|
317
|
+
if (priorityDelta !== 0) return priorityDelta;
|
|
318
|
+
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export {
|
|
323
|
+
getMealPlanDecisionCandidateKey,
|
|
324
|
+
MealPlanDecisionVoteSocketEvent,
|
|
325
|
+
MealPlanDecisionVoteSocketPayloadSchema,
|
|
326
|
+
MealPlanDecisionVoteSocketErrorSchema,
|
|
327
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
328
|
+
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
329
|
+
MealPlanDecisionVoteSocketAckSchema,
|
|
330
|
+
CreateMealPlanShareLinkRequestSchema,
|
|
331
|
+
MealPlanShareLinkSummarySchema,
|
|
332
|
+
MealPlanSharePreviewResponseSchema,
|
|
333
|
+
JoinMealPlanGuestRequestSchema,
|
|
334
|
+
JoinMealPlanGuestResponseSchema,
|
|
335
|
+
MealPlanGuestSessionQuerySchema,
|
|
336
|
+
MealPlanGuestSessionResponseSchema,
|
|
337
|
+
MealGroupMemberRoleSchema,
|
|
338
|
+
MealGroupMemberSchema,
|
|
339
|
+
MealGroupResponseSchema,
|
|
340
|
+
CreateMealGroupRequestSchema,
|
|
341
|
+
StartMealPlanFromGroupRequestSchema,
|
|
342
|
+
AddMealGroupMemberRequestSchema,
|
|
343
|
+
UpdateMealGroupMemberRoleRequestSchema,
|
|
344
|
+
MealGroupHistoryItemSchema,
|
|
345
|
+
MealGroupPreferenceSummarySchema,
|
|
346
|
+
MealGroupHistoryResponseSchema,
|
|
347
|
+
HomeMealPlanActionKindSchema,
|
|
348
|
+
HomeMealPlanActionCardSchema,
|
|
349
|
+
HomeMealPlanDashboardResponseSchema,
|
|
350
|
+
MealMapLayerSchema,
|
|
351
|
+
MealMapMyMealPlanPlaceMetadataSchema,
|
|
352
|
+
MealMapNearbyFriendMealPlanMetadataSchema,
|
|
353
|
+
MealMapFriendRecordLocationMetadataSchema,
|
|
354
|
+
MealMapRestaurantCandidateCompletionBlockedReasonSchema,
|
|
355
|
+
MealMapRestaurantCandidateMetadataSchema,
|
|
356
|
+
MealMapMarkerSchema,
|
|
357
|
+
MealMapQuerySchema,
|
|
358
|
+
MealMapResponseSchema,
|
|
359
|
+
getMealPlanNotificationPriorityPolicy,
|
|
360
|
+
getMealPlanNotificationPriority,
|
|
361
|
+
getMealPlanLiveActivityBehavior,
|
|
362
|
+
shouldShowForegroundToast,
|
|
363
|
+
compareMealPlanNotificationsByPriority
|
|
364
|
+
};
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
MealPlanSharePreviewResponseSchema,
|
|
58
58
|
StartMealPlanFromGroupRequestSchema,
|
|
59
59
|
UpdateMealGroupMemberRoleRequestSchema
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7FNZBMB2.js";
|
|
61
61
|
import {
|
|
62
62
|
PushTokenResponseSchema,
|
|
63
63
|
RegisterPushTokenRequestSchema,
|
|
@@ -71,7 +71,6 @@ import {
|
|
|
71
71
|
CreateMealPlanJoinRequestSchema,
|
|
72
72
|
CreateMealPlanRequestSchema,
|
|
73
73
|
CreateMealPlanResponseSchema,
|
|
74
|
-
CreateMealPlanVoteRequestSchema,
|
|
75
74
|
ExposeMealPlanToNearbyFriendsRequestSchema,
|
|
76
75
|
ExposeMealPlanToNearbyFriendsResponseSchema,
|
|
77
76
|
MealPlanChatMessageListResponseSchema,
|
|
@@ -321,7 +320,6 @@ var apiContract = {
|
|
|
321
320
|
requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
322
321
|
acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
|
|
323
322
|
rejectJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/reject", pathParams: mealPlanJoinRequestIdParam, response: NoContentSchema }),
|
|
324
|
-
vote: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/votes", pathParams: mealPlanDecisionStageIdParam, body: CreateMealPlanVoteRequestSchema, response: MealPlanResponseSchema }),
|
|
325
323
|
completeStage: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/complete", pathParams: mealPlanDecisionStageIdParam, body: CompleteMealPlanDecisionStageRequestSchema, response: MealPlanResponseSchema }),
|
|
326
324
|
decisionProgress: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/decision-progress", pathParams: mealPlanIdParam, response: MealPlanDecisionProgressSchema }),
|
|
327
325
|
reopenDecisionTask: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen", pathParams: mealPlanDecisionTaskKeyParam, body: ReopenMealPlanDecisionTaskRequestSchema, response: MealPlanResponseSchema }),
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
toReferralCode,
|
|
35
35
|
toRestaurantId,
|
|
36
36
|
toSubscriptionId
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ITXM3XFJ.js";
|
|
38
38
|
import {
|
|
39
39
|
FriendMealItemResponseSchema,
|
|
40
40
|
FriendMealQuerySchema,
|
|
@@ -128,6 +128,12 @@ import {
|
|
|
128
128
|
MealMapResponseSchema,
|
|
129
129
|
MealMapRestaurantCandidateCompletionBlockedReasonSchema,
|
|
130
130
|
MealMapRestaurantCandidateMetadataSchema,
|
|
131
|
+
MealPlanDecisionVoteSocketAckSchema,
|
|
132
|
+
MealPlanDecisionVoteSocketErrorSchema,
|
|
133
|
+
MealPlanDecisionVoteSocketEvent,
|
|
134
|
+
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
135
|
+
MealPlanDecisionVoteSocketPayloadSchema,
|
|
136
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
131
137
|
MealPlanGuestSessionQuerySchema,
|
|
132
138
|
MealPlanGuestSessionResponseSchema,
|
|
133
139
|
MealPlanShareLinkSummarySchema,
|
|
@@ -135,11 +141,12 @@ import {
|
|
|
135
141
|
StartMealPlanFromGroupRequestSchema,
|
|
136
142
|
UpdateMealGroupMemberRoleRequestSchema,
|
|
137
143
|
compareMealPlanNotificationsByPriority,
|
|
144
|
+
getMealPlanDecisionCandidateKey,
|
|
138
145
|
getMealPlanLiveActivityBehavior,
|
|
139
146
|
getMealPlanNotificationPriority,
|
|
140
147
|
getMealPlanNotificationPriorityPolicy,
|
|
141
148
|
shouldShowForegroundToast
|
|
142
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-7FNZBMB2.js";
|
|
143
150
|
import {
|
|
144
151
|
MealPlanPushPayloadDataSchema,
|
|
145
152
|
PushDeliveryAttemptResultSchema,
|
|
@@ -461,6 +468,12 @@ __export(domain_exports, {
|
|
|
461
468
|
MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
|
|
462
469
|
MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
|
|
463
470
|
MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
|
|
471
|
+
MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
|
|
472
|
+
MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
|
|
473
|
+
MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
|
|
474
|
+
MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
|
|
475
|
+
MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
|
|
476
|
+
MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
464
477
|
MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
|
|
465
478
|
MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
|
|
466
479
|
MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
|
|
@@ -601,6 +614,7 @@ __export(domain_exports, {
|
|
|
601
614
|
apiContract: () => apiContract,
|
|
602
615
|
compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
|
|
603
616
|
endpoint: () => endpoint,
|
|
617
|
+
getMealPlanDecisionCandidateKey: () => getMealPlanDecisionCandidateKey,
|
|
604
618
|
getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
|
|
605
619
|
getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
|
|
606
620
|
getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
|
|
@@ -1782,7 +1782,6 @@ var apiContract = {
|
|
|
1782
1782
|
requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
1783
1783
|
acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
|
|
1784
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
1785
|
completeStage: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/complete", pathParams: mealPlanDecisionStageIdParam, body: CompleteMealPlanDecisionStageRequestSchema, response: MealPlanResponseSchema }),
|
|
1787
1786
|
decisionProgress: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/decision-progress", pathParams: mealPlanIdParam, response: MealPlanDecisionProgressSchema }),
|
|
1788
1787
|
reopenDecisionTask: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen", pathParams: mealPlanDecisionTaskKeyParam, body: ReopenMealPlanDecisionTaskRequestSchema, response: MealPlanResponseSchema }),
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
toReferralCode,
|
|
35
35
|
toRestaurantId,
|
|
36
36
|
toSubscriptionId
|
|
37
|
-
} from "../../chunk-
|
|
37
|
+
} from "../../chunk-ITXM3XFJ.js";
|
|
38
38
|
import "../../chunk-6O2YTBVC.js";
|
|
39
39
|
import "../../chunk-NJTV6DRT.js";
|
|
40
40
|
import "../../chunk-RZPNVRRS.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
import "../../chunk-QFPVAJ2U.js";
|
|
48
48
|
import "../../chunk-VD3VGLBQ.js";
|
|
49
49
|
import "../../chunk-3TY6OPD3.js";
|
|
50
|
-
import "../../chunk-
|
|
50
|
+
import "../../chunk-7FNZBMB2.js";
|
|
51
51
|
import "../../chunk-WYBFBLQC.js";
|
|
52
52
|
import "../../chunk-GOOH2LGN.js";
|
|
53
53
|
import "../../chunk-7JYVBXKQ.js";
|