@kimdaegyu/babmukdang-shared 1.1.1 → 1.1.4
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-AATETFLU.js → chunk-23FZ4MAS.js} +33 -19
- package/dist/{chunk-ET2Z5ZYA.js → chunk-GTVEQYJW.js} +1 -1
- package/dist/{chunk-4XAGRJUM.js → chunk-H77ISYYC.js} +0 -10
- package/dist/{chunk-JNJRBUKR.js → chunk-J76VB5SE.js} +1 -1
- package/dist/{chunk-ADIREWTX.js → chunk-KRVEQVRC.js} +1 -1
- package/dist/{chunk-NAPCX4Q6.js → chunk-M5OSCHMV.js} +3 -3
- package/dist/{chunk-XWTMYXPO.js → chunk-RLVHDFEV.js} +8 -3
- package/dist/{chunk-XTBVYY5B.js → chunk-SOHYA6XL.js} +40 -22
- package/dist/{chunk-YJ7RUOEJ.js → chunk-U6OQQOPN.js} +2 -2
- package/dist/{chunk-O56CI56W.js → chunk-UJJMW7II.js} +1 -1
- package/dist/{chunk-RHQHBUO4.js → chunk-VAWYU5JG.js} +1 -1
- package/dist/{chunk-M7HH7FMO.js → chunk-W3YQYI4R.js} +4 -4
- package/dist/{chunk-5QLCZOPJ.js → chunk-YGFAVC5N.js} +1 -1
- package/dist/domain/article/index.cjs +6 -0
- package/dist/domain/article/index.d.cts +12 -1
- package/dist/domain/article/index.d.ts +12 -1
- package/dist/domain/article/index.js +6 -4
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +36 -11
- package/dist/domain/common/index.d.cts +229 -15
- package/dist/domain/common/index.d.ts +229 -15
- package/dist/domain/common/index.js +26 -14
- package/dist/domain/friend/index.js +3 -3
- package/dist/domain/index.cjs +38 -11
- package/dist/domain/index.d.cts +2 -2
- package/dist/domain/index.d.ts +2 -2
- package/dist/domain/index.js +35 -21
- package/dist/domain/invitation/index.js +2 -2
- package/dist/domain/meal/index.js +3 -3
- package/dist/domain/member/index.d.cts +1 -1
- package/dist/domain/member/index.d.ts +1 -1
- package/dist/domain/member/index.js +2 -2
- package/dist/domain/plan/index.js +5 -5
- package/dist/domain/promotion/index.js +2 -2
- package/dist/domain/recruit/index.js +12 -12
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/domain/room/index.js +4 -4
- package/dist/{id-_a-oManb.d.cts → id-dAYxfjZn.d.cts} +7 -1
- package/dist/{id-_a-oManb.d.ts → id-dAYxfjZn.d.ts} +7 -1
- package/dist/{index-HEHaDbrV.d.cts → index-CZT6irsm.d.cts} +11 -3
- package/dist/{index-CqcSqpDV.d.ts → index-DDLVbMTB.d.ts} +11 -3
- package/dist/index.cjs +30 -196
- package/dist/index.d.cts +9 -72
- package/dist/index.d.ts +9 -72
- package/dist/index.js +14 -181
- package/package.json +55 -55
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
makeApiResponseSchema,
|
|
19
19
|
makeApiSuccessSchema,
|
|
20
20
|
toArticleId,
|
|
21
|
+
toCommentId,
|
|
22
|
+
toCouponId,
|
|
23
|
+
toFriendRequestId,
|
|
21
24
|
toInvitationId,
|
|
22
25
|
toMemberId,
|
|
26
|
+
toPlanId,
|
|
23
27
|
toRecruitId,
|
|
28
|
+
toReferralCode,
|
|
24
29
|
toRestaurantId,
|
|
25
|
-
toRoomId
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
PlanListQuerySchema,
|
|
29
|
-
PlanResponseSchema,
|
|
30
|
-
PlanStatusSchema,
|
|
31
|
-
PlanTypeSchema
|
|
32
|
-
} from "./chunk-M7HH7FMO.js";
|
|
30
|
+
toRoomId,
|
|
31
|
+
toSubscriptionId
|
|
32
|
+
} from "./chunk-SOHYA6XL.js";
|
|
33
33
|
import {
|
|
34
34
|
ChallengeStatusResponseSchema,
|
|
35
35
|
ClaimChallengeRewardRequestSchema,
|
|
@@ -40,7 +40,13 @@ import {
|
|
|
40
40
|
RedeemReferralRequestSchema,
|
|
41
41
|
ReferralCreateResponseSchema,
|
|
42
42
|
ReferralItemResponseSchema
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VAWYU5JG.js";
|
|
44
|
+
import {
|
|
45
|
+
PlanListQuerySchema,
|
|
46
|
+
PlanResponseSchema,
|
|
47
|
+
PlanStatusSchema,
|
|
48
|
+
PlanTypeSchema
|
|
49
|
+
} from "./chunk-W3YQYI4R.js";
|
|
44
50
|
import {
|
|
45
51
|
AddLocationCandidateRequestSchema,
|
|
46
52
|
ChatMessageRequestSchema,
|
|
@@ -74,11 +80,12 @@ import {
|
|
|
74
80
|
RoomSocketServerEventSchemas,
|
|
75
81
|
TimePicksUpdateResponseSchema,
|
|
76
82
|
VoteLocationRequestSchema
|
|
77
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-M5OSCHMV.js";
|
|
78
84
|
import {
|
|
79
85
|
ArticleCommentSchema,
|
|
80
86
|
ArticleCoreSchema,
|
|
81
87
|
ArticleDetailResponseSchema,
|
|
88
|
+
ArticleLikeResponseSchema,
|
|
82
89
|
ArticleListQuerySchema,
|
|
83
90
|
ArticleSortBySchema,
|
|
84
91
|
ArticleSummaryResponseSchema,
|
|
@@ -91,30 +98,30 @@ import {
|
|
|
91
98
|
PageResponseSchema,
|
|
92
99
|
PresignArticleResponseSchema,
|
|
93
100
|
SortDirectionSchema
|
|
94
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-RLVHDFEV.js";
|
|
95
102
|
import {
|
|
96
103
|
KakaoPlaceRawSchema,
|
|
97
104
|
RestaurantSchema
|
|
98
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-GTVEQYJW.js";
|
|
99
106
|
import {
|
|
100
107
|
LoginRequestSchema,
|
|
101
108
|
SignupRequestSchema,
|
|
102
109
|
SignupResponseSchema,
|
|
103
110
|
TokenResponseSchema
|
|
104
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-J76VB5SE.js";
|
|
105
112
|
import {
|
|
106
113
|
FriendBlockItemResponseSchema,
|
|
107
114
|
FriendListItemResponseSchema,
|
|
108
115
|
FriendRequestItemResponseSchema,
|
|
109
116
|
FriendRequestMemberSchema,
|
|
110
117
|
FriendRequestStatusSchema
|
|
111
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-U6OQQOPN.js";
|
|
112
119
|
import {
|
|
113
120
|
AcceptInvitationResponseSchema,
|
|
114
121
|
CreateInvitationRequestSchema,
|
|
115
122
|
InvitationListItemResponseSchema,
|
|
116
123
|
SendInvitationResponseSchema
|
|
117
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-YGFAVC5N.js";
|
|
118
125
|
import {
|
|
119
126
|
FriendMealItemResponseSchema,
|
|
120
127
|
FriendMealQuerySchema,
|
|
@@ -122,7 +129,7 @@ import {
|
|
|
122
129
|
MealStatusResponseSchema,
|
|
123
130
|
MealStatusSchema,
|
|
124
131
|
UpdateMealStatusRequestSchema
|
|
125
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-UJJMW7II.js";
|
|
126
133
|
import {
|
|
127
134
|
ISODateStringSchema,
|
|
128
135
|
ISODateTimeStringSchema,
|
|
@@ -141,7 +148,7 @@ import {
|
|
|
141
148
|
ProfileDetailResponseSchema,
|
|
142
149
|
UpdatePreferenceRequestSchema,
|
|
143
150
|
UpdateProfileRequestSchema
|
|
144
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-KRVEQVRC.js";
|
|
145
152
|
import {
|
|
146
153
|
ArticleIdSchema,
|
|
147
154
|
CommentIdSchema,
|
|
@@ -162,7 +169,7 @@ import {
|
|
|
162
169
|
SubscriptionIdSchema,
|
|
163
170
|
UserIdSchema,
|
|
164
171
|
__export
|
|
165
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-H77ISYYC.js";
|
|
166
173
|
|
|
167
174
|
// src/domain/index.ts
|
|
168
175
|
var domain_exports = {};
|
|
@@ -176,6 +183,7 @@ __export(domain_exports, {
|
|
|
176
183
|
ArticleCoreSchema: () => ArticleCoreSchema,
|
|
177
184
|
ArticleDetailResponseSchema: () => ArticleDetailResponseSchema,
|
|
178
185
|
ArticleIdSchema: () => ArticleIdSchema,
|
|
186
|
+
ArticleLikeResponseSchema: () => ArticleLikeResponseSchema,
|
|
179
187
|
ArticleListQuerySchema: () => ArticleListQuerySchema,
|
|
180
188
|
ArticleSortBySchema: () => ArticleSortBySchema,
|
|
181
189
|
ArticleSummaryResponseSchema: () => ArticleSummaryResponseSchema,
|
|
@@ -300,11 +308,17 @@ __export(domain_exports, {
|
|
|
300
308
|
makeApiResponseSchema: () => makeApiResponseSchema,
|
|
301
309
|
makeApiSuccessSchema: () => makeApiSuccessSchema,
|
|
302
310
|
toArticleId: () => toArticleId,
|
|
311
|
+
toCommentId: () => toCommentId,
|
|
312
|
+
toCouponId: () => toCouponId,
|
|
313
|
+
toFriendRequestId: () => toFriendRequestId,
|
|
303
314
|
toInvitationId: () => toInvitationId,
|
|
304
315
|
toMemberId: () => toMemberId,
|
|
316
|
+
toPlanId: () => toPlanId,
|
|
305
317
|
toRecruitId: () => toRecruitId,
|
|
318
|
+
toReferralCode: () => toReferralCode,
|
|
306
319
|
toRestaurantId: () => toRestaurantId,
|
|
307
|
-
toRoomId: () => toRoomId
|
|
320
|
+
toRoomId: () => toRoomId,
|
|
321
|
+
toSubscriptionId: () => toSubscriptionId
|
|
308
322
|
});
|
|
309
323
|
|
|
310
324
|
export {
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
2
|
var __export = (target, all) => {
|
|
4
3
|
for (var name in all)
|
|
5
4
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
5
|
};
|
|
7
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
-
if (decorator = decorators[i])
|
|
11
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12
|
-
if (kind && result) __defProp(target, key, result);
|
|
13
|
-
return result;
|
|
14
|
-
};
|
|
15
6
|
|
|
16
7
|
// src/domain/common/schema/id.schema.ts
|
|
17
8
|
import { z } from "zod";
|
|
@@ -39,7 +30,6 @@ var FoodSchema = z.object({
|
|
|
39
30
|
|
|
40
31
|
export {
|
|
41
32
|
__export,
|
|
42
|
-
__decorateClass,
|
|
43
33
|
PositiveIntIdSchema,
|
|
44
34
|
NonEmptyStringIdSchema,
|
|
45
35
|
MemberIdSchema,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RestaurantSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GTVEQYJW.js";
|
|
4
4
|
import {
|
|
5
5
|
ISODateStringSchema,
|
|
6
6
|
ISODateTimeStringSchema
|
|
7
7
|
} from "./chunk-HRM3FQPL.js";
|
|
8
8
|
import {
|
|
9
9
|
MemberCoreSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KRVEQVRC.js";
|
|
11
11
|
import {
|
|
12
12
|
FoodCodeSchema,
|
|
13
13
|
FoodSchema,
|
|
14
14
|
MemberIdSchema,
|
|
15
15
|
RestaurantIdSchema,
|
|
16
16
|
RoomIdSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H77ISYYC.js";
|
|
18
18
|
|
|
19
19
|
// src/domain/room/schema/room.schema.ts
|
|
20
20
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RestaurantSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GTVEQYJW.js";
|
|
4
4
|
import {
|
|
5
5
|
ISODateStringSchema,
|
|
6
6
|
ISODateTimeStringSchema
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
MemberCoreSchema,
|
|
10
10
|
PresignUploadResponseSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KRVEQVRC.js";
|
|
12
12
|
import {
|
|
13
13
|
ArticleIdSchema,
|
|
14
14
|
CommentIdSchema,
|
|
15
15
|
FoodSchema,
|
|
16
16
|
MemberIdSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H77ISYYC.js";
|
|
18
18
|
|
|
19
19
|
// src/domain/article/article.schema.ts
|
|
20
20
|
import { z as z2 } from "zod";
|
|
@@ -85,6 +85,10 @@ var ArticleSummaryResponseSchema = ArticleCoreSchema.extend({
|
|
|
85
85
|
commentCount: z2.number().int().min(0),
|
|
86
86
|
likedByMe: z2.boolean()
|
|
87
87
|
});
|
|
88
|
+
var ArticleLikeResponseSchema = z2.object({
|
|
89
|
+
liked: z2.boolean(),
|
|
90
|
+
likeCount: z2.number().int().min(0)
|
|
91
|
+
});
|
|
88
92
|
var ArticleDetailResponseSchema = ArticleSummaryResponseSchema.extend({
|
|
89
93
|
comments: z2.array(ArticleCommentSchema).optional()
|
|
90
94
|
});
|
|
@@ -104,6 +108,7 @@ export {
|
|
|
104
108
|
ArticleCommentSchema,
|
|
105
109
|
ArticleCoreSchema,
|
|
106
110
|
ArticleSummaryResponseSchema,
|
|
111
|
+
ArticleLikeResponseSchema,
|
|
107
112
|
ArticleDetailResponseSchema,
|
|
108
113
|
PageArticleSummaryResponseSchema
|
|
109
114
|
};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PlanListQuerySchema,
|
|
3
|
-
PlanResponseSchema
|
|
4
|
-
} from "./chunk-M7HH7FMO.js";
|
|
5
1
|
import {
|
|
6
2
|
ChallengeStatusResponseSchema,
|
|
7
3
|
ClaimChallengeRewardRequestSchema,
|
|
@@ -9,9 +5,14 @@ import {
|
|
|
9
5
|
RedeemReferralRequestSchema,
|
|
10
6
|
ReferralCreateResponseSchema,
|
|
11
7
|
ReferralItemResponseSchema
|
|
12
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VAWYU5JG.js";
|
|
9
|
+
import {
|
|
10
|
+
PlanListQuerySchema,
|
|
11
|
+
PlanResponseSchema
|
|
12
|
+
} from "./chunk-W3YQYI4R.js";
|
|
13
13
|
import {
|
|
14
14
|
ArticleDetailResponseSchema,
|
|
15
|
+
ArticleLikeResponseSchema,
|
|
15
16
|
ArticleListQuerySchema,
|
|
16
17
|
CreateArticleRequestSchema,
|
|
17
18
|
CreateCommentRequestSchema,
|
|
@@ -19,36 +20,37 @@ import {
|
|
|
19
20
|
PageQuerySchema,
|
|
20
21
|
PresignArticleResponseSchema,
|
|
21
22
|
SortDirectionSchema
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RLVHDFEV.js";
|
|
23
24
|
import {
|
|
24
25
|
LoginRequestSchema,
|
|
25
26
|
SignupRequestSchema,
|
|
26
27
|
SignupResponseSchema,
|
|
27
28
|
TokenResponseSchema
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-J76VB5SE.js";
|
|
29
30
|
import {
|
|
30
31
|
FriendBlockItemResponseSchema,
|
|
31
32
|
FriendListItemResponseSchema,
|
|
32
33
|
FriendRequestItemResponseSchema
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-U6OQQOPN.js";
|
|
34
35
|
import {
|
|
35
36
|
AcceptInvitationResponseSchema,
|
|
36
37
|
CreateInvitationRequestSchema,
|
|
37
38
|
InvitationListItemResponseSchema,
|
|
38
39
|
SendInvitationResponseSchema
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YGFAVC5N.js";
|
|
40
41
|
import {
|
|
41
42
|
FriendMealItemResponseSchema,
|
|
42
43
|
FriendMealQuerySchema,
|
|
43
44
|
MealStatusResponseSchema,
|
|
44
45
|
UpdateMealStatusRequestSchema
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UJJMW7II.js";
|
|
46
47
|
import {
|
|
47
48
|
ISODateTimeStringSchema
|
|
48
49
|
} from "./chunk-HRM3FQPL.js";
|
|
49
50
|
import {
|
|
50
51
|
CreateProfileRequestSchema,
|
|
51
52
|
MemberCoreSchema,
|
|
53
|
+
MemberFoodPreferenceSchema,
|
|
52
54
|
MemberResponseSchema,
|
|
53
55
|
MemberSearchQuerySchema,
|
|
54
56
|
MemberSerachResponseSchema,
|
|
@@ -56,7 +58,7 @@ import {
|
|
|
56
58
|
ProfileDetailResponseSchema,
|
|
57
59
|
UpdatePreferenceRequestSchema,
|
|
58
60
|
UpdateProfileRequestSchema
|
|
59
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KRVEQVRC.js";
|
|
60
62
|
import {
|
|
61
63
|
ArticleIdSchema,
|
|
62
64
|
CommentIdSchema,
|
|
@@ -66,10 +68,11 @@ import {
|
|
|
66
68
|
MemberIdSchema,
|
|
67
69
|
PlanIdSchema,
|
|
68
70
|
RecruitIdSchema,
|
|
71
|
+
ReferralCodeSchema,
|
|
69
72
|
RestaurantIdSchema,
|
|
70
73
|
RoomIdSchema,
|
|
71
74
|
SubscriptionIdSchema
|
|
72
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-H77ISYYC.js";
|
|
73
76
|
|
|
74
77
|
// src/domain/recruit/recruit.schema.ts
|
|
75
78
|
import { z as z4 } from "zod";
|
|
@@ -93,7 +96,6 @@ var endpoint = (contract) => ({
|
|
|
93
96
|
|
|
94
97
|
// src/domain/common/contracts/api.ts
|
|
95
98
|
var memberIdParam = z2.object({ memberId: MemberIdSchema });
|
|
96
|
-
var authorIdParam = z2.object({ memberId: MemberIdSchema });
|
|
97
99
|
var articleIdParam = z2.object({ articleId: ArticleIdSchema });
|
|
98
100
|
var commentIdParam = z2.object({ commentId: CommentIdSchema });
|
|
99
101
|
var recruitIdParam = z2.object({ recruitId: RecruitIdSchema });
|
|
@@ -116,8 +118,11 @@ var apiContract = {
|
|
|
116
118
|
memberProfile: endpoint({ method: "GET", path: "/members/:memberId", pathParams: memberIdParam, response: ProfileDetailResponseSchema }),
|
|
117
119
|
presignProfileImage: endpoint({ method: "POST", path: "/uploads/presign-profile", response: PresignProfileResponseSchema }),
|
|
118
120
|
createProfile: endpoint({ method: "POST", path: "/members/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
|
|
119
|
-
updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema })
|
|
120
|
-
|
|
121
|
+
updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema })
|
|
122
|
+
},
|
|
123
|
+
preferences: {
|
|
124
|
+
my: endpoint({ method: "GET", path: "/preferences/me", response: MemberFoodPreferenceSchema }),
|
|
125
|
+
update: endpoint({ method: "PATCH", path: "/preferences/me", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
|
|
121
126
|
},
|
|
122
127
|
mealStatus: {
|
|
123
128
|
my: endpoint({ method: "GET", path: "/meal-status", response: MealStatusResponseSchema }),
|
|
@@ -126,14 +131,15 @@ var apiContract = {
|
|
|
126
131
|
},
|
|
127
132
|
articles: {
|
|
128
133
|
list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
|
|
129
|
-
|
|
134
|
+
byMember: endpoint({ method: "GET", path: "/articles/by-author/:memberId", pathParams: memberIdParam, query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
|
|
130
135
|
my: endpoint({ method: "GET", path: "/articles/my", response: PageArticleSummaryResponseSchema }),
|
|
131
136
|
detail: endpoint({ method: "GET", path: "/articles/:articleId", pathParams: articleIdParam, response: ArticleDetailResponseSchema }),
|
|
132
|
-
create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response:
|
|
133
|
-
|
|
137
|
+
create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
138
|
+
like: endpoint({ method: "POST", path: "/articles/:articleId/like", pathParams: articleIdParam, response: ArticleLikeResponseSchema }),
|
|
139
|
+
createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: CreatedEntityIdResponseSchema }),
|
|
134
140
|
presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", response: PresignArticleResponseSchema }),
|
|
135
141
|
delete: endpoint({ method: "DELETE", path: "/articles/:articleId", pathParams: articleIdParam, response: NoContentSchema }),
|
|
136
|
-
deleteComment: endpoint({ method: "DELETE", path: "/articles
|
|
142
|
+
deleteComment: endpoint({ method: "DELETE", path: "/articles/comments/:commentId", pathParams: commentIdParam, response: NoContentSchema })
|
|
137
143
|
// TODO: 게시물 수정 기능
|
|
138
144
|
},
|
|
139
145
|
recruits: {
|
|
@@ -158,8 +164,8 @@ var apiContract = {
|
|
|
158
164
|
list: endpoint({ method: "GET", path: "/friends", response: z2.array(FriendListItemResponseSchema) }),
|
|
159
165
|
blockList: endpoint({ method: "GET", path: "/friends/blocks", response: z2.array(FriendBlockItemResponseSchema) }),
|
|
160
166
|
incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: z2.array(FriendRequestItemResponseSchema) }),
|
|
161
|
-
outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/
|
|
162
|
-
sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams:
|
|
167
|
+
outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: z2.array(FriendRequestItemResponseSchema) }),
|
|
168
|
+
sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
|
|
163
169
|
acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
|
|
164
170
|
rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
|
|
165
171
|
block: endpoint({ method: "POST", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
|
|
@@ -225,6 +231,12 @@ var toRecruitId = (value) => RecruitIdSchema.parse(value);
|
|
|
225
231
|
var toInvitationId = (value) => InvitationIdSchema.parse(value);
|
|
226
232
|
var toRoomId = (value) => RoomIdSchema.parse(value);
|
|
227
233
|
var toRestaurantId = (value) => RestaurantIdSchema.parse(value);
|
|
234
|
+
var toCommentId = (value) => CommentIdSchema.parse(value);
|
|
235
|
+
var toPlanId = (value) => PlanIdSchema.parse(value);
|
|
236
|
+
var toCouponId = (value) => CouponIdSchema.parse(value);
|
|
237
|
+
var toSubscriptionId = (value) => SubscriptionIdSchema.parse(value);
|
|
238
|
+
var toFriendRequestId = (value) => FriendRequestIdSchema.parse(value);
|
|
239
|
+
var toReferralCode = (value) => ReferralCodeSchema.parse(value);
|
|
228
240
|
|
|
229
241
|
// src/domain/recruit/recruit.schema.ts
|
|
230
242
|
var RecruitStatusSchema = z4.enum(["OPEN", "CLOSED", "EXPIRED"]);
|
|
@@ -282,5 +294,11 @@ export {
|
|
|
282
294
|
toRecruitId,
|
|
283
295
|
toInvitationId,
|
|
284
296
|
toRoomId,
|
|
285
|
-
toRestaurantId
|
|
297
|
+
toRestaurantId,
|
|
298
|
+
toCommentId,
|
|
299
|
+
toPlanId,
|
|
300
|
+
toCouponId,
|
|
301
|
+
toSubscriptionId,
|
|
302
|
+
toFriendRequestId,
|
|
303
|
+
toReferralCode
|
|
286
304
|
};
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HRM3FQPL.js";
|
|
4
4
|
import {
|
|
5
5
|
MemberCoreSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KRVEQVRC.js";
|
|
7
7
|
import {
|
|
8
8
|
FriendRequestIdSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-H77ISYYC.js";
|
|
10
10
|
|
|
11
11
|
// src/domain/friend/friend.schema.ts
|
|
12
12
|
import { z } from "zod";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationCandidateSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M5OSCHMV.js";
|
|
4
4
|
import {
|
|
5
5
|
RestaurantSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GTVEQYJW.js";
|
|
7
7
|
import {
|
|
8
8
|
ISODateTimeStringSchema
|
|
9
9
|
} from "./chunk-HRM3FQPL.js";
|
|
10
10
|
import {
|
|
11
11
|
MemberCoreSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KRVEQVRC.js";
|
|
13
13
|
import {
|
|
14
14
|
PlanIdSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H77ISYYC.js";
|
|
16
16
|
|
|
17
17
|
// src/domain/plan/plan.schema.ts
|
|
18
18
|
import { z } from "zod";
|
|
@@ -33,6 +33,7 @@ __export(article_exports, {
|
|
|
33
33
|
ArticleCommentSchema: () => ArticleCommentSchema,
|
|
34
34
|
ArticleCoreSchema: () => ArticleCoreSchema,
|
|
35
35
|
ArticleDetailResponseSchema: () => ArticleDetailResponseSchema,
|
|
36
|
+
ArticleLikeResponseSchema: () => ArticleLikeResponseSchema,
|
|
36
37
|
ArticleListQuerySchema: () => ArticleListQuerySchema,
|
|
37
38
|
ArticleSortBySchema: () => ArticleSortBySchema,
|
|
38
39
|
ArticleSummaryResponseSchema: () => ArticleSummaryResponseSchema,
|
|
@@ -223,6 +224,10 @@ var ArticleSummaryResponseSchema = ArticleCoreSchema.extend({
|
|
|
223
224
|
commentCount: import_zod7.z.number().int().min(0),
|
|
224
225
|
likedByMe: import_zod7.z.boolean()
|
|
225
226
|
});
|
|
227
|
+
var ArticleLikeResponseSchema = import_zod7.z.object({
|
|
228
|
+
liked: import_zod7.z.boolean(),
|
|
229
|
+
likeCount: import_zod7.z.number().int().min(0)
|
|
230
|
+
});
|
|
226
231
|
var ArticleDetailResponseSchema = ArticleSummaryResponseSchema.extend({
|
|
227
232
|
comments: import_zod7.z.array(ArticleCommentSchema).optional()
|
|
228
233
|
});
|
|
@@ -232,6 +237,7 @@ var PageArticleSummaryResponseSchema = PageResponseSchema(ArticleSummaryResponse
|
|
|
232
237
|
ArticleCommentSchema,
|
|
233
238
|
ArticleCoreSchema,
|
|
234
239
|
ArticleDetailResponseSchema,
|
|
240
|
+
ArticleLikeResponseSchema,
|
|
235
241
|
ArticleListQuerySchema,
|
|
236
242
|
ArticleSortBySchema,
|
|
237
243
|
ArticleSummaryResponseSchema,
|
|
@@ -477,6 +477,16 @@ declare const ArticleSummaryResponseSchema: z.ZodObject<{
|
|
|
477
477
|
}[];
|
|
478
478
|
likedByMe: boolean;
|
|
479
479
|
}>;
|
|
480
|
+
declare const ArticleLikeResponseSchema: z.ZodObject<{
|
|
481
|
+
liked: z.ZodBoolean;
|
|
482
|
+
likeCount: z.ZodNumber;
|
|
483
|
+
}, "strip", z.ZodTypeAny, {
|
|
484
|
+
liked: boolean;
|
|
485
|
+
likeCount: number;
|
|
486
|
+
}, {
|
|
487
|
+
liked: boolean;
|
|
488
|
+
likeCount: number;
|
|
489
|
+
}>;
|
|
480
490
|
declare const ArticleDetailResponseSchema: z.ZodObject<{
|
|
481
491
|
articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
|
|
482
492
|
author: z.ZodObject<{
|
|
@@ -943,10 +953,11 @@ type ArticleSortBy = z.infer<typeof ArticleSortBySchema>;
|
|
|
943
953
|
type ArticleListQueryRequest = z.infer<typeof ArticleListQuerySchema>;
|
|
944
954
|
type FoodAnalysisResult = z.infer<typeof FoodAnalysisResultSchema>;
|
|
945
955
|
type ArticleSummaryResponse = z.infer<typeof ArticleSummaryResponseSchema>;
|
|
956
|
+
type ArticleLikeResponse = z.infer<typeof ArticleLikeResponseSchema>;
|
|
946
957
|
type ArticleDetailResponse = z.infer<typeof ArticleDetailResponseSchema>;
|
|
947
958
|
type PageArticleSummaryResponse = z.infer<typeof PageArticleSummaryResponseSchema>;
|
|
948
959
|
type PresignArticleResponse = z.infer<typeof PresignArticleResponseSchema>;
|
|
949
960
|
type ArticleCore = z.infer<typeof ArticleCoreSchema>;
|
|
950
961
|
type ArticleComment = z.infer<typeof ArticleCommentSchema>;
|
|
951
962
|
|
|
952
|
-
export { type ArticleComment, ArticleCommentSchema, type ArticleCore, ArticleCoreSchema, type ArticleDetailResponse, ArticleDetailResponseSchema, type ArticleListQueryRequest, ArticleListQuerySchema, type ArticleSortBy, ArticleSortBySchema, type ArticleSummaryResponse, ArticleSummaryResponseSchema, type CreateArticleRequest, CreateArticleRequestSchema, type CreateCommentRequest, CreateCommentRequestSchema, type FoodAnalysisResult, FoodAnalysisResultSchema, type PageArticleSummaryResponse, PageArticleSummaryResponseSchema, type PresignArticleResponse, PresignArticleResponseSchema };
|
|
963
|
+
export { type ArticleComment, ArticleCommentSchema, type ArticleCore, ArticleCoreSchema, type ArticleDetailResponse, ArticleDetailResponseSchema, type ArticleLikeResponse, ArticleLikeResponseSchema, type ArticleListQueryRequest, ArticleListQuerySchema, type ArticleSortBy, ArticleSortBySchema, type ArticleSummaryResponse, ArticleSummaryResponseSchema, type CreateArticleRequest, CreateArticleRequestSchema, type CreateCommentRequest, CreateCommentRequestSchema, type FoodAnalysisResult, FoodAnalysisResultSchema, type PageArticleSummaryResponse, PageArticleSummaryResponseSchema, type PresignArticleResponse, PresignArticleResponseSchema };
|
|
@@ -477,6 +477,16 @@ declare const ArticleSummaryResponseSchema: z.ZodObject<{
|
|
|
477
477
|
}[];
|
|
478
478
|
likedByMe: boolean;
|
|
479
479
|
}>;
|
|
480
|
+
declare const ArticleLikeResponseSchema: z.ZodObject<{
|
|
481
|
+
liked: z.ZodBoolean;
|
|
482
|
+
likeCount: z.ZodNumber;
|
|
483
|
+
}, "strip", z.ZodTypeAny, {
|
|
484
|
+
liked: boolean;
|
|
485
|
+
likeCount: number;
|
|
486
|
+
}, {
|
|
487
|
+
liked: boolean;
|
|
488
|
+
likeCount: number;
|
|
489
|
+
}>;
|
|
480
490
|
declare const ArticleDetailResponseSchema: z.ZodObject<{
|
|
481
491
|
articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
|
|
482
492
|
author: z.ZodObject<{
|
|
@@ -943,10 +953,11 @@ type ArticleSortBy = z.infer<typeof ArticleSortBySchema>;
|
|
|
943
953
|
type ArticleListQueryRequest = z.infer<typeof ArticleListQuerySchema>;
|
|
944
954
|
type FoodAnalysisResult = z.infer<typeof FoodAnalysisResultSchema>;
|
|
945
955
|
type ArticleSummaryResponse = z.infer<typeof ArticleSummaryResponseSchema>;
|
|
956
|
+
type ArticleLikeResponse = z.infer<typeof ArticleLikeResponseSchema>;
|
|
946
957
|
type ArticleDetailResponse = z.infer<typeof ArticleDetailResponseSchema>;
|
|
947
958
|
type PageArticleSummaryResponse = z.infer<typeof PageArticleSummaryResponseSchema>;
|
|
948
959
|
type PresignArticleResponse = z.infer<typeof PresignArticleResponseSchema>;
|
|
949
960
|
type ArticleCore = z.infer<typeof ArticleCoreSchema>;
|
|
950
961
|
type ArticleComment = z.infer<typeof ArticleCommentSchema>;
|
|
951
962
|
|
|
952
|
-
export { type ArticleComment, ArticleCommentSchema, type ArticleCore, ArticleCoreSchema, type ArticleDetailResponse, ArticleDetailResponseSchema, type ArticleListQueryRequest, ArticleListQuerySchema, type ArticleSortBy, ArticleSortBySchema, type ArticleSummaryResponse, ArticleSummaryResponseSchema, type CreateArticleRequest, CreateArticleRequestSchema, type CreateCommentRequest, CreateCommentRequestSchema, type FoodAnalysisResult, FoodAnalysisResultSchema, type PageArticleSummaryResponse, PageArticleSummaryResponseSchema, type PresignArticleResponse, PresignArticleResponseSchema };
|
|
963
|
+
export { type ArticleComment, ArticleCommentSchema, type ArticleCore, ArticleCoreSchema, type ArticleDetailResponse, ArticleDetailResponseSchema, type ArticleLikeResponse, ArticleLikeResponseSchema, type ArticleListQueryRequest, ArticleListQuerySchema, type ArticleSortBy, ArticleSortBySchema, type ArticleSummaryResponse, ArticleSummaryResponseSchema, type CreateArticleRequest, CreateArticleRequestSchema, type CreateCommentRequest, CreateCommentRequestSchema, type FoodAnalysisResult, FoodAnalysisResultSchema, type PageArticleSummaryResponse, PageArticleSummaryResponseSchema, type PresignArticleResponse, PresignArticleResponseSchema };
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
ArticleCommentSchema,
|
|
3
3
|
ArticleCoreSchema,
|
|
4
4
|
ArticleDetailResponseSchema,
|
|
5
|
+
ArticleLikeResponseSchema,
|
|
5
6
|
ArticleListQuerySchema,
|
|
6
7
|
ArticleSortBySchema,
|
|
7
8
|
ArticleSummaryResponseSchema,
|
|
@@ -10,15 +11,16 @@ import {
|
|
|
10
11
|
FoodAnalysisResultSchema,
|
|
11
12
|
PageArticleSummaryResponseSchema,
|
|
12
13
|
PresignArticleResponseSchema
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
} from "../../chunk-RLVHDFEV.js";
|
|
15
|
+
import "../../chunk-GTVEQYJW.js";
|
|
15
16
|
import "../../chunk-HRM3FQPL.js";
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-KRVEQVRC.js";
|
|
18
|
+
import "../../chunk-H77ISYYC.js";
|
|
18
19
|
export {
|
|
19
20
|
ArticleCommentSchema,
|
|
20
21
|
ArticleCoreSchema,
|
|
21
22
|
ArticleDetailResponseSchema,
|
|
23
|
+
ArticleLikeResponseSchema,
|
|
22
24
|
ArticleListQuerySchema,
|
|
23
25
|
ArticleSortBySchema,
|
|
24
26
|
ArticleSummaryResponseSchema,
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
SignupRequestSchema,
|
|
4
4
|
SignupResponseSchema,
|
|
5
5
|
TokenResponseSchema
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-J76VB5SE.js";
|
|
7
|
+
import "../../chunk-KRVEQVRC.js";
|
|
8
|
+
import "../../chunk-H77ISYYC.js";
|
|
9
9
|
export {
|
|
10
10
|
LoginRequestSchema,
|
|
11
11
|
SignupRequestSchema,
|