@lcas58/esmi-api-types 1.0.9 → 1.0.10

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.
@@ -3,498 +3,103 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
3
3
  $get: {
4
4
  input: {
5
5
  query: {
6
- status?: string | string[] | undefined;
7
- type?: string | string[] | undefined;
8
- organizationId?: string | string[] | undefined;
6
+ sportId?: string | string[] | undefined;
7
+ source?: string | string[] | undefined;
8
+ limit?: string | string[] | undefined;
9
+ offset?: string | string[] | undefined;
9
10
  };
10
11
  };
11
12
  output: {
13
+ metadata: any;
12
14
  id: string;
13
- status: string;
14
- type: string;
15
- description: string | null;
16
- name: string;
17
- location: {
18
- id: string;
19
- name: string;
20
- provider: string;
21
- formattedAddress: string;
22
- city: string | null;
23
- state: string | null;
24
- country: string | null;
25
- postalCode: string | null;
26
- latitude: string | null;
27
- longitude: string | null;
28
- } | null;
29
- locationId: string | null;
30
- organizationId: string;
31
- organization: {
32
- id: string;
33
- status: string;
34
- description: string;
35
- name: string;
36
- city: string | null;
37
- state: string | null;
38
- country: string | null;
39
- createdAt: string | null;
40
- updatedAt: string | null;
41
- ownerId: string;
42
- slug: string;
43
- avatar: string | null;
44
- stateCd: string | null;
45
- } | null;
46
- mode: string;
15
+ title: string;
47
16
  createdAt: string;
48
- updatedAt: string;
49
- creatorId: string | null;
50
- ageGroup: string;
51
- gender: string;
52
- creator: {
53
- image: string | null;
17
+ sport: {
54
18
  id: string;
55
19
  name: string;
56
- email: string;
57
- emailVerified: boolean;
58
- createdAt: string;
59
- updatedAt: string;
20
+ icon: string | null;
60
21
  } | null;
61
- }[];
62
- outputFormat: "text" | "json";
63
- status: 200;
64
- } | {
65
- input: {
66
- query: {
67
- status?: string | string[] | undefined;
68
- type?: string | string[] | undefined;
69
- organizationId?: string | string[] | undefined;
70
- };
71
- };
72
- output: {
73
- message: string;
74
- };
75
- outputFormat: "text" | "json";
76
- status: 404;
77
- } | {
78
- input: {
79
- query: {
80
- status?: string | string[] | undefined;
81
- type?: string | string[] | undefined;
82
- organizationId?: string | string[] | undefined;
83
- };
84
- };
85
- output: {
86
- error: {
87
- issues: {
88
- code: string;
89
- path: (string | number)[];
90
- message?: string | undefined | undefined;
91
- }[];
92
- name: string;
93
- };
94
- success: boolean;
95
- };
96
- outputFormat: "text" | "json";
97
- status: 422;
98
- };
99
- };
100
- } & {
101
- "/events": {
102
- $post: {
103
- input: {
104
- json: {
105
- type: string;
106
- description: string | null;
107
- name: string;
108
- location: {
109
- id: string;
110
- name: string;
111
- provider: string;
112
- formattedAddress: string;
113
- city?: string | null | undefined;
114
- state?: string | null | undefined;
115
- country?: string | null | undefined;
116
- postalCode?: string | null | undefined;
117
- latitude?: string | null | undefined;
118
- longitude?: string | null | undefined;
119
- };
120
- organizationId: string;
121
- ageGroup: string;
122
- gender: string;
123
- };
124
- };
125
- output: {
126
- error: {
127
- issues: {
128
- code: string;
129
- path: (string | number)[];
130
- message?: string | undefined | undefined;
131
- }[];
132
- name: string;
133
- };
134
- success: boolean;
135
- };
136
- outputFormat: "text" | "json";
137
- status: 422;
138
- } | {
139
- input: {
140
- json: {
141
- type: string;
142
- description: string | null;
143
- name: string;
144
- location: {
145
- id: string;
146
- name: string;
147
- provider: string;
148
- formattedAddress: string;
149
- city?: string | null | undefined;
150
- state?: string | null | undefined;
151
- country?: string | null | undefined;
152
- postalCode?: string | null | undefined;
153
- latitude?: string | null | undefined;
154
- longitude?: string | null | undefined;
155
- };
156
- organizationId: string;
157
- ageGroup: string;
158
- gender: string;
159
- };
160
- };
161
- output: {
162
- id: string;
163
- status: string;
164
- type: string;
165
- description: string | null;
166
- name: string;
22
+ sportId: string;
23
+ startsAt: string;
24
+ endsAt: string | null;
25
+ timezone: string;
167
26
  location: {
168
27
  id: string;
169
28
  name: string;
170
- provider: string;
171
29
  formattedAddress: string;
172
30
  city: string | null;
173
31
  state: string | null;
174
- country: string | null;
175
- postalCode: string | null;
176
- latitude: string | null;
177
- longitude: string | null;
32
+ latitude: number | null;
33
+ longitude: number | null;
178
34
  } | null;
179
35
  locationId: string | null;
180
- organizationId: string;
181
- organization: {
36
+ externalLinkId: string | null;
37
+ source: "external" | "community";
38
+ createdByUserId: string | null;
39
+ externalLink: {
40
+ url: string;
182
41
  id: string;
183
- status: string;
184
- description: string;
185
- name: string;
186
- city: string | null;
187
- state: string | null;
188
- country: string | null;
189
- createdAt: string | null;
190
- updatedAt: string | null;
191
- ownerId: string;
192
- slug: string;
193
- avatar: string | null;
194
- stateCd: string | null;
42
+ domain: string;
195
43
  } | null;
196
- mode: string;
197
- createdAt: string;
198
- updatedAt: string;
199
- creatorId: string | null;
200
- ageGroup: string;
201
- gender: string;
202
- creator: {
203
- image: string | null;
204
- id: string;
205
- name: string;
206
- email: string;
207
- emailVerified: boolean;
208
- createdAt: string;
209
- updatedAt: string;
210
- } | null;
211
- };
212
- outputFormat: "text" | "json";
213
- status: 201;
214
- } | {
215
- input: {
216
- json: {
217
- type: string;
218
- description: string | null;
219
- name: string;
220
- location: {
221
- id: string;
222
- name: string;
223
- provider: string;
224
- formattedAddress: string;
225
- city?: string | null | undefined;
226
- state?: string | null | undefined;
227
- country?: string | null | undefined;
228
- postalCode?: string | null | undefined;
229
- latitude?: string | null | undefined;
230
- longitude?: string | null | undefined;
231
- };
232
- organizationId: string;
233
- ageGroup: string;
234
- gender: string;
235
- };
236
- };
237
- output: {
238
- message: string;
239
- };
44
+ }[];
240
45
  outputFormat: "text" | "json";
241
- status: 401;
46
+ status: 200;
242
47
  };
243
48
  };
244
49
  } & {
245
50
  "/events/:id": {
246
- $patch: {
247
- input: {
248
- param: {
249
- [x: string]: string;
250
- };
251
- } & {
252
- json: {
253
- description: string | null;
254
- gender: string;
255
- status?: string | undefined;
256
- type?: string | undefined;
257
- name?: string | undefined;
258
- location?: {
259
- id: string;
260
- name: string;
261
- provider: string;
262
- formattedAddress: string;
263
- city?: string | null | undefined;
264
- state?: string | null | undefined;
265
- country?: string | null | undefined;
266
- postalCode?: string | null | undefined;
267
- latitude?: string | null | undefined;
268
- longitude?: string | null | undefined;
269
- } | undefined;
270
- organizationId?: string | undefined;
271
- mode?: string | undefined;
272
- ageGroup?: string | undefined;
273
- };
274
- };
275
- output: {
276
- message: string;
277
- };
278
- outputFormat: "text" | "json";
279
- status: 404;
280
- } | {
281
- input: {
282
- param: {
283
- [x: string]: string;
284
- };
285
- } & {
286
- json: {
287
- description: string | null;
288
- gender: string;
289
- status?: string | undefined;
290
- type?: string | undefined;
291
- name?: string | undefined;
292
- location?: {
293
- id: string;
294
- name: string;
295
- provider: string;
296
- formattedAddress: string;
297
- city?: string | null | undefined;
298
- state?: string | null | undefined;
299
- country?: string | null | undefined;
300
- postalCode?: string | null | undefined;
301
- latitude?: string | null | undefined;
302
- longitude?: string | null | undefined;
303
- } | undefined;
304
- organizationId?: string | undefined;
305
- mode?: string | undefined;
306
- ageGroup?: string | undefined;
307
- };
308
- };
309
- output: {
310
- error: {
311
- issues: {
312
- code: string;
313
- path: (string | number)[];
314
- message?: string | undefined | undefined;
315
- }[];
316
- name: string;
317
- };
318
- success: boolean;
319
- };
320
- outputFormat: "text" | "json";
321
- status: 422;
322
- } | {
323
- input: {
324
- param: {
325
- [x: string]: string;
326
- };
327
- } & {
328
- json: {
329
- description: string | null;
330
- gender: string;
331
- status?: string | undefined;
332
- type?: string | undefined;
333
- name?: string | undefined;
334
- location?: {
335
- id: string;
336
- name: string;
337
- provider: string;
338
- formattedAddress: string;
339
- city?: string | null | undefined;
340
- state?: string | null | undefined;
341
- country?: string | null | undefined;
342
- postalCode?: string | null | undefined;
343
- latitude?: string | null | undefined;
344
- longitude?: string | null | undefined;
345
- } | undefined;
346
- organizationId?: string | undefined;
347
- mode?: string | undefined;
348
- ageGroup?: string | undefined;
349
- };
350
- };
351
- output: {
352
- message: string;
353
- };
354
- outputFormat: "text" | "json";
355
- status: 401;
356
- } | {
51
+ $get: {
357
52
  input: {
358
53
  param: {
359
- [x: string]: string;
360
- };
361
- } & {
362
- json: {
363
- description: string | null;
364
- gender: string;
365
- status?: string | undefined;
366
- type?: string | undefined;
367
- name?: string | undefined;
368
- location?: {
369
- id: string;
370
- name: string;
371
- provider: string;
372
- formattedAddress: string;
373
- city?: string | null | undefined;
374
- state?: string | null | undefined;
375
- country?: string | null | undefined;
376
- postalCode?: string | null | undefined;
377
- latitude?: string | null | undefined;
378
- longitude?: string | null | undefined;
379
- } | undefined;
380
- organizationId?: string | undefined;
381
- mode?: string | undefined;
382
- ageGroup?: string | undefined;
54
+ id: string;
383
55
  };
384
56
  };
385
57
  output: {
58
+ metadata: any;
386
59
  id: string;
387
- status: string;
388
- type: string;
389
- description: string | null;
390
- name: string;
391
- location: {
60
+ title: string;
61
+ createdAt: string;
62
+ sport: {
392
63
  id: string;
393
64
  name: string;
394
- provider: string;
395
- formattedAddress: string;
396
- city: string | null;
397
- state: string | null;
398
- country: string | null;
399
- postalCode: string | null;
400
- latitude: string | null;
401
- longitude: string | null;
65
+ icon: string | null;
402
66
  } | null;
403
- locationId: string | null;
404
- organizationId: string;
405
- organization: {
67
+ sportId: string;
68
+ startsAt: string;
69
+ endsAt: string | null;
70
+ timezone: string;
71
+ location: {
406
72
  id: string;
407
- status: string;
408
- description: string;
409
73
  name: string;
74
+ formattedAddress: string;
410
75
  city: string | null;
411
76
  state: string | null;
412
- country: string | null;
413
- createdAt: string | null;
414
- updatedAt: string | null;
415
- ownerId: string;
416
- slug: string;
417
- avatar: string | null;
418
- stateCd: string | null;
77
+ latitude: number | null;
78
+ longitude: number | null;
419
79
  } | null;
420
- mode: string;
421
- createdAt: string;
422
- updatedAt: string;
423
- creatorId: string | null;
424
- ageGroup: string;
425
- gender: string;
426
- creator: {
427
- image: string | null;
80
+ locationId: string | null;
81
+ externalLinkId: string | null;
82
+ source: "external" | "community";
83
+ createdByUserId: string | null;
84
+ externalLink: {
85
+ url: string;
428
86
  id: string;
429
- name: string;
430
- email: string;
431
- emailVerified: boolean;
432
- createdAt: string;
433
- updatedAt: string;
87
+ domain: string;
434
88
  } | null;
435
89
  };
436
90
  outputFormat: "text" | "json";
437
91
  status: 200;
438
- };
439
- };
440
- } & {
441
- "/events/count-stats": {
442
- $get: {
443
- input: {
444
- query: {
445
- organizationId: string | string[];
446
- };
447
- };
448
- output: {
449
- message: string;
450
- };
451
- outputFormat: "text" | "json";
452
- status: 404;
453
92
  } | {
454
93
  input: {
455
- query: {
456
- organizationId: string | string[];
457
- };
458
- };
459
- output: {
460
- error: {
461
- issues: {
462
- code: string;
463
- path: (string | number)[];
464
- message?: string | undefined | undefined;
465
- }[];
466
- name: string;
467
- };
468
- success: boolean;
469
- };
470
- outputFormat: "text" | "json";
471
- status: 422;
472
- } | {
473
- input: {
474
- query: {
475
- organizationId: string | string[];
94
+ param: {
95
+ id: string;
476
96
  };
477
97
  };
478
98
  output: {
479
99
  message: string;
480
100
  };
481
101
  outputFormat: "text" | "json";
482
- status: 401;
483
- } | {
484
- input: {
485
- query: {
486
- organizationId: string | string[];
487
- };
488
- };
489
- output: {
490
- total: number;
491
- thisMonth: number;
492
- upcoming: number;
493
- inProgress: number;
494
- completed: number;
495
- };
496
- outputFormat: "text" | "json";
497
- status: 200;
102
+ status: 404;
498
103
  };
499
104
  };
500
105
  }, "/">;
@@ -3,7 +3,5 @@ import * as handlers from "./events.handlers.js";
3
3
  import * as routes from "./events.routes.js";
4
4
  const router = createRouter()
5
5
  .openapi(routes.list, handlers.list)
6
- .openapi(routes.create, handlers.create)
7
- .openapi(routes.patch, handlers.patch)
8
- .openapi(routes.getCountStats, handlers.getCountStats);
6
+ .openapi(routes.getOne, handlers.getOne);
9
7
  export default router;