@lcas58/esmi-api-types 1.0.20 → 1.0.22

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.
@@ -217,12 +217,17 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
217
217
  };
218
218
  output: {
219
219
  url: string;
220
+ id: string;
220
221
  title: string;
221
222
  sport: string;
222
223
  startsAt: string;
223
224
  timezone: string;
224
225
  formattedAddress: string;
226
+ latitude: number | null;
227
+ longitude: number | null;
225
228
  venueName: string;
229
+ description?: string | undefined;
230
+ endsAt?: string | undefined;
226
231
  }[];
227
232
  outputFormat: "text" | "json";
228
233
  status: 200;
@@ -235,12 +240,17 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
235
240
  json: {
236
241
  events: {
237
242
  url: string;
243
+ id: string;
238
244
  title: string;
239
245
  sport: string;
240
246
  startsAt: string;
241
247
  timezone: string;
242
248
  formattedAddress: string;
249
+ latitude: number | null;
250
+ longitude: number | null;
243
251
  venueName: string;
252
+ description?: string | undefined;
253
+ endsAt?: string | undefined;
244
254
  }[];
245
255
  city: string;
246
256
  state: string;
@@ -292,12 +302,17 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
292
302
  json: {
293
303
  events: {
294
304
  url: string;
305
+ id: string;
295
306
  title: string;
296
307
  sport: string;
297
308
  startsAt: string;
298
309
  timezone: string;
299
310
  formattedAddress: string;
311
+ latitude: number | null;
312
+ longitude: number | null;
300
313
  venueName: string;
314
+ description?: string | undefined;
315
+ endsAt?: string | undefined;
301
316
  }[];
302
317
  city: string;
303
318
  state: string;
@@ -958,6 +958,7 @@ export declare const discoverExternal: {
958
958
  content: {
959
959
  "application/json": {
960
960
  schema: z.ZodArray<z.ZodObject<{
961
+ id: z.ZodString;
961
962
  title: z.ZodString;
962
963
  sport: z.ZodString;
963
964
  startsAt: z.ZodString;
@@ -965,22 +966,36 @@ export declare const discoverExternal: {
965
966
  url: z.ZodString;
966
967
  venueName: z.ZodString;
967
968
  formattedAddress: z.ZodString;
969
+ latitude: z.ZodNullable<z.ZodNumber>;
970
+ longitude: z.ZodNullable<z.ZodNumber>;
971
+ description: z.ZodOptional<z.ZodString>;
972
+ endsAt: z.ZodOptional<z.ZodString>;
968
973
  }, "strip", z.ZodTypeAny, {
969
974
  url: string;
975
+ id: string;
970
976
  title: string;
971
977
  sport: string;
972
978
  startsAt: string;
973
979
  timezone: string;
974
980
  formattedAddress: string;
981
+ latitude: number | null;
982
+ longitude: number | null;
975
983
  venueName: string;
984
+ description?: string | undefined;
985
+ endsAt?: string | undefined;
976
986
  }, {
977
987
  url: string;
988
+ id: string;
978
989
  title: string;
979
990
  sport: string;
980
991
  startsAt: string;
981
992
  timezone: string;
982
993
  formattedAddress: string;
994
+ latitude: number | null;
995
+ longitude: number | null;
983
996
  venueName: string;
997
+ description?: string | undefined;
998
+ endsAt?: string | undefined;
984
999
  }>, "many">;
985
1000
  };
986
1001
  };
@@ -1016,6 +1031,7 @@ export declare const saveExternal: {
1016
1031
  "application/json": {
1017
1032
  schema: z.ZodObject<{
1018
1033
  events: z.ZodArray<z.ZodObject<{
1034
+ id: z.ZodString;
1019
1035
  title: z.ZodString;
1020
1036
  sport: z.ZodString;
1021
1037
  startsAt: z.ZodString;
@@ -1023,46 +1039,70 @@ export declare const saveExternal: {
1023
1039
  url: z.ZodString;
1024
1040
  venueName: z.ZodString;
1025
1041
  formattedAddress: z.ZodString;
1042
+ latitude: z.ZodNullable<z.ZodNumber>;
1043
+ longitude: z.ZodNullable<z.ZodNumber>;
1044
+ description: z.ZodOptional<z.ZodString>;
1045
+ endsAt: z.ZodOptional<z.ZodString>;
1026
1046
  }, "strip", z.ZodTypeAny, {
1027
1047
  url: string;
1048
+ id: string;
1028
1049
  title: string;
1029
1050
  sport: string;
1030
1051
  startsAt: string;
1031
1052
  timezone: string;
1032
1053
  formattedAddress: string;
1054
+ latitude: number | null;
1055
+ longitude: number | null;
1033
1056
  venueName: string;
1057
+ description?: string | undefined;
1058
+ endsAt?: string | undefined;
1034
1059
  }, {
1035
1060
  url: string;
1061
+ id: string;
1036
1062
  title: string;
1037
1063
  sport: string;
1038
1064
  startsAt: string;
1039
1065
  timezone: string;
1040
1066
  formattedAddress: string;
1067
+ latitude: number | null;
1068
+ longitude: number | null;
1041
1069
  venueName: string;
1070
+ description?: string | undefined;
1071
+ endsAt?: string | undefined;
1042
1072
  }>, "many">;
1043
1073
  city: z.ZodString;
1044
1074
  state: z.ZodString;
1045
1075
  }, "strip", z.ZodTypeAny, {
1046
1076
  events: {
1047
1077
  url: string;
1078
+ id: string;
1048
1079
  title: string;
1049
1080
  sport: string;
1050
1081
  startsAt: string;
1051
1082
  timezone: string;
1052
1083
  formattedAddress: string;
1084
+ latitude: number | null;
1085
+ longitude: number | null;
1053
1086
  venueName: string;
1087
+ description?: string | undefined;
1088
+ endsAt?: string | undefined;
1054
1089
  }[];
1055
1090
  city: string;
1056
1091
  state: string;
1057
1092
  }, {
1058
1093
  events: {
1059
1094
  url: string;
1095
+ id: string;
1060
1096
  title: string;
1061
1097
  sport: string;
1062
1098
  startsAt: string;
1063
1099
  timezone: string;
1064
1100
  formattedAddress: string;
1101
+ latitude: number | null;
1102
+ longitude: number | null;
1065
1103
  venueName: string;
1104
+ description?: string | undefined;
1105
+ endsAt?: string | undefined;
1066
1106
  }[];
1067
1107
  city: string;
1068
1108
  state: string;
@@ -280,6 +280,7 @@ export declare const listEventsQuerySchema: z.ZodObject<{
280
280
  offset?: number | undefined;
281
281
  }>;
282
282
  export declare const externalEventPreviewSchema: z.ZodObject<{
283
+ id: z.ZodString;
283
284
  title: z.ZodString;
284
285
  sport: z.ZodString;
285
286
  startsAt: z.ZodString;
@@ -287,22 +288,36 @@ export declare const externalEventPreviewSchema: z.ZodObject<{
287
288
  url: z.ZodString;
288
289
  venueName: z.ZodString;
289
290
  formattedAddress: z.ZodString;
291
+ latitude: z.ZodNullable<z.ZodNumber>;
292
+ longitude: z.ZodNullable<z.ZodNumber>;
293
+ description: z.ZodOptional<z.ZodString>;
294
+ endsAt: z.ZodOptional<z.ZodString>;
290
295
  }, "strip", z.ZodTypeAny, {
291
296
  url: string;
297
+ id: string;
292
298
  title: string;
293
299
  sport: string;
294
300
  startsAt: string;
295
301
  timezone: string;
296
302
  formattedAddress: string;
303
+ latitude: number | null;
304
+ longitude: number | null;
297
305
  venueName: string;
306
+ description?: string | undefined;
307
+ endsAt?: string | undefined;
298
308
  }, {
299
309
  url: string;
310
+ id: string;
300
311
  title: string;
301
312
  sport: string;
302
313
  startsAt: string;
303
314
  timezone: string;
304
315
  formattedAddress: string;
316
+ latitude: number | null;
317
+ longitude: number | null;
305
318
  venueName: string;
319
+ description?: string | undefined;
320
+ endsAt?: string | undefined;
306
321
  }>;
307
322
  export type ExternalEventPreview = z.infer<typeof externalEventPreviewSchema>;
308
323
  export type EventWithRelations = z.infer<typeof eventWithRelationsSchema>;
@@ -37,6 +37,7 @@ export const listEventsQuerySchema = z.object({
37
37
  offset: z.coerce.number().min(0).optional().default(0),
38
38
  });
39
39
  export const externalEventPreviewSchema = z.object({
40
+ id: z.string(),
40
41
  title: z.string(),
41
42
  sport: z.string(),
42
43
  startsAt: z.string(),
@@ -44,4 +45,8 @@ export const externalEventPreviewSchema = z.object({
44
45
  url: z.string(),
45
46
  venueName: z.string(),
46
47
  formattedAddress: z.string(),
48
+ latitude: z.number().nullable(),
49
+ longitude: z.number().nullable(),
50
+ description: z.string().optional(),
51
+ endsAt: z.string().optional(),
47
52
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lcas58/esmi-api-types",
3
3
  "type": "module",
4
- "version": "1.0.20",
4
+ "version": "1.0.22",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": {