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