@sortipei/api-contracts 0.1.34 → 0.1.36

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;
@@ -2,9 +2,10 @@ 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("../../shared").Category>;
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">;
@@ -15,7 +16,7 @@ export declare const EventDTOSchema: z.ZodObject<{
15
16
  isPriceRange: z.ZodBoolean;
16
17
  link: z.ZodNullable<z.ZodString>;
17
18
  price: z.ZodNullable<z.ZodNumber>;
18
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
19
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
19
20
  startTime: z.ZodString;
20
21
  title: z.ZodString;
21
22
  thumbnailUrl: z.ZodNullable<z.ZodString>;
@@ -34,8 +35,8 @@ export declare const EventDTOSchema: z.ZodObject<{
34
35
  name: string;
35
36
  }>, "many">;
36
37
  }, "strip", z.ZodTypeAny, {
37
- regions: import("../../shared").Region[];
38
- category: import("../../shared").Category;
38
+ regions: import('../../shared').Region[];
39
+ category: import('../../shared').Category;
39
40
  startTime: string;
40
41
  createdAt: string;
41
42
  id: string & z.BRAND<"EventId">;
@@ -43,6 +44,7 @@ export declare const EventDTOSchema: z.ZodObject<{
43
44
  adress: string;
44
45
  capacity: number | null;
45
46
  description: string;
47
+ externalSourceId: string | null;
46
48
  finishTime: string | null;
47
49
  hasHandicapAccess: boolean | null;
48
50
  imageBlurHashes: string[];
@@ -60,8 +62,8 @@ export declare const EventDTOSchema: z.ZodObject<{
60
62
  name: string;
61
63
  }[];
62
64
  }, {
63
- regions: import("../../shared").Region[];
64
- category: import("../../shared").Category;
65
+ regions: import('../../shared').Region[];
66
+ category: import('../../shared').Category;
65
67
  startTime: string;
66
68
  createdAt: string;
67
69
  id: string;
@@ -69,6 +71,7 @@ export declare const EventDTOSchema: z.ZodObject<{
69
71
  adress: string;
70
72
  capacity: number | null;
71
73
  description: string;
74
+ externalSourceId: string | null;
72
75
  finishTime: string | null;
73
76
  hasHandicapAccess: boolean | null;
74
77
  imageBlurHashes: string[];
@@ -89,8 +92,9 @@ export declare const EventDTOSchema: z.ZodObject<{
89
92
  export declare const CreateEventDTOSchema: z.ZodObject<{
90
93
  adress: z.ZodString;
91
94
  capacity: z.ZodNullable<z.ZodNumber>;
92
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
95
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
93
96
  description: z.ZodString;
97
+ externalSourceId: z.ZodNullable<z.ZodString>;
94
98
  finishTime: z.ZodNullable<z.ZodString>;
95
99
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
96
100
  id: z.ZodBranded<z.ZodString, "EventId">;
@@ -101,20 +105,21 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
101
105
  link: z.ZodNullable<z.ZodString>;
102
106
  organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
103
107
  price: z.ZodNullable<z.ZodNumber>;
104
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
108
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
105
109
  startTime: z.ZodString;
106
110
  title: z.ZodString;
107
111
  thumbnailUrl: z.ZodNullable<z.ZodString>;
108
112
  ticketsUrl: z.ZodNullable<z.ZodString>;
109
113
  }, "strip", z.ZodTypeAny, {
110
- regions: import("../../shared").Region[];
111
- category: import("../../shared").Category;
114
+ regions: import('../../shared').Region[];
115
+ category: import('../../shared').Category;
112
116
  startTime: string;
113
117
  id: string & z.BRAND<"EventId">;
114
118
  link: string | null;
115
119
  adress: string;
116
120
  capacity: number | null;
117
121
  description: string;
122
+ externalSourceId: string | null;
118
123
  finishTime: string | null;
119
124
  hasHandicapAccess: boolean | null;
120
125
  imageBlurHashes: string[];
@@ -127,14 +132,15 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
127
132
  ticketsUrl: string | null;
128
133
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
129
134
  }, {
130
- regions: import("../../shared").Region[];
131
- category: import("../../shared").Category;
135
+ regions: import('../../shared').Region[];
136
+ category: import('../../shared').Category;
132
137
  startTime: string;
133
138
  id: string;
134
139
  link: string | null;
135
140
  adress: string;
136
141
  capacity: number | null;
137
142
  description: string;
143
+ externalSourceId: string | null;
138
144
  finishTime: string | null;
139
145
  hasHandicapAccess: boolean | null;
140
146
  imageBlurHashes: string[];
@@ -150,8 +156,9 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
150
156
  export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
151
157
  adress: z.ZodString;
152
158
  capacity: z.ZodNullable<z.ZodNumber>;
153
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
159
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
154
160
  description: z.ZodString;
161
+ externalSourceId: z.ZodNullable<z.ZodString>;
155
162
  finishTime: z.ZodNullable<z.ZodString>;
156
163
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
157
164
  id: z.ZodBranded<z.ZodString, "EventId">;
@@ -162,19 +169,20 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
162
169
  link: z.ZodNullable<z.ZodString>;
163
170
  organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
164
171
  price: z.ZodNullable<z.ZodNumber>;
165
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
172
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
166
173
  startTime: z.ZodString;
167
174
  title: z.ZodString;
168
175
  thumbnailUrl: z.ZodNullable<z.ZodString>;
169
176
  ticketsUrl: z.ZodNullable<z.ZodString>;
170
177
  }, "id">, "strip", z.ZodTypeAny, {
171
- regions: import("../../shared").Region[];
172
- category: import("../../shared").Category;
178
+ regions: import('../../shared').Region[];
179
+ category: import('../../shared').Category;
173
180
  startTime: string;
174
181
  link: string | null;
175
182
  adress: string;
176
183
  capacity: number | null;
177
184
  description: string;
185
+ externalSourceId: string | null;
178
186
  finishTime: string | null;
179
187
  hasHandicapAccess: boolean | null;
180
188
  imageBlurHashes: string[];
@@ -187,13 +195,14 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
187
195
  ticketsUrl: string | null;
188
196
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
189
197
  }, {
190
- regions: import("../../shared").Region[];
191
- category: import("../../shared").Category;
198
+ regions: import('../../shared').Region[];
199
+ category: import('../../shared').Category;
192
200
  startTime: string;
193
201
  link: string | null;
194
202
  adress: string;
195
203
  capacity: number | null;
196
204
  description: string;
205
+ externalSourceId: string | null;
197
206
  finishTime: string | null;
198
207
  hasHandicapAccess: boolean | null;
199
208
  imageBlurHashes: string[];
@@ -246,9 +255,10 @@ export declare const ImportDTOSchema: z.ZodObject<{
246
255
  partialEventState: z.ZodObject<{
247
256
  adress: z.ZodOptional<z.ZodString>;
248
257
  capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
249
- category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
258
+ category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
250
259
  createdAt: z.ZodOptional<z.ZodString>;
251
260
  description: z.ZodOptional<z.ZodString>;
261
+ externalSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
262
  finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
263
  hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
254
264
  id: z.ZodOptional<z.ZodBranded<z.ZodString, "EventId">>;
@@ -259,7 +269,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
259
269
  isPriceRange: z.ZodOptional<z.ZodBoolean>;
260
270
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
271
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
262
- regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
272
+ regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
263
273
  startTime: z.ZodOptional<z.ZodString>;
264
274
  title: z.ZodOptional<z.ZodString>;
265
275
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -278,8 +288,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
278
288
  name: string;
279
289
  }>, "many">>;
280
290
  }, "strip", z.ZodTypeAny, {
281
- regions?: import("../../shared").Region[] | undefined;
282
- category?: import("../../shared").Category | undefined;
291
+ regions?: import('../../shared').Region[] | undefined;
292
+ category?: import('../../shared').Category | undefined;
283
293
  startTime?: string | undefined;
284
294
  createdAt?: string | undefined;
285
295
  id?: (string & z.BRAND<"EventId">) | undefined;
@@ -287,6 +297,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
287
297
  adress?: string | undefined;
288
298
  capacity?: number | null | undefined;
289
299
  description?: string | undefined;
300
+ externalSourceId?: string | null | undefined;
290
301
  finishTime?: string | null | undefined;
291
302
  hasHandicapAccess?: boolean | null | undefined;
292
303
  imageBlurHashes?: string[] | undefined;
@@ -304,8 +315,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
304
315
  name: string;
305
316
  }[] | undefined;
306
317
  }, {
307
- regions?: import("../../shared").Region[] | undefined;
308
- category?: import("../../shared").Category | undefined;
318
+ regions?: import('../../shared').Region[] | undefined;
319
+ category?: import('../../shared').Category | undefined;
309
320
  startTime?: string | undefined;
310
321
  createdAt?: string | undefined;
311
322
  id?: string | undefined;
@@ -313,6 +324,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
313
324
  adress?: string | undefined;
314
325
  capacity?: number | null | undefined;
315
326
  description?: string | undefined;
327
+ externalSourceId?: string | null | undefined;
316
328
  finishTime?: string | null | undefined;
317
329
  hasHandicapAccess?: boolean | null | undefined;
318
330
  imageBlurHashes?: string[] | undefined;
@@ -338,8 +350,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
338
350
  id: string;
339
351
  organizersNames: string[];
340
352
  partialEventState: {
341
- regions?: import("../../shared").Region[] | undefined;
342
- category?: import("../../shared").Category | undefined;
353
+ regions?: import('../../shared').Region[] | undefined;
354
+ category?: import('../../shared').Category | undefined;
343
355
  startTime?: string | undefined;
344
356
  createdAt?: string | undefined;
345
357
  id?: (string & z.BRAND<"EventId">) | undefined;
@@ -347,6 +359,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
347
359
  adress?: string | undefined;
348
360
  capacity?: number | null | undefined;
349
361
  description?: string | undefined;
362
+ externalSourceId?: string | null | undefined;
350
363
  finishTime?: string | null | undefined;
351
364
  hasHandicapAccess?: boolean | null | undefined;
352
365
  imageBlurHashes?: string[] | undefined;
@@ -371,8 +384,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
371
384
  id: string;
372
385
  organizersNames: string[];
373
386
  partialEventState: {
374
- regions?: import("../../shared").Region[] | undefined;
375
- category?: import("../../shared").Category | undefined;
387
+ regions?: import('../../shared').Region[] | undefined;
388
+ category?: import('../../shared').Category | undefined;
376
389
  startTime?: string | undefined;
377
390
  createdAt?: string | undefined;
378
391
  id?: string | undefined;
@@ -380,6 +393,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
380
393
  adress?: string | undefined;
381
394
  capacity?: number | null | undefined;
382
395
  description?: string | undefined;
396
+ externalSourceId?: string | null | undefined;
383
397
  finishTime?: string | null | undefined;
384
398
  hasHandicapAccess?: boolean | null | undefined;
385
399
  imageBlurHashes?: string[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO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E,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"}
@@ -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
+ count: number;
9
+ eventId: string & z.BRAND<"EventId">;
10
+ eventTitle: string;
11
+ }, {
12
+ count: number;
13
+ eventId: string;
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
+ count: number;
28
+ eventId: string & z.BRAND<"EventId">;
29
+ eventTitle: string;
30
+ }, {
31
+ count: number;
32
+ eventId: string;
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
+ count: number;
41
+ eventId: string & z.BRAND<"EventId">;
42
+ eventTitle: string;
43
+ }, {
44
+ count: number;
45
+ eventId: string;
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
+ count: number;
54
+ eventId: string & z.BRAND<"EventId">;
55
+ eventTitle: string;
56
+ }, {
57
+ count: number;
58
+ eventId: string;
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
+ count: number;
67
+ eventId: string & z.BRAND<"EventId">;
68
+ eventTitle: string;
69
+ }, {
70
+ count: number;
71
+ eventId: string;
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
+ count: number;
85
+ eventId: string & z.BRAND<"EventId">;
86
+ eventTitle: string;
87
+ }[];
88
+ topUpcomingAddedToFavoritesEvents: {
89
+ count: number;
90
+ eventId: string & z.BRAND<"EventId">;
91
+ eventTitle: string;
92
+ }[];
93
+ topUpcomingViewedEvents: {
94
+ count: number;
95
+ eventId: string & z.BRAND<"EventId">;
96
+ eventTitle: string;
97
+ }[];
98
+ topViewedEvents: {
99
+ count: number;
100
+ eventId: string & z.BRAND<"EventId">;
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
+ count: number;
114
+ eventId: string;
115
+ eventTitle: string;
116
+ }[];
117
+ topUpcomingAddedToFavoritesEvents: {
118
+ count: number;
119
+ eventId: string;
120
+ eventTitle: string;
121
+ }[];
122
+ topUpcomingViewedEvents: {
123
+ count: number;
124
+ eventId: string;
125
+ eventTitle: string;
126
+ }[];
127
+ topViewedEvents: {
128
+ count: number;
129
+ eventId: string;
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<{
@@ -101,26 +222,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
101
222
  userId: z.ZodString;
102
223
  eventId: z.ZodString;
103
224
  }, "strip", z.ZodTypeAny, {
104
- userId: string;
105
225
  eventId: string;
106
- }, {
107
226
  userId: string;
227
+ }, {
108
228
  eventId: string;
229
+ userId: string;
109
230
  }>;
110
231
  time: z.ZodString;
111
232
  type: z.ZodLiteral<"event-added-to-calendar">;
112
233
  }, "strip", z.ZodTypeAny, {
113
234
  type: "event-added-to-calendar";
114
235
  data: {
115
- userId: string;
116
236
  eventId: string;
237
+ userId: string;
117
238
  };
118
239
  time: string;
119
240
  }, {
120
241
  type: "event-added-to-calendar";
121
242
  data: {
122
- userId: string;
123
243
  eventId: string;
244
+ userId: string;
124
245
  };
125
246
  time: string;
126
247
  }>, z.ZodObject<{
@@ -128,26 +249,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
128
249
  userId: z.ZodString;
129
250
  eventId: z.ZodString;
130
251
  }, "strip", z.ZodTypeAny, {
131
- userId: string;
132
252
  eventId: string;
133
- }, {
134
253
  userId: string;
254
+ }, {
135
255
  eventId: string;
256
+ userId: string;
136
257
  }>;
137
258
  time: z.ZodString;
138
259
  type: z.ZodLiteral<"event-added-to-favorites">;
139
260
  }, "strip", z.ZodTypeAny, {
140
261
  type: "event-added-to-favorites";
141
262
  data: {
142
- userId: string;
143
263
  eventId: string;
264
+ userId: string;
144
265
  };
145
266
  time: string;
146
267
  }, {
147
268
  type: "event-added-to-favorites";
148
269
  data: {
149
- userId: string;
150
270
  eventId: string;
271
+ userId: string;
151
272
  };
152
273
  time: string;
153
274
  }>, z.ZodObject<{
@@ -155,26 +276,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
155
276
  userId: z.ZodString;
156
277
  eventId: z.ZodString;
157
278
  }, "strip", z.ZodTypeAny, {
158
- userId: string;
159
279
  eventId: string;
160
- }, {
161
280
  userId: string;
281
+ }, {
162
282
  eventId: string;
283
+ userId: string;
163
284
  }>;
164
285
  time: z.ZodString;
165
286
  type: z.ZodLiteral<"event-displayed">;
166
287
  }, "strip", z.ZodTypeAny, {
167
288
  type: "event-displayed";
168
289
  data: {
169
- userId: string;
170
290
  eventId: string;
291
+ userId: string;
171
292
  };
172
293
  time: string;
173
294
  }, {
174
295
  type: "event-displayed";
175
296
  data: {
176
- userId: string;
177
297
  eventId: string;
298
+ userId: string;
178
299
  };
179
300
  time: string;
180
301
  }>, z.ZodObject<{
@@ -182,26 +303,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
182
303
  userId: z.ZodString;
183
304
  eventId: z.ZodString;
184
305
  }, "strip", z.ZodTypeAny, {
185
- userId: string;
186
306
  eventId: string;
187
- }, {
188
307
  userId: string;
308
+ }, {
189
309
  eventId: string;
310
+ userId: string;
190
311
  }>;
191
312
  time: z.ZodString;
192
313
  type: z.ZodLiteral<"event-see-more-clicked">;
193
314
  }, "strip", z.ZodTypeAny, {
194
315
  type: "event-see-more-clicked";
195
316
  data: {
196
- userId: string;
197
317
  eventId: string;
318
+ userId: string;
198
319
  };
199
320
  time: string;
200
321
  }, {
201
322
  type: "event-see-more-clicked";
202
323
  data: {
203
- userId: string;
204
324
  eventId: string;
325
+ userId: string;
205
326
  };
206
327
  time: string;
207
328
  }>, z.ZodObject<{
@@ -209,26 +330,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
209
330
  userId: z.ZodString;
210
331
  eventId: z.ZodString;
211
332
  }, "strip", z.ZodTypeAny, {
212
- userId: string;
213
333
  eventId: string;
214
- }, {
215
334
  userId: string;
335
+ }, {
216
336
  eventId: string;
337
+ userId: string;
217
338
  }>;
218
339
  time: z.ZodString;
219
340
  type: z.ZodLiteral<"event-tickets-clicked">;
220
341
  }, "strip", z.ZodTypeAny, {
221
342
  type: "event-tickets-clicked";
222
343
  data: {
223
- userId: string;
224
344
  eventId: string;
345
+ userId: string;
225
346
  };
226
347
  time: string;
227
348
  }, {
228
349
  type: "event-tickets-clicked";
229
350
  data: {
230
- userId: string;
231
351
  eventId: string;
352
+ userId: string;
232
353
  };
233
354
  time: string;
234
355
  }>, z.ZodObject<{
@@ -236,26 +357,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
236
357
  userId: z.ZodString;
237
358
  eventId: z.ZodString;
238
359
  }, "strip", z.ZodTypeAny, {
239
- userId: string;
240
360
  eventId: string;
241
- }, {
242
361
  userId: string;
362
+ }, {
243
363
  eventId: string;
364
+ userId: string;
244
365
  }>;
245
366
  time: z.ZodString;
246
367
  type: z.ZodLiteral<"event-shared">;
247
368
  }, "strip", z.ZodTypeAny, {
248
369
  type: "event-shared";
249
370
  data: {
250
- userId: string;
251
371
  eventId: string;
372
+ userId: string;
252
373
  };
253
374
  time: string;
254
375
  }, {
255
376
  type: "event-shared";
256
377
  data: {
257
- userId: string;
258
378
  eventId: string;
379
+ userId: string;
259
380
  };
260
381
  time: string;
261
382
  }>, z.ZodObject<{
@@ -343,59 +464,60 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
343
464
  };
344
465
  time: string;
345
466
  } | {
346
- type: "event-displayed";
467
+ type: "category-filter-applied";
347
468
  data: {
348
469
  userId: string;
349
- eventId: string;
470
+ category: import("../../shared").Category;
350
471
  };
351
472
  time: string;
352
473
  } | {
353
- type: "organizer-displayed";
474
+ type: "date-filter-applied";
354
475
  data: {
355
476
  userId: string;
356
- organizerId: string;
477
+ startTime: string;
478
+ endTime: string;
357
479
  };
358
480
  time: string;
359
481
  } | {
360
- type: "event-added-to-favorites";
482
+ type: "event-added-to-calendar";
361
483
  data: {
362
- userId: string;
363
484
  eventId: string;
485
+ userId: string;
364
486
  };
365
487
  time: string;
366
488
  } | {
367
- type: "event-added-to-calendar";
489
+ type: "event-added-to-favorites";
368
490
  data: {
369
- userId: string;
370
491
  eventId: string;
492
+ userId: string;
371
493
  };
372
494
  time: string;
373
495
  } | {
374
- type: "event-shared";
496
+ type: "event-displayed";
375
497
  data: {
376
- userId: string;
377
498
  eventId: string;
499
+ userId: string;
378
500
  };
379
501
  time: string;
380
502
  } | {
381
- type: "event-tickets-clicked";
503
+ type: "event-see-more-clicked";
382
504
  data: {
383
- userId: string;
384
505
  eventId: string;
506
+ userId: string;
385
507
  };
386
508
  time: string;
387
509
  } | {
388
- type: "event-see-more-clicked";
510
+ type: "event-tickets-clicked";
389
511
  data: {
390
- userId: string;
391
512
  eventId: string;
513
+ userId: string;
392
514
  };
393
515
  time: string;
394
516
  } | {
395
- type: "region-filter-applied";
517
+ type: "event-shared";
396
518
  data: {
519
+ eventId: string;
397
520
  userId: string;
398
- regions: import("../../shared").Region[];
399
521
  };
400
522
  time: string;
401
523
  } | {
@@ -405,18 +527,17 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
405
527
  };
406
528
  time: string;
407
529
  } | {
408
- type: "category-filter-applied";
530
+ type: "organizer-displayed";
409
531
  data: {
410
532
  userId: string;
411
- category: import("../../shared").Category;
533
+ organizerId: string;
412
534
  };
413
535
  time: string;
414
536
  } | {
415
- type: "date-filter-applied";
537
+ type: "region-filter-applied";
416
538
  data: {
417
539
  userId: string;
418
- startTime: string;
419
- endTime: string;
540
+ regions: import("../../shared").Region[];
420
541
  };
421
542
  time: string;
422
543
  };
@@ -428,59 +549,60 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
428
549
  };
429
550
  time: string;
430
551
  } | {
431
- type: "event-displayed";
552
+ type: "category-filter-applied";
432
553
  data: {
433
554
  userId: string;
434
- eventId: string;
555
+ category: import("../../shared").Category;
435
556
  };
436
557
  time: string;
437
558
  } | {
438
- type: "organizer-displayed";
559
+ type: "date-filter-applied";
439
560
  data: {
440
561
  userId: string;
441
- organizerId: string;
562
+ startTime: string;
563
+ endTime: string;
442
564
  };
443
565
  time: string;
444
566
  } | {
445
- type: "event-added-to-favorites";
567
+ type: "event-added-to-calendar";
446
568
  data: {
447
- userId: string;
448
569
  eventId: string;
570
+ userId: string;
449
571
  };
450
572
  time: string;
451
573
  } | {
452
- type: "event-added-to-calendar";
574
+ type: "event-added-to-favorites";
453
575
  data: {
454
- userId: string;
455
576
  eventId: string;
577
+ userId: string;
456
578
  };
457
579
  time: string;
458
580
  } | {
459
- type: "event-shared";
581
+ type: "event-displayed";
460
582
  data: {
461
- userId: string;
462
583
  eventId: string;
584
+ userId: string;
463
585
  };
464
586
  time: string;
465
587
  } | {
466
- type: "event-tickets-clicked";
588
+ type: "event-see-more-clicked";
467
589
  data: {
468
- userId: string;
469
590
  eventId: string;
591
+ userId: string;
470
592
  };
471
593
  time: string;
472
594
  } | {
473
- type: "event-see-more-clicked";
595
+ type: "event-tickets-clicked";
474
596
  data: {
475
- userId: string;
476
597
  eventId: string;
598
+ userId: string;
477
599
  };
478
600
  time: string;
479
601
  } | {
480
- type: "region-filter-applied";
602
+ type: "event-shared";
481
603
  data: {
604
+ eventId: string;
482
605
  userId: string;
483
- regions: import("../../shared").Region[];
484
606
  };
485
607
  time: string;
486
608
  } | {
@@ -490,18 +612,17 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
490
612
  };
491
613
  time: string;
492
614
  } | {
493
- type: "category-filter-applied";
615
+ type: "organizer-displayed";
494
616
  data: {
495
617
  userId: string;
496
- category: import("../../shared").Category;
618
+ organizerId: string;
497
619
  };
498
620
  time: string;
499
621
  } | {
500
- type: "date-filter-applied";
622
+ type: "region-filter-applied";
501
623
  data: {
502
624
  userId: string;
503
- startTime: string;
504
- endTime: string;
625
+ regions: import("../../shared").Region[];
505
626
  };
506
627
  time: string;
507
628
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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M,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -3,9 +3,10 @@ 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("../../shared").Category>>;
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">>;
@@ -16,7 +17,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
16
17
  isPriceRange: z.ZodOptional<z.ZodBoolean>;
17
18
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
19
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
- regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
20
+ regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
20
21
  startTime: z.ZodOptional<z.ZodString>;
21
22
  title: z.ZodOptional<z.ZodString>;
22
23
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -35,8 +36,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
35
36
  name: string;
36
37
  }>, "many">>;
37
38
  }, "strip", z.ZodTypeAny, {
38
- regions?: import("../../shared").Region[] | undefined;
39
- category?: import("../../shared").Category | undefined;
39
+ regions?: import('../../shared').Region[] | undefined;
40
+ category?: import('../../shared').Category | undefined;
40
41
  startTime?: string | undefined;
41
42
  createdAt?: string | undefined;
42
43
  id?: (string & z.BRAND<"EventId">) | undefined;
@@ -44,6 +45,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
44
45
  adress?: string | undefined;
45
46
  capacity?: number | null | undefined;
46
47
  description?: string | undefined;
48
+ externalSourceId?: string | null | undefined;
47
49
  finishTime?: string | null | undefined;
48
50
  hasHandicapAccess?: boolean | null | undefined;
49
51
  imageBlurHashes?: string[] | undefined;
@@ -61,8 +63,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
61
63
  name: string;
62
64
  }[] | undefined;
63
65
  }, {
64
- regions?: import("../../shared").Region[] | undefined;
65
- category?: import("../../shared").Category | undefined;
66
+ regions?: import('../../shared').Region[] | undefined;
67
+ category?: import('../../shared').Category | undefined;
66
68
  startTime?: string | undefined;
67
69
  createdAt?: string | undefined;
68
70
  id?: string | undefined;
@@ -70,6 +72,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
70
72
  adress?: string | undefined;
71
73
  capacity?: number | null | undefined;
72
74
  description?: string | undefined;
75
+ externalSourceId?: string | null | undefined;
73
76
  finishTime?: string | null | undefined;
74
77
  hasHandicapAccess?: boolean | null | undefined;
75
78
  imageBlurHashes?: string[] | undefined;
@@ -95,8 +98,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
95
98
  userId: string;
96
99
  organizersNames: string[];
97
100
  partialEventState: {
98
- regions?: import("../../shared").Region[] | undefined;
99
- category?: import("../../shared").Category | undefined;
101
+ regions?: import('../../shared').Region[] | undefined;
102
+ category?: import('../../shared').Category | undefined;
100
103
  startTime?: string | undefined;
101
104
  createdAt?: string | undefined;
102
105
  id?: (string & z.BRAND<"EventId">) | undefined;
@@ -104,6 +107,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
104
107
  adress?: string | undefined;
105
108
  capacity?: number | null | undefined;
106
109
  description?: string | undefined;
110
+ externalSourceId?: string | null | undefined;
107
111
  finishTime?: string | null | undefined;
108
112
  hasHandicapAccess?: boolean | null | undefined;
109
113
  imageBlurHashes?: string[] | undefined;
@@ -127,8 +131,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
127
131
  userId: string;
128
132
  organizersNames: string[];
129
133
  partialEventState: {
130
- regions?: import("../../shared").Region[] | undefined;
131
- category?: import("../../shared").Category | undefined;
134
+ regions?: import('../../shared').Region[] | undefined;
135
+ category?: import('../../shared').Category | undefined;
132
136
  startTime?: string | undefined;
133
137
  createdAt?: string | undefined;
134
138
  id?: string | undefined;
@@ -136,6 +140,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
136
140
  adress?: string | undefined;
137
141
  capacity?: number | null | undefined;
138
142
  description?: string | undefined;
143
+ externalSourceId?: string | null | undefined;
139
144
  finishTime?: string | null | undefined;
140
145
  hasHandicapAccess?: boolean | null | undefined;
141
146
  imageBlurHashes?: string[] | 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,22 @@ 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
+ topViewedEvents: TopEventDTOSchema.array(),
4345
4358
  totalFavoritesCount: z.number(),
4346
- usersCount: z.number()
4359
+ usersCount: z.number(),
4360
+ usersWithMultipleDayAppOpened: z.number()
4347
4361
  });
4348
4362
  const SaveStatisticDTOSchema = z.object({
4349
4363
  statistic: StatisticSchema
@@ -4369,6 +4383,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4369
4383
  PromoteEventDTOSchema,
4370
4384
  RegionalAdDTOSchema,
4371
4385
  SaveStatisticDTOSchema,
4386
+ TopEventDTOSchema,
4372
4387
  UpdateAppConfigurationDTOSchema,
4373
4388
  UpdateEventDTOSchema,
4374
4389
  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,22 @@ 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
+ topViewedEvents: TopEventDTOSchema.array(),
4343
4356
  totalFavoritesCount: z.number(),
4344
- usersCount: z.number()
4357
+ usersCount: z.number(),
4358
+ usersWithMultipleDayAppOpened: z.number()
4345
4359
  });
4346
4360
  const SaveStatisticDTOSchema = z.object({
4347
4361
  statistic: StatisticSchema
@@ -4367,6 +4381,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4367
4381
  PromoteEventDTOSchema,
4368
4382
  RegionalAdDTOSchema,
4369
4383
  SaveStatisticDTOSchema,
4384
+ TopEventDTOSchema,
4370
4385
  UpdateAppConfigurationDTOSchema,
4371
4386
  UpdateEventDTOSchema,
4372
4387
  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.36",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",