@lcas58/esmi-api-types 1.0.27 → 1.0.29
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.d.ts +1 -1
- package/dist/src/routes/events/events.handlers.js +5 -5
- package/dist/src/routes/events/events.index.d.ts +27 -19
- package/dist/src/routes/events/events.routes.d.ts +63 -39
- package/dist/src/routes/events/schemas/event.schemas.d.ts +14 -8
- package/dist/src/routes/groups/groups.handlers.d.ts +7 -0
- package/dist/src/routes/groups/groups.handlers.js +204 -0
- package/dist/src/routes/groups/groups.index.d.ts +334 -0
- package/dist/src/routes/groups/groups.index.js +10 -0
- package/dist/src/routes/groups/groups.routes.d.ts +996 -0
- package/dist/src/routes/groups/groups.routes.js +77 -0
- package/dist/src/routes/groups/schemas/group.schemas.d.ts +211 -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
|
@@ -20,18 +20,18 @@ export declare const list: {
|
|
|
20
20
|
radius: number;
|
|
21
21
|
limit: number;
|
|
22
22
|
offset: number;
|
|
23
|
+
sportId?: string | undefined;
|
|
23
24
|
city?: string | undefined;
|
|
24
25
|
state?: string | undefined;
|
|
25
|
-
sportId?: string | undefined;
|
|
26
26
|
latitude?: number | undefined;
|
|
27
27
|
longitude?: number | undefined;
|
|
28
28
|
source?: "external" | "community" | undefined;
|
|
29
29
|
from?: Date | undefined;
|
|
30
30
|
to?: Date | undefined;
|
|
31
31
|
}, {
|
|
32
|
+
sportId?: string | undefined;
|
|
32
33
|
city?: string | undefined;
|
|
33
34
|
state?: string | undefined;
|
|
34
|
-
sportId?: string | undefined;
|
|
35
35
|
latitude?: number | undefined;
|
|
36
36
|
longitude?: number | undefined;
|
|
37
37
|
source?: "external" | "community" | undefined;
|
|
@@ -106,8 +106,10 @@ export declare const list: {
|
|
|
106
106
|
} | (string | number | boolean | {
|
|
107
107
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
108
108
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
|
|
109
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
109
110
|
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
110
111
|
createdAt: z.ZodDate;
|
|
112
|
+
description: z.ZodNullable<z.ZodString>;
|
|
111
113
|
}, {
|
|
112
114
|
sport: z.ZodNullable<z.ZodObject<{
|
|
113
115
|
id: z.ZodString;
|
|
@@ -133,17 +135,17 @@ export declare const list: {
|
|
|
133
135
|
}, "strip", z.ZodTypeAny, {
|
|
134
136
|
id: string;
|
|
135
137
|
name: string;
|
|
138
|
+
formattedAddress: string;
|
|
136
139
|
city: string | null;
|
|
137
140
|
state: string | null;
|
|
138
|
-
formattedAddress: string;
|
|
139
141
|
latitude: number | null;
|
|
140
142
|
longitude: number | null;
|
|
141
143
|
}, {
|
|
142
144
|
id: string;
|
|
143
145
|
name: string;
|
|
146
|
+
formattedAddress: string;
|
|
144
147
|
city: string | null;
|
|
145
148
|
state: string | null;
|
|
146
|
-
formattedAddress: string;
|
|
147
149
|
latitude: number | null;
|
|
148
150
|
longitude: number | null;
|
|
149
151
|
}>>;
|
|
@@ -200,23 +202,24 @@ export declare const list: {
|
|
|
200
202
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
201
203
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
202
204
|
id: string;
|
|
205
|
+
description: string | null;
|
|
203
206
|
title: string;
|
|
204
|
-
sportId: string;
|
|
205
207
|
createdAt: Date;
|
|
206
208
|
sport: {
|
|
207
209
|
id: string;
|
|
208
210
|
name: string;
|
|
209
211
|
icon: string | null;
|
|
210
212
|
} | null;
|
|
213
|
+
sportId: string;
|
|
211
214
|
startsAt: Date;
|
|
212
215
|
endsAt: Date | null;
|
|
213
216
|
timezone: string;
|
|
214
217
|
location: {
|
|
215
218
|
id: string;
|
|
216
219
|
name: string;
|
|
220
|
+
formattedAddress: string;
|
|
217
221
|
city: string | null;
|
|
218
222
|
state: string | null;
|
|
219
|
-
formattedAddress: string;
|
|
220
223
|
latitude: number | null;
|
|
221
224
|
longitude: number | null;
|
|
222
225
|
} | null;
|
|
@@ -225,6 +228,7 @@ export declare const list: {
|
|
|
225
228
|
source: "external" | "community";
|
|
226
229
|
thumbnailUrl: string | null;
|
|
227
230
|
createdByUserId: string | null;
|
|
231
|
+
groupId: string | null;
|
|
228
232
|
creator: {
|
|
229
233
|
image: string | null;
|
|
230
234
|
id: string;
|
|
@@ -262,23 +266,24 @@ export declare const list: {
|
|
|
262
266
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
263
267
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
264
268
|
id: string;
|
|
269
|
+
description: string | null;
|
|
265
270
|
title: string;
|
|
266
|
-
sportId: string;
|
|
267
271
|
createdAt: Date;
|
|
268
272
|
sport: {
|
|
269
273
|
id: string;
|
|
270
274
|
name: string;
|
|
271
275
|
icon: string | null;
|
|
272
276
|
} | null;
|
|
277
|
+
sportId: string;
|
|
273
278
|
startsAt: Date;
|
|
274
279
|
endsAt: Date | null;
|
|
275
280
|
timezone: string;
|
|
276
281
|
location: {
|
|
277
282
|
id: string;
|
|
278
283
|
name: string;
|
|
284
|
+
formattedAddress: string;
|
|
279
285
|
city: string | null;
|
|
280
286
|
state: string | null;
|
|
281
|
-
formattedAddress: string;
|
|
282
287
|
latitude: number | null;
|
|
283
288
|
longitude: number | null;
|
|
284
289
|
} | null;
|
|
@@ -287,6 +292,7 @@ export declare const list: {
|
|
|
287
292
|
source: "external" | "community";
|
|
288
293
|
thumbnailUrl: string | null;
|
|
289
294
|
createdByUserId: string | null;
|
|
295
|
+
groupId: string | null;
|
|
290
296
|
creator: {
|
|
291
297
|
image: string | null;
|
|
292
298
|
id: string;
|
|
@@ -383,8 +389,10 @@ export declare const getOne: {
|
|
|
383
389
|
} | (string | number | boolean | {
|
|
384
390
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
385
391
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
|
|
392
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
386
393
|
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
387
394
|
createdAt: z.ZodDate;
|
|
395
|
+
description: z.ZodNullable<z.ZodString>;
|
|
388
396
|
}, {
|
|
389
397
|
sport: z.ZodNullable<z.ZodObject<{
|
|
390
398
|
id: z.ZodString;
|
|
@@ -410,17 +418,17 @@ export declare const getOne: {
|
|
|
410
418
|
}, "strip", z.ZodTypeAny, {
|
|
411
419
|
id: string;
|
|
412
420
|
name: string;
|
|
421
|
+
formattedAddress: string;
|
|
413
422
|
city: string | null;
|
|
414
423
|
state: string | null;
|
|
415
|
-
formattedAddress: string;
|
|
416
424
|
latitude: number | null;
|
|
417
425
|
longitude: number | null;
|
|
418
426
|
}, {
|
|
419
427
|
id: string;
|
|
420
428
|
name: string;
|
|
429
|
+
formattedAddress: string;
|
|
421
430
|
city: string | null;
|
|
422
431
|
state: string | null;
|
|
423
|
-
formattedAddress: string;
|
|
424
432
|
latitude: number | null;
|
|
425
433
|
longitude: number | null;
|
|
426
434
|
}>>;
|
|
@@ -477,23 +485,24 @@ export declare const getOne: {
|
|
|
477
485
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
478
486
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
479
487
|
id: string;
|
|
488
|
+
description: string | null;
|
|
480
489
|
title: string;
|
|
481
|
-
sportId: string;
|
|
482
490
|
createdAt: Date;
|
|
483
491
|
sport: {
|
|
484
492
|
id: string;
|
|
485
493
|
name: string;
|
|
486
494
|
icon: string | null;
|
|
487
495
|
} | null;
|
|
496
|
+
sportId: string;
|
|
488
497
|
startsAt: Date;
|
|
489
498
|
endsAt: Date | null;
|
|
490
499
|
timezone: string;
|
|
491
500
|
location: {
|
|
492
501
|
id: string;
|
|
493
502
|
name: string;
|
|
503
|
+
formattedAddress: string;
|
|
494
504
|
city: string | null;
|
|
495
505
|
state: string | null;
|
|
496
|
-
formattedAddress: string;
|
|
497
506
|
latitude: number | null;
|
|
498
507
|
longitude: number | null;
|
|
499
508
|
} | null;
|
|
@@ -502,6 +511,7 @@ export declare const getOne: {
|
|
|
502
511
|
source: "external" | "community";
|
|
503
512
|
thumbnailUrl: string | null;
|
|
504
513
|
createdByUserId: string | null;
|
|
514
|
+
groupId: string | null;
|
|
505
515
|
creator: {
|
|
506
516
|
image: string | null;
|
|
507
517
|
id: string;
|
|
@@ -539,23 +549,24 @@ export declare const getOne: {
|
|
|
539
549
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
540
550
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
541
551
|
id: string;
|
|
552
|
+
description: string | null;
|
|
542
553
|
title: string;
|
|
543
|
-
sportId: string;
|
|
544
554
|
createdAt: Date;
|
|
545
555
|
sport: {
|
|
546
556
|
id: string;
|
|
547
557
|
name: string;
|
|
548
558
|
icon: string | null;
|
|
549
559
|
} | null;
|
|
560
|
+
sportId: string;
|
|
550
561
|
startsAt: Date;
|
|
551
562
|
endsAt: Date | null;
|
|
552
563
|
timezone: string;
|
|
553
564
|
location: {
|
|
554
565
|
id: string;
|
|
555
566
|
name: string;
|
|
567
|
+
formattedAddress: string;
|
|
556
568
|
city: string | null;
|
|
557
569
|
state: string | null;
|
|
558
|
-
formattedAddress: string;
|
|
559
570
|
latitude: number | null;
|
|
560
571
|
longitude: number | null;
|
|
561
572
|
} | null;
|
|
@@ -564,6 +575,7 @@ export declare const getOne: {
|
|
|
564
575
|
source: "external" | "community";
|
|
565
576
|
thumbnailUrl: string | null;
|
|
566
577
|
createdByUserId: string | null;
|
|
578
|
+
groupId: string | null;
|
|
567
579
|
creator: {
|
|
568
580
|
image: string | null;
|
|
569
581
|
id: string;
|
|
@@ -605,16 +617,16 @@ export declare const discoverRequestSchema: z.ZodObject<{
|
|
|
605
617
|
to: z.ZodOptional<z.ZodString>;
|
|
606
618
|
refresh: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
607
619
|
}, "strip", z.ZodTypeAny, {
|
|
620
|
+
sportId: string;
|
|
608
621
|
city: string;
|
|
609
622
|
state: string;
|
|
610
|
-
sportId: string;
|
|
611
623
|
refresh: boolean;
|
|
612
624
|
from?: string | undefined;
|
|
613
625
|
to?: string | undefined;
|
|
614
626
|
}, {
|
|
627
|
+
sportId: string;
|
|
615
628
|
city: string;
|
|
616
629
|
state: string;
|
|
617
|
-
sportId: string;
|
|
618
630
|
from?: string | undefined;
|
|
619
631
|
to?: string | undefined;
|
|
620
632
|
refresh?: boolean | undefined;
|
|
@@ -637,16 +649,16 @@ export declare const discover: {
|
|
|
637
649
|
to: z.ZodOptional<z.ZodString>;
|
|
638
650
|
refresh: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
639
651
|
}, "strip", z.ZodTypeAny, {
|
|
652
|
+
sportId: string;
|
|
640
653
|
city: string;
|
|
641
654
|
state: string;
|
|
642
|
-
sportId: string;
|
|
643
655
|
refresh: boolean;
|
|
644
656
|
from?: string | undefined;
|
|
645
657
|
to?: string | undefined;
|
|
646
658
|
}, {
|
|
659
|
+
sportId: string;
|
|
647
660
|
city: string;
|
|
648
661
|
state: string;
|
|
649
|
-
sportId: string;
|
|
650
662
|
from?: string | undefined;
|
|
651
663
|
to?: string | undefined;
|
|
652
664
|
refresh?: boolean | undefined;
|
|
@@ -720,8 +732,10 @@ export declare const discover: {
|
|
|
720
732
|
} | (string | number | boolean | {
|
|
721
733
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
722
734
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
|
|
735
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
723
736
|
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
724
737
|
createdAt: z.ZodDate;
|
|
738
|
+
description: z.ZodNullable<z.ZodString>;
|
|
725
739
|
}, {
|
|
726
740
|
sport: z.ZodNullable<z.ZodObject<{
|
|
727
741
|
id: z.ZodString;
|
|
@@ -747,17 +761,17 @@ export declare const discover: {
|
|
|
747
761
|
}, "strip", z.ZodTypeAny, {
|
|
748
762
|
id: string;
|
|
749
763
|
name: string;
|
|
764
|
+
formattedAddress: string;
|
|
750
765
|
city: string | null;
|
|
751
766
|
state: string | null;
|
|
752
|
-
formattedAddress: string;
|
|
753
767
|
latitude: number | null;
|
|
754
768
|
longitude: number | null;
|
|
755
769
|
}, {
|
|
756
770
|
id: string;
|
|
757
771
|
name: string;
|
|
772
|
+
formattedAddress: string;
|
|
758
773
|
city: string | null;
|
|
759
774
|
state: string | null;
|
|
760
|
-
formattedAddress: string;
|
|
761
775
|
latitude: number | null;
|
|
762
776
|
longitude: number | null;
|
|
763
777
|
}>>;
|
|
@@ -814,23 +828,24 @@ export declare const discover: {
|
|
|
814
828
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
815
829
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
816
830
|
id: string;
|
|
831
|
+
description: string | null;
|
|
817
832
|
title: string;
|
|
818
|
-
sportId: string;
|
|
819
833
|
createdAt: Date;
|
|
820
834
|
sport: {
|
|
821
835
|
id: string;
|
|
822
836
|
name: string;
|
|
823
837
|
icon: string | null;
|
|
824
838
|
} | null;
|
|
839
|
+
sportId: string;
|
|
825
840
|
startsAt: Date;
|
|
826
841
|
endsAt: Date | null;
|
|
827
842
|
timezone: string;
|
|
828
843
|
location: {
|
|
829
844
|
id: string;
|
|
830
845
|
name: string;
|
|
846
|
+
formattedAddress: string;
|
|
831
847
|
city: string | null;
|
|
832
848
|
state: string | null;
|
|
833
|
-
formattedAddress: string;
|
|
834
849
|
latitude: number | null;
|
|
835
850
|
longitude: number | null;
|
|
836
851
|
} | null;
|
|
@@ -839,6 +854,7 @@ export declare const discover: {
|
|
|
839
854
|
source: "external" | "community";
|
|
840
855
|
thumbnailUrl: string | null;
|
|
841
856
|
createdByUserId: string | null;
|
|
857
|
+
groupId: string | null;
|
|
842
858
|
creator: {
|
|
843
859
|
image: string | null;
|
|
844
860
|
id: string;
|
|
@@ -876,23 +892,24 @@ export declare const discover: {
|
|
|
876
892
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
877
893
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
878
894
|
id: string;
|
|
895
|
+
description: string | null;
|
|
879
896
|
title: string;
|
|
880
|
-
sportId: string;
|
|
881
897
|
createdAt: Date;
|
|
882
898
|
sport: {
|
|
883
899
|
id: string;
|
|
884
900
|
name: string;
|
|
885
901
|
icon: string | null;
|
|
886
902
|
} | null;
|
|
903
|
+
sportId: string;
|
|
887
904
|
startsAt: Date;
|
|
888
905
|
endsAt: Date | null;
|
|
889
906
|
timezone: string;
|
|
890
907
|
location: {
|
|
891
908
|
id: string;
|
|
892
909
|
name: string;
|
|
910
|
+
formattedAddress: string;
|
|
893
911
|
city: string | null;
|
|
894
912
|
state: string | null;
|
|
895
|
-
formattedAddress: string;
|
|
896
913
|
latitude: number | null;
|
|
897
914
|
longitude: number | null;
|
|
898
915
|
} | null;
|
|
@@ -901,6 +918,7 @@ export declare const discover: {
|
|
|
901
918
|
source: "external" | "community";
|
|
902
919
|
thumbnailUrl: string | null;
|
|
903
920
|
createdByUserId: string | null;
|
|
921
|
+
groupId: string | null;
|
|
904
922
|
creator: {
|
|
905
923
|
image: string | null;
|
|
906
924
|
id: string;
|
|
@@ -952,16 +970,16 @@ export declare const discoverExternal: {
|
|
|
952
970
|
to: z.ZodOptional<z.ZodString>;
|
|
953
971
|
refresh: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
954
972
|
}, "strip", z.ZodTypeAny, {
|
|
973
|
+
sportId: string;
|
|
955
974
|
city: string;
|
|
956
975
|
state: string;
|
|
957
|
-
sportId: string;
|
|
958
976
|
refresh: boolean;
|
|
959
977
|
from?: string | undefined;
|
|
960
978
|
to?: string | undefined;
|
|
961
979
|
}, {
|
|
980
|
+
sportId: string;
|
|
962
981
|
city: string;
|
|
963
982
|
state: string;
|
|
964
|
-
sportId: string;
|
|
965
983
|
from?: string | undefined;
|
|
966
984
|
to?: string | undefined;
|
|
967
985
|
refresh?: boolean | undefined;
|
|
@@ -1091,8 +1109,6 @@ export declare const saveExternal: {
|
|
|
1091
1109
|
city: z.ZodString;
|
|
1092
1110
|
state: z.ZodString;
|
|
1093
1111
|
}, "strip", z.ZodTypeAny, {
|
|
1094
|
-
city: string;
|
|
1095
|
-
state: string;
|
|
1096
1112
|
events: {
|
|
1097
1113
|
url: string;
|
|
1098
1114
|
id: string;
|
|
@@ -1107,9 +1123,9 @@ export declare const saveExternal: {
|
|
|
1107
1123
|
description?: string | undefined;
|
|
1108
1124
|
endsAt?: string | undefined;
|
|
1109
1125
|
}[];
|
|
1110
|
-
}, {
|
|
1111
1126
|
city: string;
|
|
1112
1127
|
state: string;
|
|
1128
|
+
}, {
|
|
1113
1129
|
events: {
|
|
1114
1130
|
url: string;
|
|
1115
1131
|
id: string;
|
|
@@ -1124,6 +1140,8 @@ export declare const saveExternal: {
|
|
|
1124
1140
|
description?: string | undefined;
|
|
1125
1141
|
endsAt?: string | undefined;
|
|
1126
1142
|
}[];
|
|
1143
|
+
city: string;
|
|
1144
|
+
state: string;
|
|
1127
1145
|
}>;
|
|
1128
1146
|
};
|
|
1129
1147
|
};
|
|
@@ -1194,8 +1212,10 @@ export declare const saveExternal: {
|
|
|
1194
1212
|
} | (string | number | boolean | {
|
|
1195
1213
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
1196
1214
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
|
|
1215
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
1197
1216
|
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
1198
1217
|
createdAt: z.ZodDate;
|
|
1218
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1199
1219
|
}, {
|
|
1200
1220
|
sport: z.ZodNullable<z.ZodObject<{
|
|
1201
1221
|
id: z.ZodString;
|
|
@@ -1221,17 +1241,17 @@ export declare const saveExternal: {
|
|
|
1221
1241
|
}, "strip", z.ZodTypeAny, {
|
|
1222
1242
|
id: string;
|
|
1223
1243
|
name: string;
|
|
1244
|
+
formattedAddress: string;
|
|
1224
1245
|
city: string | null;
|
|
1225
1246
|
state: string | null;
|
|
1226
|
-
formattedAddress: string;
|
|
1227
1247
|
latitude: number | null;
|
|
1228
1248
|
longitude: number | null;
|
|
1229
1249
|
}, {
|
|
1230
1250
|
id: string;
|
|
1231
1251
|
name: string;
|
|
1252
|
+
formattedAddress: string;
|
|
1232
1253
|
city: string | null;
|
|
1233
1254
|
state: string | null;
|
|
1234
|
-
formattedAddress: string;
|
|
1235
1255
|
latitude: number | null;
|
|
1236
1256
|
longitude: number | null;
|
|
1237
1257
|
}>>;
|
|
@@ -1288,23 +1308,24 @@ export declare const saveExternal: {
|
|
|
1288
1308
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
1289
1309
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
1290
1310
|
id: string;
|
|
1311
|
+
description: string | null;
|
|
1291
1312
|
title: string;
|
|
1292
|
-
sportId: string;
|
|
1293
1313
|
createdAt: Date;
|
|
1294
1314
|
sport: {
|
|
1295
1315
|
id: string;
|
|
1296
1316
|
name: string;
|
|
1297
1317
|
icon: string | null;
|
|
1298
1318
|
} | null;
|
|
1319
|
+
sportId: string;
|
|
1299
1320
|
startsAt: Date;
|
|
1300
1321
|
endsAt: Date | null;
|
|
1301
1322
|
timezone: string;
|
|
1302
1323
|
location: {
|
|
1303
1324
|
id: string;
|
|
1304
1325
|
name: string;
|
|
1326
|
+
formattedAddress: string;
|
|
1305
1327
|
city: string | null;
|
|
1306
1328
|
state: string | null;
|
|
1307
|
-
formattedAddress: string;
|
|
1308
1329
|
latitude: number | null;
|
|
1309
1330
|
longitude: number | null;
|
|
1310
1331
|
} | null;
|
|
@@ -1313,6 +1334,7 @@ export declare const saveExternal: {
|
|
|
1313
1334
|
source: "external" | "community";
|
|
1314
1335
|
thumbnailUrl: string | null;
|
|
1315
1336
|
createdByUserId: string | null;
|
|
1337
|
+
groupId: string | null;
|
|
1316
1338
|
creator: {
|
|
1317
1339
|
image: string | null;
|
|
1318
1340
|
id: string;
|
|
@@ -1350,23 +1372,24 @@ export declare const saveExternal: {
|
|
|
1350
1372
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
1351
1373
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
1352
1374
|
id: string;
|
|
1375
|
+
description: string | null;
|
|
1353
1376
|
title: string;
|
|
1354
|
-
sportId: string;
|
|
1355
1377
|
createdAt: Date;
|
|
1356
1378
|
sport: {
|
|
1357
1379
|
id: string;
|
|
1358
1380
|
name: string;
|
|
1359
1381
|
icon: string | null;
|
|
1360
1382
|
} | null;
|
|
1383
|
+
sportId: string;
|
|
1361
1384
|
startsAt: Date;
|
|
1362
1385
|
endsAt: Date | null;
|
|
1363
1386
|
timezone: string;
|
|
1364
1387
|
location: {
|
|
1365
1388
|
id: string;
|
|
1366
1389
|
name: string;
|
|
1390
|
+
formattedAddress: string;
|
|
1367
1391
|
city: string | null;
|
|
1368
1392
|
state: string | null;
|
|
1369
|
-
formattedAddress: string;
|
|
1370
1393
|
latitude: number | null;
|
|
1371
1394
|
longitude: number | null;
|
|
1372
1395
|
} | null;
|
|
@@ -1375,6 +1398,7 @@ export declare const saveExternal: {
|
|
|
1375
1398
|
source: "external" | "community";
|
|
1376
1399
|
thumbnailUrl: string | null;
|
|
1377
1400
|
createdByUserId: string | null;
|
|
1401
|
+
groupId: string | null;
|
|
1378
1402
|
creator: {
|
|
1379
1403
|
image: string | null;
|
|
1380
1404
|
id: string;
|
|
@@ -1427,9 +1451,9 @@ export declare const chatRequestSchema: z.ZodObject<{
|
|
|
1427
1451
|
enableWebSearch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1428
1452
|
}, "strip", z.ZodTypeAny, {
|
|
1429
1453
|
message: string;
|
|
1454
|
+
sportId: string;
|
|
1430
1455
|
city: string;
|
|
1431
1456
|
state: string;
|
|
1432
|
-
sportId: string;
|
|
1433
1457
|
sportName: string;
|
|
1434
1458
|
enableWebSearch: boolean;
|
|
1435
1459
|
history?: {
|
|
@@ -1438,9 +1462,9 @@ export declare const chatRequestSchema: z.ZodObject<{
|
|
|
1438
1462
|
}[] | undefined;
|
|
1439
1463
|
}, {
|
|
1440
1464
|
message: string;
|
|
1465
|
+
sportId: string;
|
|
1441
1466
|
city: string;
|
|
1442
1467
|
state: string;
|
|
1443
|
-
sportId: string;
|
|
1444
1468
|
sportName: string;
|
|
1445
1469
|
history?: {
|
|
1446
1470
|
content: string;
|
|
@@ -1552,9 +1576,9 @@ export declare const chat: {
|
|
|
1552
1576
|
enableWebSearch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1553
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1554
1578
|
message: string;
|
|
1579
|
+
sportId: string;
|
|
1555
1580
|
city: string;
|
|
1556
1581
|
state: string;
|
|
1557
|
-
sportId: string;
|
|
1558
1582
|
sportName: string;
|
|
1559
1583
|
enableWebSearch: boolean;
|
|
1560
1584
|
history?: {
|
|
@@ -1563,9 +1587,9 @@ export declare const chat: {
|
|
|
1563
1587
|
}[] | undefined;
|
|
1564
1588
|
}, {
|
|
1565
1589
|
message: string;
|
|
1590
|
+
sportId: string;
|
|
1566
1591
|
city: string;
|
|
1567
1592
|
state: string;
|
|
1568
|
-
sportId: string;
|
|
1569
1593
|
sportName: string;
|
|
1570
1594
|
history?: {
|
|
1571
1595
|
content: string;
|
|
@@ -59,8 +59,10 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
59
59
|
} | (string | number | boolean | {
|
|
60
60
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
61
61
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
|
|
62
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
62
63
|
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
63
64
|
createdAt: z.ZodDate;
|
|
65
|
+
description: z.ZodNullable<z.ZodString>;
|
|
64
66
|
}, {
|
|
65
67
|
sport: z.ZodNullable<z.ZodObject<{
|
|
66
68
|
id: z.ZodString;
|
|
@@ -86,17 +88,17 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
86
88
|
}, "strip", z.ZodTypeAny, {
|
|
87
89
|
id: string;
|
|
88
90
|
name: string;
|
|
91
|
+
formattedAddress: string;
|
|
89
92
|
city: string | null;
|
|
90
93
|
state: string | null;
|
|
91
|
-
formattedAddress: string;
|
|
92
94
|
latitude: number | null;
|
|
93
95
|
longitude: number | null;
|
|
94
96
|
}, {
|
|
95
97
|
id: string;
|
|
96
98
|
name: string;
|
|
99
|
+
formattedAddress: string;
|
|
97
100
|
city: string | null;
|
|
98
101
|
state: string | null;
|
|
99
|
-
formattedAddress: string;
|
|
100
102
|
latitude: number | null;
|
|
101
103
|
longitude: number | null;
|
|
102
104
|
}>>;
|
|
@@ -153,23 +155,24 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
153
155
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
154
156
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
155
157
|
id: string;
|
|
158
|
+
description: string | null;
|
|
156
159
|
title: string;
|
|
157
|
-
sportId: string;
|
|
158
160
|
createdAt: Date;
|
|
159
161
|
sport: {
|
|
160
162
|
id: string;
|
|
161
163
|
name: string;
|
|
162
164
|
icon: string | null;
|
|
163
165
|
} | null;
|
|
166
|
+
sportId: string;
|
|
164
167
|
startsAt: Date;
|
|
165
168
|
endsAt: Date | null;
|
|
166
169
|
timezone: string;
|
|
167
170
|
location: {
|
|
168
171
|
id: string;
|
|
169
172
|
name: string;
|
|
173
|
+
formattedAddress: string;
|
|
170
174
|
city: string | null;
|
|
171
175
|
state: string | null;
|
|
172
|
-
formattedAddress: string;
|
|
173
176
|
latitude: number | null;
|
|
174
177
|
longitude: number | null;
|
|
175
178
|
} | null;
|
|
@@ -178,6 +181,7 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
178
181
|
source: "external" | "community";
|
|
179
182
|
thumbnailUrl: string | null;
|
|
180
183
|
createdByUserId: string | null;
|
|
184
|
+
groupId: string | null;
|
|
181
185
|
creator: {
|
|
182
186
|
image: string | null;
|
|
183
187
|
id: string;
|
|
@@ -215,23 +219,24 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
215
219
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
216
220
|
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
217
221
|
id: string;
|
|
222
|
+
description: string | null;
|
|
218
223
|
title: string;
|
|
219
|
-
sportId: string;
|
|
220
224
|
createdAt: Date;
|
|
221
225
|
sport: {
|
|
222
226
|
id: string;
|
|
223
227
|
name: string;
|
|
224
228
|
icon: string | null;
|
|
225
229
|
} | null;
|
|
230
|
+
sportId: string;
|
|
226
231
|
startsAt: Date;
|
|
227
232
|
endsAt: Date | null;
|
|
228
233
|
timezone: string;
|
|
229
234
|
location: {
|
|
230
235
|
id: string;
|
|
231
236
|
name: string;
|
|
237
|
+
formattedAddress: string;
|
|
232
238
|
city: string | null;
|
|
233
239
|
state: string | null;
|
|
234
|
-
formattedAddress: string;
|
|
235
240
|
latitude: number | null;
|
|
236
241
|
longitude: number | null;
|
|
237
242
|
} | null;
|
|
@@ -240,6 +245,7 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
240
245
|
source: "external" | "community";
|
|
241
246
|
thumbnailUrl: string | null;
|
|
242
247
|
createdByUserId: string | null;
|
|
248
|
+
groupId: string | null;
|
|
243
249
|
creator: {
|
|
244
250
|
image: string | null;
|
|
245
251
|
id: string;
|
|
@@ -267,18 +273,18 @@ export declare const listEventsQuerySchema: z.ZodObject<{
|
|
|
267
273
|
radius: number;
|
|
268
274
|
limit: number;
|
|
269
275
|
offset: number;
|
|
276
|
+
sportId?: string | undefined;
|
|
270
277
|
city?: string | undefined;
|
|
271
278
|
state?: string | undefined;
|
|
272
|
-
sportId?: string | undefined;
|
|
273
279
|
latitude?: number | undefined;
|
|
274
280
|
longitude?: number | undefined;
|
|
275
281
|
source?: "external" | "community" | undefined;
|
|
276
282
|
from?: Date | undefined;
|
|
277
283
|
to?: Date | undefined;
|
|
278
284
|
}, {
|
|
285
|
+
sportId?: string | undefined;
|
|
279
286
|
city?: string | undefined;
|
|
280
287
|
state?: string | undefined;
|
|
281
|
-
sportId?: string | undefined;
|
|
282
288
|
latitude?: number | undefined;
|
|
283
289
|
longitude?: number | undefined;
|
|
284
290
|
source?: "external" | "community" | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AppRouteHandler } from "../../lib/types.js";
|
|
2
|
+
import type { CreateRoute, GetEventsRoute, GetOneRoute, ListRoute, UpdateRoute } from "./groups.routes.js";
|
|
3
|
+
export declare const list: AppRouteHandler<ListRoute>;
|
|
4
|
+
export declare const getOne: AppRouteHandler<GetOneRoute>;
|
|
5
|
+
export declare const getEvents: AppRouteHandler<GetEventsRoute>;
|
|
6
|
+
export declare const create: AppRouteHandler<CreateRoute>;
|
|
7
|
+
export declare const update: AppRouteHandler<UpdateRoute>;
|