@lcas58/esmi-api-types 1.0.11 → 1.0.12
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.js +14 -0
- package/dist/src/routes/events/events.index.d.ts +10 -0
- package/dist/src/routes/events/events.routes.d.ts +46 -0
- package/dist/src/routes/events/schemas/event.schemas.d.ts +23 -0
- package/dist/src/routes/events/schemas/event.schemas.js +5 -0
- package/dist/src/routes/events/schemas/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,13 @@ export const list = async (c) => {
|
|
|
22
22
|
sport: true,
|
|
23
23
|
location: true,
|
|
24
24
|
externalLink: true,
|
|
25
|
+
creator: {
|
|
26
|
+
columns: {
|
|
27
|
+
id: true,
|
|
28
|
+
name: true,
|
|
29
|
+
image: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
25
32
|
},
|
|
26
33
|
limit,
|
|
27
34
|
offset,
|
|
@@ -38,6 +45,13 @@ export const getOne = async (c) => {
|
|
|
38
45
|
sport: true,
|
|
39
46
|
location: true,
|
|
40
47
|
externalLink: true,
|
|
48
|
+
creator: {
|
|
49
|
+
columns: {
|
|
50
|
+
id: true,
|
|
51
|
+
name: true,
|
|
52
|
+
image: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
41
55
|
},
|
|
42
56
|
});
|
|
43
57
|
if (!foundEvent) {
|
|
@@ -37,6 +37,11 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
|
|
|
37
37
|
source: "external" | "community";
|
|
38
38
|
thumbnailUrl: string | null;
|
|
39
39
|
createdByUserId: string | null;
|
|
40
|
+
creator: {
|
|
41
|
+
image: string | null;
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
} | null;
|
|
40
45
|
externalLink: {
|
|
41
46
|
url: string;
|
|
42
47
|
id: string;
|
|
@@ -83,6 +88,11 @@ declare const router: import("@hono/zod-openapi").OpenAPIHono<import("../../shar
|
|
|
83
88
|
source: "external" | "community";
|
|
84
89
|
thumbnailUrl: string | null;
|
|
85
90
|
createdByUserId: string | null;
|
|
91
|
+
creator: {
|
|
92
|
+
image: string | null;
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
} | null;
|
|
86
96
|
externalLink: {
|
|
87
97
|
url: string;
|
|
88
98
|
id: string;
|
|
@@ -139,6 +139,19 @@ export declare const list: {
|
|
|
139
139
|
id: string;
|
|
140
140
|
domain: string;
|
|
141
141
|
}>>;
|
|
142
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
name: z.ZodString;
|
|
145
|
+
image: z.ZodNullable<z.ZodString>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
image: string | null;
|
|
148
|
+
id: string;
|
|
149
|
+
name: string;
|
|
150
|
+
}, {
|
|
151
|
+
image: string | null;
|
|
152
|
+
id: string;
|
|
153
|
+
name: string;
|
|
154
|
+
}>>;
|
|
142
155
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
143
156
|
metadata: string | number | boolean | {
|
|
144
157
|
[key: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
@@ -191,6 +204,11 @@ export declare const list: {
|
|
|
191
204
|
source: "external" | "community";
|
|
192
205
|
thumbnailUrl: string | null;
|
|
193
206
|
createdByUserId: string | null;
|
|
207
|
+
creator: {
|
|
208
|
+
image: string | null;
|
|
209
|
+
id: string;
|
|
210
|
+
name: string;
|
|
211
|
+
} | null;
|
|
194
212
|
externalLink: {
|
|
195
213
|
url: string;
|
|
196
214
|
id: string;
|
|
@@ -248,6 +266,11 @@ export declare const list: {
|
|
|
248
266
|
source: "external" | "community";
|
|
249
267
|
thumbnailUrl: string | null;
|
|
250
268
|
createdByUserId: string | null;
|
|
269
|
+
creator: {
|
|
270
|
+
image: string | null;
|
|
271
|
+
id: string;
|
|
272
|
+
name: string;
|
|
273
|
+
} | null;
|
|
251
274
|
externalLink: {
|
|
252
275
|
url: string;
|
|
253
276
|
id: string;
|
|
@@ -393,6 +416,19 @@ export declare const getOne: {
|
|
|
393
416
|
id: string;
|
|
394
417
|
domain: string;
|
|
395
418
|
}>>;
|
|
419
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
name: z.ZodString;
|
|
422
|
+
image: z.ZodNullable<z.ZodString>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
image: string | null;
|
|
425
|
+
id: string;
|
|
426
|
+
name: string;
|
|
427
|
+
}, {
|
|
428
|
+
image: string | null;
|
|
429
|
+
id: string;
|
|
430
|
+
name: string;
|
|
431
|
+
}>>;
|
|
396
432
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
397
433
|
metadata: string | number | boolean | {
|
|
398
434
|
[key: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
@@ -445,6 +481,11 @@ export declare const getOne: {
|
|
|
445
481
|
source: "external" | "community";
|
|
446
482
|
thumbnailUrl: string | null;
|
|
447
483
|
createdByUserId: string | null;
|
|
484
|
+
creator: {
|
|
485
|
+
image: string | null;
|
|
486
|
+
id: string;
|
|
487
|
+
name: string;
|
|
488
|
+
} | null;
|
|
448
489
|
externalLink: {
|
|
449
490
|
url: string;
|
|
450
491
|
id: string;
|
|
@@ -502,6 +543,11 @@ export declare const getOne: {
|
|
|
502
543
|
source: "external" | "community";
|
|
503
544
|
thumbnailUrl: string | null;
|
|
504
545
|
createdByUserId: string | null;
|
|
546
|
+
creator: {
|
|
547
|
+
image: string | null;
|
|
548
|
+
id: string;
|
|
549
|
+
name: string;
|
|
550
|
+
} | null;
|
|
505
551
|
externalLink: {
|
|
506
552
|
url: string;
|
|
507
553
|
id: string;
|
|
@@ -113,6 +113,19 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
113
113
|
id: string;
|
|
114
114
|
domain: string;
|
|
115
115
|
}>>;
|
|
116
|
+
creator: z.ZodNullable<z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
image: z.ZodNullable<z.ZodString>;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
image: string | null;
|
|
122
|
+
id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
}, {
|
|
125
|
+
image: string | null;
|
|
126
|
+
id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
}>>;
|
|
116
129
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
117
130
|
metadata: string | number | boolean | {
|
|
118
131
|
[key: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
@@ -165,6 +178,11 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
165
178
|
source: "external" | "community";
|
|
166
179
|
thumbnailUrl: string | null;
|
|
167
180
|
createdByUserId: string | null;
|
|
181
|
+
creator: {
|
|
182
|
+
image: string | null;
|
|
183
|
+
id: string;
|
|
184
|
+
name: string;
|
|
185
|
+
} | null;
|
|
168
186
|
externalLink: {
|
|
169
187
|
url: string;
|
|
170
188
|
id: string;
|
|
@@ -222,6 +240,11 @@ export declare const eventWithRelationsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
222
240
|
source: "external" | "community";
|
|
223
241
|
thumbnailUrl: string | null;
|
|
224
242
|
createdByUserId: string | null;
|
|
243
|
+
creator: {
|
|
244
|
+
image: string | null;
|
|
245
|
+
id: string;
|
|
246
|
+
name: string;
|
|
247
|
+
} | null;
|
|
225
248
|
externalLink: {
|
|
226
249
|
url: string;
|
|
227
250
|
id: string;
|
|
@@ -20,6 +20,11 @@ export const eventWithRelationsSchema = selectEventSchema.extend({
|
|
|
20
20
|
url: z.string(),
|
|
21
21
|
domain: z.string(),
|
|
22
22
|
}).nullable(),
|
|
23
|
+
creator: z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
name: z.string(),
|
|
26
|
+
image: z.string().nullable(),
|
|
27
|
+
}).nullable(),
|
|
23
28
|
});
|
|
24
29
|
export const listEventsQuerySchema = z.object({
|
|
25
30
|
sportId: z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { type EventWithRelations, eventWithRelationsSchema, type ListEventsQuery, listEventsQuerySchema, } from "./event.schemas.js";
|