@kimdaegyu/babmukdang-shared 1.1.10 → 2.0.2
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-3BLXZW4U.js +338 -0
- package/dist/{chunk-AI2YMBJX.js → chunk-65DWKLP6.js} +18 -9
- package/dist/{chunk-H77ISYYC.js → chunk-6R5CCY5Q.js} +22 -8
- package/dist/{chunk-4E5E3PFW.js → chunk-DRCY5UNQ.js} +20 -7
- package/dist/chunk-EX7S5FI5.js +91 -0
- package/dist/{chunk-HRM3FQPL.js → chunk-EYZU5HPG.js} +4 -1
- package/dist/{chunk-OJVXYCSH.js → chunk-G7TITUHT.js} +1 -1
- package/dist/chunk-GESEM4IA.js +122 -0
- package/dist/chunk-IPANLE7B.js +632 -0
- package/dist/chunk-KREAZLLH.js +1062 -0
- package/dist/{chunk-K3CZKI2F.js → chunk-P3MYMK34.js} +24 -13
- package/dist/chunk-Q4BPFDVB.js +171 -0
- package/dist/{chunk-W4C7XHTX.js → chunk-QUAG5LF5.js} +13 -6
- package/dist/chunk-TIOX7OHA.js +863 -0
- package/dist/{chunk-GTVEQYJW.js → chunk-TOXRHSD6.js} +1 -1
- package/dist/chunk-YV734GYZ.js +165 -0
- package/dist/domain/article/index.cjs +107 -15
- package/dist/domain/article/index.d.cts +254 -0
- package/dist/domain/article/index.d.ts +254 -0
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +88 -9
- package/dist/domain/auth/index.d.cts +29 -0
- package/dist/domain/auth/index.d.ts +29 -0
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +2100 -395
- package/dist/domain/common/index.d.cts +328 -0
- package/dist/domain/common/index.d.ts +328 -0
- package/dist/domain/common/index.js +65 -31
- package/dist/domain/food/index.cjs +248 -0
- package/dist/domain/food/index.d.cts +321 -0
- package/dist/domain/food/index.d.ts +321 -0
- package/dist/domain/food/index.js +44 -0
- package/dist/domain/friend/index.cjs +108 -12
- package/dist/domain/friend/index.d.cts +72 -0
- package/dist/domain/friend/index.d.ts +72 -0
- package/dist/domain/friend/index.js +6 -4
- package/dist/domain/index.cjs +2736 -522
- package/dist/domain/index.d.cts +576 -0
- package/dist/domain/index.d.ts +576 -0
- package/dist/domain/index.js +429 -140
- package/dist/domain/live-activity/index.cjs +1061 -0
- package/dist/domain/live-activity/index.d.cts +177 -0
- package/dist/domain/live-activity/index.d.ts +177 -0
- package/dist/domain/live-activity/index.js +27 -0
- package/dist/domain/meal/index.cjs +101 -12
- package/dist/domain/meal/index.d.cts +47 -0
- package/dist/domain/meal/index.d.ts +47 -0
- package/dist/domain/meal/index.js +4 -4
- package/dist/domain/meal-plan/index.cjs +1504 -0
- package/dist/domain/meal-plan/index.d.cts +4424 -0
- package/dist/domain/meal-plan/index.d.ts +4424 -0
- package/dist/domain/meal-plan/index.js +256 -0
- package/dist/domain/member/index.cjs +114 -9
- package/dist/domain/member/index.d.cts +330 -0
- package/dist/domain/member/index.d.ts +330 -0
- package/dist/domain/member/index.js +26 -2
- package/dist/domain/promotion/index.cjs +26 -8
- package/dist/domain/promotion/index.d.cts +81 -0
- package/dist/domain/promotion/index.d.ts +81 -0
- package/dist/domain/promotion/index.js +3 -3
- package/dist/domain/push/index.cjs +1004 -0
- package/dist/domain/push/index.d.cts +169 -0
- package/dist/domain/push/index.d.ts +169 -0
- package/dist/domain/push/index.js +35 -0
- package/dist/domain/restaurant/index.cjs +10 -4
- package/dist/domain/restaurant/index.d.cts +34 -0
- package/dist/domain/restaurant/index.d.ts +34 -0
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +2533 -640
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +16 -191
- package/package.json +52 -55
- package/dist/chunk-PFSZSKD5.js +0 -0
- package/dist/chunk-PQMEXOPZ.js +0 -232
- package/dist/chunk-W4TUW2GY.js +0 -40
- package/dist/chunk-WNYCCQM4.js +0 -342
- package/dist/chunk-YGFAVC5N.js +0 -34
- package/dist/chunk-YM7YU7IR.js +0 -319
- package/dist/chunk-ZH7D7B2Y.js +0 -78
- package/dist/domain/invitation/index.cjs +0 -82
- package/dist/domain/invitation/index.js +0 -13
- package/dist/domain/plan/index.cjs +0 -327
- package/dist/domain/plan/index.js +0 -18
- package/dist/domain/recruit/index.cjs +0 -189
- package/dist/domain/recruit/index.js +0 -30
- package/dist/domain/room/index.cjs +0 -401
- package/dist/domain/room/index.js +0 -82
|
@@ -2,6 +2,11 @@ import {
|
|
|
2
2
|
ApiFailureSchema,
|
|
3
3
|
ApiResponseSchema,
|
|
4
4
|
ApiSuccessSchema,
|
|
5
|
+
CACHE_INVALIDATION_SSE_EVENT,
|
|
6
|
+
CacheInvalidationActionSchema,
|
|
7
|
+
CacheInvalidationEntitySchema,
|
|
8
|
+
CacheInvalidationEventSchema,
|
|
9
|
+
CacheInvalidationKeySchema,
|
|
5
10
|
CreatedEntityIdResponseSchema,
|
|
6
11
|
NoBodySchema,
|
|
7
12
|
NoContentSchema,
|
|
@@ -15,37 +20,43 @@ import {
|
|
|
15
20
|
toCommentId,
|
|
16
21
|
toCouponId,
|
|
17
22
|
toFriendRequestId,
|
|
18
|
-
|
|
23
|
+
toMealGroupId,
|
|
24
|
+
toMealPlanChangeRequestId,
|
|
25
|
+
toMealPlanChatMessageId,
|
|
26
|
+
toMealPlanChatRoomId,
|
|
27
|
+
toMealPlanId,
|
|
28
|
+
toMealPlanInviteId,
|
|
29
|
+
toMealPlanJoinRequestId,
|
|
30
|
+
toMealPlanNearbyFriendExposureBatchId,
|
|
31
|
+
toMealPlanShareLinkId,
|
|
32
|
+
toMealPlanShareLinkToken,
|
|
19
33
|
toMemberId,
|
|
20
|
-
toPlanId,
|
|
21
|
-
toRecruitId,
|
|
22
34
|
toReferralCode,
|
|
23
35
|
toRestaurantId,
|
|
24
|
-
toRoomId,
|
|
25
36
|
toSubscriptionId
|
|
26
|
-
} from "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
28
|
-
import "../../chunk-
|
|
29
|
-
import "../../chunk-
|
|
30
|
-
import "../../chunk-PFSZSKD5.js";
|
|
31
|
-
import "../../chunk-PQMEXOPZ.js";
|
|
37
|
+
} from "../../chunk-KREAZLLH.js";
|
|
38
|
+
import "../../chunk-QUAG5LF5.js";
|
|
39
|
+
import "../../chunk-NJTV6DRT.js";
|
|
40
|
+
import "../../chunk-65DWKLP6.js";
|
|
32
41
|
import {
|
|
33
42
|
PageMetaSchema,
|
|
34
43
|
PageQuerySchema,
|
|
35
44
|
PageResponseSchema,
|
|
36
45
|
SortDirectionSchema
|
|
37
|
-
} from "../../chunk-
|
|
38
|
-
import "../../chunk-
|
|
39
|
-
import "../../chunk-
|
|
40
|
-
import "../../chunk-
|
|
46
|
+
} from "../../chunk-P3MYMK34.js";
|
|
47
|
+
import "../../chunk-G7TITUHT.js";
|
|
48
|
+
import "../../chunk-DRCY5UNQ.js";
|
|
49
|
+
import "../../chunk-EX7S5FI5.js";
|
|
50
|
+
import "../../chunk-3BLXZW4U.js";
|
|
51
|
+
import "../../chunk-GESEM4IA.js";
|
|
52
|
+
import "../../chunk-TIOX7OHA.js";
|
|
53
|
+
import "../../chunk-TOXRHSD6.js";
|
|
54
|
+
import "../../chunk-YV734GYZ.js";
|
|
41
55
|
import {
|
|
42
56
|
ISODateStringSchema,
|
|
43
57
|
ISODateTimeStringSchema,
|
|
44
58
|
TimeHHmmStringSchema
|
|
45
|
-
} from "../../chunk-
|
|
46
|
-
import "../../chunk-YGFAVC5N.js";
|
|
47
|
-
import "../../chunk-NJTV6DRT.js";
|
|
48
|
-
import "../../chunk-ZH7D7B2Y.js";
|
|
59
|
+
} from "../../chunk-EYZU5HPG.js";
|
|
49
60
|
import {
|
|
50
61
|
ArticleIdSchema,
|
|
51
62
|
CommentIdSchema,
|
|
@@ -54,23 +65,34 @@ import {
|
|
|
54
65
|
FoodLabelSchema,
|
|
55
66
|
FoodSchema,
|
|
56
67
|
FriendRequestIdSchema,
|
|
57
|
-
|
|
68
|
+
MealGroupIdSchema,
|
|
69
|
+
MealPlanChangeRequestIdSchema,
|
|
70
|
+
MealPlanChatMessageIdSchema,
|
|
71
|
+
MealPlanChatRoomIdSchema,
|
|
72
|
+
MealPlanIdSchema,
|
|
73
|
+
MealPlanInviteIdSchema,
|
|
74
|
+
MealPlanJoinRequestIdSchema,
|
|
75
|
+
MealPlanNearbyFriendExposureBatchIdSchema,
|
|
76
|
+
MealPlanShareLinkIdSchema,
|
|
77
|
+
MealPlanShareLinkTokenSchema,
|
|
58
78
|
MemberIdSchema,
|
|
59
79
|
NonEmptyStringIdSchema,
|
|
60
|
-
PlanIdSchema,
|
|
61
80
|
PositiveIntIdSchema,
|
|
62
|
-
RecruitIdSchema,
|
|
63
81
|
ReferralCodeSchema,
|
|
64
82
|
RestaurantIdSchema,
|
|
65
|
-
RoomIdSchema,
|
|
66
83
|
SubscriptionIdSchema,
|
|
67
84
|
UserIdSchema
|
|
68
|
-
} from "../../chunk-
|
|
85
|
+
} from "../../chunk-6R5CCY5Q.js";
|
|
69
86
|
export {
|
|
70
87
|
ApiFailureSchema,
|
|
71
88
|
ApiResponseSchema,
|
|
72
89
|
ApiSuccessSchema,
|
|
73
90
|
ArticleIdSchema,
|
|
91
|
+
CACHE_INVALIDATION_SSE_EVENT,
|
|
92
|
+
CacheInvalidationActionSchema,
|
|
93
|
+
CacheInvalidationEntitySchema,
|
|
94
|
+
CacheInvalidationEventSchema,
|
|
95
|
+
CacheInvalidationKeySchema,
|
|
74
96
|
CommentIdSchema,
|
|
75
97
|
CouponIdSchema,
|
|
76
98
|
CreatedEntityIdResponseSchema,
|
|
@@ -80,7 +102,16 @@ export {
|
|
|
80
102
|
FriendRequestIdSchema,
|
|
81
103
|
ISODateStringSchema,
|
|
82
104
|
ISODateTimeStringSchema,
|
|
83
|
-
|
|
105
|
+
MealGroupIdSchema,
|
|
106
|
+
MealPlanChangeRequestIdSchema,
|
|
107
|
+
MealPlanChatMessageIdSchema,
|
|
108
|
+
MealPlanChatRoomIdSchema,
|
|
109
|
+
MealPlanIdSchema,
|
|
110
|
+
MealPlanInviteIdSchema,
|
|
111
|
+
MealPlanJoinRequestIdSchema,
|
|
112
|
+
MealPlanNearbyFriendExposureBatchIdSchema,
|
|
113
|
+
MealPlanShareLinkIdSchema,
|
|
114
|
+
MealPlanShareLinkTokenSchema,
|
|
84
115
|
MemberIdSchema,
|
|
85
116
|
NoBodySchema,
|
|
86
117
|
NoContentSchema,
|
|
@@ -90,12 +121,9 @@ export {
|
|
|
90
121
|
PageMetaSchema,
|
|
91
122
|
PageQuerySchema,
|
|
92
123
|
PageResponseSchema,
|
|
93
|
-
PlanIdSchema,
|
|
94
124
|
PositiveIntIdSchema,
|
|
95
|
-
RecruitIdSchema,
|
|
96
125
|
ReferralCodeSchema,
|
|
97
126
|
RestaurantIdSchema,
|
|
98
|
-
RoomIdSchema,
|
|
99
127
|
SortDirectionSchema,
|
|
100
128
|
SubscriptionIdSchema,
|
|
101
129
|
TimeHHmmStringSchema,
|
|
@@ -108,12 +136,18 @@ export {
|
|
|
108
136
|
toCommentId,
|
|
109
137
|
toCouponId,
|
|
110
138
|
toFriendRequestId,
|
|
111
|
-
|
|
139
|
+
toMealGroupId,
|
|
140
|
+
toMealPlanChangeRequestId,
|
|
141
|
+
toMealPlanChatMessageId,
|
|
142
|
+
toMealPlanChatRoomId,
|
|
143
|
+
toMealPlanId,
|
|
144
|
+
toMealPlanInviteId,
|
|
145
|
+
toMealPlanJoinRequestId,
|
|
146
|
+
toMealPlanNearbyFriendExposureBatchId,
|
|
147
|
+
toMealPlanShareLinkId,
|
|
148
|
+
toMealPlanShareLinkToken,
|
|
112
149
|
toMemberId,
|
|
113
|
-
toPlanId,
|
|
114
|
-
toRecruitId,
|
|
115
150
|
toReferralCode,
|
|
116
151
|
toRestaurantId,
|
|
117
|
-
toRoomId,
|
|
118
152
|
toSubscriptionId
|
|
119
153
|
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/domain/food/index.ts
|
|
21
|
+
var food_exports = {};
|
|
22
|
+
__export(food_exports, {
|
|
23
|
+
AI_CLASS_TO_FOOD_CODE_MAP_PATH: () => AI_CLASS_TO_FOOD_CODE_MAP_PATH,
|
|
24
|
+
AiClassFoodCodeMappingSchema: () => AiClassFoodCodeMappingSchema,
|
|
25
|
+
AiClassToFoodCodeMapManifestSchema: () => AiClassToFoodCodeMapManifestSchema,
|
|
26
|
+
CuisineTagSchema: () => CuisineTagSchema,
|
|
27
|
+
FOOD_CODE_MANIFEST_PATH: () => FOOD_CODE_MANIFEST_PATH,
|
|
28
|
+
FOOD_IMAGE_INDEX_PATH: () => FOOD_IMAGE_INDEX_PATH,
|
|
29
|
+
FoodAiClassMappingStatusSchema: () => FoodAiClassMappingStatusSchema,
|
|
30
|
+
FoodCodeManifestImageSchema: () => FoodCodeManifestImageSchema,
|
|
31
|
+
FoodCodeManifestItemSchema: () => FoodCodeManifestItemSchema,
|
|
32
|
+
FoodCodeManifestSchema: () => FoodCodeManifestSchema,
|
|
33
|
+
FoodGranularitySchema: () => FoodGranularitySchema,
|
|
34
|
+
FoodImageIndexItemSchema: () => FoodImageIndexItemSchema,
|
|
35
|
+
FoodImageIndexManifestSchema: () => FoodImageIndexManifestSchema,
|
|
36
|
+
FoodResolveQuerySchema: () => FoodResolveQuerySchema,
|
|
37
|
+
FoodResolveResponseSchema: () => FoodResolveResponseSchema,
|
|
38
|
+
FoodResolvedMatchSourceSchema: () => FoodResolvedMatchSourceSchema,
|
|
39
|
+
FoodSearchQuerySchema: () => FoodSearchQuerySchema,
|
|
40
|
+
FoodSearchResponseSchema: () => FoodSearchResponseSchema,
|
|
41
|
+
ResolvedFoodCodeSchema: () => ResolvedFoodCodeSchema
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(food_exports);
|
|
44
|
+
|
|
45
|
+
// src/domain/food/food.contracts.ts
|
|
46
|
+
var FOOD_CODE_MANIFEST_PATH = "/manifests/food-code-manifest.json";
|
|
47
|
+
var AI_CLASS_TO_FOOD_CODE_MAP_PATH = "/manifests/ai-class-to-food-code-map.json";
|
|
48
|
+
var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
|
|
49
|
+
|
|
50
|
+
// src/domain/food/food.schema.ts
|
|
51
|
+
var import_zod3 = require("zod");
|
|
52
|
+
|
|
53
|
+
// src/domain/common/schema/date.schema.ts
|
|
54
|
+
var import_zod = require("zod");
|
|
55
|
+
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
56
|
+
var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
57
|
+
var ISODateTimeStringSchema = import_zod.z.string().datetime({
|
|
58
|
+
offset: true,
|
|
59
|
+
message: "Expected ISO datetime string"
|
|
60
|
+
});
|
|
61
|
+
var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
62
|
+
|
|
63
|
+
// src/domain/common/schema/id.schema.ts
|
|
64
|
+
var import_zod2 = require("zod");
|
|
65
|
+
var PositiveIntIdSchema = import_zod2.z.number().int().positive();
|
|
66
|
+
var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
|
|
67
|
+
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
68
|
+
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
69
|
+
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
70
|
+
var MealPlanIdSchema = import_zod2.z.string().uuid().brand();
|
|
71
|
+
var MealPlanInviteIdSchema = import_zod2.z.string().uuid().brand();
|
|
72
|
+
var MealPlanJoinRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
73
|
+
var MealPlanNearbyFriendExposureBatchIdSchema = import_zod2.z.string().uuid().brand();
|
|
74
|
+
var MealPlanChangeRequestIdSchema = import_zod2.z.string().uuid().brand();
|
|
75
|
+
var MealPlanShareLinkIdSchema = import_zod2.z.string().uuid().brand();
|
|
76
|
+
var MealPlanShareLinkTokenSchema = import_zod2.z.string().min(8).max(128).brand();
|
|
77
|
+
var MealPlanChatRoomIdSchema = import_zod2.z.string().uuid().brand();
|
|
78
|
+
var MealPlanChatMessageIdSchema = import_zod2.z.string().uuid().brand();
|
|
79
|
+
var MealGroupIdSchema = import_zod2.z.string().uuid().brand();
|
|
80
|
+
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
81
|
+
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
82
|
+
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
83
|
+
var FriendRequestIdSchema = PositiveIntIdSchema.brand();
|
|
84
|
+
var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
|
|
85
|
+
var FoodCodeSchema = NonEmptyStringIdSchema.brand();
|
|
86
|
+
var FoodLabelSchema = NonEmptyStringIdSchema.brand();
|
|
87
|
+
var FoodSchema = import_zod2.z.object({
|
|
88
|
+
code: FoodCodeSchema,
|
|
89
|
+
label: FoodLabelSchema
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// src/domain/food/food.schema.ts
|
|
93
|
+
var FoodGranularitySchema = import_zod3.z.enum([
|
|
94
|
+
"main_dish",
|
|
95
|
+
"side_dish",
|
|
96
|
+
"beverage",
|
|
97
|
+
"sauce"
|
|
98
|
+
]);
|
|
99
|
+
var CuisineTagSchema = import_zod3.z.enum([
|
|
100
|
+
"korean",
|
|
101
|
+
"western",
|
|
102
|
+
"chinese",
|
|
103
|
+
"japanese",
|
|
104
|
+
"mexican",
|
|
105
|
+
"indian",
|
|
106
|
+
"asian",
|
|
107
|
+
"snack",
|
|
108
|
+
"dessert",
|
|
109
|
+
"beverage",
|
|
110
|
+
"unknown"
|
|
111
|
+
]);
|
|
112
|
+
var FoodResolvedMatchSourceSchema = import_zod3.z.enum([
|
|
113
|
+
"category",
|
|
114
|
+
"alias",
|
|
115
|
+
"lexical",
|
|
116
|
+
"semantic"
|
|
117
|
+
]);
|
|
118
|
+
var FoodCodeManifestImageSchema = import_zod3.z.object({
|
|
119
|
+
src: import_zod3.z.string().min(1),
|
|
120
|
+
avifSrcset: import_zod3.z.string().min(1).optional(),
|
|
121
|
+
thumbhashDataURL: import_zod3.z.string().min(1).optional(),
|
|
122
|
+
aspectRatio: import_zod3.z.number().positive().optional()
|
|
123
|
+
});
|
|
124
|
+
var FoodCodeManifestItemSchema = import_zod3.z.object({
|
|
125
|
+
code: FoodCodeSchema,
|
|
126
|
+
label: FoodLabelSchema,
|
|
127
|
+
aliases: import_zod3.z.array(import_zod3.z.string().min(1)).default([]),
|
|
128
|
+
parentCategory: import_zod3.z.string().min(1),
|
|
129
|
+
cuisineTags: import_zod3.z.array(CuisineTagSchema).default([]),
|
|
130
|
+
categoryTags: import_zod3.z.array(import_zod3.z.string().min(1)).default([]),
|
|
131
|
+
semanticTags: import_zod3.z.array(import_zod3.z.string().min(1)).default([]),
|
|
132
|
+
granularity: FoodGranularitySchema,
|
|
133
|
+
searchable: import_zod3.z.boolean(),
|
|
134
|
+
recommendable: import_zod3.z.boolean(),
|
|
135
|
+
previewEnabled: import_zod3.z.boolean(),
|
|
136
|
+
imageUrl: import_zod3.z.string().min(1).nullable().optional(),
|
|
137
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
138
|
+
popularity: import_zod3.z.number().nonnegative().optional(),
|
|
139
|
+
source: import_zod3.z.enum([
|
|
140
|
+
"foodname",
|
|
141
|
+
"manual",
|
|
142
|
+
"foodai",
|
|
143
|
+
"legacy"
|
|
144
|
+
]).optional()
|
|
145
|
+
});
|
|
146
|
+
var FoodCodeManifestSchema = import_zod3.z.object({
|
|
147
|
+
version: import_zod3.z.string().min(1),
|
|
148
|
+
updatedAt: ISODateTimeStringSchema,
|
|
149
|
+
taxonomyVersion: import_zod3.z.string().min(1),
|
|
150
|
+
etag: import_zod3.z.string().min(1).optional(),
|
|
151
|
+
items: import_zod3.z.array(FoodCodeManifestItemSchema),
|
|
152
|
+
categoryIndex: import_zod3.z.record(import_zod3.z.string(), import_zod3.z.array(FoodCodeSchema)),
|
|
153
|
+
aliasIndex: import_zod3.z.record(import_zod3.z.string(), import_zod3.z.array(FoodCodeSchema)).optional()
|
|
154
|
+
});
|
|
155
|
+
var FoodImageIndexItemSchema = import_zod3.z.object({
|
|
156
|
+
code: FoodCodeSchema,
|
|
157
|
+
label: FoodLabelSchema,
|
|
158
|
+
imageUrl: import_zod3.z.string().min(1).nullable(),
|
|
159
|
+
image: FoodCodeManifestImageSchema.nullable(),
|
|
160
|
+
source: import_zod3.z.enum([
|
|
161
|
+
"foodname",
|
|
162
|
+
"manual",
|
|
163
|
+
"foodai",
|
|
164
|
+
"legacy"
|
|
165
|
+
]).optional()
|
|
166
|
+
});
|
|
167
|
+
var FoodImageIndexManifestSchema = import_zod3.z.object({
|
|
168
|
+
version: import_zod3.z.string().min(1),
|
|
169
|
+
updatedAt: ISODateTimeStringSchema,
|
|
170
|
+
taxonomyVersion: import_zod3.z.string().min(1),
|
|
171
|
+
items: import_zod3.z.array(FoodImageIndexItemSchema)
|
|
172
|
+
});
|
|
173
|
+
var ResolvedFoodCodeSchema = import_zod3.z.object({
|
|
174
|
+
code: FoodCodeSchema,
|
|
175
|
+
label: FoodLabelSchema,
|
|
176
|
+
matchedBy: FoodResolvedMatchSourceSchema,
|
|
177
|
+
score: import_zod3.z.number(),
|
|
178
|
+
granularity: FoodGranularitySchema,
|
|
179
|
+
imageUrl: import_zod3.z.string().min(1).nullable().optional()
|
|
180
|
+
});
|
|
181
|
+
var BooleanQuerySchema = import_zod3.z.preprocess((value) => {
|
|
182
|
+
if (value === "true") return true;
|
|
183
|
+
if (value === "false") return false;
|
|
184
|
+
return value;
|
|
185
|
+
}, import_zod3.z.boolean());
|
|
186
|
+
var FoodResolveQuerySchema = import_zod3.z.object({
|
|
187
|
+
q: import_zod3.z.string().default(""),
|
|
188
|
+
limit: import_zod3.z.coerce.number().int().min(1).max(100).optional().default(30),
|
|
189
|
+
recommendableOnly: BooleanQuerySchema.optional().default(true)
|
|
190
|
+
});
|
|
191
|
+
var FoodSearchQuerySchema = import_zod3.z.object({
|
|
192
|
+
q: import_zod3.z.string().default(""),
|
|
193
|
+
limit: import_zod3.z.coerce.number().int().min(1).max(100).optional().default(20)
|
|
194
|
+
});
|
|
195
|
+
var FoodResolveResponseSchema = import_zod3.z.object({
|
|
196
|
+
query: import_zod3.z.string(),
|
|
197
|
+
items: import_zod3.z.array(ResolvedFoodCodeSchema)
|
|
198
|
+
});
|
|
199
|
+
var FoodSearchResponseSchema = FoodResolveResponseSchema;
|
|
200
|
+
var FoodAiClassMappingStatusSchema = import_zod3.z.enum([
|
|
201
|
+
"exact",
|
|
202
|
+
"broad",
|
|
203
|
+
"narrow",
|
|
204
|
+
"merged",
|
|
205
|
+
"ignored",
|
|
206
|
+
"review_required"
|
|
207
|
+
]);
|
|
208
|
+
var AiClassFoodCodeMappingSchema = import_zod3.z.object({
|
|
209
|
+
classId: import_zod3.z.number().int().nonnegative(),
|
|
210
|
+
aiLabel: import_zod3.z.string().min(1),
|
|
211
|
+
aiAliases: import_zod3.z.array(import_zod3.z.string().min(1)).default([]),
|
|
212
|
+
representativeCode: FoodCodeSchema.nullable(),
|
|
213
|
+
candidateCodes: import_zod3.z.array(FoodCodeSchema).default([]),
|
|
214
|
+
mappingStatus: FoodAiClassMappingStatusSchema,
|
|
215
|
+
granularity: FoodGranularitySchema,
|
|
216
|
+
searchable: import_zod3.z.boolean(),
|
|
217
|
+
recommendable: import_zod3.z.boolean(),
|
|
218
|
+
reason: import_zod3.z.string().min(1).optional()
|
|
219
|
+
});
|
|
220
|
+
var AiClassToFoodCodeMapManifestSchema = import_zod3.z.object({
|
|
221
|
+
version: import_zod3.z.string().min(1),
|
|
222
|
+
updatedAt: ISODateTimeStringSchema,
|
|
223
|
+
modelTaxonomyVersion: import_zod3.z.string().min(1),
|
|
224
|
+
serviceTaxonomyVersion: import_zod3.z.string().min(1),
|
|
225
|
+
classes: import_zod3.z.array(AiClassFoodCodeMappingSchema)
|
|
226
|
+
});
|
|
227
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
228
|
+
0 && (module.exports = {
|
|
229
|
+
AI_CLASS_TO_FOOD_CODE_MAP_PATH,
|
|
230
|
+
AiClassFoodCodeMappingSchema,
|
|
231
|
+
AiClassToFoodCodeMapManifestSchema,
|
|
232
|
+
CuisineTagSchema,
|
|
233
|
+
FOOD_CODE_MANIFEST_PATH,
|
|
234
|
+
FOOD_IMAGE_INDEX_PATH,
|
|
235
|
+
FoodAiClassMappingStatusSchema,
|
|
236
|
+
FoodCodeManifestImageSchema,
|
|
237
|
+
FoodCodeManifestItemSchema,
|
|
238
|
+
FoodCodeManifestSchema,
|
|
239
|
+
FoodGranularitySchema,
|
|
240
|
+
FoodImageIndexItemSchema,
|
|
241
|
+
FoodImageIndexManifestSchema,
|
|
242
|
+
FoodResolveQuerySchema,
|
|
243
|
+
FoodResolveResponseSchema,
|
|
244
|
+
FoodResolvedMatchSourceSchema,
|
|
245
|
+
FoodSearchQuerySchema,
|
|
246
|
+
FoodSearchResponseSchema,
|
|
247
|
+
ResolvedFoodCodeSchema
|
|
248
|
+
});
|