@kimdaegyu/babmukdang-shared 2.0.5 → 2.0.7
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-3TY6OPD3.js → chunk-5FPYU6NF.js} +2 -2
- package/dist/{chunk-ITXM3XFJ.js → chunk-D4J2TV26.js} +4 -4
- package/dist/{chunk-7FNZBMB2.js → chunk-ENXVY4SR.js} +7 -2
- package/dist/{chunk-S2Q64AFI.js → chunk-FWGPEHI4.js} +11 -5
- package/dist/{chunk-WYBFBLQC.js → chunk-KWJE3RYS.js} +1 -1
- package/dist/{chunk-GOOH2LGN.js → chunk-LXRTJPS5.js} +19 -5
- package/dist/domain/common/index.cjs +17 -5
- package/dist/domain/common/index.js +5 -5
- package/dist/domain/index.cjs +28 -6
- package/dist/domain/index.d.cts +7 -3
- package/dist/domain/index.d.ts +7 -3
- package/dist/domain/index.js +12 -6
- package/dist/domain/live-activity/index.cjs +17 -5
- package/dist/domain/live-activity/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +28 -6
- package/dist/domain/meal-plan/index.d.cts +132 -110
- package/dist/domain/meal-plan/index.d.ts +132 -110
- package/dist/domain/meal-plan/index.js +8 -2
- package/dist/domain/push/index.cjs +17 -5
- package/dist/domain/push/index.js +2 -2
- package/dist/index.cjs +25 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PushPlatformSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KWJE3RYS.js";
|
|
4
4
|
import {
|
|
5
5
|
MealPlanLiveActivityBehaviorSchema,
|
|
6
6
|
MealPlanNotificationKindSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LXRTJPS5.js";
|
|
8
8
|
import {
|
|
9
9
|
ISODateTimeStringSchema
|
|
10
10
|
} from "./chunk-HRM3FQPL.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
MealPlanLiveActivitySessionListResponseSchema,
|
|
39
39
|
MealPlanLiveActivitySessionResponseSchema,
|
|
40
40
|
RegisterMealPlanLiveActivitySessionRequestSchema
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-5FPYU6NF.js";
|
|
42
42
|
import {
|
|
43
43
|
AddMealGroupMemberRequestSchema,
|
|
44
44
|
CreateMealGroupRequestSchema,
|
|
@@ -57,12 +57,12 @@ import {
|
|
|
57
57
|
MealPlanSharePreviewResponseSchema,
|
|
58
58
|
StartMealPlanFromGroupRequestSchema,
|
|
59
59
|
UpdateMealGroupMemberRoleRequestSchema
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ENXVY4SR.js";
|
|
61
61
|
import {
|
|
62
62
|
PushTokenResponseSchema,
|
|
63
63
|
RegisterPushTokenRequestSchema,
|
|
64
64
|
RevokePushTokenRequestSchema
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-KWJE3RYS.js";
|
|
66
66
|
import {
|
|
67
67
|
CompleteMealPlanDecisionStageRequestSchema,
|
|
68
68
|
ConfirmMealPlanDecisionSnapshotRequestSchema,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
ReopenMealPlanDecisionTaskRequestSchema,
|
|
87
87
|
SendMealPlanInviteResponseSchema,
|
|
88
88
|
UpdateMealPlanContextRequestSchema
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-LXRTJPS5.js";
|
|
90
90
|
import {
|
|
91
91
|
CreateProfileRequestSchema,
|
|
92
92
|
MemberFoodPreferenceSchema,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
MealPlanNotificationSchema,
|
|
7
7
|
MealPlanResponseSchema,
|
|
8
8
|
MyMealPlanListItemSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LXRTJPS5.js";
|
|
10
10
|
import {
|
|
11
11
|
RestaurantSchema
|
|
12
12
|
} from "./chunk-7JYVBXKQ.js";
|
|
@@ -34,12 +34,16 @@ function getMealPlanDecisionCandidateKey(candidate) {
|
|
|
34
34
|
case "AREA":
|
|
35
35
|
return `AREA:${candidate.value.locationId}`;
|
|
36
36
|
case "MENU":
|
|
37
|
-
return `MENU:${candidate.value.
|
|
37
|
+
return `MENU:${candidate.value.menu.code}`;
|
|
38
38
|
case "RESTAURANT":
|
|
39
39
|
return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
|
|
40
40
|
case "FINAL_CONFIRMATION":
|
|
41
41
|
return "FINAL_CONFIRMATION:READY";
|
|
42
42
|
}
|
|
43
|
+
return `UNKNOWN:${JSON.stringify(candidate)}`;
|
|
44
|
+
}
|
|
45
|
+
function getMealPlanRestaurantProvisionCacheKey(area, menu) {
|
|
46
|
+
return `restaurant-search:${getMealPlanDecisionCandidateKey(area)}:${getMealPlanDecisionCandidateKey(menu)}`;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
// src/domain/meal-plan/meal-plan.socket.ts
|
|
@@ -321,6 +325,7 @@ function compareMealPlanNotificationsByPriority(channel) {
|
|
|
321
325
|
|
|
322
326
|
export {
|
|
323
327
|
getMealPlanDecisionCandidateKey,
|
|
328
|
+
getMealPlanRestaurantProvisionCacheKey,
|
|
324
329
|
MealPlanDecisionVoteSocketEvent,
|
|
325
330
|
MealPlanDecisionVoteSocketPayloadSchema,
|
|
326
331
|
MealPlanDecisionVoteSocketErrorSchema,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
toReferralCode,
|
|
35
35
|
toRestaurantId,
|
|
36
36
|
toSubscriptionId
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-D4J2TV26.js";
|
|
38
38
|
import {
|
|
39
39
|
FriendMealItemResponseSchema,
|
|
40
40
|
FriendMealQuerySchema,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
MealPlanLiveActivityStateSchema,
|
|
104
104
|
MealPlanLiveActivityUpdateStatusSchema,
|
|
105
105
|
RegisterMealPlanLiveActivitySessionRequestSchema
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-5FPYU6NF.js";
|
|
107
107
|
import {
|
|
108
108
|
AddMealGroupMemberRequestSchema,
|
|
109
109
|
CreateMealGroupRequestSchema,
|
|
@@ -145,8 +145,9 @@ import {
|
|
|
145
145
|
getMealPlanLiveActivityBehavior,
|
|
146
146
|
getMealPlanNotificationPriority,
|
|
147
147
|
getMealPlanNotificationPriorityPolicy,
|
|
148
|
+
getMealPlanRestaurantProvisionCacheKey,
|
|
148
149
|
shouldShowForegroundToast
|
|
149
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-ENXVY4SR.js";
|
|
150
151
|
import {
|
|
151
152
|
MealPlanPushPayloadDataSchema,
|
|
152
153
|
PushDeliveryAttemptResultSchema,
|
|
@@ -161,7 +162,7 @@ import {
|
|
|
161
162
|
PushTokenStatusSchema,
|
|
162
163
|
RegisterPushTokenRequestSchema,
|
|
163
164
|
RevokePushTokenRequestSchema
|
|
164
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-KWJE3RYS.js";
|
|
165
166
|
import {
|
|
166
167
|
CompleteMealPlanDecisionStageRequestSchema,
|
|
167
168
|
ConfirmMealPlanDecisionSnapshotRequestSchema,
|
|
@@ -197,6 +198,7 @@ import {
|
|
|
197
198
|
MealPlanDecisionStageTypeSchema,
|
|
198
199
|
MealPlanDecisionTaskKeySchema,
|
|
199
200
|
MealPlanDecisionTaskProgressSchema,
|
|
201
|
+
MealPlanDecisionTaskReadyRequestSchema,
|
|
200
202
|
MealPlanDecisionTaskStatusSchema,
|
|
201
203
|
MealPlanGuestParticipantSchema,
|
|
202
204
|
MealPlanInviteListResponseSchema,
|
|
@@ -214,6 +216,7 @@ import {
|
|
|
214
216
|
MealPlanMenuCandidateIdSchema,
|
|
215
217
|
MealPlanMenuCandidateSchema,
|
|
216
218
|
MealPlanMenuCandidateSourceSchema,
|
|
219
|
+
MealPlanMenuRecommendationStateSchema,
|
|
217
220
|
MealPlanNearbyFriendExposureBatchSummarySchema,
|
|
218
221
|
MealPlanNearbyFriendExposureIdSchema,
|
|
219
222
|
MealPlanNearbyFriendExposureNotificationStatusSchema,
|
|
@@ -251,7 +254,7 @@ import {
|
|
|
251
254
|
SendMealPlanChatMessageRequestSchema,
|
|
252
255
|
SendMealPlanInviteResponseSchema,
|
|
253
256
|
UpdateMealPlanContextRequestSchema
|
|
254
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-LXRTJPS5.js";
|
|
255
258
|
import {
|
|
256
259
|
KakaoPlaceRawSchema,
|
|
257
260
|
RestaurantSchema
|
|
@@ -467,6 +470,7 @@ __export(domain_exports, {
|
|
|
467
470
|
MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
|
|
468
471
|
MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
|
|
469
472
|
MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
|
|
473
|
+
MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
|
|
470
474
|
MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
|
|
471
475
|
MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
|
|
472
476
|
MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
|
|
@@ -501,6 +505,7 @@ __export(domain_exports, {
|
|
|
501
505
|
MealPlanMenuCandidateIdSchema: () => MealPlanMenuCandidateIdSchema,
|
|
502
506
|
MealPlanMenuCandidateSchema: () => MealPlanMenuCandidateSchema,
|
|
503
507
|
MealPlanMenuCandidateSourceSchema: () => MealPlanMenuCandidateSourceSchema,
|
|
508
|
+
MealPlanMenuRecommendationStateSchema: () => MealPlanMenuRecommendationStateSchema,
|
|
504
509
|
MealPlanNearbyFriendExposureBatchIdSchema: () => MealPlanNearbyFriendExposureBatchIdSchema,
|
|
505
510
|
MealPlanNearbyFriendExposureBatchSummarySchema: () => MealPlanNearbyFriendExposureBatchSummarySchema,
|
|
506
511
|
MealPlanNearbyFriendExposureIdSchema: () => MealPlanNearbyFriendExposureIdSchema,
|
|
@@ -618,6 +623,7 @@ __export(domain_exports, {
|
|
|
618
623
|
getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
|
|
619
624
|
getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
|
|
620
625
|
getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
|
|
626
|
+
getMealPlanRestaurantProvisionCacheKey: () => getMealPlanRestaurantProvisionCacheKey,
|
|
621
627
|
makeApiResponseSchema: () => makeApiResponseSchema,
|
|
622
628
|
makeApiSuccessSchema: () => makeApiSuccessSchema,
|
|
623
629
|
shouldShowForegroundToast: () => shouldShowForegroundToast,
|
|
@@ -36,9 +36,7 @@ var MealPlanDecisionStageIdSchema = z.string().uuid().brand();
|
|
|
36
36
|
var MealPlanVoteIdSchema = z.string().uuid().brand();
|
|
37
37
|
var MealPlanLocationCandidateSourceSchema = z.enum([
|
|
38
38
|
"manual",
|
|
39
|
-
"map-marker",
|
|
40
39
|
"midpoint",
|
|
41
|
-
"user-location",
|
|
42
40
|
"search",
|
|
43
41
|
"recent-place",
|
|
44
42
|
"fallback"
|
|
@@ -65,8 +63,8 @@ var MealPlanMenuCandidateSchema = z.object({
|
|
|
65
63
|
menu: FoodSchema,
|
|
66
64
|
source: MealPlanMenuCandidateSourceSchema,
|
|
67
65
|
score: z.number().default(0),
|
|
68
|
-
imageUrl: z.string().min(1).nullable().
|
|
69
|
-
image: FoodCodeManifestImageSchema.nullable().
|
|
66
|
+
imageUrl: z.string().min(1).nullable().optional(),
|
|
67
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
70
68
|
createdAt: ISODateTimeStringSchema
|
|
71
69
|
});
|
|
72
70
|
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
@@ -103,8 +101,15 @@ var MealPlanRestaurantSearchStateSchema = z.object({
|
|
|
103
101
|
candidateCount: z.number().int().min(0),
|
|
104
102
|
errorMessage: z.string().nullable().default(null)
|
|
105
103
|
});
|
|
104
|
+
var MealPlanMenuRecommendationStateSchema = z.object({
|
|
105
|
+
preferenceKey: z.string().min(1),
|
|
106
|
+
generatedFromHash: z.string().min(1),
|
|
107
|
+
generatedAt: ISODateTimeStringSchema,
|
|
108
|
+
candidateCount: z.number().int().min(0)
|
|
109
|
+
});
|
|
106
110
|
var MealPlanDecisionStageMetadataSchema = z.object({
|
|
107
|
-
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
111
|
+
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional(),
|
|
112
|
+
menuRecommendation: MealPlanMenuRecommendationStateSchema.optional()
|
|
108
113
|
}).catchall(z.unknown());
|
|
109
114
|
var MealPlanVoteTypeSchema = z.enum([
|
|
110
115
|
"PICK",
|
|
@@ -180,6 +185,7 @@ var MealPlanDecisionTaskKeySchema = z.enum([
|
|
|
180
185
|
var MealPlanDecisionTaskStatusSchema = z.enum([
|
|
181
186
|
"LOCKED",
|
|
182
187
|
"OPEN",
|
|
188
|
+
"READY",
|
|
183
189
|
"RESOLVED",
|
|
184
190
|
"STALE"
|
|
185
191
|
]);
|
|
@@ -203,6 +209,7 @@ var MealPlanDecisionReasonSchema = z.enum([
|
|
|
203
209
|
"TOP_PICKED_MENU",
|
|
204
210
|
"TOP_PICKED_RESTAURANT",
|
|
205
211
|
"OWNER_CONFIRMED",
|
|
212
|
+
"TASK_ALL_READY",
|
|
206
213
|
"MANUAL_SELECTION"
|
|
207
214
|
]);
|
|
208
215
|
var MealPlanDecisionActorTypeSchema = z.enum(["MEMBER", "GUEST", "SYSTEM"]);
|
|
@@ -228,6 +235,8 @@ var MealPlanDecisionSnapshotSchema = z.object({
|
|
|
228
235
|
var MealPlanDecisionTaskProgressSchema = z.object({
|
|
229
236
|
taskKey: MealPlanDecisionTaskKeySchema,
|
|
230
237
|
status: MealPlanDecisionTaskStatusSchema,
|
|
238
|
+
readyCount: z.number().int().min(0),
|
|
239
|
+
participantCount: z.number().int().min(0),
|
|
231
240
|
blockers: z.array(z.string()).default([]),
|
|
232
241
|
updatedAt: ISODateTimeStringSchema
|
|
233
242
|
});
|
|
@@ -241,6 +250,9 @@ var MealPlanDecisionProgressSchema = z.object({
|
|
|
241
250
|
version: z.number().int().min(0),
|
|
242
251
|
updatedAt: ISODateTimeStringSchema
|
|
243
252
|
});
|
|
253
|
+
var MealPlanDecisionTaskReadyRequestSchema = z.object({
|
|
254
|
+
isReady: z.boolean()
|
|
255
|
+
});
|
|
244
256
|
var ReopenMealPlanDecisionTaskRequestSchema = z.object({
|
|
245
257
|
reason: z.string().max(500).optional()
|
|
246
258
|
});
|
|
@@ -753,6 +765,7 @@ export {
|
|
|
753
765
|
MealPlanDecisionStageStatusSchema,
|
|
754
766
|
MealPlanRestaurantSearchStatusSchema,
|
|
755
767
|
MealPlanRestaurantSearchStateSchema,
|
|
768
|
+
MealPlanMenuRecommendationStateSchema,
|
|
756
769
|
MealPlanDecisionStageMetadataSchema,
|
|
757
770
|
MealPlanVoteTypeSchema,
|
|
758
771
|
MealPlanDecisionCandidateSchema,
|
|
@@ -772,6 +785,7 @@ export {
|
|
|
772
785
|
MealPlanDecisionSnapshotSchema,
|
|
773
786
|
MealPlanDecisionTaskProgressSchema,
|
|
774
787
|
MealPlanDecisionProgressSchema,
|
|
788
|
+
MealPlanDecisionTaskReadyRequestSchema,
|
|
775
789
|
ReopenMealPlanDecisionTaskRequestSchema,
|
|
776
790
|
ConfirmMealPlanDecisionSnapshotRequestSchema,
|
|
777
791
|
MealPlanParticipantIdSchema,
|
|
@@ -643,9 +643,7 @@ var MealPlanDecisionStageIdSchema = import_zod14.z.string().uuid().brand();
|
|
|
643
643
|
var MealPlanVoteIdSchema = import_zod14.z.string().uuid().brand();
|
|
644
644
|
var MealPlanLocationCandidateSourceSchema = import_zod14.z.enum([
|
|
645
645
|
"manual",
|
|
646
|
-
"map-marker",
|
|
647
646
|
"midpoint",
|
|
648
|
-
"user-location",
|
|
649
647
|
"search",
|
|
650
648
|
"recent-place",
|
|
651
649
|
"fallback"
|
|
@@ -672,8 +670,8 @@ var MealPlanMenuCandidateSchema = import_zod14.z.object({
|
|
|
672
670
|
menu: FoodSchema,
|
|
673
671
|
source: MealPlanMenuCandidateSourceSchema,
|
|
674
672
|
score: import_zod14.z.number().default(0),
|
|
675
|
-
imageUrl: import_zod14.z.string().min(1).nullable().
|
|
676
|
-
image: FoodCodeManifestImageSchema.nullable().
|
|
673
|
+
imageUrl: import_zod14.z.string().min(1).nullable().optional(),
|
|
674
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
677
675
|
createdAt: ISODateTimeStringSchema
|
|
678
676
|
});
|
|
679
677
|
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
@@ -710,8 +708,15 @@ var MealPlanRestaurantSearchStateSchema = import_zod14.z.object({
|
|
|
710
708
|
candidateCount: import_zod14.z.number().int().min(0),
|
|
711
709
|
errorMessage: import_zod14.z.string().nullable().default(null)
|
|
712
710
|
});
|
|
711
|
+
var MealPlanMenuRecommendationStateSchema = import_zod14.z.object({
|
|
712
|
+
preferenceKey: import_zod14.z.string().min(1),
|
|
713
|
+
generatedFromHash: import_zod14.z.string().min(1),
|
|
714
|
+
generatedAt: ISODateTimeStringSchema,
|
|
715
|
+
candidateCount: import_zod14.z.number().int().min(0)
|
|
716
|
+
});
|
|
713
717
|
var MealPlanDecisionStageMetadataSchema = import_zod14.z.object({
|
|
714
|
-
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
718
|
+
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional(),
|
|
719
|
+
menuRecommendation: MealPlanMenuRecommendationStateSchema.optional()
|
|
715
720
|
}).catchall(import_zod14.z.unknown());
|
|
716
721
|
var MealPlanVoteTypeSchema = import_zod14.z.enum([
|
|
717
722
|
"PICK",
|
|
@@ -787,6 +792,7 @@ var MealPlanDecisionTaskKeySchema = import_zod14.z.enum([
|
|
|
787
792
|
var MealPlanDecisionTaskStatusSchema = import_zod14.z.enum([
|
|
788
793
|
"LOCKED",
|
|
789
794
|
"OPEN",
|
|
795
|
+
"READY",
|
|
790
796
|
"RESOLVED",
|
|
791
797
|
"STALE"
|
|
792
798
|
]);
|
|
@@ -810,6 +816,7 @@ var MealPlanDecisionReasonSchema = import_zod14.z.enum([
|
|
|
810
816
|
"TOP_PICKED_MENU",
|
|
811
817
|
"TOP_PICKED_RESTAURANT",
|
|
812
818
|
"OWNER_CONFIRMED",
|
|
819
|
+
"TASK_ALL_READY",
|
|
813
820
|
"MANUAL_SELECTION"
|
|
814
821
|
]);
|
|
815
822
|
var MealPlanDecisionActorTypeSchema = import_zod14.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
|
|
@@ -835,6 +842,8 @@ var MealPlanDecisionSnapshotSchema = import_zod14.z.object({
|
|
|
835
842
|
var MealPlanDecisionTaskProgressSchema = import_zod14.z.object({
|
|
836
843
|
taskKey: MealPlanDecisionTaskKeySchema,
|
|
837
844
|
status: MealPlanDecisionTaskStatusSchema,
|
|
845
|
+
readyCount: import_zod14.z.number().int().min(0),
|
|
846
|
+
participantCount: import_zod14.z.number().int().min(0),
|
|
838
847
|
blockers: import_zod14.z.array(import_zod14.z.string()).default([]),
|
|
839
848
|
updatedAt: ISODateTimeStringSchema
|
|
840
849
|
});
|
|
@@ -848,6 +857,9 @@ var MealPlanDecisionProgressSchema = import_zod14.z.object({
|
|
|
848
857
|
version: import_zod14.z.number().int().min(0),
|
|
849
858
|
updatedAt: ISODateTimeStringSchema
|
|
850
859
|
});
|
|
860
|
+
var MealPlanDecisionTaskReadyRequestSchema = import_zod14.z.object({
|
|
861
|
+
isReady: import_zod14.z.boolean()
|
|
862
|
+
});
|
|
851
863
|
var ReopenMealPlanDecisionTaskRequestSchema = import_zod14.z.object({
|
|
852
864
|
reason: import_zod14.z.string().max(500).optional()
|
|
853
865
|
});
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
toReferralCode,
|
|
35
35
|
toRestaurantId,
|
|
36
36
|
toSubscriptionId
|
|
37
|
-
} from "../../chunk-
|
|
37
|
+
} from "../../chunk-D4J2TV26.js";
|
|
38
38
|
import "../../chunk-6O2YTBVC.js";
|
|
39
39
|
import "../../chunk-NJTV6DRT.js";
|
|
40
40
|
import "../../chunk-RZPNVRRS.js";
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
} from "../../chunk-NENVUHL5.js";
|
|
47
47
|
import "../../chunk-QFPVAJ2U.js";
|
|
48
48
|
import "../../chunk-VD3VGLBQ.js";
|
|
49
|
-
import "../../chunk-
|
|
50
|
-
import "../../chunk-
|
|
51
|
-
import "../../chunk-
|
|
52
|
-
import "../../chunk-
|
|
49
|
+
import "../../chunk-5FPYU6NF.js";
|
|
50
|
+
import "../../chunk-ENXVY4SR.js";
|
|
51
|
+
import "../../chunk-KWJE3RYS.js";
|
|
52
|
+
import "../../chunk-LXRTJPS5.js";
|
|
53
53
|
import "../../chunk-7JYVBXKQ.js";
|
|
54
54
|
import "../../chunk-CGFW5LYV.js";
|
|
55
55
|
import "../../chunk-C63TN7L3.js";
|
package/dist/domain/index.cjs
CHANGED
|
@@ -160,6 +160,7 @@ __export(domain_exports, {
|
|
|
160
160
|
MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
|
|
161
161
|
MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
|
|
162
162
|
MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
|
|
163
|
+
MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
|
|
163
164
|
MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
|
|
164
165
|
MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
|
|
165
166
|
MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
|
|
@@ -194,6 +195,7 @@ __export(domain_exports, {
|
|
|
194
195
|
MealPlanMenuCandidateIdSchema: () => MealPlanMenuCandidateIdSchema,
|
|
195
196
|
MealPlanMenuCandidateSchema: () => MealPlanMenuCandidateSchema,
|
|
196
197
|
MealPlanMenuCandidateSourceSchema: () => MealPlanMenuCandidateSourceSchema,
|
|
198
|
+
MealPlanMenuRecommendationStateSchema: () => MealPlanMenuRecommendationStateSchema,
|
|
197
199
|
MealPlanNearbyFriendExposureBatchIdSchema: () => MealPlanNearbyFriendExposureBatchIdSchema,
|
|
198
200
|
MealPlanNearbyFriendExposureBatchSummarySchema: () => MealPlanNearbyFriendExposureBatchSummarySchema,
|
|
199
201
|
MealPlanNearbyFriendExposureIdSchema: () => MealPlanNearbyFriendExposureIdSchema,
|
|
@@ -311,6 +313,7 @@ __export(domain_exports, {
|
|
|
311
313
|
getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
|
|
312
314
|
getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
|
|
313
315
|
getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
|
|
316
|
+
getMealPlanRestaurantProvisionCacheKey: () => getMealPlanRestaurantProvisionCacheKey,
|
|
314
317
|
makeApiResponseSchema: () => makeApiResponseSchema,
|
|
315
318
|
makeApiSuccessSchema: () => makeApiSuccessSchema,
|
|
316
319
|
shouldShowForegroundToast: () => shouldShowForegroundToast,
|
|
@@ -880,9 +883,7 @@ var MealPlanDecisionStageIdSchema = import_zod14.z.string().uuid().brand();
|
|
|
880
883
|
var MealPlanVoteIdSchema = import_zod14.z.string().uuid().brand();
|
|
881
884
|
var MealPlanLocationCandidateSourceSchema = import_zod14.z.enum([
|
|
882
885
|
"manual",
|
|
883
|
-
"map-marker",
|
|
884
886
|
"midpoint",
|
|
885
|
-
"user-location",
|
|
886
887
|
"search",
|
|
887
888
|
"recent-place",
|
|
888
889
|
"fallback"
|
|
@@ -909,8 +910,8 @@ var MealPlanMenuCandidateSchema = import_zod14.z.object({
|
|
|
909
910
|
menu: FoodSchema,
|
|
910
911
|
source: MealPlanMenuCandidateSourceSchema,
|
|
911
912
|
score: import_zod14.z.number().default(0),
|
|
912
|
-
imageUrl: import_zod14.z.string().min(1).nullable().
|
|
913
|
-
image: FoodCodeManifestImageSchema.nullable().
|
|
913
|
+
imageUrl: import_zod14.z.string().min(1).nullable().optional(),
|
|
914
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
914
915
|
createdAt: ISODateTimeStringSchema
|
|
915
916
|
});
|
|
916
917
|
var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
|
|
@@ -947,8 +948,15 @@ var MealPlanRestaurantSearchStateSchema = import_zod14.z.object({
|
|
|
947
948
|
candidateCount: import_zod14.z.number().int().min(0),
|
|
948
949
|
errorMessage: import_zod14.z.string().nullable().default(null)
|
|
949
950
|
});
|
|
951
|
+
var MealPlanMenuRecommendationStateSchema = import_zod14.z.object({
|
|
952
|
+
preferenceKey: import_zod14.z.string().min(1),
|
|
953
|
+
generatedFromHash: import_zod14.z.string().min(1),
|
|
954
|
+
generatedAt: ISODateTimeStringSchema,
|
|
955
|
+
candidateCount: import_zod14.z.number().int().min(0)
|
|
956
|
+
});
|
|
950
957
|
var MealPlanDecisionStageMetadataSchema = import_zod14.z.object({
|
|
951
|
-
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
|
|
958
|
+
restaurantSearch: MealPlanRestaurantSearchStateSchema.optional(),
|
|
959
|
+
menuRecommendation: MealPlanMenuRecommendationStateSchema.optional()
|
|
952
960
|
}).catchall(import_zod14.z.unknown());
|
|
953
961
|
var MealPlanVoteTypeSchema = import_zod14.z.enum([
|
|
954
962
|
"PICK",
|
|
@@ -1024,6 +1032,7 @@ var MealPlanDecisionTaskKeySchema = import_zod14.z.enum([
|
|
|
1024
1032
|
var MealPlanDecisionTaskStatusSchema = import_zod14.z.enum([
|
|
1025
1033
|
"LOCKED",
|
|
1026
1034
|
"OPEN",
|
|
1035
|
+
"READY",
|
|
1027
1036
|
"RESOLVED",
|
|
1028
1037
|
"STALE"
|
|
1029
1038
|
]);
|
|
@@ -1047,6 +1056,7 @@ var MealPlanDecisionReasonSchema = import_zod14.z.enum([
|
|
|
1047
1056
|
"TOP_PICKED_MENU",
|
|
1048
1057
|
"TOP_PICKED_RESTAURANT",
|
|
1049
1058
|
"OWNER_CONFIRMED",
|
|
1059
|
+
"TASK_ALL_READY",
|
|
1050
1060
|
"MANUAL_SELECTION"
|
|
1051
1061
|
]);
|
|
1052
1062
|
var MealPlanDecisionActorTypeSchema = import_zod14.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
|
|
@@ -1072,6 +1082,8 @@ var MealPlanDecisionSnapshotSchema = import_zod14.z.object({
|
|
|
1072
1082
|
var MealPlanDecisionTaskProgressSchema = import_zod14.z.object({
|
|
1073
1083
|
taskKey: MealPlanDecisionTaskKeySchema,
|
|
1074
1084
|
status: MealPlanDecisionTaskStatusSchema,
|
|
1085
|
+
readyCount: import_zod14.z.number().int().min(0),
|
|
1086
|
+
participantCount: import_zod14.z.number().int().min(0),
|
|
1075
1087
|
blockers: import_zod14.z.array(import_zod14.z.string()).default([]),
|
|
1076
1088
|
updatedAt: ISODateTimeStringSchema
|
|
1077
1089
|
});
|
|
@@ -1085,6 +1097,9 @@ var MealPlanDecisionProgressSchema = import_zod14.z.object({
|
|
|
1085
1097
|
version: import_zod14.z.number().int().min(0),
|
|
1086
1098
|
updatedAt: ISODateTimeStringSchema
|
|
1087
1099
|
});
|
|
1100
|
+
var MealPlanDecisionTaskReadyRequestSchema = import_zod14.z.object({
|
|
1101
|
+
isReady: import_zod14.z.boolean()
|
|
1102
|
+
});
|
|
1088
1103
|
var ReopenMealPlanDecisionTaskRequestSchema = import_zod14.z.object({
|
|
1089
1104
|
reason: import_zod14.z.string().max(500).optional()
|
|
1090
1105
|
});
|
|
@@ -1589,12 +1604,16 @@ function getMealPlanDecisionCandidateKey(candidate) {
|
|
|
1589
1604
|
case "AREA":
|
|
1590
1605
|
return `AREA:${candidate.value.locationId}`;
|
|
1591
1606
|
case "MENU":
|
|
1592
|
-
return `MENU:${candidate.value.
|
|
1607
|
+
return `MENU:${candidate.value.menu.code}`;
|
|
1593
1608
|
case "RESTAURANT":
|
|
1594
1609
|
return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
|
|
1595
1610
|
case "FINAL_CONFIRMATION":
|
|
1596
1611
|
return "FINAL_CONFIRMATION:READY";
|
|
1597
1612
|
}
|
|
1613
|
+
return `UNKNOWN:${JSON.stringify(candidate)}`;
|
|
1614
|
+
}
|
|
1615
|
+
function getMealPlanRestaurantProvisionCacheKey(area, menu) {
|
|
1616
|
+
return `restaurant-search:${getMealPlanDecisionCandidateKey(area)}:${getMealPlanDecisionCandidateKey(menu)}`;
|
|
1598
1617
|
}
|
|
1599
1618
|
|
|
1600
1619
|
// src/domain/meal-plan/meal-plan.socket.ts
|
|
@@ -2433,6 +2452,7 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
|
|
|
2433
2452
|
MealPlanDecisionStageTypeSchema,
|
|
2434
2453
|
MealPlanDecisionTaskKeySchema,
|
|
2435
2454
|
MealPlanDecisionTaskProgressSchema,
|
|
2455
|
+
MealPlanDecisionTaskReadyRequestSchema,
|
|
2436
2456
|
MealPlanDecisionTaskStatusSchema,
|
|
2437
2457
|
MealPlanDecisionVoteSocketAckSchema,
|
|
2438
2458
|
MealPlanDecisionVoteSocketErrorSchema,
|
|
@@ -2467,6 +2487,7 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
|
|
|
2467
2487
|
MealPlanMenuCandidateIdSchema,
|
|
2468
2488
|
MealPlanMenuCandidateSchema,
|
|
2469
2489
|
MealPlanMenuCandidateSourceSchema,
|
|
2490
|
+
MealPlanMenuRecommendationStateSchema,
|
|
2470
2491
|
MealPlanNearbyFriendExposureBatchIdSchema,
|
|
2471
2492
|
MealPlanNearbyFriendExposureBatchSummarySchema,
|
|
2472
2493
|
MealPlanNearbyFriendExposureIdSchema,
|
|
@@ -2584,6 +2605,7 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
|
|
|
2584
2605
|
getMealPlanLiveActivityBehavior,
|
|
2585
2606
|
getMealPlanNotificationPriority,
|
|
2586
2607
|
getMealPlanNotificationPriorityPolicy,
|
|
2608
|
+
getMealPlanRestaurantProvisionCacheKey,
|
|
2587
2609
|
makeApiResponseSchema,
|
|
2588
2610
|
makeApiSuccessSchema,
|
|
2589
2611
|
shouldShowForegroundToast,
|