@lcas58/esmi-api-types 1.0.20 → 1.0.21
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,15 @@ 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;
|
|
225
226
|
venueName: string;
|
|
227
|
+
description?: string | undefined;
|
|
228
|
+
endsAt?: string | undefined;
|
|
226
229
|
}[];
|
|
227
230
|
outputFormat: "text" | "json";
|
|
228
231
|
status: 200;
|
|
@@ -235,12 +238,15 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
|
|
|
235
238
|
json: {
|
|
236
239
|
events: {
|
|
237
240
|
url: string;
|
|
241
|
+
id: string;
|
|
238
242
|
title: string;
|
|
239
243
|
sport: string;
|
|
240
244
|
startsAt: string;
|
|
241
245
|
timezone: string;
|
|
242
246
|
formattedAddress: string;
|
|
243
247
|
venueName: string;
|
|
248
|
+
description?: string | undefined;
|
|
249
|
+
endsAt?: string | undefined;
|
|
244
250
|
}[];
|
|
245
251
|
city: string;
|
|
246
252
|
state: string;
|
|
@@ -292,12 +298,15 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
|
|
|
292
298
|
json: {
|
|
293
299
|
events: {
|
|
294
300
|
url: string;
|
|
301
|
+
id: string;
|
|
295
302
|
title: string;
|
|
296
303
|
sport: string;
|
|
297
304
|
startsAt: string;
|
|
298
305
|
timezone: string;
|
|
299
306
|
formattedAddress: string;
|
|
300
307
|
venueName: string;
|
|
308
|
+
description?: string | undefined;
|
|
309
|
+
endsAt?: string | undefined;
|
|
301
310
|
}[];
|
|
302
311
|
city: string;
|
|
303
312
|
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,30 @@ export declare const discoverExternal: {
|
|
|
965
966
|
url: z.ZodString;
|
|
966
967
|
venueName: z.ZodString;
|
|
967
968
|
formattedAddress: z.ZodString;
|
|
969
|
+
description: z.ZodOptional<z.ZodString>;
|
|
970
|
+
endsAt: z.ZodOptional<z.ZodString>;
|
|
968
971
|
}, "strip", z.ZodTypeAny, {
|
|
969
972
|
url: string;
|
|
973
|
+
id: string;
|
|
970
974
|
title: string;
|
|
971
975
|
sport: string;
|
|
972
976
|
startsAt: string;
|
|
973
977
|
timezone: string;
|
|
974
978
|
formattedAddress: string;
|
|
975
979
|
venueName: string;
|
|
980
|
+
description?: string | undefined;
|
|
981
|
+
endsAt?: string | undefined;
|
|
976
982
|
}, {
|
|
977
983
|
url: string;
|
|
984
|
+
id: string;
|
|
978
985
|
title: string;
|
|
979
986
|
sport: string;
|
|
980
987
|
startsAt: string;
|
|
981
988
|
timezone: string;
|
|
982
989
|
formattedAddress: string;
|
|
983
990
|
venueName: string;
|
|
991
|
+
description?: string | undefined;
|
|
992
|
+
endsAt?: string | undefined;
|
|
984
993
|
}>, "many">;
|
|
985
994
|
};
|
|
986
995
|
};
|
|
@@ -1016,6 +1025,7 @@ export declare const saveExternal: {
|
|
|
1016
1025
|
"application/json": {
|
|
1017
1026
|
schema: z.ZodObject<{
|
|
1018
1027
|
events: z.ZodArray<z.ZodObject<{
|
|
1028
|
+
id: z.ZodString;
|
|
1019
1029
|
title: z.ZodString;
|
|
1020
1030
|
sport: z.ZodString;
|
|
1021
1031
|
startsAt: z.ZodString;
|
|
@@ -1023,46 +1033,60 @@ export declare const saveExternal: {
|
|
|
1023
1033
|
url: z.ZodString;
|
|
1024
1034
|
venueName: z.ZodString;
|
|
1025
1035
|
formattedAddress: z.ZodString;
|
|
1036
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
endsAt: z.ZodOptional<z.ZodString>;
|
|
1026
1038
|
}, "strip", z.ZodTypeAny, {
|
|
1027
1039
|
url: string;
|
|
1040
|
+
id: string;
|
|
1028
1041
|
title: string;
|
|
1029
1042
|
sport: string;
|
|
1030
1043
|
startsAt: string;
|
|
1031
1044
|
timezone: string;
|
|
1032
1045
|
formattedAddress: string;
|
|
1033
1046
|
venueName: string;
|
|
1047
|
+
description?: string | undefined;
|
|
1048
|
+
endsAt?: string | undefined;
|
|
1034
1049
|
}, {
|
|
1035
1050
|
url: string;
|
|
1051
|
+
id: string;
|
|
1036
1052
|
title: string;
|
|
1037
1053
|
sport: string;
|
|
1038
1054
|
startsAt: string;
|
|
1039
1055
|
timezone: string;
|
|
1040
1056
|
formattedAddress: string;
|
|
1041
1057
|
venueName: string;
|
|
1058
|
+
description?: string | undefined;
|
|
1059
|
+
endsAt?: string | undefined;
|
|
1042
1060
|
}>, "many">;
|
|
1043
1061
|
city: z.ZodString;
|
|
1044
1062
|
state: z.ZodString;
|
|
1045
1063
|
}, "strip", z.ZodTypeAny, {
|
|
1046
1064
|
events: {
|
|
1047
1065
|
url: string;
|
|
1066
|
+
id: string;
|
|
1048
1067
|
title: string;
|
|
1049
1068
|
sport: string;
|
|
1050
1069
|
startsAt: string;
|
|
1051
1070
|
timezone: string;
|
|
1052
1071
|
formattedAddress: string;
|
|
1053
1072
|
venueName: string;
|
|
1073
|
+
description?: string | undefined;
|
|
1074
|
+
endsAt?: string | undefined;
|
|
1054
1075
|
}[];
|
|
1055
1076
|
city: string;
|
|
1056
1077
|
state: string;
|
|
1057
1078
|
}, {
|
|
1058
1079
|
events: {
|
|
1059
1080
|
url: string;
|
|
1081
|
+
id: string;
|
|
1060
1082
|
title: string;
|
|
1061
1083
|
sport: string;
|
|
1062
1084
|
startsAt: string;
|
|
1063
1085
|
timezone: string;
|
|
1064
1086
|
formattedAddress: string;
|
|
1065
1087
|
venueName: string;
|
|
1088
|
+
description?: string | undefined;
|
|
1089
|
+
endsAt?: string | undefined;
|
|
1066
1090
|
}[];
|
|
1067
1091
|
city: string;
|
|
1068
1092
|
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,30 @@ export declare const externalEventPreviewSchema: z.ZodObject<{
|
|
|
287
288
|
url: z.ZodString;
|
|
288
289
|
venueName: z.ZodString;
|
|
289
290
|
formattedAddress: z.ZodString;
|
|
291
|
+
description: z.ZodOptional<z.ZodString>;
|
|
292
|
+
endsAt: z.ZodOptional<z.ZodString>;
|
|
290
293
|
}, "strip", z.ZodTypeAny, {
|
|
291
294
|
url: string;
|
|
295
|
+
id: string;
|
|
292
296
|
title: string;
|
|
293
297
|
sport: string;
|
|
294
298
|
startsAt: string;
|
|
295
299
|
timezone: string;
|
|
296
300
|
formattedAddress: string;
|
|
297
301
|
venueName: string;
|
|
302
|
+
description?: string | undefined;
|
|
303
|
+
endsAt?: string | undefined;
|
|
298
304
|
}, {
|
|
299
305
|
url: string;
|
|
306
|
+
id: string;
|
|
300
307
|
title: string;
|
|
301
308
|
sport: string;
|
|
302
309
|
startsAt: string;
|
|
303
310
|
timezone: string;
|
|
304
311
|
formattedAddress: string;
|
|
305
312
|
venueName: string;
|
|
313
|
+
description?: string | undefined;
|
|
314
|
+
endsAt?: string | undefined;
|
|
306
315
|
}>;
|
|
307
316
|
export type ExternalEventPreview = z.infer<typeof externalEventPreviewSchema>;
|
|
308
317
|
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,6 @@ export const externalEventPreviewSchema = z.object({
|
|
|
44
45
|
url: z.string(),
|
|
45
46
|
venueName: z.string(),
|
|
46
47
|
formattedAddress: z.string(),
|
|
48
|
+
description: z.string().optional(),
|
|
49
|
+
endsAt: z.string().optional(),
|
|
47
50
|
});
|