@kimdaegyu/babmukdang-shared 1.1.11 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/chunk-3TY6OPD3.js +91 -0
  2. package/dist/{chunk-W4C7XHTX.js → chunk-6O2YTBVC.js} +3 -3
  3. package/dist/{chunk-GTVEQYJW.js → chunk-7JYVBXKQ.js} +1 -1
  4. package/dist/chunk-7UZD4LBQ.js +459 -0
  5. package/dist/chunk-BSJC7OVV.js +10 -0
  6. package/dist/chunk-C63TN7L3.js +148 -0
  7. package/dist/chunk-CGFW5LYV.js +143 -0
  8. package/dist/chunk-GOOH2LGN.js +829 -0
  9. package/dist/chunk-LEH6UFL7.js +314 -0
  10. package/dist/{chunk-K3CZKI2F.js → chunk-NENVUHL5.js} +11 -8
  11. package/dist/chunk-OPMBGBYS.js +632 -0
  12. package/dist/{chunk-OJVXYCSH.js → chunk-QFPVAJ2U.js} +1 -1
  13. package/dist/{chunk-AI2YMBJX.js → chunk-RZPNVRRS.js} +5 -5
  14. package/dist/{chunk-4E5E3PFW.js → chunk-VD3VGLBQ.js} +13 -5
  15. package/dist/chunk-WYBFBLQC.js +111 -0
  16. package/dist/{chunk-H77ISYYC.js → chunk-XMRYAG3V.js} +20 -8
  17. package/dist/domain/article/index.cjs +71 -7
  18. package/dist/domain/article/index.d.cts +79 -796
  19. package/dist/domain/article/index.d.ts +79 -796
  20. package/dist/domain/article/index.js +4 -4
  21. package/dist/domain/auth/index.cjs +68 -6
  22. package/dist/domain/auth/index.d.cts +6 -46
  23. package/dist/domain/auth/index.d.ts +6 -46
  24. package/dist/domain/auth/index.js +3 -3
  25. package/dist/domain/common/index.cjs +1438 -330
  26. package/dist/domain/common/index.d.cts +212 -3037
  27. package/dist/domain/common/index.d.ts +212 -3037
  28. package/dist/domain/common/index.js +65 -30
  29. package/dist/domain/food/index.cjs +225 -0
  30. package/dist/domain/food/index.d.cts +321 -0
  31. package/dist/domain/food/index.d.ts +321 -0
  32. package/dist/domain/food/index.js +46 -0
  33. package/dist/domain/friend/index.cjs +78 -7
  34. package/dist/domain/friend/index.d.cts +39 -98
  35. package/dist/domain/friend/index.d.ts +39 -98
  36. package/dist/domain/friend/index.js +5 -3
  37. package/dist/domain/index.cjs +1930 -456
  38. package/dist/domain/index.d.cts +382 -123
  39. package/dist/domain/index.d.ts +382 -123
  40. package/dist/domain/index.js +429 -140
  41. package/dist/domain/live-activity/index.cjs +1112 -0
  42. package/dist/domain/live-activity/index.d.cts +177 -0
  43. package/dist/domain/live-activity/index.d.ts +177 -0
  44. package/dist/domain/live-activity/index.js +28 -0
  45. package/dist/domain/meal/index.cjs +68 -6
  46. package/dist/domain/meal/index.d.cts +21 -40
  47. package/dist/domain/meal/index.d.ts +21 -40
  48. package/dist/domain/meal/index.js +4 -4
  49. package/dist/domain/meal-plan/index.cjs +1540 -0
  50. package/dist/domain/meal-plan/index.d.cts +4523 -0
  51. package/dist/domain/meal-plan/index.d.ts +4523 -0
  52. package/dist/domain/meal-plan/index.js +255 -0
  53. package/dist/domain/member/index.cjs +94 -6
  54. package/dist/domain/member/index.d.cts +263 -273
  55. package/dist/domain/member/index.d.ts +263 -273
  56. package/dist/domain/member/index.js +26 -2
  57. package/dist/domain/promotion/index.cjs +10 -4
  58. package/dist/domain/promotion/index.d.cts +35 -112
  59. package/dist/domain/promotion/index.d.ts +35 -112
  60. package/dist/domain/promotion/index.js +2 -2
  61. package/dist/domain/push/index.cjs +1055 -0
  62. package/dist/domain/push/index.d.cts +169 -0
  63. package/dist/domain/push/index.d.ts +169 -0
  64. package/dist/domain/push/index.js +36 -0
  65. package/dist/domain/restaurant/index.cjs +10 -4
  66. package/dist/domain/restaurant/index.d.cts +27 -1
  67. package/dist/domain/restaurant/index.d.ts +27 -1
  68. package/dist/domain/restaurant/index.js +2 -2
  69. package/dist/index.cjs +1731 -399
  70. package/dist/index.d.cts +5 -7
  71. package/dist/index.d.ts +5 -7
  72. package/dist/index.js +17 -15
  73. package/package.json +52 -55
  74. package/dist/chunk-PFSZSKD5.js +0 -0
  75. package/dist/chunk-PQMEXOPZ.js +0 -232
  76. package/dist/chunk-W4TUW2GY.js +0 -40
  77. package/dist/chunk-WNYCCQM4.js +0 -342
  78. package/dist/chunk-YGFAVC5N.js +0 -34
  79. package/dist/chunk-YM7YU7IR.js +0 -319
  80. package/dist/chunk-ZH7D7B2Y.js +0 -78
  81. package/dist/domain/invitation/index.cjs +0 -82
  82. package/dist/domain/invitation/index.d.cts +0 -64
  83. package/dist/domain/invitation/index.d.ts +0 -64
  84. package/dist/domain/invitation/index.js +0 -13
  85. package/dist/domain/plan/index.cjs +0 -327
  86. package/dist/domain/plan/index.d.cts +0 -178
  87. package/dist/domain/plan/index.d.ts +0 -178
  88. package/dist/domain/plan/index.js +0 -18
  89. package/dist/domain/recruit/index.cjs +0 -189
  90. package/dist/domain/recruit/index.d.cts +0 -214
  91. package/dist/domain/recruit/index.d.ts +0 -214
  92. package/dist/domain/recruit/index.js +0 -30
  93. package/dist/domain/room/index.cjs +0 -401
  94. package/dist/domain/room/index.d.cts +0 -2643
  95. package/dist/domain/room/index.d.ts +0 -2643
  96. package/dist/domain/room/index.js +0 -82
  97. package/dist/id-dAYxfjZn.d.cts +0 -64
  98. package/dist/id-dAYxfjZn.d.ts +0 -64
  99. package/dist/restaurant.schema-CuEcX3S3.d.cts +0 -78
  100. package/dist/restaurant.schema-CuEcX3S3.d.ts +0 -78
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
- export { A as ArticleId, a as ArticleIdSchema, B as Brand, C as CommentId, b as CommentIdSchema, c as CouponId, d as CouponIdSchema, F as Food, e as FoodCode, f as FoodCodeSchema, g as FoodLabel, h as FoodLabelSchema, i as FoodSchema, j as FriendRequestId, k as FriendRequestIdSchema, I as InvitationId, l as InvitationIdSchema, M as MemberId, m as MemberIdSchema, N as NonEmptyStringIdSchema, P as PlanId, n as PlanIdSchema, o as PositiveIntIdSchema, R as RecruitId, p as RecruitIdSchema, q as ReferralCode, r as ReferralCodeSchema, s as RestaurantId, t as RestaurantIdSchema, u as RoomId, v as RoomIdSchema, S as SubscriptionId, w as SubscriptionIdSchema, U as UserId, x as UserIdSchema, y as toArticleId, z as toCommentId, D as toCouponId, E as toFriendRequestId, G as toInvitationId, H as toMemberId, J as toPlanId, K as toRecruitId, L as toReferralCode, O as toRestaurantId, Q as toRoomId, T as toSubscriptionId } from '../../id-dAYxfjZn.cjs';
3
2
 
4
3
  type HttpMethod = "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
5
4
  declare const NoBodySchema: z.ZodUndefined;
@@ -26,2840 +25,102 @@ type QueryOf<E> = E extends EndpointContract<any, any, any, infer TQuery, any, a
26
25
  type PathParamsOf<E> = E extends EndpointContract<any, any, infer TPathParams, any, any, any> ? z.infer<TPathParams> : never;
27
26
  type ResponseOf<E> = E extends EndpointContract<any, any, any, any, any, infer TResponse> ? z.infer<TResponse> : never;
28
27
 
29
- declare const apiContract: {
30
- readonly auth: {
31
- readonly signup: EndpointContract<"POST", "/auth/signup", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
32
- email: z.ZodString;
33
- password: z.ZodString;
34
- username: z.ZodString;
35
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- }, "strip", z.ZodTypeAny, {
37
- username: string;
38
- email: string;
39
- password: string;
40
- profileImageUrl?: string | null | undefined;
41
- }, {
42
- username: string;
43
- email: string;
44
- password: string;
45
- profileImageUrl?: string | null | undefined;
46
- }>, z.ZodObject<{
47
- member: z.ZodObject<{
48
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
49
- username: z.ZodString;
50
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, "strip", z.ZodTypeAny, {
52
- memberId: number & z.BRAND<"MemberId">;
53
- username: string;
54
- profileImageUrl?: string | null | undefined;
55
- }, {
56
- memberId: number;
57
- username: string;
58
- profileImageUrl?: string | null | undefined;
59
- }>;
60
- }, "strip", z.ZodTypeAny, {
61
- member: {
62
- memberId: number & z.BRAND<"MemberId">;
63
- username: string;
64
- profileImageUrl?: string | null | undefined;
65
- };
66
- }, {
67
- member: {
68
- memberId: number;
69
- username: string;
70
- profileImageUrl?: string | null | undefined;
71
- };
72
- }>>;
73
- readonly login: EndpointContract<"POST", "/auth/login", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
74
- email: z.ZodString;
75
- password: z.ZodString;
76
- }, "strip", z.ZodTypeAny, {
77
- email: string;
78
- password: string;
79
- }, {
80
- email: string;
81
- password: string;
82
- }>, z.ZodObject<{
83
- accessToken: z.ZodString;
84
- }, "strip", z.ZodTypeAny, {
85
- accessToken: string;
86
- }, {
87
- accessToken: string;
88
- }>>;
89
- readonly refresh: EndpointContract<"POST", "/auth/refresh", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
90
- accessToken: z.ZodString;
91
- }, "strip", z.ZodTypeAny, {
92
- accessToken: string;
93
- }, {
94
- accessToken: string;
95
- }>>;
96
- readonly logout: EndpointContract<"POST", "/auth/logout", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
97
- };
98
- readonly members: {
99
- readonly me: EndpointContract<"GET", "/members/me", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<Pick<{
100
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
101
- username: z.ZodString;
102
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
104
- memberId: number & z.BRAND<"MemberId">;
105
- username: string;
106
- profileImageUrl?: string | null | undefined;
107
- }, {
108
- memberId: number;
109
- username: string;
110
- profileImageUrl?: string | null | undefined;
111
- }>>;
112
- readonly myProfile: EndpointContract<"GET", "/members/me/profile", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
113
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
114
- username: z.ZodString;
115
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
- } & {
117
- bio: z.ZodNullable<z.ZodString>;
118
- friendConunt: z.ZodDefault<z.ZodNumber>;
119
- completedPlans: z.ZodDefault<z.ZodNumber>;
120
- uncompletedPlans: z.ZodDefault<z.ZodNumber>;
121
- }, "strip", z.ZodTypeAny, {
122
- memberId: number & z.BRAND<"MemberId">;
123
- username: string;
124
- bio: string | null;
125
- friendConunt: number;
126
- completedPlans: number;
127
- uncompletedPlans: number;
128
- profileImageUrl?: string | null | undefined;
129
- }, {
130
- memberId: number;
131
- username: string;
132
- bio: string | null;
133
- profileImageUrl?: string | null | undefined;
134
- friendConunt?: number | undefined;
135
- completedPlans?: number | undefined;
136
- uncompletedPlans?: number | undefined;
137
- }>>;
138
- readonly search: EndpointContract<"GET", "/members/search", z.ZodUndefined, z.ZodObject<{
139
- email: z.ZodOptional<z.ZodString>;
140
- username: z.ZodOptional<z.ZodString>;
141
- }, "strip", z.ZodTypeAny, {
142
- username?: string | undefined;
143
- email?: string | undefined;
144
- }, {
145
- username?: string | undefined;
146
- email?: string | undefined;
147
- }>, z.ZodUndefined, z.ZodArray<z.ZodObject<{
148
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
149
- username: z.ZodString;
150
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
- }, "strip", z.ZodTypeAny, {
152
- memberId: number & z.BRAND<"MemberId">;
153
- username: string;
154
- profileImageUrl?: string | null | undefined;
155
- }, {
156
- memberId: number;
157
- username: string;
158
- profileImageUrl?: string | null | undefined;
159
- }>, "many">>;
160
- readonly memberProfile: EndpointContract<"GET", "/members/:memberId/profile", z.ZodObject<{
161
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
162
- }, "strip", z.ZodTypeAny, {
163
- memberId: number & z.BRAND<"MemberId">;
164
- }, {
165
- memberId: number;
166
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
167
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
168
- username: z.ZodString;
169
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
- } & {
171
- bio: z.ZodNullable<z.ZodString>;
172
- friendConunt: z.ZodDefault<z.ZodNumber>;
173
- completedPlans: z.ZodDefault<z.ZodNumber>;
174
- uncompletedPlans: z.ZodDefault<z.ZodNumber>;
175
- }, "strip", z.ZodTypeAny, {
176
- memberId: number & z.BRAND<"MemberId">;
177
- username: string;
178
- bio: string | null;
179
- friendConunt: number;
180
- completedPlans: number;
181
- uncompletedPlans: number;
182
- profileImageUrl?: string | null | undefined;
183
- }, {
184
- memberId: number;
185
- username: string;
186
- bio: string | null;
187
- profileImageUrl?: string | null | undefined;
188
- friendConunt?: number | undefined;
189
- completedPlans?: number | undefined;
190
- uncompletedPlans?: number | undefined;
191
- }>>;
192
- readonly presignProfileImage: EndpointContract<"POST", "/uploads/presign-profile", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
193
- contentType: z.ZodString;
194
- }, "strip", z.ZodTypeAny, {
195
- contentType: string;
196
- }, {
197
- contentType: string;
198
- }>, z.ZodObject<{
199
- key: z.ZodString;
200
- putUrl: z.ZodString;
201
- cdnUrl: z.ZodString;
202
- }, "strip", z.ZodTypeAny, {
203
- key: string;
204
- putUrl: string;
205
- cdnUrl: string;
206
- }, {
207
- key: string;
208
- putUrl: string;
209
- cdnUrl: string;
210
- }>>;
211
- readonly createProfile: EndpointContract<"POST", "/members/onboarding", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
212
- username: z.ZodString;
213
- profileImageUrl: z.ZodNullable<z.ZodString>;
214
- bio: z.ZodNullable<z.ZodString>;
215
- } & {
216
- liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
217
- code: z.ZodBranded<z.ZodString, "FoodCode">;
218
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
219
- }, "strip", z.ZodTypeAny, {
220
- code: string & z.BRAND<"FoodCode">;
221
- label: string & z.BRAND<"FoodLabel">;
222
- }, {
223
- code: string;
224
- label: string;
225
- }>, "many">>;
226
- disliked: z.ZodOptional<z.ZodArray<z.ZodObject<{
227
- code: z.ZodBranded<z.ZodString, "FoodCode">;
228
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
229
- }, "strip", z.ZodTypeAny, {
230
- code: string & z.BRAND<"FoodCode">;
231
- label: string & z.BRAND<"FoodLabel">;
232
- }, {
233
- code: string;
234
- label: string;
235
- }>, "many">>;
236
- allergy: z.ZodOptional<z.ZodArray<z.ZodObject<{
237
- code: z.ZodBranded<z.ZodString, "FoodCode">;
238
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
239
- }, "strip", z.ZodTypeAny, {
240
- code: string & z.BRAND<"FoodCode">;
241
- label: string & z.BRAND<"FoodLabel">;
242
- }, {
243
- code: string;
244
- label: string;
245
- }>, "many">>;
246
- }, "strip", z.ZodTypeAny, {
247
- username: string;
248
- profileImageUrl: string | null;
249
- bio: string | null;
250
- liked?: {
251
- code: string & z.BRAND<"FoodCode">;
252
- label: string & z.BRAND<"FoodLabel">;
253
- }[] | undefined;
254
- disliked?: {
255
- code: string & z.BRAND<"FoodCode">;
256
- label: string & z.BRAND<"FoodLabel">;
257
- }[] | undefined;
258
- allergy?: {
259
- code: string & z.BRAND<"FoodCode">;
260
- label: string & z.BRAND<"FoodLabel">;
261
- }[] | undefined;
262
- }, {
263
- username: string;
264
- profileImageUrl: string | null;
265
- bio: string | null;
266
- liked?: {
267
- code: string;
268
- label: string;
269
- }[] | undefined;
270
- disliked?: {
271
- code: string;
272
- label: string;
273
- }[] | undefined;
274
- allergy?: {
275
- code: string;
276
- label: string;
277
- }[] | undefined;
278
- }>, z.ZodNull>;
279
- readonly updateProfile: EndpointContract<"PATCH", "/members/me/profile", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
280
- username: z.ZodString;
281
- profileImageUrl: z.ZodNullable<z.ZodString>;
282
- bio: z.ZodNullable<z.ZodString>;
283
- }, "strip", z.ZodTypeAny, {
284
- username: string;
285
- profileImageUrl: string | null;
286
- bio: string | null;
287
- }, {
288
- username: string;
289
- profileImageUrl: string | null;
290
- bio: string | null;
291
- }>, z.ZodNull>;
292
- };
293
- readonly preferences: {
294
- readonly my: EndpointContract<"GET", "/preferences/me", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
295
- liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
296
- code: z.ZodBranded<z.ZodString, "FoodCode">;
297
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
298
- }, "strip", z.ZodTypeAny, {
299
- code: string & z.BRAND<"FoodCode">;
300
- label: string & z.BRAND<"FoodLabel">;
301
- }, {
302
- code: string;
303
- label: string;
304
- }>, "many">>;
305
- disliked: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
- code: z.ZodBranded<z.ZodString, "FoodCode">;
307
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
308
- }, "strip", z.ZodTypeAny, {
309
- code: string & z.BRAND<"FoodCode">;
310
- label: string & z.BRAND<"FoodLabel">;
311
- }, {
312
- code: string;
313
- label: string;
314
- }>, "many">>;
315
- allergy: z.ZodOptional<z.ZodArray<z.ZodObject<{
316
- code: z.ZodBranded<z.ZodString, "FoodCode">;
317
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
318
- }, "strip", z.ZodTypeAny, {
319
- code: string & z.BRAND<"FoodCode">;
320
- label: string & z.BRAND<"FoodLabel">;
321
- }, {
322
- code: string;
323
- label: string;
324
- }>, "many">>;
325
- }, "strip", z.ZodTypeAny, {
326
- liked?: {
327
- code: string & z.BRAND<"FoodCode">;
328
- label: string & z.BRAND<"FoodLabel">;
329
- }[] | undefined;
330
- disliked?: {
331
- code: string & z.BRAND<"FoodCode">;
332
- label: string & z.BRAND<"FoodLabel">;
333
- }[] | undefined;
334
- allergy?: {
335
- code: string & z.BRAND<"FoodCode">;
336
- label: string & z.BRAND<"FoodLabel">;
337
- }[] | undefined;
338
- }, {
339
- liked?: {
340
- code: string;
341
- label: string;
342
- }[] | undefined;
343
- disliked?: {
344
- code: string;
345
- label: string;
346
- }[] | undefined;
347
- allergy?: {
348
- code: string;
349
- label: string;
350
- }[] | undefined;
351
- }>>;
352
- readonly update: EndpointContract<"PATCH", "/preferences/me", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
353
- liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
354
- code: z.ZodBranded<z.ZodString, "FoodCode">;
355
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
356
- }, "strip", z.ZodTypeAny, {
357
- code: string & z.BRAND<"FoodCode">;
358
- label: string & z.BRAND<"FoodLabel">;
359
- }, {
360
- code: string;
361
- label: string;
362
- }>, "many">>;
363
- disliked: z.ZodOptional<z.ZodArray<z.ZodObject<{
364
- code: z.ZodBranded<z.ZodString, "FoodCode">;
365
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
366
- }, "strip", z.ZodTypeAny, {
367
- code: string & z.BRAND<"FoodCode">;
368
- label: string & z.BRAND<"FoodLabel">;
369
- }, {
370
- code: string;
371
- label: string;
372
- }>, "many">>;
373
- allergy: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
- code: z.ZodBranded<z.ZodString, "FoodCode">;
375
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
376
- }, "strip", z.ZodTypeAny, {
377
- code: string & z.BRAND<"FoodCode">;
378
- label: string & z.BRAND<"FoodLabel">;
379
- }, {
380
- code: string;
381
- label: string;
382
- }>, "many">>;
383
- }, "strip", z.ZodTypeAny, {
384
- liked?: {
385
- code: string & z.BRAND<"FoodCode">;
386
- label: string & z.BRAND<"FoodLabel">;
387
- }[] | undefined;
388
- disliked?: {
389
- code: string & z.BRAND<"FoodCode">;
390
- label: string & z.BRAND<"FoodLabel">;
391
- }[] | undefined;
392
- allergy?: {
393
- code: string & z.BRAND<"FoodCode">;
394
- label: string & z.BRAND<"FoodLabel">;
395
- }[] | undefined;
396
- }, {
397
- liked?: {
398
- code: string;
399
- label: string;
400
- }[] | undefined;
401
- disliked?: {
402
- code: string;
403
- label: string;
404
- }[] | undefined;
405
- allergy?: {
406
- code: string;
407
- label: string;
408
- }[] | undefined;
409
- }>, z.ZodNull>;
410
- };
411
- readonly mealStatus: {
412
- readonly my: EndpointContract<"GET", "/members/me/meal-status", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
413
- hungry: z.ZodBoolean;
414
- label: z.ZodString;
415
- updatedAt: z.ZodString;
416
- secondsToAutoOff: z.ZodNumber;
417
- }, "strip", z.ZodTypeAny, {
418
- label: string;
419
- updatedAt: string;
420
- hungry: boolean;
421
- secondsToAutoOff: number;
422
- }, {
423
- label: string;
424
- updatedAt: string;
425
- hungry: boolean;
426
- secondsToAutoOff: number;
427
- }>>;
428
- readonly updateMealStatus: EndpointContract<"PATCH", "/members/me/meal-status", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
429
- action: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ARTICLE_UPLOAD", "SET_MANNUALY"]>>>;
430
- }, "strip", z.ZodTypeAny, {
431
- action: "ARTICLE_UPLOAD" | "SET_MANNUALY";
432
- }, {
433
- action?: "ARTICLE_UPLOAD" | "SET_MANNUALY" | undefined;
434
- }>, z.ZodNull>;
435
- readonly friendMealStatus: EndpointContract<"GET", "/friends/me/meals", z.ZodUndefined, z.ZodObject<{
436
- status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ALL", "HUNGRY", "NOT_HUNGRY"]>>>;
437
- }, "strip", z.ZodTypeAny, {
438
- status: "ALL" | "HUNGRY" | "NOT_HUNGRY";
439
- }, {
440
- status?: "ALL" | "HUNGRY" | "NOT_HUNGRY" | undefined;
441
- }>, z.ZodUndefined, z.ZodArray<z.ZodObject<{
442
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
443
- username: z.ZodString;
444
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
- } & {
446
- hungry: z.ZodBoolean;
447
- label: z.ZodString;
448
- updatedAt: z.ZodString;
449
- }, "strip", z.ZodTypeAny, {
450
- label: string;
451
- memberId: number & z.BRAND<"MemberId">;
452
- username: string;
453
- updatedAt: string;
454
- hungry: boolean;
455
- profileImageUrl?: string | null | undefined;
456
- }, {
457
- label: string;
458
- memberId: number;
459
- username: string;
460
- updatedAt: string;
461
- hungry: boolean;
462
- profileImageUrl?: string | null | undefined;
463
- }>, "many">>;
464
- };
465
- readonly articles: {
466
- readonly list: EndpointContract<"GET", "/articles/home", z.ZodUndefined, z.ZodObject<{
467
- page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
468
- size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
469
- } & {
470
- sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt", "likeCount", "commentCount"]>>>;
471
- direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
472
- }, "strip", z.ZodTypeAny, {
473
- page: number;
474
- size: number;
475
- sortBy: "createdAt" | "likeCount" | "commentCount";
476
- direction: "asc" | "desc";
477
- }, {
478
- page?: number | undefined;
479
- size?: number | undefined;
480
- sortBy?: "createdAt" | "likeCount" | "commentCount" | undefined;
481
- direction?: "asc" | "desc" | undefined;
482
- }>, z.ZodUndefined, z.ZodObject<{
483
- items: z.ZodArray<z.ZodObject<{
484
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
485
- author: z.ZodObject<{
486
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
487
- username: z.ZodString;
488
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
- }, "strip", z.ZodTypeAny, {
490
- memberId: number & z.BRAND<"MemberId">;
491
- username: string;
492
- profileImageUrl?: string | null | undefined;
493
- }, {
494
- memberId: number;
495
- username: string;
496
- profileImageUrl?: string | null | undefined;
497
- }>;
498
- imageUrl: z.ZodString;
499
- mealDate: z.ZodString;
500
- restaurant: z.ZodObject<{
501
- restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
502
- placeName: z.ZodString;
503
- categoryName: z.ZodString;
504
- categoryGroupName: z.ZodString;
505
- distance: z.ZodOptional<z.ZodString>;
506
- roadAddressName: z.ZodString;
507
- addressName: z.ZodString;
508
- phone: z.ZodNullable<z.ZodString>;
509
- placeUrl: z.ZodNullable<z.ZodString>;
510
- lat: z.ZodNumber;
511
- lng: z.ZodNumber;
512
- }, "strip", z.ZodTypeAny, {
513
- restaurantId: string & z.BRAND<"RestaurantId">;
514
- placeName: string;
515
- categoryName: string;
516
- categoryGroupName: string;
517
- roadAddressName: string;
518
- addressName: string;
519
- phone: string | null;
520
- placeUrl: string | null;
521
- lat: number;
522
- lng: number;
523
- distance?: string | undefined;
524
- }, {
525
- restaurantId: string;
526
- placeName: string;
527
- categoryName: string;
528
- categoryGroupName: string;
529
- roadAddressName: string;
530
- addressName: string;
531
- phone: string | null;
532
- placeUrl: string | null;
533
- lat: number;
534
- lng: number;
535
- distance?: string | undefined;
536
- }>;
537
- createdAt: z.ZodString;
538
- updatedAt: z.ZodString;
539
- expiresAt: z.ZodString;
540
- taggedMembers: z.ZodArray<z.ZodObject<{
541
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
542
- username: z.ZodString;
543
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
- }, "strip", z.ZodTypeAny, {
545
- memberId: number & z.BRAND<"MemberId">;
546
- username: string;
547
- profileImageUrl?: string | null | undefined;
548
- }, {
549
- memberId: number;
550
- username: string;
551
- profileImageUrl?: string | null | undefined;
552
- }>, "many">;
553
- } & {
554
- likeCount: z.ZodNumber;
555
- commentCount: z.ZodNumber;
556
- likedByMe: z.ZodBoolean;
557
- }, "strip", z.ZodTypeAny, {
558
- createdAt: string;
559
- likeCount: number;
560
- commentCount: number;
561
- imageUrl: string;
562
- mealDate: string;
563
- restaurant: {
564
- restaurantId: string & z.BRAND<"RestaurantId">;
565
- placeName: string;
566
- categoryName: string;
567
- categoryGroupName: string;
568
- roadAddressName: string;
569
- addressName: string;
570
- phone: string | null;
571
- placeUrl: string | null;
572
- lat: number;
573
- lng: number;
574
- distance?: string | undefined;
575
- };
576
- author: {
577
- memberId: number & z.BRAND<"MemberId">;
578
- username: string;
579
- profileImageUrl?: string | null | undefined;
580
- };
581
- updatedAt: string;
582
- articleId: number & z.BRAND<"ArticleId">;
583
- expiresAt: string;
584
- taggedMembers: {
585
- memberId: number & z.BRAND<"MemberId">;
586
- username: string;
587
- profileImageUrl?: string | null | undefined;
588
- }[];
589
- likedByMe: boolean;
590
- }, {
591
- createdAt: string;
592
- likeCount: number;
593
- commentCount: number;
594
- imageUrl: string;
595
- mealDate: string;
596
- restaurant: {
597
- restaurantId: string;
598
- placeName: string;
599
- categoryName: string;
600
- categoryGroupName: string;
601
- roadAddressName: string;
602
- addressName: string;
603
- phone: string | null;
604
- placeUrl: string | null;
605
- lat: number;
606
- lng: number;
607
- distance?: string | undefined;
608
- };
609
- author: {
610
- memberId: number;
611
- username: string;
612
- profileImageUrl?: string | null | undefined;
613
- };
614
- updatedAt: string;
615
- articleId: number;
616
- expiresAt: string;
617
- taggedMembers: {
618
- memberId: number;
619
- username: string;
620
- profileImageUrl?: string | null | undefined;
621
- }[];
622
- likedByMe: boolean;
623
- }>, "many">;
624
- meta: z.ZodObject<{
625
- page: z.ZodNumber;
626
- size: z.ZodNumber;
627
- totalItems: z.ZodNumber;
628
- totalPages: z.ZodNumber;
629
- hasNext: z.ZodBoolean;
630
- hasPrevious: z.ZodBoolean;
631
- }, "strip", z.ZodTypeAny, {
632
- page: number;
633
- size: number;
634
- totalItems: number;
635
- totalPages: number;
636
- hasNext: boolean;
637
- hasPrevious: boolean;
638
- }, {
639
- page: number;
640
- size: number;
641
- totalItems: number;
642
- totalPages: number;
643
- hasNext: boolean;
644
- hasPrevious: boolean;
645
- }>;
646
- }, "strip", z.ZodTypeAny, {
647
- items: {
648
- createdAt: string;
649
- likeCount: number;
650
- commentCount: number;
651
- imageUrl: string;
652
- mealDate: string;
653
- restaurant: {
654
- restaurantId: string & z.BRAND<"RestaurantId">;
655
- placeName: string;
656
- categoryName: string;
657
- categoryGroupName: string;
658
- roadAddressName: string;
659
- addressName: string;
660
- phone: string | null;
661
- placeUrl: string | null;
662
- lat: number;
663
- lng: number;
664
- distance?: string | undefined;
665
- };
666
- author: {
667
- memberId: number & z.BRAND<"MemberId">;
668
- username: string;
669
- profileImageUrl?: string | null | undefined;
670
- };
671
- updatedAt: string;
672
- articleId: number & z.BRAND<"ArticleId">;
673
- expiresAt: string;
674
- taggedMembers: {
675
- memberId: number & z.BRAND<"MemberId">;
676
- username: string;
677
- profileImageUrl?: string | null | undefined;
678
- }[];
679
- likedByMe: boolean;
680
- }[];
681
- meta: {
682
- page: number;
683
- size: number;
684
- totalItems: number;
685
- totalPages: number;
686
- hasNext: boolean;
687
- hasPrevious: boolean;
688
- };
689
- }, {
690
- items: {
691
- createdAt: string;
692
- likeCount: number;
693
- commentCount: number;
694
- imageUrl: string;
695
- mealDate: string;
696
- restaurant: {
697
- restaurantId: string;
698
- placeName: string;
699
- categoryName: string;
700
- categoryGroupName: string;
701
- roadAddressName: string;
702
- addressName: string;
703
- phone: string | null;
704
- placeUrl: string | null;
705
- lat: number;
706
- lng: number;
707
- distance?: string | undefined;
708
- };
709
- author: {
710
- memberId: number;
711
- username: string;
712
- profileImageUrl?: string | null | undefined;
713
- };
714
- updatedAt: string;
715
- articleId: number;
716
- expiresAt: string;
717
- taggedMembers: {
718
- memberId: number;
719
- username: string;
720
- profileImageUrl?: string | null | undefined;
721
- }[];
722
- likedByMe: boolean;
723
- }[];
724
- meta: {
725
- page: number;
726
- size: number;
727
- totalItems: number;
728
- totalPages: number;
729
- hasNext: boolean;
730
- hasPrevious: boolean;
731
- };
732
- }>>;
733
- readonly byMember: EndpointContract<"GET", "/articles/by-author/:memberId", z.ZodObject<{
734
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
735
- }, "strip", z.ZodTypeAny, {
736
- memberId: number & z.BRAND<"MemberId">;
737
- }, {
738
- memberId: number;
739
- }>, z.ZodObject<{
740
- page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
741
- size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
742
- } & {
743
- sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt", "likeCount", "commentCount"]>>>;
744
- direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
745
- }, "strip", z.ZodTypeAny, {
746
- page: number;
747
- size: number;
748
- sortBy: "createdAt" | "likeCount" | "commentCount";
749
- direction: "asc" | "desc";
750
- }, {
751
- page?: number | undefined;
752
- size?: number | undefined;
753
- sortBy?: "createdAt" | "likeCount" | "commentCount" | undefined;
754
- direction?: "asc" | "desc" | undefined;
755
- }>, z.ZodUndefined, z.ZodObject<{
756
- items: z.ZodArray<z.ZodObject<{
757
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
758
- author: z.ZodObject<{
759
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
760
- username: z.ZodString;
761
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
762
- }, "strip", z.ZodTypeAny, {
763
- memberId: number & z.BRAND<"MemberId">;
764
- username: string;
765
- profileImageUrl?: string | null | undefined;
766
- }, {
767
- memberId: number;
768
- username: string;
769
- profileImageUrl?: string | null | undefined;
770
- }>;
771
- imageUrl: z.ZodString;
772
- mealDate: z.ZodString;
773
- restaurant: z.ZodObject<{
774
- restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
775
- placeName: z.ZodString;
776
- categoryName: z.ZodString;
777
- categoryGroupName: z.ZodString;
778
- distance: z.ZodOptional<z.ZodString>;
779
- roadAddressName: z.ZodString;
780
- addressName: z.ZodString;
781
- phone: z.ZodNullable<z.ZodString>;
782
- placeUrl: z.ZodNullable<z.ZodString>;
783
- lat: z.ZodNumber;
784
- lng: z.ZodNumber;
785
- }, "strip", z.ZodTypeAny, {
786
- restaurantId: string & z.BRAND<"RestaurantId">;
787
- placeName: string;
788
- categoryName: string;
789
- categoryGroupName: string;
790
- roadAddressName: string;
791
- addressName: string;
792
- phone: string | null;
793
- placeUrl: string | null;
794
- lat: number;
795
- lng: number;
796
- distance?: string | undefined;
797
- }, {
798
- restaurantId: string;
799
- placeName: string;
800
- categoryName: string;
801
- categoryGroupName: string;
802
- roadAddressName: string;
803
- addressName: string;
804
- phone: string | null;
805
- placeUrl: string | null;
806
- lat: number;
807
- lng: number;
808
- distance?: string | undefined;
809
- }>;
810
- createdAt: z.ZodString;
811
- updatedAt: z.ZodString;
812
- expiresAt: z.ZodString;
813
- taggedMembers: z.ZodArray<z.ZodObject<{
814
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
815
- username: z.ZodString;
816
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
817
- }, "strip", z.ZodTypeAny, {
818
- memberId: number & z.BRAND<"MemberId">;
819
- username: string;
820
- profileImageUrl?: string | null | undefined;
821
- }, {
822
- memberId: number;
823
- username: string;
824
- profileImageUrl?: string | null | undefined;
825
- }>, "many">;
826
- } & {
827
- likeCount: z.ZodNumber;
828
- commentCount: z.ZodNumber;
829
- likedByMe: z.ZodBoolean;
830
- }, "strip", z.ZodTypeAny, {
831
- createdAt: string;
832
- likeCount: number;
833
- commentCount: number;
834
- imageUrl: string;
835
- mealDate: string;
836
- restaurant: {
837
- restaurantId: string & z.BRAND<"RestaurantId">;
838
- placeName: string;
839
- categoryName: string;
840
- categoryGroupName: string;
841
- roadAddressName: string;
842
- addressName: string;
843
- phone: string | null;
844
- placeUrl: string | null;
845
- lat: number;
846
- lng: number;
847
- distance?: string | undefined;
848
- };
849
- author: {
850
- memberId: number & z.BRAND<"MemberId">;
851
- username: string;
852
- profileImageUrl?: string | null | undefined;
853
- };
854
- updatedAt: string;
855
- articleId: number & z.BRAND<"ArticleId">;
856
- expiresAt: string;
857
- taggedMembers: {
858
- memberId: number & z.BRAND<"MemberId">;
859
- username: string;
860
- profileImageUrl?: string | null | undefined;
861
- }[];
862
- likedByMe: boolean;
863
- }, {
864
- createdAt: string;
865
- likeCount: number;
866
- commentCount: number;
867
- imageUrl: string;
868
- mealDate: string;
869
- restaurant: {
870
- restaurantId: string;
871
- placeName: string;
872
- categoryName: string;
873
- categoryGroupName: string;
874
- roadAddressName: string;
875
- addressName: string;
876
- phone: string | null;
877
- placeUrl: string | null;
878
- lat: number;
879
- lng: number;
880
- distance?: string | undefined;
881
- };
882
- author: {
883
- memberId: number;
884
- username: string;
885
- profileImageUrl?: string | null | undefined;
886
- };
887
- updatedAt: string;
888
- articleId: number;
889
- expiresAt: string;
890
- taggedMembers: {
891
- memberId: number;
892
- username: string;
893
- profileImageUrl?: string | null | undefined;
894
- }[];
895
- likedByMe: boolean;
896
- }>, "many">;
897
- meta: z.ZodObject<{
898
- page: z.ZodNumber;
899
- size: z.ZodNumber;
900
- totalItems: z.ZodNumber;
901
- totalPages: z.ZodNumber;
902
- hasNext: z.ZodBoolean;
903
- hasPrevious: z.ZodBoolean;
904
- }, "strip", z.ZodTypeAny, {
905
- page: number;
906
- size: number;
907
- totalItems: number;
908
- totalPages: number;
909
- hasNext: boolean;
910
- hasPrevious: boolean;
911
- }, {
912
- page: number;
913
- size: number;
914
- totalItems: number;
915
- totalPages: number;
916
- hasNext: boolean;
917
- hasPrevious: boolean;
918
- }>;
919
- }, "strip", z.ZodTypeAny, {
920
- items: {
921
- createdAt: string;
922
- likeCount: number;
923
- commentCount: number;
924
- imageUrl: string;
925
- mealDate: string;
926
- restaurant: {
927
- restaurantId: string & z.BRAND<"RestaurantId">;
928
- placeName: string;
929
- categoryName: string;
930
- categoryGroupName: string;
931
- roadAddressName: string;
932
- addressName: string;
933
- phone: string | null;
934
- placeUrl: string | null;
935
- lat: number;
936
- lng: number;
937
- distance?: string | undefined;
938
- };
939
- author: {
940
- memberId: number & z.BRAND<"MemberId">;
941
- username: string;
942
- profileImageUrl?: string | null | undefined;
943
- };
944
- updatedAt: string;
945
- articleId: number & z.BRAND<"ArticleId">;
946
- expiresAt: string;
947
- taggedMembers: {
948
- memberId: number & z.BRAND<"MemberId">;
949
- username: string;
950
- profileImageUrl?: string | null | undefined;
951
- }[];
952
- likedByMe: boolean;
953
- }[];
954
- meta: {
955
- page: number;
956
- size: number;
957
- totalItems: number;
958
- totalPages: number;
959
- hasNext: boolean;
960
- hasPrevious: boolean;
961
- };
962
- }, {
963
- items: {
964
- createdAt: string;
965
- likeCount: number;
966
- commentCount: number;
967
- imageUrl: string;
968
- mealDate: string;
969
- restaurant: {
970
- restaurantId: string;
971
- placeName: string;
972
- categoryName: string;
973
- categoryGroupName: string;
974
- roadAddressName: string;
975
- addressName: string;
976
- phone: string | null;
977
- placeUrl: string | null;
978
- lat: number;
979
- lng: number;
980
- distance?: string | undefined;
981
- };
982
- author: {
983
- memberId: number;
984
- username: string;
985
- profileImageUrl?: string | null | undefined;
986
- };
987
- updatedAt: string;
988
- articleId: number;
989
- expiresAt: string;
990
- taggedMembers: {
991
- memberId: number;
992
- username: string;
993
- profileImageUrl?: string | null | undefined;
994
- }[];
995
- likedByMe: boolean;
996
- }[];
997
- meta: {
998
- page: number;
999
- size: number;
1000
- totalItems: number;
1001
- totalPages: number;
1002
- hasNext: boolean;
1003
- hasPrevious: boolean;
1004
- };
1005
- }>>;
1006
- readonly my: EndpointContract<"GET", "/articles/my", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1007
- items: z.ZodArray<z.ZodObject<{
1008
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1009
- author: z.ZodObject<{
1010
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1011
- username: z.ZodString;
1012
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1013
- }, "strip", z.ZodTypeAny, {
1014
- memberId: number & z.BRAND<"MemberId">;
1015
- username: string;
1016
- profileImageUrl?: string | null | undefined;
1017
- }, {
1018
- memberId: number;
1019
- username: string;
1020
- profileImageUrl?: string | null | undefined;
1021
- }>;
1022
- imageUrl: z.ZodString;
1023
- mealDate: z.ZodString;
1024
- restaurant: z.ZodObject<{
1025
- restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
1026
- placeName: z.ZodString;
1027
- categoryName: z.ZodString;
1028
- categoryGroupName: z.ZodString;
1029
- distance: z.ZodOptional<z.ZodString>;
1030
- roadAddressName: z.ZodString;
1031
- addressName: z.ZodString;
1032
- phone: z.ZodNullable<z.ZodString>;
1033
- placeUrl: z.ZodNullable<z.ZodString>;
1034
- lat: z.ZodNumber;
1035
- lng: z.ZodNumber;
1036
- }, "strip", z.ZodTypeAny, {
1037
- restaurantId: string & z.BRAND<"RestaurantId">;
1038
- placeName: string;
1039
- categoryName: string;
1040
- categoryGroupName: string;
1041
- roadAddressName: string;
1042
- addressName: string;
1043
- phone: string | null;
1044
- placeUrl: string | null;
1045
- lat: number;
1046
- lng: number;
1047
- distance?: string | undefined;
1048
- }, {
1049
- restaurantId: string;
1050
- placeName: string;
1051
- categoryName: string;
1052
- categoryGroupName: string;
1053
- roadAddressName: string;
1054
- addressName: string;
1055
- phone: string | null;
1056
- placeUrl: string | null;
1057
- lat: number;
1058
- lng: number;
1059
- distance?: string | undefined;
1060
- }>;
1061
- createdAt: z.ZodString;
1062
- updatedAt: z.ZodString;
1063
- expiresAt: z.ZodString;
1064
- taggedMembers: z.ZodArray<z.ZodObject<{
1065
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1066
- username: z.ZodString;
1067
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1068
- }, "strip", z.ZodTypeAny, {
1069
- memberId: number & z.BRAND<"MemberId">;
1070
- username: string;
1071
- profileImageUrl?: string | null | undefined;
1072
- }, {
1073
- memberId: number;
1074
- username: string;
1075
- profileImageUrl?: string | null | undefined;
1076
- }>, "many">;
1077
- } & {
1078
- likeCount: z.ZodNumber;
1079
- commentCount: z.ZodNumber;
1080
- likedByMe: z.ZodBoolean;
1081
- }, "strip", z.ZodTypeAny, {
1082
- createdAt: string;
1083
- likeCount: number;
1084
- commentCount: number;
1085
- imageUrl: string;
1086
- mealDate: string;
1087
- restaurant: {
1088
- restaurantId: string & z.BRAND<"RestaurantId">;
1089
- placeName: string;
1090
- categoryName: string;
1091
- categoryGroupName: string;
1092
- roadAddressName: string;
1093
- addressName: string;
1094
- phone: string | null;
1095
- placeUrl: string | null;
1096
- lat: number;
1097
- lng: number;
1098
- distance?: string | undefined;
1099
- };
1100
- author: {
1101
- memberId: number & z.BRAND<"MemberId">;
1102
- username: string;
1103
- profileImageUrl?: string | null | undefined;
1104
- };
1105
- updatedAt: string;
1106
- articleId: number & z.BRAND<"ArticleId">;
1107
- expiresAt: string;
1108
- taggedMembers: {
1109
- memberId: number & z.BRAND<"MemberId">;
1110
- username: string;
1111
- profileImageUrl?: string | null | undefined;
1112
- }[];
1113
- likedByMe: boolean;
1114
- }, {
1115
- createdAt: string;
1116
- likeCount: number;
1117
- commentCount: number;
1118
- imageUrl: string;
1119
- mealDate: string;
1120
- restaurant: {
1121
- restaurantId: string;
1122
- placeName: string;
1123
- categoryName: string;
1124
- categoryGroupName: string;
1125
- roadAddressName: string;
1126
- addressName: string;
1127
- phone: string | null;
1128
- placeUrl: string | null;
1129
- lat: number;
1130
- lng: number;
1131
- distance?: string | undefined;
1132
- };
1133
- author: {
1134
- memberId: number;
1135
- username: string;
1136
- profileImageUrl?: string | null | undefined;
1137
- };
1138
- updatedAt: string;
1139
- articleId: number;
1140
- expiresAt: string;
1141
- taggedMembers: {
1142
- memberId: number;
1143
- username: string;
1144
- profileImageUrl?: string | null | undefined;
1145
- }[];
1146
- likedByMe: boolean;
1147
- }>, "many">;
1148
- meta: z.ZodObject<{
1149
- page: z.ZodNumber;
1150
- size: z.ZodNumber;
1151
- totalItems: z.ZodNumber;
1152
- totalPages: z.ZodNumber;
1153
- hasNext: z.ZodBoolean;
1154
- hasPrevious: z.ZodBoolean;
1155
- }, "strip", z.ZodTypeAny, {
1156
- page: number;
1157
- size: number;
1158
- totalItems: number;
1159
- totalPages: number;
1160
- hasNext: boolean;
1161
- hasPrevious: boolean;
1162
- }, {
1163
- page: number;
1164
- size: number;
1165
- totalItems: number;
1166
- totalPages: number;
1167
- hasNext: boolean;
1168
- hasPrevious: boolean;
1169
- }>;
1170
- }, "strip", z.ZodTypeAny, {
1171
- items: {
1172
- createdAt: string;
1173
- likeCount: number;
1174
- commentCount: number;
1175
- imageUrl: string;
1176
- mealDate: string;
1177
- restaurant: {
1178
- restaurantId: string & z.BRAND<"RestaurantId">;
1179
- placeName: string;
1180
- categoryName: string;
1181
- categoryGroupName: string;
1182
- roadAddressName: string;
1183
- addressName: string;
1184
- phone: string | null;
1185
- placeUrl: string | null;
1186
- lat: number;
1187
- lng: number;
1188
- distance?: string | undefined;
1189
- };
1190
- author: {
1191
- memberId: number & z.BRAND<"MemberId">;
1192
- username: string;
1193
- profileImageUrl?: string | null | undefined;
1194
- };
1195
- updatedAt: string;
1196
- articleId: number & z.BRAND<"ArticleId">;
1197
- expiresAt: string;
1198
- taggedMembers: {
1199
- memberId: number & z.BRAND<"MemberId">;
1200
- username: string;
1201
- profileImageUrl?: string | null | undefined;
1202
- }[];
1203
- likedByMe: boolean;
1204
- }[];
1205
- meta: {
1206
- page: number;
1207
- size: number;
1208
- totalItems: number;
1209
- totalPages: number;
1210
- hasNext: boolean;
1211
- hasPrevious: boolean;
1212
- };
1213
- }, {
1214
- items: {
1215
- createdAt: string;
1216
- likeCount: number;
1217
- commentCount: number;
1218
- imageUrl: string;
1219
- mealDate: string;
1220
- restaurant: {
1221
- restaurantId: string;
1222
- placeName: string;
1223
- categoryName: string;
1224
- categoryGroupName: string;
1225
- roadAddressName: string;
1226
- addressName: string;
1227
- phone: string | null;
1228
- placeUrl: string | null;
1229
- lat: number;
1230
- lng: number;
1231
- distance?: string | undefined;
1232
- };
1233
- author: {
1234
- memberId: number;
1235
- username: string;
1236
- profileImageUrl?: string | null | undefined;
1237
- };
1238
- updatedAt: string;
1239
- articleId: number;
1240
- expiresAt: string;
1241
- taggedMembers: {
1242
- memberId: number;
1243
- username: string;
1244
- profileImageUrl?: string | null | undefined;
1245
- }[];
1246
- likedByMe: boolean;
1247
- }[];
1248
- meta: {
1249
- page: number;
1250
- size: number;
1251
- totalItems: number;
1252
- totalPages: number;
1253
- hasNext: boolean;
1254
- hasPrevious: boolean;
1255
- };
1256
- }>>;
1257
- readonly detail: EndpointContract<"GET", "/articles/:articleId", z.ZodObject<{
1258
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1259
- }, "strip", z.ZodTypeAny, {
1260
- articleId: number & z.BRAND<"ArticleId">;
1261
- }, {
1262
- articleId: number;
1263
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1264
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1265
- author: z.ZodObject<{
1266
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1267
- username: z.ZodString;
1268
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1269
- }, "strip", z.ZodTypeAny, {
1270
- memberId: number & z.BRAND<"MemberId">;
1271
- username: string;
1272
- profileImageUrl?: string | null | undefined;
1273
- }, {
1274
- memberId: number;
1275
- username: string;
1276
- profileImageUrl?: string | null | undefined;
1277
- }>;
1278
- imageUrl: z.ZodString;
1279
- mealDate: z.ZodString;
1280
- restaurant: z.ZodObject<{
1281
- restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
1282
- placeName: z.ZodString;
1283
- categoryName: z.ZodString;
1284
- categoryGroupName: z.ZodString;
1285
- distance: z.ZodOptional<z.ZodString>;
1286
- roadAddressName: z.ZodString;
1287
- addressName: z.ZodString;
1288
- phone: z.ZodNullable<z.ZodString>;
1289
- placeUrl: z.ZodNullable<z.ZodString>;
1290
- lat: z.ZodNumber;
1291
- lng: z.ZodNumber;
1292
- }, "strip", z.ZodTypeAny, {
1293
- restaurantId: string & z.BRAND<"RestaurantId">;
1294
- placeName: string;
1295
- categoryName: string;
1296
- categoryGroupName: string;
1297
- roadAddressName: string;
1298
- addressName: string;
1299
- phone: string | null;
1300
- placeUrl: string | null;
1301
- lat: number;
1302
- lng: number;
1303
- distance?: string | undefined;
1304
- }, {
1305
- restaurantId: string;
1306
- placeName: string;
1307
- categoryName: string;
1308
- categoryGroupName: string;
1309
- roadAddressName: string;
1310
- addressName: string;
1311
- phone: string | null;
1312
- placeUrl: string | null;
1313
- lat: number;
1314
- lng: number;
1315
- distance?: string | undefined;
1316
- }>;
1317
- createdAt: z.ZodString;
1318
- updatedAt: z.ZodString;
1319
- expiresAt: z.ZodString;
1320
- taggedMembers: z.ZodArray<z.ZodObject<{
1321
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1322
- username: z.ZodString;
1323
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1324
- }, "strip", z.ZodTypeAny, {
1325
- memberId: number & z.BRAND<"MemberId">;
1326
- username: string;
1327
- profileImageUrl?: string | null | undefined;
1328
- }, {
1329
- memberId: number;
1330
- username: string;
1331
- profileImageUrl?: string | null | undefined;
1332
- }>, "many">;
1333
- } & {
1334
- likeCount: z.ZodNumber;
1335
- commentCount: z.ZodNumber;
1336
- likedByMe: z.ZodBoolean;
1337
- } & {
1338
- comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1339
- commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
1340
- author: z.ZodObject<{
1341
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1342
- username: z.ZodString;
1343
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1344
- }, "strip", z.ZodTypeAny, {
1345
- memberId: number & z.BRAND<"MemberId">;
1346
- username: string;
1347
- profileImageUrl?: string | null | undefined;
1348
- }, {
1349
- memberId: number;
1350
- username: string;
1351
- profileImageUrl?: string | null | undefined;
1352
- }>;
1353
- parentCommentId: z.ZodNullable<z.ZodBranded<z.ZodNumber, "CommentId">>;
1354
- content: z.ZodString;
1355
- createdAt: z.ZodString;
1356
- updatedAt: z.ZodString;
1357
- }, "strip", z.ZodTypeAny, {
1358
- createdAt: string;
1359
- content: string;
1360
- parentCommentId: (number & z.BRAND<"CommentId">) | null;
1361
- commentId: number & z.BRAND<"CommentId">;
1362
- author: {
1363
- memberId: number & z.BRAND<"MemberId">;
1364
- username: string;
1365
- profileImageUrl?: string | null | undefined;
1366
- };
1367
- updatedAt: string;
1368
- }, {
1369
- createdAt: string;
1370
- content: string;
1371
- parentCommentId: number | null;
1372
- commentId: number;
1373
- author: {
1374
- memberId: number;
1375
- username: string;
1376
- profileImageUrl?: string | null | undefined;
1377
- };
1378
- updatedAt: string;
1379
- }>, "many">>;
1380
- }, "strip", z.ZodTypeAny, {
1381
- createdAt: string;
1382
- likeCount: number;
1383
- commentCount: number;
1384
- imageUrl: string;
1385
- mealDate: string;
1386
- restaurant: {
1387
- restaurantId: string & z.BRAND<"RestaurantId">;
1388
- placeName: string;
1389
- categoryName: string;
1390
- categoryGroupName: string;
1391
- roadAddressName: string;
1392
- addressName: string;
1393
- phone: string | null;
1394
- placeUrl: string | null;
1395
- lat: number;
1396
- lng: number;
1397
- distance?: string | undefined;
1398
- };
1399
- author: {
1400
- memberId: number & z.BRAND<"MemberId">;
1401
- username: string;
1402
- profileImageUrl?: string | null | undefined;
1403
- };
1404
- updatedAt: string;
1405
- articleId: number & z.BRAND<"ArticleId">;
1406
- expiresAt: string;
1407
- taggedMembers: {
1408
- memberId: number & z.BRAND<"MemberId">;
1409
- username: string;
1410
- profileImageUrl?: string | null | undefined;
1411
- }[];
1412
- likedByMe: boolean;
1413
- comments?: {
1414
- createdAt: string;
1415
- content: string;
1416
- parentCommentId: (number & z.BRAND<"CommentId">) | null;
1417
- commentId: number & z.BRAND<"CommentId">;
1418
- author: {
1419
- memberId: number & z.BRAND<"MemberId">;
1420
- username: string;
1421
- profileImageUrl?: string | null | undefined;
1422
- };
1423
- updatedAt: string;
1424
- }[] | undefined;
1425
- }, {
1426
- createdAt: string;
1427
- likeCount: number;
1428
- commentCount: number;
1429
- imageUrl: string;
1430
- mealDate: string;
1431
- restaurant: {
1432
- restaurantId: string;
1433
- placeName: string;
1434
- categoryName: string;
1435
- categoryGroupName: string;
1436
- roadAddressName: string;
1437
- addressName: string;
1438
- phone: string | null;
1439
- placeUrl: string | null;
1440
- lat: number;
1441
- lng: number;
1442
- distance?: string | undefined;
1443
- };
1444
- author: {
1445
- memberId: number;
1446
- username: string;
1447
- profileImageUrl?: string | null | undefined;
1448
- };
1449
- updatedAt: string;
1450
- articleId: number;
1451
- expiresAt: string;
1452
- taggedMembers: {
1453
- memberId: number;
1454
- username: string;
1455
- profileImageUrl?: string | null | undefined;
1456
- }[];
1457
- likedByMe: boolean;
1458
- comments?: {
1459
- createdAt: string;
1460
- content: string;
1461
- parentCommentId: number | null;
1462
- commentId: number;
1463
- author: {
1464
- memberId: number;
1465
- username: string;
1466
- profileImageUrl?: string | null | undefined;
1467
- };
1468
- updatedAt: string;
1469
- }[] | undefined;
1470
- }>>;
1471
- readonly create: EndpointContract<"POST", "/articles", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1472
- imageUrl: z.ZodString;
1473
- mealDate: z.ZodString;
1474
- restaurant: z.ZodObject<{
1475
- restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
1476
- placeName: z.ZodString;
1477
- categoryName: z.ZodString;
1478
- categoryGroupName: z.ZodString;
1479
- distance: z.ZodOptional<z.ZodString>;
1480
- roadAddressName: z.ZodString;
1481
- addressName: z.ZodString;
1482
- phone: z.ZodNullable<z.ZodString>;
1483
- placeUrl: z.ZodNullable<z.ZodString>;
1484
- lat: z.ZodNumber;
1485
- lng: z.ZodNumber;
1486
- }, "strip", z.ZodTypeAny, {
1487
- restaurantId: string & z.BRAND<"RestaurantId">;
1488
- placeName: string;
1489
- categoryName: string;
1490
- categoryGroupName: string;
1491
- roadAddressName: string;
1492
- addressName: string;
1493
- phone: string | null;
1494
- placeUrl: string | null;
1495
- lat: number;
1496
- lng: number;
1497
- distance?: string | undefined;
1498
- }, {
1499
- restaurantId: string;
1500
- placeName: string;
1501
- categoryName: string;
1502
- categoryGroupName: string;
1503
- roadAddressName: string;
1504
- addressName: string;
1505
- phone: string | null;
1506
- placeUrl: string | null;
1507
- lat: number;
1508
- lng: number;
1509
- distance?: string | undefined;
1510
- }>;
1511
- taggedMemberIds: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodNumber, "MemberId">, "many">>;
1512
- foodAnalysis: z.ZodOptional<z.ZodObject<{
1513
- code: z.ZodBranded<z.ZodString, "FoodCode">;
1514
- label: z.ZodBranded<z.ZodString, "FoodLabel">;
1515
- } & {
1516
- confidence: z.ZodNumber;
1517
- tsUtc: z.ZodOptional<z.ZodString>;
1518
- }, "strip", z.ZodTypeAny, {
1519
- code: string & z.BRAND<"FoodCode">;
1520
- label: string & z.BRAND<"FoodLabel">;
1521
- confidence: number;
1522
- tsUtc?: string | undefined;
1523
- }, {
1524
- code: string;
1525
- label: string;
1526
- confidence: number;
1527
- tsUtc?: string | undefined;
1528
- }>>;
1529
- }, "strip", z.ZodTypeAny, {
1530
- imageUrl: string;
1531
- mealDate: string;
1532
- restaurant: {
1533
- restaurantId: string & z.BRAND<"RestaurantId">;
1534
- placeName: string;
1535
- categoryName: string;
1536
- categoryGroupName: string;
1537
- roadAddressName: string;
1538
- addressName: string;
1539
- phone: string | null;
1540
- placeUrl: string | null;
1541
- lat: number;
1542
- lng: number;
1543
- distance?: string | undefined;
1544
- };
1545
- taggedMemberIds: (number & z.BRAND<"MemberId">)[];
1546
- foodAnalysis?: {
1547
- code: string & z.BRAND<"FoodCode">;
1548
- label: string & z.BRAND<"FoodLabel">;
1549
- confidence: number;
1550
- tsUtc?: string | undefined;
1551
- } | undefined;
1552
- }, {
1553
- imageUrl: string;
1554
- mealDate: string;
1555
- restaurant: {
1556
- restaurantId: string;
1557
- placeName: string;
1558
- categoryName: string;
1559
- categoryGroupName: string;
1560
- roadAddressName: string;
1561
- addressName: string;
1562
- phone: string | null;
1563
- placeUrl: string | null;
1564
- lat: number;
1565
- lng: number;
1566
- distance?: string | undefined;
1567
- };
1568
- taggedMemberIds?: number[] | undefined;
1569
- foodAnalysis?: {
1570
- code: string;
1571
- label: string;
1572
- confidence: number;
1573
- tsUtc?: string | undefined;
1574
- } | undefined;
1575
- }>, z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1576
- entity: z.ZodLiteral<"article">;
1577
- id: z.ZodBranded<z.ZodNumber, "ArticleId">;
1578
- }, "strip", z.ZodTypeAny, {
1579
- id: number & z.BRAND<"ArticleId">;
1580
- entity: "article";
1581
- }, {
1582
- id: number;
1583
- entity: "article";
1584
- }>, z.ZodObject<{
1585
- entity: z.ZodLiteral<"comment">;
1586
- id: z.ZodBranded<z.ZodNumber, "CommentId">;
1587
- }, "strip", z.ZodTypeAny, {
1588
- id: number & z.BRAND<"CommentId">;
1589
- entity: "comment";
1590
- }, {
1591
- id: number;
1592
- entity: "comment";
1593
- }>, z.ZodObject<{
1594
- entity: z.ZodLiteral<"recruit">;
1595
- id: z.ZodBranded<z.ZodNumber, "RecruitId">;
1596
- }, "strip", z.ZodTypeAny, {
1597
- id: number & z.BRAND<"RecruitId">;
1598
- entity: "recruit";
1599
- }, {
1600
- id: number;
1601
- entity: "recruit";
1602
- }>, z.ZodObject<{
1603
- entity: z.ZodLiteral<"invitation">;
1604
- id: z.ZodBranded<z.ZodNumber, "InvitationId">;
1605
- }, "strip", z.ZodTypeAny, {
1606
- id: number & z.BRAND<"InvitationId">;
1607
- entity: "invitation";
1608
- }, {
1609
- id: number;
1610
- entity: "invitation";
1611
- }>, z.ZodObject<{
1612
- entity: z.ZodLiteral<"subscription">;
1613
- id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
1614
- }, "strip", z.ZodTypeAny, {
1615
- id: number & z.BRAND<"SubscriptionId">;
1616
- entity: "subscription";
1617
- }, {
1618
- id: number;
1619
- entity: "subscription";
1620
- }>, z.ZodObject<{
1621
- entity: z.ZodLiteral<"coupon">;
1622
- id: z.ZodBranded<z.ZodNumber, "CouponId">;
1623
- }, "strip", z.ZodTypeAny, {
1624
- id: number & z.BRAND<"CouponId">;
1625
- entity: "coupon";
1626
- }, {
1627
- id: number;
1628
- entity: "coupon";
1629
- }>, z.ZodObject<{
1630
- entity: z.ZodLiteral<"plan">;
1631
- id: z.ZodBranded<z.ZodNumber, "PlanId">;
1632
- }, "strip", z.ZodTypeAny, {
1633
- id: number & z.BRAND<"PlanId">;
1634
- entity: "plan";
1635
- }, {
1636
- id: number;
1637
- entity: "plan";
1638
- }>]>>;
1639
- readonly like: EndpointContract<"POST", "/articles/:articleId/like", z.ZodObject<{
1640
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1641
- }, "strip", z.ZodTypeAny, {
1642
- articleId: number & z.BRAND<"ArticleId">;
1643
- }, {
1644
- articleId: number;
1645
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1646
- liked: z.ZodBoolean;
1647
- likeCount: z.ZodNumber;
1648
- }, "strip", z.ZodTypeAny, {
1649
- liked: boolean;
1650
- likeCount: number;
1651
- }, {
1652
- liked: boolean;
1653
- likeCount: number;
1654
- }>>;
1655
- readonly createComment: EndpointContract<"POST", "/articles/:articleId/comments", z.ZodObject<{
1656
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1657
- }, "strip", z.ZodTypeAny, {
1658
- articleId: number & z.BRAND<"ArticleId">;
1659
- }, {
1660
- articleId: number;
1661
- }>, z.ZodUndefined, z.ZodObject<{
1662
- content: z.ZodString;
1663
- parentCommentId: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodNumber, "CommentId">>>;
1664
- }, "strip", z.ZodTypeAny, {
1665
- content: string;
1666
- parentCommentId?: (number & z.BRAND<"CommentId">) | null | undefined;
1667
- }, {
1668
- content: string;
1669
- parentCommentId?: number | null | undefined;
1670
- }>, z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1671
- entity: z.ZodLiteral<"article">;
1672
- id: z.ZodBranded<z.ZodNumber, "ArticleId">;
1673
- }, "strip", z.ZodTypeAny, {
1674
- id: number & z.BRAND<"ArticleId">;
1675
- entity: "article";
1676
- }, {
1677
- id: number;
1678
- entity: "article";
1679
- }>, z.ZodObject<{
1680
- entity: z.ZodLiteral<"comment">;
1681
- id: z.ZodBranded<z.ZodNumber, "CommentId">;
1682
- }, "strip", z.ZodTypeAny, {
1683
- id: number & z.BRAND<"CommentId">;
1684
- entity: "comment";
1685
- }, {
1686
- id: number;
1687
- entity: "comment";
1688
- }>, z.ZodObject<{
1689
- entity: z.ZodLiteral<"recruit">;
1690
- id: z.ZodBranded<z.ZodNumber, "RecruitId">;
1691
- }, "strip", z.ZodTypeAny, {
1692
- id: number & z.BRAND<"RecruitId">;
1693
- entity: "recruit";
1694
- }, {
1695
- id: number;
1696
- entity: "recruit";
1697
- }>, z.ZodObject<{
1698
- entity: z.ZodLiteral<"invitation">;
1699
- id: z.ZodBranded<z.ZodNumber, "InvitationId">;
1700
- }, "strip", z.ZodTypeAny, {
1701
- id: number & z.BRAND<"InvitationId">;
1702
- entity: "invitation";
1703
- }, {
1704
- id: number;
1705
- entity: "invitation";
1706
- }>, z.ZodObject<{
1707
- entity: z.ZodLiteral<"subscription">;
1708
- id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
1709
- }, "strip", z.ZodTypeAny, {
1710
- id: number & z.BRAND<"SubscriptionId">;
1711
- entity: "subscription";
1712
- }, {
1713
- id: number;
1714
- entity: "subscription";
1715
- }>, z.ZodObject<{
1716
- entity: z.ZodLiteral<"coupon">;
1717
- id: z.ZodBranded<z.ZodNumber, "CouponId">;
1718
- }, "strip", z.ZodTypeAny, {
1719
- id: number & z.BRAND<"CouponId">;
1720
- entity: "coupon";
1721
- }, {
1722
- id: number;
1723
- entity: "coupon";
1724
- }>, z.ZodObject<{
1725
- entity: z.ZodLiteral<"plan">;
1726
- id: z.ZodBranded<z.ZodNumber, "PlanId">;
1727
- }, "strip", z.ZodTypeAny, {
1728
- id: number & z.BRAND<"PlanId">;
1729
- entity: "plan";
1730
- }, {
1731
- id: number;
1732
- entity: "plan";
1733
- }>]>>;
1734
- readonly presignArticleImage: EndpointContract<"POST", "/uploads/presign-article", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1735
- contentType: z.ZodString;
1736
- }, "strip", z.ZodTypeAny, {
1737
- contentType: string;
1738
- }, {
1739
- contentType: string;
1740
- }>, z.ZodObject<{
1741
- key: z.ZodString;
1742
- putUrl: z.ZodString;
1743
- cdnUrl: z.ZodString;
1744
- }, "strip", z.ZodTypeAny, {
1745
- key: string;
1746
- putUrl: string;
1747
- cdnUrl: string;
1748
- }, {
1749
- key: string;
1750
- putUrl: string;
1751
- cdnUrl: string;
1752
- }>>;
1753
- readonly delete: EndpointContract<"DELETE", "/articles/:articleId", z.ZodObject<{
1754
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1755
- }, "strip", z.ZodTypeAny, {
1756
- articleId: number & z.BRAND<"ArticleId">;
1757
- }, {
1758
- articleId: number;
1759
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1760
- readonly deleteComment: EndpointContract<"DELETE", "/articles/comments/:commentId", z.ZodObject<{
1761
- commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
1762
- }, "strip", z.ZodTypeAny, {
1763
- commentId: number & z.BRAND<"CommentId">;
1764
- }, {
1765
- commentId: number;
1766
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1767
- };
1768
- readonly recruits: {
1769
- readonly list: EndpointContract<"GET", "/recruits", z.ZodUndefined, z.ZodObject<{
1770
- page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1771
- size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1772
- } & {
1773
- sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "deadline", "participantCount"]>>;
1774
- direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
1775
- }, "strip", z.ZodTypeAny, {
1776
- page: number;
1777
- size: number;
1778
- sortBy: "createdAt" | "participantCount" | "deadline";
1779
- direction: "asc" | "desc";
1780
- }, {
1781
- page?: number | undefined;
1782
- size?: number | undefined;
1783
- sortBy?: "createdAt" | "participantCount" | "deadline" | undefined;
1784
- direction?: "asc" | "desc" | undefined;
1785
- }>, z.ZodUndefined, z.ZodObject<{
1786
- items: z.ZodArray<z.ZodObject<{
1787
- targetCount: z.ZodNumber;
1788
- meetingAt: z.ZodString;
1789
- location: z.ZodString;
1790
- message: z.ZodString;
1791
- recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1792
- status: z.ZodEnum<["OPEN", "CLOSED", "EXPIRED"]>;
1793
- createdAt: z.ZodString;
1794
- expiredAt: z.ZodString;
1795
- updatedAt: z.ZodString;
1796
- author: z.ZodObject<{
1797
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1798
- username: z.ZodString;
1799
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1800
- }, "strip", z.ZodTypeAny, {
1801
- memberId: number & z.BRAND<"MemberId">;
1802
- username: string;
1803
- profileImageUrl?: string | null | undefined;
1804
- }, {
1805
- memberId: number;
1806
- username: string;
1807
- profileImageUrl?: string | null | undefined;
1808
- }>;
1809
- participants: z.ZodArray<z.ZodObject<{
1810
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1811
- username: z.ZodString;
1812
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1813
- }, "strip", z.ZodTypeAny, {
1814
- memberId: number & z.BRAND<"MemberId">;
1815
- username: string;
1816
- profileImageUrl?: string | null | undefined;
1817
- }, {
1818
- memberId: number;
1819
- username: string;
1820
- profileImageUrl?: string | null | undefined;
1821
- }>, "many">;
1822
- }, "strip", z.ZodTypeAny, {
1823
- message: string;
1824
- status: "OPEN" | "CLOSED" | "EXPIRED";
1825
- createdAt: string;
1826
- author: {
1827
- memberId: number & z.BRAND<"MemberId">;
1828
- username: string;
1829
- profileImageUrl?: string | null | undefined;
1830
- };
1831
- updatedAt: string;
1832
- location: string;
1833
- participants: {
1834
- memberId: number & z.BRAND<"MemberId">;
1835
- username: string;
1836
- profileImageUrl?: string | null | undefined;
1837
- }[];
1838
- meetingAt: string;
1839
- targetCount: number;
1840
- recruitId: number & z.BRAND<"RecruitId">;
1841
- expiredAt: string;
1842
- }, {
1843
- message: string;
1844
- status: "OPEN" | "CLOSED" | "EXPIRED";
1845
- createdAt: string;
1846
- author: {
1847
- memberId: number;
1848
- username: string;
1849
- profileImageUrl?: string | null | undefined;
1850
- };
1851
- updatedAt: string;
1852
- location: string;
1853
- participants: {
1854
- memberId: number;
1855
- username: string;
1856
- profileImageUrl?: string | null | undefined;
1857
- }[];
1858
- meetingAt: string;
1859
- targetCount: number;
1860
- recruitId: number;
1861
- expiredAt: string;
1862
- }>, "many">;
1863
- meta: z.ZodObject<{
1864
- page: z.ZodNumber;
1865
- size: z.ZodNumber;
1866
- totalItems: z.ZodNumber;
1867
- totalPages: z.ZodNumber;
1868
- hasNext: z.ZodBoolean;
1869
- hasPrevious: z.ZodBoolean;
1870
- }, "strip", z.ZodTypeAny, {
1871
- page: number;
1872
- size: number;
1873
- totalItems: number;
1874
- totalPages: number;
1875
- hasNext: boolean;
1876
- hasPrevious: boolean;
1877
- }, {
1878
- page: number;
1879
- size: number;
1880
- totalItems: number;
1881
- totalPages: number;
1882
- hasNext: boolean;
1883
- hasPrevious: boolean;
1884
- }>;
1885
- }, "strip", z.ZodTypeAny, {
1886
- items: {
1887
- message: string;
1888
- status: "OPEN" | "CLOSED" | "EXPIRED";
1889
- createdAt: string;
1890
- author: {
1891
- memberId: number & z.BRAND<"MemberId">;
1892
- username: string;
1893
- profileImageUrl?: string | null | undefined;
1894
- };
1895
- updatedAt: string;
1896
- location: string;
1897
- participants: {
1898
- memberId: number & z.BRAND<"MemberId">;
1899
- username: string;
1900
- profileImageUrl?: string | null | undefined;
1901
- }[];
1902
- meetingAt: string;
1903
- targetCount: number;
1904
- recruitId: number & z.BRAND<"RecruitId">;
1905
- expiredAt: string;
1906
- }[];
1907
- meta: {
1908
- page: number;
1909
- size: number;
1910
- totalItems: number;
1911
- totalPages: number;
1912
- hasNext: boolean;
1913
- hasPrevious: boolean;
1914
- };
1915
- }, {
1916
- items: {
1917
- message: string;
1918
- status: "OPEN" | "CLOSED" | "EXPIRED";
1919
- createdAt: string;
1920
- author: {
1921
- memberId: number;
1922
- username: string;
1923
- profileImageUrl?: string | null | undefined;
1924
- };
1925
- updatedAt: string;
1926
- location: string;
1927
- participants: {
1928
- memberId: number;
1929
- username: string;
1930
- profileImageUrl?: string | null | undefined;
1931
- }[];
1932
- meetingAt: string;
1933
- targetCount: number;
1934
- recruitId: number;
1935
- expiredAt: string;
1936
- }[];
1937
- meta: {
1938
- page: number;
1939
- size: number;
1940
- totalItems: number;
1941
- totalPages: number;
1942
- hasNext: boolean;
1943
- hasPrevious: boolean;
1944
- };
1945
- }>>;
1946
- readonly create: EndpointContract<"POST", "/recruits", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1947
- targetCount: z.ZodNumber;
1948
- meetingAt: z.ZodString;
1949
- location: z.ZodString;
1950
- message: z.ZodString;
1951
- }, "strip", z.ZodTypeAny, {
1952
- message: string;
1953
- location: string;
1954
- meetingAt: string;
1955
- targetCount: number;
1956
- }, {
1957
- message: string;
1958
- location: string;
1959
- meetingAt: string;
1960
- targetCount: number;
1961
- }>, z.ZodObject<{
1962
- recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1963
- }, "strip", z.ZodTypeAny, {
1964
- recruitId: number & z.BRAND<"RecruitId">;
1965
- }, {
1966
- recruitId: number;
1967
- }>>;
1968
- readonly join: EndpointContract<"POST", "/recruits/:recruitId/join", z.ZodObject<{
1969
- recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1970
- }, "strip", z.ZodTypeAny, {
1971
- recruitId: number & z.BRAND<"RecruitId">;
1972
- }, {
1973
- recruitId: number;
1974
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1975
- readonly close: EndpointContract<"POST", "/recruits/:recruitId/close", z.ZodObject<{
1976
- recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1977
- }, "strip", z.ZodTypeAny, {
1978
- recruitId: number & z.BRAND<"RecruitId">;
1979
- }, {
1980
- recruitId: number;
1981
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1982
- };
1983
- readonly invitations: {
1984
- readonly list: EndpointContract<"GET", "/invitations", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
1985
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
1986
- inviterName: z.ZodString;
1987
- inviterProfileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1988
- }, "strip", z.ZodTypeAny, {
1989
- invitationId: number & z.BRAND<"InvitationId">;
1990
- inviterName: string;
1991
- inviterProfileImageUrl?: string | null | undefined;
1992
- }, {
1993
- invitationId: number;
1994
- inviterName: string;
1995
- inviterProfileImageUrl?: string | null | undefined;
1996
- }>, "many">>;
1997
- readonly send: EndpointContract<"POST", "/invitations/send", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1998
- inviteeId: z.ZodBranded<z.ZodNumber, "MemberId">;
1999
- message: z.ZodString;
2000
- }, "strip", z.ZodTypeAny, {
2001
- message: string;
2002
- inviteeId: number & z.BRAND<"MemberId">;
2003
- }, {
2004
- message: string;
2005
- inviteeId: number;
2006
- }>, z.ZodObject<{
2007
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
2008
- }, "strip", z.ZodTypeAny, {
2009
- invitationId: number & z.BRAND<"InvitationId">;
2010
- }, {
2011
- invitationId: number;
2012
- }>>;
2013
- readonly accept: EndpointContract<"POST", "/invitations/:invitationId/accept", z.ZodObject<{
2014
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
2015
- }, "strip", z.ZodTypeAny, {
2016
- invitationId: number & z.BRAND<"InvitationId">;
2017
- }, {
2018
- invitationId: number;
2019
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2020
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
2021
- room: z.ZodObject<{
2022
- type: z.ZodLiteral<"invitation">;
2023
- roomId: z.ZodBranded<z.ZodString, "RoomId">;
2024
- }, "strip", z.ZodTypeAny, {
2025
- type: "invitation";
2026
- roomId: string & z.BRAND<"RoomId">;
2027
- }, {
2028
- type: "invitation";
2029
- roomId: string;
2030
- }>;
2031
- }, "strip", z.ZodTypeAny, {
2032
- invitationId: number & z.BRAND<"InvitationId">;
2033
- room: {
2034
- type: "invitation";
2035
- roomId: string & z.BRAND<"RoomId">;
2036
- };
2037
- }, {
2038
- invitationId: number;
2039
- room: {
2040
- type: "invitation";
2041
- roomId: string;
2042
- };
2043
- }>>;
2044
- readonly reject: EndpointContract<"POST", "/invitations/:invitationId/reject", z.ZodObject<{
2045
- invitationId: z.ZodBranded<z.ZodNumber, "InvitationId">;
2046
- }, "strip", z.ZodTypeAny, {
2047
- invitationId: number & z.BRAND<"InvitationId">;
2048
- }, {
2049
- invitationId: number;
2050
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2051
- };
2052
- readonly plans: {
2053
- readonly list: EndpointContract<"GET", "/plans", z.ZodUndefined, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2054
- planId: z.ZodBranded<z.ZodNumber, "PlanId">;
2055
- meetingAt: z.ZodString;
2056
- location: z.ZodNullable<z.ZodObject<{
2057
- locationId: z.ZodBranded<z.ZodString, "LocationId">;
2058
- placeName: z.ZodString;
2059
- lat: z.ZodNumber;
2060
- lng: z.ZodNumber;
2061
- address: z.ZodString;
2062
- }, "strip", z.ZodTypeAny, {
2063
- placeName: string;
2064
- lat: number;
2065
- lng: number;
2066
- locationId: string & z.BRAND<"LocationId">;
2067
- address: string;
2068
- }, {
2069
- placeName: string;
2070
- lat: number;
2071
- lng: number;
2072
- locationId: string;
2073
- address: string;
2074
- }>>;
2075
- restaurant: z.ZodNullable<z.ZodObject<{
2076
- restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
2077
- placeName: z.ZodString;
2078
- categoryName: z.ZodString;
2079
- categoryGroupName: z.ZodString;
2080
- distance: z.ZodOptional<z.ZodString>;
2081
- roadAddressName: z.ZodString;
2082
- addressName: z.ZodString;
2083
- phone: z.ZodNullable<z.ZodString>;
2084
- placeUrl: z.ZodNullable<z.ZodString>;
2085
- lat: z.ZodNumber;
2086
- lng: z.ZodNumber;
2087
- }, "strip", z.ZodTypeAny, {
2088
- restaurantId: string & z.BRAND<"RestaurantId">;
2089
- placeName: string;
2090
- categoryName: string;
2091
- categoryGroupName: string;
2092
- roadAddressName: string;
2093
- addressName: string;
2094
- phone: string | null;
2095
- placeUrl: string | null;
2096
- lat: number;
2097
- lng: number;
2098
- distance?: string | undefined;
2099
- }, {
2100
- restaurantId: string;
2101
- placeName: string;
2102
- categoryName: string;
2103
- categoryGroupName: string;
2104
- roadAddressName: string;
2105
- addressName: string;
2106
- phone: string | null;
2107
- placeUrl: string | null;
2108
- lat: number;
2109
- lng: number;
2110
- distance?: string | undefined;
2111
- }>>;
2112
- author: z.ZodObject<{
2113
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2114
- username: z.ZodString;
2115
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2116
- }, "strip", z.ZodTypeAny, {
2117
- memberId: number & z.BRAND<"MemberId">;
2118
- username: string;
2119
- profileImageUrl?: string | null | undefined;
2120
- }, {
2121
- memberId: number;
2122
- username: string;
2123
- profileImageUrl?: string | null | undefined;
2124
- }>;
2125
- participants: z.ZodArray<z.ZodObject<{
2126
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2127
- username: z.ZodString;
2128
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2129
- }, "strip", z.ZodTypeAny, {
2130
- memberId: number & z.BRAND<"MemberId">;
2131
- username: string;
2132
- profileImageUrl?: string | null | undefined;
2133
- }, {
2134
- memberId: number;
2135
- username: string;
2136
- profileImageUrl?: string | null | undefined;
2137
- }>, "many">;
2138
- status: z.ZodEnum<["PLANNING", "COMPLETED"]>;
2139
- type: z.ZodEnum<["RECRUIT", "INVITATION"]>;
2140
- createdAt: z.ZodString;
2141
- updatedAt: z.ZodString;
2142
- }, "strip", z.ZodTypeAny, {
2143
- type: "RECRUIT" | "INVITATION";
2144
- status: "PLANNING" | "COMPLETED";
2145
- createdAt: string;
2146
- restaurant: {
2147
- restaurantId: string & z.BRAND<"RestaurantId">;
2148
- placeName: string;
2149
- categoryName: string;
2150
- categoryGroupName: string;
2151
- roadAddressName: string;
2152
- addressName: string;
2153
- phone: string | null;
2154
- placeUrl: string | null;
2155
- lat: number;
2156
- lng: number;
2157
- distance?: string | undefined;
2158
- } | null;
2159
- author: {
2160
- memberId: number & z.BRAND<"MemberId">;
2161
- username: string;
2162
- profileImageUrl?: string | null | undefined;
2163
- };
2164
- updatedAt: string;
2165
- location: {
2166
- placeName: string;
2167
- lat: number;
2168
- lng: number;
2169
- locationId: string & z.BRAND<"LocationId">;
2170
- address: string;
2171
- } | null;
2172
- participants: {
2173
- memberId: number & z.BRAND<"MemberId">;
2174
- username: string;
2175
- profileImageUrl?: string | null | undefined;
2176
- }[];
2177
- meetingAt: string;
2178
- planId: number & z.BRAND<"PlanId">;
2179
- }, {
2180
- type: "RECRUIT" | "INVITATION";
2181
- status: "PLANNING" | "COMPLETED";
2182
- createdAt: string;
2183
- restaurant: {
2184
- restaurantId: string;
2185
- placeName: string;
2186
- categoryName: string;
2187
- categoryGroupName: string;
2188
- roadAddressName: string;
2189
- addressName: string;
2190
- phone: string | null;
2191
- placeUrl: string | null;
2192
- lat: number;
2193
- lng: number;
2194
- distance?: string | undefined;
2195
- } | null;
2196
- author: {
2197
- memberId: number;
2198
- username: string;
2199
- profileImageUrl?: string | null | undefined;
2200
- };
2201
- updatedAt: string;
2202
- location: {
2203
- placeName: string;
2204
- lat: number;
2205
- lng: number;
2206
- locationId: string;
2207
- address: string;
2208
- } | null;
2209
- participants: {
2210
- memberId: number;
2211
- username: string;
2212
- profileImageUrl?: string | null | undefined;
2213
- }[];
2214
- meetingAt: string;
2215
- planId: number;
2216
- }>, "many">>;
2217
- readonly detail: EndpointContract<"GET", "/plans/:planId", z.ZodObject<{
2218
- planId: z.ZodBranded<z.ZodNumber, "PlanId">;
2219
- }, "strip", z.ZodTypeAny, {
2220
- planId: number & z.BRAND<"PlanId">;
2221
- }, {
2222
- planId: number;
2223
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2224
- planId: z.ZodBranded<z.ZodNumber, "PlanId">;
2225
- meetingAt: z.ZodString;
2226
- location: z.ZodNullable<z.ZodObject<{
2227
- locationId: z.ZodBranded<z.ZodString, "LocationId">;
2228
- placeName: z.ZodString;
2229
- lat: z.ZodNumber;
2230
- lng: z.ZodNumber;
2231
- address: z.ZodString;
2232
- }, "strip", z.ZodTypeAny, {
2233
- placeName: string;
2234
- lat: number;
2235
- lng: number;
2236
- locationId: string & z.BRAND<"LocationId">;
2237
- address: string;
2238
- }, {
2239
- placeName: string;
2240
- lat: number;
2241
- lng: number;
2242
- locationId: string;
2243
- address: string;
2244
- }>>;
2245
- restaurant: z.ZodNullable<z.ZodObject<{
2246
- restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
2247
- placeName: z.ZodString;
2248
- categoryName: z.ZodString;
2249
- categoryGroupName: z.ZodString;
2250
- distance: z.ZodOptional<z.ZodString>;
2251
- roadAddressName: z.ZodString;
2252
- addressName: z.ZodString;
2253
- phone: z.ZodNullable<z.ZodString>;
2254
- placeUrl: z.ZodNullable<z.ZodString>;
2255
- lat: z.ZodNumber;
2256
- lng: z.ZodNumber;
2257
- }, "strip", z.ZodTypeAny, {
2258
- restaurantId: string & z.BRAND<"RestaurantId">;
2259
- placeName: string;
2260
- categoryName: string;
2261
- categoryGroupName: string;
2262
- roadAddressName: string;
2263
- addressName: string;
2264
- phone: string | null;
2265
- placeUrl: string | null;
2266
- lat: number;
2267
- lng: number;
2268
- distance?: string | undefined;
2269
- }, {
2270
- restaurantId: string;
2271
- placeName: string;
2272
- categoryName: string;
2273
- categoryGroupName: string;
2274
- roadAddressName: string;
2275
- addressName: string;
2276
- phone: string | null;
2277
- placeUrl: string | null;
2278
- lat: number;
2279
- lng: number;
2280
- distance?: string | undefined;
2281
- }>>;
2282
- author: z.ZodObject<{
2283
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2284
- username: z.ZodString;
2285
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2286
- }, "strip", z.ZodTypeAny, {
2287
- memberId: number & z.BRAND<"MemberId">;
2288
- username: string;
2289
- profileImageUrl?: string | null | undefined;
2290
- }, {
2291
- memberId: number;
2292
- username: string;
2293
- profileImageUrl?: string | null | undefined;
2294
- }>;
2295
- participants: z.ZodArray<z.ZodObject<{
2296
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2297
- username: z.ZodString;
2298
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2299
- }, "strip", z.ZodTypeAny, {
2300
- memberId: number & z.BRAND<"MemberId">;
2301
- username: string;
2302
- profileImageUrl?: string | null | undefined;
2303
- }, {
2304
- memberId: number;
2305
- username: string;
2306
- profileImageUrl?: string | null | undefined;
2307
- }>, "many">;
2308
- status: z.ZodEnum<["PLANNING", "COMPLETED"]>;
2309
- type: z.ZodEnum<["RECRUIT", "INVITATION"]>;
2310
- createdAt: z.ZodString;
2311
- updatedAt: z.ZodString;
2312
- }, "strip", z.ZodTypeAny, {
2313
- type: "RECRUIT" | "INVITATION";
2314
- status: "PLANNING" | "COMPLETED";
2315
- createdAt: string;
2316
- restaurant: {
2317
- restaurantId: string & z.BRAND<"RestaurantId">;
2318
- placeName: string;
2319
- categoryName: string;
2320
- categoryGroupName: string;
2321
- roadAddressName: string;
2322
- addressName: string;
2323
- phone: string | null;
2324
- placeUrl: string | null;
2325
- lat: number;
2326
- lng: number;
2327
- distance?: string | undefined;
2328
- } | null;
2329
- author: {
2330
- memberId: number & z.BRAND<"MemberId">;
2331
- username: string;
2332
- profileImageUrl?: string | null | undefined;
2333
- };
2334
- updatedAt: string;
2335
- location: {
2336
- placeName: string;
2337
- lat: number;
2338
- lng: number;
2339
- locationId: string & z.BRAND<"LocationId">;
2340
- address: string;
2341
- } | null;
2342
- participants: {
2343
- memberId: number & z.BRAND<"MemberId">;
2344
- username: string;
2345
- profileImageUrl?: string | null | undefined;
2346
- }[];
2347
- meetingAt: string;
2348
- planId: number & z.BRAND<"PlanId">;
2349
- }, {
2350
- type: "RECRUIT" | "INVITATION";
2351
- status: "PLANNING" | "COMPLETED";
2352
- createdAt: string;
2353
- restaurant: {
2354
- restaurantId: string;
2355
- placeName: string;
2356
- categoryName: string;
2357
- categoryGroupName: string;
2358
- roadAddressName: string;
2359
- addressName: string;
2360
- phone: string | null;
2361
- placeUrl: string | null;
2362
- lat: number;
2363
- lng: number;
2364
- distance?: string | undefined;
2365
- } | null;
2366
- author: {
2367
- memberId: number;
2368
- username: string;
2369
- profileImageUrl?: string | null | undefined;
2370
- };
2371
- updatedAt: string;
2372
- location: {
2373
- placeName: string;
2374
- lat: number;
2375
- lng: number;
2376
- locationId: string;
2377
- address: string;
2378
- } | null;
2379
- participants: {
2380
- memberId: number;
2381
- username: string;
2382
- profileImageUrl?: string | null | undefined;
2383
- }[];
2384
- meetingAt: string;
2385
- planId: number;
2386
- }>>;
2387
- readonly cancel: EndpointContract<"PATCH", "/plans/:planId/cancel", z.ZodObject<{
2388
- planId: z.ZodBranded<z.ZodNumber, "PlanId">;
2389
- }, "strip", z.ZodTypeAny, {
2390
- planId: number & z.BRAND<"PlanId">;
2391
- }, {
2392
- planId: number;
2393
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2394
- };
2395
- readonly friends: {
2396
- readonly list: EndpointContract<"GET", "/friends", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2397
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2398
- username: z.ZodString;
2399
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2400
- } & {
2401
- friendSince: z.ZodString;
2402
- }, "strip", z.ZodTypeAny, {
2403
- memberId: number & z.BRAND<"MemberId">;
2404
- username: string;
2405
- friendSince: string;
2406
- profileImageUrl?: string | null | undefined;
2407
- }, {
2408
- memberId: number;
2409
- username: string;
2410
- friendSince: string;
2411
- profileImageUrl?: string | null | undefined;
2412
- }>, "many">>;
2413
- readonly blockList: EndpointContract<"GET", "/friends/blocks", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2414
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2415
- username: z.ZodString;
2416
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2417
- } & {
2418
- blockedAt: z.ZodString;
2419
- }, "strip", z.ZodTypeAny, {
2420
- memberId: number & z.BRAND<"MemberId">;
2421
- username: string;
2422
- blockedAt: string;
2423
- profileImageUrl?: string | null | undefined;
2424
- }, {
2425
- memberId: number;
2426
- username: string;
2427
- blockedAt: string;
2428
- profileImageUrl?: string | null | undefined;
2429
- }>, "many">>;
2430
- readonly search: EndpointContract<"GET", "/friends/search", z.ZodUndefined, z.ZodObject<{
2431
- email: z.ZodOptional<z.ZodString>;
2432
- username: z.ZodOptional<z.ZodString>;
2433
- }, "strip", z.ZodTypeAny, {
2434
- username?: string | undefined;
2435
- email?: string | undefined;
2436
- }, {
2437
- username?: string | undefined;
2438
- email?: string | undefined;
2439
- }>, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2440
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2441
- username: z.ZodString;
2442
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2443
- }, "strip", z.ZodTypeAny, {
2444
- memberId: number & z.BRAND<"MemberId">;
2445
- username: string;
2446
- profileImageUrl?: string | null | undefined;
2447
- }, {
2448
- memberId: number;
2449
- username: string;
2450
- profileImageUrl?: string | null | undefined;
2451
- }>, "many">>;
2452
- readonly incomingRequest: EndpointContract<"GET", "/friends/requests/incoming", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2453
- requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2454
- requester: z.ZodObject<{
2455
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2456
- username: z.ZodString;
2457
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2458
- }, "strip", z.ZodTypeAny, {
2459
- memberId: number & z.BRAND<"MemberId">;
2460
- username: string;
2461
- profileImageUrl?: string | null | undefined;
2462
- }, {
2463
- memberId: number;
2464
- username: string;
2465
- profileImageUrl?: string | null | undefined;
2466
- }>;
2467
- recipient: z.ZodObject<{
2468
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2469
- username: z.ZodString;
2470
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2471
- }, "strip", z.ZodTypeAny, {
2472
- memberId: number & z.BRAND<"MemberId">;
2473
- username: string;
2474
- profileImageUrl?: string | null | undefined;
2475
- }, {
2476
- memberId: number;
2477
- username: string;
2478
- profileImageUrl?: string | null | undefined;
2479
- }>;
2480
- status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
2481
- requestedAt: z.ZodString;
2482
- }, "strip", z.ZodTypeAny, {
2483
- status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
2484
- requestId: number & z.BRAND<"FriendRequestId">;
2485
- requester: {
2486
- memberId: number & z.BRAND<"MemberId">;
2487
- username: string;
2488
- profileImageUrl?: string | null | undefined;
2489
- };
2490
- recipient: {
2491
- memberId: number & z.BRAND<"MemberId">;
2492
- username: string;
2493
- profileImageUrl?: string | null | undefined;
2494
- };
2495
- requestedAt: string;
2496
- }, {
2497
- status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
2498
- requestId: number;
2499
- requester: {
2500
- memberId: number;
2501
- username: string;
2502
- profileImageUrl?: string | null | undefined;
2503
- };
2504
- recipient: {
2505
- memberId: number;
2506
- username: string;
2507
- profileImageUrl?: string | null | undefined;
2508
- };
2509
- requestedAt: string;
2510
- }>, "many">>;
2511
- readonly outgoingRequest: EndpointContract<"GET", "/friends/requests/outgoing", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2512
- requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2513
- requester: z.ZodObject<{
2514
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2515
- username: z.ZodString;
2516
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2517
- }, "strip", z.ZodTypeAny, {
2518
- memberId: number & z.BRAND<"MemberId">;
2519
- username: string;
2520
- profileImageUrl?: string | null | undefined;
2521
- }, {
2522
- memberId: number;
2523
- username: string;
2524
- profileImageUrl?: string | null | undefined;
2525
- }>;
2526
- recipient: z.ZodObject<{
2527
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2528
- username: z.ZodString;
2529
- profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2530
- }, "strip", z.ZodTypeAny, {
2531
- memberId: number & z.BRAND<"MemberId">;
2532
- username: string;
2533
- profileImageUrl?: string | null | undefined;
2534
- }, {
2535
- memberId: number;
2536
- username: string;
2537
- profileImageUrl?: string | null | undefined;
2538
- }>;
2539
- status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
2540
- requestedAt: z.ZodString;
2541
- }, "strip", z.ZodTypeAny, {
2542
- status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
2543
- requestId: number & z.BRAND<"FriendRequestId">;
2544
- requester: {
2545
- memberId: number & z.BRAND<"MemberId">;
2546
- username: string;
2547
- profileImageUrl?: string | null | undefined;
2548
- };
2549
- recipient: {
2550
- memberId: number & z.BRAND<"MemberId">;
2551
- username: string;
2552
- profileImageUrl?: string | null | undefined;
2553
- };
2554
- requestedAt: string;
2555
- }, {
2556
- status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
2557
- requestId: number;
2558
- requester: {
2559
- memberId: number;
2560
- username: string;
2561
- profileImageUrl?: string | null | undefined;
2562
- };
2563
- recipient: {
2564
- memberId: number;
2565
- username: string;
2566
- profileImageUrl?: string | null | undefined;
2567
- };
2568
- requestedAt: string;
2569
- }>, "many">>;
2570
- readonly sendRequest: EndpointContract<"POST", "/friends/requests/:memberId", z.ZodObject<{
2571
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2572
- }, "strip", z.ZodTypeAny, {
2573
- memberId: number & z.BRAND<"MemberId">;
2574
- }, {
2575
- memberId: number;
2576
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2577
- readonly acceptRequest: EndpointContract<"POST", "/friends/requests/:requestId/accept", z.ZodObject<{
2578
- requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2579
- }, "strip", z.ZodTypeAny, {
2580
- requestId: number & z.BRAND<"FriendRequestId">;
2581
- }, {
2582
- requestId: number;
2583
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2584
- readonly rejectRequest: EndpointContract<"POST", "/friends/requests/:requestId/reject", z.ZodObject<{
2585
- requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2586
- }, "strip", z.ZodTypeAny, {
2587
- requestId: number & z.BRAND<"FriendRequestId">;
2588
- }, {
2589
- requestId: number;
2590
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2591
- readonly block: EndpointContract<"POST", "/friends/blocks/:memberId", z.ZodObject<{
2592
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2593
- }, "strip", z.ZodTypeAny, {
2594
- memberId: number & z.BRAND<"MemberId">;
2595
- }, {
2596
- memberId: number;
2597
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2598
- readonly cancelRequest: EndpointContract<"DELETE", "/friends/requests/:requestId", z.ZodObject<{
2599
- requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2600
- }, "strip", z.ZodTypeAny, {
2601
- requestId: number & z.BRAND<"FriendRequestId">;
2602
- }, {
2603
- requestId: number;
2604
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2605
- readonly unblock: EndpointContract<"DELETE", "/friends/blocks/:memberId", z.ZodObject<{
2606
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2607
- }, "strip", z.ZodTypeAny, {
2608
- memberId: number & z.BRAND<"MemberId">;
2609
- }, {
2610
- memberId: number;
2611
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2612
- readonly unfriend: EndpointContract<"DELETE", "/friends/:memberId", z.ZodObject<{
2613
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2614
- }, "strip", z.ZodTypeAny, {
2615
- memberId: number & z.BRAND<"MemberId">;
2616
- }, {
2617
- memberId: number;
2618
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2619
- };
2620
- readonly coupons: {
2621
- readonly list: EndpointContract<"GET", "/coupons", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2622
- couponId: z.ZodBranded<z.ZodNumber, "CouponId">;
2623
- title: z.ZodString;
2624
- shopName: z.ZodString;
2625
- type: z.ZodEnum<["DISCOUNT", "SERVICE"]>;
2626
- condition: z.ZodString;
2627
- expiresAt: z.ZodString;
2628
- used: z.ZodBoolean;
2629
- thumbnailUrl: z.ZodString;
2630
- }, "strip", z.ZodTypeAny, {
2631
- type: "DISCOUNT" | "SERVICE";
2632
- expiresAt: string;
2633
- title: string;
2634
- used: boolean;
2635
- couponId: number & z.BRAND<"CouponId">;
2636
- shopName: string;
2637
- condition: string;
2638
- thumbnailUrl: string;
2639
- }, {
2640
- type: "DISCOUNT" | "SERVICE";
2641
- expiresAt: string;
2642
- title: string;
2643
- used: boolean;
2644
- couponId: number;
2645
- shopName: string;
2646
- condition: string;
2647
- thumbnailUrl: string;
2648
- }>, "many">>;
2649
- readonly use: EndpointContract<"POST", "/coupons/:couponId/use", z.ZodObject<{
2650
- couponId: z.ZodBranded<z.ZodNumber, "CouponId">;
2651
- }, "strip", z.ZodTypeAny, {
2652
- couponId: number & z.BRAND<"CouponId">;
2653
- }, {
2654
- couponId: number;
2655
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2656
- };
2657
- readonly challenges: {
2658
- readonly status: EndpointContract<"GET", "/challenges/status", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2659
- week: z.ZodObject<{
2660
- days: z.ZodArray<z.ZodBoolean, "many">;
2661
- completed: z.ZodNumber;
2662
- goal: z.ZodNumber;
2663
- }, "strip", z.ZodTypeAny, {
2664
- days: boolean[];
2665
- completed: number;
2666
- goal: number;
2667
- }, {
2668
- days: boolean[];
2669
- completed: number;
2670
- goal: number;
2671
- }>;
2672
- month: z.ZodObject<{
2673
- count: z.ZodNumber;
2674
- goal: z.ZodNumber;
2675
- }, "strip", z.ZodTypeAny, {
2676
- goal: number;
2677
- count: number;
2678
- }, {
2679
- goal: number;
2680
- count: number;
2681
- }>;
2682
- weekRewardAvailable: z.ZodBoolean;
2683
- monthRewardAvailable: z.ZodBoolean;
2684
- }, "strip", z.ZodTypeAny, {
2685
- week: {
2686
- days: boolean[];
2687
- completed: number;
2688
- goal: number;
2689
- };
2690
- month: {
2691
- goal: number;
2692
- count: number;
2693
- };
2694
- weekRewardAvailable: boolean;
2695
- monthRewardAvailable: boolean;
2696
- }, {
2697
- week: {
2698
- days: boolean[];
2699
- completed: number;
2700
- goal: number;
2701
- };
2702
- month: {
2703
- goal: number;
2704
- count: number;
2705
- };
2706
- weekRewardAvailable: boolean;
2707
- monthRewardAvailable: boolean;
2708
- }>>;
2709
- readonly claimReward: EndpointContract<"POST", "/challenges/rewards", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2710
- type: z.ZodEnum<["WEEK", "MONTH"]>;
2711
- }, "strip", z.ZodTypeAny, {
2712
- type: "WEEK" | "MONTH";
2713
- }, {
2714
- type: "WEEK" | "MONTH";
2715
- }>, z.ZodNull>;
2716
- };
2717
- readonly referrals: {
2718
- readonly list: EndpointContract<"GET", "/referrals", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2719
- code: z.ZodBranded<z.ZodString, "ReferralCode">;
2720
- createdAt: z.ZodString;
2721
- expiresAt: z.ZodString;
2722
- used: z.ZodBoolean;
2723
- usedByMemberId: z.ZodNullable<z.ZodBranded<z.ZodNumber, "MemberId">>;
2724
- usedByUsername: z.ZodNullable<z.ZodString>;
2725
- }, "strip", z.ZodTypeAny, {
2726
- code: string & z.BRAND<"ReferralCode">;
2727
- createdAt: string;
2728
- expiresAt: string;
2729
- used: boolean;
2730
- usedByMemberId: (number & z.BRAND<"MemberId">) | null;
2731
- usedByUsername: string | null;
2732
- }, {
2733
- code: string;
2734
- createdAt: string;
2735
- expiresAt: string;
2736
- used: boolean;
2737
- usedByMemberId: number | null;
2738
- usedByUsername: string | null;
2739
- }>, "many">>;
2740
- readonly create: EndpointContract<"POST", "/referrals", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2741
- code: z.ZodBranded<z.ZodString, "ReferralCode">;
2742
- link: z.ZodString;
2743
- expiresAt: z.ZodString;
2744
- }, "strip", z.ZodTypeAny, {
2745
- code: string & z.BRAND<"ReferralCode">;
2746
- expiresAt: string;
2747
- link: string;
2748
- }, {
2749
- code: string;
2750
- expiresAt: string;
2751
- link: string;
2752
- }>>;
2753
- readonly redeem: EndpointContract<"POST", "/referrals/redeem", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2754
- code: z.ZodBranded<z.ZodString, "ReferralCode">;
2755
- }, "strip", z.ZodTypeAny, {
2756
- code: string & z.BRAND<"ReferralCode">;
2757
- }, {
2758
- code: string;
2759
- }>, z.ZodNull>;
2760
- };
2761
- readonly notifications: {
2762
- readonly list: EndpointContract<"GET", "/notifications", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2763
- notificationId: z.ZodString;
2764
- kind: z.ZodEnum<["recruit", "invitation"]>;
2765
- roomId: z.ZodBranded<z.ZodString, "RoomId">;
2766
- roomType: z.ZodEnum<["recruit", "invitation"]>;
2767
- title: z.ZodString;
2768
- message: z.ZodString;
2769
- createdAt: z.ZodString;
2770
- readAt: z.ZodNullable<z.ZodString>;
2771
- }, "strip", z.ZodTypeAny, {
2772
- message: string;
2773
- createdAt: string;
2774
- roomId: string & z.BRAND<"RoomId">;
2775
- roomType: "recruit" | "invitation";
2776
- notificationId: string;
2777
- kind: "recruit" | "invitation";
2778
- title: string;
2779
- readAt: string | null;
2780
- }, {
2781
- message: string;
2782
- createdAt: string;
2783
- roomId: string;
2784
- roomType: "recruit" | "invitation";
2785
- notificationId: string;
2786
- kind: "recruit" | "invitation";
2787
- title: string;
2788
- readAt: string | null;
2789
- }>, "many">>;
2790
- readonly markRead: EndpointContract<"PATCH", "/notifications/:notificationId/read", z.ZodObject<{
2791
- notificationId: z.ZodString;
2792
- }, "strip", z.ZodTypeAny, {
2793
- notificationId: string;
2794
- }, {
2795
- notificationId: string;
2796
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2797
- notificationId: z.ZodString;
2798
- kind: z.ZodEnum<["recruit", "invitation"]>;
2799
- roomId: z.ZodBranded<z.ZodString, "RoomId">;
2800
- roomType: z.ZodEnum<["recruit", "invitation"]>;
2801
- title: z.ZodString;
2802
- message: z.ZodString;
2803
- createdAt: z.ZodString;
2804
- readAt: z.ZodNullable<z.ZodString>;
2805
- }, "strip", z.ZodTypeAny, {
2806
- message: string;
2807
- createdAt: string;
2808
- roomId: string & z.BRAND<"RoomId">;
2809
- roomType: "recruit" | "invitation";
2810
- notificationId: string;
2811
- kind: "recruit" | "invitation";
2812
- title: string;
2813
- readAt: string | null;
2814
- }, {
2815
- message: string;
2816
- createdAt: string;
2817
- roomId: string;
2818
- roomType: "recruit" | "invitation";
2819
- notificationId: string;
2820
- kind: "recruit" | "invitation";
2821
- title: string;
2822
- readAt: string | null;
2823
- }>>;
2824
- readonly delete: EndpointContract<"DELETE", "/notifications/:notificationId", z.ZodObject<{
2825
- notificationId: z.ZodString;
2826
- }, "strip", z.ZodTypeAny, {
2827
- notificationId: string;
2828
- }, {
2829
- notificationId: string;
2830
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2831
- };
2832
- readonly room: {
2833
- readonly access: EndpointContract<"GET", "/rooms/:roomId/access", z.ZodObject<{
2834
- roomId: z.ZodBranded<z.ZodString, "RoomId">;
2835
- }, "strip", z.ZodTypeAny, {
2836
- roomId: string & z.BRAND<"RoomId">;
2837
- }, {
2838
- roomId: string;
2839
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2840
- roomId: z.ZodBranded<z.ZodString, "RoomId">;
2841
- roomType: z.ZodEnum<["recruit", "invitation"]>;
2842
- stage: z.ZodUnion<[z.ZodEnum<["waiting", "location", "location-vote", "exclude-menu", "menu", "restaurant", "finish"]>, z.ZodEnum<["waiting", "date", "time", "location", "location-vote", "exclude-menu", "menu", "restaurant", "finish"]>]>;
2843
- canJoin: z.ZodBoolean;
2844
- }, "strip", z.ZodTypeAny, {
2845
- roomId: string & z.BRAND<"RoomId">;
2846
- roomType: "recruit" | "invitation";
2847
- stage: "date" | "restaurant" | "waiting" | "location" | "location-vote" | "exclude-menu" | "menu" | "finish" | "time";
2848
- canJoin: boolean;
2849
- }, {
2850
- roomId: string;
2851
- roomType: "recruit" | "invitation";
2852
- stage: "date" | "restaurant" | "waiting" | "location" | "location-vote" | "exclude-menu" | "menu" | "finish" | "time";
2853
- canJoin: boolean;
2854
- }>>;
2855
- };
2856
- readonly health: {
2857
- readonly healthCheck: EndpointContract<"GET", "/", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodString>;
2858
- };
2859
- };
28
+ declare const apiContract: Record<string, Record<string, EndpointContract<any, string, any, any, any, any>>>;
2860
29
  type ApiContract = typeof apiContract;
2861
30
  type ApiDomain = keyof ApiContract;
2862
31
 
32
+ declare const CacheInvalidationEntitySchema: z.ZodEnum<{
33
+ article: "article";
34
+ mealPlan: "mealPlan";
35
+ mealPlanInvite: "mealPlanInvite";
36
+ mealPlanParticipant: "mealPlanParticipant";
37
+ mealPlanDecision: "mealPlanDecision";
38
+ mealPlanChat: "mealPlanChat";
39
+ mealGroup: "mealGroup";
40
+ notification: "notification";
41
+ friend: "friend";
42
+ }>;
43
+ declare const CacheInvalidationActionSchema: z.ZodEnum<{
44
+ created: "created";
45
+ updated: "updated";
46
+ deleted: "deleted";
47
+ accepted: "accepted";
48
+ rejected: "rejected";
49
+ cancelled: "cancelled";
50
+ closed: "closed";
51
+ joined: "joined";
52
+ ready: "ready";
53
+ confirmed: "confirmed";
54
+ locked: "locked";
55
+ completed: "completed";
56
+ recorded: "recorded";
57
+ read: "read";
58
+ }>;
59
+ declare const CacheInvalidationKeySchema: z.ZodEnum<{
60
+ articles: "articles";
61
+ mealPlans: "mealPlans";
62
+ mealPlanDetail: "mealPlanDetail";
63
+ mealPlanInvites: "mealPlanInvites";
64
+ mealPlanJoinRequests: "mealPlanJoinRequests";
65
+ mealPlanNearbyFriends: "mealPlanNearbyFriends";
66
+ mealPlanMessages: "mealPlanMessages";
67
+ mealGroups: "mealGroups";
68
+ notifications: "notifications";
69
+ friends: "friends";
70
+ friendMeals: "friendMeals";
71
+ }>;
72
+ declare const CacheInvalidationEventSchema: z.ZodObject<{
73
+ type: z.ZodLiteral<"cache.invalidate">;
74
+ entity: z.ZodEnum<{
75
+ article: "article";
76
+ mealPlan: "mealPlan";
77
+ mealPlanInvite: "mealPlanInvite";
78
+ mealPlanParticipant: "mealPlanParticipant";
79
+ mealPlanDecision: "mealPlanDecision";
80
+ mealPlanChat: "mealPlanChat";
81
+ mealGroup: "mealGroup";
82
+ notification: "notification";
83
+ friend: "friend";
84
+ }>;
85
+ action: z.ZodEnum<{
86
+ created: "created";
87
+ updated: "updated";
88
+ deleted: "deleted";
89
+ accepted: "accepted";
90
+ rejected: "rejected";
91
+ cancelled: "cancelled";
92
+ closed: "closed";
93
+ joined: "joined";
94
+ ready: "ready";
95
+ confirmed: "confirmed";
96
+ locked: "locked";
97
+ completed: "completed";
98
+ recorded: "recorded";
99
+ read: "read";
100
+ }>;
101
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
102
+ keys: z.ZodArray<z.ZodEnum<{
103
+ articles: "articles";
104
+ mealPlans: "mealPlans";
105
+ mealPlanDetail: "mealPlanDetail";
106
+ mealPlanInvites: "mealPlanInvites";
107
+ mealPlanJoinRequests: "mealPlanJoinRequests";
108
+ mealPlanNearbyFriends: "mealPlanNearbyFriends";
109
+ mealPlanMessages: "mealPlanMessages";
110
+ mealGroups: "mealGroups";
111
+ notifications: "notifications";
112
+ friends: "friends";
113
+ friendMeals: "friendMeals";
114
+ }>>;
115
+ occurredAt: z.ZodString;
116
+ }, z.core.$strip>;
117
+
118
+ declare const CACHE_INVALIDATION_SSE_EVENT: "cache-invalidate";
119
+ type CacheInvalidationEntity = z.infer<typeof CacheInvalidationEntitySchema>;
120
+ type CacheInvalidationAction = z.infer<typeof CacheInvalidationActionSchema>;
121
+ type CacheInvalidationKey = z.infer<typeof CacheInvalidationKeySchema>;
122
+ type CacheInvalidationEvent = z.infer<typeof CacheInvalidationEventSchema>;
123
+
2863
124
  declare const ISODateStringSchema: z.ZodString;
2864
125
  declare const ISODateTimeStringSchema: z.ZodString;
2865
126
  declare const TimeHHmmStringSchema: z.ZodString;
@@ -2879,187 +140,152 @@ declare const ApiSuccessSchema: <TData extends z.ZodTypeAny>(data: TData) => z.Z
2879
140
  code: z.ZodNumber;
2880
141
  message: z.ZodString;
2881
142
  data: TData;
2882
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
2883
- success: z.ZodLiteral<true>;
2884
- code: z.ZodNumber;
2885
- message: z.ZodString;
2886
- data: TData;
2887
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
2888
- success: z.ZodLiteral<true>;
2889
- code: z.ZodNumber;
2890
- message: z.ZodString;
2891
- data: TData;
2892
- }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>;
143
+ }, z.core.$strip>;
2893
144
  declare const ApiFailureSchema: z.ZodObject<{
2894
145
  success: z.ZodLiteral<false>;
2895
146
  status: z.ZodNumber;
2896
147
  code: z.ZodString;
2897
148
  message: z.ZodString;
2898
- }, "strip", z.ZodTypeAny, {
2899
- message: string;
2900
- code: string;
2901
- status: number;
2902
- success: false;
2903
- }, {
2904
- message: string;
2905
- code: string;
2906
- status: number;
2907
- success: false;
2908
- }>;
2909
- declare const ApiResponseSchema: <TData extends z.ZodTypeAny>(data: TData) => z.ZodUnion<[z.ZodObject<{
2910
- success: z.ZodLiteral<true>;
2911
- code: z.ZodNumber;
2912
- message: z.ZodString;
2913
- data: TData;
2914
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
2915
- success: z.ZodLiteral<true>;
2916
- code: z.ZodNumber;
2917
- message: z.ZodString;
2918
- data: TData;
2919
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
149
+ }, z.core.$strip>;
150
+ declare const ApiResponseSchema: <TData extends z.ZodTypeAny>(data: TData) => z.ZodUnion<readonly [z.ZodObject<{
2920
151
  success: z.ZodLiteral<true>;
2921
152
  code: z.ZodNumber;
2922
153
  message: z.ZodString;
2923
154
  data: TData;
2924
- }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>, z.ZodObject<{
155
+ }, z.core.$strip>, z.ZodObject<{
2925
156
  success: z.ZodLiteral<false>;
2926
157
  status: z.ZodNumber;
2927
158
  code: z.ZodString;
2928
159
  message: z.ZodString;
2929
- }, "strip", z.ZodTypeAny, {
2930
- message: string;
2931
- code: string;
2932
- status: number;
2933
- success: false;
2934
- }, {
2935
- message: string;
2936
- code: string;
2937
- status: number;
2938
- success: false;
2939
- }>]>;
2940
- declare const CreatedEntityIdResponseSchema: z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
160
+ }, z.core.$strip>]>;
161
+ declare const CreatedEntityIdResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2941
162
  entity: z.ZodLiteral<"article">;
2942
- id: z.ZodBranded<z.ZodNumber, "ArticleId">;
2943
- }, "strip", z.ZodTypeAny, {
2944
- id: number & z.BRAND<"ArticleId">;
2945
- entity: "article";
2946
- }, {
2947
- id: number;
2948
- entity: "article";
2949
- }>, z.ZodObject<{
163
+ id: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
164
+ }, z.core.$strip>, z.ZodObject<{
2950
165
  entity: z.ZodLiteral<"comment">;
2951
- id: z.ZodBranded<z.ZodNumber, "CommentId">;
2952
- }, "strip", z.ZodTypeAny, {
2953
- id: number & z.BRAND<"CommentId">;
2954
- entity: "comment";
2955
- }, {
2956
- id: number;
2957
- entity: "comment";
2958
- }>, z.ZodObject<{
2959
- entity: z.ZodLiteral<"recruit">;
2960
- id: z.ZodBranded<z.ZodNumber, "RecruitId">;
2961
- }, "strip", z.ZodTypeAny, {
2962
- id: number & z.BRAND<"RecruitId">;
2963
- entity: "recruit";
2964
- }, {
2965
- id: number;
2966
- entity: "recruit";
2967
- }>, z.ZodObject<{
2968
- entity: z.ZodLiteral<"invitation">;
2969
- id: z.ZodBranded<z.ZodNumber, "InvitationId">;
2970
- }, "strip", z.ZodTypeAny, {
2971
- id: number & z.BRAND<"InvitationId">;
2972
- entity: "invitation";
2973
- }, {
2974
- id: number;
2975
- entity: "invitation";
2976
- }>, z.ZodObject<{
166
+ id: z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">;
167
+ }, z.core.$strip>, z.ZodObject<{
2977
168
  entity: z.ZodLiteral<"subscription">;
2978
- id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
2979
- }, "strip", z.ZodTypeAny, {
2980
- id: number & z.BRAND<"SubscriptionId">;
2981
- entity: "subscription";
2982
- }, {
2983
- id: number;
2984
- entity: "subscription";
2985
- }>, z.ZodObject<{
169
+ id: z.core.$ZodBranded<z.ZodNumber, "SubscriptionId", "out">;
170
+ }, z.core.$strip>, z.ZodObject<{
2986
171
  entity: z.ZodLiteral<"coupon">;
2987
- id: z.ZodBranded<z.ZodNumber, "CouponId">;
2988
- }, "strip", z.ZodTypeAny, {
2989
- id: number & z.BRAND<"CouponId">;
2990
- entity: "coupon";
2991
- }, {
2992
- id: number;
2993
- entity: "coupon";
2994
- }>, z.ZodObject<{
2995
- entity: z.ZodLiteral<"plan">;
2996
- id: z.ZodBranded<z.ZodNumber, "PlanId">;
2997
- }, "strip", z.ZodTypeAny, {
2998
- id: number & z.BRAND<"PlanId">;
2999
- entity: "plan";
3000
- }, {
3001
- id: number;
3002
- entity: "plan";
3003
- }>]>;
172
+ id: z.core.$ZodBranded<z.ZodNumber, "CouponId", "out">;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ entity: z.ZodLiteral<"mealPlan">;
175
+ id: z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ entity: z.ZodLiteral<"mealPlanInvite">;
178
+ id: z.core.$ZodBranded<z.ZodString, "MealPlanInviteId", "out">;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ entity: z.ZodLiteral<"mealPlanJoinRequest">;
181
+ id: z.core.$ZodBranded<z.ZodString, "MealPlanJoinRequestId", "out">;
182
+ }, z.core.$strip>, z.ZodObject<{
183
+ entity: z.ZodLiteral<"mealPlanChangeRequest">;
184
+ id: z.core.$ZodBranded<z.ZodString, "MealPlanChangeRequestId", "out">;
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ entity: z.ZodLiteral<"mealPlanShareLink">;
187
+ id: z.core.$ZodBranded<z.ZodString, "MealPlanShareLinkId", "out">;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ entity: z.ZodLiteral<"mealPlanChatMessage">;
190
+ id: z.core.$ZodBranded<z.ZodString, "MealPlanChatMessageId", "out">;
191
+ }, z.core.$strip>, z.ZodObject<{
192
+ entity: z.ZodLiteral<"mealGroup">;
193
+ id: z.core.$ZodBranded<z.ZodString, "MealGroupId", "out">;
194
+ }, z.core.$strip>], "entity">;
3004
195
 
3005
196
  type NoContent = z.infer<typeof NoContentSchema>;
3006
197
  type ApiSuccess<T> = z.infer<ReturnType<typeof ApiSuccessSchema<z.ZodType<T>>>>;
3007
198
  type ApiFailure = z.infer<typeof ApiFailureSchema>;
3008
199
  type ApiResponse<T> = ApiSuccess<T> | ApiFailure;
3009
200
  type CreatedEntityIdResponse = z.infer<typeof CreatedEntityIdResponseSchema>;
3010
- /** @deprecated Use ApiSuccess<T>. */
3011
- interface BaseResponse<T> {
3012
- code: number;
3013
- message: string;
3014
- data: T;
3015
- }
3016
- declare const makeApiResponseSchema: <TData extends z.ZodTypeAny>(data: TData) => z.ZodUnion<[z.ZodObject<{
3017
- success: z.ZodLiteral<true>;
3018
- code: z.ZodNumber;
3019
- message: z.ZodString;
3020
- data: TData;
3021
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
201
+ declare const makeApiResponseSchema: <TData extends z.ZodTypeAny>(data: TData) => z.ZodUnion<readonly [z.ZodObject<{
3022
202
  success: z.ZodLiteral<true>;
3023
203
  code: z.ZodNumber;
3024
204
  message: z.ZodString;
3025
205
  data: TData;
3026
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
3027
- success: z.ZodLiteral<true>;
3028
- code: z.ZodNumber;
3029
- message: z.ZodString;
3030
- data: TData;
3031
- }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>, z.ZodObject<{
206
+ }, z.core.$strip>, z.ZodObject<{
3032
207
  success: z.ZodLiteral<false>;
3033
208
  status: z.ZodNumber;
3034
209
  code: z.ZodString;
3035
210
  message: z.ZodString;
3036
- }, "strip", z.ZodTypeAny, {
3037
- message: string;
3038
- code: string;
3039
- status: number;
3040
- success: false;
3041
- }, {
3042
- message: string;
3043
- code: string;
3044
- status: number;
3045
- success: false;
3046
- }>]>;
211
+ }, z.core.$strip>]>;
3047
212
  declare const makeApiSuccessSchema: <TData extends z.ZodTypeAny>(data: TData) => z.ZodObject<{
3048
213
  success: z.ZodLiteral<true>;
3049
214
  code: z.ZodNumber;
3050
215
  message: z.ZodString;
3051
216
  data: TData;
3052
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
3053
- success: z.ZodLiteral<true>;
3054
- code: z.ZodNumber;
3055
- message: z.ZodString;
3056
- data: TData;
3057
- }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
3058
- success: z.ZodLiteral<true>;
3059
- code: z.ZodNumber;
3060
- message: z.ZodString;
3061
- data: TData;
3062
- }> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>;
217
+ }, z.core.$strip>;
218
+
219
+ declare const PositiveIntIdSchema: z.ZodNumber;
220
+ declare const NonEmptyStringIdSchema: z.ZodString;
221
+ declare const MemberIdSchema: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
222
+ declare const UserIdSchema: z.core.$ZodBranded<z.ZodNumber, "MemberId", "out">;
223
+ declare const ArticleIdSchema: z.core.$ZodBranded<z.ZodNumber, "ArticleId", "out">;
224
+ declare const CommentIdSchema: z.core.$ZodBranded<z.ZodNumber, "CommentId", "out">;
225
+ declare const MealPlanIdSchema: z.core.$ZodBranded<z.ZodString, "MealPlanId", "out">;
226
+ declare const MealPlanInviteIdSchema: z.core.$ZodBranded<z.ZodString, "MealPlanInviteId", "out">;
227
+ declare const MealPlanJoinRequestIdSchema: z.core.$ZodBranded<z.ZodString, "MealPlanJoinRequestId", "out">;
228
+ declare const MealPlanNearbyFriendExposureBatchIdSchema: z.core.$ZodBranded<z.ZodString, "MealPlanNearbyFriendExposureBatchId", "out">;
229
+ declare const MealPlanChangeRequestIdSchema: z.core.$ZodBranded<z.ZodString, "MealPlanChangeRequestId", "out">;
230
+ declare const MealPlanShareLinkIdSchema: z.core.$ZodBranded<z.ZodString, "MealPlanShareLinkId", "out">;
231
+ declare const MealPlanShareLinkTokenSchema: z.core.$ZodBranded<z.ZodString, "MealPlanShareLinkToken", "out">;
232
+ declare const MealPlanChatRoomIdSchema: z.core.$ZodBranded<z.ZodString, "MealPlanChatRoomId", "out">;
233
+ declare const MealPlanChatMessageIdSchema: z.core.$ZodBranded<z.ZodString, "MealPlanChatMessageId", "out">;
234
+ declare const MealGroupIdSchema: z.core.$ZodBranded<z.ZodString, "MealGroupId", "out">;
235
+ declare const RestaurantIdSchema: z.core.$ZodBranded<z.ZodString, "RestaurantId", "out">;
236
+ declare const CouponIdSchema: z.core.$ZodBranded<z.ZodNumber, "CouponId", "out">;
237
+ declare const SubscriptionIdSchema: z.core.$ZodBranded<z.ZodNumber, "SubscriptionId", "out">;
238
+ declare const FriendRequestIdSchema: z.core.$ZodBranded<z.ZodNumber, "FriendRequestId", "out">;
239
+ declare const ReferralCodeSchema: z.core.$ZodBranded<z.ZodString, "ReferralCode", "out">;
240
+ declare const FoodCodeSchema: z.core.$ZodBranded<z.ZodString, "FoodCode", "out">;
241
+ declare const FoodLabelSchema: z.core.$ZodBranded<z.ZodString, "FoodLabel", "out">;
242
+ declare const FoodSchema: z.ZodObject<{
243
+ code: z.core.$ZodBranded<z.ZodString, "FoodCode", "out">;
244
+ label: z.core.$ZodBranded<z.ZodString, "FoodLabel", "out">;
245
+ }, z.core.$strip>;
246
+
247
+ type Brand<T, TBrand extends string> = T & {
248
+ readonly __brand: TBrand;
249
+ };
250
+ type MemberId = z.infer<typeof MemberIdSchema>;
251
+ type ArticleId = z.infer<typeof ArticleIdSchema>;
252
+ type CommentId = z.infer<typeof CommentIdSchema>;
253
+ type MealPlanId = z.infer<typeof MealPlanIdSchema>;
254
+ type MealPlanInviteId = z.infer<typeof MealPlanInviteIdSchema>;
255
+ type MealPlanJoinRequestId = z.infer<typeof MealPlanJoinRequestIdSchema>;
256
+ type MealPlanNearbyFriendExposureBatchId = z.infer<typeof MealPlanNearbyFriendExposureBatchIdSchema>;
257
+ type MealPlanChangeRequestId = z.infer<typeof MealPlanChangeRequestIdSchema>;
258
+ type MealPlanShareLinkId = z.infer<typeof MealPlanShareLinkIdSchema>;
259
+ type MealPlanShareLinkToken = z.infer<typeof MealPlanShareLinkTokenSchema>;
260
+ type MealPlanChatRoomId = z.infer<typeof MealPlanChatRoomIdSchema>;
261
+ type MealPlanChatMessageId = z.infer<typeof MealPlanChatMessageIdSchema>;
262
+ type MealGroupId = z.infer<typeof MealGroupIdSchema>;
263
+ type RestaurantId = z.infer<typeof RestaurantIdSchema>;
264
+ type CouponId = z.infer<typeof CouponIdSchema>;
265
+ type SubscriptionId = z.infer<typeof SubscriptionIdSchema>;
266
+ type FriendRequestId = z.infer<typeof FriendRequestIdSchema>;
267
+ type ReferralCode = z.infer<typeof ReferralCodeSchema>;
268
+ type FoodCode = z.infer<typeof FoodCodeSchema>;
269
+ type FoodLabel = z.infer<typeof FoodLabelSchema>;
270
+ type Food = z.infer<typeof FoodSchema>;
271
+ declare const toMemberId: (value: number) => MemberId;
272
+ declare const toArticleId: (value: number) => ArticleId;
273
+ declare const toMealPlanId: (value: string) => MealPlanId;
274
+ declare const toMealPlanInviteId: (value: string) => MealPlanInviteId;
275
+ declare const toMealPlanJoinRequestId: (value: string) => MealPlanJoinRequestId;
276
+ declare const toMealPlanNearbyFriendExposureBatchId: (value: string) => MealPlanNearbyFriendExposureBatchId;
277
+ declare const toMealPlanChangeRequestId: (value: string) => MealPlanChangeRequestId;
278
+ declare const toMealPlanShareLinkId: (value: string) => MealPlanShareLinkId;
279
+ declare const toMealPlanShareLinkToken: (value: string) => MealPlanShareLinkToken;
280
+ declare const toMealPlanChatRoomId: (value: string) => MealPlanChatRoomId;
281
+ declare const toMealPlanChatMessageId: (value: string) => MealPlanChatMessageId;
282
+ declare const toMealGroupId: (value: string) => MealGroupId;
283
+ declare const toRestaurantId: (value: string) => RestaurantId;
284
+ declare const toCommentId: (value: number) => CommentId;
285
+ declare const toCouponId: (value: number) => CouponId;
286
+ declare const toSubscriptionId: (value: number) => SubscriptionId;
287
+ declare const toFriendRequestId: (value: number) => FriendRequestId;
288
+ declare const toReferralCode: (value: string) => ReferralCode;
3063
289
 
3064
290
  type MapperContract<TSource, TTarget> = (source: TSource) => TTarget;
3065
291
  type AsyncMapperContract<TSource, TTarget> = (source: TSource) => Promise<TTarget>;
@@ -3069,13 +295,7 @@ type MapperOutput<TMapper> = TMapper extends (...args: never[]) => infer TTarget
3069
295
  declare const PageQuerySchema: z.ZodObject<{
3070
296
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3071
297
  size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3072
- }, "strip", z.ZodTypeAny, {
3073
- page: number;
3074
- size: number;
3075
- }, {
3076
- page?: number | undefined;
3077
- size?: number | undefined;
3078
- }>;
298
+ }, z.core.$strip>;
3079
299
  declare const PageMetaSchema: z.ZodObject<{
3080
300
  page: z.ZodNumber;
3081
301
  size: z.ZodNumber;
@@ -3083,23 +303,9 @@ declare const PageMetaSchema: z.ZodObject<{
3083
303
  totalPages: z.ZodNumber;
3084
304
  hasNext: z.ZodBoolean;
3085
305
  hasPrevious: z.ZodBoolean;
3086
- }, "strip", z.ZodTypeAny, {
3087
- page: number;
3088
- size: number;
3089
- totalItems: number;
3090
- totalPages: number;
3091
- hasNext: boolean;
3092
- hasPrevious: boolean;
3093
- }, {
3094
- page: number;
3095
- size: number;
3096
- totalItems: number;
3097
- totalPages: number;
3098
- hasNext: boolean;
3099
- hasPrevious: boolean;
3100
- }>;
306
+ }, z.core.$strip>;
3101
307
  declare const PageResponseSchema: <TItem extends z.ZodTypeAny>(item: TItem) => z.ZodObject<{
3102
- items: z.ZodArray<TItem, "many">;
308
+ items: z.ZodArray<TItem>;
3103
309
  meta: z.ZodObject<{
3104
310
  page: z.ZodNumber;
3105
311
  size: z.ZodNumber;
@@ -3107,47 +313,16 @@ declare const PageResponseSchema: <TItem extends z.ZodTypeAny>(item: TItem) => z
3107
313
  totalPages: z.ZodNumber;
3108
314
  hasNext: z.ZodBoolean;
3109
315
  hasPrevious: z.ZodBoolean;
3110
- }, "strip", z.ZodTypeAny, {
3111
- page: number;
3112
- size: number;
3113
- totalItems: number;
3114
- totalPages: number;
3115
- hasNext: boolean;
3116
- hasPrevious: boolean;
3117
- }, {
3118
- page: number;
3119
- size: number;
3120
- totalItems: number;
3121
- totalPages: number;
3122
- hasNext: boolean;
3123
- hasPrevious: boolean;
3124
- }>;
3125
- }, "strip", z.ZodTypeAny, {
3126
- items: TItem["_output"][];
3127
- meta: {
3128
- page: number;
3129
- size: number;
3130
- totalItems: number;
3131
- totalPages: number;
3132
- hasNext: boolean;
3133
- hasPrevious: boolean;
3134
- };
3135
- }, {
3136
- items: TItem["_input"][];
3137
- meta: {
3138
- page: number;
3139
- size: number;
3140
- totalItems: number;
3141
- totalPages: number;
3142
- hasNext: boolean;
3143
- hasPrevious: boolean;
3144
- };
316
+ }, z.core.$strip>;
317
+ }, z.core.$strip>;
318
+ declare const SortDirectionSchema: z.ZodEnum<{
319
+ asc: "asc";
320
+ desc: "desc";
3145
321
  }>;
3146
- declare const SortDirectionSchema: z.ZodEnum<["asc", "desc"]>;
3147
322
 
3148
323
  type PageRequest = z.infer<typeof PageQuerySchema>;
3149
324
  type PageResponse<TItem> = z.infer<ReturnType<typeof PageResponseSchema<z.ZodType<TItem>>>>;
3150
325
  type PageMeta = z.infer<typeof PageMetaSchema>;
3151
326
  type SortDirection = z.infer<typeof SortDirectionSchema>;
3152
327
 
3153
- export { type ApiContract, type ApiDomain, type ApiFailure, ApiFailureSchema, type ApiResponse, ApiResponseSchema, type ApiSuccess, ApiSuccessSchema, type AsyncMapperContract, type BaseResponse, type BodyOf, type CreatedEntityIdResponse, CreatedEntityIdResponseSchema, type EndpointContract, type EntityContract, type HttpMethod, type ISODateString, ISODateStringSchema, type ISODateTimeString, ISODateTimeStringSchema, type MapperContract, type MapperInput, type MapperOutput, NoBodySchema, type NoContent, NoContentSchema, NoParamsSchema, NoQuerySchema, type PageMeta, PageMetaSchema, PageQuerySchema, type PageRequest, type PageResponse, PageResponseSchema, type PathParamsOf, type QueryOf, type ResponseOf, type SortDirection, SortDirectionSchema, type TimeHHmmString, TimeHHmmStringSchema, apiContract, endpoint, makeApiResponseSchema, makeApiSuccessSchema };
328
+ export { type ApiContract, type ApiDomain, type ApiFailure, ApiFailureSchema, type ApiResponse, ApiResponseSchema, type ApiSuccess, ApiSuccessSchema, type ArticleId, ArticleIdSchema, type AsyncMapperContract, type BodyOf, type Brand, CACHE_INVALIDATION_SSE_EVENT, type CacheInvalidationAction, CacheInvalidationActionSchema, type CacheInvalidationEntity, CacheInvalidationEntitySchema, type CacheInvalidationEvent, CacheInvalidationEventSchema, type CacheInvalidationKey, CacheInvalidationKeySchema, type CommentId, CommentIdSchema, type CouponId, CouponIdSchema, type CreatedEntityIdResponse, CreatedEntityIdResponseSchema, type EndpointContract, type EntityContract, type Food, type FoodCode, FoodCodeSchema, type FoodLabel, FoodLabelSchema, FoodSchema, type FriendRequestId, FriendRequestIdSchema, type HttpMethod, type ISODateString, ISODateStringSchema, type ISODateTimeString, ISODateTimeStringSchema, type MapperContract, type MapperInput, type MapperOutput, type MealGroupId, MealGroupIdSchema, type MealPlanChangeRequestId, MealPlanChangeRequestIdSchema, type MealPlanChatMessageId, MealPlanChatMessageIdSchema, type MealPlanChatRoomId, MealPlanChatRoomIdSchema, type MealPlanId, MealPlanIdSchema, type MealPlanInviteId, MealPlanInviteIdSchema, type MealPlanJoinRequestId, MealPlanJoinRequestIdSchema, type MealPlanNearbyFriendExposureBatchId, MealPlanNearbyFriendExposureBatchIdSchema, type MealPlanShareLinkId, MealPlanShareLinkIdSchema, type MealPlanShareLinkToken, MealPlanShareLinkTokenSchema, type MemberId, MemberIdSchema, NoBodySchema, type NoContent, NoContentSchema, NoParamsSchema, NoQuerySchema, NonEmptyStringIdSchema, type PageMeta, PageMetaSchema, PageQuerySchema, type PageRequest, type PageResponse, PageResponseSchema, type PathParamsOf, PositiveIntIdSchema, type QueryOf, type ReferralCode, ReferralCodeSchema, type ResponseOf, type RestaurantId, RestaurantIdSchema, type SortDirection, SortDirectionSchema, type SubscriptionId, SubscriptionIdSchema, type TimeHHmmString, TimeHHmmStringSchema, UserIdSchema, apiContract, endpoint, makeApiResponseSchema, makeApiSuccessSchema, toArticleId, toCommentId, toCouponId, toFriendRequestId, toMealGroupId, toMealPlanChangeRequestId, toMealPlanChatMessageId, toMealPlanChatRoomId, toMealPlanId, toMealPlanInviteId, toMealPlanJoinRequestId, toMealPlanNearbyFriendExposureBatchId, toMealPlanShareLinkId, toMealPlanShareLinkToken, toMemberId, toReferralCode, toRestaurantId, toSubscriptionId };