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