@kimdaegyu/babmukdang-shared 2.0.4 → 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.
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PushPlatformSchema
3
- } from "./chunk-HHU5TRDP.js";
3
+ } from "./chunk-WYBFBLQC.js";
4
4
  import {
5
5
  MealPlanLiveActivityBehaviorSchema,
6
6
  MealPlanNotificationKindSchema
7
- } from "./chunk-QPTK7F7Y.js";
7
+ } from "./chunk-GOOH2LGN.js";
8
8
  import {
9
9
  ISODateTimeStringSchema
10
10
  } from "./chunk-HRM3FQPL.js";
@@ -6,16 +6,16 @@ import {
6
6
  MealPlanNotificationSchema,
7
7
  MealPlanResponseSchema,
8
8
  MyMealPlanListItemSchema
9
- } from "./chunk-QPTK7F7Y.js";
9
+ } from "./chunk-GOOH2LGN.js";
10
10
  import {
11
11
  RestaurantSchema
12
12
  } from "./chunk-7JYVBXKQ.js";
13
- import {
14
- ISODateTimeStringSchema
15
- } from "./chunk-HRM3FQPL.js";
16
13
  import {
17
14
  MemberCoreSchema
18
15
  } from "./chunk-C63TN7L3.js";
16
+ import {
17
+ ISODateTimeStringSchema
18
+ } from "./chunk-HRM3FQPL.js";
19
19
  import {
20
20
  ArticleIdSchema,
21
21
  MealGroupIdSchema,
@@ -25,6 +25,23 @@ import {
25
25
  MemberIdSchema
26
26
  } from "./chunk-XMRYAG3V.js";
27
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
+
28
45
  // src/domain/meal-plan/meal-plan.socket.ts
29
46
  import { z } from "zod";
30
47
  var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
@@ -303,6 +320,7 @@ function compareMealPlanNotificationsByPriority(channel) {
303
320
  }
304
321
 
305
322
  export {
323
+ getMealPlanDecisionCandidateKey,
306
324
  MealPlanDecisionVoteSocketEvent,
307
325
  MealPlanDecisionVoteSocketPayloadSchema,
308
326
  MealPlanDecisionVoteSocketErrorSchema,
@@ -1,3 +1,9 @@
1
+ import {
2
+ FriendMealItemResponseSchema,
3
+ FriendMealQuerySchema,
4
+ MealStatusResponseSchema,
5
+ UpdateMealStatusRequestSchema
6
+ } from "./chunk-6O2YTBVC.js";
1
7
  import {
2
8
  ChallengeStatusResponseSchema,
3
9
  ClaimChallengeRewardRequestSchema,
@@ -6,23 +12,6 @@ import {
6
12
  ReferralCreateResponseSchema,
7
13
  ReferralItemResponseSchema
8
14
  } from "./chunk-RZPNVRRS.js";
9
- import {
10
- EndMealPlanLiveActivitySessionRequestSchema,
11
- MealPlanLiveActivitySessionListResponseSchema,
12
- MealPlanLiveActivitySessionResponseSchema,
13
- RegisterMealPlanLiveActivitySessionRequestSchema
14
- } from "./chunk-CUOJE3ER.js";
15
- import {
16
- PushTokenResponseSchema,
17
- RegisterPushTokenRequestSchema,
18
- RevokePushTokenRequestSchema
19
- } from "./chunk-HHU5TRDP.js";
20
- import {
21
- FriendMealItemResponseSchema,
22
- FriendMealQuerySchema,
23
- MealStatusResponseSchema,
24
- UpdateMealStatusRequestSchema
25
- } from "./chunk-EQLAVUHF.js";
26
15
  import {
27
16
  ArticleDetailResponseSchema,
28
17
  ArticleLikeResponseSchema,
@@ -32,7 +21,7 @@ import {
32
21
  PageArticleSummaryResponseSchema,
33
22
  UploadArticleImageRequestSchema,
34
23
  UploadArticleImageResponseSchema
35
- } from "./chunk-IRAFNZDL.js";
24
+ } from "./chunk-NENVUHL5.js";
36
25
  import {
37
26
  LoginRequestSchema,
38
27
  SignupRequestSchema,
@@ -43,7 +32,13 @@ import {
43
32
  FriendBlockItemResponseSchema,
44
33
  FriendListItemResponseSchema,
45
34
  FriendRequestItemResponseSchema
46
- } from "./chunk-Q6Y2NBB6.js";
35
+ } from "./chunk-VD3VGLBQ.js";
36
+ import {
37
+ EndMealPlanLiveActivitySessionRequestSchema,
38
+ MealPlanLiveActivitySessionListResponseSchema,
39
+ MealPlanLiveActivitySessionResponseSchema,
40
+ RegisterMealPlanLiveActivitySessionRequestSchema
41
+ } from "./chunk-3TY6OPD3.js";
47
42
  import {
48
43
  AddMealGroupMemberRequestSchema,
49
44
  CreateMealGroupRequestSchema,
@@ -62,7 +57,12 @@ import {
62
57
  MealPlanSharePreviewResponseSchema,
63
58
  StartMealPlanFromGroupRequestSchema,
64
59
  UpdateMealGroupMemberRoleRequestSchema
65
- } from "./chunk-FODWQLEY.js";
60
+ } from "./chunk-7FNZBMB2.js";
61
+ import {
62
+ PushTokenResponseSchema,
63
+ RegisterPushTokenRequestSchema,
64
+ RevokePushTokenRequestSchema
65
+ } from "./chunk-WYBFBLQC.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-QPTK7F7Y.js";
89
+ } from "./chunk-GOOH2LGN.js";
90
90
  import {
91
91
  CreateProfileRequestSchema,
92
92
  MemberFoodPreferenceSchema,
@@ -1,8 +1,3 @@
1
- import {
2
- AI_CLASS_TO_FOOD_CODE_MAP_PATH,
3
- FOOD_CODE_MANIFEST_PATH,
4
- FOOD_IMAGE_INDEX_PATH
5
- } from "./chunk-BSJC7OVV.js";
6
1
  import {
7
2
  ApiFailureSchema,
8
3
  ApiResponseSchema,
@@ -39,7 +34,15 @@ import {
39
34
  toReferralCode,
40
35
  toRestaurantId,
41
36
  toSubscriptionId
42
- } from "./chunk-IW342TDD.js";
37
+ } from "./chunk-ITXM3XFJ.js";
38
+ import {
39
+ FriendMealItemResponseSchema,
40
+ FriendMealQuerySchema,
41
+ MealStatusActionSchema,
42
+ MealStatusResponseSchema,
43
+ MealStatusSchema,
44
+ UpdateMealStatusRequestSchema
45
+ } from "./chunk-6O2YTBVC.js";
43
46
  import {
44
47
  ChallengeStatusResponseSchema,
45
48
  ClaimChallengeRewardRequestSchema,
@@ -51,39 +54,6 @@ import {
51
54
  ReferralCreateResponseSchema,
52
55
  ReferralItemResponseSchema
53
56
  } from "./chunk-RZPNVRRS.js";
54
- import {
55
- EndMealPlanLiveActivitySessionRequestSchema,
56
- MealPlanLiveActivityPlatformSchema,
57
- MealPlanLiveActivitySessionListResponseSchema,
58
- MealPlanLiveActivitySessionResponseSchema,
59
- MealPlanLiveActivitySessionStatusSchema,
60
- MealPlanLiveActivityStateSchema,
61
- MealPlanLiveActivityUpdateStatusSchema,
62
- RegisterMealPlanLiveActivitySessionRequestSchema
63
- } from "./chunk-CUOJE3ER.js";
64
- import {
65
- MealPlanPushPayloadDataSchema,
66
- PushDeliveryAttemptResultSchema,
67
- PushDeliveryAttemptSummarySchema,
68
- PushDeliveryOutboxSummarySchema,
69
- PushDeliveryStatusSchema,
70
- PushPayloadSchemaVersionSchema,
71
- PushPermissionStatusSchema,
72
- PushPlatformSchema,
73
- PushProviderSchema,
74
- PushTokenResponseSchema,
75
- PushTokenStatusSchema,
76
- RegisterPushTokenRequestSchema,
77
- RevokePushTokenRequestSchema
78
- } from "./chunk-HHU5TRDP.js";
79
- import {
80
- FriendMealItemResponseSchema,
81
- FriendMealQuerySchema,
82
- MealStatusActionSchema,
83
- MealStatusResponseSchema,
84
- MealStatusSchema,
85
- UpdateMealStatusRequestSchema
86
- } from "./chunk-EQLAVUHF.js";
87
57
  import {
88
58
  ArticleCommentSchema,
89
59
  ArticleCoreSchema,
@@ -102,13 +72,18 @@ import {
102
72
  SortDirectionSchema,
103
73
  UploadArticleImageRequestSchema,
104
74
  UploadArticleImageResponseSchema
105
- } from "./chunk-IRAFNZDL.js";
75
+ } from "./chunk-NENVUHL5.js";
106
76
  import {
107
77
  LoginRequestSchema,
108
78
  SignupRequestSchema,
109
79
  SignupResponseSchema,
110
80
  TokenResponseSchema
111
81
  } from "./chunk-QFPVAJ2U.js";
82
+ import {
83
+ AI_CLASS_TO_FOOD_CODE_MAP_PATH,
84
+ FOOD_CODE_MANIFEST_PATH,
85
+ FOOD_IMAGE_INDEX_PATH
86
+ } from "./chunk-BSJC7OVV.js";
112
87
  import {
113
88
  FriendBlockItemResponseSchema,
114
89
  FriendListItemResponseSchema,
@@ -118,7 +93,17 @@ import {
118
93
  FriendRequestStatusSchema,
119
94
  FriendSearchQuerySchema,
120
95
  FriendSearchResponseSchema
121
- } from "./chunk-Q6Y2NBB6.js";
96
+ } from "./chunk-VD3VGLBQ.js";
97
+ import {
98
+ EndMealPlanLiveActivitySessionRequestSchema,
99
+ MealPlanLiveActivityPlatformSchema,
100
+ MealPlanLiveActivitySessionListResponseSchema,
101
+ MealPlanLiveActivitySessionResponseSchema,
102
+ MealPlanLiveActivitySessionStatusSchema,
103
+ MealPlanLiveActivityStateSchema,
104
+ MealPlanLiveActivityUpdateStatusSchema,
105
+ RegisterMealPlanLiveActivitySessionRequestSchema
106
+ } from "./chunk-3TY6OPD3.js";
122
107
  import {
123
108
  AddMealGroupMemberRequestSchema,
124
109
  CreateMealGroupRequestSchema,
@@ -156,11 +141,27 @@ import {
156
141
  StartMealPlanFromGroupRequestSchema,
157
142
  UpdateMealGroupMemberRoleRequestSchema,
158
143
  compareMealPlanNotificationsByPriority,
144
+ getMealPlanDecisionCandidateKey,
159
145
  getMealPlanLiveActivityBehavior,
160
146
  getMealPlanNotificationPriority,
161
147
  getMealPlanNotificationPriorityPolicy,
162
148
  shouldShowForegroundToast
163
- } from "./chunk-FODWQLEY.js";
149
+ } from "./chunk-7FNZBMB2.js";
150
+ import {
151
+ MealPlanPushPayloadDataSchema,
152
+ PushDeliveryAttemptResultSchema,
153
+ PushDeliveryAttemptSummarySchema,
154
+ PushDeliveryOutboxSummarySchema,
155
+ PushDeliveryStatusSchema,
156
+ PushPayloadSchemaVersionSchema,
157
+ PushPermissionStatusSchema,
158
+ PushPlatformSchema,
159
+ PushProviderSchema,
160
+ PushTokenResponseSchema,
161
+ PushTokenStatusSchema,
162
+ RegisterPushTokenRequestSchema,
163
+ RevokePushTokenRequestSchema
164
+ } from "./chunk-WYBFBLQC.js";
164
165
  import {
165
166
  CompleteMealPlanDecisionStageRequestSchema,
166
167
  ConfirmMealPlanDecisionSnapshotRequestSchema,
@@ -250,7 +251,11 @@ import {
250
251
  SendMealPlanChatMessageRequestSchema,
251
252
  SendMealPlanInviteResponseSchema,
252
253
  UpdateMealPlanContextRequestSchema
253
- } from "./chunk-QPTK7F7Y.js";
254
+ } from "./chunk-GOOH2LGN.js";
255
+ import {
256
+ KakaoPlaceRawSchema,
257
+ RestaurantSchema
258
+ } from "./chunk-7JYVBXKQ.js";
254
259
  import {
255
260
  AiClassFoodCodeMappingSchema,
256
261
  AiClassToFoodCodeMapManifestSchema,
@@ -269,15 +274,6 @@ import {
269
274
  FoodSearchResponseSchema,
270
275
  ResolvedFoodCodeSchema
271
276
  } from "./chunk-CGFW5LYV.js";
272
- import {
273
- KakaoPlaceRawSchema,
274
- RestaurantSchema
275
- } from "./chunk-7JYVBXKQ.js";
276
- import {
277
- ISODateStringSchema,
278
- ISODateTimeStringSchema,
279
- TimeHHmmStringSchema
280
- } from "./chunk-HRM3FQPL.js";
281
277
  import {
282
278
  CompleteOnboardingRequestSchema,
283
279
  CreateProfileRequestSchema,
@@ -305,6 +301,11 @@ import {
305
301
  UploadProfileImageRequestSchema,
306
302
  UploadProfileImageResponseSchema
307
303
  } from "./chunk-C63TN7L3.js";
304
+ import {
305
+ ISODateStringSchema,
306
+ ISODateTimeStringSchema,
307
+ TimeHHmmStringSchema
308
+ } from "./chunk-HRM3FQPL.js";
308
309
  import {
309
310
  ArticleIdSchema,
310
311
  CommentIdSchema,
@@ -613,6 +614,7 @@ __export(domain_exports, {
613
614
  apiContract: () => apiContract,
614
615
  compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
615
616
  endpoint: () => endpoint,
617
+ getMealPlanDecisionCandidateKey: () => getMealPlanDecisionCandidateKey,
616
618
  getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
617
619
  getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
618
620
  getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MealPlanLiveActivityBehaviorSchema,
3
3
  MealPlanNotificationKindSchema
4
- } from "./chunk-QPTK7F7Y.js";
4
+ } from "./chunk-GOOH2LGN.js";
5
5
  import {
6
6
  ISODateTimeStringSchema
7
7
  } from "./chunk-HRM3FQPL.js";
@@ -12,10 +12,10 @@ import {
12
12
  PageArticleSummaryResponseSchema,
13
13
  UploadArticleImageRequestSchema,
14
14
  UploadArticleImageResponseSchema
15
- } from "../../chunk-IRAFNZDL.js";
15
+ } from "../../chunk-NENVUHL5.js";
16
16
  import "../../chunk-7JYVBXKQ.js";
17
- import "../../chunk-HRM3FQPL.js";
18
17
  import "../../chunk-C63TN7L3.js";
18
+ import "../../chunk-HRM3FQPL.js";
19
19
  import "../../chunk-XMRYAG3V.js";
20
20
  export {
21
21
  ArticleCommentSchema,
@@ -34,30 +34,30 @@ import {
34
34
  toReferralCode,
35
35
  toRestaurantId,
36
36
  toSubscriptionId
37
- } from "../../chunk-IW342TDD.js";
38
- import "../../chunk-RZPNVRRS.js";
39
- import "../../chunk-CUOJE3ER.js";
40
- import "../../chunk-HHU5TRDP.js";
41
- import "../../chunk-EQLAVUHF.js";
37
+ } from "../../chunk-ITXM3XFJ.js";
38
+ import "../../chunk-6O2YTBVC.js";
42
39
  import "../../chunk-NJTV6DRT.js";
40
+ import "../../chunk-RZPNVRRS.js";
43
41
  import {
44
42
  PageMetaSchema,
45
43
  PageQuerySchema,
46
44
  PageResponseSchema,
47
45
  SortDirectionSchema
48
- } from "../../chunk-IRAFNZDL.js";
46
+ } from "../../chunk-NENVUHL5.js";
49
47
  import "../../chunk-QFPVAJ2U.js";
50
- import "../../chunk-Q6Y2NBB6.js";
51
- import "../../chunk-FODWQLEY.js";
52
- import "../../chunk-QPTK7F7Y.js";
53
- import "../../chunk-CGFW5LYV.js";
48
+ import "../../chunk-VD3VGLBQ.js";
49
+ import "../../chunk-3TY6OPD3.js";
50
+ import "../../chunk-7FNZBMB2.js";
51
+ import "../../chunk-WYBFBLQC.js";
52
+ import "../../chunk-GOOH2LGN.js";
54
53
  import "../../chunk-7JYVBXKQ.js";
54
+ import "../../chunk-CGFW5LYV.js";
55
+ import "../../chunk-C63TN7L3.js";
55
56
  import {
56
57
  ISODateStringSchema,
57
58
  ISODateTimeStringSchema,
58
59
  TimeHHmmStringSchema
59
60
  } from "../../chunk-HRM3FQPL.js";
60
- import "../../chunk-C63TN7L3.js";
61
61
  import {
62
62
  ArticleIdSchema,
63
63
  CommentIdSchema,
@@ -7,9 +7,9 @@ import {
7
7
  FriendRequestStatusSchema,
8
8
  FriendSearchQuerySchema,
9
9
  FriendSearchResponseSchema
10
- } from "../../chunk-Q6Y2NBB6.js";
11
- import "../../chunk-HRM3FQPL.js";
10
+ } from "../../chunk-VD3VGLBQ.js";
12
11
  import "../../chunk-C63TN7L3.js";
12
+ import "../../chunk-HRM3FQPL.js";
13
13
  import "../../chunk-XMRYAG3V.js";
14
14
  export {
15
15
  FriendBlockItemResponseSchema,
@@ -307,6 +307,7 @@ __export(domain_exports, {
307
307
  apiContract: () => apiContract,
308
308
  compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
309
309
  endpoint: () => endpoint,
310
+ getMealPlanDecisionCandidateKey: () => getMealPlanDecisionCandidateKey,
310
311
  getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
311
312
  getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
312
313
  getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
@@ -1579,6 +1580,23 @@ var MealPlanNotificationSchema = import_zod19.z.object({
1579
1580
  readAt: ISODateTimeStringSchema.nullable()
1580
1581
  });
1581
1582
 
1583
+ // src/domain/meal-plan/meal-plan-decision.candidate-key.ts
1584
+ function getMealPlanDecisionCandidateKey(candidate) {
1585
+ switch (candidate.stageType) {
1586
+ case "DATE":
1587
+ case "TIME":
1588
+ return `${candidate.stageType}:${candidate.value}`;
1589
+ case "AREA":
1590
+ return `AREA:${candidate.value.locationId}`;
1591
+ case "MENU":
1592
+ return `MENU:${candidate.value.menuCandidateId}`;
1593
+ case "RESTAURANT":
1594
+ return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
1595
+ case "FINAL_CONFIRMATION":
1596
+ return "FINAL_CONFIRMATION:READY";
1597
+ }
1598
+ }
1599
+
1582
1600
  // src/domain/meal-plan/meal-plan.socket.ts
1583
1601
  var import_zod20 = require("zod");
1584
1602
  var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
@@ -2562,6 +2580,7 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
2562
2580
  apiContract,
2563
2581
  compareMealPlanNotificationsByPriority,
2564
2582
  endpoint,
2583
+ getMealPlanDecisionCandidateKey,
2565
2584
  getMealPlanLiveActivityBehavior,
2566
2585
  getMealPlanNotificationPriority,
2567
2586
  getMealPlanNotificationPriorityPolicy,