@kimdaegyu/babmukdang-shared 1.1.0 → 1.1.3
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-NW5O4R7M.js → chunk-GTVEQYJW.js} +2 -2
- package/dist/{chunk-UFVPFUMI.js → chunk-H77ISYYC.js} +17 -1
- package/dist/{chunk-FCE6KXNO.js → chunk-J76VB5SE.js} +4 -4
- package/dist/chunk-JEUH3JDZ.js +299 -0
- package/dist/chunk-KRVEQVRC.js +72 -0
- package/dist/{chunk-EJKRR2MZ.js → chunk-M5OSCHMV.js} +14 -15
- package/dist/chunk-TY4WZEIZ.js +109 -0
- package/dist/chunk-U6OQQOPN.js +35 -0
- package/dist/chunk-UJJMW7II.js +37 -0
- package/dist/chunk-VAWYU5JG.js +78 -0
- package/dist/{chunk-2GRWCRTV.js → chunk-VWPUBTMV.js} +102 -106
- package/dist/{chunk-ZNAAA53X.js → chunk-W3YQYI4R.js} +14 -19
- package/dist/chunk-YGFAVC5N.js +34 -0
- package/dist/domain/article/index.cjs +137 -144
- package/dist/domain/article/index.d.cts +208 -282
- package/dist/domain/article/index.d.ts +208 -282
- package/dist/domain/article/index.js +16 -18
- package/dist/domain/auth/index.cjs +51 -45
- package/dist/domain/auth/index.d.cts +7 -8
- package/dist/domain/auth/index.d.ts +7 -8
- package/dist/domain/auth/index.js +3 -6
- package/dist/domain/common/index.cjs +430 -425
- package/dist/domain/common/index.d.cts +1224 -1111
- package/dist/domain/common/index.d.ts +1224 -1111
- package/dist/domain/common/index.js +49 -38
- package/dist/domain/friend/index.cjs +66 -70
- package/dist/domain/friend/index.d.cts +32 -63
- package/dist/domain/friend/index.d.ts +32 -63
- package/dist/domain/friend/index.js +3 -11
- package/dist/domain/index.cjs +469 -474
- package/dist/domain/index.d.cts +11 -14
- package/dist/domain/index.d.ts +11 -14
- package/dist/domain/index.js +103 -117
- package/dist/domain/invitation/index.cjs +19 -41
- package/dist/domain/invitation/index.d.cts +3 -6
- package/dist/domain/invitation/index.d.ts +3 -6
- package/dist/domain/invitation/index.js +4 -8
- package/dist/domain/meal/index.cjs +108 -13
- package/dist/domain/meal/index.d.cts +51 -23
- package/dist/domain/meal/index.d.ts +51 -23
- package/dist/domain/meal/index.js +8 -3
- package/dist/domain/member/index.cjs +63 -54
- package/dist/domain/member/index.d.cts +233 -126
- package/dist/domain/member/index.d.ts +233 -126
- package/dist/domain/member/index.js +17 -17
- package/dist/domain/plan/index.cjs +145 -136
- package/dist/domain/plan/index.d.cts +22 -33
- package/dist/domain/plan/index.d.ts +22 -33
- package/dist/domain/plan/index.js +8 -9
- package/dist/domain/{referral → promotion}/index.cjs +62 -6
- package/dist/domain/promotion/index.d.cts +114 -0
- package/dist/domain/promotion/index.d.ts +114 -0
- package/dist/domain/promotion/index.js +24 -0
- package/dist/domain/recruit/index.cjs +104 -61
- package/dist/domain/recruit/index.d.cts +56 -56
- package/dist/domain/recruit/index.d.ts +56 -56
- package/dist/domain/recruit/index.js +21 -11
- package/dist/domain/restaurant/index.cjs +8 -2
- package/dist/domain/restaurant/index.d.cts +1 -4
- package/dist/domain/restaurant/index.d.ts +1 -4
- package/dist/domain/restaurant/index.js +2 -3
- package/dist/domain/room/index.cjs +134 -122
- package/dist/domain/room/index.d.cts +144 -144
- package/dist/domain/room/index.d.ts +144 -144
- package/dist/domain/room/index.js +5 -5
- package/dist/{id-B-8M90Ef.d.cts → id-dAYxfjZn.d.cts} +22 -1
- package/dist/{id-B-8M90Ef.d.ts → id-dAYxfjZn.d.ts} +22 -1
- package/dist/index-DAcw_a8p.d.ts +292 -0
- package/dist/index-DJJo4ejN.d.cts +292 -0
- package/dist/index.cjs +436 -630
- package/dist/index.d.cts +27 -142
- package/dist/index.d.ts +27 -142
- package/dist/index.js +14 -204
- package/package.json +55 -50
- package/dist/chunk-2SJCUQNN.js +0 -40
- package/dist/chunk-35QGRA2X.js +0 -0
- package/dist/chunk-3YMV26OY.js +0 -0
- package/dist/chunk-4DAOP35P.js +0 -74
- package/dist/chunk-6NZPEF4K.js +0 -34
- package/dist/chunk-7MGHUZXI.js +0 -25
- package/dist/chunk-BVTYAILQ.js +0 -0
- package/dist/chunk-F24BT6H4.js +0 -23
- package/dist/chunk-IJMADVK5.js +0 -27
- package/dist/chunk-IYCA6KHR.js +0 -0
- package/dist/chunk-JCN37ARR.js +0 -52
- package/dist/chunk-JXYRJKRV.js +0 -0
- package/dist/chunk-LCMNVWSP.js +0 -0
- package/dist/chunk-MP7TEKEI.js +0 -72
- package/dist/chunk-O6DYRCFN.js +0 -0
- package/dist/chunk-PDGMGLYH.js +0 -0
- package/dist/chunk-TA4BB3UC.js +0 -0
- package/dist/chunk-UN7KYFMV.js +0 -0
- package/dist/chunk-UXA4FHST.js +0 -19
- package/dist/chunk-WNY6POLW.js +0 -0
- package/dist/chunk-YVACD5IG.js +0 -127
- package/dist/chunk-Z2UFF3MA.js +0 -212
- package/dist/chunk-ZSZ3ETY7.js +0 -32
- package/dist/domain/challenge/index.cjs +0 -65
- package/dist/domain/challenge/index.d.cts +0 -104
- package/dist/domain/challenge/index.d.ts +0 -104
- package/dist/domain/challenge/index.js +0 -18
- package/dist/domain/coupon/index.cjs +0 -74
- package/dist/domain/coupon/index.d.cts +0 -38
- package/dist/domain/coupon/index.d.ts +0 -38
- package/dist/domain/coupon/index.js +0 -14
- package/dist/domain/preference/index.cjs +0 -69
- package/dist/domain/preference/index.d.cts +0 -31
- package/dist/domain/preference/index.d.ts +0 -31
- package/dist/domain/preference/index.js +0 -12
- package/dist/domain/referral/index.d.cts +0 -51
- package/dist/domain/referral/index.d.ts +0 -51
- package/dist/domain/referral/index.js +0 -14
- package/dist/index-BuInbhtG.d.cts +0 -305
- package/dist/index-CKRUOupn.d.ts +0 -305
- /package/dist/{chunk-34EKPNPX.js → chunk-NJTV6DRT.js} +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,27 +17,35 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/domain/article/index.ts
|
|
21
31
|
var article_exports = {};
|
|
22
32
|
__export(article_exports, {
|
|
33
|
+
ArticleCommentSchema: () => ArticleCommentSchema,
|
|
23
34
|
ArticleCoreSchema: () => ArticleCoreSchema,
|
|
24
35
|
ArticleDetailResponseSchema: () => ArticleDetailResponseSchema,
|
|
25
|
-
|
|
36
|
+
ArticleListQuerySchema: () => ArticleListQuerySchema,
|
|
37
|
+
ArticleSortBySchema: () => ArticleSortBySchema,
|
|
26
38
|
ArticleSummaryResponseSchema: () => ArticleSummaryResponseSchema,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
CreateArticleResponseSchema: () => CreateArticleResponseSchema,
|
|
30
|
-
CreateCommentResponseSchema: () => CreateCommentResponseSchema,
|
|
39
|
+
CreateArticleRequestSchema: () => CreateArticleRequestSchema,
|
|
40
|
+
CreateCommentRequestSchema: () => CreateCommentRequestSchema,
|
|
31
41
|
FoodAnalysisResultSchema: () => FoodAnalysisResultSchema,
|
|
32
42
|
PageArticleSummaryResponseSchema: () => PageArticleSummaryResponseSchema,
|
|
33
|
-
|
|
43
|
+
PresignArticleResponseSchema: () => PresignArticleResponseSchema
|
|
34
44
|
});
|
|
35
45
|
module.exports = __toCommonJS(article_exports);
|
|
36
46
|
|
|
37
|
-
// src/domain/article/
|
|
38
|
-
var
|
|
47
|
+
// src/domain/article/article.schema.ts
|
|
48
|
+
var import_zod7 = require("zod");
|
|
39
49
|
|
|
40
50
|
// src/domain/common/schema/date.schema.ts
|
|
41
51
|
var import_zod = require("zod");
|
|
@@ -60,191 +70,174 @@ var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
|
60
70
|
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
61
71
|
var FriendRequestIdSchema = PositiveIntIdSchema.brand();
|
|
62
72
|
var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
|
|
73
|
+
var FoodCodeSchema = NonEmptyStringIdSchema.brand();
|
|
74
|
+
var FoodLabelSchema = NonEmptyStringIdSchema.brand();
|
|
75
|
+
var FoodSchema = import_zod2.z.object({
|
|
76
|
+
code: FoodCodeSchema,
|
|
77
|
+
label: FoodLabelSchema
|
|
78
|
+
});
|
|
63
79
|
|
|
64
80
|
// src/domain/common/schema/pagination.schema.ts
|
|
65
81
|
var import_zod3 = require("zod");
|
|
66
|
-
var
|
|
67
|
-
page: import_zod3.z.number().int().min(0).default(0),
|
|
68
|
-
size: import_zod3.z.number().int().min(1).max(100).default(20)
|
|
69
|
-
});
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
sort: SortObjectSchema,
|
|
78
|
-
paged: import_zod3.z.boolean(),
|
|
79
|
-
pageNumber: import_zod3.z.number().int().min(0),
|
|
80
|
-
pageSize: import_zod3.z.number().int().min(1),
|
|
81
|
-
unpaged: import_zod3.z.boolean()
|
|
82
|
+
var PageQuerySchema = import_zod3.z.object({
|
|
83
|
+
page: import_zod3.z.number().int().min(0).optional().default(0),
|
|
84
|
+
size: import_zod3.z.number().int().min(1).max(100).optional().default(20)
|
|
85
|
+
});
|
|
86
|
+
var PageMetaSchema = import_zod3.z.object({
|
|
87
|
+
page: import_zod3.z.number().int().min(0),
|
|
88
|
+
size: import_zod3.z.number().int().min(1),
|
|
89
|
+
totalItems: import_zod3.z.number().int().min(0),
|
|
90
|
+
totalPages: import_zod3.z.number().int().min(0),
|
|
91
|
+
hasNext: import_zod3.z.boolean(),
|
|
92
|
+
hasPrevious: import_zod3.z.boolean()
|
|
82
93
|
});
|
|
83
94
|
var PageResponseSchema = (item) => import_zod3.z.object({
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
first: import_zod3.z.boolean(),
|
|
87
|
-
size: import_zod3.z.number().int().min(0),
|
|
88
|
-
content: import_zod3.z.array(item),
|
|
89
|
-
number: import_zod3.z.number().int().min(0),
|
|
90
|
-
sort: SortObjectSchema,
|
|
91
|
-
numberOfElements: import_zod3.z.number().int().min(0),
|
|
92
|
-
pageable: PageableObjectSchema,
|
|
93
|
-
last: import_zod3.z.boolean(),
|
|
94
|
-
empty: import_zod3.z.boolean()
|
|
95
|
+
items: import_zod3.z.array(item),
|
|
96
|
+
meta: PageMetaSchema
|
|
95
97
|
});
|
|
98
|
+
var SortDirectionSchema = import_zod3.z.enum(["asc", "desc"]);
|
|
96
99
|
|
|
97
|
-
// src/domain/member/
|
|
98
|
-
var
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
// src/domain/member/member.schema.ts
|
|
101
|
+
var import_zod5 = require("zod");
|
|
102
|
+
|
|
103
|
+
// src/domain/common/contracts/upload.ts
|
|
104
|
+
var import_zod4 = __toESM(require("zod"), 1);
|
|
105
|
+
var PresignUploadResponseSchema = import_zod4.default.object({
|
|
106
|
+
key: import_zod4.default.string(),
|
|
107
|
+
putUrl: import_zod4.default.string().url(),
|
|
108
|
+
cdnUrl: import_zod4.default.string().url()
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// src/domain/member/member.schema.ts
|
|
112
|
+
var MemberRoleSchema = import_zod5.z.enum(["USER", "ADMIN"]);
|
|
113
|
+
var MemberCoreSchema = import_zod5.z.object({
|
|
101
114
|
memberId: MemberIdSchema,
|
|
102
|
-
username:
|
|
103
|
-
profileImageUrl:
|
|
115
|
+
username: import_zod5.z.string().min(1).max(50),
|
|
116
|
+
profileImageUrl: import_zod5.z.string().url().nullable().optional()
|
|
104
117
|
});
|
|
118
|
+
var PresignProfileResponseSchema = PresignUploadResponseSchema.extend({});
|
|
105
119
|
var MemberResponseSchema = MemberCoreSchema.pick({
|
|
106
120
|
memberId: true,
|
|
107
121
|
username: true,
|
|
108
122
|
profileImageUrl: true
|
|
109
123
|
});
|
|
110
|
-
var
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
var OnboardingPreferenceRequestSchema = import_zod4.z.object({
|
|
136
|
-
likedCodes: import_zod4.z.array(import_zod4.z.string()),
|
|
137
|
-
dislikedCodes: import_zod4.z.array(import_zod4.z.string()),
|
|
138
|
-
allergyCodes: import_zod4.z.array(import_zod4.z.string())
|
|
139
|
-
});
|
|
140
|
-
var OnboardingRequestSchema = UpdateProfileRequestSchema.merge(
|
|
141
|
-
OnboardingPreferenceRequestSchema
|
|
124
|
+
var MemberSearchQuerySchema = import_zod5.z.object({
|
|
125
|
+
email: import_zod5.z.string().email().optional(),
|
|
126
|
+
username: import_zod5.z.string().optional()
|
|
127
|
+
});
|
|
128
|
+
var MemberSerachResponseSchema = import_zod5.z.array(MemberCoreSchema);
|
|
129
|
+
var MemberDetailSchema = MemberCoreSchema.extend({
|
|
130
|
+
bio: import_zod5.z.string().nullable(),
|
|
131
|
+
friendConunt: import_zod5.z.number().int().min(0).default(0),
|
|
132
|
+
completedPlans: import_zod5.z.number().int().min(0).default(0),
|
|
133
|
+
uncompletedPlans: import_zod5.z.number().int().min(0).default(0)
|
|
134
|
+
});
|
|
135
|
+
var FoodPreferenceItemSchema = FoodSchema.extend({});
|
|
136
|
+
var MemberFoodPreferenceSchema = import_zod5.z.object({
|
|
137
|
+
liked: import_zod5.z.array(FoodPreferenceItemSchema).optional(),
|
|
138
|
+
disliked: import_zod5.z.array(FoodPreferenceItemSchema).optional(),
|
|
139
|
+
allergy: import_zod5.z.array(FoodPreferenceItemSchema).optional()
|
|
140
|
+
});
|
|
141
|
+
var UpdateProfileRequestSchema = import_zod5.z.object({
|
|
142
|
+
username: import_zod5.z.string().min(1).max(50),
|
|
143
|
+
profileImageUrl: import_zod5.z.string().url().nullable(),
|
|
144
|
+
bio: import_zod5.z.string().max(500).nullable()
|
|
145
|
+
});
|
|
146
|
+
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
147
|
+
var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
|
|
148
|
+
UpdatePreferenceRequestSchema
|
|
142
149
|
);
|
|
143
|
-
var PreferenceMetaResponseSchema = import_zod4.z.object({
|
|
144
|
-
onboardedAt: ISODateTimeStringSchema.nullable(),
|
|
145
|
-
lastUpdatedAt: ISODateTimeStringSchema.nullable(),
|
|
146
|
-
revision: import_zod4.z.number().int().min(0)
|
|
147
|
-
});
|
|
148
150
|
|
|
149
|
-
// src/domain/restaurant/
|
|
150
|
-
var
|
|
151
|
-
var RestaurantSchema =
|
|
151
|
+
// src/domain/restaurant/restaurant.schema.ts
|
|
152
|
+
var import_zod6 = require("zod");
|
|
153
|
+
var RestaurantSchema = import_zod6.z.object({
|
|
152
154
|
restaurantId: RestaurantIdSchema,
|
|
153
|
-
placeName:
|
|
154
|
-
categoryName:
|
|
155
|
-
categoryGroupName:
|
|
156
|
-
distance:
|
|
157
|
-
roadAddressName:
|
|
158
|
-
addressName:
|
|
159
|
-
phone:
|
|
160
|
-
placeUrl:
|
|
161
|
-
lat:
|
|
162
|
-
lng:
|
|
163
|
-
});
|
|
164
|
-
var KakaoPlaceRawSchema =
|
|
155
|
+
placeName: import_zod6.z.string(),
|
|
156
|
+
categoryName: import_zod6.z.string(),
|
|
157
|
+
categoryGroupName: import_zod6.z.string(),
|
|
158
|
+
distance: import_zod6.z.string().optional(),
|
|
159
|
+
roadAddressName: import_zod6.z.string(),
|
|
160
|
+
addressName: import_zod6.z.string(),
|
|
161
|
+
phone: import_zod6.z.string().nullable(),
|
|
162
|
+
placeUrl: import_zod6.z.string().url().nullable(),
|
|
163
|
+
lat: import_zod6.z.number(),
|
|
164
|
+
lng: import_zod6.z.number()
|
|
165
|
+
});
|
|
166
|
+
var KakaoPlaceRawSchema = import_zod6.z.object({
|
|
165
167
|
id: RestaurantIdSchema,
|
|
166
|
-
place_name:
|
|
167
|
-
category_name:
|
|
168
|
-
category_group_name:
|
|
169
|
-
distance:
|
|
170
|
-
road_address_name:
|
|
171
|
-
address_name:
|
|
172
|
-
phone:
|
|
173
|
-
place_url:
|
|
174
|
-
lat:
|
|
175
|
-
lng:
|
|
168
|
+
place_name: import_zod6.z.string(),
|
|
169
|
+
category_name: import_zod6.z.string(),
|
|
170
|
+
category_group_name: import_zod6.z.string(),
|
|
171
|
+
distance: import_zod6.z.string(),
|
|
172
|
+
road_address_name: import_zod6.z.string(),
|
|
173
|
+
address_name: import_zod6.z.string(),
|
|
174
|
+
phone: import_zod6.z.string(),
|
|
175
|
+
place_url: import_zod6.z.string().url().optional(),
|
|
176
|
+
lat: import_zod6.z.number(),
|
|
177
|
+
lng: import_zod6.z.number()
|
|
176
178
|
});
|
|
177
179
|
|
|
178
|
-
// src/domain/article/
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
// src/domain/article/article.schema.ts
|
|
181
|
+
var ArticleSortBySchema = import_zod7.z.enum(["createdAt", "likeCount", "commentCount"]);
|
|
182
|
+
var ArticleListQuerySchema = PageQuerySchema.extend({
|
|
183
|
+
sortBy: ArticleSortBySchema.optional().default("createdAt"),
|
|
184
|
+
direction: SortDirectionSchema.optional().default("desc")
|
|
185
|
+
});
|
|
186
|
+
var PresignArticleResponseSchema = PresignUploadResponseSchema.extend({});
|
|
187
|
+
var FoodAnalysisResultSchema = FoodSchema.extend({
|
|
188
|
+
confidence: import_zod7.z.number().min(0).max(1),
|
|
183
189
|
tsUtc: ISODateTimeStringSchema.optional()
|
|
184
190
|
});
|
|
185
|
-
var
|
|
186
|
-
imageUrl:
|
|
191
|
+
var CreateArticleRequestSchema = import_zod7.z.object({
|
|
192
|
+
imageUrl: import_zod7.z.string().url(),
|
|
187
193
|
mealDate: ISODateStringSchema,
|
|
188
194
|
restaurant: RestaurantSchema,
|
|
189
|
-
taggedMemberIds:
|
|
195
|
+
taggedMemberIds: import_zod7.z.array(MemberIdSchema).default([]),
|
|
190
196
|
foodAnalysis: FoodAnalysisResultSchema.optional()
|
|
191
197
|
});
|
|
192
|
-
var
|
|
193
|
-
|
|
194
|
-
});
|
|
195
|
-
var CommentPostRequestSchema = import_zod6.z.object({
|
|
196
|
-
content: import_zod6.z.string().min(1).max(500),
|
|
198
|
+
var CreateCommentRequestSchema = import_zod7.z.object({
|
|
199
|
+
content: import_zod7.z.string().min(1).max(500),
|
|
197
200
|
parentCommentId: CommentIdSchema.nullish()
|
|
198
201
|
});
|
|
199
|
-
var
|
|
200
|
-
commentId: CommentIdSchema
|
|
201
|
-
});
|
|
202
|
-
var CommentResponseSchema = import_zod6.z.object({
|
|
202
|
+
var ArticleCommentSchema = import_zod7.z.object({
|
|
203
203
|
commentId: CommentIdSchema,
|
|
204
|
-
author:
|
|
204
|
+
author: MemberCoreSchema,
|
|
205
205
|
parentCommentId: CommentIdSchema.nullable(),
|
|
206
|
-
content:
|
|
206
|
+
content: import_zod7.z.string(),
|
|
207
207
|
createdAt: ISODateTimeStringSchema,
|
|
208
208
|
updatedAt: ISODateTimeStringSchema
|
|
209
209
|
});
|
|
210
|
-
var ArticleCoreSchema =
|
|
210
|
+
var ArticleCoreSchema = import_zod7.z.object({
|
|
211
211
|
articleId: ArticleIdSchema,
|
|
212
|
-
author:
|
|
213
|
-
imageUrl:
|
|
212
|
+
author: MemberCoreSchema,
|
|
213
|
+
imageUrl: import_zod7.z.string().url(),
|
|
214
214
|
mealDate: ISODateStringSchema,
|
|
215
215
|
restaurant: RestaurantSchema,
|
|
216
216
|
createdAt: ISODateTimeStringSchema,
|
|
217
217
|
updatedAt: ISODateTimeStringSchema,
|
|
218
218
|
expiresAt: ISODateTimeStringSchema,
|
|
219
|
-
taggedMembers:
|
|
219
|
+
taggedMembers: import_zod7.z.array(MemberCoreSchema)
|
|
220
220
|
});
|
|
221
221
|
var ArticleSummaryResponseSchema = ArticleCoreSchema.extend({
|
|
222
|
-
likeCount:
|
|
223
|
-
commentCount:
|
|
224
|
-
likedByMe:
|
|
222
|
+
likeCount: import_zod7.z.number().int().min(0),
|
|
223
|
+
commentCount: import_zod7.z.number().int().min(0),
|
|
224
|
+
likedByMe: import_zod7.z.boolean()
|
|
225
225
|
});
|
|
226
226
|
var ArticleDetailResponseSchema = ArticleSummaryResponseSchema.extend({
|
|
227
|
-
comments:
|
|
228
|
-
});
|
|
229
|
-
var PageArticleSummaryResponseSchema = PageResponseSchema(
|
|
230
|
-
ArticleSummaryResponseSchema
|
|
231
|
-
);
|
|
232
|
-
var PresignUploadResponseSchema = import_zod6.z.object({
|
|
233
|
-
key: import_zod6.z.string(),
|
|
234
|
-
putUrl: import_zod6.z.string().url(),
|
|
235
|
-
cdnUrl: import_zod6.z.string().url()
|
|
227
|
+
comments: import_zod7.z.array(ArticleCommentSchema).optional()
|
|
236
228
|
});
|
|
229
|
+
var PageArticleSummaryResponseSchema = PageResponseSchema(ArticleSummaryResponseSchema);
|
|
237
230
|
// Annotate the CommonJS export names for ESM import in node:
|
|
238
231
|
0 && (module.exports = {
|
|
232
|
+
ArticleCommentSchema,
|
|
239
233
|
ArticleCoreSchema,
|
|
240
234
|
ArticleDetailResponseSchema,
|
|
241
|
-
|
|
235
|
+
ArticleListQuerySchema,
|
|
236
|
+
ArticleSortBySchema,
|
|
242
237
|
ArticleSummaryResponseSchema,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
CreateArticleResponseSchema,
|
|
246
|
-
CreateCommentResponseSchema,
|
|
238
|
+
CreateArticleRequestSchema,
|
|
239
|
+
CreateCommentRequestSchema,
|
|
247
240
|
FoodAnalysisResultSchema,
|
|
248
241
|
PageArticleSummaryResponseSchema,
|
|
249
|
-
|
|
242
|
+
PresignArticleResponseSchema
|
|
250
243
|
});
|