@sortipei/api-contracts 0.1.34 → 0.1.37

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.
@@ -52,10 +52,10 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
52
52
  imageUrl: z.ZodString;
53
53
  isEnabled: z.ZodBoolean;
54
54
  link: z.ZodNullable<z.ZodString>;
55
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
55
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
56
56
  startTime: z.ZodString;
57
57
  }, "strip", z.ZodTypeAny, {
58
- regions: import("../../shared").Region[];
58
+ regions: import('../../shared').Region[];
59
59
  startTime: string;
60
60
  endTime: string;
61
61
  createdAt: string;
@@ -64,7 +64,7 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
64
64
  isEnabled: boolean;
65
65
  link: string | null;
66
66
  }, {
67
- regions: import("../../shared").Region[];
67
+ regions: import('../../shared').Region[];
68
68
  startTime: string;
69
69
  endTime: string;
70
70
  createdAt: string;
@@ -80,17 +80,17 @@ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
80
80
  imageUrl: z.ZodString;
81
81
  isEnabled: z.ZodBoolean;
82
82
  link: z.ZodNullable<z.ZodString>;
83
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
83
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
84
84
  startTime: z.ZodString;
85
85
  }, "createdAt" | "id">, "strip", z.ZodTypeAny, {
86
- regions: import("../../shared").Region[];
86
+ regions: import('../../shared').Region[];
87
87
  startTime: string;
88
88
  endTime: string;
89
89
  imageUrl: string;
90
90
  isEnabled: boolean;
91
91
  link: string | null;
92
92
  }, {
93
- regions: import("../../shared").Region[];
93
+ regions: import('../../shared').Region[];
94
94
  startTime: string;
95
95
  endTime: string;
96
96
  imageUrl: string;
@@ -5,12 +5,14 @@ export declare const EventDTOSchema: z.ZodObject<{
5
5
  category: z.ZodNativeEnum<typeof import("../../shared").Category>;
6
6
  createdAt: z.ZodString;
7
7
  description: z.ZodString;
8
+ externalSourceId: z.ZodNullable<z.ZodString>;
8
9
  finishTime: z.ZodNullable<z.ZodString>;
9
10
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
10
11
  id: z.ZodBranded<z.ZodString, "EventId">;
11
12
  imageBlurHashes: z.ZodArray<z.ZodString, "many">;
12
13
  imageUrls: z.ZodArray<z.ZodString, "many">;
13
14
  isDisplayed: z.ZodBoolean;
15
+ isOldTimes: z.ZodBoolean;
14
16
  isPromoted: z.ZodBoolean;
15
17
  isPriceRange: z.ZodBoolean;
16
18
  link: z.ZodNullable<z.ZodString>;
@@ -26,64 +28,68 @@ export declare const EventDTOSchema: z.ZodObject<{
26
28
  imageUrl: z.ZodNullable<z.ZodString>;
27
29
  }, "strip", z.ZodTypeAny, {
28
30
  id: string & z.BRAND<"OrganizerId">;
29
- imageUrl: string | null;
30
31
  name: string;
32
+ imageUrl: string | null;
31
33
  }, {
32
34
  id: string;
33
- imageUrl: string | null;
34
35
  name: string;
36
+ imageUrl: string | null;
35
37
  }>, "many">;
36
38
  }, "strip", z.ZodTypeAny, {
37
- regions: import("../../shared").Region[];
38
- category: import("../../shared").Category;
39
- startTime: string;
40
- createdAt: string;
41
- id: string & z.BRAND<"EventId">;
42
- link: string | null;
43
39
  adress: string;
44
40
  capacity: number | null;
41
+ category: import("../../shared").Category;
42
+ createdAt: string;
45
43
  description: string;
44
+ externalSourceId: string | null;
46
45
  finishTime: string | null;
47
46
  hasHandicapAccess: boolean | null;
47
+ id: string & z.BRAND<"EventId">;
48
48
  imageBlurHashes: string[];
49
49
  imageUrls: string[];
50
50
  isDisplayed: boolean;
51
+ isOldTimes: boolean;
51
52
  isPromoted: boolean;
52
53
  isPriceRange: boolean;
54
+ link: string | null;
53
55
  price: number | null;
56
+ regions: import("../../shared").Region[];
57
+ startTime: string;
54
58
  title: string;
55
59
  thumbnailUrl: string | null;
56
60
  ticketsUrl: string | null;
57
61
  organizers: {
58
62
  id: string & z.BRAND<"OrganizerId">;
59
- imageUrl: string | null;
60
63
  name: string;
64
+ imageUrl: string | null;
61
65
  }[];
62
66
  }, {
63
- regions: import("../../shared").Region[];
64
- category: import("../../shared").Category;
65
- startTime: string;
66
- createdAt: string;
67
- id: string;
68
- link: string | null;
69
67
  adress: string;
70
68
  capacity: number | null;
69
+ category: import("../../shared").Category;
70
+ createdAt: string;
71
71
  description: string;
72
+ externalSourceId: string | null;
72
73
  finishTime: string | null;
73
74
  hasHandicapAccess: boolean | null;
75
+ id: string;
74
76
  imageBlurHashes: string[];
75
77
  imageUrls: string[];
76
78
  isDisplayed: boolean;
79
+ isOldTimes: boolean;
77
80
  isPromoted: boolean;
78
81
  isPriceRange: boolean;
82
+ link: string | null;
79
83
  price: number | null;
84
+ regions: import("../../shared").Region[];
85
+ startTime: string;
80
86
  title: string;
81
87
  thumbnailUrl: string | null;
82
88
  ticketsUrl: string | null;
83
89
  organizers: {
84
90
  id: string;
85
- imageUrl: string | null;
86
91
  name: string;
92
+ imageUrl: string | null;
87
93
  }[];
88
94
  }>;
89
95
  export declare const CreateEventDTOSchema: z.ZodObject<{
@@ -91,6 +97,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
91
97
  capacity: z.ZodNullable<z.ZodNumber>;
92
98
  category: z.ZodNativeEnum<typeof import("../../shared").Category>;
93
99
  description: z.ZodString;
100
+ externalSourceId: z.ZodNullable<z.ZodString>;
94
101
  finishTime: z.ZodNullable<z.ZodString>;
95
102
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
96
103
  id: z.ZodBranded<z.ZodString, "EventId">;
@@ -107,41 +114,43 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
107
114
  thumbnailUrl: z.ZodNullable<z.ZodString>;
108
115
  ticketsUrl: z.ZodNullable<z.ZodString>;
109
116
  }, "strip", z.ZodTypeAny, {
110
- regions: import("../../shared").Region[];
111
- category: import("../../shared").Category;
112
- startTime: string;
113
- id: string & z.BRAND<"EventId">;
114
- link: string | null;
115
117
  adress: string;
116
118
  capacity: number | null;
119
+ category: import("../../shared").Category;
117
120
  description: string;
121
+ externalSourceId: string | null;
118
122
  finishTime: string | null;
119
123
  hasHandicapAccess: boolean | null;
124
+ id: string & z.BRAND<"EventId">;
120
125
  imageBlurHashes: string[];
121
126
  imageUrls: string[];
122
127
  isDisplayed: boolean;
123
128
  isPriceRange: boolean;
129
+ link: string | null;
124
130
  price: number | null;
131
+ regions: import("../../shared").Region[];
132
+ startTime: string;
125
133
  title: string;
126
134
  thumbnailUrl: string | null;
127
135
  ticketsUrl: string | null;
128
136
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
129
137
  }, {
130
- regions: import("../../shared").Region[];
131
- category: import("../../shared").Category;
132
- startTime: string;
133
- id: string;
134
- link: string | null;
135
138
  adress: string;
136
139
  capacity: number | null;
140
+ category: import("../../shared").Category;
137
141
  description: string;
142
+ externalSourceId: string | null;
138
143
  finishTime: string | null;
139
144
  hasHandicapAccess: boolean | null;
145
+ id: string;
140
146
  imageBlurHashes: string[];
141
147
  imageUrls: string[];
142
148
  isDisplayed: boolean;
143
149
  isPriceRange: boolean;
150
+ link: string | null;
144
151
  price: number | null;
152
+ regions: import("../../shared").Region[];
153
+ startTime: string;
145
154
  title: string;
146
155
  thumbnailUrl: string | null;
147
156
  ticketsUrl: string | null;
@@ -152,6 +161,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
152
161
  capacity: z.ZodNullable<z.ZodNumber>;
153
162
  category: z.ZodNativeEnum<typeof import("../../shared").Category>;
154
163
  description: z.ZodString;
164
+ externalSourceId: z.ZodNullable<z.ZodString>;
155
165
  finishTime: z.ZodNullable<z.ZodString>;
156
166
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
157
167
  id: z.ZodBranded<z.ZodString, "EventId">;
@@ -168,39 +178,41 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
168
178
  thumbnailUrl: z.ZodNullable<z.ZodString>;
169
179
  ticketsUrl: z.ZodNullable<z.ZodString>;
170
180
  }, "id">, "strip", z.ZodTypeAny, {
171
- regions: import("../../shared").Region[];
172
- category: import("../../shared").Category;
173
- startTime: string;
174
- link: string | null;
175
181
  adress: string;
176
182
  capacity: number | null;
183
+ category: import("../../shared").Category;
177
184
  description: string;
185
+ externalSourceId: string | null;
178
186
  finishTime: string | null;
179
187
  hasHandicapAccess: boolean | null;
180
188
  imageBlurHashes: string[];
181
189
  imageUrls: string[];
182
190
  isDisplayed: boolean;
183
191
  isPriceRange: boolean;
192
+ link: string | null;
184
193
  price: number | null;
194
+ regions: import("../../shared").Region[];
195
+ startTime: string;
185
196
  title: string;
186
197
  thumbnailUrl: string | null;
187
198
  ticketsUrl: string | null;
188
199
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
189
200
  }, {
190
- regions: import("../../shared").Region[];
191
- category: import("../../shared").Category;
192
- startTime: string;
193
- link: string | null;
194
201
  adress: string;
195
202
  capacity: number | null;
203
+ category: import("../../shared").Category;
196
204
  description: string;
205
+ externalSourceId: string | null;
197
206
  finishTime: string | null;
198
207
  hasHandicapAccess: boolean | null;
199
208
  imageBlurHashes: string[];
200
209
  imageUrls: string[];
201
210
  isDisplayed: boolean;
202
211
  isPriceRange: boolean;
212
+ link: string | null;
203
213
  price: number | null;
214
+ regions: import("../../shared").Region[];
215
+ startTime: string;
204
216
  title: string;
205
217
  thumbnailUrl: string | null;
206
218
  ticketsUrl: string | null;
@@ -249,12 +261,14 @@ export declare const ImportDTOSchema: z.ZodObject<{
249
261
  category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
250
262
  createdAt: z.ZodOptional<z.ZodString>;
251
263
  description: z.ZodOptional<z.ZodString>;
264
+ externalSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
265
  finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
266
  hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
254
267
  id: z.ZodOptional<z.ZodBranded<z.ZodString, "EventId">>;
255
268
  imageBlurHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
256
269
  imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
257
270
  isDisplayed: z.ZodOptional<z.ZodBoolean>;
271
+ isOldTimes: z.ZodOptional<z.ZodBoolean>;
258
272
  isPromoted: z.ZodOptional<z.ZodBoolean>;
259
273
  isPriceRange: z.ZodOptional<z.ZodBoolean>;
260
274
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -270,134 +284,142 @@ export declare const ImportDTOSchema: z.ZodObject<{
270
284
  imageUrl: z.ZodNullable<z.ZodString>;
271
285
  }, "strip", z.ZodTypeAny, {
272
286
  id: string & z.BRAND<"OrganizerId">;
273
- imageUrl: string | null;
274
287
  name: string;
288
+ imageUrl: string | null;
275
289
  }, {
276
290
  id: string;
277
- imageUrl: string | null;
278
291
  name: string;
292
+ imageUrl: string | null;
279
293
  }>, "many">>;
280
294
  }, "strip", z.ZodTypeAny, {
281
- regions?: import("../../shared").Region[] | undefined;
282
- category?: import("../../shared").Category | undefined;
283
- startTime?: string | undefined;
284
- createdAt?: string | undefined;
285
- id?: (string & z.BRAND<"EventId">) | undefined;
286
- link?: string | null | undefined;
287
295
  adress?: string | undefined;
288
296
  capacity?: number | null | undefined;
297
+ category?: import("../../shared").Category | undefined;
298
+ createdAt?: string | undefined;
289
299
  description?: string | undefined;
300
+ externalSourceId?: string | null | undefined;
290
301
  finishTime?: string | null | undefined;
291
302
  hasHandicapAccess?: boolean | null | undefined;
303
+ id?: (string & z.BRAND<"EventId">) | undefined;
292
304
  imageBlurHashes?: string[] | undefined;
293
305
  imageUrls?: string[] | undefined;
294
306
  isDisplayed?: boolean | undefined;
307
+ isOldTimes?: boolean | undefined;
295
308
  isPromoted?: boolean | undefined;
296
309
  isPriceRange?: boolean | undefined;
310
+ link?: string | null | undefined;
297
311
  price?: number | null | undefined;
312
+ regions?: import("../../shared").Region[] | undefined;
313
+ startTime?: string | undefined;
298
314
  title?: string | undefined;
299
315
  thumbnailUrl?: string | null | undefined;
300
316
  ticketsUrl?: string | null | undefined;
301
317
  organizers?: {
302
318
  id: string & z.BRAND<"OrganizerId">;
303
- imageUrl: string | null;
304
319
  name: string;
320
+ imageUrl: string | null;
305
321
  }[] | undefined;
306
322
  }, {
307
- regions?: import("../../shared").Region[] | undefined;
308
- category?: import("../../shared").Category | undefined;
309
- startTime?: string | undefined;
310
- createdAt?: string | undefined;
311
- id?: string | undefined;
312
- link?: string | null | undefined;
313
323
  adress?: string | undefined;
314
324
  capacity?: number | null | undefined;
325
+ category?: import("../../shared").Category | undefined;
326
+ createdAt?: string | undefined;
315
327
  description?: string | undefined;
328
+ externalSourceId?: string | null | undefined;
316
329
  finishTime?: string | null | undefined;
317
330
  hasHandicapAccess?: boolean | null | undefined;
331
+ id?: string | undefined;
318
332
  imageBlurHashes?: string[] | undefined;
319
333
  imageUrls?: string[] | undefined;
320
334
  isDisplayed?: boolean | undefined;
335
+ isOldTimes?: boolean | undefined;
321
336
  isPromoted?: boolean | undefined;
322
337
  isPriceRange?: boolean | undefined;
338
+ link?: string | null | undefined;
323
339
  price?: number | null | undefined;
340
+ regions?: import("../../shared").Region[] | undefined;
341
+ startTime?: string | undefined;
324
342
  title?: string | undefined;
325
343
  thumbnailUrl?: string | null | undefined;
326
344
  ticketsUrl?: string | null | undefined;
327
345
  organizers?: {
328
346
  id: string;
329
- imageUrl: string | null;
330
347
  name: string;
348
+ imageUrl: string | null;
331
349
  }[] | undefined;
332
350
  }>;
333
351
  source: z.ZodUnion<[z.ZodLiteral<"facebook">, z.ZodLiteral<"website">]>;
334
352
  userId: z.ZodString;
335
353
  }, "strip", z.ZodTypeAny, {
336
- userId: string;
337
354
  createdAt: string;
338
355
  id: string;
339
356
  organizersNames: string[];
340
357
  partialEventState: {
341
- regions?: import("../../shared").Region[] | undefined;
342
- category?: import("../../shared").Category | undefined;
343
- startTime?: string | undefined;
344
- createdAt?: string | undefined;
345
- id?: (string & z.BRAND<"EventId">) | undefined;
346
- link?: string | null | undefined;
347
358
  adress?: string | undefined;
348
359
  capacity?: number | null | undefined;
360
+ category?: import("../../shared").Category | undefined;
361
+ createdAt?: string | undefined;
349
362
  description?: string | undefined;
363
+ externalSourceId?: string | null | undefined;
350
364
  finishTime?: string | null | undefined;
351
365
  hasHandicapAccess?: boolean | null | undefined;
366
+ id?: (string & z.BRAND<"EventId">) | undefined;
352
367
  imageBlurHashes?: string[] | undefined;
353
368
  imageUrls?: string[] | undefined;
354
369
  isDisplayed?: boolean | undefined;
370
+ isOldTimes?: boolean | undefined;
355
371
  isPromoted?: boolean | undefined;
356
372
  isPriceRange?: boolean | undefined;
373
+ link?: string | null | undefined;
357
374
  price?: number | null | undefined;
375
+ regions?: import("../../shared").Region[] | undefined;
376
+ startTime?: string | undefined;
358
377
  title?: string | undefined;
359
378
  thumbnailUrl?: string | null | undefined;
360
379
  ticketsUrl?: string | null | undefined;
361
380
  organizers?: {
362
381
  id: string & z.BRAND<"OrganizerId">;
363
- imageUrl: string | null;
364
382
  name: string;
383
+ imageUrl: string | null;
365
384
  }[] | undefined;
366
385
  };
367
386
  source: "facebook" | "website";
368
- }, {
369
387
  userId: string;
388
+ }, {
370
389
  createdAt: string;
371
390
  id: string;
372
391
  organizersNames: string[];
373
392
  partialEventState: {
374
- regions?: import("../../shared").Region[] | undefined;
375
- category?: import("../../shared").Category | undefined;
376
- startTime?: string | undefined;
377
- createdAt?: string | undefined;
378
- id?: string | undefined;
379
- link?: string | null | undefined;
380
393
  adress?: string | undefined;
381
394
  capacity?: number | null | undefined;
395
+ category?: import("../../shared").Category | undefined;
396
+ createdAt?: string | undefined;
382
397
  description?: string | undefined;
398
+ externalSourceId?: string | null | undefined;
383
399
  finishTime?: string | null | undefined;
384
400
  hasHandicapAccess?: boolean | null | undefined;
401
+ id?: string | undefined;
385
402
  imageBlurHashes?: string[] | undefined;
386
403
  imageUrls?: string[] | undefined;
387
404
  isDisplayed?: boolean | undefined;
405
+ isOldTimes?: boolean | undefined;
388
406
  isPromoted?: boolean | undefined;
389
407
  isPriceRange?: boolean | undefined;
408
+ link?: string | null | undefined;
390
409
  price?: number | null | undefined;
410
+ regions?: import("../../shared").Region[] | undefined;
411
+ startTime?: string | undefined;
391
412
  title?: string | undefined;
392
413
  thumbnailUrl?: string | null | undefined;
393
414
  ticketsUrl?: string | null | undefined;
394
415
  organizers?: {
395
416
  id: string;
396
- imageUrl: string | null;
397
417
  name: string;
418
+ imageUrl: string | null;
398
419
  }[] | undefined;
399
420
  };
400
421
  source: "facebook" | "website";
422
+ userId: string;
401
423
  }>;
402
424
  export type ImportDTO = z.infer<typeof ImportDTOSchema>;
403
425
  export declare const EventFileUploadDTOSchema: z.ZodObject<{
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;EAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,18 +1,139 @@
1
1
  import { z } from 'zod';
2
2
  import { StatisticSchema } from '../../shared';
3
+ export declare const TopEventDTOSchema: z.ZodObject<{
4
+ count: z.ZodNumber;
5
+ eventId: z.ZodBranded<z.ZodString, "EventId">;
6
+ eventTitle: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ eventId: string & z.BRAND<"EventId">;
9
+ count: number;
10
+ eventTitle: string;
11
+ }, {
12
+ eventId: string;
13
+ count: number;
14
+ eventTitle: string;
15
+ }>;
3
16
  export declare const GlobalStatsDTOSchema: z.ZodObject<{
4
17
  currentFavoritesCount: z.ZodNumber;
18
+ eventsCount: z.ZodNumber;
19
+ openedEventsCount: z.ZodNumber;
20
+ presentOrFutureEventsCount: z.ZodNumber;
21
+ sharedEventsCount: z.ZodNumber;
22
+ topAddedToFavoritesEvents: z.ZodArray<z.ZodObject<{
23
+ count: z.ZodNumber;
24
+ eventId: z.ZodBranded<z.ZodString, "EventId">;
25
+ eventTitle: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ eventId: string & z.BRAND<"EventId">;
28
+ count: number;
29
+ eventTitle: string;
30
+ }, {
31
+ eventId: string;
32
+ count: number;
33
+ eventTitle: string;
34
+ }>, "many">;
35
+ topUpcomingAddedToFavoritesEvents: z.ZodArray<z.ZodObject<{
36
+ count: z.ZodNumber;
37
+ eventId: z.ZodBranded<z.ZodString, "EventId">;
38
+ eventTitle: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ eventId: string & z.BRAND<"EventId">;
41
+ count: number;
42
+ eventTitle: string;
43
+ }, {
44
+ eventId: string;
45
+ count: number;
46
+ eventTitle: string;
47
+ }>, "many">;
48
+ topUpcomingViewedEvents: z.ZodArray<z.ZodObject<{
49
+ count: z.ZodNumber;
50
+ eventId: z.ZodBranded<z.ZodString, "EventId">;
51
+ eventTitle: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ eventId: string & z.BRAND<"EventId">;
54
+ count: number;
55
+ eventTitle: string;
56
+ }, {
57
+ eventId: string;
58
+ count: number;
59
+ eventTitle: string;
60
+ }>, "many">;
61
+ topViewedEvents: z.ZodArray<z.ZodObject<{
62
+ count: z.ZodNumber;
63
+ eventId: z.ZodBranded<z.ZodString, "EventId">;
64
+ eventTitle: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ eventId: string & z.BRAND<"EventId">;
67
+ count: number;
68
+ eventTitle: string;
69
+ }, {
70
+ eventId: string;
71
+ count: number;
72
+ eventTitle: string;
73
+ }>, "many">;
5
74
  totalFavoritesCount: z.ZodNumber;
6
75
  usersCount: z.ZodNumber;
76
+ usersWithMultipleDayAppOpened: z.ZodNumber;
7
77
  }, "strip", z.ZodTypeAny, {
8
78
  currentFavoritesCount: number;
79
+ eventsCount: number;
80
+ openedEventsCount: number;
81
+ presentOrFutureEventsCount: number;
82
+ sharedEventsCount: number;
83
+ topAddedToFavoritesEvents: {
84
+ eventId: string & z.BRAND<"EventId">;
85
+ count: number;
86
+ eventTitle: string;
87
+ }[];
88
+ topUpcomingAddedToFavoritesEvents: {
89
+ eventId: string & z.BRAND<"EventId">;
90
+ count: number;
91
+ eventTitle: string;
92
+ }[];
93
+ topUpcomingViewedEvents: {
94
+ eventId: string & z.BRAND<"EventId">;
95
+ count: number;
96
+ eventTitle: string;
97
+ }[];
98
+ topViewedEvents: {
99
+ eventId: string & z.BRAND<"EventId">;
100
+ count: number;
101
+ eventTitle: string;
102
+ }[];
9
103
  totalFavoritesCount: number;
10
104
  usersCount: number;
105
+ usersWithMultipleDayAppOpened: number;
11
106
  }, {
12
107
  currentFavoritesCount: number;
108
+ eventsCount: number;
109
+ openedEventsCount: number;
110
+ presentOrFutureEventsCount: number;
111
+ sharedEventsCount: number;
112
+ topAddedToFavoritesEvents: {
113
+ eventId: string;
114
+ count: number;
115
+ eventTitle: string;
116
+ }[];
117
+ topUpcomingAddedToFavoritesEvents: {
118
+ eventId: string;
119
+ count: number;
120
+ eventTitle: string;
121
+ }[];
122
+ topUpcomingViewedEvents: {
123
+ eventId: string;
124
+ count: number;
125
+ eventTitle: string;
126
+ }[];
127
+ topViewedEvents: {
128
+ eventId: string;
129
+ count: number;
130
+ eventTitle: string;
131
+ }[];
13
132
  totalFavoritesCount: number;
14
133
  usersCount: number;
134
+ usersWithMultipleDayAppOpened: number;
15
135
  }>;
136
+ export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
16
137
  export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
17
138
  export declare const SaveStatisticDTOSchema: z.ZodObject<{
18
139
  statistic: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -39,14 +160,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
39
160
  time: string;
40
161
  }>, z.ZodObject<{
41
162
  data: z.ZodObject<{
42
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
163
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
43
164
  userId: z.ZodString;
44
165
  }, "strip", z.ZodTypeAny, {
45
166
  userId: string;
46
- category: import("../../shared").Category;
167
+ category: import('../../shared').Category;
47
168
  }, {
48
169
  userId: string;
49
- category: import("../../shared").Category;
170
+ category: import('../../shared').Category;
50
171
  }>;
51
172
  time: z.ZodString;
52
173
  type: z.ZodLiteral<"category-filter-applied">;
@@ -54,14 +175,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
54
175
  type: "category-filter-applied";
55
176
  data: {
56
177
  userId: string;
57
- category: import("../../shared").Category;
178
+ category: import('../../shared').Category;
58
179
  };
59
180
  time: string;
60
181
  }, {
61
182
  type: "category-filter-applied";
62
183
  data: {
63
184
  userId: string;
64
- category: import("../../shared").Category;
185
+ category: import('../../shared').Category;
65
186
  };
66
187
  time: string;
67
188
  }>, z.ZodObject<{
@@ -309,14 +430,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
309
430
  time: string;
310
431
  }>, z.ZodObject<{
311
432
  data: z.ZodObject<{
312
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
433
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
313
434
  userId: z.ZodString;
314
435
  }, "strip", z.ZodTypeAny, {
315
436
  userId: string;
316
- regions: import("../../shared").Region[];
437
+ regions: import('../../shared').Region[];
317
438
  }, {
318
439
  userId: string;
319
- regions: import("../../shared").Region[];
440
+ regions: import('../../shared').Region[];
320
441
  }>;
321
442
  time: z.ZodString;
322
443
  type: z.ZodLiteral<"region-filter-applied">;
@@ -324,14 +445,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
324
445
  type: "region-filter-applied";
325
446
  data: {
326
447
  userId: string;
327
- regions: import("../../shared").Region[];
448
+ regions: import('../../shared').Region[];
328
449
  };
329
450
  time: string;
330
451
  }, {
331
452
  type: "region-filter-applied";
332
453
  data: {
333
454
  userId: string;
334
- regions: import("../../shared").Region[];
455
+ regions: import('../../shared').Region[];
335
456
  };
336
457
  time: string;
337
458
  }>]>;
@@ -395,7 +516,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
395
516
  type: "region-filter-applied";
396
517
  data: {
397
518
  userId: string;
398
- regions: import("../../shared").Region[];
519
+ regions: import('../../shared').Region[];
399
520
  };
400
521
  time: string;
401
522
  } | {
@@ -408,7 +529,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
408
529
  type: "category-filter-applied";
409
530
  data: {
410
531
  userId: string;
411
- category: import("../../shared").Category;
532
+ category: import('../../shared').Category;
412
533
  };
413
534
  time: string;
414
535
  } | {
@@ -480,7 +601,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
480
601
  type: "region-filter-applied";
481
602
  data: {
482
603
  userId: string;
483
- regions: import("../../shared").Region[];
604
+ regions: import('../../shared').Region[];
484
605
  };
485
606
  time: string;
486
607
  } | {
@@ -493,7 +614,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
493
614
  type: "category-filter-applied";
494
615
  data: {
495
616
  userId: string;
496
- category: import("../../shared").Category;
617
+ category: import('../../shared').Category;
497
618
  };
498
619
  time: string;
499
620
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["../../../src/V1/api/statistics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -6,12 +6,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
6
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
+ externalSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
10
  finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
11
  hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
11
12
  id: z.ZodOptional<z.ZodBranded<z.ZodString, "EventId">>;
12
13
  imageBlurHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
14
  imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
15
  isDisplayed: z.ZodOptional<z.ZodBoolean>;
16
+ isOldTimes: z.ZodOptional<z.ZodBoolean>;
15
17
  isPromoted: z.ZodOptional<z.ZodBoolean>;
16
18
  isPriceRange: z.ZodOptional<z.ZodBoolean>;
17
19
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -27,64 +29,68 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
27
29
  imageUrl: z.ZodNullable<z.ZodString>;
28
30
  }, "strip", z.ZodTypeAny, {
29
31
  id: string & z.BRAND<"OrganizerId">;
30
- imageUrl: string | null;
31
32
  name: string;
33
+ imageUrl: string | null;
32
34
  }, {
33
35
  id: string;
34
- imageUrl: string | null;
35
36
  name: string;
37
+ imageUrl: string | null;
36
38
  }>, "many">>;
37
39
  }, "strip", z.ZodTypeAny, {
38
- regions?: import("../../shared").Region[] | undefined;
39
- category?: import("../../shared").Category | undefined;
40
- startTime?: string | undefined;
41
- createdAt?: string | undefined;
42
- id?: (string & z.BRAND<"EventId">) | undefined;
43
- link?: string | null | undefined;
44
40
  adress?: string | undefined;
45
41
  capacity?: number | null | undefined;
42
+ category?: import("../../shared").Category | undefined;
43
+ createdAt?: string | undefined;
46
44
  description?: string | undefined;
45
+ externalSourceId?: string | null | undefined;
47
46
  finishTime?: string | null | undefined;
48
47
  hasHandicapAccess?: boolean | null | undefined;
48
+ id?: (string & z.BRAND<"EventId">) | undefined;
49
49
  imageBlurHashes?: string[] | undefined;
50
50
  imageUrls?: string[] | undefined;
51
51
  isDisplayed?: boolean | undefined;
52
+ isOldTimes?: boolean | undefined;
52
53
  isPromoted?: boolean | undefined;
53
54
  isPriceRange?: boolean | undefined;
55
+ link?: string | null | undefined;
54
56
  price?: number | null | undefined;
57
+ regions?: import("../../shared").Region[] | undefined;
58
+ startTime?: string | undefined;
55
59
  title?: string | undefined;
56
60
  thumbnailUrl?: string | null | undefined;
57
61
  ticketsUrl?: string | null | undefined;
58
62
  organizers?: {
59
63
  id: string & z.BRAND<"OrganizerId">;
60
- imageUrl: string | null;
61
64
  name: string;
65
+ imageUrl: string | null;
62
66
  }[] | undefined;
63
67
  }, {
64
- regions?: import("../../shared").Region[] | undefined;
65
- category?: import("../../shared").Category | undefined;
66
- startTime?: string | undefined;
67
- createdAt?: string | undefined;
68
- id?: string | undefined;
69
- link?: string | null | undefined;
70
68
  adress?: string | undefined;
71
69
  capacity?: number | null | undefined;
70
+ category?: import("../../shared").Category | undefined;
71
+ createdAt?: string | undefined;
72
72
  description?: string | undefined;
73
+ externalSourceId?: string | null | undefined;
73
74
  finishTime?: string | null | undefined;
74
75
  hasHandicapAccess?: boolean | null | undefined;
76
+ id?: string | undefined;
75
77
  imageBlurHashes?: string[] | undefined;
76
78
  imageUrls?: string[] | undefined;
77
79
  isDisplayed?: boolean | undefined;
80
+ isOldTimes?: boolean | undefined;
78
81
  isPromoted?: boolean | undefined;
79
82
  isPriceRange?: boolean | undefined;
83
+ link?: string | null | undefined;
80
84
  price?: number | null | undefined;
85
+ regions?: import("../../shared").Region[] | undefined;
86
+ startTime?: string | undefined;
81
87
  title?: string | undefined;
82
88
  thumbnailUrl?: string | null | undefined;
83
89
  ticketsUrl?: string | null | undefined;
84
90
  organizers?: {
85
91
  id: string;
86
- imageUrl: string | null;
87
92
  name: string;
93
+ imageUrl: string | null;
88
94
  }[] | undefined;
89
95
  }>;
90
96
  token: z.ZodString;
@@ -92,68 +98,72 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
92
98
  organizersNames: z.ZodArray<z.ZodString, "many">;
93
99
  source: z.ZodUnion<[z.ZodLiteral<"facebook">, z.ZodLiteral<"website">]>;
94
100
  }, "strip", z.ZodTypeAny, {
95
- userId: string;
96
101
  organizersNames: string[];
97
102
  partialEventState: {
98
- regions?: import("../../shared").Region[] | undefined;
99
- category?: import("../../shared").Category | undefined;
100
- startTime?: string | undefined;
101
- createdAt?: string | undefined;
102
- id?: (string & z.BRAND<"EventId">) | undefined;
103
- link?: string | null | undefined;
104
103
  adress?: string | undefined;
105
104
  capacity?: number | null | undefined;
105
+ category?: import("../../shared").Category | undefined;
106
+ createdAt?: string | undefined;
106
107
  description?: string | undefined;
108
+ externalSourceId?: string | null | undefined;
107
109
  finishTime?: string | null | undefined;
108
110
  hasHandicapAccess?: boolean | null | undefined;
111
+ id?: (string & z.BRAND<"EventId">) | undefined;
109
112
  imageBlurHashes?: string[] | undefined;
110
113
  imageUrls?: string[] | undefined;
111
114
  isDisplayed?: boolean | undefined;
115
+ isOldTimes?: boolean | undefined;
112
116
  isPromoted?: boolean | undefined;
113
117
  isPriceRange?: boolean | undefined;
118
+ link?: string | null | undefined;
114
119
  price?: number | null | undefined;
120
+ regions?: import("../../shared").Region[] | undefined;
121
+ startTime?: string | undefined;
115
122
  title?: string | undefined;
116
123
  thumbnailUrl?: string | null | undefined;
117
124
  ticketsUrl?: string | null | undefined;
118
125
  organizers?: {
119
126
  id: string & z.BRAND<"OrganizerId">;
120
- imageUrl: string | null;
121
127
  name: string;
128
+ imageUrl: string | null;
122
129
  }[] | undefined;
123
130
  };
124
131
  source: "facebook" | "website";
132
+ userId: string;
125
133
  token: string;
126
134
  }, {
127
- userId: string;
128
135
  organizersNames: string[];
129
136
  partialEventState: {
130
- regions?: import("../../shared").Region[] | undefined;
131
- category?: import("../../shared").Category | undefined;
132
- startTime?: string | undefined;
133
- createdAt?: string | undefined;
134
- id?: string | undefined;
135
- link?: string | null | undefined;
136
137
  adress?: string | undefined;
137
138
  capacity?: number | null | undefined;
139
+ category?: import("../../shared").Category | undefined;
140
+ createdAt?: string | undefined;
138
141
  description?: string | undefined;
142
+ externalSourceId?: string | null | undefined;
139
143
  finishTime?: string | null | undefined;
140
144
  hasHandicapAccess?: boolean | null | undefined;
145
+ id?: string | undefined;
141
146
  imageBlurHashes?: string[] | undefined;
142
147
  imageUrls?: string[] | undefined;
143
148
  isDisplayed?: boolean | undefined;
149
+ isOldTimes?: boolean | undefined;
144
150
  isPromoted?: boolean | undefined;
145
151
  isPriceRange?: boolean | undefined;
152
+ link?: string | null | undefined;
146
153
  price?: number | null | undefined;
154
+ regions?: import("../../shared").Region[] | undefined;
155
+ startTime?: string | undefined;
147
156
  title?: string | undefined;
148
157
  thumbnailUrl?: string | null | undefined;
149
158
  ticketsUrl?: string | null | undefined;
150
159
  organizers?: {
151
160
  id: string;
152
- imageUrl: string | null;
153
161
  name: string;
162
+ imageUrl: string | null;
154
163
  }[] | undefined;
155
164
  };
156
165
  source: "facebook" | "website";
166
+ userId: string;
157
167
  token: string;
158
168
  }>;
159
169
  export type CreatePartialImportedEventDTO = z.infer<typeof CreatePartialImportedEventDTOSchema>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
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"}
@@ -4141,7 +4141,7 @@ const EventSeeMoreClickedStatisticsSchema = z.object({
4141
4141
  });
4142
4142
  const RegionFilterAppliedStatisticSchema = z.object({
4143
4143
  data: z.object({
4144
- region: RegionSchema,
4144
+ regions: RegionSchema.array(),
4145
4145
  userId: UUIDSchema
4146
4146
  }),
4147
4147
  time: z.string().datetime(),
@@ -4240,6 +4240,7 @@ const EventDTOSchema = z.object({
4240
4240
  category: CategorySchema,
4241
4241
  createdAt: z.string().datetime(),
4242
4242
  description: StringSchema,
4243
+ externalSourceId: StringSchema.nullable(),
4243
4244
  finishTime: z.string().datetime().nullable(),
4244
4245
  hasHandicapAccess: z.boolean().nullable(),
4245
4246
  id: EventIdSchema,
@@ -4266,6 +4267,7 @@ const CreateEventDTOSchema = z.object({
4266
4267
  capacity: SafeNonNegativeIntegerSchema.nullable(),
4267
4268
  category: CategorySchema,
4268
4269
  description: StringSchema,
4270
+ externalSourceId: StringSchema.nullable(),
4269
4271
  finishTime: z.string().datetime().nullable(),
4270
4272
  hasHandicapAccess: z.boolean().nullable(),
4271
4273
  id: EventIdSchema,
@@ -4340,10 +4342,24 @@ const constraints$1 = {
4340
4342
  maxLength: 100
4341
4343
  }
4342
4344
  };
4345
+ const TopEventDTOSchema = z.object({
4346
+ count: z.number(),
4347
+ eventId: EventIdSchema,
4348
+ eventTitle: StringSchema
4349
+ });
4343
4350
  const GlobalStatsDTOSchema = z.object({
4344
4351
  currentFavoritesCount: z.number(),
4352
+ eventsCount: z.number(),
4353
+ openedEventsCount: z.number(),
4354
+ presentOrFutureEventsCount: z.number(),
4355
+ sharedEventsCount: z.number(),
4356
+ topAddedToFavoritesEvents: TopEventDTOSchema.array(),
4357
+ topUpcomingAddedToFavoritesEvents: TopEventDTOSchema.array(),
4358
+ topUpcomingViewedEvents: TopEventDTOSchema.array(),
4359
+ topViewedEvents: TopEventDTOSchema.array(),
4345
4360
  totalFavoritesCount: z.number(),
4346
- usersCount: z.number()
4361
+ usersCount: z.number(),
4362
+ usersWithMultipleDayAppOpened: z.number()
4347
4363
  });
4348
4364
  const SaveStatisticDTOSchema = z.object({
4349
4365
  statistic: StatisticSchema
@@ -4369,6 +4385,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4369
4385
  PromoteEventDTOSchema,
4370
4386
  RegionalAdDTOSchema,
4371
4387
  SaveStatisticDTOSchema,
4388
+ TopEventDTOSchema,
4372
4389
  UpdateAppConfigurationDTOSchema,
4373
4390
  UpdateEventDTOSchema,
4374
4391
  UpdateMainAdDTOSchema,
@@ -4139,7 +4139,7 @@ const EventSeeMoreClickedStatisticsSchema = z.object({
4139
4139
  });
4140
4140
  const RegionFilterAppliedStatisticSchema = z.object({
4141
4141
  data: z.object({
4142
- region: RegionSchema,
4142
+ regions: RegionSchema.array(),
4143
4143
  userId: UUIDSchema
4144
4144
  }),
4145
4145
  time: z.string().datetime(),
@@ -4238,6 +4238,7 @@ const EventDTOSchema = z.object({
4238
4238
  category: CategorySchema,
4239
4239
  createdAt: z.string().datetime(),
4240
4240
  description: StringSchema,
4241
+ externalSourceId: StringSchema.nullable(),
4241
4242
  finishTime: z.string().datetime().nullable(),
4242
4243
  hasHandicapAccess: z.boolean().nullable(),
4243
4244
  id: EventIdSchema,
@@ -4264,6 +4265,7 @@ const CreateEventDTOSchema = z.object({
4264
4265
  capacity: SafeNonNegativeIntegerSchema.nullable(),
4265
4266
  category: CategorySchema,
4266
4267
  description: StringSchema,
4268
+ externalSourceId: StringSchema.nullable(),
4267
4269
  finishTime: z.string().datetime().nullable(),
4268
4270
  hasHandicapAccess: z.boolean().nullable(),
4269
4271
  id: EventIdSchema,
@@ -4338,10 +4340,24 @@ const constraints$1 = {
4338
4340
  maxLength: 100
4339
4341
  }
4340
4342
  };
4343
+ const TopEventDTOSchema = z.object({
4344
+ count: z.number(),
4345
+ eventId: EventIdSchema,
4346
+ eventTitle: StringSchema
4347
+ });
4341
4348
  const GlobalStatsDTOSchema = z.object({
4342
4349
  currentFavoritesCount: z.number(),
4350
+ eventsCount: z.number(),
4351
+ openedEventsCount: z.number(),
4352
+ presentOrFutureEventsCount: z.number(),
4353
+ sharedEventsCount: z.number(),
4354
+ topAddedToFavoritesEvents: TopEventDTOSchema.array(),
4355
+ topUpcomingAddedToFavoritesEvents: TopEventDTOSchema.array(),
4356
+ topUpcomingViewedEvents: TopEventDTOSchema.array(),
4357
+ topViewedEvents: TopEventDTOSchema.array(),
4343
4358
  totalFavoritesCount: z.number(),
4344
- usersCount: z.number()
4359
+ usersCount: z.number(),
4360
+ usersWithMultipleDayAppOpened: z.number()
4345
4361
  });
4346
4362
  const SaveStatisticDTOSchema = z.object({
4347
4363
  statistic: StatisticSchema
@@ -4367,6 +4383,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4367
4383
  PromoteEventDTOSchema,
4368
4384
  RegionalAdDTOSchema,
4369
4385
  SaveStatisticDTOSchema,
4386
+ TopEventDTOSchema,
4370
4387
  UpdateAppConfigurationDTOSchema,
4371
4388
  UpdateEventDTOSchema,
4372
4389
  UpdateMainAdDTOSchema,
@@ -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("./event").Region>, "many">;
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("./event").Region[];
227
+ regions: import('./event').Region[];
228
228
  }, {
229
229
  userId: string;
230
- regions: import("./event").Region[];
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("./event").Region[];
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("./event").Region[];
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("./event").Category>;
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("./event").Category;
278
+ category: import('./event').Category;
279
279
  }, {
280
280
  userId: string;
281
- category: import("./event").Category;
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("./event").Category;
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("./event").Category;
296
+ category: import('./event').Category;
297
297
  };
298
298
  time: string;
299
299
  }>;
@@ -354,14 +354,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
354
354
  time: string;
355
355
  }>, z.ZodObject<{
356
356
  data: z.ZodObject<{
357
- category: z.ZodNativeEnum<typeof import("./event").Category>;
357
+ category: z.ZodNativeEnum<typeof import('./event').Category>;
358
358
  userId: z.ZodString;
359
359
  }, "strip", z.ZodTypeAny, {
360
360
  userId: string;
361
- category: import("./event").Category;
361
+ category: import('./event').Category;
362
362
  }, {
363
363
  userId: string;
364
- category: import("./event").Category;
364
+ category: import('./event').Category;
365
365
  }>;
366
366
  time: z.ZodString;
367
367
  type: z.ZodLiteral<"category-filter-applied">;
@@ -369,14 +369,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
369
369
  type: "category-filter-applied";
370
370
  data: {
371
371
  userId: string;
372
- category: import("./event").Category;
372
+ category: import('./event').Category;
373
373
  };
374
374
  time: string;
375
375
  }, {
376
376
  type: "category-filter-applied";
377
377
  data: {
378
378
  userId: string;
379
- category: import("./event").Category;
379
+ category: import('./event').Category;
380
380
  };
381
381
  time: string;
382
382
  }>, z.ZodObject<{
@@ -624,14 +624,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
624
624
  time: string;
625
625
  }>, z.ZodObject<{
626
626
  data: z.ZodObject<{
627
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("./event").Region>, "many">;
627
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('./event').Region>, "many">;
628
628
  userId: z.ZodString;
629
629
  }, "strip", z.ZodTypeAny, {
630
630
  userId: string;
631
- regions: import("./event").Region[];
631
+ regions: import('./event').Region[];
632
632
  }, {
633
633
  userId: string;
634
- regions: import("./event").Region[];
634
+ regions: import('./event').Region[];
635
635
  }>;
636
636
  time: z.ZodString;
637
637
  type: z.ZodLiteral<"region-filter-applied">;
@@ -639,14 +639,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
639
639
  type: "region-filter-applied";
640
640
  data: {
641
641
  userId: string;
642
- regions: import("./event").Region[];
642
+ regions: import('./event').Region[];
643
643
  };
644
644
  time: string;
645
645
  }, {
646
646
  type: "region-filter-applied";
647
647
  data: {
648
648
  userId: string;
649
- regions: import("./event").Region[];
649
+ regions: import('./event').Region[];
650
650
  };
651
651
  time: string;
652
652
  }>]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.34",
3
+ "version": "0.1.37",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",