@kimdaegyu/babmukdang-shared 1.1.0 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/{chunk-NW5O4R7M.js → chunk-GTVEQYJW.js} +2 -2
  2. package/dist/{chunk-UFVPFUMI.js → chunk-H77ISYYC.js} +17 -1
  3. package/dist/{chunk-FCE6KXNO.js → chunk-J76VB5SE.js} +4 -4
  4. package/dist/chunk-JEUH3JDZ.js +299 -0
  5. package/dist/chunk-KRVEQVRC.js +72 -0
  6. package/dist/{chunk-EJKRR2MZ.js → chunk-M5OSCHMV.js} +14 -15
  7. package/dist/chunk-TY4WZEIZ.js +109 -0
  8. package/dist/chunk-U6OQQOPN.js +35 -0
  9. package/dist/chunk-UJJMW7II.js +37 -0
  10. package/dist/chunk-VAWYU5JG.js +78 -0
  11. package/dist/{chunk-2GRWCRTV.js → chunk-VWPUBTMV.js} +102 -106
  12. package/dist/{chunk-ZNAAA53X.js → chunk-W3YQYI4R.js} +14 -19
  13. package/dist/chunk-YGFAVC5N.js +34 -0
  14. package/dist/domain/article/index.cjs +137 -144
  15. package/dist/domain/article/index.d.cts +208 -282
  16. package/dist/domain/article/index.d.ts +208 -282
  17. package/dist/domain/article/index.js +16 -18
  18. package/dist/domain/auth/index.cjs +51 -45
  19. package/dist/domain/auth/index.d.cts +7 -8
  20. package/dist/domain/auth/index.d.ts +7 -8
  21. package/dist/domain/auth/index.js +3 -6
  22. package/dist/domain/common/index.cjs +430 -425
  23. package/dist/domain/common/index.d.cts +1224 -1111
  24. package/dist/domain/common/index.d.ts +1224 -1111
  25. package/dist/domain/common/index.js +49 -38
  26. package/dist/domain/friend/index.cjs +66 -70
  27. package/dist/domain/friend/index.d.cts +32 -63
  28. package/dist/domain/friend/index.d.ts +32 -63
  29. package/dist/domain/friend/index.js +3 -11
  30. package/dist/domain/index.cjs +469 -474
  31. package/dist/domain/index.d.cts +11 -14
  32. package/dist/domain/index.d.ts +11 -14
  33. package/dist/domain/index.js +103 -117
  34. package/dist/domain/invitation/index.cjs +19 -41
  35. package/dist/domain/invitation/index.d.cts +3 -6
  36. package/dist/domain/invitation/index.d.ts +3 -6
  37. package/dist/domain/invitation/index.js +4 -8
  38. package/dist/domain/meal/index.cjs +108 -13
  39. package/dist/domain/meal/index.d.cts +51 -23
  40. package/dist/domain/meal/index.d.ts +51 -23
  41. package/dist/domain/meal/index.js +8 -3
  42. package/dist/domain/member/index.cjs +63 -54
  43. package/dist/domain/member/index.d.cts +233 -126
  44. package/dist/domain/member/index.d.ts +233 -126
  45. package/dist/domain/member/index.js +17 -17
  46. package/dist/domain/plan/index.cjs +145 -136
  47. package/dist/domain/plan/index.d.cts +22 -33
  48. package/dist/domain/plan/index.d.ts +22 -33
  49. package/dist/domain/plan/index.js +8 -9
  50. package/dist/domain/{referral → promotion}/index.cjs +62 -6
  51. package/dist/domain/promotion/index.d.cts +114 -0
  52. package/dist/domain/promotion/index.d.ts +114 -0
  53. package/dist/domain/promotion/index.js +24 -0
  54. package/dist/domain/recruit/index.cjs +104 -61
  55. package/dist/domain/recruit/index.d.cts +56 -56
  56. package/dist/domain/recruit/index.d.ts +56 -56
  57. package/dist/domain/recruit/index.js +21 -11
  58. package/dist/domain/restaurant/index.cjs +8 -2
  59. package/dist/domain/restaurant/index.d.cts +1 -4
  60. package/dist/domain/restaurant/index.d.ts +1 -4
  61. package/dist/domain/restaurant/index.js +2 -3
  62. package/dist/domain/room/index.cjs +134 -122
  63. package/dist/domain/room/index.d.cts +144 -144
  64. package/dist/domain/room/index.d.ts +144 -144
  65. package/dist/domain/room/index.js +5 -5
  66. package/dist/{id-B-8M90Ef.d.cts → id-dAYxfjZn.d.cts} +22 -1
  67. package/dist/{id-B-8M90Ef.d.ts → id-dAYxfjZn.d.ts} +22 -1
  68. package/dist/index-DAcw_a8p.d.ts +292 -0
  69. package/dist/index-DJJo4ejN.d.cts +292 -0
  70. package/dist/index.cjs +436 -630
  71. package/dist/index.d.cts +27 -142
  72. package/dist/index.d.ts +27 -142
  73. package/dist/index.js +14 -204
  74. package/package.json +55 -50
  75. package/dist/chunk-2SJCUQNN.js +0 -40
  76. package/dist/chunk-35QGRA2X.js +0 -0
  77. package/dist/chunk-3YMV26OY.js +0 -0
  78. package/dist/chunk-4DAOP35P.js +0 -74
  79. package/dist/chunk-6NZPEF4K.js +0 -34
  80. package/dist/chunk-7MGHUZXI.js +0 -25
  81. package/dist/chunk-BVTYAILQ.js +0 -0
  82. package/dist/chunk-F24BT6H4.js +0 -23
  83. package/dist/chunk-IJMADVK5.js +0 -27
  84. package/dist/chunk-IYCA6KHR.js +0 -0
  85. package/dist/chunk-JCN37ARR.js +0 -52
  86. package/dist/chunk-JXYRJKRV.js +0 -0
  87. package/dist/chunk-LCMNVWSP.js +0 -0
  88. package/dist/chunk-MP7TEKEI.js +0 -72
  89. package/dist/chunk-O6DYRCFN.js +0 -0
  90. package/dist/chunk-PDGMGLYH.js +0 -0
  91. package/dist/chunk-TA4BB3UC.js +0 -0
  92. package/dist/chunk-UN7KYFMV.js +0 -0
  93. package/dist/chunk-UXA4FHST.js +0 -19
  94. package/dist/chunk-WNY6POLW.js +0 -0
  95. package/dist/chunk-YVACD5IG.js +0 -127
  96. package/dist/chunk-Z2UFF3MA.js +0 -212
  97. package/dist/chunk-ZSZ3ETY7.js +0 -32
  98. package/dist/domain/challenge/index.cjs +0 -65
  99. package/dist/domain/challenge/index.d.cts +0 -104
  100. package/dist/domain/challenge/index.d.ts +0 -104
  101. package/dist/domain/challenge/index.js +0 -18
  102. package/dist/domain/coupon/index.cjs +0 -74
  103. package/dist/domain/coupon/index.d.cts +0 -38
  104. package/dist/domain/coupon/index.d.ts +0 -38
  105. package/dist/domain/coupon/index.js +0 -14
  106. package/dist/domain/preference/index.cjs +0 -69
  107. package/dist/domain/preference/index.d.cts +0 -31
  108. package/dist/domain/preference/index.d.ts +0 -31
  109. package/dist/domain/preference/index.js +0 -12
  110. package/dist/domain/referral/index.d.cts +0 -51
  111. package/dist/domain/referral/index.d.ts +0 -51
  112. package/dist/domain/referral/index.js +0 -14
  113. package/dist/index-BuInbhtG.d.cts +0 -305
  114. package/dist/index-CKRUOupn.d.ts +0 -305
  115. /package/dist/{chunk-34EKPNPX.js → chunk-NJTV6DRT.js} +0 -0
@@ -1,30 +1,5 @@
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 FriendRequestId, e as FriendRequestIdSchema, I as InvitationId, f as InvitationIdSchema, M as MemberId, g as MemberIdSchema, N as NonEmptyStringIdSchema, P as PlanId, h as PlanIdSchema, i as PositiveIntIdSchema, R as RecruitId, j as RecruitIdSchema, k as ReferralCode, l as ReferralCodeSchema, m as RestaurantId, n as RestaurantIdSchema, o as RoomId, p as RoomIdSchema, S as SubscriptionId, q as SubscriptionIdSchema, U as UserId, r as UserIdSchema, t as toArticleId, s as toInvitationId, u as toMemberId, v as toRecruitId, w as toRestaurantId, x as toRoomId } from '../../id-B-8M90Ef.cjs';
3
-
4
- type HttpMethod = "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
5
- declare const NoBodySchema: z.ZodUndefined;
6
- declare const NoQuerySchema: z.ZodUndefined;
7
- declare const NoParamsSchema: z.ZodUndefined;
8
- interface EndpointContract<TMethod extends HttpMethod, TPath extends string, TPathParams extends z.ZodTypeAny, TQuery extends z.ZodTypeAny, TBody extends z.ZodTypeAny, TResponse extends z.ZodTypeAny> {
9
- readonly method: TMethod;
10
- readonly path: TPath;
11
- readonly pathParams: TPathParams;
12
- readonly query: TQuery;
13
- readonly body: TBody;
14
- readonly response: TResponse;
15
- }
16
- declare const endpoint: <TMethod extends HttpMethod, TPath extends string, TPathParams extends z.ZodTypeAny = typeof NoParamsSchema, TQuery extends z.ZodTypeAny = typeof NoQuerySchema, TBody extends z.ZodTypeAny = typeof NoBodySchema, TResponse extends z.ZodTypeAny = z.ZodNever>(contract: {
17
- method: TMethod;
18
- path: TPath;
19
- pathParams?: TPathParams;
20
- query?: TQuery;
21
- body?: TBody;
22
- response: TResponse;
23
- }) => EndpointContract<TMethod, TPath, TPathParams, TQuery, TBody, TResponse>;
24
- type BodyOf<E> = E extends EndpointContract<any, any, any, any, infer TBody, any> ? z.infer<TBody> : never;
25
- type QueryOf<E> = E extends EndpointContract<any, any, any, infer TQuery, any, any> ? z.infer<TQuery> : never;
26
- type PathParamsOf<E> = E extends EndpointContract<any, any, infer TPathParams, any, any, any> ? z.infer<TPathParams> : never;
27
- type ResponseOf<E> = E extends EndpointContract<any, any, any, any, any, infer TResponse> ? z.infer<TResponse> : never;
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';
28
3
 
29
4
  declare const apiContract: {
30
5
  readonly auth: {
@@ -44,30 +19,30 @@ declare const apiContract: {
44
19
  password: string;
45
20
  profileImageUrl?: string | null | undefined;
46
21
  }>, z.ZodObject<{
47
- member: z.ZodObject<Pick<{
22
+ member: z.ZodObject<{
48
23
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
49
24
  username: z.ZodString;
50
- profileImageUrl: z.ZodNullable<z.ZodString>;
51
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
25
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, "strip", z.ZodTypeAny, {
52
27
  memberId: number & z.BRAND<"MemberId">;
53
28
  username: string;
54
- profileImageUrl: string | null;
29
+ profileImageUrl?: string | null | undefined;
55
30
  }, {
56
31
  memberId: number;
57
32
  username: string;
58
- profileImageUrl: string | null;
33
+ profileImageUrl?: string | null | undefined;
59
34
  }>;
60
35
  }, "strip", z.ZodTypeAny, {
61
36
  member: {
62
37
  memberId: number & z.BRAND<"MemberId">;
63
38
  username: string;
64
- profileImageUrl: string | null;
39
+ profileImageUrl?: string | null | undefined;
65
40
  };
66
41
  }, {
67
42
  member: {
68
43
  memberId: number;
69
44
  username: string;
70
- profileImageUrl: string | null;
45
+ profileImageUrl?: string | null | undefined;
71
46
  };
72
47
  }>>;
73
48
  readonly login: EndpointContract<"POST", "/auth/login", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
@@ -105,40 +80,65 @@ declare const apiContract: {
105
80
  readonly me: EndpointContract<"GET", "/members/me", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<Pick<{
106
81
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
107
82
  username: z.ZodString;
108
- profileImageUrl: z.ZodNullable<z.ZodString>;
83
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
84
  }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
110
85
  memberId: number & z.BRAND<"MemberId">;
111
86
  username: string;
112
- profileImageUrl: string | null;
87
+ profileImageUrl?: string | null | undefined;
113
88
  }, {
114
89
  memberId: number;
115
90
  username: string;
116
- profileImageUrl: string | null;
91
+ profileImageUrl?: string | null | undefined;
117
92
  }>>;
118
- readonly summary: EndpointContract<"GET", "/members/me/summary", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
93
+ readonly myProfile: EndpointContract<"GET", "/members/me/detail", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
119
94
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
120
95
  username: z.ZodString;
121
- profileImageUrl: z.ZodNullable<z.ZodString>;
96
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
97
  } & {
123
- friends: z.ZodDefault<z.ZodNumber>;
98
+ bio: z.ZodNullable<z.ZodString>;
99
+ friendConunt: z.ZodDefault<z.ZodNumber>;
124
100
  completedPlans: z.ZodDefault<z.ZodNumber>;
125
101
  uncompletedPlans: z.ZodDefault<z.ZodNumber>;
126
102
  }, "strip", z.ZodTypeAny, {
127
103
  memberId: number & z.BRAND<"MemberId">;
128
104
  username: string;
129
- profileImageUrl: string | null;
130
- friends: number;
105
+ bio: string | null;
106
+ friendConunt: number;
131
107
  completedPlans: number;
132
108
  uncompletedPlans: number;
109
+ profileImageUrl?: string | null | undefined;
133
110
  }, {
134
111
  memberId: number;
135
112
  username: string;
136
- profileImageUrl: string | null;
137
- friends?: number | undefined;
113
+ bio: string | null;
114
+ profileImageUrl?: string | null | undefined;
115
+ friendConunt?: number | undefined;
138
116
  completedPlans?: number | undefined;
139
117
  uncompletedPlans?: number | undefined;
140
118
  }>>;
141
- readonly detail: EndpointContract<"GET", "/members/:memberId", z.ZodObject<{
119
+ readonly search: EndpointContract<"GET", "/members/search", z.ZodUndefined, z.ZodObject<{
120
+ email: z.ZodOptional<z.ZodString>;
121
+ username: z.ZodOptional<z.ZodString>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ username?: string | undefined;
124
+ email?: string | undefined;
125
+ }, {
126
+ username?: string | undefined;
127
+ email?: string | undefined;
128
+ }>, z.ZodUndefined, z.ZodArray<z.ZodObject<{
129
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
130
+ username: z.ZodString;
131
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ memberId: number & z.BRAND<"MemberId">;
134
+ username: string;
135
+ profileImageUrl?: string | null | undefined;
136
+ }, {
137
+ memberId: number;
138
+ username: string;
139
+ profileImageUrl?: string | null | undefined;
140
+ }>, "many">>;
141
+ readonly memberProfile: EndpointContract<"GET", "/members/:memberId", z.ZodObject<{
142
142
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
143
143
  }, "strip", z.ZodTypeAny, {
144
144
  memberId: number & z.BRAND<"MemberId">;
@@ -147,77 +147,110 @@ declare const apiContract: {
147
147
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
148
148
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
149
149
  username: z.ZodString;
150
- profileImageUrl: z.ZodNullable<z.ZodString>;
150
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
151
  } & {
152
152
  bio: z.ZodNullable<z.ZodString>;
153
- planCount: z.ZodNumber;
154
- likes: z.ZodArray<z.ZodObject<{
155
- code: z.ZodString;
156
- label: z.ZodString;
153
+ friendConunt: z.ZodDefault<z.ZodNumber>;
154
+ completedPlans: z.ZodDefault<z.ZodNumber>;
155
+ uncompletedPlans: z.ZodDefault<z.ZodNumber>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ memberId: number & z.BRAND<"MemberId">;
158
+ username: string;
159
+ bio: string | null;
160
+ friendConunt: number;
161
+ completedPlans: number;
162
+ uncompletedPlans: number;
163
+ profileImageUrl?: string | null | undefined;
164
+ }, {
165
+ memberId: number;
166
+ username: string;
167
+ bio: string | null;
168
+ profileImageUrl?: string | null | undefined;
169
+ friendConunt?: number | undefined;
170
+ completedPlans?: number | undefined;
171
+ uncompletedPlans?: number | undefined;
172
+ }>>;
173
+ readonly presignProfileImage: EndpointContract<"POST", "/uploads/presign-profile", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
174
+ key: z.ZodString;
175
+ putUrl: z.ZodString;
176
+ cdnUrl: z.ZodString;
177
+ }, "strip", z.ZodTypeAny, {
178
+ key: string;
179
+ putUrl: string;
180
+ cdnUrl: string;
181
+ }, {
182
+ key: string;
183
+ putUrl: string;
184
+ cdnUrl: string;
185
+ }>>;
186
+ readonly createProfile: EndpointContract<"POST", "/members/onboarding", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
187
+ username: z.ZodString;
188
+ profileImageUrl: z.ZodNullable<z.ZodString>;
189
+ bio: z.ZodNullable<z.ZodString>;
190
+ } & {
191
+ liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
193
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
157
194
  }, "strip", z.ZodTypeAny, {
158
- code: string;
159
- label: string;
195
+ code: string & z.BRAND<"FoodCode">;
196
+ label: string & z.BRAND<"FoodLabel">;
160
197
  }, {
161
198
  code: string;
162
199
  label: string;
163
- }>, "many">;
164
- dislikes: z.ZodArray<z.ZodObject<{
165
- code: z.ZodString;
166
- label: z.ZodString;
200
+ }>, "many">>;
201
+ disliked: z.ZodOptional<z.ZodArray<z.ZodObject<{
202
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
203
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
167
204
  }, "strip", z.ZodTypeAny, {
168
- code: string;
169
- label: string;
205
+ code: string & z.BRAND<"FoodCode">;
206
+ label: string & z.BRAND<"FoodLabel">;
170
207
  }, {
171
208
  code: string;
172
209
  label: string;
173
- }>, "many">;
174
- allergies: z.ZodArray<z.ZodObject<{
175
- code: z.ZodString;
176
- label: z.ZodString;
210
+ }>, "many">>;
211
+ allergy: z.ZodOptional<z.ZodArray<z.ZodObject<{
212
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
213
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
177
214
  }, "strip", z.ZodTypeAny, {
178
- code: string;
179
- label: string;
215
+ code: string & z.BRAND<"FoodCode">;
216
+ label: string & z.BRAND<"FoodLabel">;
180
217
  }, {
181
218
  code: string;
182
219
  label: string;
183
- }>, "many">;
220
+ }>, "many">>;
184
221
  }, "strip", z.ZodTypeAny, {
185
- memberId: number & z.BRAND<"MemberId">;
186
222
  username: string;
187
223
  profileImageUrl: string | null;
188
224
  bio: string | null;
189
- planCount: number;
190
- likes: {
191
- code: string;
192
- label: string;
193
- }[];
194
- dislikes: {
195
- code: string;
196
- label: string;
197
- }[];
198
- allergies: {
199
- code: string;
200
- label: string;
201
- }[];
225
+ liked?: {
226
+ code: string & z.BRAND<"FoodCode">;
227
+ label: string & z.BRAND<"FoodLabel">;
228
+ }[] | undefined;
229
+ disliked?: {
230
+ code: string & z.BRAND<"FoodCode">;
231
+ label: string & z.BRAND<"FoodLabel">;
232
+ }[] | undefined;
233
+ allergy?: {
234
+ code: string & z.BRAND<"FoodCode">;
235
+ label: string & z.BRAND<"FoodLabel">;
236
+ }[] | undefined;
202
237
  }, {
203
- memberId: number;
204
238
  username: string;
205
239
  profileImageUrl: string | null;
206
240
  bio: string | null;
207
- planCount: number;
208
- likes: {
241
+ liked?: {
209
242
  code: string;
210
243
  label: string;
211
- }[];
212
- dislikes: {
244
+ }[] | undefined;
245
+ disliked?: {
213
246
  code: string;
214
247
  label: string;
215
- }[];
216
- allergies: {
248
+ }[] | undefined;
249
+ allergy?: {
217
250
  code: string;
218
251
  label: string;
219
- }[];
220
- }>>;
252
+ }[] | undefined;
253
+ }>, z.ZodNull>;
221
254
  readonly updateProfile: EndpointContract<"PATCH", "/members/me/profile", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
222
255
  username: z.ZodString;
223
256
  profileImageUrl: z.ZodNullable<z.ZodString>;
@@ -230,161 +263,660 @@ declare const apiContract: {
230
263
  username: string;
231
264
  profileImageUrl: string | null;
232
265
  bio: string | null;
233
- }>, z.ZodObject<{
234
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
235
- username: z.ZodString;
236
- profileImageUrl: z.ZodNullable<z.ZodString>;
237
- } & {
238
- bio: z.ZodNullable<z.ZodString>;
239
- planCount: z.ZodNumber;
240
- likes: z.ZodArray<z.ZodObject<{
241
- code: z.ZodString;
242
- label: z.ZodString;
266
+ }>, z.ZodNull>;
267
+ readonly updatePreferences: EndpointContract<"PATCH", "/members/me/preferences", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
268
+ liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
269
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
270
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
243
271
  }, "strip", z.ZodTypeAny, {
272
+ code: string & z.BRAND<"FoodCode">;
273
+ label: string & z.BRAND<"FoodLabel">;
274
+ }, {
244
275
  code: string;
245
276
  label: string;
277
+ }>, "many">>;
278
+ disliked: z.ZodOptional<z.ZodArray<z.ZodObject<{
279
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
280
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
281
+ }, "strip", z.ZodTypeAny, {
282
+ code: string & z.BRAND<"FoodCode">;
283
+ label: string & z.BRAND<"FoodLabel">;
246
284
  }, {
247
285
  code: string;
248
286
  label: string;
249
- }>, "many">;
250
- dislikes: z.ZodArray<z.ZodObject<{
251
- code: z.ZodString;
252
- label: z.ZodString;
287
+ }>, "many">>;
288
+ allergy: z.ZodOptional<z.ZodArray<z.ZodObject<{
289
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
290
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
253
291
  }, "strip", z.ZodTypeAny, {
292
+ code: string & z.BRAND<"FoodCode">;
293
+ label: string & z.BRAND<"FoodLabel">;
294
+ }, {
254
295
  code: string;
255
296
  label: string;
256
- }, {
297
+ }>, "many">>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ liked?: {
300
+ code: string & z.BRAND<"FoodCode">;
301
+ label: string & z.BRAND<"FoodLabel">;
302
+ }[] | undefined;
303
+ disliked?: {
304
+ code: string & z.BRAND<"FoodCode">;
305
+ label: string & z.BRAND<"FoodLabel">;
306
+ }[] | undefined;
307
+ allergy?: {
308
+ code: string & z.BRAND<"FoodCode">;
309
+ label: string & z.BRAND<"FoodLabel">;
310
+ }[] | undefined;
311
+ }, {
312
+ liked?: {
257
313
  code: string;
258
314
  label: string;
315
+ }[] | undefined;
316
+ disliked?: {
317
+ code: string;
318
+ label: string;
319
+ }[] | undefined;
320
+ allergy?: {
321
+ code: string;
322
+ label: string;
323
+ }[] | undefined;
324
+ }>, z.ZodNull>;
325
+ };
326
+ readonly mealStatus: {
327
+ readonly my: EndpointContract<"GET", "/meal-status", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
328
+ hungry: z.ZodBoolean;
329
+ label: z.ZodString;
330
+ updatedAt: z.ZodString;
331
+ secondsToAutoOff: z.ZodNumber;
332
+ }, "strip", z.ZodTypeAny, {
333
+ label: string;
334
+ updatedAt: string;
335
+ hungry: boolean;
336
+ secondsToAutoOff: number;
337
+ }, {
338
+ label: string;
339
+ updatedAt: string;
340
+ hungry: boolean;
341
+ secondsToAutoOff: number;
342
+ }>>;
343
+ readonly updateMealStatus: EndpointContract<"PATCH", "/meal-status", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
344
+ action: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ARTICLE_UPLOAD", "SET_MANNUALY"]>>>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ action: "ARTICLE_UPLOAD" | "SET_MANNUALY";
347
+ }, {
348
+ action?: "ARTICLE_UPLOAD" | "SET_MANNUALY" | undefined;
349
+ }>, z.ZodNull>;
350
+ readonly friendMealStatus: EndpointContract<"GET", "/meal-status/friend", z.ZodUndefined, z.ZodObject<{
351
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ALL", "HUNGRY", "NOT_HUNGRY"]>>>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ status: "ALL" | "HUNGRY" | "NOT_HUNGRY";
354
+ }, {
355
+ status?: "ALL" | "HUNGRY" | "NOT_HUNGRY" | undefined;
356
+ }>, z.ZodUndefined, z.ZodArray<z.ZodObject<{
357
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
358
+ username: z.ZodString;
359
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
360
+ } & {
361
+ hungry: z.ZodBoolean;
362
+ label: z.ZodString;
363
+ updatedAt: z.ZodString;
364
+ }, "strip", z.ZodTypeAny, {
365
+ label: string;
366
+ memberId: number & z.BRAND<"MemberId">;
367
+ username: string;
368
+ updatedAt: string;
369
+ hungry: boolean;
370
+ profileImageUrl?: string | null | undefined;
371
+ }, {
372
+ label: string;
373
+ memberId: number;
374
+ username: string;
375
+ updatedAt: string;
376
+ hungry: boolean;
377
+ profileImageUrl?: string | null | undefined;
378
+ }>, "many">>;
379
+ };
380
+ readonly articles: {
381
+ readonly list: EndpointContract<"GET", "/articles/home", z.ZodUndefined, z.ZodObject<{
382
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
383
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
384
+ } & {
385
+ sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt", "likeCount", "commentCount"]>>>;
386
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ page: number;
389
+ size: number;
390
+ sortBy: "createdAt" | "likeCount" | "commentCount";
391
+ direction: "asc" | "desc";
392
+ }, {
393
+ page?: number | undefined;
394
+ size?: number | undefined;
395
+ sortBy?: "createdAt" | "likeCount" | "commentCount" | undefined;
396
+ direction?: "asc" | "desc" | undefined;
397
+ }>, z.ZodUndefined, z.ZodObject<{
398
+ items: z.ZodArray<z.ZodObject<{
399
+ articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
400
+ author: z.ZodObject<{
401
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
402
+ username: z.ZodString;
403
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ memberId: number & z.BRAND<"MemberId">;
406
+ username: string;
407
+ profileImageUrl?: string | null | undefined;
408
+ }, {
409
+ memberId: number;
410
+ username: string;
411
+ profileImageUrl?: string | null | undefined;
412
+ }>;
413
+ imageUrl: z.ZodString;
414
+ mealDate: z.ZodString;
415
+ restaurant: z.ZodObject<{
416
+ restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
417
+ placeName: z.ZodString;
418
+ categoryName: z.ZodString;
419
+ categoryGroupName: z.ZodString;
420
+ distance: z.ZodOptional<z.ZodString>;
421
+ roadAddressName: z.ZodString;
422
+ addressName: z.ZodString;
423
+ phone: z.ZodNullable<z.ZodString>;
424
+ placeUrl: z.ZodNullable<z.ZodString>;
425
+ lat: z.ZodNumber;
426
+ lng: z.ZodNumber;
427
+ }, "strip", z.ZodTypeAny, {
428
+ restaurantId: string & z.BRAND<"RestaurantId">;
429
+ placeName: string;
430
+ categoryName: string;
431
+ categoryGroupName: string;
432
+ roadAddressName: string;
433
+ addressName: string;
434
+ phone: string | null;
435
+ placeUrl: string | null;
436
+ lat: number;
437
+ lng: number;
438
+ distance?: string | undefined;
439
+ }, {
440
+ restaurantId: string;
441
+ placeName: string;
442
+ categoryName: string;
443
+ categoryGroupName: string;
444
+ roadAddressName: string;
445
+ addressName: string;
446
+ phone: string | null;
447
+ placeUrl: string | null;
448
+ lat: number;
449
+ lng: number;
450
+ distance?: string | undefined;
451
+ }>;
452
+ createdAt: z.ZodString;
453
+ updatedAt: z.ZodString;
454
+ expiresAt: z.ZodString;
455
+ taggedMembers: z.ZodArray<z.ZodObject<{
456
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
457
+ username: z.ZodString;
458
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ memberId: number & z.BRAND<"MemberId">;
461
+ username: string;
462
+ profileImageUrl?: string | null | undefined;
463
+ }, {
464
+ memberId: number;
465
+ username: string;
466
+ profileImageUrl?: string | null | undefined;
467
+ }>, "many">;
468
+ } & {
469
+ likeCount: z.ZodNumber;
470
+ commentCount: z.ZodNumber;
471
+ likedByMe: z.ZodBoolean;
472
+ }, "strip", z.ZodTypeAny, {
473
+ createdAt: string;
474
+ likeCount: number;
475
+ commentCount: number;
476
+ imageUrl: string;
477
+ mealDate: string;
478
+ restaurant: {
479
+ restaurantId: string & z.BRAND<"RestaurantId">;
480
+ placeName: string;
481
+ categoryName: string;
482
+ categoryGroupName: string;
483
+ roadAddressName: string;
484
+ addressName: string;
485
+ phone: string | null;
486
+ placeUrl: string | null;
487
+ lat: number;
488
+ lng: number;
489
+ distance?: string | undefined;
490
+ };
491
+ author: {
492
+ memberId: number & z.BRAND<"MemberId">;
493
+ username: string;
494
+ profileImageUrl?: string | null | undefined;
495
+ };
496
+ updatedAt: string;
497
+ articleId: number & z.BRAND<"ArticleId">;
498
+ expiresAt: string;
499
+ taggedMembers: {
500
+ memberId: number & z.BRAND<"MemberId">;
501
+ username: string;
502
+ profileImageUrl?: string | null | undefined;
503
+ }[];
504
+ likedByMe: boolean;
505
+ }, {
506
+ createdAt: string;
507
+ likeCount: number;
508
+ commentCount: number;
509
+ imageUrl: string;
510
+ mealDate: string;
511
+ restaurant: {
512
+ restaurantId: string;
513
+ placeName: string;
514
+ categoryName: string;
515
+ categoryGroupName: string;
516
+ roadAddressName: string;
517
+ addressName: string;
518
+ phone: string | null;
519
+ placeUrl: string | null;
520
+ lat: number;
521
+ lng: number;
522
+ distance?: string | undefined;
523
+ };
524
+ author: {
525
+ memberId: number;
526
+ username: string;
527
+ profileImageUrl?: string | null | undefined;
528
+ };
529
+ updatedAt: string;
530
+ articleId: number;
531
+ expiresAt: string;
532
+ taggedMembers: {
533
+ memberId: number;
534
+ username: string;
535
+ profileImageUrl?: string | null | undefined;
536
+ }[];
537
+ likedByMe: boolean;
538
+ }>, "many">;
539
+ meta: z.ZodObject<{
540
+ page: z.ZodNumber;
541
+ size: z.ZodNumber;
542
+ totalItems: z.ZodNumber;
543
+ totalPages: z.ZodNumber;
544
+ hasNext: z.ZodBoolean;
545
+ hasPrevious: z.ZodBoolean;
546
+ }, "strip", z.ZodTypeAny, {
547
+ page: number;
548
+ size: number;
549
+ totalItems: number;
550
+ totalPages: number;
551
+ hasNext: boolean;
552
+ hasPrevious: boolean;
553
+ }, {
554
+ page: number;
555
+ size: number;
556
+ totalItems: number;
557
+ totalPages: number;
558
+ hasNext: boolean;
559
+ hasPrevious: boolean;
560
+ }>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ items: {
563
+ createdAt: string;
564
+ likeCount: number;
565
+ commentCount: number;
566
+ imageUrl: string;
567
+ mealDate: string;
568
+ restaurant: {
569
+ restaurantId: string & z.BRAND<"RestaurantId">;
570
+ placeName: string;
571
+ categoryName: string;
572
+ categoryGroupName: string;
573
+ roadAddressName: string;
574
+ addressName: string;
575
+ phone: string | null;
576
+ placeUrl: string | null;
577
+ lat: number;
578
+ lng: number;
579
+ distance?: string | undefined;
580
+ };
581
+ author: {
582
+ memberId: number & z.BRAND<"MemberId">;
583
+ username: string;
584
+ profileImageUrl?: string | null | undefined;
585
+ };
586
+ updatedAt: string;
587
+ articleId: number & z.BRAND<"ArticleId">;
588
+ expiresAt: string;
589
+ taggedMembers: {
590
+ memberId: number & z.BRAND<"MemberId">;
591
+ username: string;
592
+ profileImageUrl?: string | null | undefined;
593
+ }[];
594
+ likedByMe: boolean;
595
+ }[];
596
+ meta: {
597
+ page: number;
598
+ size: number;
599
+ totalItems: number;
600
+ totalPages: number;
601
+ hasNext: boolean;
602
+ hasPrevious: boolean;
603
+ };
604
+ }, {
605
+ items: {
606
+ createdAt: string;
607
+ likeCount: number;
608
+ commentCount: number;
609
+ imageUrl: string;
610
+ mealDate: string;
611
+ restaurant: {
612
+ restaurantId: string;
613
+ placeName: string;
614
+ categoryName: string;
615
+ categoryGroupName: string;
616
+ roadAddressName: string;
617
+ addressName: string;
618
+ phone: string | null;
619
+ placeUrl: string | null;
620
+ lat: number;
621
+ lng: number;
622
+ distance?: string | undefined;
623
+ };
624
+ author: {
625
+ memberId: number;
626
+ username: string;
627
+ profileImageUrl?: string | null | undefined;
628
+ };
629
+ updatedAt: string;
630
+ articleId: number;
631
+ expiresAt: string;
632
+ taggedMembers: {
633
+ memberId: number;
634
+ username: string;
635
+ profileImageUrl?: string | null | undefined;
636
+ }[];
637
+ likedByMe: boolean;
638
+ }[];
639
+ meta: {
640
+ page: number;
641
+ size: number;
642
+ totalItems: number;
643
+ totalPages: number;
644
+ hasNext: boolean;
645
+ hasPrevious: boolean;
646
+ };
647
+ }>>;
648
+ readonly byAuthor: EndpointContract<"GET", "/articles/by-author/:authorId", z.ZodObject<{
649
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
650
+ }, "strip", z.ZodTypeAny, {
651
+ memberId: number & z.BRAND<"MemberId">;
652
+ }, {
653
+ memberId: number;
654
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
655
+ items: z.ZodArray<z.ZodObject<{
656
+ articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
657
+ author: z.ZodObject<{
658
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
659
+ username: z.ZodString;
660
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
661
+ }, "strip", z.ZodTypeAny, {
662
+ memberId: number & z.BRAND<"MemberId">;
663
+ username: string;
664
+ profileImageUrl?: string | null | undefined;
665
+ }, {
666
+ memberId: number;
667
+ username: string;
668
+ profileImageUrl?: string | null | undefined;
669
+ }>;
670
+ imageUrl: z.ZodString;
671
+ mealDate: z.ZodString;
672
+ restaurant: z.ZodObject<{
673
+ restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
674
+ placeName: z.ZodString;
675
+ categoryName: z.ZodString;
676
+ categoryGroupName: z.ZodString;
677
+ distance: z.ZodOptional<z.ZodString>;
678
+ roadAddressName: z.ZodString;
679
+ addressName: z.ZodString;
680
+ phone: z.ZodNullable<z.ZodString>;
681
+ placeUrl: z.ZodNullable<z.ZodString>;
682
+ lat: z.ZodNumber;
683
+ lng: z.ZodNumber;
684
+ }, "strip", z.ZodTypeAny, {
685
+ restaurantId: string & z.BRAND<"RestaurantId">;
686
+ placeName: string;
687
+ categoryName: string;
688
+ categoryGroupName: string;
689
+ roadAddressName: string;
690
+ addressName: string;
691
+ phone: string | null;
692
+ placeUrl: string | null;
693
+ lat: number;
694
+ lng: number;
695
+ distance?: string | undefined;
696
+ }, {
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
+ createdAt: z.ZodString;
710
+ updatedAt: z.ZodString;
711
+ expiresAt: z.ZodString;
712
+ taggedMembers: z.ZodArray<z.ZodObject<{
713
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
714
+ username: z.ZodString;
715
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ memberId: number & z.BRAND<"MemberId">;
718
+ username: string;
719
+ profileImageUrl?: string | null | undefined;
720
+ }, {
721
+ memberId: number;
722
+ username: string;
723
+ profileImageUrl?: string | null | undefined;
724
+ }>, "many">;
725
+ } & {
726
+ likeCount: z.ZodNumber;
727
+ commentCount: z.ZodNumber;
728
+ likedByMe: z.ZodBoolean;
729
+ }, "strip", z.ZodTypeAny, {
730
+ createdAt: string;
731
+ likeCount: number;
732
+ commentCount: number;
733
+ imageUrl: string;
734
+ mealDate: string;
735
+ restaurant: {
736
+ restaurantId: string & z.BRAND<"RestaurantId">;
737
+ placeName: string;
738
+ categoryName: string;
739
+ categoryGroupName: string;
740
+ roadAddressName: string;
741
+ addressName: string;
742
+ phone: string | null;
743
+ placeUrl: string | null;
744
+ lat: number;
745
+ lng: number;
746
+ distance?: string | undefined;
747
+ };
748
+ author: {
749
+ memberId: number & z.BRAND<"MemberId">;
750
+ username: string;
751
+ profileImageUrl?: string | null | undefined;
752
+ };
753
+ updatedAt: string;
754
+ articleId: number & z.BRAND<"ArticleId">;
755
+ expiresAt: string;
756
+ taggedMembers: {
757
+ memberId: number & z.BRAND<"MemberId">;
758
+ username: string;
759
+ profileImageUrl?: string | null | undefined;
760
+ }[];
761
+ likedByMe: boolean;
762
+ }, {
763
+ createdAt: string;
764
+ likeCount: number;
765
+ commentCount: number;
766
+ imageUrl: string;
767
+ mealDate: string;
768
+ restaurant: {
769
+ restaurantId: string;
770
+ placeName: string;
771
+ categoryName: string;
772
+ categoryGroupName: string;
773
+ roadAddressName: string;
774
+ addressName: string;
775
+ phone: string | null;
776
+ placeUrl: string | null;
777
+ lat: number;
778
+ lng: number;
779
+ distance?: string | undefined;
780
+ };
781
+ author: {
782
+ memberId: number;
783
+ username: string;
784
+ profileImageUrl?: string | null | undefined;
785
+ };
786
+ updatedAt: string;
787
+ articleId: number;
788
+ expiresAt: string;
789
+ taggedMembers: {
790
+ memberId: number;
791
+ username: string;
792
+ profileImageUrl?: string | null | undefined;
793
+ }[];
794
+ likedByMe: boolean;
259
795
  }>, "many">;
260
- allergies: z.ZodArray<z.ZodObject<{
261
- code: z.ZodString;
262
- label: z.ZodString;
796
+ meta: z.ZodObject<{
797
+ page: z.ZodNumber;
798
+ size: z.ZodNumber;
799
+ totalItems: z.ZodNumber;
800
+ totalPages: z.ZodNumber;
801
+ hasNext: z.ZodBoolean;
802
+ hasPrevious: z.ZodBoolean;
263
803
  }, "strip", z.ZodTypeAny, {
264
- code: string;
265
- label: string;
804
+ page: number;
805
+ size: number;
806
+ totalItems: number;
807
+ totalPages: number;
808
+ hasNext: boolean;
809
+ hasPrevious: boolean;
266
810
  }, {
267
- code: string;
268
- label: string;
269
- }>, "many">;
811
+ page: number;
812
+ size: number;
813
+ totalItems: number;
814
+ totalPages: number;
815
+ hasNext: boolean;
816
+ hasPrevious: boolean;
817
+ }>;
270
818
  }, "strip", z.ZodTypeAny, {
271
- memberId: number & z.BRAND<"MemberId">;
272
- username: string;
273
- profileImageUrl: string | null;
274
- bio: string | null;
275
- planCount: number;
276
- likes: {
277
- code: string;
278
- label: string;
279
- }[];
280
- dislikes: {
281
- code: string;
282
- label: string;
283
- }[];
284
- allergies: {
285
- code: string;
286
- label: string;
819
+ items: {
820
+ createdAt: string;
821
+ likeCount: number;
822
+ commentCount: number;
823
+ imageUrl: string;
824
+ mealDate: string;
825
+ restaurant: {
826
+ restaurantId: string & z.BRAND<"RestaurantId">;
827
+ placeName: string;
828
+ categoryName: string;
829
+ categoryGroupName: string;
830
+ roadAddressName: string;
831
+ addressName: string;
832
+ phone: string | null;
833
+ placeUrl: string | null;
834
+ lat: number;
835
+ lng: number;
836
+ distance?: string | undefined;
837
+ };
838
+ author: {
839
+ memberId: number & z.BRAND<"MemberId">;
840
+ username: string;
841
+ profileImageUrl?: string | null | undefined;
842
+ };
843
+ updatedAt: string;
844
+ articleId: number & z.BRAND<"ArticleId">;
845
+ expiresAt: string;
846
+ taggedMembers: {
847
+ memberId: number & z.BRAND<"MemberId">;
848
+ username: string;
849
+ profileImageUrl?: string | null | undefined;
850
+ }[];
851
+ likedByMe: boolean;
287
852
  }[];
853
+ meta: {
854
+ page: number;
855
+ size: number;
856
+ totalItems: number;
857
+ totalPages: number;
858
+ hasNext: boolean;
859
+ hasPrevious: boolean;
860
+ };
288
861
  }, {
289
- memberId: number;
290
- username: string;
291
- profileImageUrl: string | null;
292
- bio: string | null;
293
- planCount: number;
294
- likes: {
295
- code: string;
296
- label: string;
297
- }[];
298
- dislikes: {
299
- code: string;
300
- label: string;
301
- }[];
302
- allergies: {
303
- code: string;
304
- label: string;
862
+ items: {
863
+ createdAt: string;
864
+ likeCount: number;
865
+ commentCount: number;
866
+ imageUrl: string;
867
+ mealDate: string;
868
+ restaurant: {
869
+ restaurantId: string;
870
+ placeName: string;
871
+ categoryName: string;
872
+ categoryGroupName: string;
873
+ roadAddressName: string;
874
+ addressName: string;
875
+ phone: string | null;
876
+ placeUrl: string | null;
877
+ lat: number;
878
+ lng: number;
879
+ distance?: string | undefined;
880
+ };
881
+ author: {
882
+ memberId: number;
883
+ username: string;
884
+ profileImageUrl?: string | null | undefined;
885
+ };
886
+ updatedAt: string;
887
+ articleId: number;
888
+ expiresAt: string;
889
+ taggedMembers: {
890
+ memberId: number;
891
+ username: string;
892
+ profileImageUrl?: string | null | undefined;
893
+ }[];
894
+ likedByMe: boolean;
305
895
  }[];
896
+ meta: {
897
+ page: number;
898
+ size: number;
899
+ totalItems: number;
900
+ totalPages: number;
901
+ hasNext: boolean;
902
+ hasPrevious: boolean;
903
+ };
306
904
  }>>;
307
- readonly onboarding: EndpointContract<"POST", "/members/me/onboarding", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
308
- username: z.ZodString;
309
- profileImageUrl: z.ZodNullable<z.ZodString>;
310
- bio: z.ZodNullable<z.ZodString>;
311
- } & {
312
- likedCodes: z.ZodArray<z.ZodString, "many">;
313
- dislikedCodes: z.ZodArray<z.ZodString, "many">;
314
- allergyCodes: z.ZodArray<z.ZodString, "many">;
315
- }, "strip", z.ZodTypeAny, {
316
- username: string;
317
- profileImageUrl: string | null;
318
- bio: string | null;
319
- likedCodes: string[];
320
- dislikedCodes: string[];
321
- allergyCodes: string[];
322
- }, {
323
- username: string;
324
- profileImageUrl: string | null;
325
- bio: string | null;
326
- likedCodes: string[];
327
- dislikedCodes: string[];
328
- allergyCodes: string[];
329
- }>, z.ZodObject<{
330
- onboardedAt: z.ZodNullable<z.ZodString>;
331
- lastUpdatedAt: z.ZodNullable<z.ZodString>;
332
- revision: z.ZodNumber;
333
- }, "strip", z.ZodTypeAny, {
334
- onboardedAt: string | null;
335
- lastUpdatedAt: string | null;
336
- revision: number;
337
- }, {
338
- onboardedAt: string | null;
339
- lastUpdatedAt: string | null;
340
- revision: number;
341
- }>>;
342
- readonly updateOnboardingPreferences: EndpointContract<"PATCH", "/members/me/preferences", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
343
- likedCodes: z.ZodArray<z.ZodString, "many">;
344
- dislikedCodes: z.ZodArray<z.ZodString, "many">;
345
- allergyCodes: z.ZodArray<z.ZodString, "many">;
346
- }, "strip", z.ZodTypeAny, {
347
- likedCodes: string[];
348
- dislikedCodes: string[];
349
- allergyCodes: string[];
350
- }, {
351
- likedCodes: string[];
352
- dislikedCodes: string[];
353
- allergyCodes: string[];
354
- }>, z.ZodObject<{
355
- onboardedAt: z.ZodNullable<z.ZodString>;
356
- lastUpdatedAt: z.ZodNullable<z.ZodString>;
357
- revision: z.ZodNumber;
358
- }, "strip", z.ZodTypeAny, {
359
- onboardedAt: string | null;
360
- lastUpdatedAt: string | null;
361
- revision: number;
362
- }, {
363
- onboardedAt: string | null;
364
- lastUpdatedAt: string | null;
365
- revision: number;
366
- }>>;
367
- };
368
- readonly articles: {
369
- readonly list: EndpointContract<"GET", "/articles", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
370
- totalElements: z.ZodNumber;
371
- totalPages: z.ZodNumber;
372
- first: z.ZodBoolean;
373
- size: z.ZodNumber;
374
- content: z.ZodArray<z.ZodObject<{
905
+ readonly my: EndpointContract<"GET", "/articles/my", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
906
+ items: z.ZodArray<z.ZodObject<{
375
907
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
376
- author: z.ZodObject<Pick<{
908
+ author: z.ZodObject<{
377
909
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
378
910
  username: z.ZodString;
379
- profileImageUrl: z.ZodNullable<z.ZodString>;
380
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
911
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
+ }, "strip", z.ZodTypeAny, {
381
913
  memberId: number & z.BRAND<"MemberId">;
382
914
  username: string;
383
- profileImageUrl: string | null;
915
+ profileImageUrl?: string | null | undefined;
384
916
  }, {
385
917
  memberId: number;
386
918
  username: string;
387
- profileImageUrl: string | null;
919
+ profileImageUrl?: string | null | undefined;
388
920
  }>;
389
921
  imageUrl: z.ZodString;
390
922
  mealDate: z.ZodString;
@@ -428,24 +960,27 @@ declare const apiContract: {
428
960
  createdAt: z.ZodString;
429
961
  updatedAt: z.ZodString;
430
962
  expiresAt: z.ZodString;
431
- taggedMembers: z.ZodArray<z.ZodObject<Pick<{
963
+ taggedMembers: z.ZodArray<z.ZodObject<{
432
964
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
433
965
  username: z.ZodString;
434
- profileImageUrl: z.ZodNullable<z.ZodString>;
435
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
966
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
+ }, "strip", z.ZodTypeAny, {
436
968
  memberId: number & z.BRAND<"MemberId">;
437
969
  username: string;
438
- profileImageUrl: string | null;
970
+ profileImageUrl?: string | null | undefined;
439
971
  }, {
440
972
  memberId: number;
441
973
  username: string;
442
- profileImageUrl: string | null;
974
+ profileImageUrl?: string | null | undefined;
443
975
  }>, "many">;
444
976
  } & {
445
977
  likeCount: z.ZodNumber;
446
978
  commentCount: z.ZodNumber;
447
979
  likedByMe: z.ZodBoolean;
448
980
  }, "strip", z.ZodTypeAny, {
981
+ createdAt: string;
982
+ likeCount: number;
983
+ commentCount: number;
449
984
  imageUrl: string;
450
985
  mealDate: string;
451
986
  restaurant: {
@@ -461,24 +996,24 @@ declare const apiContract: {
461
996
  lng: number;
462
997
  distance?: string | undefined;
463
998
  };
464
- articleId: number & z.BRAND<"ArticleId">;
465
999
  author: {
466
1000
  memberId: number & z.BRAND<"MemberId">;
467
1001
  username: string;
468
- profileImageUrl: string | null;
1002
+ profileImageUrl?: string | null | undefined;
469
1003
  };
470
- createdAt: string;
471
1004
  updatedAt: string;
1005
+ articleId: number & z.BRAND<"ArticleId">;
472
1006
  expiresAt: string;
473
1007
  taggedMembers: {
474
1008
  memberId: number & z.BRAND<"MemberId">;
475
1009
  username: string;
476
- profileImageUrl: string | null;
1010
+ profileImageUrl?: string | null | undefined;
477
1011
  }[];
478
- likeCount: number;
479
- commentCount: number;
480
1012
  likedByMe: boolean;
481
1013
  }, {
1014
+ createdAt: string;
1015
+ likeCount: number;
1016
+ commentCount: number;
482
1017
  imageUrl: string;
483
1018
  mealDate: string;
484
1019
  restaurant: {
@@ -494,96 +1029,48 @@ declare const apiContract: {
494
1029
  lng: number;
495
1030
  distance?: string | undefined;
496
1031
  };
497
- articleId: number;
498
1032
  author: {
499
1033
  memberId: number;
500
1034
  username: string;
501
- profileImageUrl: string | null;
1035
+ profileImageUrl?: string | null | undefined;
502
1036
  };
503
- createdAt: string;
504
1037
  updatedAt: string;
1038
+ articleId: number;
505
1039
  expiresAt: string;
506
1040
  taggedMembers: {
507
1041
  memberId: number;
508
1042
  username: string;
509
- profileImageUrl: string | null;
1043
+ profileImageUrl?: string | null | undefined;
510
1044
  }[];
511
- likeCount: number;
512
- commentCount: number;
513
1045
  likedByMe: boolean;
514
1046
  }>, "many">;
515
- number: z.ZodNumber;
516
- sort: z.ZodObject<{
517
- empty: z.ZodBoolean;
518
- sorted: z.ZodBoolean;
519
- unsorted: z.ZodBoolean;
520
- }, "strip", z.ZodTypeAny, {
521
- empty: boolean;
522
- sorted: boolean;
523
- unsorted: boolean;
524
- }, {
525
- empty: boolean;
526
- sorted: boolean;
527
- unsorted: boolean;
528
- }>;
529
- numberOfElements: z.ZodNumber;
530
- pageable: z.ZodObject<{
531
- offset: z.ZodNumber;
532
- sort: z.ZodObject<{
533
- empty: z.ZodBoolean;
534
- sorted: z.ZodBoolean;
535
- unsorted: z.ZodBoolean;
536
- }, "strip", z.ZodTypeAny, {
537
- empty: boolean;
538
- sorted: boolean;
539
- unsorted: boolean;
540
- }, {
541
- empty: boolean;
542
- sorted: boolean;
543
- unsorted: boolean;
544
- }>;
545
- paged: z.ZodBoolean;
546
- pageNumber: z.ZodNumber;
547
- pageSize: z.ZodNumber;
548
- unpaged: z.ZodBoolean;
1047
+ meta: z.ZodObject<{
1048
+ page: z.ZodNumber;
1049
+ size: z.ZodNumber;
1050
+ totalItems: z.ZodNumber;
1051
+ totalPages: z.ZodNumber;
1052
+ hasNext: z.ZodBoolean;
1053
+ hasPrevious: z.ZodBoolean;
549
1054
  }, "strip", z.ZodTypeAny, {
550
- offset: number;
551
- sort: {
552
- empty: boolean;
553
- sorted: boolean;
554
- unsorted: boolean;
555
- };
556
- paged: boolean;
557
- pageNumber: number;
558
- pageSize: number;
559
- unpaged: boolean;
1055
+ page: number;
1056
+ size: number;
1057
+ totalItems: number;
1058
+ totalPages: number;
1059
+ hasNext: boolean;
1060
+ hasPrevious: boolean;
560
1061
  }, {
561
- offset: number;
562
- sort: {
563
- empty: boolean;
564
- sorted: boolean;
565
- unsorted: boolean;
566
- };
567
- paged: boolean;
568
- pageNumber: number;
569
- pageSize: number;
570
- unpaged: boolean;
1062
+ page: number;
1063
+ size: number;
1064
+ totalItems: number;
1065
+ totalPages: number;
1066
+ hasNext: boolean;
1067
+ hasPrevious: boolean;
571
1068
  }>;
572
- last: z.ZodBoolean;
573
- empty: z.ZodBoolean;
574
1069
  }, "strip", z.ZodTypeAny, {
575
- number: number;
576
- size: number;
577
- sort: {
578
- empty: boolean;
579
- sorted: boolean;
580
- unsorted: boolean;
581
- };
582
- empty: boolean;
583
- totalElements: number;
584
- totalPages: number;
585
- first: boolean;
586
- content: {
1070
+ items: {
1071
+ createdAt: string;
1072
+ likeCount: number;
1073
+ commentCount: number;
587
1074
  imageUrl: string;
588
1075
  mealDate: string;
589
1076
  restaurant: {
@@ -599,51 +1086,34 @@ declare const apiContract: {
599
1086
  lng: number;
600
1087
  distance?: string | undefined;
601
1088
  };
602
- articleId: number & z.BRAND<"ArticleId">;
603
1089
  author: {
604
1090
  memberId: number & z.BRAND<"MemberId">;
605
1091
  username: string;
606
- profileImageUrl: string | null;
1092
+ profileImageUrl?: string | null | undefined;
607
1093
  };
608
- createdAt: string;
609
1094
  updatedAt: string;
1095
+ articleId: number & z.BRAND<"ArticleId">;
610
1096
  expiresAt: string;
611
1097
  taggedMembers: {
612
1098
  memberId: number & z.BRAND<"MemberId">;
613
1099
  username: string;
614
- profileImageUrl: string | null;
1100
+ profileImageUrl?: string | null | undefined;
615
1101
  }[];
616
- likeCount: number;
617
- commentCount: number;
618
1102
  likedByMe: boolean;
619
1103
  }[];
620
- numberOfElements: number;
621
- pageable: {
622
- offset: number;
623
- sort: {
624
- empty: boolean;
625
- sorted: boolean;
626
- unsorted: boolean;
627
- };
628
- paged: boolean;
629
- pageNumber: number;
630
- pageSize: number;
631
- unpaged: boolean;
1104
+ meta: {
1105
+ page: number;
1106
+ size: number;
1107
+ totalItems: number;
1108
+ totalPages: number;
1109
+ hasNext: boolean;
1110
+ hasPrevious: boolean;
632
1111
  };
633
- last: boolean;
634
1112
  }, {
635
- number: number;
636
- size: number;
637
- sort: {
638
- empty: boolean;
639
- sorted: boolean;
640
- unsorted: boolean;
641
- };
642
- empty: boolean;
643
- totalElements: number;
644
- totalPages: number;
645
- first: boolean;
646
- content: {
1113
+ items: {
1114
+ createdAt: string;
1115
+ likeCount: number;
1116
+ commentCount: number;
647
1117
  imageUrl: string;
648
1118
  mealDate: string;
649
1119
  restaurant: {
@@ -659,38 +1129,29 @@ declare const apiContract: {
659
1129
  lng: number;
660
1130
  distance?: string | undefined;
661
1131
  };
662
- articleId: number;
663
1132
  author: {
664
1133
  memberId: number;
665
1134
  username: string;
666
- profileImageUrl: string | null;
1135
+ profileImageUrl?: string | null | undefined;
667
1136
  };
668
- createdAt: string;
669
1137
  updatedAt: string;
1138
+ articleId: number;
670
1139
  expiresAt: string;
671
1140
  taggedMembers: {
672
1141
  memberId: number;
673
1142
  username: string;
674
- profileImageUrl: string | null;
1143
+ profileImageUrl?: string | null | undefined;
675
1144
  }[];
676
- likeCount: number;
677
- commentCount: number;
678
1145
  likedByMe: boolean;
679
1146
  }[];
680
- numberOfElements: number;
681
- pageable: {
682
- offset: number;
683
- sort: {
684
- empty: boolean;
685
- sorted: boolean;
686
- unsorted: boolean;
687
- };
688
- paged: boolean;
689
- pageNumber: number;
690
- pageSize: number;
691
- unpaged: boolean;
1147
+ meta: {
1148
+ page: number;
1149
+ size: number;
1150
+ totalItems: number;
1151
+ totalPages: number;
1152
+ hasNext: boolean;
1153
+ hasPrevious: boolean;
692
1154
  };
693
- last: boolean;
694
1155
  }>>;
695
1156
  readonly detail: EndpointContract<"GET", "/articles/:articleId", z.ZodObject<{
696
1157
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
@@ -700,18 +1161,18 @@ declare const apiContract: {
700
1161
  articleId: number;
701
1162
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
702
1163
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
703
- author: z.ZodObject<Pick<{
1164
+ author: z.ZodObject<{
704
1165
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
705
1166
  username: z.ZodString;
706
- profileImageUrl: z.ZodNullable<z.ZodString>;
707
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1167
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1168
+ }, "strip", z.ZodTypeAny, {
708
1169
  memberId: number & z.BRAND<"MemberId">;
709
1170
  username: string;
710
- profileImageUrl: string | null;
1171
+ profileImageUrl?: string | null | undefined;
711
1172
  }, {
712
1173
  memberId: number;
713
1174
  username: string;
714
- profileImageUrl: string | null;
1175
+ profileImageUrl?: string | null | undefined;
715
1176
  }>;
716
1177
  imageUrl: z.ZodString;
717
1178
  mealDate: z.ZodString;
@@ -755,18 +1216,18 @@ declare const apiContract: {
755
1216
  createdAt: z.ZodString;
756
1217
  updatedAt: z.ZodString;
757
1218
  expiresAt: z.ZodString;
758
- taggedMembers: z.ZodArray<z.ZodObject<Pick<{
1219
+ taggedMembers: z.ZodArray<z.ZodObject<{
759
1220
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
760
1221
  username: z.ZodString;
761
- profileImageUrl: z.ZodNullable<z.ZodString>;
762
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1222
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1223
+ }, "strip", z.ZodTypeAny, {
763
1224
  memberId: number & z.BRAND<"MemberId">;
764
1225
  username: string;
765
- profileImageUrl: string | null;
1226
+ profileImageUrl?: string | null | undefined;
766
1227
  }, {
767
1228
  memberId: number;
768
1229
  username: string;
769
- profileImageUrl: string | null;
1230
+ profileImageUrl?: string | null | undefined;
770
1231
  }>, "many">;
771
1232
  } & {
772
1233
  likeCount: z.ZodNumber;
@@ -775,47 +1236,50 @@ declare const apiContract: {
775
1236
  } & {
776
1237
  comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
777
1238
  commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
778
- author: z.ZodObject<Pick<{
1239
+ author: z.ZodObject<{
779
1240
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
780
1241
  username: z.ZodString;
781
- profileImageUrl: z.ZodNullable<z.ZodString>;
782
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1242
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1243
+ }, "strip", z.ZodTypeAny, {
783
1244
  memberId: number & z.BRAND<"MemberId">;
784
1245
  username: string;
785
- profileImageUrl: string | null;
1246
+ profileImageUrl?: string | null | undefined;
786
1247
  }, {
787
1248
  memberId: number;
788
1249
  username: string;
789
- profileImageUrl: string | null;
1250
+ profileImageUrl?: string | null | undefined;
790
1251
  }>;
791
1252
  parentCommentId: z.ZodNullable<z.ZodBranded<z.ZodNumber, "CommentId">>;
792
1253
  content: z.ZodString;
793
1254
  createdAt: z.ZodString;
794
1255
  updatedAt: z.ZodString;
795
1256
  }, "strip", z.ZodTypeAny, {
1257
+ createdAt: string;
796
1258
  content: string;
797
1259
  parentCommentId: (number & z.BRAND<"CommentId">) | null;
798
1260
  commentId: number & z.BRAND<"CommentId">;
799
1261
  author: {
800
1262
  memberId: number & z.BRAND<"MemberId">;
801
1263
  username: string;
802
- profileImageUrl: string | null;
1264
+ profileImageUrl?: string | null | undefined;
803
1265
  };
804
- createdAt: string;
805
1266
  updatedAt: string;
806
1267
  }, {
1268
+ createdAt: string;
807
1269
  content: string;
808
1270
  parentCommentId: number | null;
809
1271
  commentId: number;
810
1272
  author: {
811
1273
  memberId: number;
812
1274
  username: string;
813
- profileImageUrl: string | null;
1275
+ profileImageUrl?: string | null | undefined;
814
1276
  };
815
- createdAt: string;
816
1277
  updatedAt: string;
817
1278
  }>, "many">>;
818
1279
  }, "strip", z.ZodTypeAny, {
1280
+ createdAt: string;
1281
+ likeCount: number;
1282
+ commentCount: number;
819
1283
  imageUrl: string;
820
1284
  mealDate: string;
821
1285
  restaurant: {
@@ -831,36 +1295,36 @@ declare const apiContract: {
831
1295
  lng: number;
832
1296
  distance?: string | undefined;
833
1297
  };
834
- articleId: number & z.BRAND<"ArticleId">;
835
1298
  author: {
836
1299
  memberId: number & z.BRAND<"MemberId">;
837
1300
  username: string;
838
- profileImageUrl: string | null;
1301
+ profileImageUrl?: string | null | undefined;
839
1302
  };
840
- createdAt: string;
841
1303
  updatedAt: string;
1304
+ articleId: number & z.BRAND<"ArticleId">;
842
1305
  expiresAt: string;
843
1306
  taggedMembers: {
844
1307
  memberId: number & z.BRAND<"MemberId">;
845
1308
  username: string;
846
- profileImageUrl: string | null;
1309
+ profileImageUrl?: string | null | undefined;
847
1310
  }[];
848
- likeCount: number;
849
- commentCount: number;
850
1311
  likedByMe: boolean;
851
1312
  comments?: {
1313
+ createdAt: string;
852
1314
  content: string;
853
1315
  parentCommentId: (number & z.BRAND<"CommentId">) | null;
854
1316
  commentId: number & z.BRAND<"CommentId">;
855
1317
  author: {
856
1318
  memberId: number & z.BRAND<"MemberId">;
857
1319
  username: string;
858
- profileImageUrl: string | null;
1320
+ profileImageUrl?: string | null | undefined;
859
1321
  };
860
- createdAt: string;
861
1322
  updatedAt: string;
862
1323
  }[] | undefined;
863
1324
  }, {
1325
+ createdAt: string;
1326
+ likeCount: number;
1327
+ commentCount: number;
864
1328
  imageUrl: string;
865
1329
  mealDate: string;
866
1330
  restaurant: {
@@ -876,33 +1340,30 @@ declare const apiContract: {
876
1340
  lng: number;
877
1341
  distance?: string | undefined;
878
1342
  };
879
- articleId: number;
880
1343
  author: {
881
1344
  memberId: number;
882
1345
  username: string;
883
- profileImageUrl: string | null;
1346
+ profileImageUrl?: string | null | undefined;
884
1347
  };
885
- createdAt: string;
886
1348
  updatedAt: string;
1349
+ articleId: number;
887
1350
  expiresAt: string;
888
1351
  taggedMembers: {
889
1352
  memberId: number;
890
1353
  username: string;
891
- profileImageUrl: string | null;
1354
+ profileImageUrl?: string | null | undefined;
892
1355
  }[];
893
- likeCount: number;
894
- commentCount: number;
895
1356
  likedByMe: boolean;
896
1357
  comments?: {
1358
+ createdAt: string;
897
1359
  content: string;
898
1360
  parentCommentId: number | null;
899
1361
  commentId: number;
900
1362
  author: {
901
1363
  memberId: number;
902
1364
  username: string;
903
- profileImageUrl: string | null;
1365
+ profileImageUrl?: string | null | undefined;
904
1366
  };
905
- createdAt: string;
906
1367
  updatedAt: string;
907
1368
  }[] | undefined;
908
1369
  }>>;
@@ -948,13 +1409,14 @@ declare const apiContract: {
948
1409
  }>;
949
1410
  taggedMemberIds: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodNumber, "MemberId">, "many">>;
950
1411
  foodAnalysis: z.ZodOptional<z.ZodObject<{
951
- code: z.ZodString;
952
- label: z.ZodString;
1412
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
1413
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
1414
+ } & {
953
1415
  confidence: z.ZodNumber;
954
1416
  tsUtc: z.ZodOptional<z.ZodString>;
955
1417
  }, "strip", z.ZodTypeAny, {
956
- code: string;
957
- label: string;
1418
+ code: string & z.BRAND<"FoodCode">;
1419
+ label: string & z.BRAND<"FoodLabel">;
958
1420
  confidence: number;
959
1421
  tsUtc?: string | undefined;
960
1422
  }, {
@@ -981,8 +1443,8 @@ declare const apiContract: {
981
1443
  };
982
1444
  taggedMemberIds: (number & z.BRAND<"MemberId">)[];
983
1445
  foodAnalysis?: {
984
- code: string;
985
- label: string;
1446
+ code: string & z.BRAND<"FoodCode">;
1447
+ label: string & z.BRAND<"FoodLabel">;
986
1448
  confidence: number;
987
1449
  tsUtc?: string | undefined;
988
1450
  } | undefined;
@@ -1009,20 +1471,7 @@ declare const apiContract: {
1009
1471
  confidence: number;
1010
1472
  tsUtc?: string | undefined;
1011
1473
  } | undefined;
1012
- }>, z.ZodObject<{
1013
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1014
- }, "strip", z.ZodTypeAny, {
1015
- articleId: number & z.BRAND<"ArticleId">;
1016
- }, {
1017
- articleId: number;
1018
- }>>;
1019
- readonly delete: EndpointContract<"DELETE", "/articles/:articleId", z.ZodObject<{
1020
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1021
- }, "strip", z.ZodTypeAny, {
1022
- articleId: number & z.BRAND<"ArticleId">;
1023
- }, {
1024
- articleId: number;
1025
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1474
+ }>, z.ZodNull>;
1026
1475
  readonly createComment: EndpointContract<"POST", "/articles/:articleId/comments", z.ZodObject<{
1027
1476
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1028
1477
  }, "strip", z.ZodTypeAny, {
@@ -1038,25 +1487,8 @@ declare const apiContract: {
1038
1487
  }, {
1039
1488
  content: string;
1040
1489
  parentCommentId?: number | null | undefined;
1041
- }>, z.ZodObject<{
1042
- commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
1043
- }, "strip", z.ZodTypeAny, {
1044
- commentId: number & z.BRAND<"CommentId">;
1045
- }, {
1046
- commentId: number;
1047
- }>>;
1048
- readonly deleteComment: EndpointContract<"DELETE", "/articles/:articleId/comments/:commentId", z.ZodObject<{
1049
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1050
- } & {
1051
- commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
1052
- }, "strip", z.ZodTypeAny, {
1053
- articleId: number & z.BRAND<"ArticleId">;
1054
- commentId: number & z.BRAND<"CommentId">;
1055
- }, {
1056
- articleId: number;
1057
- commentId: number;
1058
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1059
- readonly presignArticleImage: EndpointContract<"POST", "/uploads/articles/presign", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1490
+ }>, z.ZodNull>;
1491
+ readonly presignArticleImage: EndpointContract<"POST", "/uploads/presign-article", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1060
1492
  key: z.ZodString;
1061
1493
  putUrl: z.ZodString;
1062
1494
  cdnUrl: z.ZodString;
@@ -1069,157 +1501,93 @@ declare const apiContract: {
1069
1501
  putUrl: string;
1070
1502
  cdnUrl: string;
1071
1503
  }>>;
1072
- readonly presignProfileImage: EndpointContract<"POST", "/uploads/profiles/presign", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1073
- key: z.ZodString;
1074
- putUrl: z.ZodString;
1075
- cdnUrl: z.ZodString;
1504
+ readonly delete: EndpointContract<"DELETE", "/articles/:articleId", z.ZodObject<{
1505
+ articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1076
1506
  }, "strip", z.ZodTypeAny, {
1077
- key: string;
1078
- putUrl: string;
1079
- cdnUrl: string;
1507
+ articleId: number & z.BRAND<"ArticleId">;
1508
+ }, {
1509
+ articleId: number;
1510
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1511
+ readonly deleteComment: EndpointContract<"DELETE", "/articles/:articleId/comments/:commentId", z.ZodObject<{
1512
+ articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1513
+ } & {
1514
+ commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
1515
+ }, "strip", z.ZodTypeAny, {
1516
+ commentId: number & z.BRAND<"CommentId">;
1517
+ articleId: number & z.BRAND<"ArticleId">;
1080
1518
  }, {
1081
- key: string;
1082
- putUrl: string;
1083
- cdnUrl: string;
1084
- }>>;
1519
+ commentId: number;
1520
+ articleId: number;
1521
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1085
1522
  };
1086
1523
  readonly recruits: {
1087
- readonly list: EndpointContract<"GET", "/recruits", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
1088
- targetCount: z.ZodNumber;
1089
- meetingAt: z.ZodString;
1090
- location: z.ZodString;
1091
- message: z.ZodString;
1524
+ readonly list: EndpointContract<"GET", "/recruits", z.ZodUndefined, z.ZodObject<{
1525
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1526
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1092
1527
  } & {
1093
- recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1094
- status: z.ZodEnum<["OPEN", "CLOSED", "EXPIRED"]>;
1095
- createdAt: z.ZodString;
1096
- expiredAt: z.ZodString;
1097
- updatedAt: z.ZodString;
1098
- author: z.ZodObject<Pick<{
1099
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1100
- username: z.ZodString;
1101
- profileImageUrl: z.ZodNullable<z.ZodString>;
1102
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1103
- memberId: number & z.BRAND<"MemberId">;
1104
- username: string;
1105
- profileImageUrl: string | null;
1106
- }, {
1107
- memberId: number;
1108
- username: string;
1109
- profileImageUrl: string | null;
1110
- }>;
1111
- participants: z.ZodArray<z.ZodObject<Pick<{
1112
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1113
- username: z.ZodString;
1114
- profileImageUrl: z.ZodNullable<z.ZodString>;
1115
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1116
- memberId: number & z.BRAND<"MemberId">;
1117
- username: string;
1118
- profileImageUrl: string | null;
1119
- }, {
1120
- memberId: number;
1121
- username: string;
1122
- profileImageUrl: string | null;
1123
- }>, "many">;
1124
- }, "strip", z.ZodTypeAny, {
1125
- message: string;
1126
- status: "OPEN" | "CLOSED" | "EXPIRED";
1127
- author: {
1128
- memberId: number & z.BRAND<"MemberId">;
1129
- username: string;
1130
- profileImageUrl: string | null;
1131
- };
1132
- createdAt: string;
1133
- updatedAt: string;
1134
- location: string;
1135
- participants: {
1136
- memberId: number & z.BRAND<"MemberId">;
1137
- username: string;
1138
- profileImageUrl: string | null;
1139
- }[];
1140
- meetingAt: string;
1141
- targetCount: number;
1142
- recruitId: number & z.BRAND<"RecruitId">;
1143
- expiredAt: string;
1144
- }, {
1145
- message: string;
1146
- status: "OPEN" | "CLOSED" | "EXPIRED";
1147
- author: {
1148
- memberId: number;
1149
- username: string;
1150
- profileImageUrl: string | null;
1151
- };
1152
- createdAt: string;
1153
- updatedAt: string;
1154
- location: string;
1155
- participants: {
1156
- memberId: number;
1157
- username: string;
1158
- profileImageUrl: string | null;
1159
- }[];
1160
- meetingAt: string;
1161
- targetCount: number;
1162
- recruitId: number;
1163
- expiredAt: string;
1164
- }>, "many">>;
1165
- readonly detail: EndpointContract<"GET", "/recruits/:recruitId", z.ZodObject<{
1166
- recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1528
+ sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "deadline", "participantCount"]>>;
1529
+ direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
1167
1530
  }, "strip", z.ZodTypeAny, {
1168
- recruitId: number & z.BRAND<"RecruitId">;
1169
- }, {
1170
- recruitId: number;
1171
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1531
+ page: number;
1532
+ size: number;
1533
+ sortBy: "createdAt" | "participantCount" | "deadline";
1534
+ direction: "asc" | "desc";
1535
+ }, {
1536
+ page?: number | undefined;
1537
+ size?: number | undefined;
1538
+ sortBy?: "createdAt" | "participantCount" | "deadline" | undefined;
1539
+ direction?: "asc" | "desc" | undefined;
1540
+ }>, z.ZodUndefined, z.ZodArray<z.ZodObject<{
1172
1541
  targetCount: z.ZodNumber;
1173
1542
  meetingAt: z.ZodString;
1174
1543
  location: z.ZodString;
1175
1544
  message: z.ZodString;
1176
- } & {
1177
1545
  recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1178
1546
  status: z.ZodEnum<["OPEN", "CLOSED", "EXPIRED"]>;
1179
1547
  createdAt: z.ZodString;
1180
1548
  expiredAt: z.ZodString;
1181
1549
  updatedAt: z.ZodString;
1182
- author: z.ZodObject<Pick<{
1550
+ author: z.ZodObject<{
1183
1551
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1184
1552
  username: z.ZodString;
1185
- profileImageUrl: z.ZodNullable<z.ZodString>;
1186
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1553
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
+ }, "strip", z.ZodTypeAny, {
1187
1555
  memberId: number & z.BRAND<"MemberId">;
1188
1556
  username: string;
1189
- profileImageUrl: string | null;
1557
+ profileImageUrl?: string | null | undefined;
1190
1558
  }, {
1191
1559
  memberId: number;
1192
1560
  username: string;
1193
- profileImageUrl: string | null;
1561
+ profileImageUrl?: string | null | undefined;
1194
1562
  }>;
1195
- participants: z.ZodArray<z.ZodObject<Pick<{
1563
+ participants: z.ZodArray<z.ZodObject<{
1196
1564
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1197
1565
  username: z.ZodString;
1198
- profileImageUrl: z.ZodNullable<z.ZodString>;
1199
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1566
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1567
+ }, "strip", z.ZodTypeAny, {
1200
1568
  memberId: number & z.BRAND<"MemberId">;
1201
1569
  username: string;
1202
- profileImageUrl: string | null;
1570
+ profileImageUrl?: string | null | undefined;
1203
1571
  }, {
1204
1572
  memberId: number;
1205
1573
  username: string;
1206
- profileImageUrl: string | null;
1574
+ profileImageUrl?: string | null | undefined;
1207
1575
  }>, "many">;
1208
1576
  }, "strip", z.ZodTypeAny, {
1209
1577
  message: string;
1210
1578
  status: "OPEN" | "CLOSED" | "EXPIRED";
1579
+ createdAt: string;
1211
1580
  author: {
1212
1581
  memberId: number & z.BRAND<"MemberId">;
1213
1582
  username: string;
1214
- profileImageUrl: string | null;
1583
+ profileImageUrl?: string | null | undefined;
1215
1584
  };
1216
- createdAt: string;
1217
1585
  updatedAt: string;
1218
1586
  location: string;
1219
1587
  participants: {
1220
1588
  memberId: number & z.BRAND<"MemberId">;
1221
1589
  username: string;
1222
- profileImageUrl: string | null;
1590
+ profileImageUrl?: string | null | undefined;
1223
1591
  }[];
1224
1592
  meetingAt: string;
1225
1593
  targetCount: number;
@@ -1228,24 +1596,24 @@ declare const apiContract: {
1228
1596
  }, {
1229
1597
  message: string;
1230
1598
  status: "OPEN" | "CLOSED" | "EXPIRED";
1599
+ createdAt: string;
1231
1600
  author: {
1232
1601
  memberId: number;
1233
1602
  username: string;
1234
- profileImageUrl: string | null;
1603
+ profileImageUrl?: string | null | undefined;
1235
1604
  };
1236
- createdAt: string;
1237
1605
  updatedAt: string;
1238
1606
  location: string;
1239
1607
  participants: {
1240
1608
  memberId: number;
1241
1609
  username: string;
1242
- profileImageUrl: string | null;
1610
+ profileImageUrl?: string | null | undefined;
1243
1611
  }[];
1244
1612
  meetingAt: string;
1245
1613
  targetCount: number;
1246
1614
  recruitId: number;
1247
1615
  expiredAt: string;
1248
- }>>;
1616
+ }>, "many">>;
1249
1617
  readonly create: EndpointContract<"POST", "/recruits", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1250
1618
  targetCount: z.ZodNumber;
1251
1619
  meetingAt: z.ZodString;
@@ -1268,14 +1636,14 @@ declare const apiContract: {
1268
1636
  }, {
1269
1637
  recruitId: number;
1270
1638
  }>>;
1271
- readonly close: EndpointContract<"PATCH", "/recruits/:recruitId/close", z.ZodObject<{
1639
+ readonly join: EndpointContract<"POST", "/recruits/:recruitId/join", z.ZodObject<{
1272
1640
  recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1273
1641
  }, "strip", z.ZodTypeAny, {
1274
1642
  recruitId: number & z.BRAND<"RecruitId">;
1275
1643
  }, {
1276
1644
  recruitId: number;
1277
1645
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1278
- readonly join: EndpointContract<"POST", "/recruits/:recruitId/join", z.ZodObject<{
1646
+ readonly close: EndpointContract<"PATCH", "/recruits/:recruitId/close", z.ZodObject<{
1279
1647
  recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
1280
1648
  }, "strip", z.ZodTypeAny, {
1281
1649
  recruitId: number & z.BRAND<"RecruitId">;
@@ -1353,7 +1721,7 @@ declare const apiContract: {
1353
1721
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1354
1722
  };
1355
1723
  readonly plans: {
1356
- readonly list: EndpointContract<"GET", "/plans", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
1724
+ readonly list: EndpointContract<"GET", "/plans", z.ZodUndefined, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodUndefined, z.ZodArray<z.ZodObject<{
1357
1725
  planId: z.ZodBranded<z.ZodNumber, "PlanId">;
1358
1726
  meetingAt: z.ZodString;
1359
1727
  location: z.ZodNullable<z.ZodObject<{
@@ -1412,201 +1780,31 @@ declare const apiContract: {
1412
1780
  lng: number;
1413
1781
  distance?: string | undefined;
1414
1782
  }>>;
1415
- author: z.ZodNullable<z.ZodObject<Pick<{
1416
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1417
- username: z.ZodString;
1418
- profileImageUrl: z.ZodNullable<z.ZodString>;
1419
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1420
- memberId: number & z.BRAND<"MemberId">;
1421
- username: string;
1422
- profileImageUrl: string | null;
1423
- }, {
1424
- memberId: number;
1425
- username: string;
1426
- profileImageUrl: string | null;
1427
- }>>;
1428
- participants: z.ZodArray<z.ZodObject<Pick<{
1783
+ author: z.ZodObject<{
1429
1784
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1430
1785
  username: z.ZodString;
1431
- profileImageUrl: z.ZodNullable<z.ZodString>;
1432
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1433
- memberId: number & z.BRAND<"MemberId">;
1434
- username: string;
1435
- profileImageUrl: string | null;
1436
- }, {
1437
- memberId: number;
1438
- username: string;
1439
- profileImageUrl: string | null;
1440
- }>, "many">;
1441
- status: z.ZodEnum<["PLANNING", "COMPLETED"]>;
1442
- type: z.ZodEnum<["RECRUIT", "INVITATION"]>;
1443
- createdAt: z.ZodString;
1444
- updatedAt: z.ZodString;
1445
- }, "strip", z.ZodTypeAny, {
1446
- type: "RECRUIT" | "INVITATION";
1447
- status: "PLANNING" | "COMPLETED";
1448
- restaurant: {
1449
- restaurantId: string & z.BRAND<"RestaurantId">;
1450
- placeName: string;
1451
- categoryName: string;
1452
- categoryGroupName: string;
1453
- roadAddressName: string;
1454
- addressName: string;
1455
- phone: string | null;
1456
- placeUrl: string | null;
1457
- lat: number;
1458
- lng: number;
1459
- distance?: string | undefined;
1460
- } | null;
1461
- author: {
1462
- memberId: number & z.BRAND<"MemberId">;
1463
- username: string;
1464
- profileImageUrl: string | null;
1465
- } | null;
1466
- createdAt: string;
1467
- updatedAt: string;
1468
- location: {
1469
- placeName: string;
1470
- lat: number;
1471
- lng: number;
1472
- locationId: string & z.BRAND<"LocationId">;
1473
- address: string;
1474
- } | null;
1475
- participants: {
1476
- memberId: number & z.BRAND<"MemberId">;
1477
- username: string;
1478
- profileImageUrl: string | null;
1479
- }[];
1480
- planId: number & z.BRAND<"PlanId">;
1481
- meetingAt: string;
1482
- }, {
1483
- type: "RECRUIT" | "INVITATION";
1484
- status: "PLANNING" | "COMPLETED";
1485
- restaurant: {
1486
- restaurantId: string;
1487
- placeName: string;
1488
- categoryName: string;
1489
- categoryGroupName: string;
1490
- roadAddressName: string;
1491
- addressName: string;
1492
- phone: string | null;
1493
- placeUrl: string | null;
1494
- lat: number;
1495
- lng: number;
1496
- distance?: string | undefined;
1497
- } | null;
1498
- author: {
1499
- memberId: number;
1500
- username: string;
1501
- profileImageUrl: string | null;
1502
- } | null;
1503
- createdAt: string;
1504
- updatedAt: string;
1505
- location: {
1506
- placeName: string;
1507
- lat: number;
1508
- lng: number;
1509
- locationId: string;
1510
- address: string;
1511
- } | null;
1512
- participants: {
1513
- memberId: number;
1514
- username: string;
1515
- profileImageUrl: string | null;
1516
- }[];
1517
- planId: number;
1518
- meetingAt: string;
1519
- }>, "many">>;
1520
- readonly detail: EndpointContract<"GET", "/plans/:planId", z.ZodObject<{
1521
- planId: z.ZodBranded<z.ZodNumber, "PlanId">;
1522
- }, "strip", z.ZodTypeAny, {
1523
- planId: number & z.BRAND<"PlanId">;
1524
- }, {
1525
- planId: number;
1526
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1527
- planId: z.ZodBranded<z.ZodNumber, "PlanId">;
1528
- meetingAt: z.ZodString;
1529
- location: z.ZodNullable<z.ZodObject<{
1530
- locationId: z.ZodBranded<z.ZodString, "LocationId">;
1531
- placeName: z.ZodString;
1532
- lat: z.ZodNumber;
1533
- lng: z.ZodNumber;
1534
- address: z.ZodString;
1535
- }, "strip", z.ZodTypeAny, {
1536
- placeName: string;
1537
- lat: number;
1538
- lng: number;
1539
- locationId: string & z.BRAND<"LocationId">;
1540
- address: string;
1541
- }, {
1542
- placeName: string;
1543
- lat: number;
1544
- lng: number;
1545
- locationId: string;
1546
- address: string;
1547
- }>>;
1548
- restaurant: z.ZodNullable<z.ZodObject<{
1549
- restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
1550
- placeName: z.ZodString;
1551
- categoryName: z.ZodString;
1552
- categoryGroupName: z.ZodString;
1553
- distance: z.ZodOptional<z.ZodString>;
1554
- roadAddressName: z.ZodString;
1555
- addressName: z.ZodString;
1556
- phone: z.ZodNullable<z.ZodString>;
1557
- placeUrl: z.ZodNullable<z.ZodString>;
1558
- lat: z.ZodNumber;
1559
- lng: z.ZodNumber;
1786
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1560
1787
  }, "strip", z.ZodTypeAny, {
1561
- restaurantId: string & z.BRAND<"RestaurantId">;
1562
- placeName: string;
1563
- categoryName: string;
1564
- categoryGroupName: string;
1565
- roadAddressName: string;
1566
- addressName: string;
1567
- phone: string | null;
1568
- placeUrl: string | null;
1569
- lat: number;
1570
- lng: number;
1571
- distance?: string | undefined;
1572
- }, {
1573
- restaurantId: string;
1574
- placeName: string;
1575
- categoryName: string;
1576
- categoryGroupName: string;
1577
- roadAddressName: string;
1578
- addressName: string;
1579
- phone: string | null;
1580
- placeUrl: string | null;
1581
- lat: number;
1582
- lng: number;
1583
- distance?: string | undefined;
1584
- }>>;
1585
- author: z.ZodNullable<z.ZodObject<Pick<{
1586
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1587
- username: z.ZodString;
1588
- profileImageUrl: z.ZodNullable<z.ZodString>;
1589
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1590
1788
  memberId: number & z.BRAND<"MemberId">;
1591
1789
  username: string;
1592
- profileImageUrl: string | null;
1790
+ profileImageUrl?: string | null | undefined;
1593
1791
  }, {
1594
1792
  memberId: number;
1595
1793
  username: string;
1596
- profileImageUrl: string | null;
1597
- }>>;
1598
- participants: z.ZodArray<z.ZodObject<Pick<{
1794
+ profileImageUrl?: string | null | undefined;
1795
+ }>;
1796
+ participants: z.ZodArray<z.ZodObject<{
1599
1797
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1600
1798
  username: z.ZodString;
1601
- profileImageUrl: z.ZodNullable<z.ZodString>;
1602
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1799
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1800
+ }, "strip", z.ZodTypeAny, {
1603
1801
  memberId: number & z.BRAND<"MemberId">;
1604
1802
  username: string;
1605
- profileImageUrl: string | null;
1803
+ profileImageUrl?: string | null | undefined;
1606
1804
  }, {
1607
1805
  memberId: number;
1608
1806
  username: string;
1609
- profileImageUrl: string | null;
1807
+ profileImageUrl?: string | null | undefined;
1610
1808
  }>, "many">;
1611
1809
  status: z.ZodEnum<["PLANNING", "COMPLETED"]>;
1612
1810
  type: z.ZodEnum<["RECRUIT", "INVITATION"]>;
@@ -1615,6 +1813,7 @@ declare const apiContract: {
1615
1813
  }, "strip", z.ZodTypeAny, {
1616
1814
  type: "RECRUIT" | "INVITATION";
1617
1815
  status: "PLANNING" | "COMPLETED";
1816
+ createdAt: string;
1618
1817
  restaurant: {
1619
1818
  restaurantId: string & z.BRAND<"RestaurantId">;
1620
1819
  placeName: string;
@@ -1631,9 +1830,8 @@ declare const apiContract: {
1631
1830
  author: {
1632
1831
  memberId: number & z.BRAND<"MemberId">;
1633
1832
  username: string;
1634
- profileImageUrl: string | null;
1635
- } | null;
1636
- createdAt: string;
1833
+ profileImageUrl?: string | null | undefined;
1834
+ };
1637
1835
  updatedAt: string;
1638
1836
  location: {
1639
1837
  placeName: string;
@@ -1645,13 +1843,14 @@ declare const apiContract: {
1645
1843
  participants: {
1646
1844
  memberId: number & z.BRAND<"MemberId">;
1647
1845
  username: string;
1648
- profileImageUrl: string | null;
1846
+ profileImageUrl?: string | null | undefined;
1649
1847
  }[];
1650
1848
  planId: number & z.BRAND<"PlanId">;
1651
1849
  meetingAt: string;
1652
1850
  }, {
1653
1851
  type: "RECRUIT" | "INVITATION";
1654
1852
  status: "PLANNING" | "COMPLETED";
1853
+ createdAt: string;
1655
1854
  restaurant: {
1656
1855
  restaurantId: string;
1657
1856
  placeName: string;
@@ -1668,9 +1867,8 @@ declare const apiContract: {
1668
1867
  author: {
1669
1868
  memberId: number;
1670
1869
  username: string;
1671
- profileImageUrl: string | null;
1672
- } | null;
1673
- createdAt: string;
1870
+ profileImageUrl?: string | null | undefined;
1871
+ };
1674
1872
  updatedAt: string;
1675
1873
  location: {
1676
1874
  placeName: string;
@@ -1682,21 +1880,18 @@ declare const apiContract: {
1682
1880
  participants: {
1683
1881
  memberId: number;
1684
1882
  username: string;
1685
- profileImageUrl: string | null;
1883
+ profileImageUrl?: string | null | undefined;
1686
1884
  }[];
1687
1885
  planId: number;
1688
1886
  meetingAt: string;
1689
- }>>;
1690
- readonly create: EndpointContract<"POST", "/plans", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1691
- meetingDate: z.ZodString;
1692
- meetingTime: z.ZodString;
1887
+ }>, "many">>;
1888
+ readonly detail: EndpointContract<"GET", "/plans/:planId", z.ZodObject<{
1889
+ planId: z.ZodBranded<z.ZodNumber, "PlanId">;
1693
1890
  }, "strip", z.ZodTypeAny, {
1694
- meetingDate: string;
1695
- meetingTime: string;
1891
+ planId: number & z.BRAND<"PlanId">;
1696
1892
  }, {
1697
- meetingDate: string;
1698
- meetingTime: string;
1699
- }>, z.ZodObject<{
1893
+ planId: number;
1894
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1700
1895
  planId: z.ZodBranded<z.ZodNumber, "PlanId">;
1701
1896
  meetingAt: z.ZodString;
1702
1897
  location: z.ZodNullable<z.ZodObject<{
@@ -1755,31 +1950,31 @@ declare const apiContract: {
1755
1950
  lng: number;
1756
1951
  distance?: string | undefined;
1757
1952
  }>>;
1758
- author: z.ZodNullable<z.ZodObject<Pick<{
1953
+ author: z.ZodObject<{
1759
1954
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1760
1955
  username: z.ZodString;
1761
- profileImageUrl: z.ZodNullable<z.ZodString>;
1762
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1956
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1957
+ }, "strip", z.ZodTypeAny, {
1763
1958
  memberId: number & z.BRAND<"MemberId">;
1764
1959
  username: string;
1765
- profileImageUrl: string | null;
1960
+ profileImageUrl?: string | null | undefined;
1766
1961
  }, {
1767
1962
  memberId: number;
1768
1963
  username: string;
1769
- profileImageUrl: string | null;
1770
- }>>;
1771
- participants: z.ZodArray<z.ZodObject<Pick<{
1964
+ profileImageUrl?: string | null | undefined;
1965
+ }>;
1966
+ participants: z.ZodArray<z.ZodObject<{
1772
1967
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1773
1968
  username: z.ZodString;
1774
- profileImageUrl: z.ZodNullable<z.ZodString>;
1775
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
1969
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1970
+ }, "strip", z.ZodTypeAny, {
1776
1971
  memberId: number & z.BRAND<"MemberId">;
1777
1972
  username: string;
1778
- profileImageUrl: string | null;
1973
+ profileImageUrl?: string | null | undefined;
1779
1974
  }, {
1780
1975
  memberId: number;
1781
1976
  username: string;
1782
- profileImageUrl: string | null;
1977
+ profileImageUrl?: string | null | undefined;
1783
1978
  }>, "many">;
1784
1979
  status: z.ZodEnum<["PLANNING", "COMPLETED"]>;
1785
1980
  type: z.ZodEnum<["RECRUIT", "INVITATION"]>;
@@ -1788,6 +1983,7 @@ declare const apiContract: {
1788
1983
  }, "strip", z.ZodTypeAny, {
1789
1984
  type: "RECRUIT" | "INVITATION";
1790
1985
  status: "PLANNING" | "COMPLETED";
1986
+ createdAt: string;
1791
1987
  restaurant: {
1792
1988
  restaurantId: string & z.BRAND<"RestaurantId">;
1793
1989
  placeName: string;
@@ -1804,9 +2000,8 @@ declare const apiContract: {
1804
2000
  author: {
1805
2001
  memberId: number & z.BRAND<"MemberId">;
1806
2002
  username: string;
1807
- profileImageUrl: string | null;
1808
- } | null;
1809
- createdAt: string;
2003
+ profileImageUrl?: string | null | undefined;
2004
+ };
1810
2005
  updatedAt: string;
1811
2006
  location: {
1812
2007
  placeName: string;
@@ -1818,13 +2013,14 @@ declare const apiContract: {
1818
2013
  participants: {
1819
2014
  memberId: number & z.BRAND<"MemberId">;
1820
2015
  username: string;
1821
- profileImageUrl: string | null;
2016
+ profileImageUrl?: string | null | undefined;
1822
2017
  }[];
1823
2018
  planId: number & z.BRAND<"PlanId">;
1824
2019
  meetingAt: string;
1825
2020
  }, {
1826
2021
  type: "RECRUIT" | "INVITATION";
1827
2022
  status: "PLANNING" | "COMPLETED";
2023
+ createdAt: string;
1828
2024
  restaurant: {
1829
2025
  restaurantId: string;
1830
2026
  placeName: string;
@@ -1841,9 +2037,8 @@ declare const apiContract: {
1841
2037
  author: {
1842
2038
  memberId: number;
1843
2039
  username: string;
1844
- profileImageUrl: string | null;
1845
- } | null;
1846
- createdAt: string;
2040
+ profileImageUrl?: string | null | undefined;
2041
+ };
1847
2042
  updatedAt: string;
1848
2043
  location: {
1849
2044
  placeName: string;
@@ -1855,134 +2050,140 @@ declare const apiContract: {
1855
2050
  participants: {
1856
2051
  memberId: number;
1857
2052
  username: string;
1858
- profileImageUrl: string | null;
2053
+ profileImageUrl?: string | null | undefined;
1859
2054
  }[];
1860
2055
  planId: number;
1861
2056
  meetingAt: string;
1862
2057
  }>>;
1863
- };
1864
- readonly mealStatus: {
1865
- readonly get: EndpointContract<"GET", "/members/me/meal-status", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1866
- status: z.ZodEnum<["FED", "FASTING"]>;
1867
- lastMealAt: z.ZodNullable<z.ZodString>;
1868
- fastingMinutes: z.ZodNumber;
1869
- fastingHours: z.ZodNumber;
1870
- secondsToAutoOff: z.ZodNumber;
1871
- }, "strip", z.ZodTypeAny, {
1872
- status: "FED" | "FASTING";
1873
- lastMealAt: string | null;
1874
- fastingMinutes: number;
1875
- fastingHours: number;
1876
- secondsToAutoOff: number;
1877
- }, {
1878
- status: "FED" | "FASTING";
1879
- lastMealAt: string | null;
1880
- fastingMinutes: number;
1881
- fastingHours: number;
1882
- secondsToAutoOff: number;
1883
- }>>;
1884
- readonly update: EndpointContract<"PATCH", "/members/me/meal-status", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1885
- action: z.ZodEnum<["ATE_NOW", "SET_OFF"]>;
2058
+ readonly cancel: EndpointContract<"PATCH", "/plans/:planId/cancel", z.ZodObject<{
2059
+ planId: z.ZodBranded<z.ZodNumber, "PlanId">;
1886
2060
  }, "strip", z.ZodTypeAny, {
1887
- action: "ATE_NOW" | "SET_OFF";
2061
+ planId: number & z.BRAND<"PlanId">;
1888
2062
  }, {
1889
- action: "ATE_NOW" | "SET_OFF";
1890
- }>, z.ZodNull>;
2063
+ planId: number;
2064
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1891
2065
  };
1892
2066
  readonly friends: {
1893
- readonly list: EndpointContract<"GET", "/friends", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<Pick<{
2067
+ readonly list: EndpointContract<"GET", "/friends", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
1894
2068
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1895
2069
  username: z.ZodString;
1896
- profileImageUrl: z.ZodNullable<z.ZodString>;
1897
- }, "memberId" | "username" | "profileImageUrl"> & {
2070
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2071
+ } & {
1898
2072
  friendSince: z.ZodString;
1899
2073
  }, "strip", z.ZodTypeAny, {
1900
2074
  memberId: number & z.BRAND<"MemberId">;
1901
2075
  username: string;
1902
- profileImageUrl: string | null;
1903
2076
  friendSince: string;
2077
+ profileImageUrl?: string | null | undefined;
1904
2078
  }, {
1905
2079
  memberId: number;
1906
2080
  username: string;
1907
- profileImageUrl: string | null;
1908
2081
  friendSince: string;
2082
+ profileImageUrl?: string | null | undefined;
1909
2083
  }>, "many">>;
1910
- readonly meals: EndpointContract<"GET", "/friends/meals", z.ZodUndefined, z.ZodObject<{
1911
- filter: z.ZodOptional<z.ZodEnum<["ALL", "HUNGRY", "NOT_HUNGRY"]>>;
1912
- }, "strip", z.ZodTypeAny, {
1913
- filter?: "ALL" | "HUNGRY" | "NOT_HUNGRY" | undefined;
1914
- }, {
1915
- filter?: "ALL" | "HUNGRY" | "NOT_HUNGRY" | undefined;
1916
- }>, z.ZodUndefined, z.ZodArray<z.ZodObject<Pick<{
1917
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1918
- username: z.ZodString;
1919
- profileImageUrl: z.ZodNullable<z.ZodString>;
1920
- }, "memberId" | "username" | "profileImageUrl"> & {
1921
- hungry: z.ZodBoolean;
1922
- label: z.ZodString;
1923
- }, "strip", z.ZodTypeAny, {
1924
- memberId: number & z.BRAND<"MemberId">;
1925
- username: string;
1926
- profileImageUrl: string | null;
1927
- label: string;
1928
- hungry: boolean;
1929
- }, {
1930
- memberId: number;
1931
- username: string;
1932
- profileImageUrl: string | null;
1933
- label: string;
1934
- hungry: boolean;
1935
- }>, "many">>;
1936
- readonly blocks: EndpointContract<"GET", "/friends/blocks", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<Pick<{
2084
+ readonly blockList: EndpointContract<"GET", "/friends/blocks", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
1937
2085
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1938
2086
  username: z.ZodString;
1939
- profileImageUrl: z.ZodNullable<z.ZodString>;
1940
- }, "memberId" | "username" | "profileImageUrl"> & {
2087
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2088
+ } & {
1941
2089
  blockedAt: z.ZodString;
1942
2090
  }, "strip", z.ZodTypeAny, {
1943
2091
  memberId: number & z.BRAND<"MemberId">;
1944
2092
  username: string;
1945
- profileImageUrl: string | null;
1946
2093
  blockedAt: string;
2094
+ profileImageUrl?: string | null | undefined;
1947
2095
  }, {
1948
2096
  memberId: number;
1949
2097
  username: string;
1950
- profileImageUrl: string | null;
1951
2098
  blockedAt: string;
2099
+ profileImageUrl?: string | null | undefined;
1952
2100
  }>, "many">>;
1953
- readonly request: EndpointContract<"POST", "/friends/requests", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1954
- memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2101
+ readonly incomingRequest: EndpointContract<"GET", "/friends/requests/incoming", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2102
+ requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2103
+ requester: z.ZodObject<{
2104
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2105
+ username: z.ZodString;
2106
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2107
+ }, "strip", z.ZodTypeAny, {
2108
+ memberId: number & z.BRAND<"MemberId">;
2109
+ username: string;
2110
+ profileImageUrl?: string | null | undefined;
2111
+ }, {
2112
+ memberId: number;
2113
+ username: string;
2114
+ profileImageUrl?: string | null | undefined;
2115
+ }>;
2116
+ recipient: z.ZodObject<{
2117
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2118
+ username: z.ZodString;
2119
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ memberId: number & z.BRAND<"MemberId">;
2122
+ username: string;
2123
+ profileImageUrl?: string | null | undefined;
2124
+ }, {
2125
+ memberId: number;
2126
+ username: string;
2127
+ profileImageUrl?: string | null | undefined;
2128
+ }>;
2129
+ status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
2130
+ requestedAt: z.ZodString;
1955
2131
  }, "strip", z.ZodTypeAny, {
1956
- memberId: number & z.BRAND<"MemberId">;
2132
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
2133
+ requestId: number & z.BRAND<"FriendRequestId">;
2134
+ requester: {
2135
+ memberId: number & z.BRAND<"MemberId">;
2136
+ username: string;
2137
+ profileImageUrl?: string | null | undefined;
2138
+ };
2139
+ recipient: {
2140
+ memberId: number & z.BRAND<"MemberId">;
2141
+ username: string;
2142
+ profileImageUrl?: string | null | undefined;
2143
+ };
2144
+ requestedAt: string;
1957
2145
  }, {
1958
- memberId: number;
1959
- }>, z.ZodObject<{
2146
+ status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELED";
2147
+ requestId: number;
2148
+ requester: {
2149
+ memberId: number;
2150
+ username: string;
2151
+ profileImageUrl?: string | null | undefined;
2152
+ };
2153
+ recipient: {
2154
+ memberId: number;
2155
+ username: string;
2156
+ profileImageUrl?: string | null | undefined;
2157
+ };
2158
+ requestedAt: string;
2159
+ }>, "many">>;
2160
+ readonly outgoingRequest: EndpointContract<"GET", "/friends/requests/outgoint", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
1960
2161
  requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
1961
- requester: z.ZodObject<Pick<{
2162
+ requester: z.ZodObject<{
1962
2163
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1963
2164
  username: z.ZodString;
1964
- profileImageUrl: z.ZodNullable<z.ZodString>;
1965
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
2165
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2166
+ }, "strip", z.ZodTypeAny, {
1966
2167
  memberId: number & z.BRAND<"MemberId">;
1967
2168
  username: string;
1968
- profileImageUrl: string | null;
2169
+ profileImageUrl?: string | null | undefined;
1969
2170
  }, {
1970
2171
  memberId: number;
1971
2172
  username: string;
1972
- profileImageUrl: string | null;
2173
+ profileImageUrl?: string | null | undefined;
1973
2174
  }>;
1974
- recipient: z.ZodObject<Pick<{
2175
+ recipient: z.ZodObject<{
1975
2176
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
1976
2177
  username: z.ZodString;
1977
- profileImageUrl: z.ZodNullable<z.ZodString>;
1978
- }, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
2178
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2179
+ }, "strip", z.ZodTypeAny, {
1979
2180
  memberId: number & z.BRAND<"MemberId">;
1980
2181
  username: string;
1981
- profileImageUrl: string | null;
2182
+ profileImageUrl?: string | null | undefined;
1982
2183
  }, {
1983
2184
  memberId: number;
1984
2185
  username: string;
1985
- profileImageUrl: string | null;
2186
+ profileImageUrl?: string | null | undefined;
1986
2187
  }>;
1987
2188
  status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]>;
1988
2189
  requestedAt: z.ZodString;
@@ -1992,12 +2193,12 @@ declare const apiContract: {
1992
2193
  requester: {
1993
2194
  memberId: number & z.BRAND<"MemberId">;
1994
2195
  username: string;
1995
- profileImageUrl: string | null;
2196
+ profileImageUrl?: string | null | undefined;
1996
2197
  };
1997
2198
  recipient: {
1998
2199
  memberId: number & z.BRAND<"MemberId">;
1999
2200
  username: string;
2000
- profileImageUrl: string | null;
2201
+ profileImageUrl?: string | null | undefined;
2001
2202
  };
2002
2203
  requestedAt: string;
2003
2204
  }, {
@@ -2006,15 +2207,22 @@ declare const apiContract: {
2006
2207
  requester: {
2007
2208
  memberId: number;
2008
2209
  username: string;
2009
- profileImageUrl: string | null;
2210
+ profileImageUrl?: string | null | undefined;
2010
2211
  };
2011
2212
  recipient: {
2012
2213
  memberId: number;
2013
2214
  username: string;
2014
- profileImageUrl: string | null;
2215
+ profileImageUrl?: string | null | undefined;
2015
2216
  };
2016
2217
  requestedAt: string;
2017
- }>>;
2218
+ }>, "many">>;
2219
+ readonly sendRequest: EndpointContract<"POST", "/friends/requests/:memberId", z.ZodObject<{
2220
+ requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2221
+ }, "strip", z.ZodTypeAny, {
2222
+ requestId: number & z.BRAND<"FriendRequestId">;
2223
+ }, {
2224
+ requestId: number;
2225
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2018
2226
  readonly acceptRequest: EndpointContract<"POST", "/friends/requests/:requestId/accept", z.ZodObject<{
2019
2227
  requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2020
2228
  }, "strip", z.ZodTypeAny, {
@@ -2029,13 +2237,20 @@ declare const apiContract: {
2029
2237
  }, {
2030
2238
  requestId: number;
2031
2239
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2032
- readonly block: EndpointContract<"POST", "/friends/blocks", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2240
+ readonly block: EndpointContract<"POST", "/friends/blocks/:memberId", z.ZodObject<{
2033
2241
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2034
2242
  }, "strip", z.ZodTypeAny, {
2035
2243
  memberId: number & z.BRAND<"MemberId">;
2036
2244
  }, {
2037
2245
  memberId: number;
2038
- }>, z.ZodNull>;
2246
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2247
+ readonly cancelRequest: EndpointContract<"DELETE", "/friends/requests/:requestId", z.ZodObject<{
2248
+ requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2249
+ }, "strip", z.ZodTypeAny, {
2250
+ requestId: number & z.BRAND<"FriendRequestId">;
2251
+ }, {
2252
+ requestId: number;
2253
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2039
2254
  readonly unblock: EndpointContract<"DELETE", "/friends/blocks/:memberId", z.ZodObject<{
2040
2255
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2041
2256
  }, "strip", z.ZodTypeAny, {
@@ -2043,30 +2258,13 @@ declare const apiContract: {
2043
2258
  }, {
2044
2259
  memberId: number;
2045
2260
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2046
- };
2047
- readonly preferences: {
2048
- readonly list: EndpointContract<"GET", "/preferences", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2049
- id: z.ZodNumber;
2261
+ readonly unfriend: EndpointContract<"DELETE", "/friends/:memberId", z.ZodObject<{
2050
2262
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2051
- foodCode: z.ZodString;
2052
- type: z.ZodEnum<["LIKE", "DISLIKE", "ALLERGY"]>;
2053
- createdAt: z.ZodString;
2054
- updatedAt: z.ZodString;
2055
2263
  }, "strip", z.ZodTypeAny, {
2056
- type: "LIKE" | "DISLIKE" | "ALLERGY";
2057
2264
  memberId: number & z.BRAND<"MemberId">;
2058
- id: number;
2059
- createdAt: string;
2060
- updatedAt: string;
2061
- foodCode: string;
2062
2265
  }, {
2063
- type: "LIKE" | "DISLIKE" | "ALLERGY";
2064
2266
  memberId: number;
2065
- id: number;
2066
- createdAt: string;
2067
- updatedAt: string;
2068
- foodCode: string;
2069
- }>, "many">>;
2267
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2070
2268
  };
2071
2269
  readonly coupons: {
2072
2270
  readonly list: EndpointContract<"GET", "/coupons", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
@@ -2081,20 +2279,20 @@ declare const apiContract: {
2081
2279
  }, "strip", z.ZodTypeAny, {
2082
2280
  type: "DISCOUNT" | "SERVICE";
2083
2281
  expiresAt: string;
2282
+ used: boolean;
2084
2283
  couponId: number & z.BRAND<"CouponId">;
2085
2284
  title: string;
2086
2285
  shopName: string;
2087
2286
  condition: string;
2088
- used: boolean;
2089
2287
  thumbnailUrl: string;
2090
2288
  }, {
2091
2289
  type: "DISCOUNT" | "SERVICE";
2092
2290
  expiresAt: string;
2291
+ used: boolean;
2093
2292
  couponId: number;
2094
2293
  title: string;
2095
2294
  shopName: string;
2096
2295
  condition: string;
2097
- used: boolean;
2098
2296
  thumbnailUrl: string;
2099
2297
  }>, "many">>;
2100
2298
  readonly use: EndpointContract<"PATCH", "/coupons/:couponId/use", z.ZodObject<{
@@ -2107,55 +2305,11 @@ declare const apiContract: {
2107
2305
  };
2108
2306
  readonly challenges: {
2109
2307
  readonly status: EndpointContract<"GET", "/challenges/status", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2110
- week: z.ZodObject<{
2111
- days: z.ZodArray<z.ZodBoolean, "many">;
2112
- completed: z.ZodNumber;
2113
- goal: z.ZodNumber;
2114
- }, "strip", z.ZodTypeAny, {
2115
- days: boolean[];
2116
- completed: number;
2117
- goal: number;
2118
- }, {
2119
- days: boolean[];
2120
- completed: number;
2121
- goal: number;
2122
- }>;
2123
- month: z.ZodObject<{
2124
- count: z.ZodNumber;
2125
- goal: z.ZodNumber;
2126
- }, "strip", z.ZodTypeAny, {
2127
- goal: number;
2128
- count: number;
2129
- }, {
2130
- goal: number;
2131
- count: number;
2132
- }>;
2133
- weekRewardAvailable: z.ZodBoolean;
2134
- monthRewardAvailable: z.ZodBoolean;
2308
+ count: z.ZodNumber;
2135
2309
  }, "strip", z.ZodTypeAny, {
2136
- week: {
2137
- days: boolean[];
2138
- completed: number;
2139
- goal: number;
2140
- };
2141
- month: {
2142
- goal: number;
2143
- count: number;
2144
- };
2145
- weekRewardAvailable: boolean;
2146
- monthRewardAvailable: boolean;
2310
+ count: number;
2147
2311
  }, {
2148
- week: {
2149
- days: boolean[];
2150
- completed: number;
2151
- goal: number;
2152
- };
2153
- month: {
2154
- goal: number;
2155
- count: number;
2156
- };
2157
- weekRewardAvailable: boolean;
2158
- monthRewardAvailable: boolean;
2312
+ count: number;
2159
2313
  }>>;
2160
2314
  readonly claimReward: EndpointContract<"POST", "/challenges/rewards", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2161
2315
  type: z.ZodEnum<["WEEK", "MONTH"]>;
@@ -2163,31 +2317,9 @@ declare const apiContract: {
2163
2317
  type: "WEEK" | "MONTH";
2164
2318
  }, {
2165
2319
  type: "WEEK" | "MONTH";
2166
- }>, z.ZodObject<{
2167
- rewardType: z.ZodEnum<["WEEK", "MONTH"]>;
2168
- claimed: z.ZodBoolean;
2169
- }, "strip", z.ZodTypeAny, {
2170
- rewardType: "WEEK" | "MONTH";
2171
- claimed: boolean;
2172
- }, {
2173
- rewardType: "WEEK" | "MONTH";
2174
- claimed: boolean;
2175
- }>>;
2320
+ }>, z.ZodNull>;
2176
2321
  };
2177
2322
  readonly referrals: {
2178
- readonly create: EndpointContract<"POST", "/referrals", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2179
- code: z.ZodBranded<z.ZodString, "ReferralCode">;
2180
- link: z.ZodString;
2181
- expiresAt: z.ZodString;
2182
- }, "strip", z.ZodTypeAny, {
2183
- code: string & z.BRAND<"ReferralCode">;
2184
- expiresAt: string;
2185
- link: string;
2186
- }, {
2187
- code: string;
2188
- expiresAt: string;
2189
- link: string;
2190
- }>>;
2191
2323
  readonly list: EndpointContract<"GET", "/referrals", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2192
2324
  code: z.ZodBranded<z.ZodString, "ReferralCode">;
2193
2325
  createdAt: z.ZodString;
@@ -2210,6 +2342,19 @@ declare const apiContract: {
2210
2342
  usedByMemberId: number | null;
2211
2343
  usedByUsername: string | null;
2212
2344
  }>, "many">>;
2345
+ readonly create: EndpointContract<"POST", "/referrals", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2346
+ code: z.ZodBranded<z.ZodString, "ReferralCode">;
2347
+ link: z.ZodString;
2348
+ expiresAt: z.ZodString;
2349
+ }, "strip", z.ZodTypeAny, {
2350
+ code: string & z.BRAND<"ReferralCode">;
2351
+ expiresAt: string;
2352
+ link: string;
2353
+ }, {
2354
+ code: string;
2355
+ expiresAt: string;
2356
+ link: string;
2357
+ }>>;
2213
2358
  readonly redeem: EndpointContract<"POST", "/referrals/redeem", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
2214
2359
  code: z.ZodBranded<z.ZodString, "ReferralCode">;
2215
2360
  }, "strip", z.ZodTypeAny, {
@@ -2218,6 +2363,10 @@ declare const apiContract: {
2218
2363
  code: string;
2219
2364
  }>, z.ZodNull>;
2220
2365
  };
2366
+ readonly room: {};
2367
+ readonly health: {
2368
+ readonly healthCheck: EndpointContract<"GET", "/", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodString>;
2369
+ };
2221
2370
  };
2222
2371
  type ApiContract = typeof apiContract;
2223
2372
  type ApiDomain = keyof ApiContract;
@@ -2230,6 +2379,31 @@ type ISODateString = z.infer<typeof ISODateStringSchema>;
2230
2379
  type ISODateTimeString = z.infer<typeof ISODateTimeStringSchema>;
2231
2380
  type TimeHHmmString = z.infer<typeof TimeHHmmStringSchema>;
2232
2381
 
2382
+ type HttpMethod = "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2383
+ declare const NoBodySchema: z.ZodUndefined;
2384
+ declare const NoQuerySchema: z.ZodUndefined;
2385
+ declare const NoParamsSchema: z.ZodUndefined;
2386
+ interface EndpointContract<TMethod extends HttpMethod, TPath extends string, TPathParams extends z.ZodTypeAny, TQuery extends z.ZodTypeAny, TBody extends z.ZodTypeAny, TResponse extends z.ZodTypeAny> {
2387
+ readonly method: TMethod;
2388
+ readonly path: TPath;
2389
+ readonly pathParams: TPathParams;
2390
+ readonly query: TQuery;
2391
+ readonly body: TBody;
2392
+ readonly response: TResponse;
2393
+ }
2394
+ declare const endpoint: <TMethod extends HttpMethod, TPath extends string, TPathParams extends z.ZodTypeAny = typeof NoParamsSchema, TQuery extends z.ZodTypeAny = typeof NoQuerySchema, TBody extends z.ZodTypeAny = typeof NoBodySchema, TResponse extends z.ZodTypeAny = z.ZodNever>(contract: {
2395
+ method: TMethod;
2396
+ path: TPath;
2397
+ pathParams?: TPathParams;
2398
+ query?: TQuery;
2399
+ body?: TBody;
2400
+ response: TResponse;
2401
+ }) => EndpointContract<TMethod, TPath, TPathParams, TQuery, TBody, TResponse>;
2402
+ type BodyOf<E> = E extends EndpointContract<any, any, any, any, infer TBody, any> ? z.infer<TBody> : never;
2403
+ type QueryOf<E> = E extends EndpointContract<any, any, any, infer TQuery, any, any> ? z.infer<TQuery> : never;
2404
+ type PathParamsOf<E> = E extends EndpointContract<any, any, infer TPathParams, any, any, any> ? z.infer<TPathParams> : never;
2405
+ type ResponseOf<E> = E extends EndpointContract<any, any, any, any, any, infer TResponse> ? z.infer<TResponse> : never;
2406
+
2233
2407
  type EntityContract<TEntityName extends string, TId, TShape extends object> = TShape & {
2234
2408
  readonly __entityName?: TEntityName;
2235
2409
  readonly id?: TId;
@@ -2299,29 +2473,75 @@ declare const ApiResponseSchema: <TData extends z.ZodTypeAny>(data: TData) => z.
2299
2473
  status: number;
2300
2474
  success: false;
2301
2475
  }>]>;
2302
- declare const CreatedIdResponseSchema: z.ZodObject<{
2303
- id: z.ZodNumber;
2476
+ declare const CreatedEntityIdResponseSchema: z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
2477
+ entity: z.ZodLiteral<"article">;
2478
+ id: z.ZodBranded<z.ZodNumber, "ArticleId">;
2304
2479
  }, "strip", z.ZodTypeAny, {
2480
+ id: number & z.BRAND<"ArticleId">;
2481
+ entity: "article";
2482
+ }, {
2305
2483
  id: number;
2484
+ entity: "article";
2485
+ }>, z.ZodObject<{
2486
+ entity: z.ZodLiteral<"comment">;
2487
+ id: z.ZodBranded<z.ZodNumber, "CommentId">;
2488
+ }, "strip", z.ZodTypeAny, {
2489
+ id: number & z.BRAND<"CommentId">;
2490
+ entity: "comment";
2306
2491
  }, {
2307
2492
  id: number;
2308
- }>;
2309
- declare const CreatedEntityIdResponseSchema: z.ZodObject<{
2310
- entity: z.ZodEnum<["article", "comment", "recruit", "invitation", "subscription", "coupon", "plan"]>;
2311
- id: z.ZodNumber;
2493
+ entity: "comment";
2494
+ }>, z.ZodObject<{
2495
+ entity: z.ZodLiteral<"recruit">;
2496
+ id: z.ZodBranded<z.ZodNumber, "RecruitId">;
2312
2497
  }, "strip", z.ZodTypeAny, {
2498
+ id: number & z.BRAND<"RecruitId">;
2499
+ entity: "recruit";
2500
+ }, {
2313
2501
  id: number;
2314
- entity: "article" | "comment" | "recruit" | "invitation" | "subscription" | "coupon" | "plan";
2502
+ entity: "recruit";
2503
+ }>, z.ZodObject<{
2504
+ entity: z.ZodLiteral<"invitation">;
2505
+ id: z.ZodBranded<z.ZodNumber, "InvitationId">;
2506
+ }, "strip", z.ZodTypeAny, {
2507
+ id: number & z.BRAND<"InvitationId">;
2508
+ entity: "invitation";
2315
2509
  }, {
2316
2510
  id: number;
2317
- entity: "article" | "comment" | "recruit" | "invitation" | "subscription" | "coupon" | "plan";
2318
- }>;
2511
+ entity: "invitation";
2512
+ }>, z.ZodObject<{
2513
+ entity: z.ZodLiteral<"subscription">;
2514
+ id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
2515
+ }, "strip", z.ZodTypeAny, {
2516
+ id: number & z.BRAND<"SubscriptionId">;
2517
+ entity: "subscription";
2518
+ }, {
2519
+ id: number;
2520
+ entity: "subscription";
2521
+ }>, z.ZodObject<{
2522
+ entity: z.ZodLiteral<"coupon">;
2523
+ id: z.ZodBranded<z.ZodNumber, "CouponId">;
2524
+ }, "strip", z.ZodTypeAny, {
2525
+ id: number & z.BRAND<"CouponId">;
2526
+ entity: "coupon";
2527
+ }, {
2528
+ id: number;
2529
+ entity: "coupon";
2530
+ }>, z.ZodObject<{
2531
+ entity: z.ZodLiteral<"plan">;
2532
+ id: z.ZodBranded<z.ZodNumber, "PlanId">;
2533
+ }, "strip", z.ZodTypeAny, {
2534
+ id: number & z.BRAND<"PlanId">;
2535
+ entity: "plan";
2536
+ }, {
2537
+ id: number;
2538
+ entity: "plan";
2539
+ }>]>;
2319
2540
 
2320
2541
  type NoContent = z.infer<typeof NoContentSchema>;
2321
2542
  type ApiSuccess<T> = z.infer<ReturnType<typeof ApiSuccessSchema<z.ZodType<T>>>>;
2322
2543
  type ApiFailure = z.infer<typeof ApiFailureSchema>;
2323
2544
  type ApiResponse<T> = ApiSuccess<T> | ApiFailure;
2324
- type CreatedIdResponse = z.infer<typeof CreatedIdResponseSchema>;
2325
2545
  type CreatedEntityIdResponse = z.infer<typeof CreatedEntityIdResponseSchema>;
2326
2546
  /** @deprecated Use ApiSuccess<T>. */
2327
2547
  interface BaseResponse<T> {
@@ -2382,9 +2602,9 @@ type AsyncMapperContract<TSource, TTarget> = (source: TSource) => Promise<TTarge
2382
2602
  type MapperInput<TMapper> = TMapper extends (source: infer TSource) => unknown ? TSource : never;
2383
2603
  type MapperOutput<TMapper> = TMapper extends (...args: never[]) => infer TTarget ? TTarget : never;
2384
2604
 
2385
- declare const PageRequestSchema: z.ZodObject<{
2386
- page: z.ZodDefault<z.ZodNumber>;
2387
- size: z.ZodDefault<z.ZodNumber>;
2605
+ declare const PageQuerySchema: z.ZodObject<{
2606
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2607
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2388
2608
  }, "strip", z.ZodTypeAny, {
2389
2609
  page: number;
2390
2610
  size: number;
@@ -2392,185 +2612,78 @@ declare const PageRequestSchema: z.ZodObject<{
2392
2612
  page?: number | undefined;
2393
2613
  size?: number | undefined;
2394
2614
  }>;
2395
- declare const SortObjectSchema: z.ZodObject<{
2396
- empty: z.ZodBoolean;
2397
- sorted: z.ZodBoolean;
2398
- unsorted: z.ZodBoolean;
2399
- }, "strip", z.ZodTypeAny, {
2400
- empty: boolean;
2401
- sorted: boolean;
2402
- unsorted: boolean;
2403
- }, {
2404
- empty: boolean;
2405
- sorted: boolean;
2406
- unsorted: boolean;
2407
- }>;
2408
- declare const PageableObjectSchema: z.ZodObject<{
2409
- offset: z.ZodNumber;
2410
- sort: z.ZodObject<{
2411
- empty: z.ZodBoolean;
2412
- sorted: z.ZodBoolean;
2413
- unsorted: z.ZodBoolean;
2414
- }, "strip", z.ZodTypeAny, {
2415
- empty: boolean;
2416
- sorted: boolean;
2417
- unsorted: boolean;
2418
- }, {
2419
- empty: boolean;
2420
- sorted: boolean;
2421
- unsorted: boolean;
2422
- }>;
2423
- paged: z.ZodBoolean;
2424
- pageNumber: z.ZodNumber;
2425
- pageSize: z.ZodNumber;
2426
- unpaged: z.ZodBoolean;
2615
+ declare const PageMetaSchema: z.ZodObject<{
2616
+ page: z.ZodNumber;
2617
+ size: z.ZodNumber;
2618
+ totalItems: z.ZodNumber;
2619
+ totalPages: z.ZodNumber;
2620
+ hasNext: z.ZodBoolean;
2621
+ hasPrevious: z.ZodBoolean;
2427
2622
  }, "strip", z.ZodTypeAny, {
2428
- offset: number;
2429
- sort: {
2430
- empty: boolean;
2431
- sorted: boolean;
2432
- unsorted: boolean;
2433
- };
2434
- paged: boolean;
2435
- pageNumber: number;
2436
- pageSize: number;
2437
- unpaged: boolean;
2623
+ page: number;
2624
+ size: number;
2625
+ totalItems: number;
2626
+ totalPages: number;
2627
+ hasNext: boolean;
2628
+ hasPrevious: boolean;
2438
2629
  }, {
2439
- offset: number;
2440
- sort: {
2441
- empty: boolean;
2442
- sorted: boolean;
2443
- unsorted: boolean;
2444
- };
2445
- paged: boolean;
2446
- pageNumber: number;
2447
- pageSize: number;
2448
- unpaged: boolean;
2630
+ page: number;
2631
+ size: number;
2632
+ totalItems: number;
2633
+ totalPages: number;
2634
+ hasNext: boolean;
2635
+ hasPrevious: boolean;
2449
2636
  }>;
2450
2637
  declare const PageResponseSchema: <TItem extends z.ZodTypeAny>(item: TItem) => z.ZodObject<{
2451
- totalElements: z.ZodNumber;
2452
- totalPages: z.ZodNumber;
2453
- first: z.ZodBoolean;
2454
- size: z.ZodNumber;
2455
- content: z.ZodArray<TItem, "many">;
2456
- number: z.ZodNumber;
2457
- sort: z.ZodObject<{
2458
- empty: z.ZodBoolean;
2459
- sorted: z.ZodBoolean;
2460
- unsorted: z.ZodBoolean;
2461
- }, "strip", z.ZodTypeAny, {
2462
- empty: boolean;
2463
- sorted: boolean;
2464
- unsorted: boolean;
2465
- }, {
2466
- empty: boolean;
2467
- sorted: boolean;
2468
- unsorted: boolean;
2469
- }>;
2470
- numberOfElements: z.ZodNumber;
2471
- pageable: z.ZodObject<{
2472
- offset: z.ZodNumber;
2473
- sort: z.ZodObject<{
2474
- empty: z.ZodBoolean;
2475
- sorted: z.ZodBoolean;
2476
- unsorted: z.ZodBoolean;
2477
- }, "strip", z.ZodTypeAny, {
2478
- empty: boolean;
2479
- sorted: boolean;
2480
- unsorted: boolean;
2481
- }, {
2482
- empty: boolean;
2483
- sorted: boolean;
2484
- unsorted: boolean;
2485
- }>;
2486
- paged: z.ZodBoolean;
2487
- pageNumber: z.ZodNumber;
2488
- pageSize: z.ZodNumber;
2489
- unpaged: z.ZodBoolean;
2638
+ items: z.ZodArray<TItem, "many">;
2639
+ meta: z.ZodObject<{
2640
+ page: z.ZodNumber;
2641
+ size: z.ZodNumber;
2642
+ totalItems: z.ZodNumber;
2643
+ totalPages: z.ZodNumber;
2644
+ hasNext: z.ZodBoolean;
2645
+ hasPrevious: z.ZodBoolean;
2490
2646
  }, "strip", z.ZodTypeAny, {
2491
- offset: number;
2492
- sort: {
2493
- empty: boolean;
2494
- sorted: boolean;
2495
- unsorted: boolean;
2496
- };
2497
- paged: boolean;
2498
- pageNumber: number;
2499
- pageSize: number;
2500
- unpaged: boolean;
2647
+ page: number;
2648
+ size: number;
2649
+ totalItems: number;
2650
+ totalPages: number;
2651
+ hasNext: boolean;
2652
+ hasPrevious: boolean;
2501
2653
  }, {
2502
- offset: number;
2503
- sort: {
2504
- empty: boolean;
2505
- sorted: boolean;
2506
- unsorted: boolean;
2507
- };
2508
- paged: boolean;
2509
- pageNumber: number;
2510
- pageSize: number;
2511
- unpaged: boolean;
2654
+ page: number;
2655
+ size: number;
2656
+ totalItems: number;
2657
+ totalPages: number;
2658
+ hasNext: boolean;
2659
+ hasPrevious: boolean;
2512
2660
  }>;
2513
- last: z.ZodBoolean;
2514
- empty: z.ZodBoolean;
2515
2661
  }, "strip", z.ZodTypeAny, {
2516
- number: number;
2517
- size: number;
2518
- sort: {
2519
- empty: boolean;
2520
- sorted: boolean;
2521
- unsorted: boolean;
2522
- };
2523
- empty: boolean;
2524
- totalElements: number;
2525
- totalPages: number;
2526
- first: boolean;
2527
- content: TItem["_output"][];
2528
- numberOfElements: number;
2529
- pageable: {
2530
- offset: number;
2531
- sort: {
2532
- empty: boolean;
2533
- sorted: boolean;
2534
- unsorted: boolean;
2535
- };
2536
- paged: boolean;
2537
- pageNumber: number;
2538
- pageSize: number;
2539
- unpaged: boolean;
2662
+ items: TItem["_output"][];
2663
+ meta: {
2664
+ page: number;
2665
+ size: number;
2666
+ totalItems: number;
2667
+ totalPages: number;
2668
+ hasNext: boolean;
2669
+ hasPrevious: boolean;
2540
2670
  };
2541
- last: boolean;
2542
2671
  }, {
2543
- number: number;
2544
- size: number;
2545
- sort: {
2546
- empty: boolean;
2547
- sorted: boolean;
2548
- unsorted: boolean;
2549
- };
2550
- empty: boolean;
2551
- totalElements: number;
2552
- totalPages: number;
2553
- first: boolean;
2554
- content: TItem["_input"][];
2555
- numberOfElements: number;
2556
- pageable: {
2557
- offset: number;
2558
- sort: {
2559
- empty: boolean;
2560
- sorted: boolean;
2561
- unsorted: boolean;
2562
- };
2563
- paged: boolean;
2564
- pageNumber: number;
2565
- pageSize: number;
2566
- unpaged: boolean;
2672
+ items: TItem["_input"][];
2673
+ meta: {
2674
+ page: number;
2675
+ size: number;
2676
+ totalItems: number;
2677
+ totalPages: number;
2678
+ hasNext: boolean;
2679
+ hasPrevious: boolean;
2567
2680
  };
2568
- last: boolean;
2569
2681
  }>;
2682
+ declare const SortDirectionSchema: z.ZodEnum<["asc", "desc"]>;
2570
2683
 
2571
- type PageRequest = z.infer<typeof PageRequestSchema>;
2572
- type SortObject = z.infer<typeof SortObjectSchema>;
2573
- type PageableObject = z.infer<typeof PageableObjectSchema>;
2574
- type PageResponse<T> = z.infer<ReturnType<typeof PageResponseSchema<z.ZodType<T>>>>;
2684
+ type PageRequest = z.infer<typeof PageQuerySchema>;
2685
+ type PageResponse<TItem> = z.infer<ReturnType<typeof PageResponseSchema<z.ZodType<TItem>>>>;
2686
+ type PageMeta = z.infer<typeof PageMetaSchema>;
2687
+ type SortDirection = z.infer<typeof SortDirectionSchema>;
2575
2688
 
2576
- export { type ApiContract, type ApiDomain, type ApiFailure, ApiFailureSchema, type ApiResponse, ApiResponseSchema, type ApiSuccess, ApiSuccessSchema, type AsyncMapperContract, type BaseResponse, type BodyOf, type CreatedEntityIdResponse, CreatedEntityIdResponseSchema, type CreatedIdResponse, CreatedIdResponseSchema, 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 PageRequest, PageRequestSchema, type PageResponse, PageResponseSchema, type PageableObject, PageableObjectSchema, type PathParamsOf, type QueryOf, type ResponseOf, type SortObject, SortObjectSchema, type TimeHHmmString, TimeHHmmStringSchema, apiContract, endpoint, makeApiResponseSchema, makeApiSuccessSchema };
2689
+ 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 };