@lcas58/esmi-api-types 1.0.6 → 1.0.8

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 (43) hide show
  1. package/dist/src/app.d.ts +0 -1156
  2. package/dist/src/app.js +0 -1
  3. package/dist/src/routes/events/events.handlers.d.ts +20 -0
  4. package/dist/src/routes/events/events.handlers.js +177 -0
  5. package/dist/src/routes/events/events.index.d.ts +501 -0
  6. package/dist/src/routes/events/events.index.js +9 -0
  7. package/dist/src/routes/events/events.routes.d.ts +1375 -0
  8. package/dist/src/routes/events/events.routes.js +72 -0
  9. package/dist/src/routes/events/schemas/event.schemas.d.ts +896 -0
  10. package/dist/src/routes/events/schemas/event.schemas.js +49 -0
  11. package/dist/src/routes/events/schemas/index.d.ts +1 -0
  12. package/dist/src/routes/events/schemas/index.js +1 -0
  13. package/dist/src/routes/index.route.d.ts +13 -0
  14. package/dist/src/routes/index.route.js +19 -0
  15. package/dist/src/routes/leagues/leagues.handlers.d.ts +3 -0
  16. package/dist/src/routes/leagues/leagues.handlers.js +49 -0
  17. package/dist/src/routes/leagues/leagues.index.d.ts +53 -0
  18. package/dist/src/routes/leagues/leagues.index.js +6 -0
  19. package/dist/src/routes/leagues/leagues.routes.d.ts +137 -0
  20. package/dist/src/routes/leagues/leagues.routes.js +47 -0
  21. package/dist/src/routes/marketing/marketing.handlers.d.ts +4 -0
  22. package/dist/src/routes/marketing/marketing.handlers.js +20 -0
  23. package/dist/src/routes/marketing/marketing.index.d.ts +58 -0
  24. package/dist/src/routes/marketing/marketing.index.js +7 -0
  25. package/dist/src/routes/marketing/marketing.routes.d.ts +154 -0
  26. package/dist/src/routes/marketing/marketing.routes.js +27 -0
  27. package/dist/src/routes/organizations/organizations.handlers.d.ts +74 -0
  28. package/dist/src/routes/organizations/organizations.handlers.js +485 -0
  29. package/dist/src/routes/organizations/organizations.index.d.ts +517 -0
  30. package/dist/src/routes/organizations/organizations.index.js +12 -0
  31. package/dist/src/routes/organizations/organizations.routes.d.ts +1236 -0
  32. package/dist/src/routes/organizations/organizations.routes.js +137 -0
  33. package/dist/src/routes/organizations/tasks.test.d.ts +0 -0
  34. package/dist/src/routes/organizations/tasks.test.js +181 -0
  35. package/dist/src/routes/tags/tags.handlers.d.ts +3 -0
  36. package/dist/src/routes/tags/tags.handlers.js +15 -0
  37. package/dist/src/routes/tags/tags.index.d.ts +24 -0
  38. package/dist/src/routes/tags/tags.index.js +6 -0
  39. package/dist/src/routes/tags/tags.routes.d.ts +68 -0
  40. package/dist/src/routes/tags/tags.routes.js +25 -0
  41. package/dist/src/shared/client-types.d.ts +8 -3
  42. package/dist/src/shared/client-types.js +1 -1
  43. package/package.json +2 -2
package/dist/src/app.d.ts CHANGED
@@ -1,1158 +1,2 @@
1
1
  declare const app: import("@hono/zod-openapi").OpenAPIHono<import("./shared/index.js").AppBindings, {}, "/">;
2
- declare const routes: readonly [import("@hono/zod-openapi").OpenAPIHono<import("./shared/index.js").AppBindings, {
3
- "/": {
4
- $get: {
5
- input: {};
6
- output: {
7
- message: string;
8
- };
9
- outputFormat: "text" | "json";
10
- status: 200;
11
- };
12
- };
13
- }, "/">, import("@hono/zod-openapi").OpenAPIHono<import("./shared/index.js").AppBindings, {
14
- "/organizations/name": {
15
- $get: {
16
- input: {
17
- query: {
18
- name: string | string[];
19
- };
20
- };
21
- output: {
22
- exists: boolean;
23
- suggestions?: string[] | undefined;
24
- };
25
- outputFormat: "text" | "json";
26
- status: 200;
27
- } | {
28
- input: {
29
- query: {
30
- name: string | string[];
31
- };
32
- };
33
- output: {
34
- message: string;
35
- };
36
- outputFormat: "text" | "json";
37
- status: 422;
38
- };
39
- };
40
- } & {
41
- "/organizations/:id": {
42
- $get: {
43
- input: {
44
- param: {
45
- id: string;
46
- };
47
- };
48
- output: {
49
- message: string;
50
- };
51
- outputFormat: "text" | "json";
52
- status: 404;
53
- } | {
54
- input: {
55
- param: {
56
- id: string;
57
- };
58
- };
59
- output: {
60
- error: {
61
- issues: {
62
- code: string;
63
- path: (string | number)[];
64
- message?: string | undefined;
65
- }[];
66
- name: string;
67
- };
68
- success: boolean;
69
- };
70
- outputFormat: "text" | "json";
71
- status: 422;
72
- } | {
73
- input: {
74
- param: {
75
- id: string;
76
- };
77
- };
78
- output: {
79
- message: string;
80
- };
81
- outputFormat: "text" | "json";
82
- status: 401;
83
- } | {
84
- input: {
85
- param: {
86
- id: string;
87
- };
88
- };
89
- output: {
90
- id: string;
91
- status: string;
92
- description: string;
93
- name: string;
94
- city: string | null;
95
- state: string | null;
96
- country: string | null;
97
- createdAt: string | null;
98
- updatedAt: string | null;
99
- ownerId: string;
100
- slug: string;
101
- avatar: string | null;
102
- stateCd: string | null;
103
- tags: {
104
- id: string;
105
- name: string;
106
- }[];
107
- websites: {
108
- url: string;
109
- id: string;
110
- label: string;
111
- }[];
112
- socialMedia: {
113
- url: string;
114
- id: string;
115
- platform: string;
116
- handle: string;
117
- }[];
118
- };
119
- outputFormat: "text" | "json";
120
- status: 200;
121
- };
122
- };
123
- } & {
124
- "/organizations": {
125
- $get: {
126
- input: {
127
- query: {
128
- city?: string | string[] | undefined;
129
- state?: string | string[] | undefined;
130
- country?: string | string[] | undefined;
131
- ownerId?: string | string[] | undefined;
132
- };
133
- };
134
- output: {
135
- error: {
136
- issues: {
137
- code: string;
138
- path: (string | number)[];
139
- message?: string | undefined;
140
- }[];
141
- name: string;
142
- };
143
- success: boolean;
144
- };
145
- outputFormat: "text" | "json";
146
- status: 422;
147
- } | {
148
- input: {
149
- query: {
150
- city?: string | string[] | undefined;
151
- state?: string | string[] | undefined;
152
- country?: string | string[] | undefined;
153
- ownerId?: string | string[] | undefined;
154
- };
155
- };
156
- output: {
157
- message: string;
158
- };
159
- outputFormat: "text" | "json";
160
- status: 401;
161
- } | {
162
- input: {
163
- query: {
164
- city?: string | string[] | undefined;
165
- state?: string | string[] | undefined;
166
- country?: string | string[] | undefined;
167
- ownerId?: string | string[] | undefined;
168
- };
169
- };
170
- output: {
171
- id: string;
172
- status: string;
173
- description: string;
174
- name: string;
175
- city: string | null;
176
- state: string | null;
177
- country: string | null;
178
- createdAt: string | null;
179
- updatedAt: string | null;
180
- ownerId: string;
181
- slug: string;
182
- avatar: string | null;
183
- stateCd: string | null;
184
- }[];
185
- outputFormat: "text" | "json";
186
- status: 200;
187
- };
188
- };
189
- } & {
190
- "/organizations": {
191
- $post: {
192
- input: {
193
- json: {
194
- description: string;
195
- name: string;
196
- city: string | null;
197
- country: string | null;
198
- stateCd: string | null;
199
- status?: string | undefined;
200
- state?: string | null | undefined;
201
- avatar?: string | null | undefined;
202
- tags?: {
203
- tagId: string;
204
- }[] | undefined;
205
- websites?: {
206
- url: string;
207
- label?: string | null | undefined;
208
- }[] | undefined;
209
- socialMedia?: {
210
- platform: string;
211
- handle: string;
212
- url?: string | null | undefined;
213
- }[] | undefined;
214
- };
215
- };
216
- output: {
217
- error: {
218
- issues: {
219
- code: string;
220
- path: (string | number)[];
221
- message?: string | undefined;
222
- }[];
223
- name: string;
224
- };
225
- success: boolean;
226
- };
227
- outputFormat: "text" | "json";
228
- status: 422;
229
- } | {
230
- input: {
231
- json: {
232
- description: string;
233
- name: string;
234
- city: string | null;
235
- country: string | null;
236
- stateCd: string | null;
237
- status?: string | undefined;
238
- state?: string | null | undefined;
239
- avatar?: string | null | undefined;
240
- tags?: {
241
- tagId: string;
242
- }[] | undefined;
243
- websites?: {
244
- url: string;
245
- label?: string | null | undefined;
246
- }[] | undefined;
247
- socialMedia?: {
248
- platform: string;
249
- handle: string;
250
- url?: string | null | undefined;
251
- }[] | undefined;
252
- };
253
- };
254
- output: {
255
- message: string;
256
- };
257
- outputFormat: "text" | "json";
258
- status: 401;
259
- } | {
260
- input: {
261
- json: {
262
- description: string;
263
- name: string;
264
- city: string | null;
265
- country: string | null;
266
- stateCd: string | null;
267
- status?: string | undefined;
268
- state?: string | null | undefined;
269
- avatar?: string | null | undefined;
270
- tags?: {
271
- tagId: string;
272
- }[] | undefined;
273
- websites?: {
274
- url: string;
275
- label?: string | null | undefined;
276
- }[] | undefined;
277
- socialMedia?: {
278
- platform: string;
279
- handle: string;
280
- url?: string | null | undefined;
281
- }[] | undefined;
282
- };
283
- };
284
- output: {
285
- id: string;
286
- status: string;
287
- description: string;
288
- name: string;
289
- city: string | null;
290
- state: string | null;
291
- country: string | null;
292
- createdAt: string | null;
293
- updatedAt: string | null;
294
- ownerId: string;
295
- slug: string;
296
- avatar: string | null;
297
- stateCd: string | null;
298
- };
299
- outputFormat: "text" | "json";
300
- status: 201;
301
- };
302
- };
303
- } & {
304
- "/organizations/:id": {
305
- $patch: {
306
- input: {
307
- param: {
308
- [x: string]: string;
309
- };
310
- } & {
311
- json: {
312
- status?: string | undefined;
313
- description?: string | undefined;
314
- name?: string | undefined;
315
- city?: string | null | undefined;
316
- state?: string | null | undefined;
317
- country?: string | null | undefined;
318
- avatar?: string | null | undefined;
319
- stateCd?: string | null | undefined;
320
- tags?: {
321
- tagId: string;
322
- }[] | undefined;
323
- websites?: {
324
- url: string;
325
- label?: string | null | undefined;
326
- }[] | undefined;
327
- socialMedia?: {
328
- platform: string;
329
- handle: string;
330
- url?: string | null | undefined;
331
- }[] | undefined;
332
- };
333
- };
334
- output: {
335
- message: string;
336
- };
337
- outputFormat: "text" | "json";
338
- status: 404;
339
- } | {
340
- input: {
341
- param: {
342
- [x: string]: string;
343
- };
344
- } & {
345
- json: {
346
- status?: string | undefined;
347
- description?: string | undefined;
348
- name?: string | undefined;
349
- city?: string | null | undefined;
350
- state?: string | null | undefined;
351
- country?: string | null | undefined;
352
- avatar?: string | null | undefined;
353
- stateCd?: string | null | undefined;
354
- tags?: {
355
- tagId: string;
356
- }[] | undefined;
357
- websites?: {
358
- url: string;
359
- label?: string | null | undefined;
360
- }[] | undefined;
361
- socialMedia?: {
362
- platform: string;
363
- handle: string;
364
- url?: string | null | undefined;
365
- }[] | undefined;
366
- };
367
- };
368
- output: {
369
- error: {
370
- issues: {
371
- code: string;
372
- path: (string | number)[];
373
- message?: string | undefined;
374
- }[];
375
- name: string;
376
- };
377
- success: boolean;
378
- };
379
- outputFormat: "text" | "json";
380
- status: 422;
381
- } | {
382
- input: {
383
- param: {
384
- [x: string]: string;
385
- };
386
- } & {
387
- json: {
388
- status?: string | undefined;
389
- description?: string | undefined;
390
- name?: string | undefined;
391
- city?: string | null | undefined;
392
- state?: string | null | undefined;
393
- country?: string | null | undefined;
394
- avatar?: string | null | undefined;
395
- stateCd?: string | null | undefined;
396
- tags?: {
397
- tagId: string;
398
- }[] | undefined;
399
- websites?: {
400
- url: string;
401
- label?: string | null | undefined;
402
- }[] | undefined;
403
- socialMedia?: {
404
- platform: string;
405
- handle: string;
406
- url?: string | null | undefined;
407
- }[] | undefined;
408
- };
409
- };
410
- output: {
411
- id: string;
412
- status: string;
413
- description: string;
414
- name: string;
415
- city: string | null;
416
- state: string | null;
417
- country: string | null;
418
- createdAt: string | null;
419
- updatedAt: string | null;
420
- ownerId: string;
421
- slug: string;
422
- avatar: string | null;
423
- stateCd: string | null;
424
- };
425
- outputFormat: "text" | "json";
426
- status: 200;
427
- };
428
- };
429
- } & {
430
- "/organizations/:id": {
431
- $delete: {
432
- input: {
433
- param: {
434
- [x: string]: string;
435
- };
436
- };
437
- output: {
438
- message: string;
439
- };
440
- outputFormat: "text" | "json";
441
- status: 404;
442
- } | {
443
- input: {
444
- param: {
445
- [x: string]: string;
446
- };
447
- };
448
- output: {
449
- error: {
450
- issues: {
451
- code: string;
452
- path: (string | number)[];
453
- message?: string | undefined;
454
- }[];
455
- name: string;
456
- };
457
- success: boolean;
458
- };
459
- outputFormat: "text" | "json";
460
- status: 422;
461
- } | {
462
- input: {
463
- param: {
464
- [x: string]: string;
465
- };
466
- };
467
- output: {};
468
- outputFormat: string;
469
- status: 204;
470
- };
471
- };
472
- } & {
473
- "/organizations/:id/ownership": {
474
- $get: {
475
- input: {
476
- param: {
477
- [x: string]: string;
478
- };
479
- };
480
- output: {
481
- message: string;
482
- };
483
- outputFormat: "text" | "json";
484
- status: 404;
485
- } | {
486
- input: {
487
- param: {
488
- [x: string]: string;
489
- };
490
- };
491
- output: {
492
- error: {
493
- issues: {
494
- code: string;
495
- path: (string | number)[];
496
- message?: string | undefined;
497
- }[];
498
- name: string;
499
- };
500
- success: boolean;
501
- };
502
- outputFormat: "text" | "json";
503
- status: 422;
504
- } | {
505
- input: {
506
- param: {
507
- [x: string]: string;
508
- };
509
- };
510
- output: {
511
- message: string;
512
- };
513
- outputFormat: "text" | "json";
514
- status: 401;
515
- } | {
516
- input: {
517
- param: {
518
- [x: string]: string;
519
- };
520
- };
521
- output: {
522
- isOwner: boolean;
523
- };
524
- outputFormat: "text" | "json";
525
- status: 200;
526
- };
527
- };
528
- }, "/">, import("@hono/zod-openapi").OpenAPIHono<import("./shared/index.js").AppBindings, {
529
- "/events": {
530
- $get: {
531
- input: {
532
- query: {
533
- status?: string | string[] | undefined;
534
- type?: string | string[] | undefined;
535
- organizationId?: string | string[] | undefined;
536
- };
537
- };
538
- output: {
539
- id: string;
540
- status: string;
541
- type: string;
542
- description: string | null;
543
- name: string;
544
- location: {
545
- id: string;
546
- name: string;
547
- provider: string;
548
- formattedAddress: string;
549
- city: string | null;
550
- state: string | null;
551
- country: string | null;
552
- postalCode: string | null;
553
- latitude: string | null;
554
- longitude: string | null;
555
- } | null;
556
- locationId: string | null;
557
- organizationId: string;
558
- organization: {
559
- id: string;
560
- status: string;
561
- description: string;
562
- name: string;
563
- city: string | null;
564
- state: string | null;
565
- country: string | null;
566
- createdAt: string | null;
567
- updatedAt: string | null;
568
- ownerId: string;
569
- slug: string;
570
- avatar: string | null;
571
- stateCd: string | null;
572
- } | null;
573
- mode: string;
574
- createdAt: string;
575
- updatedAt: string;
576
- creatorId: string | null;
577
- ageGroup: string;
578
- gender: string;
579
- creator: {
580
- image: string | null;
581
- id: string;
582
- name: string;
583
- email: string;
584
- emailVerified: boolean;
585
- createdAt: string;
586
- updatedAt: string;
587
- } | null;
588
- }[];
589
- outputFormat: "text" | "json";
590
- status: 200;
591
- } | {
592
- input: {
593
- query: {
594
- status?: string | string[] | undefined;
595
- type?: string | string[] | undefined;
596
- organizationId?: string | string[] | undefined;
597
- };
598
- };
599
- output: {
600
- message: string;
601
- };
602
- outputFormat: "text" | "json";
603
- status: 404;
604
- } | {
605
- input: {
606
- query: {
607
- status?: string | string[] | undefined;
608
- type?: string | string[] | undefined;
609
- organizationId?: string | string[] | undefined;
610
- };
611
- };
612
- output: {
613
- error: {
614
- issues: {
615
- code: string;
616
- path: (string | number)[];
617
- message?: string | undefined;
618
- }[];
619
- name: string;
620
- };
621
- success: boolean;
622
- };
623
- outputFormat: "text" | "json";
624
- status: 422;
625
- };
626
- };
627
- } & {
628
- "/events": {
629
- $post: {
630
- input: {
631
- json: {
632
- type: string;
633
- description: string | null;
634
- name: string;
635
- location: {
636
- id: string;
637
- name: string;
638
- provider: string;
639
- formattedAddress: string;
640
- city?: string | null | undefined;
641
- state?: string | null | undefined;
642
- country?: string | null | undefined;
643
- postalCode?: string | null | undefined;
644
- latitude?: string | null | undefined;
645
- longitude?: string | null | undefined;
646
- };
647
- organizationId: string;
648
- ageGroup: string;
649
- gender: string;
650
- };
651
- };
652
- output: {
653
- error: {
654
- issues: {
655
- code: string;
656
- path: (string | number)[];
657
- message?: string | undefined;
658
- }[];
659
- name: string;
660
- };
661
- success: boolean;
662
- };
663
- outputFormat: "text" | "json";
664
- status: 422;
665
- } | {
666
- input: {
667
- json: {
668
- type: string;
669
- description: string | null;
670
- name: string;
671
- location: {
672
- id: string;
673
- name: string;
674
- provider: string;
675
- formattedAddress: string;
676
- city?: string | null | undefined;
677
- state?: string | null | undefined;
678
- country?: string | null | undefined;
679
- postalCode?: string | null | undefined;
680
- latitude?: string | null | undefined;
681
- longitude?: string | null | undefined;
682
- };
683
- organizationId: string;
684
- ageGroup: string;
685
- gender: string;
686
- };
687
- };
688
- output: {
689
- id: string;
690
- status: string;
691
- type: string;
692
- description: string | null;
693
- name: string;
694
- location: {
695
- id: string;
696
- name: string;
697
- provider: string;
698
- formattedAddress: string;
699
- city: string | null;
700
- state: string | null;
701
- country: string | null;
702
- postalCode: string | null;
703
- latitude: string | null;
704
- longitude: string | null;
705
- } | null;
706
- locationId: string | null;
707
- organizationId: string;
708
- organization: {
709
- id: string;
710
- status: string;
711
- description: string;
712
- name: string;
713
- city: string | null;
714
- state: string | null;
715
- country: string | null;
716
- createdAt: string | null;
717
- updatedAt: string | null;
718
- ownerId: string;
719
- slug: string;
720
- avatar: string | null;
721
- stateCd: string | null;
722
- } | null;
723
- mode: string;
724
- createdAt: string;
725
- updatedAt: string;
726
- creatorId: string | null;
727
- ageGroup: string;
728
- gender: string;
729
- creator: {
730
- image: string | null;
731
- id: string;
732
- name: string;
733
- email: string;
734
- emailVerified: boolean;
735
- createdAt: string;
736
- updatedAt: string;
737
- } | null;
738
- };
739
- outputFormat: "text" | "json";
740
- status: 201;
741
- } | {
742
- input: {
743
- json: {
744
- type: string;
745
- description: string | null;
746
- name: string;
747
- location: {
748
- id: string;
749
- name: string;
750
- provider: string;
751
- formattedAddress: string;
752
- city?: string | null | undefined;
753
- state?: string | null | undefined;
754
- country?: string | null | undefined;
755
- postalCode?: string | null | undefined;
756
- latitude?: string | null | undefined;
757
- longitude?: string | null | undefined;
758
- };
759
- organizationId: string;
760
- ageGroup: string;
761
- gender: string;
762
- };
763
- };
764
- output: {
765
- message: string;
766
- };
767
- outputFormat: "text" | "json";
768
- status: 401;
769
- };
770
- };
771
- } & {
772
- "/events/:id": {
773
- $patch: {
774
- input: {
775
- param: {
776
- [x: string]: string;
777
- };
778
- } & {
779
- json: {
780
- description: string | null;
781
- gender: string;
782
- status?: string | undefined;
783
- type?: string | undefined;
784
- name?: string | undefined;
785
- location?: {
786
- id: string;
787
- name: string;
788
- provider: string;
789
- formattedAddress: string;
790
- city?: string | null | undefined;
791
- state?: string | null | undefined;
792
- country?: string | null | undefined;
793
- postalCode?: string | null | undefined;
794
- latitude?: string | null | undefined;
795
- longitude?: string | null | undefined;
796
- } | undefined;
797
- organizationId?: string | undefined;
798
- mode?: string | undefined;
799
- ageGroup?: string | undefined;
800
- };
801
- };
802
- output: {
803
- message: string;
804
- };
805
- outputFormat: "text" | "json";
806
- status: 404;
807
- } | {
808
- input: {
809
- param: {
810
- [x: string]: string;
811
- };
812
- } & {
813
- json: {
814
- description: string | null;
815
- gender: string;
816
- status?: string | undefined;
817
- type?: string | undefined;
818
- name?: string | undefined;
819
- location?: {
820
- id: string;
821
- name: string;
822
- provider: string;
823
- formattedAddress: string;
824
- city?: string | null | undefined;
825
- state?: string | null | undefined;
826
- country?: string | null | undefined;
827
- postalCode?: string | null | undefined;
828
- latitude?: string | null | undefined;
829
- longitude?: string | null | undefined;
830
- } | undefined;
831
- organizationId?: string | undefined;
832
- mode?: string | undefined;
833
- ageGroup?: string | undefined;
834
- };
835
- };
836
- output: {
837
- error: {
838
- issues: {
839
- code: string;
840
- path: (string | number)[];
841
- message?: string | undefined;
842
- }[];
843
- name: string;
844
- };
845
- success: boolean;
846
- };
847
- outputFormat: "text" | "json";
848
- status: 422;
849
- } | {
850
- input: {
851
- param: {
852
- [x: string]: string;
853
- };
854
- } & {
855
- json: {
856
- description: string | null;
857
- gender: string;
858
- status?: string | undefined;
859
- type?: string | undefined;
860
- name?: string | undefined;
861
- location?: {
862
- id: string;
863
- name: string;
864
- provider: string;
865
- formattedAddress: string;
866
- city?: string | null | undefined;
867
- state?: string | null | undefined;
868
- country?: string | null | undefined;
869
- postalCode?: string | null | undefined;
870
- latitude?: string | null | undefined;
871
- longitude?: string | null | undefined;
872
- } | undefined;
873
- organizationId?: string | undefined;
874
- mode?: string | undefined;
875
- ageGroup?: string | undefined;
876
- };
877
- };
878
- output: {
879
- message: string;
880
- };
881
- outputFormat: "text" | "json";
882
- status: 401;
883
- } | {
884
- input: {
885
- param: {
886
- [x: string]: string;
887
- };
888
- } & {
889
- json: {
890
- description: string | null;
891
- gender: string;
892
- status?: string | undefined;
893
- type?: string | undefined;
894
- name?: string | undefined;
895
- location?: {
896
- id: string;
897
- name: string;
898
- provider: string;
899
- formattedAddress: string;
900
- city?: string | null | undefined;
901
- state?: string | null | undefined;
902
- country?: string | null | undefined;
903
- postalCode?: string | null | undefined;
904
- latitude?: string | null | undefined;
905
- longitude?: string | null | undefined;
906
- } | undefined;
907
- organizationId?: string | undefined;
908
- mode?: string | undefined;
909
- ageGroup?: string | undefined;
910
- };
911
- };
912
- output: {
913
- id: string;
914
- status: string;
915
- type: string;
916
- description: string | null;
917
- name: string;
918
- location: {
919
- id: string;
920
- name: string;
921
- provider: string;
922
- formattedAddress: string;
923
- city: string | null;
924
- state: string | null;
925
- country: string | null;
926
- postalCode: string | null;
927
- latitude: string | null;
928
- longitude: string | null;
929
- } | null;
930
- locationId: string | null;
931
- organizationId: string;
932
- organization: {
933
- id: string;
934
- status: string;
935
- description: string;
936
- name: string;
937
- city: string | null;
938
- state: string | null;
939
- country: string | null;
940
- createdAt: string | null;
941
- updatedAt: string | null;
942
- ownerId: string;
943
- slug: string;
944
- avatar: string | null;
945
- stateCd: string | null;
946
- } | null;
947
- mode: string;
948
- createdAt: string;
949
- updatedAt: string;
950
- creatorId: string | null;
951
- ageGroup: string;
952
- gender: string;
953
- creator: {
954
- image: string | null;
955
- id: string;
956
- name: string;
957
- email: string;
958
- emailVerified: boolean;
959
- createdAt: string;
960
- updatedAt: string;
961
- } | null;
962
- };
963
- outputFormat: "text" | "json";
964
- status: 200;
965
- };
966
- };
967
- } & {
968
- "/events/count-stats": {
969
- $get: {
970
- input: {
971
- query: {
972
- organizationId: string | string[];
973
- };
974
- };
975
- output: {
976
- message: string;
977
- };
978
- outputFormat: "text" | "json";
979
- status: 404;
980
- } | {
981
- input: {
982
- query: {
983
- organizationId: string | string[];
984
- };
985
- };
986
- output: {
987
- error: {
988
- issues: {
989
- code: string;
990
- path: (string | number)[];
991
- message?: string | undefined;
992
- }[];
993
- name: string;
994
- };
995
- success: boolean;
996
- };
997
- outputFormat: "text" | "json";
998
- status: 422;
999
- } | {
1000
- input: {
1001
- query: {
1002
- organizationId: string | string[];
1003
- };
1004
- };
1005
- output: {
1006
- message: string;
1007
- };
1008
- outputFormat: "text" | "json";
1009
- status: 401;
1010
- } | {
1011
- input: {
1012
- query: {
1013
- organizationId: string | string[];
1014
- };
1015
- };
1016
- output: {
1017
- total: number;
1018
- thisMonth: number;
1019
- upcoming: number;
1020
- inProgress: number;
1021
- completed: number;
1022
- };
1023
- outputFormat: "text" | "json";
1024
- status: 200;
1025
- };
1026
- };
1027
- }, "/">, import("@hono/zod-openapi").OpenAPIHono<import("./shared/index.js").AppBindings, {
1028
- "/leagues/:locationId": {
1029
- $get: {
1030
- input: {
1031
- param: {
1032
- [x: string]: string;
1033
- };
1034
- };
1035
- output: {
1036
- message: string;
1037
- };
1038
- outputFormat: "text" | "json";
1039
- status: 404;
1040
- } | {
1041
- input: {
1042
- param: {
1043
- [x: string]: string;
1044
- };
1045
- };
1046
- output: {
1047
- status: string;
1048
- type: string;
1049
- description: string | null;
1050
- name: string;
1051
- formattedAddress: string;
1052
- organization: {
1053
- description: string;
1054
- name: string;
1055
- ownerName: string;
1056
- };
1057
- mode: string;
1058
- ageGroup: string;
1059
- gender: string;
1060
- tags: {
1061
- id: string;
1062
- name: string;
1063
- }[];
1064
- numberOfTeams: number;
1065
- scheduleDays: string | null;
1066
- scheduleTimes: string | null;
1067
- startDate: string;
1068
- endDate: string;
1069
- season: string | null;
1070
- registrationStart: string | null;
1071
- registrationEnd: string | null;
1072
- teamFee: number | null;
1073
- }[];
1074
- outputFormat: "text" | "json";
1075
- status: 200;
1076
- };
1077
- };
1078
- }, "/">, import("@hono/zod-openapi").OpenAPIHono<import("./shared/index.js").AppBindings, {
1079
- "/marketing/email": {
1080
- $get: {
1081
- input: {};
1082
- output: {
1083
- message: string;
1084
- };
1085
- outputFormat: "text" | "json";
1086
- status: 404;
1087
- } | {
1088
- input: {};
1089
- output: {
1090
- id: number;
1091
- email: string;
1092
- createdAt: string | null;
1093
- }[];
1094
- outputFormat: "text" | "json";
1095
- status: 200;
1096
- };
1097
- };
1098
- } & {
1099
- "/marketing/email": {
1100
- $post: {
1101
- input: {
1102
- json: {
1103
- email: string;
1104
- };
1105
- };
1106
- output: {
1107
- error: {
1108
- issues: {
1109
- code: string;
1110
- path: (string | number)[];
1111
- message?: string | undefined;
1112
- }[];
1113
- name: string;
1114
- };
1115
- success: boolean;
1116
- };
1117
- outputFormat: "text" | "json";
1118
- status: 422;
1119
- } | {
1120
- input: {
1121
- json: {
1122
- email: string;
1123
- };
1124
- };
1125
- output: {
1126
- id: number;
1127
- email: string;
1128
- createdAt: string | null;
1129
- };
1130
- outputFormat: "text" | "json";
1131
- status: 200;
1132
- };
1133
- };
1134
- }, "/">, import("@hono/zod-openapi").OpenAPIHono<import("./shared/index.js").AppBindings, {
1135
- "/tags": {
1136
- $get: {
1137
- input: {
1138
- query: {
1139
- type?: string | string[] | undefined;
1140
- };
1141
- };
1142
- output: {
1143
- tags: {
1144
- id: string;
1145
- type: string;
1146
- name: string;
1147
- createdAt: string;
1148
- updatedAt: string;
1149
- description?: string | undefined;
1150
- }[];
1151
- };
1152
- outputFormat: "text" | "json";
1153
- status: 200;
1154
- };
1155
- };
1156
- }, "/">];
1157
- export { routes };
1158
2
  export default app;