@sortipei/api-contracts 0.1.24 → 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 +42 -28
- package/dist/V1/api/event.d.ts.map +1 -1
- package/dist/V1/external/partial-imported-event.d.ts +15 -10
- package/dist/V1/external/partial-imported-event.d.ts.map +1 -1
- package/dist/api-contracts.js +8 -0
- package/dist/api-contracts.mjs +8 -0
- package/package.json +1 -1
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>;
|
|
@@ -12,9 +12,10 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
12
12
|
imageUrls: z.ZodArray<z.ZodString, "many">;
|
|
13
13
|
isDisplayed: z.ZodBoolean;
|
|
14
14
|
isPromoted: z.ZodBoolean;
|
|
15
|
+
isPriceRange: z.ZodBoolean;
|
|
15
16
|
link: z.ZodNullable<z.ZodString>;
|
|
16
17
|
price: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
18
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
18
19
|
startTime: z.ZodString;
|
|
19
20
|
title: z.ZodString;
|
|
20
21
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -35,7 +36,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
35
36
|
}, "strip", z.ZodTypeAny, {
|
|
36
37
|
adress: string;
|
|
37
38
|
capacity: number | null;
|
|
38
|
-
category: import(
|
|
39
|
+
category: import("../../shared").Category;
|
|
39
40
|
createdAt: string;
|
|
40
41
|
description: string;
|
|
41
42
|
finishTime: string | null;
|
|
@@ -45,9 +46,10 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
45
46
|
imageUrls: string[];
|
|
46
47
|
isDisplayed: boolean;
|
|
47
48
|
isPromoted: boolean;
|
|
49
|
+
isPriceRange: boolean;
|
|
48
50
|
link: string | null;
|
|
49
51
|
price: number | null;
|
|
50
|
-
regions: import(
|
|
52
|
+
regions: import("../../shared").Region[];
|
|
51
53
|
startTime: string;
|
|
52
54
|
title: string;
|
|
53
55
|
thumbnailUrl: string | null;
|
|
@@ -60,7 +62,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
60
62
|
}, {
|
|
61
63
|
adress: string;
|
|
62
64
|
capacity: number | null;
|
|
63
|
-
category: import(
|
|
65
|
+
category: import("../../shared").Category;
|
|
64
66
|
createdAt: string;
|
|
65
67
|
description: string;
|
|
66
68
|
finishTime: string | null;
|
|
@@ -70,9 +72,10 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
70
72
|
imageUrls: string[];
|
|
71
73
|
isDisplayed: boolean;
|
|
72
74
|
isPromoted: boolean;
|
|
75
|
+
isPriceRange: boolean;
|
|
73
76
|
link: string | null;
|
|
74
77
|
price: number | null;
|
|
75
|
-
regions: import(
|
|
78
|
+
regions: import("../../shared").Region[];
|
|
76
79
|
startTime: string;
|
|
77
80
|
title: string;
|
|
78
81
|
thumbnailUrl: string | null;
|
|
@@ -86,7 +89,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
86
89
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
87
90
|
adress: z.ZodString;
|
|
88
91
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
89
|
-
category: z.ZodNativeEnum<typeof import(
|
|
92
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
90
93
|
description: z.ZodString;
|
|
91
94
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
92
95
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -94,10 +97,11 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
94
97
|
imageBlurHashes: z.ZodArray<z.ZodString, "many">;
|
|
95
98
|
imageUrls: z.ZodArray<z.ZodString, "many">;
|
|
96
99
|
isDisplayed: z.ZodBoolean;
|
|
100
|
+
isPriceRange: z.ZodBoolean;
|
|
97
101
|
link: z.ZodNullable<z.ZodString>;
|
|
98
102
|
organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
|
|
99
103
|
price: z.ZodNullable<z.ZodNumber>;
|
|
100
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
104
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
101
105
|
startTime: z.ZodString;
|
|
102
106
|
title: z.ZodString;
|
|
103
107
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -105,7 +109,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
105
109
|
}, "strip", z.ZodTypeAny, {
|
|
106
110
|
adress: string;
|
|
107
111
|
capacity: number | null;
|
|
108
|
-
category: import(
|
|
112
|
+
category: import("../../shared").Category;
|
|
109
113
|
description: string;
|
|
110
114
|
finishTime: string | null;
|
|
111
115
|
hasHandicapAccess: boolean | null;
|
|
@@ -113,9 +117,10 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
113
117
|
imageBlurHashes: string[];
|
|
114
118
|
imageUrls: string[];
|
|
115
119
|
isDisplayed: boolean;
|
|
120
|
+
isPriceRange: boolean;
|
|
116
121
|
link: string | null;
|
|
117
122
|
price: number | null;
|
|
118
|
-
regions: import(
|
|
123
|
+
regions: import("../../shared").Region[];
|
|
119
124
|
startTime: string;
|
|
120
125
|
title: string;
|
|
121
126
|
thumbnailUrl: string | null;
|
|
@@ -124,7 +129,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
124
129
|
}, {
|
|
125
130
|
adress: string;
|
|
126
131
|
capacity: number | null;
|
|
127
|
-
category: import(
|
|
132
|
+
category: import("../../shared").Category;
|
|
128
133
|
description: string;
|
|
129
134
|
finishTime: string | null;
|
|
130
135
|
hasHandicapAccess: boolean | null;
|
|
@@ -132,9 +137,10 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
132
137
|
imageBlurHashes: string[];
|
|
133
138
|
imageUrls: string[];
|
|
134
139
|
isDisplayed: boolean;
|
|
140
|
+
isPriceRange: boolean;
|
|
135
141
|
link: string | null;
|
|
136
142
|
price: number | null;
|
|
137
|
-
regions: import(
|
|
143
|
+
regions: import("../../shared").Region[];
|
|
138
144
|
startTime: string;
|
|
139
145
|
title: string;
|
|
140
146
|
thumbnailUrl: string | null;
|
|
@@ -144,7 +150,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
144
150
|
export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
145
151
|
adress: z.ZodString;
|
|
146
152
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
147
|
-
category: z.ZodNativeEnum<typeof import(
|
|
153
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
148
154
|
description: z.ZodString;
|
|
149
155
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
150
156
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -152,10 +158,11 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
152
158
|
imageBlurHashes: z.ZodArray<z.ZodString, "many">;
|
|
153
159
|
imageUrls: z.ZodArray<z.ZodString, "many">;
|
|
154
160
|
isDisplayed: z.ZodBoolean;
|
|
161
|
+
isPriceRange: z.ZodBoolean;
|
|
155
162
|
link: z.ZodNullable<z.ZodString>;
|
|
156
163
|
organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
|
|
157
164
|
price: z.ZodNullable<z.ZodNumber>;
|
|
158
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
165
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
159
166
|
startTime: z.ZodString;
|
|
160
167
|
title: z.ZodString;
|
|
161
168
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -163,16 +170,17 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
163
170
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
164
171
|
adress: string;
|
|
165
172
|
capacity: number | null;
|
|
166
|
-
category: import(
|
|
173
|
+
category: import("../../shared").Category;
|
|
167
174
|
description: string;
|
|
168
175
|
finishTime: string | null;
|
|
169
176
|
hasHandicapAccess: boolean | null;
|
|
170
177
|
imageBlurHashes: string[];
|
|
171
178
|
imageUrls: string[];
|
|
172
179
|
isDisplayed: boolean;
|
|
180
|
+
isPriceRange: boolean;
|
|
173
181
|
link: string | null;
|
|
174
182
|
price: number | null;
|
|
175
|
-
regions: import(
|
|
183
|
+
regions: import("../../shared").Region[];
|
|
176
184
|
startTime: string;
|
|
177
185
|
title: string;
|
|
178
186
|
thumbnailUrl: string | null;
|
|
@@ -181,16 +189,17 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
181
189
|
}, {
|
|
182
190
|
adress: string;
|
|
183
191
|
capacity: number | null;
|
|
184
|
-
category: import(
|
|
192
|
+
category: import("../../shared").Category;
|
|
185
193
|
description: string;
|
|
186
194
|
finishTime: string | null;
|
|
187
195
|
hasHandicapAccess: boolean | null;
|
|
188
196
|
imageBlurHashes: string[];
|
|
189
197
|
imageUrls: string[];
|
|
190
198
|
isDisplayed: boolean;
|
|
199
|
+
isPriceRange: boolean;
|
|
191
200
|
link: string | null;
|
|
192
201
|
price: number | null;
|
|
193
|
-
regions: import(
|
|
202
|
+
regions: import("../../shared").Region[];
|
|
194
203
|
startTime: string;
|
|
195
204
|
title: string;
|
|
196
205
|
thumbnailUrl: string | null;
|
|
@@ -237,7 +246,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
237
246
|
partialEventState: z.ZodObject<{
|
|
238
247
|
adress: z.ZodOptional<z.ZodString>;
|
|
239
248
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
240
|
-
category: z.ZodOptional<z.ZodNativeEnum<typeof import(
|
|
249
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
|
|
241
250
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
242
251
|
description: z.ZodOptional<z.ZodString>;
|
|
243
252
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -247,9 +256,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
247
256
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
248
257
|
isDisplayed: z.ZodOptional<z.ZodBoolean>;
|
|
249
258
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
isPriceRange: z.ZodOptional<z.ZodBoolean>;
|
|
250
260
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
261
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
252
|
-
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
262
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
|
|
253
263
|
startTime: z.ZodOptional<z.ZodString>;
|
|
254
264
|
title: z.ZodOptional<z.ZodString>;
|
|
255
265
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -270,7 +280,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
270
280
|
}, "strip", z.ZodTypeAny, {
|
|
271
281
|
adress?: string | undefined;
|
|
272
282
|
capacity?: number | null | undefined;
|
|
273
|
-
category?: import(
|
|
283
|
+
category?: import("../../shared").Category | undefined;
|
|
274
284
|
createdAt?: string | undefined;
|
|
275
285
|
description?: string | undefined;
|
|
276
286
|
finishTime?: string | null | undefined;
|
|
@@ -280,9 +290,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
280
290
|
imageUrls?: string[] | undefined;
|
|
281
291
|
isDisplayed?: boolean | undefined;
|
|
282
292
|
isPromoted?: boolean | undefined;
|
|
293
|
+
isPriceRange?: boolean | undefined;
|
|
283
294
|
link?: string | null | undefined;
|
|
284
295
|
price?: number | null | undefined;
|
|
285
|
-
regions?: import(
|
|
296
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
286
297
|
startTime?: string | undefined;
|
|
287
298
|
title?: string | undefined;
|
|
288
299
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -295,7 +306,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
295
306
|
}, {
|
|
296
307
|
adress?: string | undefined;
|
|
297
308
|
capacity?: number | null | undefined;
|
|
298
|
-
category?: import(
|
|
309
|
+
category?: import("../../shared").Category | undefined;
|
|
299
310
|
createdAt?: string | undefined;
|
|
300
311
|
description?: string | undefined;
|
|
301
312
|
finishTime?: string | null | undefined;
|
|
@@ -305,9 +316,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
305
316
|
imageUrls?: string[] | undefined;
|
|
306
317
|
isDisplayed?: boolean | undefined;
|
|
307
318
|
isPromoted?: boolean | undefined;
|
|
319
|
+
isPriceRange?: boolean | undefined;
|
|
308
320
|
link?: string | null | undefined;
|
|
309
321
|
price?: number | null | undefined;
|
|
310
|
-
regions?: import(
|
|
322
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
311
323
|
startTime?: string | undefined;
|
|
312
324
|
title?: string | undefined;
|
|
313
325
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -327,7 +339,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
327
339
|
partialEventState: {
|
|
328
340
|
adress?: string | undefined;
|
|
329
341
|
capacity?: number | null | undefined;
|
|
330
|
-
category?: import(
|
|
342
|
+
category?: import("../../shared").Category | undefined;
|
|
331
343
|
createdAt?: string | undefined;
|
|
332
344
|
description?: string | undefined;
|
|
333
345
|
finishTime?: string | null | undefined;
|
|
@@ -337,9 +349,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
337
349
|
imageUrls?: string[] | undefined;
|
|
338
350
|
isDisplayed?: boolean | undefined;
|
|
339
351
|
isPromoted?: boolean | undefined;
|
|
352
|
+
isPriceRange?: boolean | undefined;
|
|
340
353
|
link?: string | null | undefined;
|
|
341
354
|
price?: number | null | undefined;
|
|
342
|
-
regions?: import(
|
|
355
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
343
356
|
startTime?: string | undefined;
|
|
344
357
|
title?: string | undefined;
|
|
345
358
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -359,7 +372,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
359
372
|
partialEventState: {
|
|
360
373
|
adress?: string | undefined;
|
|
361
374
|
capacity?: number | null | undefined;
|
|
362
|
-
category?: import(
|
|
375
|
+
category?: import("../../shared").Category | undefined;
|
|
363
376
|
createdAt?: string | undefined;
|
|
364
377
|
description?: string | undefined;
|
|
365
378
|
finishTime?: string | null | undefined;
|
|
@@ -369,9 +382,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
369
382
|
imageUrls?: string[] | undefined;
|
|
370
383
|
isDisplayed?: boolean | undefined;
|
|
371
384
|
isPromoted?: boolean | undefined;
|
|
385
|
+
isPriceRange?: boolean | undefined;
|
|
372
386
|
link?: string | null | undefined;
|
|
373
387
|
price?: number | null | undefined;
|
|
374
|
-
regions?: import(
|
|
388
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
375
389
|
startTime?: string | undefined;
|
|
376
390
|
title?: string | undefined;
|
|
377
391
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;EAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -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>>;
|
|
@@ -13,9 +13,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
13
13
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14
14
|
isDisplayed: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
isPriceRange: z.ZodOptional<z.ZodBoolean>;
|
|
16
17
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
18
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
-
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
19
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
|
|
19
20
|
startTime: z.ZodOptional<z.ZodString>;
|
|
20
21
|
title: z.ZodOptional<z.ZodString>;
|
|
21
22
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -36,7 +37,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
36
37
|
}, "strip", z.ZodTypeAny, {
|
|
37
38
|
adress?: string | undefined;
|
|
38
39
|
capacity?: number | null | undefined;
|
|
39
|
-
category?: import(
|
|
40
|
+
category?: import("../../shared").Category | undefined;
|
|
40
41
|
createdAt?: string | undefined;
|
|
41
42
|
description?: string | undefined;
|
|
42
43
|
finishTime?: string | null | undefined;
|
|
@@ -46,9 +47,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
46
47
|
imageUrls?: string[] | undefined;
|
|
47
48
|
isDisplayed?: boolean | undefined;
|
|
48
49
|
isPromoted?: boolean | undefined;
|
|
50
|
+
isPriceRange?: boolean | undefined;
|
|
49
51
|
link?: string | null | undefined;
|
|
50
52
|
price?: number | null | undefined;
|
|
51
|
-
regions?: import(
|
|
53
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
52
54
|
startTime?: string | undefined;
|
|
53
55
|
title?: string | undefined;
|
|
54
56
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -61,7 +63,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
61
63
|
}, {
|
|
62
64
|
adress?: string | undefined;
|
|
63
65
|
capacity?: number | null | undefined;
|
|
64
|
-
category?: import(
|
|
66
|
+
category?: import("../../shared").Category | undefined;
|
|
65
67
|
createdAt?: string | undefined;
|
|
66
68
|
description?: string | undefined;
|
|
67
69
|
finishTime?: string | null | undefined;
|
|
@@ -71,9 +73,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
71
73
|
imageUrls?: string[] | undefined;
|
|
72
74
|
isDisplayed?: boolean | undefined;
|
|
73
75
|
isPromoted?: boolean | undefined;
|
|
76
|
+
isPriceRange?: boolean | undefined;
|
|
74
77
|
link?: string | null | undefined;
|
|
75
78
|
price?: number | null | undefined;
|
|
76
|
-
regions?: import(
|
|
79
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
77
80
|
startTime?: string | undefined;
|
|
78
81
|
title?: string | undefined;
|
|
79
82
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -93,7 +96,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
93
96
|
partialEventState: {
|
|
94
97
|
adress?: string | undefined;
|
|
95
98
|
capacity?: number | null | undefined;
|
|
96
|
-
category?: import(
|
|
99
|
+
category?: import("../../shared").Category | undefined;
|
|
97
100
|
createdAt?: string | undefined;
|
|
98
101
|
description?: string | undefined;
|
|
99
102
|
finishTime?: string | null | undefined;
|
|
@@ -103,9 +106,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
103
106
|
imageUrls?: string[] | undefined;
|
|
104
107
|
isDisplayed?: boolean | undefined;
|
|
105
108
|
isPromoted?: boolean | undefined;
|
|
109
|
+
isPriceRange?: boolean | undefined;
|
|
106
110
|
link?: string | null | undefined;
|
|
107
111
|
price?: number | null | undefined;
|
|
108
|
-
regions?: import(
|
|
112
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
109
113
|
startTime?: string | undefined;
|
|
110
114
|
title?: string | undefined;
|
|
111
115
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -124,7 +128,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
124
128
|
partialEventState: {
|
|
125
129
|
adress?: string | undefined;
|
|
126
130
|
capacity?: number | null | undefined;
|
|
127
|
-
category?: import(
|
|
131
|
+
category?: import("../../shared").Category | undefined;
|
|
128
132
|
createdAt?: string | undefined;
|
|
129
133
|
description?: string | undefined;
|
|
130
134
|
finishTime?: string | null | undefined;
|
|
@@ -134,9 +138,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
134
138
|
imageUrls?: string[] | undefined;
|
|
135
139
|
isDisplayed?: boolean | undefined;
|
|
136
140
|
isPromoted?: boolean | undefined;
|
|
141
|
+
isPriceRange?: boolean | undefined;
|
|
137
142
|
link?: string | null | undefined;
|
|
138
143
|
price?: number | null | undefined;
|
|
139
|
-
regions?: import(
|
|
144
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
140
145
|
startTime?: string | undefined;
|
|
141
146
|
title?: string | undefined;
|
|
142
147
|
thumbnailUrl?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
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,12 +4105,14 @@ 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(),
|
|
4107
4112
|
imageUrls: URLSchema.array(),
|
|
4108
4113
|
isDisplayed: z.boolean(),
|
|
4109
4114
|
isPromoted: z.boolean(),
|
|
4115
|
+
isPriceRange: z.boolean(),
|
|
4110
4116
|
link: URLSchema.nullable(),
|
|
4111
4117
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4112
4118
|
regions: RegionSchema.array(),
|
|
@@ -4131,6 +4137,7 @@ const CreateEventDTOSchema = z.object({
|
|
|
4131
4137
|
imageBlurHashes: StringSchema.array(),
|
|
4132
4138
|
imageUrls: URLSchema.array(),
|
|
4133
4139
|
isDisplayed: z.boolean(),
|
|
4140
|
+
isPriceRange: z.boolean(),
|
|
4134
4141
|
link: URLSchema.nullable(),
|
|
4135
4142
|
organizersIds: OrganizerIdSchema.array().min(1),
|
|
4136
4143
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
@@ -4248,6 +4255,7 @@ exports.CoerceDateSchema = CoerceDateSchema;
|
|
|
4248
4255
|
exports.CoerceNullableDateSchema = CoerceNullableDateSchema;
|
|
4249
4256
|
exports.ErrorCodes = ErrorCodes;
|
|
4250
4257
|
exports.EventIdSchema = EventIdSchema;
|
|
4258
|
+
exports.GPSCoordinatesSchema = GPSCoordinatesSchema;
|
|
4251
4259
|
exports.OrganizerIdSchema = OrganizerIdSchema;
|
|
4252
4260
|
exports.Region = Region;
|
|
4253
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,12 +4103,14 @@ 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(),
|
|
4105
4110
|
imageUrls: URLSchema.array(),
|
|
4106
4111
|
isDisplayed: z.boolean(),
|
|
4107
4112
|
isPromoted: z.boolean(),
|
|
4113
|
+
isPriceRange: z.boolean(),
|
|
4108
4114
|
link: URLSchema.nullable(),
|
|
4109
4115
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4110
4116
|
regions: RegionSchema.array(),
|
|
@@ -4129,6 +4135,7 @@ const CreateEventDTOSchema = z.object({
|
|
|
4129
4135
|
imageBlurHashes: StringSchema.array(),
|
|
4130
4136
|
imageUrls: URLSchema.array(),
|
|
4131
4137
|
isDisplayed: z.boolean(),
|
|
4138
|
+
isPriceRange: z.boolean(),
|
|
4132
4139
|
link: URLSchema.nullable(),
|
|
4133
4140
|
organizersIds: OrganizerIdSchema.array().min(1),
|
|
4134
4141
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
@@ -4247,6 +4254,7 @@ export {
|
|
|
4247
4254
|
CoerceNullableDateSchema,
|
|
4248
4255
|
ErrorCodes,
|
|
4249
4256
|
EventIdSchema,
|
|
4257
|
+
GPSCoordinatesSchema,
|
|
4250
4258
|
OrganizerIdSchema,
|
|
4251
4259
|
Region,
|
|
4252
4260
|
RegionSchema,
|