@kimdaegyu/babmukdang-shared 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-IPANLE7B.js → chunk-2W4HVSYK.js} +83 -71
- package/dist/{chunk-TOXRHSD6.js → chunk-7JYVBXKQ.js} +1 -1
- package/dist/chunk-BSJC7OVV.js +10 -0
- package/dist/{chunk-YV734GYZ.js → chunk-C63TN7L3.js} +9 -26
- package/dist/{chunk-Q4BPFDVB.js → chunk-CGFW5LYV.js} +6 -34
- package/dist/{chunk-EX7S5FI5.js → chunk-CUOJE3ER.js} +4 -4
- package/dist/{chunk-QUAG5LF5.js → chunk-EQLAVUHF.js} +6 -13
- package/dist/chunk-FODWQLEY.js +346 -0
- package/dist/{chunk-GESEM4IA.js → chunk-HHU5TRDP.js} +6 -17
- package/dist/{chunk-EYZU5HPG.js → chunk-HRM3FQPL.js} +1 -4
- package/dist/{chunk-P3MYMK34.js → chunk-IRAFNZDL.js} +12 -20
- package/dist/chunk-IW342TDD.js +457 -0
- package/dist/{chunk-DRCY5UNQ.js → chunk-Q6Y2NBB6.js} +6 -11
- package/dist/{chunk-G7TITUHT.js → chunk-QFPVAJ2U.js} +1 -1
- package/dist/{chunk-TIOX7OHA.js → chunk-QPTK7F7Y.js} +27 -61
- package/dist/{chunk-65DWKLP6.js → chunk-RZPNVRRS.js} +5 -14
- package/dist/{chunk-6R5CCY5Q.js → chunk-XMRYAG3V.js} +0 -2
- package/dist/domain/article/index.cjs +13 -41
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +8 -25
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +734 -1332
- package/dist/domain/common/index.js +15 -14
- package/dist/domain/food/index.cjs +5 -28
- package/dist/domain/food/index.d.cts +4 -4
- package/dist/domain/food/index.d.ts +4 -4
- package/dist/domain/food/index.js +7 -5
- package/dist/domain/friend/index.cjs +10 -35
- package/dist/domain/friend/index.js +4 -4
- package/dist/domain/index.cjs +772 -1476
- package/dist/domain/index.d.cts +15 -5
- package/dist/domain/index.d.ts +15 -5
- package/dist/domain/index.js +85 -73
- package/dist/domain/live-activity/index.cjs +422 -371
- package/dist/domain/live-activity/index.js +9 -8
- package/dist/domain/meal/index.cjs +11 -38
- package/dist/domain/meal/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +499 -426
- package/dist/domain/meal-plan/index.d.cts +1355 -50
- package/dist/domain/meal-plan/index.d.ts +1355 -50
- package/dist/domain/meal-plan/index.js +19 -8
- package/dist/domain/member/index.cjs +8 -25
- package/dist/domain/member/index.js +2 -2
- package/dist/domain/promotion/index.cjs +4 -16
- package/dist/domain/promotion/index.js +3 -3
- package/dist/domain/push/index.cjs +392 -341
- package/dist/domain/push/index.js +7 -6
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +766 -1475
- package/dist/index.js +17 -16
- package/package.json +1 -1
- package/dist/chunk-3BLXZW4U.js +0 -338
- package/dist/chunk-KREAZLLH.js +0 -1062
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CreateMealPlanVoteRequestSchema,
|
|
3
|
+
MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES,
|
|
4
|
+
MealPlanDecisionStageIdSchema,
|
|
5
|
+
MealPlanJoinRequestSummarySchema,
|
|
6
|
+
MealPlanNotificationSchema,
|
|
7
|
+
MealPlanResponseSchema,
|
|
8
|
+
MyMealPlanListItemSchema
|
|
9
|
+
} from "./chunk-QPTK7F7Y.js";
|
|
10
|
+
import {
|
|
11
|
+
RestaurantSchema
|
|
12
|
+
} from "./chunk-7JYVBXKQ.js";
|
|
13
|
+
import {
|
|
14
|
+
ISODateTimeStringSchema
|
|
15
|
+
} from "./chunk-HRM3FQPL.js";
|
|
16
|
+
import {
|
|
17
|
+
MemberCoreSchema
|
|
18
|
+
} from "./chunk-C63TN7L3.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.socket.ts
|
|
29
|
+
import { z } from "zod";
|
|
30
|
+
var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
|
|
31
|
+
var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
|
|
32
|
+
mealPlanId: MealPlanIdSchema,
|
|
33
|
+
stageId: MealPlanDecisionStageIdSchema,
|
|
34
|
+
guestSessionToken: z.string().min(1).optional()
|
|
35
|
+
});
|
|
36
|
+
var MealPlanDecisionVoteSocketErrorSchema = z.object({
|
|
37
|
+
code: z.string().min(1),
|
|
38
|
+
message: z.string().min(1)
|
|
39
|
+
});
|
|
40
|
+
var MealPlanDecisionVoteSocketSuccessAckSchema = z.object({
|
|
41
|
+
ok: z.literal(true),
|
|
42
|
+
mealPlan: MealPlanResponseSchema
|
|
43
|
+
});
|
|
44
|
+
var MealPlanDecisionVoteSocketFailureAckSchema = z.object({
|
|
45
|
+
ok: z.literal(false),
|
|
46
|
+
error: MealPlanDecisionVoteSocketErrorSchema
|
|
47
|
+
});
|
|
48
|
+
var MealPlanDecisionVoteSocketAckSchema = z.discriminatedUnion("ok", [
|
|
49
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
50
|
+
MealPlanDecisionVoteSocketFailureAckSchema
|
|
51
|
+
]);
|
|
52
|
+
|
|
53
|
+
// src/domain/meal-plan/meal-plan-share-link.schema.ts
|
|
54
|
+
import { z as z2 } from "zod";
|
|
55
|
+
var CreateMealPlanShareLinkRequestSchema = z2.object({
|
|
56
|
+
expiresAt: ISODateTimeStringSchema.optional(),
|
|
57
|
+
guestJoinEnabled: z2.boolean().default(true)
|
|
58
|
+
});
|
|
59
|
+
var MealPlanShareLinkSummarySchema = z2.object({
|
|
60
|
+
shareLinkId: MealPlanShareLinkIdSchema,
|
|
61
|
+
mealPlanId: MealPlanIdSchema,
|
|
62
|
+
token: MealPlanShareLinkTokenSchema,
|
|
63
|
+
url: z2.string().url(),
|
|
64
|
+
expiresAt: ISODateTimeStringSchema,
|
|
65
|
+
guestJoinEnabled: z2.boolean(),
|
|
66
|
+
createdAt: ISODateTimeStringSchema
|
|
67
|
+
});
|
|
68
|
+
var MealPlanSharePreviewResponseSchema = z2.object({
|
|
69
|
+
mealPlanId: MealPlanIdSchema,
|
|
70
|
+
token: MealPlanShareLinkTokenSchema,
|
|
71
|
+
title: z2.string(),
|
|
72
|
+
ownerName: z2.string(),
|
|
73
|
+
participantCount: z2.number().int().min(1),
|
|
74
|
+
expiresAt: ISODateTimeStringSchema,
|
|
75
|
+
guestJoinEnabled: z2.boolean()
|
|
76
|
+
});
|
|
77
|
+
var JoinMealPlanGuestRequestSchema = z2.object({
|
|
78
|
+
nickname: z2.string().min(1).max(50),
|
|
79
|
+
password: z2.string().min(1).max(100).optional()
|
|
80
|
+
});
|
|
81
|
+
var JoinMealPlanGuestResponseSchema = z2.object({
|
|
82
|
+
mealPlanId: MealPlanIdSchema,
|
|
83
|
+
guestId: z2.string().min(1),
|
|
84
|
+
sessionToken: z2.string().min(1)
|
|
85
|
+
});
|
|
86
|
+
var MealPlanGuestSessionQuerySchema = z2.object({
|
|
87
|
+
sessionToken: z2.string().min(1)
|
|
88
|
+
});
|
|
89
|
+
var MealPlanGuestSessionResponseSchema = z2.object({
|
|
90
|
+
mealPlan: MealPlanResponseSchema,
|
|
91
|
+
token: MealPlanShareLinkTokenSchema,
|
|
92
|
+
guestId: z2.string().min(1),
|
|
93
|
+
nickname: z2.string().min(1).max(50),
|
|
94
|
+
sessionToken: z2.string().min(1)
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
// src/domain/meal-plan/meal-group.schema.ts
|
|
98
|
+
import { z as z3 } from "zod";
|
|
99
|
+
var MealGroupMemberRoleSchema = z3.enum([
|
|
100
|
+
"OWNER",
|
|
101
|
+
"MEMBER"
|
|
102
|
+
]);
|
|
103
|
+
var MealGroupMemberSchema = z3.object({
|
|
104
|
+
member: MemberCoreSchema,
|
|
105
|
+
role: MealGroupMemberRoleSchema,
|
|
106
|
+
joinedAt: ISODateTimeStringSchema
|
|
107
|
+
});
|
|
108
|
+
var MealGroupResponseSchema = z3.object({
|
|
109
|
+
mealGroupId: MealGroupIdSchema,
|
|
110
|
+
name: z3.string().min(1).max(50),
|
|
111
|
+
owner: MemberCoreSchema,
|
|
112
|
+
profileImageUrl: z3.string().url().nullable(),
|
|
113
|
+
members: z3.array(MealGroupMemberSchema),
|
|
114
|
+
recentMealPlanIds: z3.array(MealPlanIdSchema),
|
|
115
|
+
createdAt: ISODateTimeStringSchema,
|
|
116
|
+
updatedAt: ISODateTimeStringSchema
|
|
117
|
+
});
|
|
118
|
+
var CreateMealGroupRequestSchema = z3.object({
|
|
119
|
+
name: z3.string().min(1).max(50),
|
|
120
|
+
memberIds: z3.array(z3.number().int().positive()).min(1),
|
|
121
|
+
profileImageUrl: z3.string().url().nullable().optional(),
|
|
122
|
+
sourceMealPlanId: MealPlanIdSchema.optional()
|
|
123
|
+
});
|
|
124
|
+
var StartMealPlanFromGroupRequestSchema = z3.object({
|
|
125
|
+
title: z3.string().min(1).max(100).optional()
|
|
126
|
+
});
|
|
127
|
+
var AddMealGroupMemberRequestSchema = z3.object({
|
|
128
|
+
memberId: z3.number().int().positive(),
|
|
129
|
+
role: MealGroupMemberRoleSchema.default("MEMBER")
|
|
130
|
+
});
|
|
131
|
+
var UpdateMealGroupMemberRoleRequestSchema = z3.object({
|
|
132
|
+
role: MealGroupMemberRoleSchema
|
|
133
|
+
});
|
|
134
|
+
var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
|
|
135
|
+
var MealGroupPreferenceSummarySchema = z3.object({
|
|
136
|
+
mealGroupId: MealGroupIdSchema,
|
|
137
|
+
frequentMenuCategories: z3.array(z3.object({ label: z3.string(), count: z3.number().int().min(0) })),
|
|
138
|
+
frequentRestaurants: z3.array(z3.object({ restaurantName: z3.string(), count: z3.number().int().min(0) })),
|
|
139
|
+
recentMenuCategories: z3.array(z3.string()),
|
|
140
|
+
recommendationContext: z3.object({
|
|
141
|
+
preferredMenuCategories: z3.array(z3.string()),
|
|
142
|
+
excludedMenuCategories: z3.array(z3.string()),
|
|
143
|
+
candidateMenuCategories: z3.array(z3.string())
|
|
144
|
+
})
|
|
145
|
+
});
|
|
146
|
+
var MealGroupHistoryResponseSchema = z3.array(MealGroupHistoryItemSchema);
|
|
147
|
+
|
|
148
|
+
// src/domain/meal-plan/meal-plan-home-map.schema.ts
|
|
149
|
+
import { z as z4 } from "zod";
|
|
150
|
+
var HomeMealPlanActionKindSchema = z4.enum([
|
|
151
|
+
"CONTINUE_DECISION",
|
|
152
|
+
"TODAY_UPCOMING",
|
|
153
|
+
"RECORD_NEEDED",
|
|
154
|
+
"RESPOND_JOIN_REQUEST",
|
|
155
|
+
"NOTIFICATION_FOLLOW_UP"
|
|
156
|
+
]);
|
|
157
|
+
var HomeMealPlanActionCardSchema = z4.object({
|
|
158
|
+
actionId: z4.string().min(1),
|
|
159
|
+
kind: HomeMealPlanActionKindSchema,
|
|
160
|
+
priority: z4.number().int().min(0),
|
|
161
|
+
title: z4.string().min(1),
|
|
162
|
+
description: z4.string().min(1),
|
|
163
|
+
primaryAction: z4.object({
|
|
164
|
+
label: z4.string().min(1),
|
|
165
|
+
href: z4.string().min(1)
|
|
166
|
+
}),
|
|
167
|
+
mealPlan: MyMealPlanListItemSchema.nullable(),
|
|
168
|
+
joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
|
|
169
|
+
notification: MealPlanNotificationSchema.nullable().default(null)
|
|
170
|
+
});
|
|
171
|
+
var HomeMealPlanDashboardResponseSchema = z4.object({
|
|
172
|
+
generatedAt: ISODateTimeStringSchema,
|
|
173
|
+
inProgress: z4.array(MyMealPlanListItemSchema),
|
|
174
|
+
today: z4.array(MyMealPlanListItemSchema),
|
|
175
|
+
recordNeeded: z4.array(MyMealPlanListItemSchema),
|
|
176
|
+
pendingJoinRequests: z4.array(MealPlanJoinRequestSummarySchema),
|
|
177
|
+
unreadNotifications: z4.array(MealPlanNotificationSchema).default([]),
|
|
178
|
+
nextActions: z4.array(HomeMealPlanActionCardSchema)
|
|
179
|
+
});
|
|
180
|
+
var MealMapLayerSchema = z4.enum([
|
|
181
|
+
"MY_MEAL_PLAN_PLACE",
|
|
182
|
+
"NEARBY_FRIEND_MEAL_PLAN",
|
|
183
|
+
"FRIEND_RECORD_LOCATION",
|
|
184
|
+
"RESTAURANT_CANDIDATE"
|
|
185
|
+
]);
|
|
186
|
+
var MealMapMarkerBaseSchema = z4.object({
|
|
187
|
+
markerId: z4.string().min(1),
|
|
188
|
+
lat: z4.number().min(-90).max(90),
|
|
189
|
+
lng: z4.number().min(-180).max(180),
|
|
190
|
+
title: z4.string().min(1),
|
|
191
|
+
subtitle: z4.string().nullable(),
|
|
192
|
+
href: z4.string().min(1).nullable(),
|
|
193
|
+
mealPlanId: MealPlanIdSchema.nullable(),
|
|
194
|
+
articleId: ArticleIdSchema.nullable(),
|
|
195
|
+
restaurant: RestaurantSchema.nullable(),
|
|
196
|
+
distanceMeters: z4.number().int().min(0).nullable(),
|
|
197
|
+
updatedAt: ISODateTimeStringSchema
|
|
198
|
+
});
|
|
199
|
+
var MealMapMyMealPlanPlaceMetadataSchema = z4.object({
|
|
200
|
+
ownerId: MemberIdSchema.nullable().default(null),
|
|
201
|
+
status: z4.string().min(1),
|
|
202
|
+
participantCount: z4.number().int().min(1),
|
|
203
|
+
source: z4.string().min(1)
|
|
204
|
+
});
|
|
205
|
+
var MealMapNearbyFriendMealPlanMetadataSchema = z4.object({
|
|
206
|
+
ownerId: MemberIdSchema.nullable().default(null),
|
|
207
|
+
ownerName: z4.string().min(1),
|
|
208
|
+
participantCount: z4.number().int().min(1),
|
|
209
|
+
expiresAt: ISODateTimeStringSchema.nullable(),
|
|
210
|
+
source: z4.string().min(1)
|
|
211
|
+
});
|
|
212
|
+
var MealMapFriendRecordLocationMetadataSchema = z4.object({
|
|
213
|
+
authorId: MemberIdSchema.nullable().default(null),
|
|
214
|
+
authorName: z4.string().min(1),
|
|
215
|
+
imageUrl: z4.string().nullable().default(null),
|
|
216
|
+
mealDate: z4.string().min(1)
|
|
217
|
+
});
|
|
218
|
+
var MealMapRestaurantCandidateCompletionBlockedReasonSchema = z4.enum([
|
|
219
|
+
"OWNER_ONLY",
|
|
220
|
+
"STAGE_ALREADY_COMPLETED",
|
|
221
|
+
"MEAL_PLAN_NOT_MUTABLE"
|
|
222
|
+
]);
|
|
223
|
+
var MealMapRestaurantCandidateMetadataSchema = z4.object({
|
|
224
|
+
stageId: MealPlanDecisionStageIdSchema,
|
|
225
|
+
ownerId: MemberIdSchema.nullable().default(null),
|
|
226
|
+
status: z4.string().min(1),
|
|
227
|
+
source: z4.enum(["search", "fallback", "manual"]).default("search"),
|
|
228
|
+
stageStatus: z4.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
|
|
229
|
+
canVote: z4.boolean().default(false),
|
|
230
|
+
canCompleteStage: z4.boolean().default(false),
|
|
231
|
+
completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
|
|
232
|
+
});
|
|
233
|
+
var MealMapMarkerSchema = z4.discriminatedUnion("layer", [
|
|
234
|
+
MealMapMarkerBaseSchema.extend({
|
|
235
|
+
layer: z4.literal("MY_MEAL_PLAN_PLACE"),
|
|
236
|
+
metadata: MealMapMyMealPlanPlaceMetadataSchema
|
|
237
|
+
}),
|
|
238
|
+
MealMapMarkerBaseSchema.extend({
|
|
239
|
+
layer: z4.literal("NEARBY_FRIEND_MEAL_PLAN"),
|
|
240
|
+
metadata: MealMapNearbyFriendMealPlanMetadataSchema
|
|
241
|
+
}),
|
|
242
|
+
MealMapMarkerBaseSchema.extend({
|
|
243
|
+
layer: z4.literal("FRIEND_RECORD_LOCATION"),
|
|
244
|
+
metadata: MealMapFriendRecordLocationMetadataSchema
|
|
245
|
+
}),
|
|
246
|
+
MealMapMarkerBaseSchema.extend({
|
|
247
|
+
layer: z4.literal("RESTAURANT_CANDIDATE"),
|
|
248
|
+
metadata: MealMapRestaurantCandidateMetadataSchema
|
|
249
|
+
})
|
|
250
|
+
]);
|
|
251
|
+
var MealMapQuerySchema = z4.object({
|
|
252
|
+
friendRecordDays: z4.coerce.number().int().min(1).max(90).optional().default(7)
|
|
253
|
+
});
|
|
254
|
+
var MealMapResponseSchema = z4.object({
|
|
255
|
+
generatedAt: ISODateTimeStringSchema,
|
|
256
|
+
center: z4.object({
|
|
257
|
+
lat: z4.number().min(-90).max(90),
|
|
258
|
+
lng: z4.number().min(-180).max(180),
|
|
259
|
+
source: z4.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
|
|
260
|
+
}),
|
|
261
|
+
layers: z4.object({
|
|
262
|
+
myMealPlanPlaces: z4.array(MealMapMarkerSchema),
|
|
263
|
+
nearbyFriendMealPlans: z4.array(MealMapMarkerSchema),
|
|
264
|
+
friendRecordLocations: z4.array(MealMapMarkerSchema),
|
|
265
|
+
restaurantCandidates: z4.array(MealMapMarkerSchema)
|
|
266
|
+
})
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
// src/domain/meal-plan/meal-plan-notification-priority.ts
|
|
270
|
+
var DEFAULT_POLICY = MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES.MEAL_PLAN_PARTICIPANT_JOINED;
|
|
271
|
+
function getMealPlanNotificationPriorityPolicy(kind) {
|
|
272
|
+
return MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES[kind] ?? DEFAULT_POLICY;
|
|
273
|
+
}
|
|
274
|
+
function getMealPlanNotificationPriority(kind, channel = "HOME") {
|
|
275
|
+
const policy = getMealPlanNotificationPriorityPolicy(kind);
|
|
276
|
+
switch (channel) {
|
|
277
|
+
case "HOME":
|
|
278
|
+
return policy.homePriority;
|
|
279
|
+
case "NOTIFICATION_INBOX":
|
|
280
|
+
return policy.inboxPriority;
|
|
281
|
+
case "FCM_PUSH":
|
|
282
|
+
return policy.fcmPriority;
|
|
283
|
+
case "LIVE_ACTIVITY":
|
|
284
|
+
return policy.liveActivityPriority;
|
|
285
|
+
default:
|
|
286
|
+
return policy.priority;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function getMealPlanLiveActivityBehavior(kind) {
|
|
290
|
+
return getMealPlanNotificationPriorityPolicy(kind).liveActivityBehavior;
|
|
291
|
+
}
|
|
292
|
+
function shouldShowForegroundToast(kind) {
|
|
293
|
+
return getMealPlanNotificationPriorityPolicy(kind).foregroundToast;
|
|
294
|
+
}
|
|
295
|
+
function compareMealPlanNotificationsByPriority(channel) {
|
|
296
|
+
return (a, b) => {
|
|
297
|
+
const unreadDelta = Number(Boolean(a.readAt)) - Number(Boolean(b.readAt));
|
|
298
|
+
if (unreadDelta !== 0) return unreadDelta;
|
|
299
|
+
const priorityDelta = getMealPlanNotificationPriority(a.kind, channel) - getMealPlanNotificationPriority(b.kind, channel);
|
|
300
|
+
if (priorityDelta !== 0) return priorityDelta;
|
|
301
|
+
return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export {
|
|
306
|
+
MealPlanDecisionVoteSocketEvent,
|
|
307
|
+
MealPlanDecisionVoteSocketPayloadSchema,
|
|
308
|
+
MealPlanDecisionVoteSocketErrorSchema,
|
|
309
|
+
MealPlanDecisionVoteSocketSuccessAckSchema,
|
|
310
|
+
MealPlanDecisionVoteSocketFailureAckSchema,
|
|
311
|
+
MealPlanDecisionVoteSocketAckSchema,
|
|
312
|
+
CreateMealPlanShareLinkRequestSchema,
|
|
313
|
+
MealPlanShareLinkSummarySchema,
|
|
314
|
+
MealPlanSharePreviewResponseSchema,
|
|
315
|
+
JoinMealPlanGuestRequestSchema,
|
|
316
|
+
JoinMealPlanGuestResponseSchema,
|
|
317
|
+
MealPlanGuestSessionQuerySchema,
|
|
318
|
+
MealPlanGuestSessionResponseSchema,
|
|
319
|
+
MealGroupMemberRoleSchema,
|
|
320
|
+
MealGroupMemberSchema,
|
|
321
|
+
MealGroupResponseSchema,
|
|
322
|
+
CreateMealGroupRequestSchema,
|
|
323
|
+
StartMealPlanFromGroupRequestSchema,
|
|
324
|
+
AddMealGroupMemberRequestSchema,
|
|
325
|
+
UpdateMealGroupMemberRoleRequestSchema,
|
|
326
|
+
MealGroupHistoryItemSchema,
|
|
327
|
+
MealGroupPreferenceSummarySchema,
|
|
328
|
+
MealGroupHistoryResponseSchema,
|
|
329
|
+
HomeMealPlanActionKindSchema,
|
|
330
|
+
HomeMealPlanActionCardSchema,
|
|
331
|
+
HomeMealPlanDashboardResponseSchema,
|
|
332
|
+
MealMapLayerSchema,
|
|
333
|
+
MealMapMyMealPlanPlaceMetadataSchema,
|
|
334
|
+
MealMapNearbyFriendMealPlanMetadataSchema,
|
|
335
|
+
MealMapFriendRecordLocationMetadataSchema,
|
|
336
|
+
MealMapRestaurantCandidateCompletionBlockedReasonSchema,
|
|
337
|
+
MealMapRestaurantCandidateMetadataSchema,
|
|
338
|
+
MealMapMarkerSchema,
|
|
339
|
+
MealMapQuerySchema,
|
|
340
|
+
MealMapResponseSchema,
|
|
341
|
+
getMealPlanNotificationPriorityPolicy,
|
|
342
|
+
getMealPlanNotificationPriority,
|
|
343
|
+
getMealPlanLiveActivityBehavior,
|
|
344
|
+
shouldShowForegroundToast,
|
|
345
|
+
compareMealPlanNotificationsByPriority
|
|
346
|
+
};
|
|
@@ -1,36 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MealPlanLiveActivityBehaviorSchema,
|
|
3
3
|
MealPlanNotificationKindSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QPTK7F7Y.js";
|
|
5
5
|
import {
|
|
6
6
|
ISODateTimeStringSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HRM3FQPL.js";
|
|
8
8
|
import {
|
|
9
9
|
MealPlanIdSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XMRYAG3V.js";
|
|
11
11
|
|
|
12
12
|
// src/domain/push/push.schema.ts
|
|
13
13
|
import { z } from "zod";
|
|
14
|
-
var PushProviderSchema = z.enum([
|
|
15
|
-
|
|
16
|
-
"APNS_LIVE_ACTIVITY"
|
|
17
|
-
]);
|
|
18
|
-
var PushPlatformSchema = z.enum([
|
|
19
|
-
"WEB",
|
|
20
|
-
"ANDROID",
|
|
21
|
-
"IOS"
|
|
22
|
-
]);
|
|
14
|
+
var PushProviderSchema = z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
|
|
15
|
+
var PushPlatformSchema = z.enum(["WEB", "ANDROID", "IOS"]);
|
|
23
16
|
var PushPermissionStatusSchema = z.enum([
|
|
24
17
|
"UNKNOWN",
|
|
25
18
|
"PROMPT",
|
|
26
19
|
"GRANTED",
|
|
27
20
|
"DENIED"
|
|
28
21
|
]);
|
|
29
|
-
var PushTokenStatusSchema = z.enum([
|
|
30
|
-
"ACTIVE",
|
|
31
|
-
"REVOKED",
|
|
32
|
-
"DISABLED"
|
|
33
|
-
]);
|
|
22
|
+
var PushTokenStatusSchema = z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
|
|
34
23
|
var RegisterPushTokenRequestSchema = z.object({
|
|
35
24
|
provider: PushProviderSchema.default("FCM"),
|
|
36
25
|
platform: PushPlatformSchema,
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
4
4
|
var ISODateStringSchema = z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
5
|
-
var ISODateTimeStringSchema = z.string().datetime({
|
|
6
|
-
offset: true,
|
|
7
|
-
message: "Expected ISO datetime string"
|
|
8
|
-
});
|
|
5
|
+
var ISODateTimeStringSchema = z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
|
|
9
6
|
var TimeHHmmStringSchema = z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
10
7
|
|
|
11
8
|
export {
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RestaurantSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7JYVBXKQ.js";
|
|
4
|
+
import {
|
|
5
|
+
ISODateStringSchema,
|
|
6
|
+
ISODateTimeStringSchema
|
|
7
|
+
} from "./chunk-HRM3FQPL.js";
|
|
4
8
|
import {
|
|
5
9
|
MemberCoreSchema,
|
|
6
10
|
UploadPresignImageRequestSchema,
|
|
7
11
|
UploadPresignImageResponseSchema
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
ISODateStringSchema,
|
|
11
|
-
ISODateTimeStringSchema
|
|
12
|
-
} from "./chunk-EYZU5HPG.js";
|
|
12
|
+
} from "./chunk-C63TN7L3.js";
|
|
13
13
|
import {
|
|
14
14
|
ArticleIdSchema,
|
|
15
15
|
CommentIdSchema,
|
|
16
16
|
FoodSchema,
|
|
17
17
|
MealPlanIdSchema,
|
|
18
|
-
MemberIdSchema
|
|
19
|
-
|
|
20
|
-
} from "./chunk-6R5CCY5Q.js";
|
|
18
|
+
MemberIdSchema
|
|
19
|
+
} from "./chunk-XMRYAG3V.js";
|
|
21
20
|
|
|
22
21
|
// src/domain/article/article.schema.ts
|
|
23
22
|
import { z as z2 } from "zod";
|
|
@@ -36,21 +35,14 @@ var PageMetaSchema = z.object({
|
|
|
36
35
|
hasNext: z.boolean(),
|
|
37
36
|
hasPrevious: z.boolean()
|
|
38
37
|
});
|
|
39
|
-
var PageResponseSchema =
|
|
38
|
+
var PageResponseSchema = (item) => z.object({
|
|
40
39
|
items: z.array(item),
|
|
41
40
|
meta: PageMetaSchema
|
|
42
|
-
})
|
|
43
|
-
var SortDirectionSchema = z.enum([
|
|
44
|
-
"asc",
|
|
45
|
-
"desc"
|
|
46
|
-
]);
|
|
41
|
+
});
|
|
42
|
+
var SortDirectionSchema = z.enum(["asc", "desc"]);
|
|
47
43
|
|
|
48
44
|
// src/domain/article/article.schema.ts
|
|
49
|
-
var ArticleSortBySchema = z2.enum([
|
|
50
|
-
"createdAt",
|
|
51
|
-
"likeCount",
|
|
52
|
-
"commentCount"
|
|
53
|
-
]);
|
|
45
|
+
var ArticleSortBySchema = z2.enum(["createdAt", "likeCount", "commentCount"]);
|
|
54
46
|
var ArticleListQuerySchema = PageQuerySchema.extend({
|
|
55
47
|
sortBy: ArticleSortBySchema.optional().default("createdAt"),
|
|
56
48
|
direction: SortDirectionSchema.optional().default("desc")
|