@sortipei/api-contracts 0.1.33 → 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.
@@ -55,6 +55,7 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
55
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
59
  startTime: string;
59
60
  endTime: string;
60
61
  createdAt: string;
@@ -62,8 +63,8 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
62
63
  imageUrl: string;
63
64
  isEnabled: boolean;
64
65
  link: string | null;
65
- regions: import('../../shared').Region[];
66
66
  }, {
67
+ regions: import('../../shared').Region[];
67
68
  startTime: string;
68
69
  endTime: string;
69
70
  createdAt: string;
@@ -71,7 +72,6 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
71
72
  imageUrl: string;
72
73
  isEnabled: boolean;
73
74
  link: string | null;
74
- regions: import('../../shared').Region[];
75
75
  }>;
76
76
  export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
77
77
  createdAt: z.ZodString;
@@ -83,19 +83,19 @@ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
83
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
87
  startTime: string;
87
88
  endTime: string;
88
89
  imageUrl: string;
89
90
  isEnabled: boolean;
90
91
  link: string | null;
91
- regions: import('../../shared').Region[];
92
92
  }, {
93
+ regions: import('../../shared').Region[];
93
94
  startTime: string;
94
95
  endTime: string;
95
96
  imageUrl: string;
96
97
  isEnabled: boolean;
97
98
  link: string | null;
98
- regions: import('../../shared').Region[];
99
99
  }>;
100
100
  export type MainAdDTO = z.infer<typeof MainAdDTOSchema>;
101
101
  export type UpdateMainAdDTO = z.infer<typeof UpdateMainAdDTOSchema>;
@@ -5,6 +5,7 @@ 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">;
@@ -34,15 +35,16 @@ export declare const EventDTOSchema: z.ZodObject<{
34
35
  name: string;
35
36
  }>, "many">;
36
37
  }, "strip", z.ZodTypeAny, {
38
+ regions: import('../../shared').Region[];
37
39
  category: import('../../shared').Category;
38
40
  startTime: string;
39
41
  createdAt: string;
40
42
  id: string & z.BRAND<"EventId">;
41
43
  link: string | null;
42
- regions: import('../../shared').Region[];
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,15 +62,16 @@ export declare const EventDTOSchema: z.ZodObject<{
60
62
  name: string;
61
63
  }[];
62
64
  }, {
65
+ regions: import('../../shared').Region[];
63
66
  category: import('../../shared').Category;
64
67
  startTime: string;
65
68
  createdAt: string;
66
69
  id: string;
67
70
  link: string | null;
68
- regions: import('../../shared').Region[];
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[];
@@ -91,6 +94,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
91
94
  capacity: z.ZodNullable<z.ZodNumber>;
92
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">;
@@ -107,14 +111,15 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
107
111
  thumbnailUrl: z.ZodNullable<z.ZodString>;
108
112
  ticketsUrl: z.ZodNullable<z.ZodString>;
109
113
  }, "strip", z.ZodTypeAny, {
114
+ regions: import('../../shared').Region[];
110
115
  category: import('../../shared').Category;
111
116
  startTime: string;
112
117
  id: string & z.BRAND<"EventId">;
113
118
  link: string | null;
114
- regions: import('../../shared').Region[];
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
  }, {
135
+ regions: import('../../shared').Region[];
130
136
  category: import('../../shared').Category;
131
137
  startTime: string;
132
138
  id: string;
133
139
  link: string | null;
134
- regions: import('../../shared').Region[];
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[];
@@ -152,6 +158,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
152
158
  capacity: z.ZodNullable<z.ZodNumber>;
153
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">;
@@ -168,13 +175,14 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
168
175
  thumbnailUrl: z.ZodNullable<z.ZodString>;
169
176
  ticketsUrl: z.ZodNullable<z.ZodString>;
170
177
  }, "id">, "strip", z.ZodTypeAny, {
178
+ regions: import('../../shared').Region[];
171
179
  category: import('../../shared').Category;
172
180
  startTime: string;
173
181
  link: string | null;
174
- regions: import('../../shared').Region[];
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
  }, {
198
+ regions: import('../../shared').Region[];
190
199
  category: import('../../shared').Category;
191
200
  startTime: string;
192
201
  link: string | null;
193
- regions: import('../../shared').Region[];
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[];
@@ -249,6 +258,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
249
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">>;
@@ -278,15 +288,16 @@ export declare const ImportDTOSchema: z.ZodObject<{
278
288
  name: string;
279
289
  }>, "many">>;
280
290
  }, "strip", z.ZodTypeAny, {
291
+ regions?: import('../../shared').Region[] | undefined;
281
292
  category?: import('../../shared').Category | undefined;
282
293
  startTime?: string | undefined;
283
294
  createdAt?: string | undefined;
284
295
  id?: (string & z.BRAND<"EventId">) | undefined;
285
296
  link?: string | null | undefined;
286
- regions?: import('../../shared').Region[] | undefined;
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,15 +315,16 @@ export declare const ImportDTOSchema: z.ZodObject<{
304
315
  name: string;
305
316
  }[] | undefined;
306
317
  }, {
318
+ regions?: import('../../shared').Region[] | undefined;
307
319
  category?: import('../../shared').Category | undefined;
308
320
  startTime?: string | undefined;
309
321
  createdAt?: string | undefined;
310
322
  id?: string | undefined;
311
323
  link?: string | null | undefined;
312
- regions?: import('../../shared').Region[] | undefined;
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,15 +350,16 @@ export declare const ImportDTOSchema: z.ZodObject<{
338
350
  id: string;
339
351
  organizersNames: string[];
340
352
  partialEventState: {
353
+ regions?: import('../../shared').Region[] | undefined;
341
354
  category?: import('../../shared').Category | undefined;
342
355
  startTime?: string | undefined;
343
356
  createdAt?: string | undefined;
344
357
  id?: (string & z.BRAND<"EventId">) | undefined;
345
358
  link?: string | null | undefined;
346
- regions?: import('../../shared').Region[] | undefined;
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,15 +384,16 @@ export declare const ImportDTOSchema: z.ZodObject<{
371
384
  id: string;
372
385
  organizersNames: string[];
373
386
  partialEventState: {
387
+ regions?: import('../../shared').Region[] | undefined;
374
388
  category?: import('../../shared').Category | undefined;
375
389
  startTime?: string | undefined;
376
390
  createdAt?: string | undefined;
377
391
  id?: string | undefined;
378
392
  link?: string | null | undefined;
379
- regions?: import('../../shared').Region[] | undefined;
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,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CA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';
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<{
@@ -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<{
@@ -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<{
@@ -309,14 +430,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
309
430
  time: string;
310
431
  }>, z.ZodObject<{
311
432
  data: z.ZodObject<{
312
- region: z.ZodNativeEnum<typeof import('../../shared').Region>;
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
- region: import('../../shared').Region;
437
+ regions: import("../../shared").Region[];
317
438
  }, {
318
439
  userId: string;
319
- region: 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
- region: 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
- region: import('../../shared').Region;
455
+ regions: import("../../shared").Region[];
335
456
  };
336
457
  time: string;
337
458
  }>]>;
@@ -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
- region: 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
- region: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,6 +6,7 @@ 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">>;
@@ -35,15 +36,16 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
35
36
  name: string;
36
37
  }>, "many">>;
37
38
  }, "strip", z.ZodTypeAny, {
39
+ regions?: import('../../shared').Region[] | undefined;
38
40
  category?: import('../../shared').Category | undefined;
39
41
  startTime?: string | undefined;
40
42
  createdAt?: string | undefined;
41
43
  id?: (string & z.BRAND<"EventId">) | undefined;
42
44
  link?: string | null | undefined;
43
- regions?: import('../../shared').Region[] | undefined;
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,15 +63,16 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
61
63
  name: string;
62
64
  }[] | undefined;
63
65
  }, {
66
+ regions?: import('../../shared').Region[] | undefined;
64
67
  category?: import('../../shared').Category | undefined;
65
68
  startTime?: string | undefined;
66
69
  createdAt?: string | undefined;
67
70
  id?: string | undefined;
68
71
  link?: string | null | undefined;
69
- regions?: import('../../shared').Region[] | undefined;
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,15 +98,16 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
95
98
  userId: string;
96
99
  organizersNames: string[];
97
100
  partialEventState: {
101
+ regions?: import('../../shared').Region[] | undefined;
98
102
  category?: import('../../shared').Category | undefined;
99
103
  startTime?: string | undefined;
100
104
  createdAt?: string | undefined;
101
105
  id?: (string & z.BRAND<"EventId">) | undefined;
102
106
  link?: string | null | undefined;
103
- regions?: import('../../shared').Region[] | undefined;
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,15 +131,16 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
127
131
  userId: string;
128
132
  organizersNames: string[];
129
133
  partialEventState: {
134
+ regions?: import('../../shared').Region[] | undefined;
130
135
  category?: import('../../shared').Category | undefined;
131
136
  startTime?: string | undefined;
132
137
  createdAt?: string | undefined;
133
138
  id?: string | undefined;
134
139
  link?: string | null | undefined;
135
- regions?: import('../../shared').Region[] | undefined;
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
- region: z.ZodNativeEnum<typeof import('./event').Region>;
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
- region: import('./event').Region;
227
+ regions: import('./event').Region[];
228
228
  }, {
229
229
  userId: string;
230
- region: 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
- region: 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
- region: import('./event').Region;
245
+ regions: import('./event').Region[];
246
246
  };
247
247
  time: string;
248
248
  }>;
@@ -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
- region: z.ZodNativeEnum<typeof import('./event').Region>;
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
- region: import('./event').Region;
631
+ regions: import('./event').Region[];
632
632
  }, {
633
633
  userId: string;
634
- region: 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
- region: 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
- region: 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.33",
3
+ "version": "0.1.36",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",