@kimdaegyu/babmukdang-shared 1.1.11 → 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 +79 -796
- package/dist/domain/article/index.d.ts +79 -796
- package/dist/domain/article/index.js +5 -5
- package/dist/domain/auth/index.cjs +88 -9
- package/dist/domain/auth/index.d.cts +6 -46
- package/dist/domain/auth/index.d.ts +6 -46
- package/dist/domain/auth/index.js +3 -3
- package/dist/domain/common/index.cjs +2100 -395
- package/dist/domain/common/index.d.cts +212 -3037
- package/dist/domain/common/index.d.ts +212 -3037
- 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 +39 -98
- package/dist/domain/friend/index.d.ts +39 -98
- package/dist/domain/friend/index.js +6 -4
- package/dist/domain/index.cjs +2736 -522
- package/dist/domain/index.d.cts +383 -123
- package/dist/domain/index.d.ts +383 -123
- 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 +21 -40
- package/dist/domain/meal/index.d.ts +21 -40
- 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 +263 -273
- package/dist/domain/member/index.d.ts +263 -273
- package/dist/domain/member/index.js +26 -2
- package/dist/domain/promotion/index.cjs +26 -8
- package/dist/domain/promotion/index.d.cts +35 -112
- package/dist/domain/promotion/index.d.ts +35 -112
- 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 +27 -1
- package/dist/domain/restaurant/index.d.ts +27 -1
- package/dist/domain/restaurant/index.js +2 -2
- package/dist/index.cjs +2535 -464
- package/dist/index.d.cts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +16 -15
- 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.d.cts +0 -64
- package/dist/domain/invitation/index.d.ts +0 -64
- package/dist/domain/invitation/index.js +0 -13
- package/dist/domain/plan/index.cjs +0 -327
- package/dist/domain/plan/index.d.cts +0 -178
- package/dist/domain/plan/index.d.ts +0 -178
- package/dist/domain/plan/index.js +0 -18
- package/dist/domain/recruit/index.cjs +0 -189
- package/dist/domain/recruit/index.d.cts +0 -214
- package/dist/domain/recruit/index.d.ts +0 -214
- package/dist/domain/recruit/index.js +0 -30
- package/dist/domain/room/index.cjs +0 -401
- package/dist/domain/room/index.d.cts +0 -2643
- package/dist/domain/room/index.d.ts +0 -2643
- package/dist/domain/room/index.js +0 -82
- package/dist/id-dAYxfjZn.d.cts +0 -64
- package/dist/id-dAYxfjZn.d.ts +0 -64
- package/dist/restaurant.schema-CuEcX3S3.d.cts +0 -78
- package/dist/restaurant.schema-CuEcX3S3.d.ts +0 -78
|
@@ -0,0 +1,1062 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FriendMealItemResponseSchema,
|
|
3
|
+
FriendMealQuerySchema,
|
|
4
|
+
MealStatusResponseSchema,
|
|
5
|
+
UpdateMealStatusRequestSchema
|
|
6
|
+
} from "./chunk-QUAG5LF5.js";
|
|
7
|
+
import {
|
|
8
|
+
ChallengeStatusResponseSchema,
|
|
9
|
+
ClaimChallengeRewardRequestSchema,
|
|
10
|
+
CouponResponseSchema,
|
|
11
|
+
RedeemReferralRequestSchema,
|
|
12
|
+
ReferralCreateResponseSchema,
|
|
13
|
+
ReferralItemResponseSchema
|
|
14
|
+
} from "./chunk-65DWKLP6.js";
|
|
15
|
+
import {
|
|
16
|
+
ArticleDetailResponseSchema,
|
|
17
|
+
ArticleLikeResponseSchema,
|
|
18
|
+
ArticleListQuerySchema,
|
|
19
|
+
CreateArticleRequestSchema,
|
|
20
|
+
CreateCommentRequestSchema,
|
|
21
|
+
PageArticleSummaryResponseSchema,
|
|
22
|
+
UploadArticleImageRequestSchema,
|
|
23
|
+
UploadArticleImageResponseSchema
|
|
24
|
+
} from "./chunk-P3MYMK34.js";
|
|
25
|
+
import {
|
|
26
|
+
LoginRequestSchema,
|
|
27
|
+
SignupRequestSchema,
|
|
28
|
+
SignupResponseSchema,
|
|
29
|
+
TokenResponseSchema
|
|
30
|
+
} from "./chunk-G7TITUHT.js";
|
|
31
|
+
import {
|
|
32
|
+
FriendBlockItemResponseSchema,
|
|
33
|
+
FriendListItemResponseSchema,
|
|
34
|
+
FriendRequestItemResponseSchema
|
|
35
|
+
} from "./chunk-DRCY5UNQ.js";
|
|
36
|
+
import {
|
|
37
|
+
EndMealPlanLiveActivitySessionRequestSchema,
|
|
38
|
+
MealPlanLiveActivitySessionListResponseSchema,
|
|
39
|
+
MealPlanLiveActivitySessionResponseSchema,
|
|
40
|
+
RegisterMealPlanLiveActivitySessionRequestSchema
|
|
41
|
+
} from "./chunk-EX7S5FI5.js";
|
|
42
|
+
import {
|
|
43
|
+
AddMealGroupMemberRequestSchema,
|
|
44
|
+
CreateMealGroupRequestSchema,
|
|
45
|
+
CreateMealPlanShareLinkRequestSchema,
|
|
46
|
+
HomeMealPlanDashboardResponseSchema,
|
|
47
|
+
JoinMealPlanGuestRequestSchema,
|
|
48
|
+
JoinMealPlanGuestResponseSchema,
|
|
49
|
+
MealGroupHistoryResponseSchema,
|
|
50
|
+
MealGroupPreferenceSummarySchema,
|
|
51
|
+
MealGroupResponseSchema,
|
|
52
|
+
MealMapQuerySchema,
|
|
53
|
+
MealMapResponseSchema,
|
|
54
|
+
MealPlanGuestSessionQuerySchema,
|
|
55
|
+
MealPlanGuestSessionResponseSchema,
|
|
56
|
+
MealPlanShareLinkSummarySchema,
|
|
57
|
+
MealPlanSharePreviewResponseSchema,
|
|
58
|
+
StartMealPlanFromGroupRequestSchema,
|
|
59
|
+
UpdateMealGroupMemberRoleRequestSchema
|
|
60
|
+
} from "./chunk-3BLXZW4U.js";
|
|
61
|
+
import {
|
|
62
|
+
PushTokenResponseSchema,
|
|
63
|
+
RegisterPushTokenRequestSchema,
|
|
64
|
+
RevokePushTokenRequestSchema
|
|
65
|
+
} from "./chunk-GESEM4IA.js";
|
|
66
|
+
import {
|
|
67
|
+
CompleteMealPlanDecisionStageRequestSchema,
|
|
68
|
+
ConfirmMealPlanDecisionSnapshotRequestSchema,
|
|
69
|
+
CreateMealPlanChangeRequestSchema,
|
|
70
|
+
CreateMealPlanInviteRequestSchema,
|
|
71
|
+
CreateMealPlanJoinRequestSchema,
|
|
72
|
+
CreateMealPlanRequestSchema,
|
|
73
|
+
CreateMealPlanResponseSchema,
|
|
74
|
+
CreateMealPlanVoteRequestSchema,
|
|
75
|
+
ExposeMealPlanToNearbyFriendsRequestSchema,
|
|
76
|
+
ExposeMealPlanToNearbyFriendsResponseSchema,
|
|
77
|
+
MealPlanChatMessageListResponseSchema,
|
|
78
|
+
MealPlanDecisionProgressSchema,
|
|
79
|
+
MealPlanDecisionStageIdSchema,
|
|
80
|
+
MealPlanDecisionTaskKeySchema,
|
|
81
|
+
MealPlanDecisionTaskReadyRequestSchema,
|
|
82
|
+
MealPlanInviteListResponseSchema,
|
|
83
|
+
MealPlanNotificationSchema,
|
|
84
|
+
MealPlanResponseSchema,
|
|
85
|
+
MyMealPlanListResponseSchema,
|
|
86
|
+
NearbyFriendExposureEligibilitySchema,
|
|
87
|
+
NearbyFriendMealPlanSummarySchema,
|
|
88
|
+
ReopenMealPlanDecisionTaskRequestSchema,
|
|
89
|
+
SendMealPlanInviteResponseSchema,
|
|
90
|
+
UpdateMealPlanContextRequestSchema
|
|
91
|
+
} from "./chunk-TIOX7OHA.js";
|
|
92
|
+
import {
|
|
93
|
+
CreateProfileRequestSchema,
|
|
94
|
+
MemberFoodPreferenceSchema,
|
|
95
|
+
MemberLocationSettingsResponseSchema,
|
|
96
|
+
MemberResponseSchema,
|
|
97
|
+
MemberSearchQuerySchema,
|
|
98
|
+
MemberSerachResponseSchema,
|
|
99
|
+
ProfileDetailResponseSchema,
|
|
100
|
+
UpdateMemberLocationConsentRequestSchema,
|
|
101
|
+
UpdateMemberLocationRequestSchema,
|
|
102
|
+
UpdatePreferenceRequestSchema,
|
|
103
|
+
UpdateProfileRequestSchema,
|
|
104
|
+
UploadProfileImageRequestSchema,
|
|
105
|
+
UploadProfileImageResponseSchema
|
|
106
|
+
} from "./chunk-YV734GYZ.js";
|
|
107
|
+
import {
|
|
108
|
+
ArticleIdSchema,
|
|
109
|
+
CommentIdSchema,
|
|
110
|
+
CouponIdSchema,
|
|
111
|
+
FriendRequestIdSchema,
|
|
112
|
+
MealGroupIdSchema,
|
|
113
|
+
MealPlanChangeRequestIdSchema,
|
|
114
|
+
MealPlanChatMessageIdSchema,
|
|
115
|
+
MealPlanChatRoomIdSchema,
|
|
116
|
+
MealPlanIdSchema,
|
|
117
|
+
MealPlanInviteIdSchema,
|
|
118
|
+
MealPlanJoinRequestIdSchema,
|
|
119
|
+
MealPlanNearbyFriendExposureBatchIdSchema,
|
|
120
|
+
MealPlanShareLinkIdSchema,
|
|
121
|
+
MealPlanShareLinkTokenSchema,
|
|
122
|
+
MemberIdSchema,
|
|
123
|
+
ReferralCodeSchema,
|
|
124
|
+
RestaurantIdSchema,
|
|
125
|
+
SubscriptionIdSchema,
|
|
126
|
+
__name
|
|
127
|
+
} from "./chunk-6R5CCY5Q.js";
|
|
128
|
+
|
|
129
|
+
// src/domain/common/contracts/api.ts
|
|
130
|
+
import { z as z4 } from "zod";
|
|
131
|
+
|
|
132
|
+
// src/domain/common/schema/cache-invalidation.schema.ts
|
|
133
|
+
import { z } from "zod";
|
|
134
|
+
var CacheInvalidationEntitySchema = z.enum([
|
|
135
|
+
"article",
|
|
136
|
+
"mealPlan",
|
|
137
|
+
"mealPlanInvite",
|
|
138
|
+
"mealPlanParticipant",
|
|
139
|
+
"mealPlanDecision",
|
|
140
|
+
"mealPlanChat",
|
|
141
|
+
"mealGroup",
|
|
142
|
+
"notification",
|
|
143
|
+
"friend"
|
|
144
|
+
]);
|
|
145
|
+
var CacheInvalidationActionSchema = z.enum([
|
|
146
|
+
"created",
|
|
147
|
+
"updated",
|
|
148
|
+
"deleted",
|
|
149
|
+
"accepted",
|
|
150
|
+
"rejected",
|
|
151
|
+
"cancelled",
|
|
152
|
+
"closed",
|
|
153
|
+
"joined",
|
|
154
|
+
"ready",
|
|
155
|
+
"confirmed",
|
|
156
|
+
"locked",
|
|
157
|
+
"completed",
|
|
158
|
+
"recorded",
|
|
159
|
+
"read"
|
|
160
|
+
]);
|
|
161
|
+
var CacheInvalidationKeySchema = z.enum([
|
|
162
|
+
"articles",
|
|
163
|
+
"mealPlans",
|
|
164
|
+
"mealPlanDetail",
|
|
165
|
+
"mealPlanInvites",
|
|
166
|
+
"mealPlanJoinRequests",
|
|
167
|
+
"mealPlanNearbyFriends",
|
|
168
|
+
"mealPlanMessages",
|
|
169
|
+
"mealGroups",
|
|
170
|
+
"notifications",
|
|
171
|
+
"friends",
|
|
172
|
+
"friendMeals"
|
|
173
|
+
]);
|
|
174
|
+
var CacheInvalidationEventSchema = z.object({
|
|
175
|
+
type: z.literal("cache.invalidate"),
|
|
176
|
+
entity: CacheInvalidationEntitySchema,
|
|
177
|
+
action: CacheInvalidationActionSchema,
|
|
178
|
+
id: z.union([
|
|
179
|
+
z.string(),
|
|
180
|
+
z.number()
|
|
181
|
+
]).optional(),
|
|
182
|
+
keys: z.array(CacheInvalidationKeySchema).min(1),
|
|
183
|
+
occurredAt: z.string().datetime()
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
// src/domain/common/schema/envelope.schema.ts
|
|
187
|
+
import { z as z2 } from "zod";
|
|
188
|
+
var NoContentSchema = z2.null();
|
|
189
|
+
var ApiSuccessSchema = /* @__PURE__ */ __name((data) => z2.object({
|
|
190
|
+
success: z2.literal(true),
|
|
191
|
+
code: z2.number().int(),
|
|
192
|
+
message: z2.string(),
|
|
193
|
+
data
|
|
194
|
+
}), "ApiSuccessSchema");
|
|
195
|
+
var ApiFailureSchema = z2.object({
|
|
196
|
+
success: z2.literal(false),
|
|
197
|
+
status: z2.number().int(),
|
|
198
|
+
code: z2.string(),
|
|
199
|
+
message: z2.string()
|
|
200
|
+
});
|
|
201
|
+
var ApiResponseSchema = /* @__PURE__ */ __name((data) => z2.union([
|
|
202
|
+
ApiSuccessSchema(data),
|
|
203
|
+
ApiFailureSchema
|
|
204
|
+
]), "ApiResponseSchema");
|
|
205
|
+
var CreatedEntityIdResponseSchema = z2.discriminatedUnion("entity", [
|
|
206
|
+
z2.object({
|
|
207
|
+
entity: z2.literal("article"),
|
|
208
|
+
id: ArticleIdSchema
|
|
209
|
+
}),
|
|
210
|
+
z2.object({
|
|
211
|
+
entity: z2.literal("comment"),
|
|
212
|
+
id: CommentIdSchema
|
|
213
|
+
}),
|
|
214
|
+
z2.object({
|
|
215
|
+
entity: z2.literal("subscription"),
|
|
216
|
+
id: SubscriptionIdSchema
|
|
217
|
+
}),
|
|
218
|
+
z2.object({
|
|
219
|
+
entity: z2.literal("coupon"),
|
|
220
|
+
id: CouponIdSchema
|
|
221
|
+
}),
|
|
222
|
+
z2.object({
|
|
223
|
+
entity: z2.literal("mealPlan"),
|
|
224
|
+
id: MealPlanIdSchema
|
|
225
|
+
}),
|
|
226
|
+
z2.object({
|
|
227
|
+
entity: z2.literal("mealPlanInvite"),
|
|
228
|
+
id: MealPlanInviteIdSchema
|
|
229
|
+
}),
|
|
230
|
+
z2.object({
|
|
231
|
+
entity: z2.literal("mealPlanJoinRequest"),
|
|
232
|
+
id: MealPlanJoinRequestIdSchema
|
|
233
|
+
}),
|
|
234
|
+
z2.object({
|
|
235
|
+
entity: z2.literal("mealPlanChangeRequest"),
|
|
236
|
+
id: MealPlanChangeRequestIdSchema
|
|
237
|
+
}),
|
|
238
|
+
z2.object({
|
|
239
|
+
entity: z2.literal("mealPlanShareLink"),
|
|
240
|
+
id: MealPlanShareLinkIdSchema
|
|
241
|
+
}),
|
|
242
|
+
z2.object({
|
|
243
|
+
entity: z2.literal("mealPlanChatMessage"),
|
|
244
|
+
id: MealPlanChatMessageIdSchema
|
|
245
|
+
}),
|
|
246
|
+
z2.object({
|
|
247
|
+
entity: z2.literal("mealGroup"),
|
|
248
|
+
id: MealGroupIdSchema
|
|
249
|
+
})
|
|
250
|
+
]);
|
|
251
|
+
|
|
252
|
+
// src/domain/common/contracts/endpoint.ts
|
|
253
|
+
import { z as z3 } from "zod";
|
|
254
|
+
var NoBodySchema = z3.undefined();
|
|
255
|
+
var NoQuerySchema = z3.undefined();
|
|
256
|
+
var NoParamsSchema = z3.undefined();
|
|
257
|
+
var endpoint = /* @__PURE__ */ __name((contract) => ({
|
|
258
|
+
method: contract.method,
|
|
259
|
+
path: contract.path,
|
|
260
|
+
pathParams: contract.pathParams ?? NoParamsSchema,
|
|
261
|
+
query: contract.query ?? NoQuerySchema,
|
|
262
|
+
body: contract.body ?? NoBodySchema,
|
|
263
|
+
response: contract.response
|
|
264
|
+
}), "endpoint");
|
|
265
|
+
|
|
266
|
+
// src/domain/common/contracts/api.ts
|
|
267
|
+
var memberIdParam = z4.object({
|
|
268
|
+
memberId: MemberIdSchema
|
|
269
|
+
});
|
|
270
|
+
var articleIdParam = z4.object({
|
|
271
|
+
articleId: ArticleIdSchema
|
|
272
|
+
});
|
|
273
|
+
var commentIdParam = z4.object({
|
|
274
|
+
commentId: CommentIdSchema
|
|
275
|
+
});
|
|
276
|
+
var mealPlanIdParam = z4.object({
|
|
277
|
+
mealPlanId: MealPlanIdSchema
|
|
278
|
+
});
|
|
279
|
+
var mealPlanInviteIdParam = z4.object({
|
|
280
|
+
inviteId: MealPlanInviteIdSchema
|
|
281
|
+
});
|
|
282
|
+
var mealPlanJoinRequestIdParam = z4.object({
|
|
283
|
+
requestId: MealPlanJoinRequestIdSchema
|
|
284
|
+
});
|
|
285
|
+
var mealPlanDecisionStageIdParam = mealPlanIdParam.extend({
|
|
286
|
+
stageId: MealPlanDecisionStageIdSchema
|
|
287
|
+
});
|
|
288
|
+
var mealPlanChangeRequestIdParam = mealPlanIdParam.extend({
|
|
289
|
+
requestId: MealPlanChangeRequestIdSchema
|
|
290
|
+
});
|
|
291
|
+
var mealPlanDecisionTaskKeyParam = mealPlanIdParam.extend({
|
|
292
|
+
taskKey: MealPlanDecisionTaskKeySchema
|
|
293
|
+
});
|
|
294
|
+
var mealPlanDecisionSnapshotIdParam = mealPlanIdParam.extend({
|
|
295
|
+
snapshotId: z4.string().uuid()
|
|
296
|
+
});
|
|
297
|
+
var mealPlanParticipantIdParam = mealPlanIdParam.extend({
|
|
298
|
+
participantId: z4.string().uuid()
|
|
299
|
+
});
|
|
300
|
+
var mealPlanShareTokenParam = z4.object({
|
|
301
|
+
token: MealPlanShareLinkTokenSchema
|
|
302
|
+
});
|
|
303
|
+
var notificationIdParam = z4.object({
|
|
304
|
+
notificationId: z4.string().min(1)
|
|
305
|
+
});
|
|
306
|
+
var couponIdParam = z4.object({
|
|
307
|
+
couponId: CouponIdSchema
|
|
308
|
+
});
|
|
309
|
+
var mealGroupIdParam = z4.object({
|
|
310
|
+
mealGroupId: MealGroupIdSchema
|
|
311
|
+
});
|
|
312
|
+
var mealGroupMemberIdParam = mealGroupIdParam.extend({
|
|
313
|
+
memberId: MemberIdSchema
|
|
314
|
+
});
|
|
315
|
+
var friendRequestIdParam = z4.object({
|
|
316
|
+
requestId: FriendRequestIdSchema
|
|
317
|
+
});
|
|
318
|
+
var sseTokenQuery = z4.object({
|
|
319
|
+
token: z4.string().min(1)
|
|
320
|
+
});
|
|
321
|
+
var apiContract = {
|
|
322
|
+
auth: {
|
|
323
|
+
signup: endpoint({
|
|
324
|
+
method: "POST",
|
|
325
|
+
path: "/auth/signup",
|
|
326
|
+
body: SignupRequestSchema,
|
|
327
|
+
response: SignupResponseSchema
|
|
328
|
+
}),
|
|
329
|
+
login: endpoint({
|
|
330
|
+
method: "POST",
|
|
331
|
+
path: "/auth/login",
|
|
332
|
+
body: LoginRequestSchema,
|
|
333
|
+
response: TokenResponseSchema
|
|
334
|
+
}),
|
|
335
|
+
refresh: endpoint({
|
|
336
|
+
method: "POST",
|
|
337
|
+
path: "/auth/refresh",
|
|
338
|
+
response: TokenResponseSchema
|
|
339
|
+
}),
|
|
340
|
+
logout: endpoint({
|
|
341
|
+
method: "POST",
|
|
342
|
+
path: "/auth/logout",
|
|
343
|
+
response: NoContentSchema
|
|
344
|
+
})
|
|
345
|
+
},
|
|
346
|
+
members: {
|
|
347
|
+
me: endpoint({
|
|
348
|
+
method: "GET",
|
|
349
|
+
path: "/members/me",
|
|
350
|
+
response: MemberResponseSchema
|
|
351
|
+
}),
|
|
352
|
+
myProfile: endpoint({
|
|
353
|
+
method: "GET",
|
|
354
|
+
path: "/members/me/profile",
|
|
355
|
+
response: ProfileDetailResponseSchema
|
|
356
|
+
}),
|
|
357
|
+
search: endpoint({
|
|
358
|
+
method: "GET",
|
|
359
|
+
path: "/members/search",
|
|
360
|
+
query: MemberSearchQuerySchema,
|
|
361
|
+
response: MemberSerachResponseSchema
|
|
362
|
+
}),
|
|
363
|
+
memberProfile: endpoint({
|
|
364
|
+
method: "GET",
|
|
365
|
+
path: "/members/:memberId/profile",
|
|
366
|
+
pathParams: memberIdParam,
|
|
367
|
+
response: ProfileDetailResponseSchema
|
|
368
|
+
}),
|
|
369
|
+
presignProfileImage: endpoint({
|
|
370
|
+
method: "POST",
|
|
371
|
+
path: "/uploads/presign-profile",
|
|
372
|
+
body: UploadProfileImageRequestSchema,
|
|
373
|
+
response: UploadProfileImageResponseSchema
|
|
374
|
+
}),
|
|
375
|
+
createProfile: endpoint({
|
|
376
|
+
method: "POST",
|
|
377
|
+
path: "/members/onboarding",
|
|
378
|
+
body: CreateProfileRequestSchema,
|
|
379
|
+
response: NoContentSchema
|
|
380
|
+
}),
|
|
381
|
+
createProfileAlias: endpoint({
|
|
382
|
+
method: "POST",
|
|
383
|
+
path: "/onboarding",
|
|
384
|
+
body: CreateProfileRequestSchema,
|
|
385
|
+
response: NoContentSchema
|
|
386
|
+
}),
|
|
387
|
+
updateProfile: endpoint({
|
|
388
|
+
method: "PATCH",
|
|
389
|
+
path: "/members/me/profile",
|
|
390
|
+
body: UpdateProfileRequestSchema,
|
|
391
|
+
response: NoContentSchema
|
|
392
|
+
}),
|
|
393
|
+
locationSettings: endpoint({
|
|
394
|
+
method: "GET",
|
|
395
|
+
path: "/members/me/location-settings",
|
|
396
|
+
response: MemberLocationSettingsResponseSchema
|
|
397
|
+
}),
|
|
398
|
+
updateLocationConsent: endpoint({
|
|
399
|
+
method: "PATCH",
|
|
400
|
+
path: "/members/me/location-consent",
|
|
401
|
+
body: UpdateMemberLocationConsentRequestSchema,
|
|
402
|
+
response: MemberLocationSettingsResponseSchema
|
|
403
|
+
}),
|
|
404
|
+
updateLocation: endpoint({
|
|
405
|
+
method: "PATCH",
|
|
406
|
+
path: "/members/me/location",
|
|
407
|
+
body: UpdateMemberLocationRequestSchema,
|
|
408
|
+
response: MemberLocationSettingsResponseSchema
|
|
409
|
+
})
|
|
410
|
+
},
|
|
411
|
+
preferences: {
|
|
412
|
+
my: endpoint({
|
|
413
|
+
method: "GET",
|
|
414
|
+
path: "/preferences/me",
|
|
415
|
+
response: MemberFoodPreferenceSchema
|
|
416
|
+
}),
|
|
417
|
+
update: endpoint({
|
|
418
|
+
method: "PATCH",
|
|
419
|
+
path: "/preferences/me",
|
|
420
|
+
body: UpdatePreferenceRequestSchema,
|
|
421
|
+
response: NoContentSchema
|
|
422
|
+
})
|
|
423
|
+
},
|
|
424
|
+
mealStatus: {
|
|
425
|
+
my: endpoint({
|
|
426
|
+
method: "GET",
|
|
427
|
+
path: "/members/me/meal-status",
|
|
428
|
+
response: MealStatusResponseSchema
|
|
429
|
+
}),
|
|
430
|
+
updateMealStatus: endpoint({
|
|
431
|
+
method: "PATCH",
|
|
432
|
+
path: "/members/me/meal-status",
|
|
433
|
+
body: UpdateMealStatusRequestSchema,
|
|
434
|
+
response: NoContentSchema
|
|
435
|
+
}),
|
|
436
|
+
friendMealStatus: endpoint({
|
|
437
|
+
method: "GET",
|
|
438
|
+
path: "/friends/me/meals",
|
|
439
|
+
query: FriendMealQuerySchema,
|
|
440
|
+
response: z4.array(FriendMealItemResponseSchema)
|
|
441
|
+
})
|
|
442
|
+
},
|
|
443
|
+
articles: {
|
|
444
|
+
list: endpoint({
|
|
445
|
+
method: "GET",
|
|
446
|
+
path: "/articles/home",
|
|
447
|
+
query: ArticleListQuerySchema,
|
|
448
|
+
response: PageArticleSummaryResponseSchema
|
|
449
|
+
}),
|
|
450
|
+
byMember: endpoint({
|
|
451
|
+
method: "GET",
|
|
452
|
+
path: "/articles/by-author/:memberId",
|
|
453
|
+
pathParams: memberIdParam,
|
|
454
|
+
query: ArticleListQuerySchema,
|
|
455
|
+
response: PageArticleSummaryResponseSchema
|
|
456
|
+
}),
|
|
457
|
+
my: endpoint({
|
|
458
|
+
method: "GET",
|
|
459
|
+
path: "/articles/my",
|
|
460
|
+
response: PageArticleSummaryResponseSchema
|
|
461
|
+
}),
|
|
462
|
+
detail: endpoint({
|
|
463
|
+
method: "GET",
|
|
464
|
+
path: "/articles/:articleId",
|
|
465
|
+
pathParams: articleIdParam,
|
|
466
|
+
response: ArticleDetailResponseSchema
|
|
467
|
+
}),
|
|
468
|
+
create: endpoint({
|
|
469
|
+
method: "POST",
|
|
470
|
+
path: "/articles",
|
|
471
|
+
body: CreateArticleRequestSchema,
|
|
472
|
+
response: CreatedEntityIdResponseSchema
|
|
473
|
+
}),
|
|
474
|
+
like: endpoint({
|
|
475
|
+
method: "POST",
|
|
476
|
+
path: "/articles/:articleId/like",
|
|
477
|
+
pathParams: articleIdParam,
|
|
478
|
+
response: ArticleLikeResponseSchema
|
|
479
|
+
}),
|
|
480
|
+
createComment: endpoint({
|
|
481
|
+
method: "POST",
|
|
482
|
+
path: "/articles/:articleId/comments",
|
|
483
|
+
pathParams: articleIdParam,
|
|
484
|
+
body: CreateCommentRequestSchema,
|
|
485
|
+
response: CreatedEntityIdResponseSchema
|
|
486
|
+
}),
|
|
487
|
+
presignArticleImage: endpoint({
|
|
488
|
+
method: "POST",
|
|
489
|
+
path: "/uploads/presign-article",
|
|
490
|
+
body: UploadArticleImageRequestSchema,
|
|
491
|
+
response: UploadArticleImageResponseSchema
|
|
492
|
+
}),
|
|
493
|
+
delete: endpoint({
|
|
494
|
+
method: "DELETE",
|
|
495
|
+
path: "/articles/:articleId",
|
|
496
|
+
pathParams: articleIdParam,
|
|
497
|
+
response: NoContentSchema
|
|
498
|
+
}),
|
|
499
|
+
deleteComment: endpoint({
|
|
500
|
+
method: "DELETE",
|
|
501
|
+
path: "/articles/comments/:commentId",
|
|
502
|
+
pathParams: commentIdParam,
|
|
503
|
+
response: NoContentSchema
|
|
504
|
+
})
|
|
505
|
+
},
|
|
506
|
+
mealPlans: {
|
|
507
|
+
create: endpoint({
|
|
508
|
+
method: "POST",
|
|
509
|
+
path: "/meal-plans",
|
|
510
|
+
body: CreateMealPlanRequestSchema,
|
|
511
|
+
response: CreateMealPlanResponseSchema
|
|
512
|
+
}),
|
|
513
|
+
my: endpoint({
|
|
514
|
+
method: "GET",
|
|
515
|
+
path: "/meal-plans/me",
|
|
516
|
+
response: MyMealPlanListResponseSchema
|
|
517
|
+
}),
|
|
518
|
+
homeDashboard: endpoint({
|
|
519
|
+
method: "GET",
|
|
520
|
+
path: "/meal-plans/home-dashboard",
|
|
521
|
+
response: HomeMealPlanDashboardResponseSchema
|
|
522
|
+
}),
|
|
523
|
+
map: endpoint({
|
|
524
|
+
method: "GET",
|
|
525
|
+
path: "/meal-plans/map",
|
|
526
|
+
query: MealMapQuerySchema,
|
|
527
|
+
response: MealMapResponseSchema
|
|
528
|
+
}),
|
|
529
|
+
detail: endpoint({
|
|
530
|
+
method: "GET",
|
|
531
|
+
path: "/meal-plans/:mealPlanId",
|
|
532
|
+
pathParams: mealPlanIdParam,
|
|
533
|
+
response: MealPlanResponseSchema
|
|
534
|
+
}),
|
|
535
|
+
chatMessages: endpoint({
|
|
536
|
+
method: "GET",
|
|
537
|
+
path: "/meal-plans/:mealPlanId/chat/messages",
|
|
538
|
+
pathParams: mealPlanIdParam,
|
|
539
|
+
response: MealPlanChatMessageListResponseSchema
|
|
540
|
+
}),
|
|
541
|
+
updateContext: endpoint({
|
|
542
|
+
method: "PATCH",
|
|
543
|
+
path: "/meal-plans/:mealPlanId/context",
|
|
544
|
+
pathParams: mealPlanIdParam,
|
|
545
|
+
body: UpdateMealPlanContextRequestSchema,
|
|
546
|
+
response: MealPlanResponseSchema
|
|
547
|
+
}),
|
|
548
|
+
complete: endpoint({
|
|
549
|
+
method: "POST",
|
|
550
|
+
path: "/meal-plans/:mealPlanId/complete",
|
|
551
|
+
pathParams: mealPlanIdParam,
|
|
552
|
+
response: MealPlanResponseSchema
|
|
553
|
+
}),
|
|
554
|
+
cancel: endpoint({
|
|
555
|
+
method: "POST",
|
|
556
|
+
path: "/meal-plans/:mealPlanId/cancel",
|
|
557
|
+
pathParams: mealPlanIdParam,
|
|
558
|
+
response: MealPlanResponseSchema
|
|
559
|
+
}),
|
|
560
|
+
removeParticipant: endpoint({
|
|
561
|
+
method: "POST",
|
|
562
|
+
path: "/meal-plans/:mealPlanId/participants/:participantId/remove",
|
|
563
|
+
pathParams: mealPlanParticipantIdParam,
|
|
564
|
+
response: MealPlanResponseSchema
|
|
565
|
+
}),
|
|
566
|
+
recorded: endpoint({
|
|
567
|
+
method: "POST",
|
|
568
|
+
path: "/meal-plans/:mealPlanId/recorded",
|
|
569
|
+
pathParams: mealPlanIdParam,
|
|
570
|
+
response: MealPlanResponseSchema
|
|
571
|
+
}),
|
|
572
|
+
invite: endpoint({
|
|
573
|
+
method: "POST",
|
|
574
|
+
path: "/meal-plans/:mealPlanId/invites",
|
|
575
|
+
pathParams: mealPlanIdParam,
|
|
576
|
+
body: CreateMealPlanInviteRequestSchema,
|
|
577
|
+
response: SendMealPlanInviteResponseSchema
|
|
578
|
+
}),
|
|
579
|
+
receivedInvites: endpoint({
|
|
580
|
+
method: "GET",
|
|
581
|
+
path: "/meal-plans/invites/received",
|
|
582
|
+
response: MealPlanInviteListResponseSchema
|
|
583
|
+
}),
|
|
584
|
+
sentInvites: endpoint({
|
|
585
|
+
method: "GET",
|
|
586
|
+
path: "/meal-plans/invites/sent",
|
|
587
|
+
response: MealPlanInviteListResponseSchema
|
|
588
|
+
}),
|
|
589
|
+
acceptInvite: endpoint({
|
|
590
|
+
method: "POST",
|
|
591
|
+
path: "/meal-plans/invites/:inviteId/accept",
|
|
592
|
+
pathParams: mealPlanInviteIdParam,
|
|
593
|
+
response: MealPlanResponseSchema
|
|
594
|
+
}),
|
|
595
|
+
declineInvite: endpoint({
|
|
596
|
+
method: "POST",
|
|
597
|
+
path: "/meal-plans/invites/:inviteId/decline",
|
|
598
|
+
pathParams: mealPlanInviteIdParam,
|
|
599
|
+
response: NoContentSchema
|
|
600
|
+
}),
|
|
601
|
+
createShareLink: endpoint({
|
|
602
|
+
method: "POST",
|
|
603
|
+
path: "/meal-plans/:mealPlanId/share-links",
|
|
604
|
+
pathParams: mealPlanIdParam,
|
|
605
|
+
body: CreateMealPlanShareLinkRequestSchema,
|
|
606
|
+
response: MealPlanShareLinkSummarySchema
|
|
607
|
+
}),
|
|
608
|
+
sharePreview: endpoint({
|
|
609
|
+
method: "GET",
|
|
610
|
+
path: "/meal-plan-links/:token",
|
|
611
|
+
pathParams: mealPlanShareTokenParam,
|
|
612
|
+
response: MealPlanSharePreviewResponseSchema
|
|
613
|
+
}),
|
|
614
|
+
joinGuest: endpoint({
|
|
615
|
+
method: "POST",
|
|
616
|
+
path: "/meal-plan-links/:token/join",
|
|
617
|
+
pathParams: mealPlanShareTokenParam,
|
|
618
|
+
body: JoinMealPlanGuestRequestSchema,
|
|
619
|
+
response: JoinMealPlanGuestResponseSchema
|
|
620
|
+
}),
|
|
621
|
+
guestSession: endpoint({
|
|
622
|
+
method: "GET",
|
|
623
|
+
path: "/meal-plan-links/:token/session",
|
|
624
|
+
pathParams: mealPlanShareTokenParam,
|
|
625
|
+
query: MealPlanGuestSessionQuerySchema,
|
|
626
|
+
response: MealPlanGuestSessionResponseSchema
|
|
627
|
+
}),
|
|
628
|
+
guestChatMessages: endpoint({
|
|
629
|
+
method: "GET",
|
|
630
|
+
path: "/meal-plan-links/:token/chat/messages",
|
|
631
|
+
pathParams: mealPlanShareTokenParam,
|
|
632
|
+
query: MealPlanGuestSessionQuerySchema,
|
|
633
|
+
response: MealPlanChatMessageListResponseSchema
|
|
634
|
+
}),
|
|
635
|
+
exposeNearbyFriends: endpoint({
|
|
636
|
+
method: "POST",
|
|
637
|
+
path: "/meal-plans/:mealPlanId/nearby-friends/expose",
|
|
638
|
+
pathParams: mealPlanIdParam,
|
|
639
|
+
body: ExposeMealPlanToNearbyFriendsRequestSchema,
|
|
640
|
+
response: ExposeMealPlanToNearbyFriendsResponseSchema
|
|
641
|
+
}),
|
|
642
|
+
closeNearbyFriends: endpoint({
|
|
643
|
+
method: "DELETE",
|
|
644
|
+
path: "/meal-plans/:mealPlanId/nearby-friends/expose",
|
|
645
|
+
pathParams: mealPlanIdParam,
|
|
646
|
+
response: NoContentSchema
|
|
647
|
+
}),
|
|
648
|
+
nearbyFriendExposureEligibility: endpoint({
|
|
649
|
+
method: "GET",
|
|
650
|
+
path: "/meal-plans/nearby-friends/eligibility",
|
|
651
|
+
response: NearbyFriendExposureEligibilitySchema
|
|
652
|
+
}),
|
|
653
|
+
nearbyFriends: endpoint({
|
|
654
|
+
method: "GET",
|
|
655
|
+
path: "/meal-plans/nearby-friends",
|
|
656
|
+
response: z4.array(NearbyFriendMealPlanSummarySchema)
|
|
657
|
+
}),
|
|
658
|
+
requestJoin: endpoint({
|
|
659
|
+
method: "POST",
|
|
660
|
+
path: "/meal-plans/:mealPlanId/join-requests",
|
|
661
|
+
pathParams: mealPlanIdParam,
|
|
662
|
+
body: CreateMealPlanJoinRequestSchema,
|
|
663
|
+
response: CreatedEntityIdResponseSchema
|
|
664
|
+
}),
|
|
665
|
+
acceptJoinRequest: endpoint({
|
|
666
|
+
method: "POST",
|
|
667
|
+
path: "/meal-plans/join-requests/:requestId/accept",
|
|
668
|
+
pathParams: mealPlanJoinRequestIdParam,
|
|
669
|
+
response: MealPlanResponseSchema
|
|
670
|
+
}),
|
|
671
|
+
rejectJoinRequest: endpoint({
|
|
672
|
+
method: "POST",
|
|
673
|
+
path: "/meal-plans/join-requests/:requestId/reject",
|
|
674
|
+
pathParams: mealPlanJoinRequestIdParam,
|
|
675
|
+
response: NoContentSchema
|
|
676
|
+
}),
|
|
677
|
+
vote: endpoint({
|
|
678
|
+
method: "POST",
|
|
679
|
+
path: "/meal-plans/:mealPlanId/stages/:stageId/votes",
|
|
680
|
+
pathParams: mealPlanDecisionStageIdParam,
|
|
681
|
+
body: CreateMealPlanVoteRequestSchema,
|
|
682
|
+
response: MealPlanResponseSchema
|
|
683
|
+
}),
|
|
684
|
+
completeStage: endpoint({
|
|
685
|
+
method: "POST",
|
|
686
|
+
path: "/meal-plans/:mealPlanId/stages/:stageId/complete",
|
|
687
|
+
pathParams: mealPlanDecisionStageIdParam,
|
|
688
|
+
body: CompleteMealPlanDecisionStageRequestSchema,
|
|
689
|
+
response: MealPlanResponseSchema
|
|
690
|
+
}),
|
|
691
|
+
decisionProgress: endpoint({
|
|
692
|
+
method: "GET",
|
|
693
|
+
path: "/meal-plans/:mealPlanId/decision-progress",
|
|
694
|
+
pathParams: mealPlanIdParam,
|
|
695
|
+
response: MealPlanDecisionProgressSchema
|
|
696
|
+
}),
|
|
697
|
+
readyDecisionTask: endpoint({
|
|
698
|
+
method: "POST",
|
|
699
|
+
path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/ready",
|
|
700
|
+
pathParams: mealPlanDecisionTaskKeyParam,
|
|
701
|
+
body: MealPlanDecisionTaskReadyRequestSchema,
|
|
702
|
+
response: MealPlanResponseSchema
|
|
703
|
+
}),
|
|
704
|
+
reopenDecisionTask: endpoint({
|
|
705
|
+
method: "POST",
|
|
706
|
+
path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen",
|
|
707
|
+
pathParams: mealPlanDecisionTaskKeyParam,
|
|
708
|
+
body: ReopenMealPlanDecisionTaskRequestSchema,
|
|
709
|
+
response: MealPlanResponseSchema
|
|
710
|
+
}),
|
|
711
|
+
confirmDecisionSnapshot: endpoint({
|
|
712
|
+
method: "POST",
|
|
713
|
+
path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm",
|
|
714
|
+
pathParams: mealPlanDecisionSnapshotIdParam,
|
|
715
|
+
body: ConfirmMealPlanDecisionSnapshotRequestSchema,
|
|
716
|
+
response: MealPlanResponseSchema
|
|
717
|
+
}),
|
|
718
|
+
ready: endpoint({
|
|
719
|
+
method: "POST",
|
|
720
|
+
path: "/meal-plans/:mealPlanId/ready",
|
|
721
|
+
pathParams: mealPlanIdParam,
|
|
722
|
+
response: MealPlanResponseSchema
|
|
723
|
+
}),
|
|
724
|
+
unready: endpoint({
|
|
725
|
+
method: "POST",
|
|
726
|
+
path: "/meal-plans/:mealPlanId/unready",
|
|
727
|
+
pathParams: mealPlanIdParam,
|
|
728
|
+
response: MealPlanResponseSchema
|
|
729
|
+
}),
|
|
730
|
+
createChangeRequest: endpoint({
|
|
731
|
+
method: "POST",
|
|
732
|
+
path: "/meal-plans/:mealPlanId/change-requests",
|
|
733
|
+
pathParams: mealPlanIdParam,
|
|
734
|
+
body: CreateMealPlanChangeRequestSchema,
|
|
735
|
+
response: CreatedEntityIdResponseSchema
|
|
736
|
+
}),
|
|
737
|
+
acceptChangeRequest: endpoint({
|
|
738
|
+
method: "POST",
|
|
739
|
+
path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept",
|
|
740
|
+
pathParams: mealPlanChangeRequestIdParam,
|
|
741
|
+
response: MealPlanResponseSchema
|
|
742
|
+
}),
|
|
743
|
+
confirm: endpoint({
|
|
744
|
+
method: "POST",
|
|
745
|
+
path: "/meal-plans/:mealPlanId/confirm",
|
|
746
|
+
pathParams: mealPlanIdParam,
|
|
747
|
+
response: MealPlanResponseSchema
|
|
748
|
+
})
|
|
749
|
+
},
|
|
750
|
+
mealGroups: {
|
|
751
|
+
create: endpoint({
|
|
752
|
+
method: "POST",
|
|
753
|
+
path: "/meal-groups",
|
|
754
|
+
body: CreateMealGroupRequestSchema,
|
|
755
|
+
response: MealGroupResponseSchema
|
|
756
|
+
}),
|
|
757
|
+
list: endpoint({
|
|
758
|
+
method: "GET",
|
|
759
|
+
path: "/meal-groups",
|
|
760
|
+
response: z4.array(MealGroupResponseSchema)
|
|
761
|
+
}),
|
|
762
|
+
detail: endpoint({
|
|
763
|
+
method: "GET",
|
|
764
|
+
path: "/meal-groups/:mealGroupId",
|
|
765
|
+
pathParams: mealGroupIdParam,
|
|
766
|
+
response: MealGroupResponseSchema
|
|
767
|
+
}),
|
|
768
|
+
startMealPlan: endpoint({
|
|
769
|
+
method: "POST",
|
|
770
|
+
path: "/meal-groups/:mealGroupId/meal-plans",
|
|
771
|
+
pathParams: mealGroupIdParam,
|
|
772
|
+
body: StartMealPlanFromGroupRequestSchema,
|
|
773
|
+
response: CreateMealPlanResponseSchema
|
|
774
|
+
}),
|
|
775
|
+
history: endpoint({
|
|
776
|
+
method: "GET",
|
|
777
|
+
path: "/meal-groups/:mealGroupId/history",
|
|
778
|
+
pathParams: mealGroupIdParam,
|
|
779
|
+
response: MealGroupHistoryResponseSchema
|
|
780
|
+
}),
|
|
781
|
+
preferences: endpoint({
|
|
782
|
+
method: "GET",
|
|
783
|
+
path: "/meal-groups/:mealGroupId/preferences",
|
|
784
|
+
pathParams: mealGroupIdParam,
|
|
785
|
+
response: MealGroupPreferenceSummarySchema
|
|
786
|
+
}),
|
|
787
|
+
addMember: endpoint({
|
|
788
|
+
method: "POST",
|
|
789
|
+
path: "/meal-groups/:mealGroupId/members",
|
|
790
|
+
pathParams: mealGroupIdParam,
|
|
791
|
+
body: AddMealGroupMemberRequestSchema,
|
|
792
|
+
response: MealGroupResponseSchema
|
|
793
|
+
}),
|
|
794
|
+
updateMemberRole: endpoint({
|
|
795
|
+
method: "PATCH",
|
|
796
|
+
path: "/meal-groups/:mealGroupId/members/:memberId/role",
|
|
797
|
+
pathParams: mealGroupMemberIdParam,
|
|
798
|
+
body: UpdateMealGroupMemberRoleRequestSchema,
|
|
799
|
+
response: MealGroupResponseSchema
|
|
800
|
+
}),
|
|
801
|
+
removeMember: endpoint({
|
|
802
|
+
method: "DELETE",
|
|
803
|
+
path: "/meal-groups/:mealGroupId/members/:memberId",
|
|
804
|
+
pathParams: mealGroupMemberIdParam,
|
|
805
|
+
response: MealGroupResponseSchema
|
|
806
|
+
})
|
|
807
|
+
},
|
|
808
|
+
friends: {
|
|
809
|
+
list: endpoint({
|
|
810
|
+
method: "GET",
|
|
811
|
+
path: "/friends",
|
|
812
|
+
response: z4.array(FriendListItemResponseSchema)
|
|
813
|
+
}),
|
|
814
|
+
blockList: endpoint({
|
|
815
|
+
method: "GET",
|
|
816
|
+
path: "/friends/blocks",
|
|
817
|
+
response: z4.array(FriendBlockItemResponseSchema)
|
|
818
|
+
}),
|
|
819
|
+
search: endpoint({
|
|
820
|
+
method: "GET",
|
|
821
|
+
path: "/friends/search",
|
|
822
|
+
query: MemberSearchQuerySchema,
|
|
823
|
+
response: MemberSerachResponseSchema
|
|
824
|
+
}),
|
|
825
|
+
incomingRequest: endpoint({
|
|
826
|
+
method: "GET",
|
|
827
|
+
path: "/friends/requests/incoming",
|
|
828
|
+
response: z4.array(FriendRequestItemResponseSchema)
|
|
829
|
+
}),
|
|
830
|
+
outgoingRequest: endpoint({
|
|
831
|
+
method: "GET",
|
|
832
|
+
path: "/friends/requests/outgoing",
|
|
833
|
+
response: z4.array(FriendRequestItemResponseSchema)
|
|
834
|
+
}),
|
|
835
|
+
sendRequest: endpoint({
|
|
836
|
+
method: "POST",
|
|
837
|
+
path: "/friends/requests/:memberId",
|
|
838
|
+
pathParams: memberIdParam,
|
|
839
|
+
response: NoContentSchema
|
|
840
|
+
}),
|
|
841
|
+
acceptRequest: endpoint({
|
|
842
|
+
method: "POST",
|
|
843
|
+
path: "/friends/requests/:requestId/accept",
|
|
844
|
+
pathParams: friendRequestIdParam,
|
|
845
|
+
response: NoContentSchema
|
|
846
|
+
}),
|
|
847
|
+
rejectRequest: endpoint({
|
|
848
|
+
method: "POST",
|
|
849
|
+
path: "/friends/requests/:requestId/reject",
|
|
850
|
+
pathParams: friendRequestIdParam,
|
|
851
|
+
response: NoContentSchema
|
|
852
|
+
}),
|
|
853
|
+
block: endpoint({
|
|
854
|
+
method: "POST",
|
|
855
|
+
path: "/friends/blocks/:memberId",
|
|
856
|
+
pathParams: memberIdParam,
|
|
857
|
+
response: NoContentSchema
|
|
858
|
+
}),
|
|
859
|
+
cancelRequest: endpoint({
|
|
860
|
+
method: "DELETE",
|
|
861
|
+
path: "/friends/requests/:requestId",
|
|
862
|
+
pathParams: friendRequestIdParam,
|
|
863
|
+
response: NoContentSchema
|
|
864
|
+
}),
|
|
865
|
+
unblock: endpoint({
|
|
866
|
+
method: "DELETE",
|
|
867
|
+
path: "/friends/blocks/:memberId",
|
|
868
|
+
pathParams: memberIdParam,
|
|
869
|
+
response: NoContentSchema
|
|
870
|
+
}),
|
|
871
|
+
unfriend: endpoint({
|
|
872
|
+
method: "DELETE",
|
|
873
|
+
path: "/friends/:memberId",
|
|
874
|
+
pathParams: memberIdParam,
|
|
875
|
+
response: NoContentSchema
|
|
876
|
+
})
|
|
877
|
+
},
|
|
878
|
+
coupons: {
|
|
879
|
+
list: endpoint({
|
|
880
|
+
method: "GET",
|
|
881
|
+
path: "/coupons",
|
|
882
|
+
response: z4.array(CouponResponseSchema)
|
|
883
|
+
}),
|
|
884
|
+
use: endpoint({
|
|
885
|
+
method: "POST",
|
|
886
|
+
path: "/coupons/:couponId/use",
|
|
887
|
+
pathParams: couponIdParam,
|
|
888
|
+
response: NoContentSchema
|
|
889
|
+
})
|
|
890
|
+
},
|
|
891
|
+
challenges: {
|
|
892
|
+
status: endpoint({
|
|
893
|
+
method: "GET",
|
|
894
|
+
path: "/challenges/status",
|
|
895
|
+
response: ChallengeStatusResponseSchema
|
|
896
|
+
}),
|
|
897
|
+
claimReward: endpoint({
|
|
898
|
+
method: "POST",
|
|
899
|
+
path: "/challenges/rewards",
|
|
900
|
+
body: ClaimChallengeRewardRequestSchema,
|
|
901
|
+
response: NoContentSchema
|
|
902
|
+
})
|
|
903
|
+
},
|
|
904
|
+
referrals: {
|
|
905
|
+
list: endpoint({
|
|
906
|
+
method: "GET",
|
|
907
|
+
path: "/referrals",
|
|
908
|
+
response: z4.array(ReferralItemResponseSchema)
|
|
909
|
+
}),
|
|
910
|
+
create: endpoint({
|
|
911
|
+
method: "POST",
|
|
912
|
+
path: "/referrals",
|
|
913
|
+
response: ReferralCreateResponseSchema
|
|
914
|
+
}),
|
|
915
|
+
redeem: endpoint({
|
|
916
|
+
method: "POST",
|
|
917
|
+
path: "/referrals/redeem",
|
|
918
|
+
body: RedeemReferralRequestSchema,
|
|
919
|
+
response: NoContentSchema
|
|
920
|
+
})
|
|
921
|
+
},
|
|
922
|
+
notifications: {
|
|
923
|
+
list: endpoint({
|
|
924
|
+
method: "GET",
|
|
925
|
+
path: "/notifications",
|
|
926
|
+
response: z4.array(MealPlanNotificationSchema)
|
|
927
|
+
}),
|
|
928
|
+
markRead: endpoint({
|
|
929
|
+
method: "PATCH",
|
|
930
|
+
path: "/notifications/:notificationId/read",
|
|
931
|
+
pathParams: notificationIdParam,
|
|
932
|
+
response: MealPlanNotificationSchema
|
|
933
|
+
}),
|
|
934
|
+
delete: endpoint({
|
|
935
|
+
method: "DELETE",
|
|
936
|
+
path: "/notifications/:notificationId",
|
|
937
|
+
pathParams: notificationIdParam,
|
|
938
|
+
response: NoContentSchema
|
|
939
|
+
})
|
|
940
|
+
},
|
|
941
|
+
pushTokens: {
|
|
942
|
+
list: endpoint({
|
|
943
|
+
method: "GET",
|
|
944
|
+
path: "/push-tokens",
|
|
945
|
+
response: z4.array(PushTokenResponseSchema)
|
|
946
|
+
}),
|
|
947
|
+
register: endpoint({
|
|
948
|
+
method: "POST",
|
|
949
|
+
path: "/push-tokens",
|
|
950
|
+
body: RegisterPushTokenRequestSchema,
|
|
951
|
+
response: PushTokenResponseSchema
|
|
952
|
+
}),
|
|
953
|
+
revoke: endpoint({
|
|
954
|
+
method: "POST",
|
|
955
|
+
path: "/push-tokens/revoke",
|
|
956
|
+
body: RevokePushTokenRequestSchema,
|
|
957
|
+
response: NoContentSchema
|
|
958
|
+
})
|
|
959
|
+
},
|
|
960
|
+
liveActivities: {
|
|
961
|
+
listMealPlanSessions: endpoint({
|
|
962
|
+
method: "GET",
|
|
963
|
+
path: "/meal-plans/:mealPlanId/live-activity",
|
|
964
|
+
pathParams: mealPlanIdParam,
|
|
965
|
+
response: MealPlanLiveActivitySessionListResponseSchema
|
|
966
|
+
}),
|
|
967
|
+
registerMealPlanSession: endpoint({
|
|
968
|
+
method: "POST",
|
|
969
|
+
path: "/meal-plans/:mealPlanId/live-activity/sessions",
|
|
970
|
+
pathParams: mealPlanIdParam,
|
|
971
|
+
body: RegisterMealPlanLiveActivitySessionRequestSchema,
|
|
972
|
+
response: MealPlanLiveActivitySessionResponseSchema
|
|
973
|
+
}),
|
|
974
|
+
endMealPlanSessions: endpoint({
|
|
975
|
+
method: "POST",
|
|
976
|
+
path: "/meal-plans/:mealPlanId/live-activity/end",
|
|
977
|
+
pathParams: mealPlanIdParam,
|
|
978
|
+
body: EndMealPlanLiveActivitySessionRequestSchema,
|
|
979
|
+
response: NoContentSchema
|
|
980
|
+
})
|
|
981
|
+
},
|
|
982
|
+
sse: {
|
|
983
|
+
notifications: endpoint({
|
|
984
|
+
method: "GET",
|
|
985
|
+
path: "/sse/notifications",
|
|
986
|
+
query: sseTokenQuery,
|
|
987
|
+
response: z4.any()
|
|
988
|
+
})
|
|
989
|
+
},
|
|
990
|
+
health: {
|
|
991
|
+
healthCheck: endpoint({
|
|
992
|
+
method: "GET",
|
|
993
|
+
path: "/",
|
|
994
|
+
response: z4.string()
|
|
995
|
+
})
|
|
996
|
+
}
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
// src/domain/common/contracts/cache-invalidation.ts
|
|
1000
|
+
var CACHE_INVALIDATION_SSE_EVENT = "cache-invalidate";
|
|
1001
|
+
|
|
1002
|
+
// src/domain/common/contracts/envelope.ts
|
|
1003
|
+
var makeApiResponseSchema = ApiResponseSchema;
|
|
1004
|
+
var makeApiSuccessSchema = ApiSuccessSchema;
|
|
1005
|
+
|
|
1006
|
+
// src/domain/common/contracts/id.ts
|
|
1007
|
+
var toMemberId = /* @__PURE__ */ __name((value) => MemberIdSchema.parse(value), "toMemberId");
|
|
1008
|
+
var toArticleId = /* @__PURE__ */ __name((value) => ArticleIdSchema.parse(value), "toArticleId");
|
|
1009
|
+
var toMealPlanId = /* @__PURE__ */ __name((value) => MealPlanIdSchema.parse(value), "toMealPlanId");
|
|
1010
|
+
var toMealPlanInviteId = /* @__PURE__ */ __name((value) => MealPlanInviteIdSchema.parse(value), "toMealPlanInviteId");
|
|
1011
|
+
var toMealPlanJoinRequestId = /* @__PURE__ */ __name((value) => MealPlanJoinRequestIdSchema.parse(value), "toMealPlanJoinRequestId");
|
|
1012
|
+
var toMealPlanNearbyFriendExposureBatchId = /* @__PURE__ */ __name((value) => MealPlanNearbyFriendExposureBatchIdSchema.parse(value), "toMealPlanNearbyFriendExposureBatchId");
|
|
1013
|
+
var toMealPlanChangeRequestId = /* @__PURE__ */ __name((value) => MealPlanChangeRequestIdSchema.parse(value), "toMealPlanChangeRequestId");
|
|
1014
|
+
var toMealPlanShareLinkId = /* @__PURE__ */ __name((value) => MealPlanShareLinkIdSchema.parse(value), "toMealPlanShareLinkId");
|
|
1015
|
+
var toMealPlanShareLinkToken = /* @__PURE__ */ __name((value) => MealPlanShareLinkTokenSchema.parse(value), "toMealPlanShareLinkToken");
|
|
1016
|
+
var toMealPlanChatRoomId = /* @__PURE__ */ __name((value) => MealPlanChatRoomIdSchema.parse(value), "toMealPlanChatRoomId");
|
|
1017
|
+
var toMealPlanChatMessageId = /* @__PURE__ */ __name((value) => MealPlanChatMessageIdSchema.parse(value), "toMealPlanChatMessageId");
|
|
1018
|
+
var toMealGroupId = /* @__PURE__ */ __name((value) => MealGroupIdSchema.parse(value), "toMealGroupId");
|
|
1019
|
+
var toRestaurantId = /* @__PURE__ */ __name((value) => RestaurantIdSchema.parse(value), "toRestaurantId");
|
|
1020
|
+
var toCommentId = /* @__PURE__ */ __name((value) => CommentIdSchema.parse(value), "toCommentId");
|
|
1021
|
+
var toCouponId = /* @__PURE__ */ __name((value) => CouponIdSchema.parse(value), "toCouponId");
|
|
1022
|
+
var toSubscriptionId = /* @__PURE__ */ __name((value) => SubscriptionIdSchema.parse(value), "toSubscriptionId");
|
|
1023
|
+
var toFriendRequestId = /* @__PURE__ */ __name((value) => FriendRequestIdSchema.parse(value), "toFriendRequestId");
|
|
1024
|
+
var toReferralCode = /* @__PURE__ */ __name((value) => ReferralCodeSchema.parse(value), "toReferralCode");
|
|
1025
|
+
|
|
1026
|
+
export {
|
|
1027
|
+
CacheInvalidationEntitySchema,
|
|
1028
|
+
CacheInvalidationActionSchema,
|
|
1029
|
+
CacheInvalidationKeySchema,
|
|
1030
|
+
CacheInvalidationEventSchema,
|
|
1031
|
+
NoContentSchema,
|
|
1032
|
+
ApiSuccessSchema,
|
|
1033
|
+
ApiFailureSchema,
|
|
1034
|
+
ApiResponseSchema,
|
|
1035
|
+
CreatedEntityIdResponseSchema,
|
|
1036
|
+
NoBodySchema,
|
|
1037
|
+
NoQuerySchema,
|
|
1038
|
+
NoParamsSchema,
|
|
1039
|
+
endpoint,
|
|
1040
|
+
apiContract,
|
|
1041
|
+
CACHE_INVALIDATION_SSE_EVENT,
|
|
1042
|
+
makeApiResponseSchema,
|
|
1043
|
+
makeApiSuccessSchema,
|
|
1044
|
+
toMemberId,
|
|
1045
|
+
toArticleId,
|
|
1046
|
+
toMealPlanId,
|
|
1047
|
+
toMealPlanInviteId,
|
|
1048
|
+
toMealPlanJoinRequestId,
|
|
1049
|
+
toMealPlanNearbyFriendExposureBatchId,
|
|
1050
|
+
toMealPlanChangeRequestId,
|
|
1051
|
+
toMealPlanShareLinkId,
|
|
1052
|
+
toMealPlanShareLinkToken,
|
|
1053
|
+
toMealPlanChatRoomId,
|
|
1054
|
+
toMealPlanChatMessageId,
|
|
1055
|
+
toMealGroupId,
|
|
1056
|
+
toRestaurantId,
|
|
1057
|
+
toCommentId,
|
|
1058
|
+
toCouponId,
|
|
1059
|
+
toSubscriptionId,
|
|
1060
|
+
toFriendRequestId,
|
|
1061
|
+
toReferralCode
|
|
1062
|
+
};
|