@lcas58/esmi-api-types 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/routes/events/events.handlers.js +20 -4
- package/dist/src/routes/events/events.index.d.ts +26 -19
- package/dist/src/routes/events/events.routes.d.ts +60 -39
- package/dist/src/routes/events/schemas/event.schemas.d.ts +20 -8
- package/dist/src/routes/events/schemas/event.schemas.js +3 -0
- package/dist/src/routes/groups/groups.handlers.d.ts +7 -0
- package/dist/src/routes/groups/groups.handlers.js +205 -0
- package/dist/src/routes/groups/groups.index.d.ts +337 -0
- package/dist/src/routes/groups/groups.index.js +10 -0
- package/dist/src/routes/{events/discover.routes.d.ts → groups/groups.routes.d.ts} +719 -47
- package/dist/src/routes/groups/groups.routes.js +77 -0
- package/dist/src/routes/groups/schemas/group.schemas.d.ts +214 -0
- package/dist/src/routes/groups/schemas/group.schemas.js +48 -0
- package/dist/src/routes/groups/schemas/index.d.ts +1 -0
- package/dist/src/routes/groups/schemas/index.js +1 -0
- package/dist/src/shared/client-types.d.ts +2 -1
- package/package.json +1 -1
- package/dist/src/routes/events/discover.handlers.d.ts +0 -3
- package/dist/src/routes/events/discover.handlers.js +0 -15
- package/dist/src/routes/events/discover.index.d.ts +0 -72
- package/dist/src/routes/events/discover.index.js +0 -6
- package/dist/src/routes/events/discover.routes.js +0 -26
- package/dist/src/routes/leagues/leagues.handlers.d.ts +0 -3
- package/dist/src/routes/leagues/leagues.handlers.js +0 -50
- package/dist/src/routes/leagues/leagues.index.d.ts +0 -53
- package/dist/src/routes/leagues/leagues.index.js +0 -6
- package/dist/src/routes/leagues/leagues.routes.d.ts +0 -137
- package/dist/src/routes/leagues/leagues.routes.js +0 -47
- package/dist/src/routes/organizations/organizations.handlers.d.ts +0 -74
- package/dist/src/routes/organizations/organizations.handlers.js +0 -485
- package/dist/src/routes/organizations/organizations.index.d.ts +0 -517
- package/dist/src/routes/organizations/organizations.index.js +0 -12
- package/dist/src/routes/organizations/organizations.routes.d.ts +0 -1236
- package/dist/src/routes/organizations/organizations.routes.js +0 -137
- package/dist/src/routes/organizations/tasks.test.d.ts +0 -0
- package/dist/src/routes/organizations/tasks.test.js +0 -181
- package/dist/src/routes/tags/tags.handlers.d.ts +0 -3
- package/dist/src/routes/tags/tags.handlers.js +0 -15
- package/dist/src/routes/tags/tags.index.d.ts +0 -24
- package/dist/src/routes/tags/tags.index.js +0 -6
- package/dist/src/routes/tags/tags.routes.d.ts +0 -68
- package/dist/src/routes/tags/tags.routes.js +0 -25
|
@@ -1,57 +1,339 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
state: z.ZodString;
|
|
6
|
-
from: z.ZodOptional<z.ZodString>;
|
|
7
|
-
to: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
sportId: string;
|
|
10
|
-
city: string;
|
|
11
|
-
state: string;
|
|
12
|
-
from?: string | undefined;
|
|
13
|
-
to?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
sportId: string;
|
|
16
|
-
city: string;
|
|
17
|
-
state: string;
|
|
18
|
-
from?: string | undefined;
|
|
19
|
-
to?: string | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const discover: {
|
|
22
|
-
path: "/events/discover";
|
|
23
|
-
method: "post";
|
|
2
|
+
export declare const list: {
|
|
3
|
+
path: "/groups";
|
|
4
|
+
method: "get";
|
|
24
5
|
tags: string[];
|
|
25
|
-
middleware: [import("hono").MiddlewareHandler];
|
|
26
6
|
request: {
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
query: z.ZodObject<{
|
|
8
|
+
sportId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
city: z.ZodOptional<z.ZodString>;
|
|
10
|
+
state: z.ZodOptional<z.ZodString>;
|
|
11
|
+
source: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
|
|
12
|
+
search: z.ZodOptional<z.ZodString>;
|
|
13
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
14
|
+
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
limit: number;
|
|
17
|
+
offset: number;
|
|
18
|
+
search?: string | undefined;
|
|
19
|
+
city?: string | undefined;
|
|
20
|
+
state?: string | undefined;
|
|
21
|
+
sportId?: string | undefined;
|
|
22
|
+
source?: "external" | "internal" | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
city?: string | undefined;
|
|
26
|
+
state?: string | undefined;
|
|
27
|
+
sportId?: string | undefined;
|
|
28
|
+
source?: "external" | "internal" | undefined;
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
offset?: number | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
responses: {
|
|
34
|
+
200: {
|
|
29
35
|
content: {
|
|
30
36
|
"application/json": {
|
|
31
|
-
schema: z.ZodObject<{
|
|
37
|
+
schema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
slug: z.ZodString;
|
|
41
|
+
description: z.ZodNullable<z.ZodString>;
|
|
42
|
+
source: z.ZodEnum<["internal", "external"]>;
|
|
43
|
+
city: z.ZodNullable<z.ZodString>;
|
|
44
|
+
state: z.ZodNullable<z.ZodString>;
|
|
45
|
+
country: z.ZodString;
|
|
32
46
|
sportId: z.ZodString;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
47
|
+
sourceOrgId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
49
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
50
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
51
|
+
isActive: z.ZodBoolean;
|
|
52
|
+
createdAt: z.ZodDate;
|
|
53
|
+
updatedAt: z.ZodDate;
|
|
54
|
+
}, {
|
|
55
|
+
sport: z.ZodNullable<z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
icon: string | null;
|
|
63
|
+
}, {
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
icon: string | null;
|
|
67
|
+
}>>;
|
|
68
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
image: z.ZodNullable<z.ZodString>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
image: string | null;
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
}, {
|
|
77
|
+
image: string | null;
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
}>>;
|
|
81
|
+
_count: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
events: z.ZodNumber;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
events: number;
|
|
85
|
+
}, {
|
|
86
|
+
events: number;
|
|
87
|
+
}>>;
|
|
88
|
+
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
89
|
+
id: string;
|
|
90
|
+
description: string | null;
|
|
91
|
+
name: string;
|
|
92
|
+
city: string | null;
|
|
93
|
+
state: string | null;
|
|
94
|
+
sportId: string;
|
|
95
|
+
createdAt: Date;
|
|
96
|
+
sport: {
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
icon: string | null;
|
|
100
|
+
} | null;
|
|
101
|
+
country: string;
|
|
102
|
+
source: "external" | "internal";
|
|
103
|
+
slug: string;
|
|
104
|
+
isActive: boolean;
|
|
105
|
+
sourceOrgId: string | null;
|
|
106
|
+
externalUrl: string | null;
|
|
107
|
+
updatedAt: Date;
|
|
108
|
+
createdByUserId: string | null;
|
|
109
|
+
imageUrl: string | null;
|
|
110
|
+
creator: {
|
|
111
|
+
image: string | null;
|
|
112
|
+
id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
} | null;
|
|
115
|
+
_count?: {
|
|
116
|
+
events: number;
|
|
117
|
+
} | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
id: string;
|
|
120
|
+
description: string | null;
|
|
121
|
+
name: string;
|
|
122
|
+
city: string | null;
|
|
123
|
+
state: string | null;
|
|
124
|
+
sportId: string;
|
|
125
|
+
createdAt: Date;
|
|
126
|
+
sport: {
|
|
127
|
+
id: string;
|
|
128
|
+
name: string;
|
|
129
|
+
icon: string | null;
|
|
130
|
+
} | null;
|
|
131
|
+
country: string;
|
|
132
|
+
source: "external" | "internal";
|
|
133
|
+
slug: string;
|
|
134
|
+
isActive: boolean;
|
|
135
|
+
sourceOrgId: string | null;
|
|
136
|
+
externalUrl: string | null;
|
|
137
|
+
updatedAt: Date;
|
|
138
|
+
createdByUserId: string | null;
|
|
139
|
+
imageUrl: string | null;
|
|
140
|
+
creator: {
|
|
141
|
+
image: string | null;
|
|
142
|
+
id: string;
|
|
143
|
+
name: string;
|
|
144
|
+
} | null;
|
|
145
|
+
_count?: {
|
|
146
|
+
events: number;
|
|
147
|
+
} | undefined;
|
|
148
|
+
}>, "many">;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
description: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
} & {
|
|
155
|
+
getRoutingPath(): "/groups";
|
|
156
|
+
};
|
|
157
|
+
export declare const getOne: {
|
|
158
|
+
path: "/groups/{id}";
|
|
159
|
+
method: "get";
|
|
160
|
+
tags: string[];
|
|
161
|
+
request: {
|
|
162
|
+
params: z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
id: string;
|
|
166
|
+
}, {
|
|
167
|
+
id: string;
|
|
168
|
+
}>;
|
|
169
|
+
};
|
|
170
|
+
responses: {
|
|
171
|
+
200: {
|
|
172
|
+
content: {
|
|
173
|
+
"application/json": {
|
|
174
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
name: z.ZodString;
|
|
177
|
+
slug: z.ZodString;
|
|
178
|
+
description: z.ZodNullable<z.ZodString>;
|
|
179
|
+
source: z.ZodEnum<["internal", "external"]>;
|
|
180
|
+
city: z.ZodNullable<z.ZodString>;
|
|
181
|
+
state: z.ZodNullable<z.ZodString>;
|
|
182
|
+
country: z.ZodString;
|
|
183
|
+
sportId: z.ZodString;
|
|
184
|
+
sourceOrgId: z.ZodNullable<z.ZodString>;
|
|
185
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
186
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
187
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
188
|
+
isActive: z.ZodBoolean;
|
|
189
|
+
createdAt: z.ZodDate;
|
|
190
|
+
updatedAt: z.ZodDate;
|
|
191
|
+
}, {
|
|
192
|
+
sport: z.ZodNullable<z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
name: z.ZodString;
|
|
195
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
id: string;
|
|
198
|
+
name: string;
|
|
199
|
+
icon: string | null;
|
|
200
|
+
}, {
|
|
201
|
+
id: string;
|
|
202
|
+
name: string;
|
|
203
|
+
icon: string | null;
|
|
204
|
+
}>>;
|
|
205
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
206
|
+
id: z.ZodString;
|
|
207
|
+
name: z.ZodString;
|
|
208
|
+
image: z.ZodNullable<z.ZodString>;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
image: string | null;
|
|
211
|
+
id: string;
|
|
212
|
+
name: string;
|
|
213
|
+
}, {
|
|
214
|
+
image: string | null;
|
|
215
|
+
id: string;
|
|
216
|
+
name: string;
|
|
217
|
+
}>>;
|
|
218
|
+
_count: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
events: z.ZodNumber;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
events: number;
|
|
222
|
+
}, {
|
|
223
|
+
events: number;
|
|
224
|
+
}>>;
|
|
225
|
+
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
226
|
+
id: string;
|
|
227
|
+
description: string | null;
|
|
228
|
+
name: string;
|
|
229
|
+
city: string | null;
|
|
230
|
+
state: string | null;
|
|
38
231
|
sportId: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
232
|
+
createdAt: Date;
|
|
233
|
+
sport: {
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
icon: string | null;
|
|
237
|
+
} | null;
|
|
238
|
+
country: string;
|
|
239
|
+
source: "external" | "internal";
|
|
240
|
+
slug: string;
|
|
241
|
+
isActive: boolean;
|
|
242
|
+
sourceOrgId: string | null;
|
|
243
|
+
externalUrl: string | null;
|
|
244
|
+
updatedAt: Date;
|
|
245
|
+
createdByUserId: string | null;
|
|
246
|
+
imageUrl: string | null;
|
|
247
|
+
creator: {
|
|
248
|
+
image: string | null;
|
|
249
|
+
id: string;
|
|
250
|
+
name: string;
|
|
251
|
+
} | null;
|
|
252
|
+
_count?: {
|
|
253
|
+
events: number;
|
|
254
|
+
} | undefined;
|
|
43
255
|
}, {
|
|
256
|
+
id: string;
|
|
257
|
+
description: string | null;
|
|
258
|
+
name: string;
|
|
259
|
+
city: string | null;
|
|
260
|
+
state: string | null;
|
|
44
261
|
sportId: string;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
262
|
+
createdAt: Date;
|
|
263
|
+
sport: {
|
|
264
|
+
id: string;
|
|
265
|
+
name: string;
|
|
266
|
+
icon: string | null;
|
|
267
|
+
} | null;
|
|
268
|
+
country: string;
|
|
269
|
+
source: "external" | "internal";
|
|
270
|
+
slug: string;
|
|
271
|
+
isActive: boolean;
|
|
272
|
+
sourceOrgId: string | null;
|
|
273
|
+
externalUrl: string | null;
|
|
274
|
+
updatedAt: Date;
|
|
275
|
+
createdByUserId: string | null;
|
|
276
|
+
imageUrl: string | null;
|
|
277
|
+
creator: {
|
|
278
|
+
image: string | null;
|
|
279
|
+
id: string;
|
|
280
|
+
name: string;
|
|
281
|
+
} | null;
|
|
282
|
+
_count?: {
|
|
283
|
+
events: number;
|
|
284
|
+
} | undefined;
|
|
285
|
+
}>;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
description: string;
|
|
289
|
+
};
|
|
290
|
+
404: {
|
|
291
|
+
content: {
|
|
292
|
+
"application/json": {
|
|
293
|
+
schema: z.ZodObject<{
|
|
294
|
+
message: z.ZodString;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
message: string;
|
|
297
|
+
}, {
|
|
298
|
+
message: string;
|
|
49
299
|
}>;
|
|
50
300
|
};
|
|
51
301
|
};
|
|
52
302
|
description: string;
|
|
53
303
|
};
|
|
54
304
|
};
|
|
305
|
+
} & {
|
|
306
|
+
getRoutingPath(): "/groups/:id";
|
|
307
|
+
};
|
|
308
|
+
export declare const getEvents: {
|
|
309
|
+
path: "/groups/{id}/events";
|
|
310
|
+
method: "get";
|
|
311
|
+
tags: string[];
|
|
312
|
+
request: {
|
|
313
|
+
params: z.ZodObject<{
|
|
314
|
+
id: z.ZodString;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
id: string;
|
|
317
|
+
}, {
|
|
318
|
+
id: string;
|
|
319
|
+
}>;
|
|
320
|
+
query: z.ZodObject<{
|
|
321
|
+
from: z.ZodOptional<z.ZodDate>;
|
|
322
|
+
to: z.ZodOptional<z.ZodDate>;
|
|
323
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
324
|
+
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
|
326
|
+
limit: number;
|
|
327
|
+
offset: number;
|
|
328
|
+
from?: Date | undefined;
|
|
329
|
+
to?: Date | undefined;
|
|
330
|
+
}, {
|
|
331
|
+
from?: Date | undefined;
|
|
332
|
+
to?: Date | undefined;
|
|
333
|
+
limit?: number | undefined;
|
|
334
|
+
offset?: number | undefined;
|
|
335
|
+
}>;
|
|
336
|
+
};
|
|
55
337
|
responses: {
|
|
56
338
|
200: {
|
|
57
339
|
content: {
|
|
@@ -116,6 +398,7 @@ export declare const discover: {
|
|
|
116
398
|
} | (string | number | boolean | {
|
|
117
399
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
118
400
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
|
|
401
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
119
402
|
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
120
403
|
createdAt: z.ZodDate;
|
|
121
404
|
}, {
|
|
@@ -143,17 +426,17 @@ export declare const discover: {
|
|
|
143
426
|
}, "strip", z.ZodTypeAny, {
|
|
144
427
|
id: string;
|
|
145
428
|
name: string;
|
|
146
|
-
formattedAddress: string;
|
|
147
429
|
city: string | null;
|
|
148
430
|
state: string | null;
|
|
431
|
+
formattedAddress: string;
|
|
149
432
|
latitude: number | null;
|
|
150
433
|
longitude: number | null;
|
|
151
434
|
}, {
|
|
152
435
|
id: string;
|
|
153
436
|
name: string;
|
|
154
|
-
formattedAddress: string;
|
|
155
437
|
city: string | null;
|
|
156
438
|
state: string | null;
|
|
439
|
+
formattedAddress: string;
|
|
157
440
|
latitude: number | null;
|
|
158
441
|
longitude: number | null;
|
|
159
442
|
}>>;
|
|
@@ -211,22 +494,22 @@ export declare const discover: {
|
|
|
211
494
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
212
495
|
id: string;
|
|
213
496
|
title: string;
|
|
497
|
+
sportId: string;
|
|
214
498
|
createdAt: Date;
|
|
215
499
|
sport: {
|
|
216
500
|
id: string;
|
|
217
501
|
name: string;
|
|
218
502
|
icon: string | null;
|
|
219
503
|
} | null;
|
|
220
|
-
sportId: string;
|
|
221
504
|
startsAt: Date;
|
|
222
505
|
endsAt: Date | null;
|
|
223
506
|
timezone: string;
|
|
224
507
|
location: {
|
|
225
508
|
id: string;
|
|
226
509
|
name: string;
|
|
227
|
-
formattedAddress: string;
|
|
228
510
|
city: string | null;
|
|
229
511
|
state: string | null;
|
|
512
|
+
formattedAddress: string;
|
|
230
513
|
latitude: number | null;
|
|
231
514
|
longitude: number | null;
|
|
232
515
|
} | null;
|
|
@@ -235,6 +518,7 @@ export declare const discover: {
|
|
|
235
518
|
source: "external" | "community";
|
|
236
519
|
thumbnailUrl: string | null;
|
|
237
520
|
createdByUserId: string | null;
|
|
521
|
+
groupId: string | null;
|
|
238
522
|
creator: {
|
|
239
523
|
image: string | null;
|
|
240
524
|
id: string;
|
|
@@ -273,22 +557,22 @@ export declare const discover: {
|
|
|
273
557
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
274
558
|
id: string;
|
|
275
559
|
title: string;
|
|
560
|
+
sportId: string;
|
|
276
561
|
createdAt: Date;
|
|
277
562
|
sport: {
|
|
278
563
|
id: string;
|
|
279
564
|
name: string;
|
|
280
565
|
icon: string | null;
|
|
281
566
|
} | null;
|
|
282
|
-
sportId: string;
|
|
283
567
|
startsAt: Date;
|
|
284
568
|
endsAt: Date | null;
|
|
285
569
|
timezone: string;
|
|
286
570
|
location: {
|
|
287
571
|
id: string;
|
|
288
572
|
name: string;
|
|
289
|
-
formattedAddress: string;
|
|
290
573
|
city: string | null;
|
|
291
574
|
state: string | null;
|
|
575
|
+
formattedAddress: string;
|
|
292
576
|
latitude: number | null;
|
|
293
577
|
longitude: number | null;
|
|
294
578
|
} | null;
|
|
@@ -297,6 +581,7 @@ export declare const discover: {
|
|
|
297
581
|
source: "external" | "community";
|
|
298
582
|
thumbnailUrl: string | null;
|
|
299
583
|
createdByUserId: string | null;
|
|
584
|
+
groupId: string | null;
|
|
300
585
|
creator: {
|
|
301
586
|
image: string | null;
|
|
302
587
|
id: string;
|
|
@@ -312,6 +597,389 @@ export declare const discover: {
|
|
|
312
597
|
};
|
|
313
598
|
description: string;
|
|
314
599
|
};
|
|
600
|
+
404: {
|
|
601
|
+
content: {
|
|
602
|
+
"application/json": {
|
|
603
|
+
schema: z.ZodObject<{
|
|
604
|
+
message: z.ZodString;
|
|
605
|
+
}, "strip", z.ZodTypeAny, {
|
|
606
|
+
message: string;
|
|
607
|
+
}, {
|
|
608
|
+
message: string;
|
|
609
|
+
}>;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
description: string;
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
} & {
|
|
616
|
+
getRoutingPath(): "/groups/:id/events";
|
|
617
|
+
};
|
|
618
|
+
export declare const create: {
|
|
619
|
+
path: "/groups";
|
|
620
|
+
method: "post";
|
|
621
|
+
tags: string[];
|
|
622
|
+
middleware: [import("hono").MiddlewareHandler];
|
|
623
|
+
request: {
|
|
624
|
+
body: {
|
|
625
|
+
required: boolean;
|
|
626
|
+
content: {
|
|
627
|
+
"application/json": {
|
|
628
|
+
schema: z.ZodObject<{
|
|
629
|
+
name: z.ZodString;
|
|
630
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
631
|
+
description: z.ZodOptional<z.ZodString>;
|
|
632
|
+
sportId: z.ZodString;
|
|
633
|
+
city: z.ZodOptional<z.ZodString>;
|
|
634
|
+
state: z.ZodOptional<z.ZodString>;
|
|
635
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
636
|
+
}, "strip", z.ZodTypeAny, {
|
|
637
|
+
name: string;
|
|
638
|
+
sportId: string;
|
|
639
|
+
description?: string | undefined;
|
|
640
|
+
city?: string | undefined;
|
|
641
|
+
state?: string | undefined;
|
|
642
|
+
slug?: string | undefined;
|
|
643
|
+
imageUrl?: string | undefined;
|
|
644
|
+
}, {
|
|
645
|
+
name: string;
|
|
646
|
+
sportId: string;
|
|
647
|
+
description?: string | undefined;
|
|
648
|
+
city?: string | undefined;
|
|
649
|
+
state?: string | undefined;
|
|
650
|
+
slug?: string | undefined;
|
|
651
|
+
imageUrl?: string | undefined;
|
|
652
|
+
}>;
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
description: string;
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
responses: {
|
|
659
|
+
200: {
|
|
660
|
+
content: {
|
|
661
|
+
"application/json": {
|
|
662
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
663
|
+
id: z.ZodString;
|
|
664
|
+
name: z.ZodString;
|
|
665
|
+
slug: z.ZodString;
|
|
666
|
+
description: z.ZodNullable<z.ZodString>;
|
|
667
|
+
source: z.ZodEnum<["internal", "external"]>;
|
|
668
|
+
city: z.ZodNullable<z.ZodString>;
|
|
669
|
+
state: z.ZodNullable<z.ZodString>;
|
|
670
|
+
country: z.ZodString;
|
|
671
|
+
sportId: z.ZodString;
|
|
672
|
+
sourceOrgId: z.ZodNullable<z.ZodString>;
|
|
673
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
674
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
675
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
676
|
+
isActive: z.ZodBoolean;
|
|
677
|
+
createdAt: z.ZodDate;
|
|
678
|
+
updatedAt: z.ZodDate;
|
|
679
|
+
}, {
|
|
680
|
+
sport: z.ZodNullable<z.ZodObject<{
|
|
681
|
+
id: z.ZodString;
|
|
682
|
+
name: z.ZodString;
|
|
683
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
684
|
+
}, "strip", z.ZodTypeAny, {
|
|
685
|
+
id: string;
|
|
686
|
+
name: string;
|
|
687
|
+
icon: string | null;
|
|
688
|
+
}, {
|
|
689
|
+
id: string;
|
|
690
|
+
name: string;
|
|
691
|
+
icon: string | null;
|
|
692
|
+
}>>;
|
|
693
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
694
|
+
id: z.ZodString;
|
|
695
|
+
name: z.ZodString;
|
|
696
|
+
image: z.ZodNullable<z.ZodString>;
|
|
697
|
+
}, "strip", z.ZodTypeAny, {
|
|
698
|
+
image: string | null;
|
|
699
|
+
id: string;
|
|
700
|
+
name: string;
|
|
701
|
+
}, {
|
|
702
|
+
image: string | null;
|
|
703
|
+
id: string;
|
|
704
|
+
name: string;
|
|
705
|
+
}>>;
|
|
706
|
+
_count: z.ZodOptional<z.ZodObject<{
|
|
707
|
+
events: z.ZodNumber;
|
|
708
|
+
}, "strip", z.ZodTypeAny, {
|
|
709
|
+
events: number;
|
|
710
|
+
}, {
|
|
711
|
+
events: number;
|
|
712
|
+
}>>;
|
|
713
|
+
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
714
|
+
id: string;
|
|
715
|
+
description: string | null;
|
|
716
|
+
name: string;
|
|
717
|
+
city: string | null;
|
|
718
|
+
state: string | null;
|
|
719
|
+
sportId: string;
|
|
720
|
+
createdAt: Date;
|
|
721
|
+
sport: {
|
|
722
|
+
id: string;
|
|
723
|
+
name: string;
|
|
724
|
+
icon: string | null;
|
|
725
|
+
} | null;
|
|
726
|
+
country: string;
|
|
727
|
+
source: "external" | "internal";
|
|
728
|
+
slug: string;
|
|
729
|
+
isActive: boolean;
|
|
730
|
+
sourceOrgId: string | null;
|
|
731
|
+
externalUrl: string | null;
|
|
732
|
+
updatedAt: Date;
|
|
733
|
+
createdByUserId: string | null;
|
|
734
|
+
imageUrl: string | null;
|
|
735
|
+
creator: {
|
|
736
|
+
image: string | null;
|
|
737
|
+
id: string;
|
|
738
|
+
name: string;
|
|
739
|
+
} | null;
|
|
740
|
+
_count?: {
|
|
741
|
+
events: number;
|
|
742
|
+
} | undefined;
|
|
743
|
+
}, {
|
|
744
|
+
id: string;
|
|
745
|
+
description: string | null;
|
|
746
|
+
name: string;
|
|
747
|
+
city: string | null;
|
|
748
|
+
state: string | null;
|
|
749
|
+
sportId: string;
|
|
750
|
+
createdAt: Date;
|
|
751
|
+
sport: {
|
|
752
|
+
id: string;
|
|
753
|
+
name: string;
|
|
754
|
+
icon: string | null;
|
|
755
|
+
} | null;
|
|
756
|
+
country: string;
|
|
757
|
+
source: "external" | "internal";
|
|
758
|
+
slug: string;
|
|
759
|
+
isActive: boolean;
|
|
760
|
+
sourceOrgId: string | null;
|
|
761
|
+
externalUrl: string | null;
|
|
762
|
+
updatedAt: Date;
|
|
763
|
+
createdByUserId: string | null;
|
|
764
|
+
imageUrl: string | null;
|
|
765
|
+
creator: {
|
|
766
|
+
image: string | null;
|
|
767
|
+
id: string;
|
|
768
|
+
name: string;
|
|
769
|
+
} | null;
|
|
770
|
+
_count?: {
|
|
771
|
+
events: number;
|
|
772
|
+
} | undefined;
|
|
773
|
+
}>;
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
description: string;
|
|
777
|
+
};
|
|
778
|
+
401: {
|
|
779
|
+
content: {
|
|
780
|
+
"application/json": {
|
|
781
|
+
schema: z.ZodObject<{
|
|
782
|
+
message: z.ZodString;
|
|
783
|
+
}, "strip", z.ZodTypeAny, {
|
|
784
|
+
message: string;
|
|
785
|
+
}, {
|
|
786
|
+
message: string;
|
|
787
|
+
}>;
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
description: string;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
} & {
|
|
794
|
+
getRoutingPath(): "/groups";
|
|
795
|
+
};
|
|
796
|
+
export declare const update: {
|
|
797
|
+
path: "/groups/{id}";
|
|
798
|
+
method: "patch";
|
|
799
|
+
tags: string[];
|
|
800
|
+
middleware: [import("hono").MiddlewareHandler];
|
|
801
|
+
request: {
|
|
802
|
+
params: z.ZodObject<{
|
|
803
|
+
id: z.ZodString;
|
|
804
|
+
}, "strip", z.ZodTypeAny, {
|
|
805
|
+
id: string;
|
|
806
|
+
}, {
|
|
807
|
+
id: string;
|
|
808
|
+
}>;
|
|
809
|
+
body: {
|
|
810
|
+
required: boolean;
|
|
811
|
+
content: {
|
|
812
|
+
"application/json": {
|
|
813
|
+
schema: z.ZodEffects<z.ZodObject<{
|
|
814
|
+
name: z.ZodOptional<z.ZodString>;
|
|
815
|
+
description: z.ZodOptional<z.ZodString>;
|
|
816
|
+
city: z.ZodOptional<z.ZodString>;
|
|
817
|
+
state: z.ZodOptional<z.ZodString>;
|
|
818
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
|
820
|
+
description?: string | undefined;
|
|
821
|
+
name?: string | undefined;
|
|
822
|
+
city?: string | undefined;
|
|
823
|
+
state?: string | undefined;
|
|
824
|
+
imageUrl?: string | null | undefined;
|
|
825
|
+
}, {
|
|
826
|
+
description?: string | undefined;
|
|
827
|
+
name?: string | undefined;
|
|
828
|
+
city?: string | undefined;
|
|
829
|
+
state?: string | undefined;
|
|
830
|
+
imageUrl?: string | null | undefined;
|
|
831
|
+
}>, {
|
|
832
|
+
description?: string | undefined;
|
|
833
|
+
name?: string | undefined;
|
|
834
|
+
city?: string | undefined;
|
|
835
|
+
state?: string | undefined;
|
|
836
|
+
imageUrl?: string | null | undefined;
|
|
837
|
+
}, {
|
|
838
|
+
description?: string | undefined;
|
|
839
|
+
name?: string | undefined;
|
|
840
|
+
city?: string | undefined;
|
|
841
|
+
state?: string | undefined;
|
|
842
|
+
imageUrl?: string | null | undefined;
|
|
843
|
+
}>;
|
|
844
|
+
};
|
|
845
|
+
};
|
|
846
|
+
description: string;
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
responses: {
|
|
850
|
+
200: {
|
|
851
|
+
content: {
|
|
852
|
+
"application/json": {
|
|
853
|
+
schema: z.ZodObject<z.objectUtil.extendShape<{
|
|
854
|
+
id: z.ZodString;
|
|
855
|
+
name: z.ZodString;
|
|
856
|
+
slug: z.ZodString;
|
|
857
|
+
description: z.ZodNullable<z.ZodString>;
|
|
858
|
+
source: z.ZodEnum<["internal", "external"]>;
|
|
859
|
+
city: z.ZodNullable<z.ZodString>;
|
|
860
|
+
state: z.ZodNullable<z.ZodString>;
|
|
861
|
+
country: z.ZodString;
|
|
862
|
+
sportId: z.ZodString;
|
|
863
|
+
sourceOrgId: z.ZodNullable<z.ZodString>;
|
|
864
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
865
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
866
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
867
|
+
isActive: z.ZodBoolean;
|
|
868
|
+
createdAt: z.ZodDate;
|
|
869
|
+
updatedAt: z.ZodDate;
|
|
870
|
+
}, {
|
|
871
|
+
sport: z.ZodNullable<z.ZodObject<{
|
|
872
|
+
id: z.ZodString;
|
|
873
|
+
name: z.ZodString;
|
|
874
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
875
|
+
}, "strip", z.ZodTypeAny, {
|
|
876
|
+
id: string;
|
|
877
|
+
name: string;
|
|
878
|
+
icon: string | null;
|
|
879
|
+
}, {
|
|
880
|
+
id: string;
|
|
881
|
+
name: string;
|
|
882
|
+
icon: string | null;
|
|
883
|
+
}>>;
|
|
884
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
885
|
+
id: z.ZodString;
|
|
886
|
+
name: z.ZodString;
|
|
887
|
+
image: z.ZodNullable<z.ZodString>;
|
|
888
|
+
}, "strip", z.ZodTypeAny, {
|
|
889
|
+
image: string | null;
|
|
890
|
+
id: string;
|
|
891
|
+
name: string;
|
|
892
|
+
}, {
|
|
893
|
+
image: string | null;
|
|
894
|
+
id: string;
|
|
895
|
+
name: string;
|
|
896
|
+
}>>;
|
|
897
|
+
_count: z.ZodOptional<z.ZodObject<{
|
|
898
|
+
events: z.ZodNumber;
|
|
899
|
+
}, "strip", z.ZodTypeAny, {
|
|
900
|
+
events: number;
|
|
901
|
+
}, {
|
|
902
|
+
events: number;
|
|
903
|
+
}>>;
|
|
904
|
+
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
905
|
+
id: string;
|
|
906
|
+
description: string | null;
|
|
907
|
+
name: string;
|
|
908
|
+
city: string | null;
|
|
909
|
+
state: string | null;
|
|
910
|
+
sportId: string;
|
|
911
|
+
createdAt: Date;
|
|
912
|
+
sport: {
|
|
913
|
+
id: string;
|
|
914
|
+
name: string;
|
|
915
|
+
icon: string | null;
|
|
916
|
+
} | null;
|
|
917
|
+
country: string;
|
|
918
|
+
source: "external" | "internal";
|
|
919
|
+
slug: string;
|
|
920
|
+
isActive: boolean;
|
|
921
|
+
sourceOrgId: string | null;
|
|
922
|
+
externalUrl: string | null;
|
|
923
|
+
updatedAt: Date;
|
|
924
|
+
createdByUserId: string | null;
|
|
925
|
+
imageUrl: string | null;
|
|
926
|
+
creator: {
|
|
927
|
+
image: string | null;
|
|
928
|
+
id: string;
|
|
929
|
+
name: string;
|
|
930
|
+
} | null;
|
|
931
|
+
_count?: {
|
|
932
|
+
events: number;
|
|
933
|
+
} | undefined;
|
|
934
|
+
}, {
|
|
935
|
+
id: string;
|
|
936
|
+
description: string | null;
|
|
937
|
+
name: string;
|
|
938
|
+
city: string | null;
|
|
939
|
+
state: string | null;
|
|
940
|
+
sportId: string;
|
|
941
|
+
createdAt: Date;
|
|
942
|
+
sport: {
|
|
943
|
+
id: string;
|
|
944
|
+
name: string;
|
|
945
|
+
icon: string | null;
|
|
946
|
+
} | null;
|
|
947
|
+
country: string;
|
|
948
|
+
source: "external" | "internal";
|
|
949
|
+
slug: string;
|
|
950
|
+
isActive: boolean;
|
|
951
|
+
sourceOrgId: string | null;
|
|
952
|
+
externalUrl: string | null;
|
|
953
|
+
updatedAt: Date;
|
|
954
|
+
createdByUserId: string | null;
|
|
955
|
+
imageUrl: string | null;
|
|
956
|
+
creator: {
|
|
957
|
+
image: string | null;
|
|
958
|
+
id: string;
|
|
959
|
+
name: string;
|
|
960
|
+
} | null;
|
|
961
|
+
_count?: {
|
|
962
|
+
events: number;
|
|
963
|
+
} | undefined;
|
|
964
|
+
}>;
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
description: string;
|
|
968
|
+
};
|
|
969
|
+
404: {
|
|
970
|
+
content: {
|
|
971
|
+
"application/json": {
|
|
972
|
+
schema: z.ZodObject<{
|
|
973
|
+
message: z.ZodString;
|
|
974
|
+
}, "strip", z.ZodTypeAny, {
|
|
975
|
+
message: string;
|
|
976
|
+
}, {
|
|
977
|
+
message: string;
|
|
978
|
+
}>;
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
description: string;
|
|
982
|
+
};
|
|
315
983
|
401: {
|
|
316
984
|
content: {
|
|
317
985
|
"application/json": {
|
|
@@ -328,6 +996,10 @@ export declare const discover: {
|
|
|
328
996
|
};
|
|
329
997
|
};
|
|
330
998
|
} & {
|
|
331
|
-
getRoutingPath(): "/
|
|
999
|
+
getRoutingPath(): "/groups/:id";
|
|
332
1000
|
};
|
|
333
|
-
export type
|
|
1001
|
+
export type ListRoute = typeof list;
|
|
1002
|
+
export type GetOneRoute = typeof getOne;
|
|
1003
|
+
export type GetEventsRoute = typeof getEvents;
|
|
1004
|
+
export type CreateRoute = typeof create;
|
|
1005
|
+
export type UpdateRoute = typeof update;
|