@sortipei/api-contracts 0.1.25 → 0.1.26
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/V1/api/event.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const EventDTOSchema: z.ZodObject<{
|
|
3
3
|
adress: z.ZodString;
|
|
4
4
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
5
|
-
category: z.ZodNativeEnum<typeof import(
|
|
5
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
6
6
|
createdAt: z.ZodString;
|
|
7
7
|
description: z.ZodString;
|
|
8
8
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
@@ -15,7 +15,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
15
15
|
isPriceRange: z.ZodBoolean;
|
|
16
16
|
link: z.ZodNullable<z.ZodString>;
|
|
17
17
|
price: z.ZodNullable<z.ZodNumber>;
|
|
18
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
18
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
19
19
|
startTime: z.ZodString;
|
|
20
20
|
title: z.ZodString;
|
|
21
21
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -36,7 +36,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
adress: string;
|
|
38
38
|
capacity: number | null;
|
|
39
|
-
category: import(
|
|
39
|
+
category: import("../../shared").Category;
|
|
40
40
|
createdAt: string;
|
|
41
41
|
description: string;
|
|
42
42
|
finishTime: string | null;
|
|
@@ -49,7 +49,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
49
49
|
isPriceRange: boolean;
|
|
50
50
|
link: string | null;
|
|
51
51
|
price: number | null;
|
|
52
|
-
regions: import(
|
|
52
|
+
regions: import("../../shared").Region[];
|
|
53
53
|
startTime: string;
|
|
54
54
|
title: string;
|
|
55
55
|
thumbnailUrl: string | null;
|
|
@@ -62,7 +62,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
62
62
|
}, {
|
|
63
63
|
adress: string;
|
|
64
64
|
capacity: number | null;
|
|
65
|
-
category: import(
|
|
65
|
+
category: import("../../shared").Category;
|
|
66
66
|
createdAt: string;
|
|
67
67
|
description: string;
|
|
68
68
|
finishTime: string | null;
|
|
@@ -75,7 +75,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
75
75
|
isPriceRange: boolean;
|
|
76
76
|
link: string | null;
|
|
77
77
|
price: number | null;
|
|
78
|
-
regions: import(
|
|
78
|
+
regions: import("../../shared").Region[];
|
|
79
79
|
startTime: string;
|
|
80
80
|
title: string;
|
|
81
81
|
thumbnailUrl: string | null;
|
|
@@ -89,7 +89,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
89
89
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
90
90
|
adress: z.ZodString;
|
|
91
91
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
92
|
-
category: z.ZodNativeEnum<typeof import(
|
|
92
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
93
93
|
description: z.ZodString;
|
|
94
94
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
95
95
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -101,7 +101,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
101
101
|
link: z.ZodNullable<z.ZodString>;
|
|
102
102
|
organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
|
|
103
103
|
price: z.ZodNullable<z.ZodNumber>;
|
|
104
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
104
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
105
105
|
startTime: z.ZodString;
|
|
106
106
|
title: z.ZodString;
|
|
107
107
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -109,7 +109,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
110
|
adress: string;
|
|
111
111
|
capacity: number | null;
|
|
112
|
-
category: import(
|
|
112
|
+
category: import("../../shared").Category;
|
|
113
113
|
description: string;
|
|
114
114
|
finishTime: string | null;
|
|
115
115
|
hasHandicapAccess: boolean | null;
|
|
@@ -120,7 +120,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
120
120
|
isPriceRange: boolean;
|
|
121
121
|
link: string | null;
|
|
122
122
|
price: number | null;
|
|
123
|
-
regions: import(
|
|
123
|
+
regions: import("../../shared").Region[];
|
|
124
124
|
startTime: string;
|
|
125
125
|
title: string;
|
|
126
126
|
thumbnailUrl: string | null;
|
|
@@ -129,7 +129,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
129
129
|
}, {
|
|
130
130
|
adress: string;
|
|
131
131
|
capacity: number | null;
|
|
132
|
-
category: import(
|
|
132
|
+
category: import("../../shared").Category;
|
|
133
133
|
description: string;
|
|
134
134
|
finishTime: string | null;
|
|
135
135
|
hasHandicapAccess: boolean | null;
|
|
@@ -140,7 +140,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
140
140
|
isPriceRange: boolean;
|
|
141
141
|
link: string | null;
|
|
142
142
|
price: number | null;
|
|
143
|
-
regions: import(
|
|
143
|
+
regions: import("../../shared").Region[];
|
|
144
144
|
startTime: string;
|
|
145
145
|
title: string;
|
|
146
146
|
thumbnailUrl: string | null;
|
|
@@ -150,7 +150,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
150
150
|
export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
151
151
|
adress: z.ZodString;
|
|
152
152
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
153
|
-
category: z.ZodNativeEnum<typeof import(
|
|
153
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
154
154
|
description: z.ZodString;
|
|
155
155
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
156
156
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -162,7 +162,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
162
162
|
link: z.ZodNullable<z.ZodString>;
|
|
163
163
|
organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
|
|
164
164
|
price: z.ZodNullable<z.ZodNumber>;
|
|
165
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
165
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
166
166
|
startTime: z.ZodString;
|
|
167
167
|
title: z.ZodString;
|
|
168
168
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -170,7 +170,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
170
170
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
171
171
|
adress: string;
|
|
172
172
|
capacity: number | null;
|
|
173
|
-
category: import(
|
|
173
|
+
category: import("../../shared").Category;
|
|
174
174
|
description: string;
|
|
175
175
|
finishTime: string | null;
|
|
176
176
|
hasHandicapAccess: boolean | null;
|
|
@@ -180,7 +180,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
180
180
|
isPriceRange: boolean;
|
|
181
181
|
link: string | null;
|
|
182
182
|
price: number | null;
|
|
183
|
-
regions: import(
|
|
183
|
+
regions: import("../../shared").Region[];
|
|
184
184
|
startTime: string;
|
|
185
185
|
title: string;
|
|
186
186
|
thumbnailUrl: string | null;
|
|
@@ -189,7 +189,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
189
189
|
}, {
|
|
190
190
|
adress: string;
|
|
191
191
|
capacity: number | null;
|
|
192
|
-
category: import(
|
|
192
|
+
category: import("../../shared").Category;
|
|
193
193
|
description: string;
|
|
194
194
|
finishTime: string | null;
|
|
195
195
|
hasHandicapAccess: boolean | null;
|
|
@@ -199,7 +199,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
199
199
|
isPriceRange: boolean;
|
|
200
200
|
link: string | null;
|
|
201
201
|
price: number | null;
|
|
202
|
-
regions: import(
|
|
202
|
+
regions: import("../../shared").Region[];
|
|
203
203
|
startTime: string;
|
|
204
204
|
title: string;
|
|
205
205
|
thumbnailUrl: string | null;
|
|
@@ -246,7 +246,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
246
246
|
partialEventState: z.ZodObject<{
|
|
247
247
|
adress: z.ZodOptional<z.ZodString>;
|
|
248
248
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
249
|
-
category: z.ZodOptional<z.ZodNativeEnum<typeof import(
|
|
249
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
|
|
250
250
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
251
251
|
description: z.ZodOptional<z.ZodString>;
|
|
252
252
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -259,7 +259,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
259
259
|
isPriceRange: z.ZodOptional<z.ZodBoolean>;
|
|
260
260
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
261
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
262
|
-
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
262
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
|
|
263
263
|
startTime: z.ZodOptional<z.ZodString>;
|
|
264
264
|
title: z.ZodOptional<z.ZodString>;
|
|
265
265
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -280,7 +280,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
280
280
|
}, "strip", z.ZodTypeAny, {
|
|
281
281
|
adress?: string | undefined;
|
|
282
282
|
capacity?: number | null | undefined;
|
|
283
|
-
category?: import(
|
|
283
|
+
category?: import("../../shared").Category | undefined;
|
|
284
284
|
createdAt?: string | undefined;
|
|
285
285
|
description?: string | undefined;
|
|
286
286
|
finishTime?: string | null | undefined;
|
|
@@ -293,7 +293,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
293
293
|
isPriceRange?: boolean | undefined;
|
|
294
294
|
link?: string | null | undefined;
|
|
295
295
|
price?: number | null | undefined;
|
|
296
|
-
regions?: import(
|
|
296
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
297
297
|
startTime?: string | undefined;
|
|
298
298
|
title?: string | undefined;
|
|
299
299
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -306,7 +306,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
306
306
|
}, {
|
|
307
307
|
adress?: string | undefined;
|
|
308
308
|
capacity?: number | null | undefined;
|
|
309
|
-
category?: import(
|
|
309
|
+
category?: import("../../shared").Category | undefined;
|
|
310
310
|
createdAt?: string | undefined;
|
|
311
311
|
description?: string | undefined;
|
|
312
312
|
finishTime?: string | null | undefined;
|
|
@@ -319,7 +319,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
319
319
|
isPriceRange?: boolean | undefined;
|
|
320
320
|
link?: string | null | undefined;
|
|
321
321
|
price?: number | null | undefined;
|
|
322
|
-
regions?: import(
|
|
322
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
323
323
|
startTime?: string | undefined;
|
|
324
324
|
title?: string | undefined;
|
|
325
325
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -339,7 +339,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
339
339
|
partialEventState: {
|
|
340
340
|
adress?: string | undefined;
|
|
341
341
|
capacity?: number | null | undefined;
|
|
342
|
-
category?: import(
|
|
342
|
+
category?: import("../../shared").Category | undefined;
|
|
343
343
|
createdAt?: string | undefined;
|
|
344
344
|
description?: string | undefined;
|
|
345
345
|
finishTime?: string | null | undefined;
|
|
@@ -352,7 +352,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
352
352
|
isPriceRange?: boolean | undefined;
|
|
353
353
|
link?: string | null | undefined;
|
|
354
354
|
price?: number | null | undefined;
|
|
355
|
-
regions?: import(
|
|
355
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
356
356
|
startTime?: string | undefined;
|
|
357
357
|
title?: string | undefined;
|
|
358
358
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -372,7 +372,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
372
372
|
partialEventState: {
|
|
373
373
|
adress?: string | undefined;
|
|
374
374
|
capacity?: number | null | undefined;
|
|
375
|
-
category?: import(
|
|
375
|
+
category?: import("../../shared").Category | undefined;
|
|
376
376
|
createdAt?: string | undefined;
|
|
377
377
|
description?: string | undefined;
|
|
378
378
|
finishTime?: string | null | undefined;
|
|
@@ -385,7 +385,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
385
385
|
isPriceRange?: boolean | undefined;
|
|
386
386
|
link?: string | null | undefined;
|
|
387
387
|
price?: number | null | undefined;
|
|
388
|
-
regions?: import(
|
|
388
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
389
389
|
startTime?: string | undefined;
|
|
390
390
|
title?: string | undefined;
|
|
391
391
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -3,7 +3,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
3
3
|
partialEventState: z.ZodObject<{
|
|
4
4
|
adress: z.ZodOptional<z.ZodString>;
|
|
5
5
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
-
category: z.ZodOptional<z.ZodNativeEnum<typeof import(
|
|
6
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
|
|
7
7
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
8
8
|
description: z.ZodOptional<z.ZodString>;
|
|
9
9
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -16,7 +16,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
16
16
|
isPriceRange: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
-
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
19
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
|
|
20
20
|
startTime: z.ZodOptional<z.ZodString>;
|
|
21
21
|
title: z.ZodOptional<z.ZodString>;
|
|
22
22
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -37,7 +37,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
adress?: string | undefined;
|
|
39
39
|
capacity?: number | null | undefined;
|
|
40
|
-
category?: import(
|
|
40
|
+
category?: import("../../shared").Category | undefined;
|
|
41
41
|
createdAt?: string | undefined;
|
|
42
42
|
description?: string | undefined;
|
|
43
43
|
finishTime?: string | null | undefined;
|
|
@@ -50,7 +50,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
50
50
|
isPriceRange?: boolean | undefined;
|
|
51
51
|
link?: string | null | undefined;
|
|
52
52
|
price?: number | null | undefined;
|
|
53
|
-
regions?: import(
|
|
53
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
54
54
|
startTime?: string | undefined;
|
|
55
55
|
title?: string | undefined;
|
|
56
56
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
63
63
|
}, {
|
|
64
64
|
adress?: string | undefined;
|
|
65
65
|
capacity?: number | null | undefined;
|
|
66
|
-
category?: import(
|
|
66
|
+
category?: import("../../shared").Category | undefined;
|
|
67
67
|
createdAt?: string | undefined;
|
|
68
68
|
description?: string | undefined;
|
|
69
69
|
finishTime?: string | null | undefined;
|
|
@@ -76,7 +76,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
76
76
|
isPriceRange?: boolean | undefined;
|
|
77
77
|
link?: string | null | undefined;
|
|
78
78
|
price?: number | null | undefined;
|
|
79
|
-
regions?: import(
|
|
79
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
80
80
|
startTime?: string | undefined;
|
|
81
81
|
title?: string | undefined;
|
|
82
82
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -96,7 +96,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
96
96
|
partialEventState: {
|
|
97
97
|
adress?: string | undefined;
|
|
98
98
|
capacity?: number | null | undefined;
|
|
99
|
-
category?: import(
|
|
99
|
+
category?: import("../../shared").Category | undefined;
|
|
100
100
|
createdAt?: string | undefined;
|
|
101
101
|
description?: string | undefined;
|
|
102
102
|
finishTime?: string | null | undefined;
|
|
@@ -109,7 +109,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
109
109
|
isPriceRange?: boolean | undefined;
|
|
110
110
|
link?: string | null | undefined;
|
|
111
111
|
price?: number | null | undefined;
|
|
112
|
-
regions?: import(
|
|
112
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
113
113
|
startTime?: string | undefined;
|
|
114
114
|
title?: string | undefined;
|
|
115
115
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -128,7 +128,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
128
128
|
partialEventState: {
|
|
129
129
|
adress?: string | undefined;
|
|
130
130
|
capacity?: number | null | undefined;
|
|
131
|
-
category?: import(
|
|
131
|
+
category?: import("../../shared").Category | undefined;
|
|
132
132
|
createdAt?: string | undefined;
|
|
133
133
|
description?: string | undefined;
|
|
134
134
|
finishTime?: string | null | undefined;
|
|
@@ -141,7 +141,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
141
141
|
isPriceRange?: boolean | undefined;
|
|
142
142
|
link?: string | null | undefined;
|
|
143
143
|
price?: number | null | undefined;
|
|
144
|
-
regions?: import(
|
|
144
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
145
145
|
startTime?: string | undefined;
|
|
146
146
|
title?: string | undefined;
|
|
147
147
|
thumbnailUrl?: string | null | undefined;
|
package/dist/api-contracts.js
CHANGED
|
@@ -4057,6 +4057,10 @@ const SafeIntegerSchema = SafeFloatSchema.int();
|
|
|
4057
4057
|
const SafeNonNegativeIntegerSchema = SafeIntegerSchema.nonnegative();
|
|
4058
4058
|
const SafeNonNegativeFloatSchema = SafeFloatSchema.nonnegative();
|
|
4059
4059
|
const URLSchema = StringSchema.url();
|
|
4060
|
+
const GPSCoordinatesSchema = z.object({
|
|
4061
|
+
latitude: z.number().min(-90).max(90),
|
|
4062
|
+
longitude: z.number().min(-180).max(180)
|
|
4063
|
+
});
|
|
4060
4064
|
var Region = /* @__PURE__ */ ((Region2) => {
|
|
4061
4065
|
Region2["East"] = "East";
|
|
4062
4066
|
Region2["North"] = "North";
|
|
@@ -4101,6 +4105,7 @@ const EventDTOSchema = z.object({
|
|
|
4101
4105
|
createdAt: z.string().datetime(),
|
|
4102
4106
|
description: StringSchema,
|
|
4103
4107
|
finishTime: z.string().datetime().nullable(),
|
|
4108
|
+
gpsCoordinates: GPSCoordinatesSchema,
|
|
4104
4109
|
hasHandicapAccess: z.boolean().nullable(),
|
|
4105
4110
|
id: EventIdSchema,
|
|
4106
4111
|
imageBlurHashes: StringSchema.array(),
|
|
@@ -4250,6 +4255,7 @@ exports.CoerceDateSchema = CoerceDateSchema;
|
|
|
4250
4255
|
exports.CoerceNullableDateSchema = CoerceNullableDateSchema;
|
|
4251
4256
|
exports.ErrorCodes = ErrorCodes;
|
|
4252
4257
|
exports.EventIdSchema = EventIdSchema;
|
|
4258
|
+
exports.GPSCoordinatesSchema = GPSCoordinatesSchema;
|
|
4253
4259
|
exports.OrganizerIdSchema = OrganizerIdSchema;
|
|
4254
4260
|
exports.Region = Region;
|
|
4255
4261
|
exports.RegionSchema = RegionSchema;
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4055,6 +4055,10 @@ const SafeIntegerSchema = SafeFloatSchema.int();
|
|
|
4055
4055
|
const SafeNonNegativeIntegerSchema = SafeIntegerSchema.nonnegative();
|
|
4056
4056
|
const SafeNonNegativeFloatSchema = SafeFloatSchema.nonnegative();
|
|
4057
4057
|
const URLSchema = StringSchema.url();
|
|
4058
|
+
const GPSCoordinatesSchema = z.object({
|
|
4059
|
+
latitude: z.number().min(-90).max(90),
|
|
4060
|
+
longitude: z.number().min(-180).max(180)
|
|
4061
|
+
});
|
|
4058
4062
|
var Region = /* @__PURE__ */ ((Region2) => {
|
|
4059
4063
|
Region2["East"] = "East";
|
|
4060
4064
|
Region2["North"] = "North";
|
|
@@ -4099,6 +4103,7 @@ const EventDTOSchema = z.object({
|
|
|
4099
4103
|
createdAt: z.string().datetime(),
|
|
4100
4104
|
description: StringSchema,
|
|
4101
4105
|
finishTime: z.string().datetime().nullable(),
|
|
4106
|
+
gpsCoordinates: GPSCoordinatesSchema,
|
|
4102
4107
|
hasHandicapAccess: z.boolean().nullable(),
|
|
4103
4108
|
id: EventIdSchema,
|
|
4104
4109
|
imageBlurHashes: StringSchema.array(),
|
|
@@ -4249,6 +4254,7 @@ export {
|
|
|
4249
4254
|
CoerceNullableDateSchema,
|
|
4250
4255
|
ErrorCodes,
|
|
4251
4256
|
EventIdSchema,
|
|
4257
|
+
GPSCoordinatesSchema,
|
|
4252
4258
|
OrganizerIdSchema,
|
|
4253
4259
|
Region,
|
|
4254
4260
|
RegionSchema,
|