@kimdaegyu/babmukdang-shared 1.1.0 → 1.1.1
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-UFVPFUMI.js → chunk-4XAGRJUM.js} +27 -1
- package/dist/chunk-5QLCZOPJ.js +34 -0
- package/dist/{chunk-2GRWCRTV.js → chunk-AATETFLU.js} +93 -109
- package/dist/chunk-ADIREWTX.js +72 -0
- package/dist/{chunk-NW5O4R7M.js → chunk-ET2Z5ZYA.js} +2 -2
- package/dist/{chunk-FCE6KXNO.js → chunk-JNJRBUKR.js} +4 -4
- package/dist/{chunk-ZNAAA53X.js → chunk-M7HH7FMO.js} +14 -19
- package/dist/{chunk-EJKRR2MZ.js → chunk-NAPCX4Q6.js} +14 -15
- package/dist/chunk-O56CI56W.js +37 -0
- package/dist/chunk-RHQHBUO4.js +78 -0
- package/dist/chunk-XTBVYY5B.js +286 -0
- package/dist/chunk-XWTMYXPO.js +109 -0
- package/dist/chunk-YJ7RUOEJ.js +35 -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 +410 -423
- package/dist/domain/common/index.d.cts +1224 -1111
- package/dist/domain/common/index.d.ts +1224 -1111
- package/dist/domain/common/index.js +35 -36
- 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 +449 -472
- package/dist/domain/index.d.cts +11 -14
- package/dist/domain/index.d.ts +11 -14
- package/dist/domain/index.js +94 -120
- 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-_a-oManb.d.cts} +16 -1
- package/dist/{id-B-8M90Ef.d.ts → id-_a-oManb.d.ts} +16 -1
- package/dist/index-CqcSqpDV.d.ts +286 -0
- package/dist/index-HEHaDbrV.d.cts +286 -0
- package/dist/index.cjs +423 -443
- package/dist/index.d.cts +27 -79
- package/dist/index.d.ts +27 -79
- package/dist/index.js +15 -38
- package/package.json +9 -4
- 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,3 +1,18 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __export = (target, all) => {
|
|
4
|
+
for (var name in all)
|
|
5
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
|
+
};
|
|
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
|
+
|
|
1
16
|
// src/domain/common/schema/id.schema.ts
|
|
2
17
|
import { z } from "zod";
|
|
3
18
|
var PositiveIntIdSchema = z.number().int().positive();
|
|
@@ -15,8 +30,16 @@ var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
|
15
30
|
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
16
31
|
var FriendRequestIdSchema = PositiveIntIdSchema.brand();
|
|
17
32
|
var ReferralCodeSchema = z.string().min(4).max(64).brand();
|
|
33
|
+
var FoodCodeSchema = NonEmptyStringIdSchema.brand();
|
|
34
|
+
var FoodLabelSchema = NonEmptyStringIdSchema.brand();
|
|
35
|
+
var FoodSchema = z.object({
|
|
36
|
+
code: FoodCodeSchema,
|
|
37
|
+
label: FoodLabelSchema
|
|
38
|
+
});
|
|
18
39
|
|
|
19
40
|
export {
|
|
41
|
+
__export,
|
|
42
|
+
__decorateClass,
|
|
20
43
|
PositiveIntIdSchema,
|
|
21
44
|
NonEmptyStringIdSchema,
|
|
22
45
|
MemberIdSchema,
|
|
@@ -31,5 +54,8 @@ export {
|
|
|
31
54
|
CouponIdSchema,
|
|
32
55
|
SubscriptionIdSchema,
|
|
33
56
|
FriendRequestIdSchema,
|
|
34
|
-
ReferralCodeSchema
|
|
57
|
+
ReferralCodeSchema,
|
|
58
|
+
FoodCodeSchema,
|
|
59
|
+
FoodLabelSchema,
|
|
60
|
+
FoodSchema
|
|
35
61
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InvitationIdSchema,
|
|
3
|
+
MemberIdSchema,
|
|
4
|
+
RoomIdSchema
|
|
5
|
+
} from "./chunk-4XAGRJUM.js";
|
|
6
|
+
|
|
7
|
+
// src/domain/invitation/invitation.schema.ts
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
var CreateInvitationRequestSchema = z.object({
|
|
10
|
+
inviteeId: MemberIdSchema,
|
|
11
|
+
message: z.string().min(1).max(500)
|
|
12
|
+
});
|
|
13
|
+
var InvitationListItemResponseSchema = z.object({
|
|
14
|
+
invitationId: InvitationIdSchema,
|
|
15
|
+
inviterName: z.string(),
|
|
16
|
+
inviterProfileImageUrl: z.string().url().nullable().optional()
|
|
17
|
+
});
|
|
18
|
+
var SendInvitationResponseSchema = z.object({
|
|
19
|
+
invitationId: InvitationIdSchema
|
|
20
|
+
});
|
|
21
|
+
var AcceptInvitationResponseSchema = z.object({
|
|
22
|
+
invitationId: InvitationIdSchema,
|
|
23
|
+
room: z.object({
|
|
24
|
+
type: z.literal("invitation"),
|
|
25
|
+
roomId: RoomIdSchema
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
CreateInvitationRequestSchema,
|
|
31
|
+
InvitationListItemResponseSchema,
|
|
32
|
+
SendInvitationResponseSchema,
|
|
33
|
+
AcceptInvitationResponseSchema
|
|
34
|
+
};
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ApiFailureSchema,
|
|
3
|
+
ApiResponseSchema,
|
|
4
|
+
ApiSuccessSchema,
|
|
5
|
+
CreateRecruitRequestSchema,
|
|
6
|
+
CreateRecruitResponseSchema,
|
|
7
|
+
CreatedEntityIdResponseSchema,
|
|
2
8
|
NoBodySchema,
|
|
9
|
+
NoContentSchema,
|
|
3
10
|
NoParamsSchema,
|
|
4
11
|
NoQuerySchema,
|
|
12
|
+
RecruitListQuerySchema,
|
|
13
|
+
RecruitListResponseSchema,
|
|
14
|
+
RecruitSortBySchema,
|
|
15
|
+
RecruitStatusSchema,
|
|
5
16
|
apiContract,
|
|
6
17
|
endpoint,
|
|
7
18
|
makeApiResponseSchema,
|
|
@@ -12,48 +23,24 @@ import {
|
|
|
12
23
|
toRecruitId,
|
|
13
24
|
toRestaurantId,
|
|
14
25
|
toRoomId
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
AcceptInvitationResponseSchema,
|
|
18
|
-
ApiFailureSchema,
|
|
19
|
-
ApiResponseSchema,
|
|
20
|
-
ApiSuccessSchema,
|
|
21
|
-
CreatedEntityIdResponseSchema,
|
|
22
|
-
CreatedIdResponseSchema,
|
|
23
|
-
InvitationListItemResponseSchema,
|
|
24
|
-
InvitationPostRequestSchema,
|
|
25
|
-
NoContentSchema,
|
|
26
|
-
RejectInvitationResponseSchema,
|
|
27
|
-
SendInvitationResponseSchema
|
|
28
|
-
} from "./chunk-4DAOP35P.js";
|
|
26
|
+
} from "./chunk-XTBVYY5B.js";
|
|
29
27
|
import {
|
|
30
|
-
|
|
31
|
-
MealStatusResponseSchema,
|
|
32
|
-
MealStatusSchema,
|
|
33
|
-
UpdateMealStatusRequestSchema
|
|
34
|
-
} from "./chunk-7MGHUZXI.js";
|
|
35
|
-
import {
|
|
36
|
-
CreatePlanRequestSchema,
|
|
28
|
+
PlanListQuerySchema,
|
|
37
29
|
PlanResponseSchema,
|
|
38
30
|
PlanStatusSchema,
|
|
39
31
|
PlanTypeSchema
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
FoodPreferenceResponseSchema,
|
|
43
|
-
FoodPreferenceTypeSchema
|
|
44
|
-
} from "./chunk-F24BT6H4.js";
|
|
45
|
-
import {
|
|
46
|
-
CreateRecruitResponseSchema,
|
|
47
|
-
RecruitParticipantSchema,
|
|
48
|
-
RecruitRequestSchema,
|
|
49
|
-
RecruitResponseSchema,
|
|
50
|
-
RecruitStatusSchema
|
|
51
|
-
} from "./chunk-2SJCUQNN.js";
|
|
32
|
+
} from "./chunk-M7HH7FMO.js";
|
|
52
33
|
import {
|
|
34
|
+
ChallengeStatusResponseSchema,
|
|
35
|
+
ClaimChallengeRewardRequestSchema,
|
|
36
|
+
ClaimChallengeRewardResponseSchema,
|
|
37
|
+
CouponResponseSchema,
|
|
38
|
+
CouponStatusSchema,
|
|
39
|
+
CouponTypeSchema,
|
|
53
40
|
RedeemReferralRequestSchema,
|
|
54
41
|
ReferralCreateResponseSchema,
|
|
55
42
|
ReferralItemResponseSchema
|
|
56
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RHQHBUO4.js";
|
|
57
44
|
import {
|
|
58
45
|
AddLocationCandidateRequestSchema,
|
|
59
46
|
ChatMessageRequestSchema,
|
|
@@ -87,74 +74,81 @@ import {
|
|
|
87
74
|
RoomSocketServerEventSchemas,
|
|
88
75
|
TimePicksUpdateResponseSchema,
|
|
89
76
|
VoteLocationRequestSchema
|
|
90
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-NAPCX4Q6.js";
|
|
91
78
|
import {
|
|
79
|
+
ArticleCommentSchema,
|
|
92
80
|
ArticleCoreSchema,
|
|
93
81
|
ArticleDetailResponseSchema,
|
|
94
|
-
|
|
82
|
+
ArticleListQuerySchema,
|
|
83
|
+
ArticleSortBySchema,
|
|
95
84
|
ArticleSummaryResponseSchema,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
CreateArticleResponseSchema,
|
|
99
|
-
CreateCommentResponseSchema,
|
|
85
|
+
CreateArticleRequestSchema,
|
|
86
|
+
CreateCommentRequestSchema,
|
|
100
87
|
FoodAnalysisResultSchema,
|
|
101
88
|
PageArticleSummaryResponseSchema,
|
|
102
|
-
|
|
89
|
+
PageMetaSchema,
|
|
90
|
+
PageQuerySchema,
|
|
103
91
|
PageResponseSchema,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
} from "./chunk-YVACD5IG.js";
|
|
92
|
+
PresignArticleResponseSchema,
|
|
93
|
+
SortDirectionSchema
|
|
94
|
+
} from "./chunk-XWTMYXPO.js";
|
|
108
95
|
import {
|
|
109
96
|
KakaoPlaceRawSchema,
|
|
110
97
|
RestaurantSchema
|
|
111
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-ET2Z5ZYA.js";
|
|
112
99
|
import {
|
|
113
100
|
LoginRequestSchema,
|
|
114
101
|
SignupRequestSchema,
|
|
115
102
|
SignupResponseSchema,
|
|
116
103
|
TokenResponseSchema
|
|
117
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-JNJRBUKR.js";
|
|
118
105
|
import {
|
|
119
|
-
ChallengeStatusResponseSchema,
|
|
120
|
-
ClaimChallengeRewardRequestSchema,
|
|
121
|
-
ClaimChallengeRewardResponseSchema,
|
|
122
|
-
MonthProgressSchema,
|
|
123
|
-
RewardTypeSchema,
|
|
124
|
-
WeekProgressSchema
|
|
125
|
-
} from "./chunk-6NZPEF4K.js";
|
|
126
|
-
import {
|
|
127
|
-
FriendActionRequestSchema,
|
|
128
106
|
FriendBlockItemResponseSchema,
|
|
129
107
|
FriendListItemResponseSchema,
|
|
130
|
-
FriendMealFilterSchema,
|
|
131
|
-
FriendMealItemResponseSchema,
|
|
132
108
|
FriendRequestItemResponseSchema,
|
|
133
109
|
FriendRequestMemberSchema,
|
|
134
110
|
FriendRequestStatusSchema
|
|
135
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-YJ7RUOEJ.js";
|
|
112
|
+
import {
|
|
113
|
+
AcceptInvitationResponseSchema,
|
|
114
|
+
CreateInvitationRequestSchema,
|
|
115
|
+
InvitationListItemResponseSchema,
|
|
116
|
+
SendInvitationResponseSchema
|
|
117
|
+
} from "./chunk-5QLCZOPJ.js";
|
|
118
|
+
import {
|
|
119
|
+
FriendMealItemResponseSchema,
|
|
120
|
+
FriendMealQuerySchema,
|
|
121
|
+
MealStatusActionSchema,
|
|
122
|
+
MealStatusResponseSchema,
|
|
123
|
+
MealStatusSchema,
|
|
124
|
+
UpdateMealStatusRequestSchema
|
|
125
|
+
} from "./chunk-O56CI56W.js";
|
|
136
126
|
import {
|
|
137
|
-
|
|
127
|
+
ISODateStringSchema,
|
|
128
|
+
ISODateTimeStringSchema,
|
|
129
|
+
TimeHHmmStringSchema
|
|
130
|
+
} from "./chunk-HRM3FQPL.js";
|
|
131
|
+
import {
|
|
132
|
+
CreateProfileRequestSchema,
|
|
138
133
|
MemberCoreSchema,
|
|
134
|
+
MemberDetailSchema,
|
|
135
|
+
MemberFoodPreferenceSchema,
|
|
139
136
|
MemberResponseSchema,
|
|
140
137
|
MemberRoleSchema,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
PreferenceMetaResponseSchema,
|
|
138
|
+
MemberSearchQuerySchema,
|
|
139
|
+
MemberSerachResponseSchema,
|
|
140
|
+
PresignProfileResponseSchema,
|
|
145
141
|
ProfileDetailResponseSchema,
|
|
146
|
-
|
|
142
|
+
UpdatePreferenceRequestSchema,
|
|
147
143
|
UpdateProfileRequestSchema
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import {
|
|
150
|
-
CouponResponseSchema,
|
|
151
|
-
CouponStatusSchema,
|
|
152
|
-
CouponTypeSchema
|
|
153
|
-
} from "./chunk-IJMADVK5.js";
|
|
144
|
+
} from "./chunk-ADIREWTX.js";
|
|
154
145
|
import {
|
|
155
146
|
ArticleIdSchema,
|
|
156
147
|
CommentIdSchema,
|
|
157
148
|
CouponIdSchema,
|
|
149
|
+
FoodCodeSchema,
|
|
150
|
+
FoodLabelSchema,
|
|
151
|
+
FoodSchema,
|
|
158
152
|
FriendRequestIdSchema,
|
|
159
153
|
InvitationIdSchema,
|
|
160
154
|
MemberIdSchema,
|
|
@@ -166,16 +160,9 @@ import {
|
|
|
166
160
|
RestaurantIdSchema,
|
|
167
161
|
RoomIdSchema,
|
|
168
162
|
SubscriptionIdSchema,
|
|
169
|
-
UserIdSchema
|
|
170
|
-
} from "./chunk-UFVPFUMI.js";
|
|
171
|
-
import {
|
|
172
|
-
ISODateStringSchema,
|
|
173
|
-
ISODateTimeStringSchema,
|
|
174
|
-
TimeHHmmStringSchema
|
|
175
|
-
} from "./chunk-HRM3FQPL.js";
|
|
176
|
-
import {
|
|
163
|
+
UserIdSchema,
|
|
177
164
|
__export
|
|
178
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-4XAGRJUM.js";
|
|
179
166
|
|
|
180
167
|
// src/domain/index.ts
|
|
181
168
|
var domain_exports = {};
|
|
@@ -185,42 +172,42 @@ __export(domain_exports, {
|
|
|
185
172
|
ApiFailureSchema: () => ApiFailureSchema,
|
|
186
173
|
ApiResponseSchema: () => ApiResponseSchema,
|
|
187
174
|
ApiSuccessSchema: () => ApiSuccessSchema,
|
|
175
|
+
ArticleCommentSchema: () => ArticleCommentSchema,
|
|
188
176
|
ArticleCoreSchema: () => ArticleCoreSchema,
|
|
189
177
|
ArticleDetailResponseSchema: () => ArticleDetailResponseSchema,
|
|
190
178
|
ArticleIdSchema: () => ArticleIdSchema,
|
|
191
|
-
|
|
179
|
+
ArticleListQuerySchema: () => ArticleListQuerySchema,
|
|
180
|
+
ArticleSortBySchema: () => ArticleSortBySchema,
|
|
192
181
|
ArticleSummaryResponseSchema: () => ArticleSummaryResponseSchema,
|
|
193
|
-
AuthPrincipalSchema: () => AuthPrincipalSchema,
|
|
194
182
|
ChallengeStatusResponseSchema: () => ChallengeStatusResponseSchema,
|
|
195
183
|
ChatMessageRequestSchema: () => ChatMessageRequestSchema,
|
|
196
184
|
ChatMessageResponseSchema: () => ChatMessageResponseSchema,
|
|
197
185
|
ClaimChallengeRewardRequestSchema: () => ClaimChallengeRewardRequestSchema,
|
|
198
186
|
ClaimChallengeRewardResponseSchema: () => ClaimChallengeRewardResponseSchema,
|
|
199
187
|
CommentIdSchema: () => CommentIdSchema,
|
|
200
|
-
CommentPostRequestSchema: () => CommentPostRequestSchema,
|
|
201
|
-
CommentResponseSchema: () => CommentResponseSchema,
|
|
202
188
|
CouponIdSchema: () => CouponIdSchema,
|
|
203
189
|
CouponResponseSchema: () => CouponResponseSchema,
|
|
204
190
|
CouponStatusSchema: () => CouponStatusSchema,
|
|
205
191
|
CouponTypeSchema: () => CouponTypeSchema,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
192
|
+
CreateArticleRequestSchema: () => CreateArticleRequestSchema,
|
|
193
|
+
CreateCommentRequestSchema: () => CreateCommentRequestSchema,
|
|
194
|
+
CreateInvitationRequestSchema: () => CreateInvitationRequestSchema,
|
|
195
|
+
CreateProfileRequestSchema: () => CreateProfileRequestSchema,
|
|
196
|
+
CreateRecruitRequestSchema: () => CreateRecruitRequestSchema,
|
|
209
197
|
CreateRecruitResponseSchema: () => CreateRecruitResponseSchema,
|
|
210
198
|
CreatedEntityIdResponseSchema: () => CreatedEntityIdResponseSchema,
|
|
211
|
-
CreatedIdResponseSchema: () => CreatedIdResponseSchema,
|
|
212
199
|
DatePicksUpdateResponseSchema: () => DatePicksUpdateResponseSchema,
|
|
213
200
|
ExcludeMenuRequestSchema: () => ExcludeMenuRequestSchema,
|
|
214
201
|
ExcludeMenuUpdateResponseSchema: () => ExcludeMenuUpdateResponseSchema,
|
|
215
202
|
FinalStateSchema: () => FinalStateSchema,
|
|
216
203
|
FoodAnalysisResultSchema: () => FoodAnalysisResultSchema,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
204
|
+
FoodCodeSchema: () => FoodCodeSchema,
|
|
205
|
+
FoodLabelSchema: () => FoodLabelSchema,
|
|
206
|
+
FoodSchema: () => FoodSchema,
|
|
220
207
|
FriendBlockItemResponseSchema: () => FriendBlockItemResponseSchema,
|
|
221
208
|
FriendListItemResponseSchema: () => FriendListItemResponseSchema,
|
|
222
|
-
FriendMealFilterSchema: () => FriendMealFilterSchema,
|
|
223
209
|
FriendMealItemResponseSchema: () => FriendMealItemResponseSchema,
|
|
210
|
+
FriendMealQuerySchema: () => FriendMealQuerySchema,
|
|
224
211
|
FriendRequestIdSchema: () => FriendRequestIdSchema,
|
|
225
212
|
FriendRequestItemResponseSchema: () => FriendRequestItemResponseSchema,
|
|
226
213
|
FriendRequestMemberSchema: () => FriendRequestMemberSchema,
|
|
@@ -229,7 +216,6 @@ __export(domain_exports, {
|
|
|
229
216
|
ISODateTimeStringSchema: () => ISODateTimeStringSchema,
|
|
230
217
|
InvitationIdSchema: () => InvitationIdSchema,
|
|
231
218
|
InvitationListItemResponseSchema: () => InvitationListItemResponseSchema,
|
|
232
|
-
InvitationPostRequestSchema: () => InvitationPostRequestSchema,
|
|
233
219
|
InvitationRoomStageSchema: () => InvitationRoomStageSchema,
|
|
234
220
|
KakaoPlaceRawSchema: () => KakaoPlaceRawSchema,
|
|
235
221
|
LocationCandidateAddUpdateResponseSchema: () => LocationCandidateAddUpdateResponseSchema,
|
|
@@ -241,25 +227,25 @@ __export(domain_exports, {
|
|
|
241
227
|
MealStatusResponseSchema: () => MealStatusResponseSchema,
|
|
242
228
|
MealStatusSchema: () => MealStatusSchema,
|
|
243
229
|
MemberCoreSchema: () => MemberCoreSchema,
|
|
230
|
+
MemberDetailSchema: () => MemberDetailSchema,
|
|
231
|
+
MemberFoodPreferenceSchema: () => MemberFoodPreferenceSchema,
|
|
244
232
|
MemberIdSchema: () => MemberIdSchema,
|
|
245
233
|
MemberResponseSchema: () => MemberResponseSchema,
|
|
246
234
|
MemberRoleSchema: () => MemberRoleSchema,
|
|
247
|
-
|
|
235
|
+
MemberSearchQuerySchema: () => MemberSearchQuerySchema,
|
|
236
|
+
MemberSerachResponseSchema: () => MemberSerachResponseSchema,
|
|
248
237
|
MenuCodeSchema: () => MenuCodeSchema,
|
|
249
238
|
MenuPickUpdateResponseSchema: () => MenuPickUpdateResponseSchema,
|
|
250
239
|
MenuSchema: () => MenuSchema,
|
|
251
|
-
MonthProgressSchema: () => MonthProgressSchema,
|
|
252
240
|
NoBodySchema: () => NoBodySchema,
|
|
253
241
|
NoContentSchema: () => NoContentSchema,
|
|
254
242
|
NoParamsSchema: () => NoParamsSchema,
|
|
255
243
|
NoQuerySchema: () => NoQuerySchema,
|
|
256
244
|
NonEmptyStringIdSchema: () => NonEmptyStringIdSchema,
|
|
257
|
-
OnboardingPreferenceRequestSchema: () => OnboardingPreferenceRequestSchema,
|
|
258
|
-
OnboardingRequestSchema: () => OnboardingRequestSchema,
|
|
259
245
|
PageArticleSummaryResponseSchema: () => PageArticleSummaryResponseSchema,
|
|
260
|
-
|
|
246
|
+
PageMetaSchema: () => PageMetaSchema,
|
|
247
|
+
PageQuerySchema: () => PageQuerySchema,
|
|
261
248
|
PageResponseSchema: () => PageResponseSchema,
|
|
262
|
-
PageableObjectSchema: () => PageableObjectSchema,
|
|
263
249
|
ParticipantSchema: () => ParticipantSchema,
|
|
264
250
|
PhaseDataBroadcastSchema: () => PhaseDataBroadcastSchema,
|
|
265
251
|
PickDateRequestSchema: () => PickDateRequestSchema,
|
|
@@ -267,31 +253,29 @@ __export(domain_exports, {
|
|
|
267
253
|
PickRestaurantRequestSchema: () => PickRestaurantRequestSchema,
|
|
268
254
|
PickTimesRequestSchema: () => PickTimesRequestSchema,
|
|
269
255
|
PlanIdSchema: () => PlanIdSchema,
|
|
256
|
+
PlanListQuerySchema: () => PlanListQuerySchema,
|
|
270
257
|
PlanResponseSchema: () => PlanResponseSchema,
|
|
271
258
|
PlanStatusSchema: () => PlanStatusSchema,
|
|
272
259
|
PlanTypeSchema: () => PlanTypeSchema,
|
|
273
260
|
PositiveIntIdSchema: () => PositiveIntIdSchema,
|
|
274
|
-
|
|
275
|
-
|
|
261
|
+
PresignArticleResponseSchema: () => PresignArticleResponseSchema,
|
|
262
|
+
PresignProfileResponseSchema: () => PresignProfileResponseSchema,
|
|
276
263
|
ProfileDetailResponseSchema: () => ProfileDetailResponseSchema,
|
|
277
|
-
ProfilePreferenceItemSchema: () => ProfilePreferenceItemSchema,
|
|
278
264
|
ReadyStateChangedSchema: () => ReadyStateChangedSchema,
|
|
279
265
|
ReadyStateRequestSchema: () => ReadyStateRequestSchema,
|
|
280
266
|
RecruitIdSchema: () => RecruitIdSchema,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
RecruitResponseSchema: () => RecruitResponseSchema,
|
|
267
|
+
RecruitListQuerySchema: () => RecruitListQuerySchema,
|
|
268
|
+
RecruitListResponseSchema: () => RecruitListResponseSchema,
|
|
284
269
|
RecruitRoomStageSchema: () => RecruitRoomStageSchema,
|
|
270
|
+
RecruitSortBySchema: () => RecruitSortBySchema,
|
|
285
271
|
RecruitStatusSchema: () => RecruitStatusSchema,
|
|
286
272
|
RedeemReferralRequestSchema: () => RedeemReferralRequestSchema,
|
|
287
273
|
ReferralCodeSchema: () => ReferralCodeSchema,
|
|
288
274
|
ReferralCreateResponseSchema: () => ReferralCreateResponseSchema,
|
|
289
275
|
ReferralItemResponseSchema: () => ReferralItemResponseSchema,
|
|
290
|
-
RejectInvitationResponseSchema: () => RejectInvitationResponseSchema,
|
|
291
276
|
RestaurantIdSchema: () => RestaurantIdSchema,
|
|
292
277
|
RestaurantPickUpdateResponseSchema: () => RestaurantPickUpdateResponseSchema,
|
|
293
278
|
RestaurantSchema: () => RestaurantSchema,
|
|
294
|
-
RewardTypeSchema: () => RewardTypeSchema,
|
|
295
279
|
RoomAssignedResponseSchema: () => RoomAssignedResponseSchema,
|
|
296
280
|
RoomIdSchema: () => RoomIdSchema,
|
|
297
281
|
RoomInitialStateSchema: () => RoomInitialStateSchema,
|
|
@@ -301,16 +285,16 @@ __export(domain_exports, {
|
|
|
301
285
|
SendInvitationResponseSchema: () => SendInvitationResponseSchema,
|
|
302
286
|
SignupRequestSchema: () => SignupRequestSchema,
|
|
303
287
|
SignupResponseSchema: () => SignupResponseSchema,
|
|
304
|
-
|
|
288
|
+
SortDirectionSchema: () => SortDirectionSchema,
|
|
305
289
|
SubscriptionIdSchema: () => SubscriptionIdSchema,
|
|
306
290
|
TimeHHmmStringSchema: () => TimeHHmmStringSchema,
|
|
307
291
|
TimePicksUpdateResponseSchema: () => TimePicksUpdateResponseSchema,
|
|
308
292
|
TokenResponseSchema: () => TokenResponseSchema,
|
|
309
293
|
UpdateMealStatusRequestSchema: () => UpdateMealStatusRequestSchema,
|
|
294
|
+
UpdatePreferenceRequestSchema: () => UpdatePreferenceRequestSchema,
|
|
310
295
|
UpdateProfileRequestSchema: () => UpdateProfileRequestSchema,
|
|
311
296
|
UserIdSchema: () => UserIdSchema,
|
|
312
297
|
VoteLocationRequestSchema: () => VoteLocationRequestSchema,
|
|
313
|
-
WeekProgressSchema: () => WeekProgressSchema,
|
|
314
298
|
apiContract: () => apiContract,
|
|
315
299
|
endpoint: () => endpoint,
|
|
316
300
|
makeApiResponseSchema: () => makeApiResponseSchema,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FoodSchema,
|
|
3
|
+
MemberIdSchema
|
|
4
|
+
} from "./chunk-4XAGRJUM.js";
|
|
5
|
+
|
|
6
|
+
// src/domain/member/member.schema.ts
|
|
7
|
+
import { z as z2 } from "zod";
|
|
8
|
+
|
|
9
|
+
// src/domain/common/contracts/upload.ts
|
|
10
|
+
import z from "zod";
|
|
11
|
+
var PresignUploadResponseSchema = z.object({
|
|
12
|
+
key: z.string(),
|
|
13
|
+
putUrl: z.string().url(),
|
|
14
|
+
cdnUrl: z.string().url()
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// src/domain/member/member.schema.ts
|
|
18
|
+
var MemberRoleSchema = z2.enum(["USER", "ADMIN"]);
|
|
19
|
+
var MemberCoreSchema = z2.object({
|
|
20
|
+
memberId: MemberIdSchema,
|
|
21
|
+
username: z2.string().min(1).max(50),
|
|
22
|
+
profileImageUrl: z2.string().url().nullable().optional()
|
|
23
|
+
});
|
|
24
|
+
var PresignProfileResponseSchema = PresignUploadResponseSchema.extend({});
|
|
25
|
+
var MemberResponseSchema = MemberCoreSchema.pick({
|
|
26
|
+
memberId: true,
|
|
27
|
+
username: true,
|
|
28
|
+
profileImageUrl: true
|
|
29
|
+
});
|
|
30
|
+
var MemberSearchQuerySchema = z2.object({
|
|
31
|
+
email: z2.string().email().optional(),
|
|
32
|
+
username: z2.string().optional()
|
|
33
|
+
});
|
|
34
|
+
var MemberSerachResponseSchema = z2.array(MemberCoreSchema);
|
|
35
|
+
var MemberDetailSchema = MemberCoreSchema.extend({
|
|
36
|
+
bio: z2.string().nullable(),
|
|
37
|
+
friendConunt: z2.number().int().min(0).default(0),
|
|
38
|
+
completedPlans: z2.number().int().min(0).default(0),
|
|
39
|
+
uncompletedPlans: z2.number().int().min(0).default(0)
|
|
40
|
+
});
|
|
41
|
+
var FoodPreferenceItemSchema = FoodSchema.extend({});
|
|
42
|
+
var MemberFoodPreferenceSchema = z2.object({
|
|
43
|
+
liked: z2.array(FoodPreferenceItemSchema).optional(),
|
|
44
|
+
disliked: z2.array(FoodPreferenceItemSchema).optional(),
|
|
45
|
+
allergy: z2.array(FoodPreferenceItemSchema).optional()
|
|
46
|
+
});
|
|
47
|
+
var ProfileDetailResponseSchema = MemberDetailSchema;
|
|
48
|
+
var UpdateProfileRequestSchema = z2.object({
|
|
49
|
+
username: z2.string().min(1).max(50),
|
|
50
|
+
profileImageUrl: z2.string().url().nullable(),
|
|
51
|
+
bio: z2.string().max(500).nullable()
|
|
52
|
+
});
|
|
53
|
+
var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
|
|
54
|
+
var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
|
|
55
|
+
UpdatePreferenceRequestSchema
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
PresignUploadResponseSchema,
|
|
60
|
+
MemberRoleSchema,
|
|
61
|
+
MemberCoreSchema,
|
|
62
|
+
PresignProfileResponseSchema,
|
|
63
|
+
MemberResponseSchema,
|
|
64
|
+
MemberSearchQuerySchema,
|
|
65
|
+
MemberSerachResponseSchema,
|
|
66
|
+
MemberDetailSchema,
|
|
67
|
+
MemberFoodPreferenceSchema,
|
|
68
|
+
ProfileDetailResponseSchema,
|
|
69
|
+
UpdateProfileRequestSchema,
|
|
70
|
+
UpdatePreferenceRequestSchema,
|
|
71
|
+
CreateProfileRequestSchema
|
|
72
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RestaurantIdSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4XAGRJUM.js";
|
|
4
4
|
|
|
5
|
-
// src/domain/restaurant/
|
|
5
|
+
// src/domain/restaurant/restaurant.schema.ts
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
var RestaurantSchema = z.object({
|
|
8
8
|
restaurantId: RestaurantIdSchema,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
MemberCoreSchema
|
|
3
|
+
} from "./chunk-ADIREWTX.js";
|
|
4
4
|
|
|
5
|
-
// src/domain/auth/
|
|
5
|
+
// src/domain/auth/auth.schema.ts
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
var TokenResponseSchema = z.object({
|
|
8
8
|
accessToken: z.string().min(1),
|
|
@@ -19,7 +19,7 @@ var SignupRequestSchema = z.object({
|
|
|
19
19
|
profileImageUrl: z.string().url().nullable().optional()
|
|
20
20
|
});
|
|
21
21
|
var SignupResponseSchema = z.object({
|
|
22
|
-
member:
|
|
22
|
+
member: MemberCoreSchema
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
export {
|
|
@@ -1,45 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationCandidateSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NAPCX4Q6.js";
|
|
4
4
|
import {
|
|
5
5
|
RestaurantSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ET2Z5ZYA.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
ISODateTimeStringSchema
|
|
9
|
+
} from "./chunk-HRM3FQPL.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
MemberCoreSchema
|
|
12
|
+
} from "./chunk-ADIREWTX.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
TimeHHmmStringSchema
|
|
17
|
-
} from "./chunk-HRM3FQPL.js";
|
|
14
|
+
PlanIdSchema
|
|
15
|
+
} from "./chunk-4XAGRJUM.js";
|
|
18
16
|
|
|
19
|
-
// src/domain/plan/
|
|
17
|
+
// src/domain/plan/plan.schema.ts
|
|
20
18
|
import { z } from "zod";
|
|
21
19
|
var PlanStatusSchema = z.enum(["PLANNING", "COMPLETED"]);
|
|
22
20
|
var PlanTypeSchema = z.enum(["RECRUIT", "INVITATION"]);
|
|
23
|
-
var CreatePlanRequestSchema = z.object({
|
|
24
|
-
meetingDate: ISODateStringSchema,
|
|
25
|
-
meetingTime: TimeHHmmStringSchema
|
|
26
|
-
});
|
|
27
21
|
var PlanResponseSchema = z.object({
|
|
28
22
|
planId: PlanIdSchema,
|
|
29
23
|
meetingAt: ISODateTimeStringSchema,
|
|
30
24
|
location: LocationCandidateSchema.nullable(),
|
|
31
25
|
restaurant: RestaurantSchema.nullable(),
|
|
32
|
-
author:
|
|
33
|
-
participants: z.array(
|
|
26
|
+
author: MemberCoreSchema,
|
|
27
|
+
participants: z.array(MemberCoreSchema),
|
|
34
28
|
status: PlanStatusSchema,
|
|
35
29
|
type: PlanTypeSchema,
|
|
36
30
|
createdAt: ISODateTimeStringSchema,
|
|
37
31
|
updatedAt: ISODateTimeStringSchema
|
|
38
32
|
});
|
|
33
|
+
var PlanListQuerySchema = z.object({});
|
|
39
34
|
|
|
40
35
|
export {
|
|
41
36
|
PlanStatusSchema,
|
|
42
37
|
PlanTypeSchema,
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
PlanResponseSchema,
|
|
39
|
+
PlanListQuerySchema
|
|
45
40
|
};
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RestaurantSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ET2Z5ZYA.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
ISODateStringSchema,
|
|
6
|
+
ISODateTimeStringSchema
|
|
7
|
+
} from "./chunk-HRM3FQPL.js";
|
|
7
8
|
import {
|
|
9
|
+
MemberCoreSchema
|
|
10
|
+
} from "./chunk-ADIREWTX.js";
|
|
11
|
+
import {
|
|
12
|
+
FoodCodeSchema,
|
|
13
|
+
FoodSchema,
|
|
8
14
|
MemberIdSchema,
|
|
9
15
|
RestaurantIdSchema,
|
|
10
16
|
RoomIdSchema
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
ISODateStringSchema,
|
|
14
|
-
ISODateTimeStringSchema
|
|
15
|
-
} from "./chunk-HRM3FQPL.js";
|
|
17
|
+
} from "./chunk-4XAGRJUM.js";
|
|
16
18
|
|
|
17
19
|
// src/domain/room/schema/room.schema.ts
|
|
18
20
|
import { z } from "zod";
|
|
19
|
-
var MenuCodeSchema =
|
|
21
|
+
var MenuCodeSchema = FoodCodeSchema;
|
|
20
22
|
var LocationIdSchema = z.string().min(1).brand();
|
|
21
|
-
var MenuSchema =
|
|
22
|
-
code: MenuCodeSchema,
|
|
23
|
-
label: z.string()
|
|
24
|
-
});
|
|
23
|
+
var MenuSchema = FoodSchema.extend({});
|
|
25
24
|
var LocationCandidateSchema = z.object({
|
|
26
25
|
locationId: LocationIdSchema,
|
|
27
26
|
placeName: z.string(),
|
|
@@ -29,7 +28,7 @@ var LocationCandidateSchema = z.object({
|
|
|
29
28
|
lng: z.number(),
|
|
30
29
|
address: z.string()
|
|
31
30
|
});
|
|
32
|
-
var ParticipantSchema =
|
|
31
|
+
var ParticipantSchema = MemberCoreSchema.extend({
|
|
33
32
|
ready: z.boolean()
|
|
34
33
|
});
|
|
35
34
|
var RecruitRoomStageSchema = z.enum([
|
|
@@ -74,7 +73,7 @@ var RoomSocketErrorSchema = z.object({
|
|
|
74
73
|
});
|
|
75
74
|
var ChatMessageResponseSchema = z.object({
|
|
76
75
|
messageId: z.string(),
|
|
77
|
-
user:
|
|
76
|
+
user: MemberCoreSchema,
|
|
78
77
|
message: z.string(),
|
|
79
78
|
createdAt: ISODateTimeStringSchema
|
|
80
79
|
});
|