@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
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RestaurantSchema
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
ISODateStringSchema,
|
|
6
|
-
ISODateTimeStringSchema
|
|
7
|
-
} from "./chunk-HRM3FQPL.js";
|
|
3
|
+
} from "./chunk-TOXRHSD6.js";
|
|
8
4
|
import {
|
|
9
5
|
MemberCoreSchema,
|
|
10
6
|
UploadPresignImageRequestSchema,
|
|
11
7
|
UploadPresignImageResponseSchema
|
|
12
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YV734GYZ.js";
|
|
9
|
+
import {
|
|
10
|
+
ISODateStringSchema,
|
|
11
|
+
ISODateTimeStringSchema
|
|
12
|
+
} from "./chunk-EYZU5HPG.js";
|
|
13
13
|
import {
|
|
14
14
|
ArticleIdSchema,
|
|
15
15
|
CommentIdSchema,
|
|
16
16
|
FoodSchema,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
MealPlanIdSchema,
|
|
18
|
+
MemberIdSchema,
|
|
19
|
+
__name
|
|
20
|
+
} from "./chunk-6R5CCY5Q.js";
|
|
19
21
|
|
|
20
22
|
// src/domain/article/article.schema.ts
|
|
21
23
|
import { z as z2 } from "zod";
|
|
@@ -34,14 +36,21 @@ var PageMetaSchema = z.object({
|
|
|
34
36
|
hasNext: z.boolean(),
|
|
35
37
|
hasPrevious: z.boolean()
|
|
36
38
|
});
|
|
37
|
-
var PageResponseSchema = (item) => z.object({
|
|
39
|
+
var PageResponseSchema = /* @__PURE__ */ __name((item) => z.object({
|
|
38
40
|
items: z.array(item),
|
|
39
41
|
meta: PageMetaSchema
|
|
40
|
-
});
|
|
41
|
-
var SortDirectionSchema = z.enum([
|
|
42
|
+
}), "PageResponseSchema");
|
|
43
|
+
var SortDirectionSchema = z.enum([
|
|
44
|
+
"asc",
|
|
45
|
+
"desc"
|
|
46
|
+
]);
|
|
42
47
|
|
|
43
48
|
// src/domain/article/article.schema.ts
|
|
44
|
-
var ArticleSortBySchema = z2.enum([
|
|
49
|
+
var ArticleSortBySchema = z2.enum([
|
|
50
|
+
"createdAt",
|
|
51
|
+
"likeCount",
|
|
52
|
+
"commentCount"
|
|
53
|
+
]);
|
|
45
54
|
var ArticleListQuerySchema = PageQuerySchema.extend({
|
|
46
55
|
sortBy: ArticleSortBySchema.optional().default("createdAt"),
|
|
47
56
|
direction: SortDirectionSchema.optional().default("desc")
|
|
@@ -57,7 +66,8 @@ var CreateArticleRequestSchema = z2.object({
|
|
|
57
66
|
mealDate: ISODateStringSchema,
|
|
58
67
|
restaurant: RestaurantSchema,
|
|
59
68
|
taggedMemberIds: z2.array(MemberIdSchema).default([]),
|
|
60
|
-
foodAnalysis: FoodAnalysisResultSchema.optional()
|
|
69
|
+
foodAnalysis: FoodAnalysisResultSchema.optional(),
|
|
70
|
+
mealPlanId: MealPlanIdSchema.optional()
|
|
61
71
|
});
|
|
62
72
|
var CreateCommentRequestSchema = z2.object({
|
|
63
73
|
content: z2.string().min(1).max(500),
|
|
@@ -77,6 +87,7 @@ var ArticleCoreSchema = z2.object({
|
|
|
77
87
|
imageUrl: z2.string().url(),
|
|
78
88
|
mealDate: ISODateStringSchema,
|
|
79
89
|
restaurant: RestaurantSchema,
|
|
90
|
+
mealPlanId: MealPlanIdSchema.nullable(),
|
|
80
91
|
createdAt: ISODateTimeStringSchema,
|
|
81
92
|
updatedAt: ISODateTimeStringSchema,
|
|
82
93
|
expiresAt: ISODateTimeStringSchema,
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ISODateTimeStringSchema
|
|
3
|
+
} from "./chunk-EYZU5HPG.js";
|
|
4
|
+
import {
|
|
5
|
+
FoodCodeSchema,
|
|
6
|
+
FoodLabelSchema
|
|
7
|
+
} from "./chunk-6R5CCY5Q.js";
|
|
8
|
+
|
|
9
|
+
// src/domain/food/food.contracts.ts
|
|
10
|
+
var FOOD_CODE_MANIFEST_PATH = "/manifests/food-code-manifest.json";
|
|
11
|
+
var AI_CLASS_TO_FOOD_CODE_MAP_PATH = "/manifests/ai-class-to-food-code-map.json";
|
|
12
|
+
var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
|
|
13
|
+
|
|
14
|
+
// src/domain/food/food.schema.ts
|
|
15
|
+
import { z } from "zod";
|
|
16
|
+
var FoodGranularitySchema = z.enum([
|
|
17
|
+
"main_dish",
|
|
18
|
+
"side_dish",
|
|
19
|
+
"beverage",
|
|
20
|
+
"sauce"
|
|
21
|
+
]);
|
|
22
|
+
var CuisineTagSchema = z.enum([
|
|
23
|
+
"korean",
|
|
24
|
+
"western",
|
|
25
|
+
"chinese",
|
|
26
|
+
"japanese",
|
|
27
|
+
"mexican",
|
|
28
|
+
"indian",
|
|
29
|
+
"asian",
|
|
30
|
+
"snack",
|
|
31
|
+
"dessert",
|
|
32
|
+
"beverage",
|
|
33
|
+
"unknown"
|
|
34
|
+
]);
|
|
35
|
+
var FoodResolvedMatchSourceSchema = z.enum([
|
|
36
|
+
"category",
|
|
37
|
+
"alias",
|
|
38
|
+
"lexical",
|
|
39
|
+
"semantic"
|
|
40
|
+
]);
|
|
41
|
+
var FoodCodeManifestImageSchema = z.object({
|
|
42
|
+
src: z.string().min(1),
|
|
43
|
+
avifSrcset: z.string().min(1).optional(),
|
|
44
|
+
thumbhashDataURL: z.string().min(1).optional(),
|
|
45
|
+
aspectRatio: z.number().positive().optional()
|
|
46
|
+
});
|
|
47
|
+
var FoodCodeManifestItemSchema = z.object({
|
|
48
|
+
code: FoodCodeSchema,
|
|
49
|
+
label: FoodLabelSchema,
|
|
50
|
+
aliases: z.array(z.string().min(1)).default([]),
|
|
51
|
+
parentCategory: z.string().min(1),
|
|
52
|
+
cuisineTags: z.array(CuisineTagSchema).default([]),
|
|
53
|
+
categoryTags: z.array(z.string().min(1)).default([]),
|
|
54
|
+
semanticTags: z.array(z.string().min(1)).default([]),
|
|
55
|
+
granularity: FoodGranularitySchema,
|
|
56
|
+
searchable: z.boolean(),
|
|
57
|
+
recommendable: z.boolean(),
|
|
58
|
+
previewEnabled: z.boolean(),
|
|
59
|
+
imageUrl: z.string().min(1).nullable().optional(),
|
|
60
|
+
image: FoodCodeManifestImageSchema.nullable().optional(),
|
|
61
|
+
popularity: z.number().nonnegative().optional(),
|
|
62
|
+
source: z.enum([
|
|
63
|
+
"foodname",
|
|
64
|
+
"manual",
|
|
65
|
+
"foodai",
|
|
66
|
+
"legacy"
|
|
67
|
+
]).optional()
|
|
68
|
+
});
|
|
69
|
+
var FoodCodeManifestSchema = z.object({
|
|
70
|
+
version: z.string().min(1),
|
|
71
|
+
updatedAt: ISODateTimeStringSchema,
|
|
72
|
+
taxonomyVersion: z.string().min(1),
|
|
73
|
+
etag: z.string().min(1).optional(),
|
|
74
|
+
items: z.array(FoodCodeManifestItemSchema),
|
|
75
|
+
categoryIndex: z.record(z.string(), z.array(FoodCodeSchema)),
|
|
76
|
+
aliasIndex: z.record(z.string(), z.array(FoodCodeSchema)).optional()
|
|
77
|
+
});
|
|
78
|
+
var FoodImageIndexItemSchema = z.object({
|
|
79
|
+
code: FoodCodeSchema,
|
|
80
|
+
label: FoodLabelSchema,
|
|
81
|
+
imageUrl: z.string().min(1).nullable(),
|
|
82
|
+
image: FoodCodeManifestImageSchema.nullable(),
|
|
83
|
+
source: z.enum([
|
|
84
|
+
"foodname",
|
|
85
|
+
"manual",
|
|
86
|
+
"foodai",
|
|
87
|
+
"legacy"
|
|
88
|
+
]).optional()
|
|
89
|
+
});
|
|
90
|
+
var FoodImageIndexManifestSchema = z.object({
|
|
91
|
+
version: z.string().min(1),
|
|
92
|
+
updatedAt: ISODateTimeStringSchema,
|
|
93
|
+
taxonomyVersion: z.string().min(1),
|
|
94
|
+
items: z.array(FoodImageIndexItemSchema)
|
|
95
|
+
});
|
|
96
|
+
var ResolvedFoodCodeSchema = z.object({
|
|
97
|
+
code: FoodCodeSchema,
|
|
98
|
+
label: FoodLabelSchema,
|
|
99
|
+
matchedBy: FoodResolvedMatchSourceSchema,
|
|
100
|
+
score: z.number(),
|
|
101
|
+
granularity: FoodGranularitySchema,
|
|
102
|
+
imageUrl: z.string().min(1).nullable().optional()
|
|
103
|
+
});
|
|
104
|
+
var BooleanQuerySchema = z.preprocess((value) => {
|
|
105
|
+
if (value === "true") return true;
|
|
106
|
+
if (value === "false") return false;
|
|
107
|
+
return value;
|
|
108
|
+
}, z.boolean());
|
|
109
|
+
var FoodResolveQuerySchema = z.object({
|
|
110
|
+
q: z.string().default(""),
|
|
111
|
+
limit: z.coerce.number().int().min(1).max(100).optional().default(30),
|
|
112
|
+
recommendableOnly: BooleanQuerySchema.optional().default(true)
|
|
113
|
+
});
|
|
114
|
+
var FoodSearchQuerySchema = z.object({
|
|
115
|
+
q: z.string().default(""),
|
|
116
|
+
limit: z.coerce.number().int().min(1).max(100).optional().default(20)
|
|
117
|
+
});
|
|
118
|
+
var FoodResolveResponseSchema = z.object({
|
|
119
|
+
query: z.string(),
|
|
120
|
+
items: z.array(ResolvedFoodCodeSchema)
|
|
121
|
+
});
|
|
122
|
+
var FoodSearchResponseSchema = FoodResolveResponseSchema;
|
|
123
|
+
var FoodAiClassMappingStatusSchema = z.enum([
|
|
124
|
+
"exact",
|
|
125
|
+
"broad",
|
|
126
|
+
"narrow",
|
|
127
|
+
"merged",
|
|
128
|
+
"ignored",
|
|
129
|
+
"review_required"
|
|
130
|
+
]);
|
|
131
|
+
var AiClassFoodCodeMappingSchema = z.object({
|
|
132
|
+
classId: z.number().int().nonnegative(),
|
|
133
|
+
aiLabel: z.string().min(1),
|
|
134
|
+
aiAliases: z.array(z.string().min(1)).default([]),
|
|
135
|
+
representativeCode: FoodCodeSchema.nullable(),
|
|
136
|
+
candidateCodes: z.array(FoodCodeSchema).default([]),
|
|
137
|
+
mappingStatus: FoodAiClassMappingStatusSchema,
|
|
138
|
+
granularity: FoodGranularitySchema,
|
|
139
|
+
searchable: z.boolean(),
|
|
140
|
+
recommendable: z.boolean(),
|
|
141
|
+
reason: z.string().min(1).optional()
|
|
142
|
+
});
|
|
143
|
+
var AiClassToFoodCodeMapManifestSchema = z.object({
|
|
144
|
+
version: z.string().min(1),
|
|
145
|
+
updatedAt: ISODateTimeStringSchema,
|
|
146
|
+
modelTaxonomyVersion: z.string().min(1),
|
|
147
|
+
serviceTaxonomyVersion: z.string().min(1),
|
|
148
|
+
classes: z.array(AiClassFoodCodeMappingSchema)
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
export {
|
|
152
|
+
FOOD_CODE_MANIFEST_PATH,
|
|
153
|
+
AI_CLASS_TO_FOOD_CODE_MAP_PATH,
|
|
154
|
+
FOOD_IMAGE_INDEX_PATH,
|
|
155
|
+
FoodGranularitySchema,
|
|
156
|
+
CuisineTagSchema,
|
|
157
|
+
FoodResolvedMatchSourceSchema,
|
|
158
|
+
FoodCodeManifestImageSchema,
|
|
159
|
+
FoodCodeManifestItemSchema,
|
|
160
|
+
FoodCodeManifestSchema,
|
|
161
|
+
FoodImageIndexItemSchema,
|
|
162
|
+
FoodImageIndexManifestSchema,
|
|
163
|
+
ResolvedFoodCodeSchema,
|
|
164
|
+
FoodResolveQuerySchema,
|
|
165
|
+
FoodSearchQuerySchema,
|
|
166
|
+
FoodResolveResponseSchema,
|
|
167
|
+
FoodSearchResponseSchema,
|
|
168
|
+
FoodAiClassMappingStatusSchema,
|
|
169
|
+
AiClassFoodCodeMappingSchema,
|
|
170
|
+
AiClassToFoodCodeMapManifestSchema
|
|
171
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ISODateStringSchema
|
|
3
|
-
} from "./chunk-HRM3FQPL.js";
|
|
4
1
|
import {
|
|
5
2
|
MemberCoreSchema
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YV734GYZ.js";
|
|
4
|
+
import {
|
|
5
|
+
ISODateStringSchema
|
|
6
|
+
} from "./chunk-EYZU5HPG.js";
|
|
7
7
|
|
|
8
8
|
// src/domain/meal/meal.schema.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -13,11 +13,18 @@ var MealStatusResponseSchema = z.object({
|
|
|
13
13
|
updatedAt: ISODateStringSchema,
|
|
14
14
|
secondsToAutoOff: z.number().int().min(0)
|
|
15
15
|
});
|
|
16
|
-
var MealStatusActionSchema = z.enum([
|
|
16
|
+
var MealStatusActionSchema = z.enum([
|
|
17
|
+
"ARTICLE_UPLOAD",
|
|
18
|
+
"SET_MANNUALY"
|
|
19
|
+
]);
|
|
17
20
|
var UpdateMealStatusRequestSchema = z.object({
|
|
18
21
|
action: MealStatusActionSchema.optional().default("SET_MANNUALY")
|
|
19
22
|
});
|
|
20
|
-
var MealStatusSchema = z.enum([
|
|
23
|
+
var MealStatusSchema = z.enum([
|
|
24
|
+
"ALL",
|
|
25
|
+
"HUNGRY",
|
|
26
|
+
"NOT_HUNGRY"
|
|
27
|
+
]);
|
|
21
28
|
var FriendMealQuerySchema = z.object({
|
|
22
29
|
status: MealStatusSchema.optional().default("ALL")
|
|
23
30
|
});
|