@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
@@ -9,24 +9,33 @@ export declare const list: {
9
9
  source: z.ZodOptional<z.ZodEnum<["external", "community"]>>;
10
10
  city: z.ZodOptional<z.ZodString>;
11
11
  state: z.ZodOptional<z.ZodString>;
12
+ latitude: z.ZodOptional<z.ZodNumber>;
13
+ longitude: z.ZodOptional<z.ZodNumber>;
14
+ radius: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12
15
  from: z.ZodOptional<z.ZodDate>;
13
16
  to: z.ZodOptional<z.ZodDate>;
14
17
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15
18
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16
19
  }, "strip", z.ZodTypeAny, {
20
+ radius: number;
17
21
  limit: number;
18
22
  offset: number;
19
- sportId?: string | undefined;
20
23
  city?: string | undefined;
21
24
  state?: string | undefined;
25
+ sportId?: string | undefined;
26
+ latitude?: number | undefined;
27
+ longitude?: number | undefined;
22
28
  source?: "external" | "community" | undefined;
23
29
  from?: Date | undefined;
24
30
  to?: Date | undefined;
25
31
  }, {
26
- sportId?: string | undefined;
27
32
  city?: string | undefined;
28
33
  state?: string | undefined;
34
+ sportId?: string | undefined;
35
+ latitude?: number | undefined;
36
+ longitude?: number | undefined;
29
37
  source?: "external" | "community" | undefined;
38
+ radius?: number | undefined;
30
39
  from?: Date | undefined;
31
40
  to?: Date | undefined;
32
41
  limit?: number | undefined;
@@ -97,6 +106,7 @@ export declare const list: {
97
106
  } | (string | number | boolean | {
98
107
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
99
108
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
109
+ groupId: z.ZodNullable<z.ZodString>;
100
110
  createdByUserId: z.ZodNullable<z.ZodString>;
101
111
  createdAt: z.ZodDate;
102
112
  }, {
@@ -124,17 +134,17 @@ export declare const list: {
124
134
  }, "strip", z.ZodTypeAny, {
125
135
  id: string;
126
136
  name: string;
127
- formattedAddress: string;
128
137
  city: string | null;
129
138
  state: string | null;
139
+ formattedAddress: string;
130
140
  latitude: number | null;
131
141
  longitude: number | null;
132
142
  }, {
133
143
  id: string;
134
144
  name: string;
135
- formattedAddress: string;
136
145
  city: string | null;
137
146
  state: string | null;
147
+ formattedAddress: string;
138
148
  latitude: number | null;
139
149
  longitude: number | null;
140
150
  }>>;
@@ -192,22 +202,22 @@ export declare const list: {
192
202
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
193
203
  id: string;
194
204
  title: string;
205
+ sportId: string;
195
206
  createdAt: Date;
196
207
  sport: {
197
208
  id: string;
198
209
  name: string;
199
210
  icon: string | null;
200
211
  } | null;
201
- sportId: string;
202
212
  startsAt: Date;
203
213
  endsAt: Date | null;
204
214
  timezone: string;
205
215
  location: {
206
216
  id: string;
207
217
  name: string;
208
- formattedAddress: string;
209
218
  city: string | null;
210
219
  state: string | null;
220
+ formattedAddress: string;
211
221
  latitude: number | null;
212
222
  longitude: number | null;
213
223
  } | null;
@@ -216,6 +226,7 @@ export declare const list: {
216
226
  source: "external" | "community";
217
227
  thumbnailUrl: string | null;
218
228
  createdByUserId: string | null;
229
+ groupId: string | null;
219
230
  creator: {
220
231
  image: string | null;
221
232
  id: string;
@@ -254,22 +265,22 @@ export declare const list: {
254
265
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
255
266
  id: string;
256
267
  title: string;
268
+ sportId: string;
257
269
  createdAt: Date;
258
270
  sport: {
259
271
  id: string;
260
272
  name: string;
261
273
  icon: string | null;
262
274
  } | null;
263
- sportId: string;
264
275
  startsAt: Date;
265
276
  endsAt: Date | null;
266
277
  timezone: string;
267
278
  location: {
268
279
  id: string;
269
280
  name: string;
270
- formattedAddress: string;
271
281
  city: string | null;
272
282
  state: string | null;
283
+ formattedAddress: string;
273
284
  latitude: number | null;
274
285
  longitude: number | null;
275
286
  } | null;
@@ -278,6 +289,7 @@ export declare const list: {
278
289
  source: "external" | "community";
279
290
  thumbnailUrl: string | null;
280
291
  createdByUserId: string | null;
292
+ groupId: string | null;
281
293
  creator: {
282
294
  image: string | null;
283
295
  id: string;
@@ -374,6 +386,7 @@ export declare const getOne: {
374
386
  } | (string | number | boolean | {
375
387
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
376
388
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
389
+ groupId: z.ZodNullable<z.ZodString>;
377
390
  createdByUserId: z.ZodNullable<z.ZodString>;
378
391
  createdAt: z.ZodDate;
379
392
  }, {
@@ -401,17 +414,17 @@ export declare const getOne: {
401
414
  }, "strip", z.ZodTypeAny, {
402
415
  id: string;
403
416
  name: string;
404
- formattedAddress: string;
405
417
  city: string | null;
406
418
  state: string | null;
419
+ formattedAddress: string;
407
420
  latitude: number | null;
408
421
  longitude: number | null;
409
422
  }, {
410
423
  id: string;
411
424
  name: string;
412
- formattedAddress: string;
413
425
  city: string | null;
414
426
  state: string | null;
427
+ formattedAddress: string;
415
428
  latitude: number | null;
416
429
  longitude: number | null;
417
430
  }>>;
@@ -469,22 +482,22 @@ export declare const getOne: {
469
482
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
470
483
  id: string;
471
484
  title: string;
485
+ sportId: string;
472
486
  createdAt: Date;
473
487
  sport: {
474
488
  id: string;
475
489
  name: string;
476
490
  icon: string | null;
477
491
  } | null;
478
- sportId: string;
479
492
  startsAt: Date;
480
493
  endsAt: Date | null;
481
494
  timezone: string;
482
495
  location: {
483
496
  id: string;
484
497
  name: string;
485
- formattedAddress: string;
486
498
  city: string | null;
487
499
  state: string | null;
500
+ formattedAddress: string;
488
501
  latitude: number | null;
489
502
  longitude: number | null;
490
503
  } | null;
@@ -493,6 +506,7 @@ export declare const getOne: {
493
506
  source: "external" | "community";
494
507
  thumbnailUrl: string | null;
495
508
  createdByUserId: string | null;
509
+ groupId: string | null;
496
510
  creator: {
497
511
  image: string | null;
498
512
  id: string;
@@ -531,22 +545,22 @@ export declare const getOne: {
531
545
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
532
546
  id: string;
533
547
  title: string;
548
+ sportId: string;
534
549
  createdAt: Date;
535
550
  sport: {
536
551
  id: string;
537
552
  name: string;
538
553
  icon: string | null;
539
554
  } | null;
540
- sportId: string;
541
555
  startsAt: Date;
542
556
  endsAt: Date | null;
543
557
  timezone: string;
544
558
  location: {
545
559
  id: string;
546
560
  name: string;
547
- formattedAddress: string;
548
561
  city: string | null;
549
562
  state: string | null;
563
+ formattedAddress: string;
550
564
  latitude: number | null;
551
565
  longitude: number | null;
552
566
  } | null;
@@ -555,6 +569,7 @@ export declare const getOne: {
555
569
  source: "external" | "community";
556
570
  thumbnailUrl: string | null;
557
571
  createdByUserId: string | null;
572
+ groupId: string | null;
558
573
  creator: {
559
574
  image: string | null;
560
575
  id: string;
@@ -596,16 +611,16 @@ export declare const discoverRequestSchema: z.ZodObject<{
596
611
  to: z.ZodOptional<z.ZodString>;
597
612
  refresh: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
598
613
  }, "strip", z.ZodTypeAny, {
599
- sportId: string;
600
614
  city: string;
601
615
  state: string;
616
+ sportId: string;
602
617
  refresh: boolean;
603
618
  from?: string | undefined;
604
619
  to?: string | undefined;
605
620
  }, {
606
- sportId: string;
607
621
  city: string;
608
622
  state: string;
623
+ sportId: string;
609
624
  from?: string | undefined;
610
625
  to?: string | undefined;
611
626
  refresh?: boolean | undefined;
@@ -628,16 +643,16 @@ export declare const discover: {
628
643
  to: z.ZodOptional<z.ZodString>;
629
644
  refresh: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
630
645
  }, "strip", z.ZodTypeAny, {
631
- sportId: string;
632
646
  city: string;
633
647
  state: string;
648
+ sportId: string;
634
649
  refresh: boolean;
635
650
  from?: string | undefined;
636
651
  to?: string | undefined;
637
652
  }, {
638
- sportId: string;
639
653
  city: string;
640
654
  state: string;
655
+ sportId: string;
641
656
  from?: string | undefined;
642
657
  to?: string | undefined;
643
658
  refresh?: boolean | undefined;
@@ -711,6 +726,7 @@ export declare const discover: {
711
726
  } | (string | number | boolean | {
712
727
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
713
728
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
729
+ groupId: z.ZodNullable<z.ZodString>;
714
730
  createdByUserId: z.ZodNullable<z.ZodString>;
715
731
  createdAt: z.ZodDate;
716
732
  }, {
@@ -738,17 +754,17 @@ export declare const discover: {
738
754
  }, "strip", z.ZodTypeAny, {
739
755
  id: string;
740
756
  name: string;
741
- formattedAddress: string;
742
757
  city: string | null;
743
758
  state: string | null;
759
+ formattedAddress: string;
744
760
  latitude: number | null;
745
761
  longitude: number | null;
746
762
  }, {
747
763
  id: string;
748
764
  name: string;
749
- formattedAddress: string;
750
765
  city: string | null;
751
766
  state: string | null;
767
+ formattedAddress: string;
752
768
  latitude: number | null;
753
769
  longitude: number | null;
754
770
  }>>;
@@ -806,22 +822,22 @@ export declare const discover: {
806
822
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
807
823
  id: string;
808
824
  title: string;
825
+ sportId: string;
809
826
  createdAt: Date;
810
827
  sport: {
811
828
  id: string;
812
829
  name: string;
813
830
  icon: string | null;
814
831
  } | null;
815
- sportId: string;
816
832
  startsAt: Date;
817
833
  endsAt: Date | null;
818
834
  timezone: string;
819
835
  location: {
820
836
  id: string;
821
837
  name: string;
822
- formattedAddress: string;
823
838
  city: string | null;
824
839
  state: string | null;
840
+ formattedAddress: string;
825
841
  latitude: number | null;
826
842
  longitude: number | null;
827
843
  } | null;
@@ -830,6 +846,7 @@ export declare const discover: {
830
846
  source: "external" | "community";
831
847
  thumbnailUrl: string | null;
832
848
  createdByUserId: string | null;
849
+ groupId: string | null;
833
850
  creator: {
834
851
  image: string | null;
835
852
  id: string;
@@ -868,22 +885,22 @@ export declare const discover: {
868
885
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
869
886
  id: string;
870
887
  title: string;
888
+ sportId: string;
871
889
  createdAt: Date;
872
890
  sport: {
873
891
  id: string;
874
892
  name: string;
875
893
  icon: string | null;
876
894
  } | null;
877
- sportId: string;
878
895
  startsAt: Date;
879
896
  endsAt: Date | null;
880
897
  timezone: string;
881
898
  location: {
882
899
  id: string;
883
900
  name: string;
884
- formattedAddress: string;
885
901
  city: string | null;
886
902
  state: string | null;
903
+ formattedAddress: string;
887
904
  latitude: number | null;
888
905
  longitude: number | null;
889
906
  } | null;
@@ -892,6 +909,7 @@ export declare const discover: {
892
909
  source: "external" | "community";
893
910
  thumbnailUrl: string | null;
894
911
  createdByUserId: string | null;
912
+ groupId: string | null;
895
913
  creator: {
896
914
  image: string | null;
897
915
  id: string;
@@ -943,16 +961,16 @@ export declare const discoverExternal: {
943
961
  to: z.ZodOptional<z.ZodString>;
944
962
  refresh: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
945
963
  }, "strip", z.ZodTypeAny, {
946
- sportId: string;
947
964
  city: string;
948
965
  state: string;
966
+ sportId: string;
949
967
  refresh: boolean;
950
968
  from?: string | undefined;
951
969
  to?: string | undefined;
952
970
  }, {
953
- sportId: string;
954
971
  city: string;
955
972
  state: string;
973
+ sportId: string;
956
974
  from?: string | undefined;
957
975
  to?: string | undefined;
958
976
  refresh?: boolean | undefined;
@@ -1082,6 +1100,8 @@ export declare const saveExternal: {
1082
1100
  city: z.ZodString;
1083
1101
  state: z.ZodString;
1084
1102
  }, "strip", z.ZodTypeAny, {
1103
+ city: string;
1104
+ state: string;
1085
1105
  events: {
1086
1106
  url: string;
1087
1107
  id: string;
@@ -1096,9 +1116,9 @@ export declare const saveExternal: {
1096
1116
  description?: string | undefined;
1097
1117
  endsAt?: string | undefined;
1098
1118
  }[];
1119
+ }, {
1099
1120
  city: string;
1100
1121
  state: string;
1101
- }, {
1102
1122
  events: {
1103
1123
  url: string;
1104
1124
  id: string;
@@ -1113,8 +1133,6 @@ export declare const saveExternal: {
1113
1133
  description?: string | undefined;
1114
1134
  endsAt?: string | undefined;
1115
1135
  }[];
1116
- city: string;
1117
- state: string;
1118
1136
  }>;
1119
1137
  };
1120
1138
  };
@@ -1185,6 +1203,7 @@ export declare const saveExternal: {
1185
1203
  } | (string | number | boolean | {
1186
1204
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
1187
1205
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null>>;
1206
+ groupId: z.ZodNullable<z.ZodString>;
1188
1207
  createdByUserId: z.ZodNullable<z.ZodString>;
1189
1208
  createdAt: z.ZodDate;
1190
1209
  }, {
@@ -1212,17 +1231,17 @@ export declare const saveExternal: {
1212
1231
  }, "strip", z.ZodTypeAny, {
1213
1232
  id: string;
1214
1233
  name: string;
1215
- formattedAddress: string;
1216
1234
  city: string | null;
1217
1235
  state: string | null;
1236
+ formattedAddress: string;
1218
1237
  latitude: number | null;
1219
1238
  longitude: number | null;
1220
1239
  }, {
1221
1240
  id: string;
1222
1241
  name: string;
1223
- formattedAddress: string;
1224
1242
  city: string | null;
1225
1243
  state: string | null;
1244
+ formattedAddress: string;
1226
1245
  latitude: number | null;
1227
1246
  longitude: number | null;
1228
1247
  }>>;
@@ -1280,22 +1299,22 @@ export declare const saveExternal: {
1280
1299
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
1281
1300
  id: string;
1282
1301
  title: string;
1302
+ sportId: string;
1283
1303
  createdAt: Date;
1284
1304
  sport: {
1285
1305
  id: string;
1286
1306
  name: string;
1287
1307
  icon: string | null;
1288
1308
  } | null;
1289
- sportId: string;
1290
1309
  startsAt: Date;
1291
1310
  endsAt: Date | null;
1292
1311
  timezone: string;
1293
1312
  location: {
1294
1313
  id: string;
1295
1314
  name: string;
1296
- formattedAddress: string;
1297
1315
  city: string | null;
1298
1316
  state: string | null;
1317
+ formattedAddress: string;
1299
1318
  latitude: number | null;
1300
1319
  longitude: number | null;
1301
1320
  } | null;
@@ -1304,6 +1323,7 @@ export declare const saveExternal: {
1304
1323
  source: "external" | "community";
1305
1324
  thumbnailUrl: string | null;
1306
1325
  createdByUserId: string | null;
1326
+ groupId: string | null;
1307
1327
  creator: {
1308
1328
  image: string | null;
1309
1329
  id: string;
@@ -1342,22 +1362,22 @@ export declare const saveExternal: {
1342
1362
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
1343
1363
  id: string;
1344
1364
  title: string;
1365
+ sportId: string;
1345
1366
  createdAt: Date;
1346
1367
  sport: {
1347
1368
  id: string;
1348
1369
  name: string;
1349
1370
  icon: string | null;
1350
1371
  } | null;
1351
- sportId: string;
1352
1372
  startsAt: Date;
1353
1373
  endsAt: Date | null;
1354
1374
  timezone: string;
1355
1375
  location: {
1356
1376
  id: string;
1357
1377
  name: string;
1358
- formattedAddress: string;
1359
1378
  city: string | null;
1360
1379
  state: string | null;
1380
+ formattedAddress: string;
1361
1381
  latitude: number | null;
1362
1382
  longitude: number | null;
1363
1383
  } | null;
@@ -1366,6 +1386,7 @@ export declare const saveExternal: {
1366
1386
  source: "external" | "community";
1367
1387
  thumbnailUrl: string | null;
1368
1388
  createdByUserId: string | null;
1389
+ groupId: string | null;
1369
1390
  creator: {
1370
1391
  image: string | null;
1371
1392
  id: string;
@@ -1418,9 +1439,9 @@ export declare const chatRequestSchema: z.ZodObject<{
1418
1439
  enableWebSearch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1419
1440
  }, "strip", z.ZodTypeAny, {
1420
1441
  message: string;
1421
- sportId: string;
1422
1442
  city: string;
1423
1443
  state: string;
1444
+ sportId: string;
1424
1445
  sportName: string;
1425
1446
  enableWebSearch: boolean;
1426
1447
  history?: {
@@ -1429,9 +1450,9 @@ export declare const chatRequestSchema: z.ZodObject<{
1429
1450
  }[] | undefined;
1430
1451
  }, {
1431
1452
  message: string;
1432
- sportId: string;
1433
1453
  city: string;
1434
1454
  state: string;
1455
+ sportId: string;
1435
1456
  sportName: string;
1436
1457
  history?: {
1437
1458
  content: string;
@@ -1543,9 +1564,9 @@ export declare const chat: {
1543
1564
  enableWebSearch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1544
1565
  }, "strip", z.ZodTypeAny, {
1545
1566
  message: string;
1546
- sportId: string;
1547
1567
  city: string;
1548
1568
  state: string;
1569
+ sportId: string;
1549
1570
  sportName: string;
1550
1571
  enableWebSearch: boolean;
1551
1572
  history?: {
@@ -1554,9 +1575,9 @@ export declare const chat: {
1554
1575
  }[] | undefined;
1555
1576
  }, {
1556
1577
  message: string;
1557
- sportId: string;
1558
1578
  city: string;
1559
1579
  state: string;
1580
+ sportId: string;
1560
1581
  sportName: string;
1561
1582
  history?: {
1562
1583
  content: string;
@@ -59,6 +59,7 @@ 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;
64
65
  }, {
@@ -86,17 +87,17 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
86
87
  }, "strip", z.ZodTypeAny, {
87
88
  id: string;
88
89
  name: string;
89
- formattedAddress: string;
90
90
  city: string | null;
91
91
  state: string | null;
92
+ formattedAddress: string;
92
93
  latitude: number | null;
93
94
  longitude: number | null;
94
95
  }, {
95
96
  id: string;
96
97
  name: string;
97
- formattedAddress: string;
98
98
  city: string | null;
99
99
  state: string | null;
100
+ formattedAddress: string;
100
101
  latitude: number | null;
101
102
  longitude: number | null;
102
103
  }>>;
@@ -154,22 +155,22 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
154
155
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
155
156
  id: string;
156
157
  title: string;
158
+ sportId: string;
157
159
  createdAt: Date;
158
160
  sport: {
159
161
  id: string;
160
162
  name: string;
161
163
  icon: string | null;
162
164
  } | null;
163
- sportId: string;
164
165
  startsAt: Date;
165
166
  endsAt: Date | null;
166
167
  timezone: string;
167
168
  location: {
168
169
  id: string;
169
170
  name: string;
170
- formattedAddress: string;
171
171
  city: string | null;
172
172
  state: string | null;
173
+ formattedAddress: string;
173
174
  latitude: number | null;
174
175
  longitude: number | null;
175
176
  } | null;
@@ -178,6 +179,7 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
178
179
  source: "external" | "community";
179
180
  thumbnailUrl: string | null;
180
181
  createdByUserId: string | null;
182
+ groupId: string | null;
181
183
  creator: {
182
184
  image: string | null;
183
185
  id: string;
@@ -216,22 +218,22 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
216
218
  } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
217
219
  id: string;
218
220
  title: string;
221
+ sportId: string;
219
222
  createdAt: Date;
220
223
  sport: {
221
224
  id: string;
222
225
  name: string;
223
226
  icon: string | null;
224
227
  } | null;
225
- sportId: string;
226
228
  startsAt: Date;
227
229
  endsAt: Date | null;
228
230
  timezone: string;
229
231
  location: {
230
232
  id: string;
231
233
  name: string;
232
- formattedAddress: string;
233
234
  city: string | null;
234
235
  state: string | null;
236
+ formattedAddress: string;
235
237
  latitude: number | null;
236
238
  longitude: number | null;
237
239
  } | null;
@@ -240,6 +242,7 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
240
242
  source: "external" | "community";
241
243
  thumbnailUrl: string | null;
242
244
  createdByUserId: string | null;
245
+ groupId: string | null;
243
246
  creator: {
244
247
  image: string | null;
245
248
  id: string;
@@ -256,24 +259,33 @@ export declare const listEventsQuerySchema: z.ZodObject<{
256
259
  source: z.ZodOptional<z.ZodEnum<["external", "community"]>>;
257
260
  city: z.ZodOptional<z.ZodString>;
258
261
  state: z.ZodOptional<z.ZodString>;
262
+ latitude: z.ZodOptional<z.ZodNumber>;
263
+ longitude: z.ZodOptional<z.ZodNumber>;
264
+ radius: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
259
265
  from: z.ZodOptional<z.ZodDate>;
260
266
  to: z.ZodOptional<z.ZodDate>;
261
267
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
262
268
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
263
269
  }, "strip", z.ZodTypeAny, {
270
+ radius: number;
264
271
  limit: number;
265
272
  offset: number;
266
- sportId?: string | undefined;
267
273
  city?: string | undefined;
268
274
  state?: string | undefined;
275
+ sportId?: string | undefined;
276
+ latitude?: number | undefined;
277
+ longitude?: number | undefined;
269
278
  source?: "external" | "community" | undefined;
270
279
  from?: Date | undefined;
271
280
  to?: Date | undefined;
272
281
  }, {
273
- sportId?: string | undefined;
274
282
  city?: string | undefined;
275
283
  state?: string | undefined;
284
+ sportId?: string | undefined;
285
+ latitude?: number | undefined;
286
+ longitude?: number | undefined;
276
287
  source?: "external" | "community" | undefined;
288
+ radius?: number | undefined;
277
289
  from?: Date | undefined;
278
290
  to?: Date | undefined;
279
291
  limit?: number | undefined;
@@ -31,6 +31,9 @@ export const listEventsQuerySchema = z.object({
31
31
  source: z.enum(["external", "community"]).optional(),
32
32
  city: z.string().optional(),
33
33
  state: z.string().optional(),
34
+ latitude: z.coerce.number().min(-90).max(90).optional(),
35
+ longitude: z.coerce.number().min(-180).max(180).optional(),
36
+ radius: z.coerce.number().min(1).max(100).optional().default(30),
34
37
  from: z.coerce.date().optional(),
35
38
  to: z.coerce.date().optional(),
36
39
  limit: z.coerce.number().min(1).max(100).optional().default(20),
@@ -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>;