@sortipei/api-contracts 0.1.43 → 0.2.1
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 +96 -42
- package/dist/V1/api/event.d.ts.map +1 -1
- package/dist/V1/api/statistics.d.ts +14 -14
- package/dist/V1/external/partial-imported-event.d.ts +41 -15
- 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/dist/shared/stats.d.ts +20 -20
- package/package.json +1 -1
package/dist/V1/api/event.d.ts
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const GPSCoordinatesSchema: z.ZodObject<{
|
|
3
|
+
latitude: z.ZodNumber;
|
|
4
|
+
longitude: z.ZodNumber;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
latitude: number;
|
|
7
|
+
longitude: number;
|
|
8
|
+
}, {
|
|
9
|
+
latitude: number;
|
|
10
|
+
longitude: number;
|
|
11
|
+
}>;
|
|
2
12
|
export declare const EventDTOSchema: z.ZodObject<{
|
|
3
13
|
adress: z.ZodString;
|
|
4
14
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
5
|
-
category: z.ZodNativeEnum<typeof import(
|
|
15
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
6
16
|
createdAt: z.ZodString;
|
|
7
17
|
description: z.ZodString;
|
|
8
18
|
externalSourceId: z.ZodNullable<z.ZodString>;
|
|
9
19
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
20
|
+
gpsCoordinates: z.ZodObject<{
|
|
21
|
+
latitude: z.ZodNumber;
|
|
22
|
+
longitude: z.ZodNumber;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
latitude: number;
|
|
25
|
+
longitude: number;
|
|
26
|
+
}, {
|
|
27
|
+
latitude: number;
|
|
28
|
+
longitude: number;
|
|
29
|
+
}>;
|
|
10
30
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
11
31
|
id: z.ZodBranded<z.ZodString, "EventId">;
|
|
12
32
|
imageBlurHashes: z.ZodArray<z.ZodString, "many">;
|
|
@@ -18,8 +38,8 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
18
38
|
isPromoted: z.ZodBoolean;
|
|
19
39
|
link: z.ZodNullable<z.ZodString>;
|
|
20
40
|
price: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
22
|
-
secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import(
|
|
41
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
42
|
+
secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>;
|
|
23
43
|
startTime: z.ZodString;
|
|
24
44
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
25
45
|
ticketsUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -38,8 +58,8 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
38
58
|
name: string;
|
|
39
59
|
}>, "many">;
|
|
40
60
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
regions: import(
|
|
42
|
-
category: import(
|
|
61
|
+
regions: import("../../shared").Region[];
|
|
62
|
+
category: import("../../shared").Category;
|
|
43
63
|
startTime: string;
|
|
44
64
|
createdAt: string;
|
|
45
65
|
id: string & z.BRAND<"EventId">;
|
|
@@ -50,6 +70,10 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
50
70
|
description: string;
|
|
51
71
|
externalSourceId: string | null;
|
|
52
72
|
finishTime: string | null;
|
|
73
|
+
gpsCoordinates: {
|
|
74
|
+
latitude: number;
|
|
75
|
+
longitude: number;
|
|
76
|
+
};
|
|
53
77
|
hasHandicapAccess: boolean | null;
|
|
54
78
|
imageBlurHashes: string[];
|
|
55
79
|
imageUrls: string[];
|
|
@@ -59,7 +83,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
59
83
|
isPriceRange: boolean;
|
|
60
84
|
isPromoted: boolean;
|
|
61
85
|
price: number | null;
|
|
62
|
-
secondaryCategory: import(
|
|
86
|
+
secondaryCategory: import("../../shared").Category | null;
|
|
63
87
|
thumbnailUrl: string | null;
|
|
64
88
|
ticketsUrl: string | null;
|
|
65
89
|
organizers: {
|
|
@@ -68,8 +92,8 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
68
92
|
name: string;
|
|
69
93
|
}[];
|
|
70
94
|
}, {
|
|
71
|
-
regions: import(
|
|
72
|
-
category: import(
|
|
95
|
+
regions: import("../../shared").Region[];
|
|
96
|
+
category: import("../../shared").Category;
|
|
73
97
|
startTime: string;
|
|
74
98
|
createdAt: string;
|
|
75
99
|
id: string;
|
|
@@ -80,6 +104,10 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
80
104
|
description: string;
|
|
81
105
|
externalSourceId: string | null;
|
|
82
106
|
finishTime: string | null;
|
|
107
|
+
gpsCoordinates: {
|
|
108
|
+
latitude: number;
|
|
109
|
+
longitude: number;
|
|
110
|
+
};
|
|
83
111
|
hasHandicapAccess: boolean | null;
|
|
84
112
|
imageBlurHashes: string[];
|
|
85
113
|
imageUrls: string[];
|
|
@@ -89,7 +117,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
89
117
|
isPriceRange: boolean;
|
|
90
118
|
isPromoted: boolean;
|
|
91
119
|
price: number | null;
|
|
92
|
-
secondaryCategory: import(
|
|
120
|
+
secondaryCategory: import("../../shared").Category | null;
|
|
93
121
|
thumbnailUrl: string | null;
|
|
94
122
|
ticketsUrl: string | null;
|
|
95
123
|
organizers: {
|
|
@@ -101,7 +129,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
101
129
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
102
130
|
adress: z.ZodString;
|
|
103
131
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
104
|
-
category: z.ZodNativeEnum<typeof import(
|
|
132
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
105
133
|
description: z.ZodString;
|
|
106
134
|
externalSourceId: z.ZodNullable<z.ZodString>;
|
|
107
135
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
@@ -116,15 +144,15 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
116
144
|
link: z.ZodNullable<z.ZodString>;
|
|
117
145
|
organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
|
|
118
146
|
price: z.ZodNullable<z.ZodNumber>;
|
|
119
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
120
|
-
secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import(
|
|
147
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
148
|
+
secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>;
|
|
121
149
|
startTime: z.ZodString;
|
|
122
150
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
123
151
|
title: z.ZodString;
|
|
124
152
|
ticketsUrl: z.ZodNullable<z.ZodString>;
|
|
125
153
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
regions: import(
|
|
127
|
-
category: import(
|
|
154
|
+
regions: import("../../shared").Region[];
|
|
155
|
+
category: import("../../shared").Category;
|
|
128
156
|
startTime: string;
|
|
129
157
|
id: string & z.BRAND<"EventId">;
|
|
130
158
|
link: string | null;
|
|
@@ -142,13 +170,13 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
142
170
|
isOldTimes: boolean;
|
|
143
171
|
isPriceRange: boolean;
|
|
144
172
|
price: number | null;
|
|
145
|
-
secondaryCategory: import(
|
|
173
|
+
secondaryCategory: import("../../shared").Category | null;
|
|
146
174
|
thumbnailUrl: string | null;
|
|
147
175
|
ticketsUrl: string | null;
|
|
148
176
|
organizersIds: (string & z.BRAND<"OrganizerId">)[];
|
|
149
177
|
}, {
|
|
150
|
-
regions: import(
|
|
151
|
-
category: import(
|
|
178
|
+
regions: import("../../shared").Region[];
|
|
179
|
+
category: import("../../shared").Category;
|
|
152
180
|
startTime: string;
|
|
153
181
|
id: string;
|
|
154
182
|
link: string | null;
|
|
@@ -166,7 +194,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
166
194
|
isOldTimes: boolean;
|
|
167
195
|
isPriceRange: boolean;
|
|
168
196
|
price: number | null;
|
|
169
|
-
secondaryCategory: import(
|
|
197
|
+
secondaryCategory: import("../../shared").Category | null;
|
|
170
198
|
thumbnailUrl: string | null;
|
|
171
199
|
ticketsUrl: string | null;
|
|
172
200
|
organizersIds: string[];
|
|
@@ -174,7 +202,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
174
202
|
export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
175
203
|
adress: z.ZodString;
|
|
176
204
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
177
|
-
category: z.ZodNativeEnum<typeof import(
|
|
205
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
178
206
|
description: z.ZodString;
|
|
179
207
|
externalSourceId: z.ZodNullable<z.ZodString>;
|
|
180
208
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
@@ -189,15 +217,15 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
189
217
|
link: z.ZodNullable<z.ZodString>;
|
|
190
218
|
organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
|
|
191
219
|
price: z.ZodNullable<z.ZodNumber>;
|
|
192
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
193
|
-
secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import(
|
|
220
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
221
|
+
secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>;
|
|
194
222
|
startTime: z.ZodString;
|
|
195
223
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
196
224
|
title: z.ZodString;
|
|
197
225
|
ticketsUrl: z.ZodNullable<z.ZodString>;
|
|
198
226
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
199
|
-
regions: import(
|
|
200
|
-
category: import(
|
|
227
|
+
regions: import("../../shared").Region[];
|
|
228
|
+
category: import("../../shared").Category;
|
|
201
229
|
startTime: string;
|
|
202
230
|
link: string | null;
|
|
203
231
|
title: string;
|
|
@@ -214,13 +242,13 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
214
242
|
isOldTimes: boolean;
|
|
215
243
|
isPriceRange: boolean;
|
|
216
244
|
price: number | null;
|
|
217
|
-
secondaryCategory: import(
|
|
245
|
+
secondaryCategory: import("../../shared").Category | null;
|
|
218
246
|
thumbnailUrl: string | null;
|
|
219
247
|
ticketsUrl: string | null;
|
|
220
248
|
organizersIds: (string & z.BRAND<"OrganizerId">)[];
|
|
221
249
|
}, {
|
|
222
|
-
regions: import(
|
|
223
|
-
category: import(
|
|
250
|
+
regions: import("../../shared").Region[];
|
|
251
|
+
category: import("../../shared").Category;
|
|
224
252
|
startTime: string;
|
|
225
253
|
link: string | null;
|
|
226
254
|
title: string;
|
|
@@ -237,7 +265,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
237
265
|
isOldTimes: boolean;
|
|
238
266
|
isPriceRange: boolean;
|
|
239
267
|
price: number | null;
|
|
240
|
-
secondaryCategory: import(
|
|
268
|
+
secondaryCategory: import("../../shared").Category | null;
|
|
241
269
|
thumbnailUrl: string | null;
|
|
242
270
|
ticketsUrl: string | null;
|
|
243
271
|
organizersIds: string[];
|
|
@@ -282,11 +310,21 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
282
310
|
partialEventState: z.ZodObject<{
|
|
283
311
|
adress: z.ZodOptional<z.ZodString>;
|
|
284
312
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
285
|
-
category: z.ZodOptional<z.ZodNativeEnum<typeof import(
|
|
313
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
|
|
286
314
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
287
315
|
description: z.ZodOptional<z.ZodString>;
|
|
288
316
|
externalSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
317
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
|
+
gpsCoordinates: z.ZodOptional<z.ZodObject<{
|
|
319
|
+
latitude: z.ZodNumber;
|
|
320
|
+
longitude: z.ZodNumber;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
latitude: number;
|
|
323
|
+
longitude: number;
|
|
324
|
+
}, {
|
|
325
|
+
latitude: number;
|
|
326
|
+
longitude: number;
|
|
327
|
+
}>>;
|
|
290
328
|
hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
291
329
|
id: z.ZodOptional<z.ZodBranded<z.ZodString, "EventId">>;
|
|
292
330
|
imageBlurHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -298,8 +336,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
298
336
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
299
337
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
338
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
301
|
-
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
302
|
-
secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import(
|
|
339
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
|
|
340
|
+
secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>>;
|
|
303
341
|
startTime: z.ZodOptional<z.ZodString>;
|
|
304
342
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
343
|
ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -318,8 +356,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
318
356
|
name: string;
|
|
319
357
|
}>, "many">>;
|
|
320
358
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
regions?: import(
|
|
322
|
-
category?: import(
|
|
359
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
360
|
+
category?: import("../../shared").Category | undefined;
|
|
323
361
|
startTime?: string | undefined;
|
|
324
362
|
createdAt?: string | undefined;
|
|
325
363
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
@@ -330,6 +368,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
330
368
|
description?: string | undefined;
|
|
331
369
|
externalSourceId?: string | null | undefined;
|
|
332
370
|
finishTime?: string | null | undefined;
|
|
371
|
+
gpsCoordinates?: {
|
|
372
|
+
latitude: number;
|
|
373
|
+
longitude: number;
|
|
374
|
+
} | undefined;
|
|
333
375
|
hasHandicapAccess?: boolean | null | undefined;
|
|
334
376
|
imageBlurHashes?: string[] | undefined;
|
|
335
377
|
imageUrls?: string[] | undefined;
|
|
@@ -339,7 +381,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
339
381
|
isPriceRange?: boolean | undefined;
|
|
340
382
|
isPromoted?: boolean | undefined;
|
|
341
383
|
price?: number | null | undefined;
|
|
342
|
-
secondaryCategory?: import(
|
|
384
|
+
secondaryCategory?: import("../../shared").Category | null | undefined;
|
|
343
385
|
thumbnailUrl?: string | null | undefined;
|
|
344
386
|
ticketsUrl?: string | null | undefined;
|
|
345
387
|
organizers?: {
|
|
@@ -348,8 +390,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
348
390
|
name: string;
|
|
349
391
|
}[] | undefined;
|
|
350
392
|
}, {
|
|
351
|
-
regions?: import(
|
|
352
|
-
category?: import(
|
|
393
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
394
|
+
category?: import("../../shared").Category | undefined;
|
|
353
395
|
startTime?: string | undefined;
|
|
354
396
|
createdAt?: string | undefined;
|
|
355
397
|
id?: string | undefined;
|
|
@@ -360,6 +402,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
360
402
|
description?: string | undefined;
|
|
361
403
|
externalSourceId?: string | null | undefined;
|
|
362
404
|
finishTime?: string | null | undefined;
|
|
405
|
+
gpsCoordinates?: {
|
|
406
|
+
latitude: number;
|
|
407
|
+
longitude: number;
|
|
408
|
+
} | undefined;
|
|
363
409
|
hasHandicapAccess?: boolean | null | undefined;
|
|
364
410
|
imageBlurHashes?: string[] | undefined;
|
|
365
411
|
imageUrls?: string[] | undefined;
|
|
@@ -369,7 +415,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
369
415
|
isPriceRange?: boolean | undefined;
|
|
370
416
|
isPromoted?: boolean | undefined;
|
|
371
417
|
price?: number | null | undefined;
|
|
372
|
-
secondaryCategory?: import(
|
|
418
|
+
secondaryCategory?: import("../../shared").Category | null | undefined;
|
|
373
419
|
thumbnailUrl?: string | null | undefined;
|
|
374
420
|
ticketsUrl?: string | null | undefined;
|
|
375
421
|
organizers?: {
|
|
@@ -386,8 +432,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
386
432
|
id: string;
|
|
387
433
|
organizersNames: string[];
|
|
388
434
|
partialEventState: {
|
|
389
|
-
regions?: import(
|
|
390
|
-
category?: import(
|
|
435
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
436
|
+
category?: import("../../shared").Category | undefined;
|
|
391
437
|
startTime?: string | undefined;
|
|
392
438
|
createdAt?: string | undefined;
|
|
393
439
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
@@ -398,6 +444,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
398
444
|
description?: string | undefined;
|
|
399
445
|
externalSourceId?: string | null | undefined;
|
|
400
446
|
finishTime?: string | null | undefined;
|
|
447
|
+
gpsCoordinates?: {
|
|
448
|
+
latitude: number;
|
|
449
|
+
longitude: number;
|
|
450
|
+
} | undefined;
|
|
401
451
|
hasHandicapAccess?: boolean | null | undefined;
|
|
402
452
|
imageBlurHashes?: string[] | undefined;
|
|
403
453
|
imageUrls?: string[] | undefined;
|
|
@@ -407,7 +457,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
407
457
|
isPriceRange?: boolean | undefined;
|
|
408
458
|
isPromoted?: boolean | undefined;
|
|
409
459
|
price?: number | null | undefined;
|
|
410
|
-
secondaryCategory?: import(
|
|
460
|
+
secondaryCategory?: import("../../shared").Category | null | undefined;
|
|
411
461
|
thumbnailUrl?: string | null | undefined;
|
|
412
462
|
ticketsUrl?: string | null | undefined;
|
|
413
463
|
organizers?: {
|
|
@@ -423,8 +473,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
423
473
|
id: string;
|
|
424
474
|
organizersNames: string[];
|
|
425
475
|
partialEventState: {
|
|
426
|
-
regions?: import(
|
|
427
|
-
category?: import(
|
|
476
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
477
|
+
category?: import("../../shared").Category | undefined;
|
|
428
478
|
startTime?: string | undefined;
|
|
429
479
|
createdAt?: string | undefined;
|
|
430
480
|
id?: string | undefined;
|
|
@@ -435,6 +485,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
435
485
|
description?: string | undefined;
|
|
436
486
|
externalSourceId?: string | null | undefined;
|
|
437
487
|
finishTime?: string | null | undefined;
|
|
488
|
+
gpsCoordinates?: {
|
|
489
|
+
latitude: number;
|
|
490
|
+
longitude: number;
|
|
491
|
+
} | undefined;
|
|
438
492
|
hasHandicapAccess?: boolean | null | undefined;
|
|
439
493
|
imageBlurHashes?: string[] | undefined;
|
|
440
494
|
imageUrls?: string[] | undefined;
|
|
@@ -444,7 +498,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
444
498
|
isPriceRange?: boolean | undefined;
|
|
445
499
|
isPromoted?: boolean | undefined;
|
|
446
500
|
price?: number | null | undefined;
|
|
447
|
-
secondaryCategory?: import(
|
|
501
|
+
secondaryCategory?: import("../../shared").Category | null | undefined;
|
|
448
502
|
thumbnailUrl?: string | null | undefined;
|
|
449
503
|
ticketsUrl?: string | null | undefined;
|
|
450
504
|
organizers?: {
|
|
@@ -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,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB/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"}
|
|
@@ -229,14 +229,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
229
229
|
time: string;
|
|
230
230
|
}>, z.ZodObject<{
|
|
231
231
|
data: z.ZodObject<{
|
|
232
|
-
category: z.ZodNativeEnum<typeof import(
|
|
232
|
+
category: z.ZodNativeEnum<typeof import('../../shared').Category>;
|
|
233
233
|
userId: z.ZodString;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
235
|
userId: string;
|
|
236
|
-
category: import(
|
|
236
|
+
category: import('../../shared').Category;
|
|
237
237
|
}, {
|
|
238
238
|
userId: string;
|
|
239
|
-
category: import(
|
|
239
|
+
category: import('../../shared').Category;
|
|
240
240
|
}>;
|
|
241
241
|
time: z.ZodString;
|
|
242
242
|
type: z.ZodLiteral<"category-filter-applied">;
|
|
@@ -244,14 +244,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
244
244
|
type: "category-filter-applied";
|
|
245
245
|
data: {
|
|
246
246
|
userId: string;
|
|
247
|
-
category: import(
|
|
247
|
+
category: import('../../shared').Category;
|
|
248
248
|
};
|
|
249
249
|
time: string;
|
|
250
250
|
}, {
|
|
251
251
|
type: "category-filter-applied";
|
|
252
252
|
data: {
|
|
253
253
|
userId: string;
|
|
254
|
-
category: import(
|
|
254
|
+
category: import('../../shared').Category;
|
|
255
255
|
};
|
|
256
256
|
time: string;
|
|
257
257
|
}>, z.ZodObject<{
|
|
@@ -521,14 +521,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
521
521
|
time: string;
|
|
522
522
|
}>, z.ZodObject<{
|
|
523
523
|
data: z.ZodObject<{
|
|
524
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
524
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
|
|
525
525
|
userId: z.ZodString;
|
|
526
526
|
}, "strip", z.ZodTypeAny, {
|
|
527
527
|
userId: string;
|
|
528
|
-
regions: import(
|
|
528
|
+
regions: import('../../shared').Region[];
|
|
529
529
|
}, {
|
|
530
530
|
userId: string;
|
|
531
|
-
regions: import(
|
|
531
|
+
regions: import('../../shared').Region[];
|
|
532
532
|
}>;
|
|
533
533
|
time: z.ZodString;
|
|
534
534
|
type: z.ZodLiteral<"region-filter-applied">;
|
|
@@ -536,14 +536,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
536
536
|
type: "region-filter-applied";
|
|
537
537
|
data: {
|
|
538
538
|
userId: string;
|
|
539
|
-
regions: import(
|
|
539
|
+
regions: import('../../shared').Region[];
|
|
540
540
|
};
|
|
541
541
|
time: string;
|
|
542
542
|
}, {
|
|
543
543
|
type: "region-filter-applied";
|
|
544
544
|
data: {
|
|
545
545
|
userId: string;
|
|
546
|
-
regions: import(
|
|
546
|
+
regions: import('../../shared').Region[];
|
|
547
547
|
};
|
|
548
548
|
time: string;
|
|
549
549
|
}>]>;
|
|
@@ -607,7 +607,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
607
607
|
type: "region-filter-applied";
|
|
608
608
|
data: {
|
|
609
609
|
userId: string;
|
|
610
|
-
regions: import(
|
|
610
|
+
regions: import('../../shared').Region[];
|
|
611
611
|
};
|
|
612
612
|
time: string;
|
|
613
613
|
} | {
|
|
@@ -620,7 +620,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
620
620
|
type: "category-filter-applied";
|
|
621
621
|
data: {
|
|
622
622
|
userId: string;
|
|
623
|
-
category: import(
|
|
623
|
+
category: import('../../shared').Category;
|
|
624
624
|
};
|
|
625
625
|
time: string;
|
|
626
626
|
} | {
|
|
@@ -706,7 +706,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
706
706
|
type: "region-filter-applied";
|
|
707
707
|
data: {
|
|
708
708
|
userId: string;
|
|
709
|
-
regions: import(
|
|
709
|
+
regions: import('../../shared').Region[];
|
|
710
710
|
};
|
|
711
711
|
time: string;
|
|
712
712
|
} | {
|
|
@@ -719,7 +719,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
719
719
|
type: "category-filter-applied";
|
|
720
720
|
data: {
|
|
721
721
|
userId: string;
|
|
722
|
-
category: import(
|
|
722
|
+
category: import('../../shared').Category;
|
|
723
723
|
};
|
|
724
724
|
time: string;
|
|
725
725
|
} | {
|
|
@@ -3,11 +3,21 @@ 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
|
externalSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
gpsCoordinates: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
latitude: z.ZodNumber;
|
|
13
|
+
longitude: z.ZodNumber;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
latitude: number;
|
|
16
|
+
longitude: number;
|
|
17
|
+
}, {
|
|
18
|
+
latitude: number;
|
|
19
|
+
longitude: number;
|
|
20
|
+
}>>;
|
|
11
21
|
hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
22
|
id: z.ZodOptional<z.ZodBranded<z.ZodString, "EventId">>;
|
|
13
23
|
imageBlurHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -19,8 +29,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
19
29
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
20
30
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
31
|
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
-
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
23
|
-
secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import(
|
|
32
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
|
|
33
|
+
secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>>;
|
|
24
34
|
startTime: z.ZodOptional<z.ZodString>;
|
|
25
35
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
36
|
ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -39,8 +49,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
39
49
|
name: string;
|
|
40
50
|
}>, "many">>;
|
|
41
51
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
regions?: import(
|
|
43
|
-
category?: import(
|
|
52
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
53
|
+
category?: import("../../shared").Category | undefined;
|
|
44
54
|
startTime?: string | undefined;
|
|
45
55
|
createdAt?: string | undefined;
|
|
46
56
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
@@ -51,6 +61,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
51
61
|
description?: string | undefined;
|
|
52
62
|
externalSourceId?: string | null | undefined;
|
|
53
63
|
finishTime?: string | null | undefined;
|
|
64
|
+
gpsCoordinates?: {
|
|
65
|
+
latitude: number;
|
|
66
|
+
longitude: number;
|
|
67
|
+
} | undefined;
|
|
54
68
|
hasHandicapAccess?: boolean | null | undefined;
|
|
55
69
|
imageBlurHashes?: string[] | undefined;
|
|
56
70
|
imageUrls?: string[] | undefined;
|
|
@@ -60,7 +74,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
60
74
|
isPriceRange?: boolean | undefined;
|
|
61
75
|
isPromoted?: boolean | undefined;
|
|
62
76
|
price?: number | null | undefined;
|
|
63
|
-
secondaryCategory?: import(
|
|
77
|
+
secondaryCategory?: import("../../shared").Category | null | undefined;
|
|
64
78
|
thumbnailUrl?: string | null | undefined;
|
|
65
79
|
ticketsUrl?: string | null | undefined;
|
|
66
80
|
organizers?: {
|
|
@@ -69,8 +83,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
69
83
|
name: string;
|
|
70
84
|
}[] | undefined;
|
|
71
85
|
}, {
|
|
72
|
-
regions?: import(
|
|
73
|
-
category?: import(
|
|
86
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
87
|
+
category?: import("../../shared").Category | undefined;
|
|
74
88
|
startTime?: string | undefined;
|
|
75
89
|
createdAt?: string | undefined;
|
|
76
90
|
id?: string | undefined;
|
|
@@ -81,6 +95,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
81
95
|
description?: string | undefined;
|
|
82
96
|
externalSourceId?: string | null | undefined;
|
|
83
97
|
finishTime?: string | null | undefined;
|
|
98
|
+
gpsCoordinates?: {
|
|
99
|
+
latitude: number;
|
|
100
|
+
longitude: number;
|
|
101
|
+
} | undefined;
|
|
84
102
|
hasHandicapAccess?: boolean | null | undefined;
|
|
85
103
|
imageBlurHashes?: string[] | undefined;
|
|
86
104
|
imageUrls?: string[] | undefined;
|
|
@@ -90,7 +108,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
90
108
|
isPriceRange?: boolean | undefined;
|
|
91
109
|
isPromoted?: boolean | undefined;
|
|
92
110
|
price?: number | null | undefined;
|
|
93
|
-
secondaryCategory?: import(
|
|
111
|
+
secondaryCategory?: import("../../shared").Category | null | undefined;
|
|
94
112
|
thumbnailUrl?: string | null | undefined;
|
|
95
113
|
ticketsUrl?: string | null | undefined;
|
|
96
114
|
organizers?: {
|
|
@@ -107,8 +125,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
107
125
|
userId: string;
|
|
108
126
|
organizersNames: string[];
|
|
109
127
|
partialEventState: {
|
|
110
|
-
regions?: import(
|
|
111
|
-
category?: import(
|
|
128
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
129
|
+
category?: import("../../shared").Category | undefined;
|
|
112
130
|
startTime?: string | undefined;
|
|
113
131
|
createdAt?: string | undefined;
|
|
114
132
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
@@ -119,6 +137,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
119
137
|
description?: string | undefined;
|
|
120
138
|
externalSourceId?: string | null | undefined;
|
|
121
139
|
finishTime?: string | null | undefined;
|
|
140
|
+
gpsCoordinates?: {
|
|
141
|
+
latitude: number;
|
|
142
|
+
longitude: number;
|
|
143
|
+
} | undefined;
|
|
122
144
|
hasHandicapAccess?: boolean | null | undefined;
|
|
123
145
|
imageBlurHashes?: string[] | undefined;
|
|
124
146
|
imageUrls?: string[] | undefined;
|
|
@@ -128,7 +150,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
128
150
|
isPriceRange?: boolean | undefined;
|
|
129
151
|
isPromoted?: boolean | undefined;
|
|
130
152
|
price?: number | null | undefined;
|
|
131
|
-
secondaryCategory?: import(
|
|
153
|
+
secondaryCategory?: import("../../shared").Category | null | undefined;
|
|
132
154
|
thumbnailUrl?: string | null | undefined;
|
|
133
155
|
ticketsUrl?: string | null | undefined;
|
|
134
156
|
organizers?: {
|
|
@@ -143,8 +165,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
143
165
|
userId: string;
|
|
144
166
|
organizersNames: string[];
|
|
145
167
|
partialEventState: {
|
|
146
|
-
regions?: import(
|
|
147
|
-
category?: import(
|
|
168
|
+
regions?: import("../../shared").Region[] | undefined;
|
|
169
|
+
category?: import("../../shared").Category | undefined;
|
|
148
170
|
startTime?: string | undefined;
|
|
149
171
|
createdAt?: string | undefined;
|
|
150
172
|
id?: string | undefined;
|
|
@@ -155,6 +177,10 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
155
177
|
description?: string | undefined;
|
|
156
178
|
externalSourceId?: string | null | undefined;
|
|
157
179
|
finishTime?: string | null | undefined;
|
|
180
|
+
gpsCoordinates?: {
|
|
181
|
+
latitude: number;
|
|
182
|
+
longitude: number;
|
|
183
|
+
} | undefined;
|
|
158
184
|
hasHandicapAccess?: boolean | null | undefined;
|
|
159
185
|
imageBlurHashes?: string[] | undefined;
|
|
160
186
|
imageUrls?: string[] | undefined;
|
|
@@ -164,7 +190,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
164
190
|
isPriceRange?: boolean | undefined;
|
|
165
191
|
isPromoted?: boolean | undefined;
|
|
166
192
|
price?: number | null | undefined;
|
|
167
|
-
secondaryCategory?: import(
|
|
193
|
+
secondaryCategory?: import("../../shared").Category | null | undefined;
|
|
168
194
|
thumbnailUrl?: string | null | undefined;
|
|
169
195
|
ticketsUrl?: string | null | undefined;
|
|
170
196
|
organizers?: {
|
|
@@ -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
|
@@ -4181,6 +4181,7 @@ const OldTimesFilterAppliedStatisticSchema = z.object({
|
|
|
4181
4181
|
const AdPressedStatisticSchema = z.object({
|
|
4182
4182
|
data: z.object({
|
|
4183
4183
|
adId: UUIDSchema,
|
|
4184
|
+
adTitle: z.string(),
|
|
4184
4185
|
userId: UUIDSchema
|
|
4185
4186
|
}),
|
|
4186
4187
|
time: z.string().datetime(),
|
|
@@ -4372,7 +4373,13 @@ const TopEventDTOSchema = z.object({
|
|
|
4372
4373
|
eventId: EventIdSchema,
|
|
4373
4374
|
eventTitle: StringSchema
|
|
4374
4375
|
});
|
|
4376
|
+
const AdStatDTOSchema = z.object({
|
|
4377
|
+
adId: z.union([MainAdIdSchema, RegionalAdIdSchema]),
|
|
4378
|
+
adTitle: StringSchema,
|
|
4379
|
+
pressedCount: z.number()
|
|
4380
|
+
});
|
|
4375
4381
|
const GlobalStatsDTOSchema = z.object({
|
|
4382
|
+
allAdsStats: AdStatDTOSchema.array(),
|
|
4376
4383
|
currentFavoritesCount: z.number(),
|
|
4377
4384
|
eventsCount: z.number(),
|
|
4378
4385
|
openedEventsCount: z.number(),
|
|
@@ -4395,6 +4402,7 @@ const constraints = {
|
|
|
4395
4402
|
};
|
|
4396
4403
|
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4397
4404
|
__proto__: null,
|
|
4405
|
+
AdStatDTOSchema,
|
|
4398
4406
|
AppConfigurationDTOSchema,
|
|
4399
4407
|
CreateEventDTOSchema,
|
|
4400
4408
|
CreateOrganizerDTOSchema,
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4179,6 +4179,7 @@ const OldTimesFilterAppliedStatisticSchema = z.object({
|
|
|
4179
4179
|
const AdPressedStatisticSchema = z.object({
|
|
4180
4180
|
data: z.object({
|
|
4181
4181
|
adId: UUIDSchema,
|
|
4182
|
+
adTitle: z.string(),
|
|
4182
4183
|
userId: UUIDSchema
|
|
4183
4184
|
}),
|
|
4184
4185
|
time: z.string().datetime(),
|
|
@@ -4370,7 +4371,13 @@ const TopEventDTOSchema = z.object({
|
|
|
4370
4371
|
eventId: EventIdSchema,
|
|
4371
4372
|
eventTitle: StringSchema
|
|
4372
4373
|
});
|
|
4374
|
+
const AdStatDTOSchema = z.object({
|
|
4375
|
+
adId: z.union([MainAdIdSchema, RegionalAdIdSchema]),
|
|
4376
|
+
adTitle: StringSchema,
|
|
4377
|
+
pressedCount: z.number()
|
|
4378
|
+
});
|
|
4373
4379
|
const GlobalStatsDTOSchema = z.object({
|
|
4380
|
+
allAdsStats: AdStatDTOSchema.array(),
|
|
4374
4381
|
currentFavoritesCount: z.number(),
|
|
4375
4382
|
eventsCount: z.number(),
|
|
4376
4383
|
openedEventsCount: z.number(),
|
|
@@ -4393,6 +4400,7 @@ const constraints = {
|
|
|
4393
4400
|
};
|
|
4394
4401
|
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4395
4402
|
__proto__: null,
|
|
4403
|
+
AdStatDTOSchema,
|
|
4396
4404
|
AppConfigurationDTOSchema,
|
|
4397
4405
|
CreateEventDTOSchema,
|
|
4398
4406
|
CreateOrganizerDTOSchema,
|
package/dist/shared/stats.d.ts
CHANGED
|
@@ -220,14 +220,14 @@ export declare const EventSeeMoreClickedStatisticsSchema: z.ZodObject<{
|
|
|
220
220
|
}>;
|
|
221
221
|
export declare const RegionFilterAppliedStatisticSchema: z.ZodObject<{
|
|
222
222
|
data: z.ZodObject<{
|
|
223
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
223
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import('./event').Region>, "many">;
|
|
224
224
|
userId: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
userId: string;
|
|
227
|
-
regions: import(
|
|
227
|
+
regions: import('./event').Region[];
|
|
228
228
|
}, {
|
|
229
229
|
userId: string;
|
|
230
|
-
regions: import(
|
|
230
|
+
regions: import('./event').Region[];
|
|
231
231
|
}>;
|
|
232
232
|
time: z.ZodString;
|
|
233
233
|
type: z.ZodLiteral<"region-filter-applied">;
|
|
@@ -235,14 +235,14 @@ export declare const RegionFilterAppliedStatisticSchema: z.ZodObject<{
|
|
|
235
235
|
type: "region-filter-applied";
|
|
236
236
|
data: {
|
|
237
237
|
userId: string;
|
|
238
|
-
regions: import(
|
|
238
|
+
regions: import('./event').Region[];
|
|
239
239
|
};
|
|
240
240
|
time: string;
|
|
241
241
|
}, {
|
|
242
242
|
type: "region-filter-applied";
|
|
243
243
|
data: {
|
|
244
244
|
userId: string;
|
|
245
|
-
regions: import(
|
|
245
|
+
regions: import('./event').Region[];
|
|
246
246
|
};
|
|
247
247
|
time: string;
|
|
248
248
|
}>;
|
|
@@ -271,14 +271,14 @@ export declare const FreeFilterAppliedStatisticSchema: z.ZodObject<{
|
|
|
271
271
|
}>;
|
|
272
272
|
export declare const CategoryFilterAppliedStatisticSchema: z.ZodObject<{
|
|
273
273
|
data: z.ZodObject<{
|
|
274
|
-
category: z.ZodNativeEnum<typeof import(
|
|
274
|
+
category: z.ZodNativeEnum<typeof import('./event').Category>;
|
|
275
275
|
userId: z.ZodString;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
userId: string;
|
|
278
|
-
category: import(
|
|
278
|
+
category: import('./event').Category;
|
|
279
279
|
}, {
|
|
280
280
|
userId: string;
|
|
281
|
-
category: import(
|
|
281
|
+
category: import('./event').Category;
|
|
282
282
|
}>;
|
|
283
283
|
time: z.ZodString;
|
|
284
284
|
type: z.ZodLiteral<"category-filter-applied">;
|
|
@@ -286,14 +286,14 @@ export declare const CategoryFilterAppliedStatisticSchema: z.ZodObject<{
|
|
|
286
286
|
type: "category-filter-applied";
|
|
287
287
|
data: {
|
|
288
288
|
userId: string;
|
|
289
|
-
category: import(
|
|
289
|
+
category: import('./event').Category;
|
|
290
290
|
};
|
|
291
291
|
time: string;
|
|
292
292
|
}, {
|
|
293
293
|
type: "category-filter-applied";
|
|
294
294
|
data: {
|
|
295
295
|
userId: string;
|
|
296
|
-
category: import(
|
|
296
|
+
category: import('./event').Category;
|
|
297
297
|
};
|
|
298
298
|
time: string;
|
|
299
299
|
}>;
|
|
@@ -442,14 +442,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
442
442
|
time: string;
|
|
443
443
|
}>, z.ZodObject<{
|
|
444
444
|
data: z.ZodObject<{
|
|
445
|
-
category: z.ZodNativeEnum<typeof import(
|
|
445
|
+
category: z.ZodNativeEnum<typeof import('./event').Category>;
|
|
446
446
|
userId: z.ZodString;
|
|
447
447
|
}, "strip", z.ZodTypeAny, {
|
|
448
448
|
userId: string;
|
|
449
|
-
category: import(
|
|
449
|
+
category: import('./event').Category;
|
|
450
450
|
}, {
|
|
451
451
|
userId: string;
|
|
452
|
-
category: import(
|
|
452
|
+
category: import('./event').Category;
|
|
453
453
|
}>;
|
|
454
454
|
time: z.ZodString;
|
|
455
455
|
type: z.ZodLiteral<"category-filter-applied">;
|
|
@@ -457,14 +457,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
457
457
|
type: "category-filter-applied";
|
|
458
458
|
data: {
|
|
459
459
|
userId: string;
|
|
460
|
-
category: import(
|
|
460
|
+
category: import('./event').Category;
|
|
461
461
|
};
|
|
462
462
|
time: string;
|
|
463
463
|
}, {
|
|
464
464
|
type: "category-filter-applied";
|
|
465
465
|
data: {
|
|
466
466
|
userId: string;
|
|
467
|
-
category: import(
|
|
467
|
+
category: import('./event').Category;
|
|
468
468
|
};
|
|
469
469
|
time: string;
|
|
470
470
|
}>, z.ZodObject<{
|
|
@@ -734,14 +734,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
734
734
|
time: string;
|
|
735
735
|
}>, z.ZodObject<{
|
|
736
736
|
data: z.ZodObject<{
|
|
737
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
737
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import('./event').Region>, "many">;
|
|
738
738
|
userId: z.ZodString;
|
|
739
739
|
}, "strip", z.ZodTypeAny, {
|
|
740
740
|
userId: string;
|
|
741
|
-
regions: import(
|
|
741
|
+
regions: import('./event').Region[];
|
|
742
742
|
}, {
|
|
743
743
|
userId: string;
|
|
744
|
-
regions: import(
|
|
744
|
+
regions: import('./event').Region[];
|
|
745
745
|
}>;
|
|
746
746
|
time: z.ZodString;
|
|
747
747
|
type: z.ZodLiteral<"region-filter-applied">;
|
|
@@ -749,14 +749,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
749
749
|
type: "region-filter-applied";
|
|
750
750
|
data: {
|
|
751
751
|
userId: string;
|
|
752
|
-
regions: import(
|
|
752
|
+
regions: import('./event').Region[];
|
|
753
753
|
};
|
|
754
754
|
time: string;
|
|
755
755
|
}, {
|
|
756
756
|
type: "region-filter-applied";
|
|
757
757
|
data: {
|
|
758
758
|
userId: string;
|
|
759
|
-
regions: import(
|
|
759
|
+
regions: import('./event').Region[];
|
|
760
760
|
};
|
|
761
761
|
time: string;
|
|
762
762
|
}>]>;
|