@sortipei/api-contracts 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/V1/api/statistics.d.ts +176 -106
- package/dist/V1/api/statistics.d.ts.map +1 -1
- package/dist/api-contracts.js +17 -1
- package/dist/api-contracts.mjs +17 -1
- package/package.json +1 -1
|
@@ -5,12 +5,12 @@ export declare const TopEventDTOSchema: z.ZodObject<{
|
|
|
5
5
|
eventId: z.ZodBranded<z.ZodString, "EventId">;
|
|
6
6
|
eventTitle: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
count: number;
|
|
9
8
|
eventId: string & z.BRAND<"EventId">;
|
|
9
|
+
count: number;
|
|
10
10
|
eventTitle: string;
|
|
11
11
|
}, {
|
|
12
|
-
count: number;
|
|
13
12
|
eventId: string;
|
|
13
|
+
count: number;
|
|
14
14
|
eventTitle: string;
|
|
15
15
|
}>;
|
|
16
16
|
export declare const AdStatDTOSchema: z.ZodObject<{
|
|
@@ -71,12 +71,12 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
71
71
|
eventId: z.ZodBranded<z.ZodString, "EventId">;
|
|
72
72
|
eventTitle: z.ZodString;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
count: number;
|
|
75
74
|
eventId: string & z.BRAND<"EventId">;
|
|
75
|
+
count: number;
|
|
76
76
|
eventTitle: string;
|
|
77
77
|
}, {
|
|
78
|
-
count: number;
|
|
79
78
|
eventId: string;
|
|
79
|
+
count: number;
|
|
80
80
|
eventTitle: string;
|
|
81
81
|
}>, "many">;
|
|
82
82
|
topUpcomingAddedToFavoritesEvents: z.ZodArray<z.ZodObject<{
|
|
@@ -84,12 +84,12 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
84
84
|
eventId: z.ZodBranded<z.ZodString, "EventId">;
|
|
85
85
|
eventTitle: z.ZodString;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
count: number;
|
|
88
87
|
eventId: string & z.BRAND<"EventId">;
|
|
88
|
+
count: number;
|
|
89
89
|
eventTitle: string;
|
|
90
90
|
}, {
|
|
91
|
-
count: number;
|
|
92
91
|
eventId: string;
|
|
92
|
+
count: number;
|
|
93
93
|
eventTitle: string;
|
|
94
94
|
}>, "many">;
|
|
95
95
|
topUpcomingViewedEvents: z.ZodArray<z.ZodObject<{
|
|
@@ -97,12 +97,12 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
97
97
|
eventId: z.ZodBranded<z.ZodString, "EventId">;
|
|
98
98
|
eventTitle: z.ZodString;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
count: number;
|
|
101
100
|
eventId: string & z.BRAND<"EventId">;
|
|
101
|
+
count: number;
|
|
102
102
|
eventTitle: string;
|
|
103
103
|
}, {
|
|
104
|
-
count: number;
|
|
105
104
|
eventId: string;
|
|
105
|
+
count: number;
|
|
106
106
|
eventTitle: string;
|
|
107
107
|
}>, "many">;
|
|
108
108
|
topViewedEvents: z.ZodArray<z.ZodObject<{
|
|
@@ -110,12 +110,12 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
110
110
|
eventId: z.ZodBranded<z.ZodString, "EventId">;
|
|
111
111
|
eventTitle: z.ZodString;
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
count: number;
|
|
114
113
|
eventId: string & z.BRAND<"EventId">;
|
|
114
|
+
count: number;
|
|
115
115
|
eventTitle: string;
|
|
116
116
|
}, {
|
|
117
|
-
count: number;
|
|
118
117
|
eventId: string;
|
|
118
|
+
count: number;
|
|
119
119
|
eventTitle: string;
|
|
120
120
|
}>, "many">;
|
|
121
121
|
totalAddedToCalendar: z.ZodNumber;
|
|
@@ -135,23 +135,23 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
135
135
|
presentOrFutureEventsCount: number;
|
|
136
136
|
sharedEventsCount: number;
|
|
137
137
|
topAddedToFavoritesEvents: {
|
|
138
|
-
count: number;
|
|
139
138
|
eventId: string & z.BRAND<"EventId">;
|
|
139
|
+
count: number;
|
|
140
140
|
eventTitle: string;
|
|
141
141
|
}[];
|
|
142
142
|
topUpcomingAddedToFavoritesEvents: {
|
|
143
|
-
count: number;
|
|
144
143
|
eventId: string & z.BRAND<"EventId">;
|
|
144
|
+
count: number;
|
|
145
145
|
eventTitle: string;
|
|
146
146
|
}[];
|
|
147
147
|
topUpcomingViewedEvents: {
|
|
148
|
-
count: number;
|
|
149
148
|
eventId: string & z.BRAND<"EventId">;
|
|
149
|
+
count: number;
|
|
150
150
|
eventTitle: string;
|
|
151
151
|
}[];
|
|
152
152
|
topViewedEvents: {
|
|
153
|
-
count: number;
|
|
154
153
|
eventId: string & z.BRAND<"EventId">;
|
|
154
|
+
count: number;
|
|
155
155
|
eventTitle: string;
|
|
156
156
|
}[];
|
|
157
157
|
totalAddedToCalendar: number;
|
|
@@ -171,23 +171,23 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
171
171
|
presentOrFutureEventsCount: number;
|
|
172
172
|
sharedEventsCount: number;
|
|
173
173
|
topAddedToFavoritesEvents: {
|
|
174
|
-
count: number;
|
|
175
174
|
eventId: string;
|
|
175
|
+
count: number;
|
|
176
176
|
eventTitle: string;
|
|
177
177
|
}[];
|
|
178
178
|
topUpcomingAddedToFavoritesEvents: {
|
|
179
|
-
count: number;
|
|
180
179
|
eventId: string;
|
|
180
|
+
count: number;
|
|
181
181
|
eventTitle: string;
|
|
182
182
|
}[];
|
|
183
183
|
topUpcomingViewedEvents: {
|
|
184
|
-
count: number;
|
|
185
184
|
eventId: string;
|
|
185
|
+
count: number;
|
|
186
186
|
eventTitle: string;
|
|
187
187
|
}[];
|
|
188
188
|
topViewedEvents: {
|
|
189
|
-
count: number;
|
|
190
189
|
eventId: string;
|
|
190
|
+
count: number;
|
|
191
191
|
eventTitle: string;
|
|
192
192
|
}[];
|
|
193
193
|
totalAddedToCalendar: number;
|
|
@@ -197,10 +197,80 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
197
197
|
usersWithMultipleDayAppOpened: number;
|
|
198
198
|
appOpenedCount: number;
|
|
199
199
|
}>;
|
|
200
|
+
export declare const TemporalStatsWeekDTOSchema: z.ZodObject<{
|
|
201
|
+
weekStart: z.ZodDate;
|
|
202
|
+
weekEnd: z.ZodDate;
|
|
203
|
+
eventsCount: z.ZodNumber;
|
|
204
|
+
openedEventsCount: z.ZodNumber;
|
|
205
|
+
sharedEventsCount: z.ZodNumber;
|
|
206
|
+
totalAddedToCalendar: z.ZodNumber;
|
|
207
|
+
totalFavoritesCount: z.ZodNumber;
|
|
208
|
+
totalShared: z.ZodNumber;
|
|
209
|
+
usersCount: z.ZodNumber;
|
|
210
|
+
appOpenedCount: z.ZodNumber;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
eventsCount: number;
|
|
213
|
+
openedEventsCount: number;
|
|
214
|
+
sharedEventsCount: number;
|
|
215
|
+
totalAddedToCalendar: number;
|
|
216
|
+
totalFavoritesCount: number;
|
|
217
|
+
totalShared: number;
|
|
218
|
+
usersCount: number;
|
|
219
|
+
appOpenedCount: number;
|
|
220
|
+
weekStart: Date;
|
|
221
|
+
weekEnd: Date;
|
|
222
|
+
}, {
|
|
223
|
+
eventsCount: number;
|
|
224
|
+
openedEventsCount: number;
|
|
225
|
+
sharedEventsCount: number;
|
|
226
|
+
totalAddedToCalendar: number;
|
|
227
|
+
totalFavoritesCount: number;
|
|
228
|
+
totalShared: number;
|
|
229
|
+
usersCount: number;
|
|
230
|
+
appOpenedCount: number;
|
|
231
|
+
weekStart: Date;
|
|
232
|
+
weekEnd: Date;
|
|
233
|
+
}>;
|
|
234
|
+
export declare const TemporalStatsDTOSchema: z.ZodArray<z.ZodObject<{
|
|
235
|
+
weekStart: z.ZodDate;
|
|
236
|
+
weekEnd: z.ZodDate;
|
|
237
|
+
eventsCount: z.ZodNumber;
|
|
238
|
+
openedEventsCount: z.ZodNumber;
|
|
239
|
+
sharedEventsCount: z.ZodNumber;
|
|
240
|
+
totalAddedToCalendar: z.ZodNumber;
|
|
241
|
+
totalFavoritesCount: z.ZodNumber;
|
|
242
|
+
totalShared: z.ZodNumber;
|
|
243
|
+
usersCount: z.ZodNumber;
|
|
244
|
+
appOpenedCount: z.ZodNumber;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
eventsCount: number;
|
|
247
|
+
openedEventsCount: number;
|
|
248
|
+
sharedEventsCount: number;
|
|
249
|
+
totalAddedToCalendar: number;
|
|
250
|
+
totalFavoritesCount: number;
|
|
251
|
+
totalShared: number;
|
|
252
|
+
usersCount: number;
|
|
253
|
+
appOpenedCount: number;
|
|
254
|
+
weekStart: Date;
|
|
255
|
+
weekEnd: Date;
|
|
256
|
+
}, {
|
|
257
|
+
eventsCount: number;
|
|
258
|
+
openedEventsCount: number;
|
|
259
|
+
sharedEventsCount: number;
|
|
260
|
+
totalAddedToCalendar: number;
|
|
261
|
+
totalFavoritesCount: number;
|
|
262
|
+
totalShared: number;
|
|
263
|
+
usersCount: number;
|
|
264
|
+
appOpenedCount: number;
|
|
265
|
+
weekStart: Date;
|
|
266
|
+
weekEnd: Date;
|
|
267
|
+
}>, "many">;
|
|
200
268
|
export type AdStatDTO = z.infer<typeof AdStatDTOSchema>;
|
|
201
269
|
export type EventStatisticsDTO = z.infer<typeof EventStatisticsDTOSchema>;
|
|
202
270
|
export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
|
|
203
271
|
export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
|
|
272
|
+
export type TemporalStatsWeekDTO = z.infer<typeof TemporalStatsWeekDTOSchema>;
|
|
273
|
+
export type TemporalStatsDTO = z.infer<typeof TemporalStatsDTOSchema>;
|
|
204
274
|
export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
205
275
|
statistic: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
206
276
|
data: z.ZodObject<{
|
|
@@ -208,30 +278,30 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
208
278
|
adTitle: z.ZodString;
|
|
209
279
|
userId: z.ZodString;
|
|
210
280
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
userId: string;
|
|
211
282
|
adId: string;
|
|
212
283
|
adTitle: string;
|
|
213
|
-
userId: string;
|
|
214
284
|
}, {
|
|
285
|
+
userId: string;
|
|
215
286
|
adId: string;
|
|
216
287
|
adTitle: string;
|
|
217
|
-
userId: string;
|
|
218
288
|
}>;
|
|
219
289
|
time: z.ZodString;
|
|
220
290
|
type: z.ZodLiteral<"ad-pressed">;
|
|
221
291
|
}, "strip", z.ZodTypeAny, {
|
|
222
292
|
type: "ad-pressed";
|
|
223
293
|
data: {
|
|
294
|
+
userId: string;
|
|
224
295
|
adId: string;
|
|
225
296
|
adTitle: string;
|
|
226
|
-
userId: string;
|
|
227
297
|
};
|
|
228
298
|
time: string;
|
|
229
299
|
}, {
|
|
230
300
|
type: "ad-pressed";
|
|
231
301
|
data: {
|
|
302
|
+
userId: string;
|
|
232
303
|
adId: string;
|
|
233
304
|
adTitle: string;
|
|
234
|
-
userId: string;
|
|
235
305
|
};
|
|
236
306
|
time: string;
|
|
237
307
|
}>, z.ZodObject<{
|
|
@@ -258,14 +328,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
258
328
|
time: string;
|
|
259
329
|
}>, z.ZodObject<{
|
|
260
330
|
data: z.ZodObject<{
|
|
261
|
-
category: z.ZodNativeEnum<typeof import(
|
|
331
|
+
category: z.ZodNativeEnum<typeof import('../../shared').Category>;
|
|
262
332
|
userId: z.ZodString;
|
|
263
333
|
}, "strip", z.ZodTypeAny, {
|
|
264
334
|
userId: string;
|
|
265
|
-
category: import(
|
|
335
|
+
category: import('../../shared').Category;
|
|
266
336
|
}, {
|
|
267
337
|
userId: string;
|
|
268
|
-
category: import(
|
|
338
|
+
category: import('../../shared').Category;
|
|
269
339
|
}>;
|
|
270
340
|
time: z.ZodString;
|
|
271
341
|
type: z.ZodLiteral<"category-filter-applied">;
|
|
@@ -273,14 +343,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
273
343
|
type: "category-filter-applied";
|
|
274
344
|
data: {
|
|
275
345
|
userId: string;
|
|
276
|
-
category: import(
|
|
346
|
+
category: import('../../shared').Category;
|
|
277
347
|
};
|
|
278
348
|
time: string;
|
|
279
349
|
}, {
|
|
280
350
|
type: "category-filter-applied";
|
|
281
351
|
data: {
|
|
282
352
|
userId: string;
|
|
283
|
-
category: import(
|
|
353
|
+
category: import('../../shared').Category;
|
|
284
354
|
};
|
|
285
355
|
time: string;
|
|
286
356
|
}>, z.ZodObject<{
|
|
@@ -320,26 +390,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
320
390
|
userId: z.ZodString;
|
|
321
391
|
eventId: z.ZodString;
|
|
322
392
|
}, "strip", z.ZodTypeAny, {
|
|
323
|
-
eventId: string;
|
|
324
393
|
userId: string;
|
|
325
|
-
}, {
|
|
326
394
|
eventId: string;
|
|
395
|
+
}, {
|
|
327
396
|
userId: string;
|
|
397
|
+
eventId: string;
|
|
328
398
|
}>;
|
|
329
399
|
time: z.ZodString;
|
|
330
400
|
type: z.ZodLiteral<"event-added-to-calendar">;
|
|
331
401
|
}, "strip", z.ZodTypeAny, {
|
|
332
402
|
type: "event-added-to-calendar";
|
|
333
403
|
data: {
|
|
334
|
-
eventId: string;
|
|
335
404
|
userId: string;
|
|
405
|
+
eventId: string;
|
|
336
406
|
};
|
|
337
407
|
time: string;
|
|
338
408
|
}, {
|
|
339
409
|
type: "event-added-to-calendar";
|
|
340
410
|
data: {
|
|
341
|
-
eventId: string;
|
|
342
411
|
userId: string;
|
|
412
|
+
eventId: string;
|
|
343
413
|
};
|
|
344
414
|
time: string;
|
|
345
415
|
}>, z.ZodObject<{
|
|
@@ -347,26 +417,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
347
417
|
userId: z.ZodString;
|
|
348
418
|
eventId: z.ZodString;
|
|
349
419
|
}, "strip", z.ZodTypeAny, {
|
|
350
|
-
eventId: string;
|
|
351
420
|
userId: string;
|
|
352
|
-
}, {
|
|
353
421
|
eventId: string;
|
|
422
|
+
}, {
|
|
354
423
|
userId: string;
|
|
424
|
+
eventId: string;
|
|
355
425
|
}>;
|
|
356
426
|
time: z.ZodString;
|
|
357
427
|
type: z.ZodLiteral<"event-added-to-favorites">;
|
|
358
428
|
}, "strip", z.ZodTypeAny, {
|
|
359
429
|
type: "event-added-to-favorites";
|
|
360
430
|
data: {
|
|
361
|
-
eventId: string;
|
|
362
431
|
userId: string;
|
|
432
|
+
eventId: string;
|
|
363
433
|
};
|
|
364
434
|
time: string;
|
|
365
435
|
}, {
|
|
366
436
|
type: "event-added-to-favorites";
|
|
367
437
|
data: {
|
|
368
|
-
eventId: string;
|
|
369
438
|
userId: string;
|
|
439
|
+
eventId: string;
|
|
370
440
|
};
|
|
371
441
|
time: string;
|
|
372
442
|
}>, z.ZodObject<{
|
|
@@ -374,26 +444,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
374
444
|
userId: z.ZodString;
|
|
375
445
|
eventId: z.ZodString;
|
|
376
446
|
}, "strip", z.ZodTypeAny, {
|
|
377
|
-
eventId: string;
|
|
378
447
|
userId: string;
|
|
379
|
-
}, {
|
|
380
448
|
eventId: string;
|
|
449
|
+
}, {
|
|
381
450
|
userId: string;
|
|
451
|
+
eventId: string;
|
|
382
452
|
}>;
|
|
383
453
|
time: z.ZodString;
|
|
384
454
|
type: z.ZodLiteral<"event-displayed">;
|
|
385
455
|
}, "strip", z.ZodTypeAny, {
|
|
386
456
|
type: "event-displayed";
|
|
387
457
|
data: {
|
|
388
|
-
eventId: string;
|
|
389
458
|
userId: string;
|
|
459
|
+
eventId: string;
|
|
390
460
|
};
|
|
391
461
|
time: string;
|
|
392
462
|
}, {
|
|
393
463
|
type: "event-displayed";
|
|
394
464
|
data: {
|
|
395
|
-
eventId: string;
|
|
396
465
|
userId: string;
|
|
466
|
+
eventId: string;
|
|
397
467
|
};
|
|
398
468
|
time: string;
|
|
399
469
|
}>, z.ZodObject<{
|
|
@@ -401,26 +471,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
401
471
|
userId: z.ZodString;
|
|
402
472
|
eventId: z.ZodString;
|
|
403
473
|
}, "strip", z.ZodTypeAny, {
|
|
404
|
-
eventId: string;
|
|
405
474
|
userId: string;
|
|
406
|
-
}, {
|
|
407
475
|
eventId: string;
|
|
476
|
+
}, {
|
|
408
477
|
userId: string;
|
|
478
|
+
eventId: string;
|
|
409
479
|
}>;
|
|
410
480
|
time: z.ZodString;
|
|
411
481
|
type: z.ZodLiteral<"event-see-more-clicked">;
|
|
412
482
|
}, "strip", z.ZodTypeAny, {
|
|
413
483
|
type: "event-see-more-clicked";
|
|
414
484
|
data: {
|
|
415
|
-
eventId: string;
|
|
416
485
|
userId: string;
|
|
486
|
+
eventId: string;
|
|
417
487
|
};
|
|
418
488
|
time: string;
|
|
419
489
|
}, {
|
|
420
490
|
type: "event-see-more-clicked";
|
|
421
491
|
data: {
|
|
422
|
-
eventId: string;
|
|
423
492
|
userId: string;
|
|
493
|
+
eventId: string;
|
|
424
494
|
};
|
|
425
495
|
time: string;
|
|
426
496
|
}>, z.ZodObject<{
|
|
@@ -428,26 +498,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
428
498
|
userId: z.ZodString;
|
|
429
499
|
eventId: z.ZodString;
|
|
430
500
|
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
eventId: string;
|
|
432
501
|
userId: string;
|
|
433
|
-
}, {
|
|
434
502
|
eventId: string;
|
|
503
|
+
}, {
|
|
435
504
|
userId: string;
|
|
505
|
+
eventId: string;
|
|
436
506
|
}>;
|
|
437
507
|
time: z.ZodString;
|
|
438
508
|
type: z.ZodLiteral<"event-shared">;
|
|
439
509
|
}, "strip", z.ZodTypeAny, {
|
|
440
510
|
type: "event-shared";
|
|
441
511
|
data: {
|
|
442
|
-
eventId: string;
|
|
443
512
|
userId: string;
|
|
513
|
+
eventId: string;
|
|
444
514
|
};
|
|
445
515
|
time: string;
|
|
446
516
|
}, {
|
|
447
517
|
type: "event-shared";
|
|
448
518
|
data: {
|
|
449
|
-
eventId: string;
|
|
450
519
|
userId: string;
|
|
520
|
+
eventId: string;
|
|
451
521
|
};
|
|
452
522
|
time: string;
|
|
453
523
|
}>, z.ZodObject<{
|
|
@@ -455,26 +525,26 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
455
525
|
userId: z.ZodString;
|
|
456
526
|
eventId: z.ZodString;
|
|
457
527
|
}, "strip", z.ZodTypeAny, {
|
|
458
|
-
eventId: string;
|
|
459
528
|
userId: string;
|
|
460
|
-
}, {
|
|
461
529
|
eventId: string;
|
|
530
|
+
}, {
|
|
462
531
|
userId: string;
|
|
532
|
+
eventId: string;
|
|
463
533
|
}>;
|
|
464
534
|
time: z.ZodString;
|
|
465
535
|
type: z.ZodLiteral<"event-tickets-clicked">;
|
|
466
536
|
}, "strip", z.ZodTypeAny, {
|
|
467
537
|
type: "event-tickets-clicked";
|
|
468
538
|
data: {
|
|
469
|
-
eventId: string;
|
|
470
539
|
userId: string;
|
|
540
|
+
eventId: string;
|
|
471
541
|
};
|
|
472
542
|
time: string;
|
|
473
543
|
}, {
|
|
474
544
|
type: "event-tickets-clicked";
|
|
475
545
|
data: {
|
|
476
|
-
eventId: string;
|
|
477
546
|
userId: string;
|
|
547
|
+
eventId: string;
|
|
478
548
|
};
|
|
479
549
|
time: string;
|
|
480
550
|
}>, z.ZodObject<{
|
|
@@ -550,14 +620,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
550
620
|
time: string;
|
|
551
621
|
}>, z.ZodObject<{
|
|
552
622
|
data: z.ZodObject<{
|
|
553
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
623
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
|
|
554
624
|
userId: z.ZodString;
|
|
555
625
|
}, "strip", z.ZodTypeAny, {
|
|
556
626
|
userId: string;
|
|
557
|
-
regions: import(
|
|
627
|
+
regions: import('../../shared').Region[];
|
|
558
628
|
}, {
|
|
559
629
|
userId: string;
|
|
560
|
-
regions: import(
|
|
630
|
+
regions: import('../../shared').Region[];
|
|
561
631
|
}>;
|
|
562
632
|
time: z.ZodString;
|
|
563
633
|
type: z.ZodLiteral<"region-filter-applied">;
|
|
@@ -565,212 +635,212 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
565
635
|
type: "region-filter-applied";
|
|
566
636
|
data: {
|
|
567
637
|
userId: string;
|
|
568
|
-
regions: import(
|
|
638
|
+
regions: import('../../shared').Region[];
|
|
569
639
|
};
|
|
570
640
|
time: string;
|
|
571
641
|
}, {
|
|
572
642
|
type: "region-filter-applied";
|
|
573
643
|
data: {
|
|
574
644
|
userId: string;
|
|
575
|
-
regions: import(
|
|
645
|
+
regions: import('../../shared').Region[];
|
|
576
646
|
};
|
|
577
647
|
time: string;
|
|
578
648
|
}>]>;
|
|
579
649
|
}, "strip", z.ZodTypeAny, {
|
|
580
650
|
statistic: {
|
|
581
|
-
type: "
|
|
651
|
+
type: "app-started";
|
|
582
652
|
data: {
|
|
583
|
-
adId: string;
|
|
584
|
-
adTitle: string;
|
|
585
653
|
userId: string;
|
|
586
654
|
};
|
|
587
655
|
time: string;
|
|
588
656
|
} | {
|
|
589
|
-
type: "
|
|
657
|
+
type: "event-displayed";
|
|
590
658
|
data: {
|
|
591
659
|
userId: string;
|
|
660
|
+
eventId: string;
|
|
592
661
|
};
|
|
593
662
|
time: string;
|
|
594
663
|
} | {
|
|
595
|
-
type: "
|
|
664
|
+
type: "organizer-displayed";
|
|
596
665
|
data: {
|
|
597
666
|
userId: string;
|
|
598
|
-
|
|
667
|
+
organizerId: string;
|
|
599
668
|
};
|
|
600
669
|
time: string;
|
|
601
670
|
} | {
|
|
602
|
-
type: "
|
|
671
|
+
type: "event-added-to-favorites";
|
|
603
672
|
data: {
|
|
604
673
|
userId: string;
|
|
605
|
-
|
|
606
|
-
endTime: string;
|
|
674
|
+
eventId: string;
|
|
607
675
|
};
|
|
608
676
|
time: string;
|
|
609
677
|
} | {
|
|
610
678
|
type: "event-added-to-calendar";
|
|
611
679
|
data: {
|
|
612
|
-
eventId: string;
|
|
613
680
|
userId: string;
|
|
681
|
+
eventId: string;
|
|
614
682
|
};
|
|
615
683
|
time: string;
|
|
616
684
|
} | {
|
|
617
|
-
type: "event-
|
|
685
|
+
type: "event-shared";
|
|
618
686
|
data: {
|
|
619
|
-
eventId: string;
|
|
620
687
|
userId: string;
|
|
688
|
+
eventId: string;
|
|
621
689
|
};
|
|
622
690
|
time: string;
|
|
623
691
|
} | {
|
|
624
|
-
type: "event-
|
|
692
|
+
type: "event-tickets-clicked";
|
|
625
693
|
data: {
|
|
626
|
-
eventId: string;
|
|
627
694
|
userId: string;
|
|
695
|
+
eventId: string;
|
|
628
696
|
};
|
|
629
697
|
time: string;
|
|
630
698
|
} | {
|
|
631
699
|
type: "event-see-more-clicked";
|
|
632
700
|
data: {
|
|
633
|
-
eventId: string;
|
|
634
701
|
userId: string;
|
|
702
|
+
eventId: string;
|
|
635
703
|
};
|
|
636
704
|
time: string;
|
|
637
705
|
} | {
|
|
638
|
-
type: "
|
|
706
|
+
type: "region-filter-applied";
|
|
639
707
|
data: {
|
|
640
|
-
eventId: string;
|
|
641
708
|
userId: string;
|
|
709
|
+
regions: import('../../shared').Region[];
|
|
642
710
|
};
|
|
643
711
|
time: string;
|
|
644
712
|
} | {
|
|
645
|
-
type: "
|
|
713
|
+
type: "free-filter-applied";
|
|
646
714
|
data: {
|
|
647
|
-
eventId: string;
|
|
648
715
|
userId: string;
|
|
649
716
|
};
|
|
650
717
|
time: string;
|
|
651
718
|
} | {
|
|
652
|
-
type: "
|
|
719
|
+
type: "category-filter-applied";
|
|
653
720
|
data: {
|
|
654
721
|
userId: string;
|
|
722
|
+
category: import('../../shared').Category;
|
|
655
723
|
};
|
|
656
724
|
time: string;
|
|
657
725
|
} | {
|
|
658
|
-
type: "
|
|
726
|
+
type: "date-filter-applied";
|
|
659
727
|
data: {
|
|
660
728
|
userId: string;
|
|
729
|
+
startTime: string;
|
|
730
|
+
endTime: string;
|
|
661
731
|
};
|
|
662
732
|
time: string;
|
|
663
733
|
} | {
|
|
664
|
-
type: "
|
|
734
|
+
type: "old-times-filter-applied";
|
|
665
735
|
data: {
|
|
666
736
|
userId: string;
|
|
667
|
-
organizerId: string;
|
|
668
737
|
};
|
|
669
738
|
time: string;
|
|
670
739
|
} | {
|
|
671
|
-
type: "
|
|
740
|
+
type: "ad-pressed";
|
|
672
741
|
data: {
|
|
673
742
|
userId: string;
|
|
674
|
-
|
|
743
|
+
adId: string;
|
|
744
|
+
adTitle: string;
|
|
675
745
|
};
|
|
676
746
|
time: string;
|
|
677
747
|
};
|
|
678
748
|
}, {
|
|
679
749
|
statistic: {
|
|
680
|
-
type: "
|
|
750
|
+
type: "app-started";
|
|
681
751
|
data: {
|
|
682
|
-
adId: string;
|
|
683
|
-
adTitle: string;
|
|
684
752
|
userId: string;
|
|
685
753
|
};
|
|
686
754
|
time: string;
|
|
687
755
|
} | {
|
|
688
|
-
type: "
|
|
756
|
+
type: "event-displayed";
|
|
689
757
|
data: {
|
|
690
758
|
userId: string;
|
|
759
|
+
eventId: string;
|
|
691
760
|
};
|
|
692
761
|
time: string;
|
|
693
762
|
} | {
|
|
694
|
-
type: "
|
|
763
|
+
type: "organizer-displayed";
|
|
695
764
|
data: {
|
|
696
765
|
userId: string;
|
|
697
|
-
|
|
766
|
+
organizerId: string;
|
|
698
767
|
};
|
|
699
768
|
time: string;
|
|
700
769
|
} | {
|
|
701
|
-
type: "
|
|
770
|
+
type: "event-added-to-favorites";
|
|
702
771
|
data: {
|
|
703
772
|
userId: string;
|
|
704
|
-
|
|
705
|
-
endTime: string;
|
|
773
|
+
eventId: string;
|
|
706
774
|
};
|
|
707
775
|
time: string;
|
|
708
776
|
} | {
|
|
709
777
|
type: "event-added-to-calendar";
|
|
710
778
|
data: {
|
|
711
|
-
eventId: string;
|
|
712
779
|
userId: string;
|
|
780
|
+
eventId: string;
|
|
713
781
|
};
|
|
714
782
|
time: string;
|
|
715
783
|
} | {
|
|
716
|
-
type: "event-
|
|
784
|
+
type: "event-shared";
|
|
717
785
|
data: {
|
|
718
|
-
eventId: string;
|
|
719
786
|
userId: string;
|
|
787
|
+
eventId: string;
|
|
720
788
|
};
|
|
721
789
|
time: string;
|
|
722
790
|
} | {
|
|
723
|
-
type: "event-
|
|
791
|
+
type: "event-tickets-clicked";
|
|
724
792
|
data: {
|
|
725
|
-
eventId: string;
|
|
726
793
|
userId: string;
|
|
794
|
+
eventId: string;
|
|
727
795
|
};
|
|
728
796
|
time: string;
|
|
729
797
|
} | {
|
|
730
798
|
type: "event-see-more-clicked";
|
|
731
799
|
data: {
|
|
732
|
-
eventId: string;
|
|
733
800
|
userId: string;
|
|
801
|
+
eventId: string;
|
|
734
802
|
};
|
|
735
803
|
time: string;
|
|
736
804
|
} | {
|
|
737
|
-
type: "
|
|
805
|
+
type: "region-filter-applied";
|
|
738
806
|
data: {
|
|
739
|
-
eventId: string;
|
|
740
807
|
userId: string;
|
|
808
|
+
regions: import('../../shared').Region[];
|
|
741
809
|
};
|
|
742
810
|
time: string;
|
|
743
811
|
} | {
|
|
744
|
-
type: "
|
|
812
|
+
type: "free-filter-applied";
|
|
745
813
|
data: {
|
|
746
|
-
eventId: string;
|
|
747
814
|
userId: string;
|
|
748
815
|
};
|
|
749
816
|
time: string;
|
|
750
817
|
} | {
|
|
751
|
-
type: "
|
|
818
|
+
type: "category-filter-applied";
|
|
752
819
|
data: {
|
|
753
820
|
userId: string;
|
|
821
|
+
category: import('../../shared').Category;
|
|
754
822
|
};
|
|
755
823
|
time: string;
|
|
756
824
|
} | {
|
|
757
|
-
type: "
|
|
825
|
+
type: "date-filter-applied";
|
|
758
826
|
data: {
|
|
759
827
|
userId: string;
|
|
828
|
+
startTime: string;
|
|
829
|
+
endTime: string;
|
|
760
830
|
};
|
|
761
831
|
time: string;
|
|
762
832
|
} | {
|
|
763
|
-
type: "
|
|
833
|
+
type: "old-times-filter-applied";
|
|
764
834
|
data: {
|
|
765
835
|
userId: string;
|
|
766
|
-
organizerId: string;
|
|
767
836
|
};
|
|
768
837
|
time: string;
|
|
769
838
|
} | {
|
|
770
|
-
type: "
|
|
839
|
+
type: "ad-pressed";
|
|
771
840
|
data: {
|
|
772
841
|
userId: string;
|
|
773
|
-
|
|
842
|
+
adId: string;
|
|
843
|
+
adTitle: string;
|
|
774
844
|
};
|
|
775
845
|
time: string;
|
|
776
846
|
};
|
|
@@ -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,EAAgC,eAAe,EAAgB,MAAM,cAAc,CAAC;AAG3F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;EAI1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB/B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,kBAAkB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z.number(),
|
|
4428
4428
|
usersCount: z.number(),
|
|
4429
|
-
usersWithMultipleDayAppOpened: z.number()
|
|
4429
|
+
usersWithMultipleDayAppOpened: z.number(),
|
|
4430
|
+
appOpenedCount: z.number()
|
|
4430
4431
|
});
|
|
4432
|
+
const TemporalStatsWeekDTOSchema = z.object({
|
|
4433
|
+
weekStart: z.coerce.date(),
|
|
4434
|
+
weekEnd: z.coerce.date(),
|
|
4435
|
+
eventsCount: z.number(),
|
|
4436
|
+
openedEventsCount: z.number(),
|
|
4437
|
+
sharedEventsCount: z.number(),
|
|
4438
|
+
totalAddedToCalendar: z.number(),
|
|
4439
|
+
totalFavoritesCount: z.number(),
|
|
4440
|
+
totalShared: z.number(),
|
|
4441
|
+
usersCount: z.number(),
|
|
4442
|
+
appOpenedCount: z.number()
|
|
4443
|
+
});
|
|
4444
|
+
const TemporalStatsDTOSchema = TemporalStatsWeekDTOSchema.array();
|
|
4431
4445
|
const SaveStatisticDTOSchema = z.object({
|
|
4432
4446
|
statistic: StatisticSchema
|
|
4433
4447
|
});
|
|
@@ -4458,6 +4472,8 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4458
4472
|
PromoteEventDTOSchema,
|
|
4459
4473
|
RegionalAdDTOSchema,
|
|
4460
4474
|
SaveStatisticDTOSchema,
|
|
4475
|
+
TemporalStatsDTOSchema,
|
|
4476
|
+
TemporalStatsWeekDTOSchema,
|
|
4461
4477
|
TopEventDTOSchema,
|
|
4462
4478
|
UpdateAppConfigurationDTOSchema,
|
|
4463
4479
|
UpdateEventDTOSchema,
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4424,8 +4424,22 @@ const GlobalStatsDTOSchema = z.object({
|
|
|
4424
4424
|
totalFavoritesCount: z.number(),
|
|
4425
4425
|
totalShared: z.number(),
|
|
4426
4426
|
usersCount: z.number(),
|
|
4427
|
-
usersWithMultipleDayAppOpened: z.number()
|
|
4427
|
+
usersWithMultipleDayAppOpened: z.number(),
|
|
4428
|
+
appOpenedCount: z.number()
|
|
4428
4429
|
});
|
|
4430
|
+
const TemporalStatsWeekDTOSchema = z.object({
|
|
4431
|
+
weekStart: z.coerce.date(),
|
|
4432
|
+
weekEnd: z.coerce.date(),
|
|
4433
|
+
eventsCount: z.number(),
|
|
4434
|
+
openedEventsCount: z.number(),
|
|
4435
|
+
sharedEventsCount: z.number(),
|
|
4436
|
+
totalAddedToCalendar: z.number(),
|
|
4437
|
+
totalFavoritesCount: z.number(),
|
|
4438
|
+
totalShared: z.number(),
|
|
4439
|
+
usersCount: z.number(),
|
|
4440
|
+
appOpenedCount: z.number()
|
|
4441
|
+
});
|
|
4442
|
+
const TemporalStatsDTOSchema = TemporalStatsWeekDTOSchema.array();
|
|
4429
4443
|
const SaveStatisticDTOSchema = z.object({
|
|
4430
4444
|
statistic: StatisticSchema
|
|
4431
4445
|
});
|
|
@@ -4456,6 +4470,8 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4456
4470
|
PromoteEventDTOSchema,
|
|
4457
4471
|
RegionalAdDTOSchema,
|
|
4458
4472
|
SaveStatisticDTOSchema,
|
|
4473
|
+
TemporalStatsDTOSchema,
|
|
4474
|
+
TemporalStatsWeekDTOSchema,
|
|
4459
4475
|
TopEventDTOSchema,
|
|
4460
4476
|
UpdateAppConfigurationDTOSchema,
|
|
4461
4477
|
UpdateEventDTOSchema,
|