@sortipei/api-contracts 0.1.41 → 0.1.43
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.
|
@@ -13,7 +13,33 @@ export declare const TopEventDTOSchema: z.ZodObject<{
|
|
|
13
13
|
count: number;
|
|
14
14
|
eventTitle: string;
|
|
15
15
|
}>;
|
|
16
|
+
export declare const AdStatDTOSchema: z.ZodObject<{
|
|
17
|
+
adId: z.ZodUnion<[z.ZodBranded<z.ZodString, "MainAdId">, z.ZodBranded<z.ZodString, "RegionalAdId">]>;
|
|
18
|
+
adTitle: z.ZodString;
|
|
19
|
+
pressedCount: z.ZodNumber;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
adId: (string & z.BRAND<"MainAdId">) | (string & z.BRAND<"RegionalAdId">);
|
|
22
|
+
adTitle: string;
|
|
23
|
+
pressedCount: number;
|
|
24
|
+
}, {
|
|
25
|
+
adId: string;
|
|
26
|
+
adTitle: string;
|
|
27
|
+
pressedCount: number;
|
|
28
|
+
}>;
|
|
16
29
|
export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
30
|
+
allAdsStats: z.ZodArray<z.ZodObject<{
|
|
31
|
+
adId: z.ZodUnion<[z.ZodBranded<z.ZodString, "MainAdId">, z.ZodBranded<z.ZodString, "RegionalAdId">]>;
|
|
32
|
+
adTitle: z.ZodString;
|
|
33
|
+
pressedCount: z.ZodNumber;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
adId: (string & z.BRAND<"MainAdId">) | (string & z.BRAND<"RegionalAdId">);
|
|
36
|
+
adTitle: string;
|
|
37
|
+
pressedCount: number;
|
|
38
|
+
}, {
|
|
39
|
+
adId: string;
|
|
40
|
+
adTitle: string;
|
|
41
|
+
pressedCount: number;
|
|
42
|
+
}>, "many">;
|
|
17
43
|
currentFavoritesCount: z.ZodNumber;
|
|
18
44
|
eventsCount: z.ZodNumber;
|
|
19
45
|
openedEventsCount: z.ZodNumber;
|
|
@@ -75,6 +101,11 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
75
101
|
usersCount: z.ZodNumber;
|
|
76
102
|
usersWithMultipleDayAppOpened: z.ZodNumber;
|
|
77
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
allAdsStats: {
|
|
105
|
+
adId: (string & z.BRAND<"MainAdId">) | (string & z.BRAND<"RegionalAdId">);
|
|
106
|
+
adTitle: string;
|
|
107
|
+
pressedCount: number;
|
|
108
|
+
}[];
|
|
78
109
|
currentFavoritesCount: number;
|
|
79
110
|
eventsCount: number;
|
|
80
111
|
openedEventsCount: number;
|
|
@@ -104,6 +135,11 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
104
135
|
usersCount: number;
|
|
105
136
|
usersWithMultipleDayAppOpened: number;
|
|
106
137
|
}, {
|
|
138
|
+
allAdsStats: {
|
|
139
|
+
adId: string;
|
|
140
|
+
adTitle: string;
|
|
141
|
+
pressedCount: number;
|
|
142
|
+
}[];
|
|
107
143
|
currentFavoritesCount: number;
|
|
108
144
|
eventsCount: number;
|
|
109
145
|
openedEventsCount: number;
|
|
@@ -133,10 +169,43 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
133
169
|
usersCount: number;
|
|
134
170
|
usersWithMultipleDayAppOpened: number;
|
|
135
171
|
}>;
|
|
172
|
+
export type AdStatDTO = z.infer<typeof AdStatDTOSchema>;
|
|
136
173
|
export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
|
|
137
174
|
export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
|
|
138
175
|
export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
139
176
|
statistic: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
177
|
+
data: z.ZodObject<{
|
|
178
|
+
adId: z.ZodString;
|
|
179
|
+
adTitle: z.ZodString;
|
|
180
|
+
userId: z.ZodString;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
userId: string;
|
|
183
|
+
adId: string;
|
|
184
|
+
adTitle: string;
|
|
185
|
+
}, {
|
|
186
|
+
userId: string;
|
|
187
|
+
adId: string;
|
|
188
|
+
adTitle: string;
|
|
189
|
+
}>;
|
|
190
|
+
time: z.ZodString;
|
|
191
|
+
type: z.ZodLiteral<"ad-pressed">;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
type: "ad-pressed";
|
|
194
|
+
data: {
|
|
195
|
+
userId: string;
|
|
196
|
+
adId: string;
|
|
197
|
+
adTitle: string;
|
|
198
|
+
};
|
|
199
|
+
time: string;
|
|
200
|
+
}, {
|
|
201
|
+
type: "ad-pressed";
|
|
202
|
+
data: {
|
|
203
|
+
userId: string;
|
|
204
|
+
adId: string;
|
|
205
|
+
adTitle: string;
|
|
206
|
+
};
|
|
207
|
+
time: string;
|
|
208
|
+
}>, z.ZodObject<{
|
|
140
209
|
data: z.ZodObject<{
|
|
141
210
|
userId: z.ZodString;
|
|
142
211
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -160,14 +229,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
160
229
|
time: string;
|
|
161
230
|
}>, z.ZodObject<{
|
|
162
231
|
data: z.ZodObject<{
|
|
163
|
-
category: z.ZodNativeEnum<typeof import(
|
|
232
|
+
category: z.ZodNativeEnum<typeof import("../../shared").Category>;
|
|
164
233
|
userId: z.ZodString;
|
|
165
234
|
}, "strip", z.ZodTypeAny, {
|
|
166
235
|
userId: string;
|
|
167
|
-
category: import(
|
|
236
|
+
category: import("../../shared").Category;
|
|
168
237
|
}, {
|
|
169
238
|
userId: string;
|
|
170
|
-
category: import(
|
|
239
|
+
category: import("../../shared").Category;
|
|
171
240
|
}>;
|
|
172
241
|
time: z.ZodString;
|
|
173
242
|
type: z.ZodLiteral<"category-filter-applied">;
|
|
@@ -175,14 +244,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
175
244
|
type: "category-filter-applied";
|
|
176
245
|
data: {
|
|
177
246
|
userId: string;
|
|
178
|
-
category: import(
|
|
247
|
+
category: import("../../shared").Category;
|
|
179
248
|
};
|
|
180
249
|
time: string;
|
|
181
250
|
}, {
|
|
182
251
|
type: "category-filter-applied";
|
|
183
252
|
data: {
|
|
184
253
|
userId: string;
|
|
185
|
-
category: import(
|
|
254
|
+
category: import("../../shared").Category;
|
|
186
255
|
};
|
|
187
256
|
time: string;
|
|
188
257
|
}>, z.ZodObject<{
|
|
@@ -452,14 +521,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
452
521
|
time: string;
|
|
453
522
|
}>, z.ZodObject<{
|
|
454
523
|
data: z.ZodObject<{
|
|
455
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
524
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
|
|
456
525
|
userId: z.ZodString;
|
|
457
526
|
}, "strip", z.ZodTypeAny, {
|
|
458
527
|
userId: string;
|
|
459
|
-
regions: import(
|
|
528
|
+
regions: import("../../shared").Region[];
|
|
460
529
|
}, {
|
|
461
530
|
userId: string;
|
|
462
|
-
regions: import(
|
|
531
|
+
regions: import("../../shared").Region[];
|
|
463
532
|
}>;
|
|
464
533
|
time: z.ZodString;
|
|
465
534
|
type: z.ZodLiteral<"region-filter-applied">;
|
|
@@ -467,14 +536,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
467
536
|
type: "region-filter-applied";
|
|
468
537
|
data: {
|
|
469
538
|
userId: string;
|
|
470
|
-
regions: import(
|
|
539
|
+
regions: import("../../shared").Region[];
|
|
471
540
|
};
|
|
472
541
|
time: string;
|
|
473
542
|
}, {
|
|
474
543
|
type: "region-filter-applied";
|
|
475
544
|
data: {
|
|
476
545
|
userId: string;
|
|
477
|
-
regions: import(
|
|
546
|
+
regions: import("../../shared").Region[];
|
|
478
547
|
};
|
|
479
548
|
time: string;
|
|
480
549
|
}>]>;
|
|
@@ -538,7 +607,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
538
607
|
type: "region-filter-applied";
|
|
539
608
|
data: {
|
|
540
609
|
userId: string;
|
|
541
|
-
regions: import(
|
|
610
|
+
regions: import("../../shared").Region[];
|
|
542
611
|
};
|
|
543
612
|
time: string;
|
|
544
613
|
} | {
|
|
@@ -551,7 +620,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
551
620
|
type: "category-filter-applied";
|
|
552
621
|
data: {
|
|
553
622
|
userId: string;
|
|
554
|
-
category: import(
|
|
623
|
+
category: import("../../shared").Category;
|
|
555
624
|
};
|
|
556
625
|
time: string;
|
|
557
626
|
} | {
|
|
@@ -568,6 +637,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
568
637
|
userId: string;
|
|
569
638
|
};
|
|
570
639
|
time: string;
|
|
640
|
+
} | {
|
|
641
|
+
type: "ad-pressed";
|
|
642
|
+
data: {
|
|
643
|
+
userId: string;
|
|
644
|
+
adId: string;
|
|
645
|
+
adTitle: string;
|
|
646
|
+
};
|
|
647
|
+
time: string;
|
|
571
648
|
};
|
|
572
649
|
}, {
|
|
573
650
|
statistic: {
|
|
@@ -629,7 +706,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
629
706
|
type: "region-filter-applied";
|
|
630
707
|
data: {
|
|
631
708
|
userId: string;
|
|
632
|
-
regions: import(
|
|
709
|
+
regions: import("../../shared").Region[];
|
|
633
710
|
};
|
|
634
711
|
time: string;
|
|
635
712
|
} | {
|
|
@@ -642,7 +719,7 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
642
719
|
type: "category-filter-applied";
|
|
643
720
|
data: {
|
|
644
721
|
userId: string;
|
|
645
|
-
category: import(
|
|
722
|
+
category: import("../../shared").Category;
|
|
646
723
|
};
|
|
647
724
|
time: string;
|
|
648
725
|
} | {
|
|
@@ -659,6 +736,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
659
736
|
userId: string;
|
|
660
737
|
};
|
|
661
738
|
time: string;
|
|
739
|
+
} | {
|
|
740
|
+
type: "ad-pressed";
|
|
741
|
+
data: {
|
|
742
|
+
userId: string;
|
|
743
|
+
adId: string;
|
|
744
|
+
adTitle: string;
|
|
745
|
+
};
|
|
746
|
+
time: string;
|
|
662
747
|
};
|
|
663
748
|
}>;
|
|
664
749
|
export type SaveStatisticDTO = z.infer<typeof SaveStatisticDTOSchema>;
|
|
@@ -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,EAAgB,MAAM,cAAc,CAAC;AAG7D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAEH,eAAO,MAAM,oBAAoB
|
|
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,EAAgB,MAAM,cAAc,CAAC;AAG7D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;EAI1B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc/B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,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,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -4178,7 +4178,16 @@ const OldTimesFilterAppliedStatisticSchema = z.object({
|
|
|
4178
4178
|
time: z.string().datetime(),
|
|
4179
4179
|
type: z.literal("old-times-filter-applied")
|
|
4180
4180
|
});
|
|
4181
|
+
const AdPressedStatisticSchema = z.object({
|
|
4182
|
+
data: z.object({
|
|
4183
|
+
adId: UUIDSchema,
|
|
4184
|
+
userId: UUIDSchema
|
|
4185
|
+
}),
|
|
4186
|
+
time: z.string().datetime(),
|
|
4187
|
+
type: z.literal("ad-pressed")
|
|
4188
|
+
});
|
|
4181
4189
|
const StatisticSchema = z.discriminatedUnion("type", [
|
|
4190
|
+
AdPressedStatisticSchema,
|
|
4182
4191
|
AppStartedStatisticSchema,
|
|
4183
4192
|
CategoryFilterAppliedStatisticSchema,
|
|
4184
4193
|
DateFilterAppliedStatisticSchema,
|
|
@@ -4425,6 +4434,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4425
4434
|
api: index$2,
|
|
4426
4435
|
external: index$1
|
|
4427
4436
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4437
|
+
exports.AdPressedStatisticSchema = AdPressedStatisticSchema;
|
|
4428
4438
|
exports.AppStartedStatisticSchema = AppStartedStatisticSchema;
|
|
4429
4439
|
exports.Category = Category;
|
|
4430
4440
|
exports.CategoryFilterAppliedStatisticSchema = CategoryFilterAppliedStatisticSchema;
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4176,7 +4176,16 @@ const OldTimesFilterAppliedStatisticSchema = z.object({
|
|
|
4176
4176
|
time: z.string().datetime(),
|
|
4177
4177
|
type: z.literal("old-times-filter-applied")
|
|
4178
4178
|
});
|
|
4179
|
+
const AdPressedStatisticSchema = z.object({
|
|
4180
|
+
data: z.object({
|
|
4181
|
+
adId: UUIDSchema,
|
|
4182
|
+
userId: UUIDSchema
|
|
4183
|
+
}),
|
|
4184
|
+
time: z.string().datetime(),
|
|
4185
|
+
type: z.literal("ad-pressed")
|
|
4186
|
+
});
|
|
4179
4187
|
const StatisticSchema = z.discriminatedUnion("type", [
|
|
4188
|
+
AdPressedStatisticSchema,
|
|
4180
4189
|
AppStartedStatisticSchema,
|
|
4181
4190
|
CategoryFilterAppliedStatisticSchema,
|
|
4182
4191
|
DateFilterAppliedStatisticSchema,
|
|
@@ -4424,6 +4433,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4424
4433
|
external: index$1
|
|
4425
4434
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4426
4435
|
export {
|
|
4436
|
+
AdPressedStatisticSchema,
|
|
4427
4437
|
AppStartedStatisticSchema,
|
|
4428
4438
|
Category,
|
|
4429
4439
|
CategoryFilterAppliedStatisticSchema,
|
package/dist/shared/stats.d.ts
CHANGED
|
@@ -220,14 +220,14 @@ export declare const EventSeeMoreClickedStatisticsSchema: z.ZodObject<{
|
|
|
220
220
|
}>;
|
|
221
221
|
export declare const RegionFilterAppliedStatisticSchema: z.ZodObject<{
|
|
222
222
|
data: z.ZodObject<{
|
|
223
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
223
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("./event").Region>, "many">;
|
|
224
224
|
userId: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
userId: string;
|
|
227
|
-
regions: import(
|
|
227
|
+
regions: import("./event").Region[];
|
|
228
228
|
}, {
|
|
229
229
|
userId: string;
|
|
230
|
-
regions: import(
|
|
230
|
+
regions: import("./event").Region[];
|
|
231
231
|
}>;
|
|
232
232
|
time: z.ZodString;
|
|
233
233
|
type: z.ZodLiteral<"region-filter-applied">;
|
|
@@ -235,14 +235,14 @@ export declare const RegionFilterAppliedStatisticSchema: z.ZodObject<{
|
|
|
235
235
|
type: "region-filter-applied";
|
|
236
236
|
data: {
|
|
237
237
|
userId: string;
|
|
238
|
-
regions: import(
|
|
238
|
+
regions: import("./event").Region[];
|
|
239
239
|
};
|
|
240
240
|
time: string;
|
|
241
241
|
}, {
|
|
242
242
|
type: "region-filter-applied";
|
|
243
243
|
data: {
|
|
244
244
|
userId: string;
|
|
245
|
-
regions: import(
|
|
245
|
+
regions: import("./event").Region[];
|
|
246
246
|
};
|
|
247
247
|
time: string;
|
|
248
248
|
}>;
|
|
@@ -271,14 +271,14 @@ export declare const FreeFilterAppliedStatisticSchema: z.ZodObject<{
|
|
|
271
271
|
}>;
|
|
272
272
|
export declare const CategoryFilterAppliedStatisticSchema: z.ZodObject<{
|
|
273
273
|
data: z.ZodObject<{
|
|
274
|
-
category: z.ZodNativeEnum<typeof import(
|
|
274
|
+
category: z.ZodNativeEnum<typeof import("./event").Category>;
|
|
275
275
|
userId: z.ZodString;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
userId: string;
|
|
278
|
-
category: import(
|
|
278
|
+
category: import("./event").Category;
|
|
279
279
|
}, {
|
|
280
280
|
userId: string;
|
|
281
|
-
category: import(
|
|
281
|
+
category: import("./event").Category;
|
|
282
282
|
}>;
|
|
283
283
|
time: z.ZodString;
|
|
284
284
|
type: z.ZodLiteral<"category-filter-applied">;
|
|
@@ -286,14 +286,14 @@ export declare const CategoryFilterAppliedStatisticSchema: z.ZodObject<{
|
|
|
286
286
|
type: "category-filter-applied";
|
|
287
287
|
data: {
|
|
288
288
|
userId: string;
|
|
289
|
-
category: import(
|
|
289
|
+
category: import("./event").Category;
|
|
290
290
|
};
|
|
291
291
|
time: string;
|
|
292
292
|
}, {
|
|
293
293
|
type: "category-filter-applied";
|
|
294
294
|
data: {
|
|
295
295
|
userId: string;
|
|
296
|
-
category: import(
|
|
296
|
+
category: import("./event").Category;
|
|
297
297
|
};
|
|
298
298
|
time: string;
|
|
299
299
|
}>;
|
|
@@ -353,7 +353,72 @@ export declare const OldTimesFilterAppliedStatisticSchema: z.ZodObject<{
|
|
|
353
353
|
};
|
|
354
354
|
time: string;
|
|
355
355
|
}>;
|
|
356
|
+
export declare const AdPressedStatisticSchema: z.ZodObject<{
|
|
357
|
+
data: z.ZodObject<{
|
|
358
|
+
adId: z.ZodString;
|
|
359
|
+
adTitle: z.ZodString;
|
|
360
|
+
userId: z.ZodString;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
userId: string;
|
|
363
|
+
adId: string;
|
|
364
|
+
adTitle: string;
|
|
365
|
+
}, {
|
|
366
|
+
userId: string;
|
|
367
|
+
adId: string;
|
|
368
|
+
adTitle: string;
|
|
369
|
+
}>;
|
|
370
|
+
time: z.ZodString;
|
|
371
|
+
type: z.ZodLiteral<"ad-pressed">;
|
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
|
373
|
+
type: "ad-pressed";
|
|
374
|
+
data: {
|
|
375
|
+
userId: string;
|
|
376
|
+
adId: string;
|
|
377
|
+
adTitle: string;
|
|
378
|
+
};
|
|
379
|
+
time: string;
|
|
380
|
+
}, {
|
|
381
|
+
type: "ad-pressed";
|
|
382
|
+
data: {
|
|
383
|
+
userId: string;
|
|
384
|
+
adId: string;
|
|
385
|
+
adTitle: string;
|
|
386
|
+
};
|
|
387
|
+
time: string;
|
|
388
|
+
}>;
|
|
356
389
|
export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
390
|
+
data: z.ZodObject<{
|
|
391
|
+
adId: z.ZodString;
|
|
392
|
+
adTitle: z.ZodString;
|
|
393
|
+
userId: z.ZodString;
|
|
394
|
+
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
userId: string;
|
|
396
|
+
adId: string;
|
|
397
|
+
adTitle: string;
|
|
398
|
+
}, {
|
|
399
|
+
userId: string;
|
|
400
|
+
adId: string;
|
|
401
|
+
adTitle: string;
|
|
402
|
+
}>;
|
|
403
|
+
time: z.ZodString;
|
|
404
|
+
type: z.ZodLiteral<"ad-pressed">;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
type: "ad-pressed";
|
|
407
|
+
data: {
|
|
408
|
+
userId: string;
|
|
409
|
+
adId: string;
|
|
410
|
+
adTitle: string;
|
|
411
|
+
};
|
|
412
|
+
time: string;
|
|
413
|
+
}, {
|
|
414
|
+
type: "ad-pressed";
|
|
415
|
+
data: {
|
|
416
|
+
userId: string;
|
|
417
|
+
adId: string;
|
|
418
|
+
adTitle: string;
|
|
419
|
+
};
|
|
420
|
+
time: string;
|
|
421
|
+
}>, z.ZodObject<{
|
|
357
422
|
data: z.ZodObject<{
|
|
358
423
|
userId: z.ZodString;
|
|
359
424
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -377,14 +442,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
377
442
|
time: string;
|
|
378
443
|
}>, z.ZodObject<{
|
|
379
444
|
data: z.ZodObject<{
|
|
380
|
-
category: z.ZodNativeEnum<typeof import(
|
|
445
|
+
category: z.ZodNativeEnum<typeof import("./event").Category>;
|
|
381
446
|
userId: z.ZodString;
|
|
382
447
|
}, "strip", z.ZodTypeAny, {
|
|
383
448
|
userId: string;
|
|
384
|
-
category: import(
|
|
449
|
+
category: import("./event").Category;
|
|
385
450
|
}, {
|
|
386
451
|
userId: string;
|
|
387
|
-
category: import(
|
|
452
|
+
category: import("./event").Category;
|
|
388
453
|
}>;
|
|
389
454
|
time: z.ZodString;
|
|
390
455
|
type: z.ZodLiteral<"category-filter-applied">;
|
|
@@ -392,14 +457,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
392
457
|
type: "category-filter-applied";
|
|
393
458
|
data: {
|
|
394
459
|
userId: string;
|
|
395
|
-
category: import(
|
|
460
|
+
category: import("./event").Category;
|
|
396
461
|
};
|
|
397
462
|
time: string;
|
|
398
463
|
}, {
|
|
399
464
|
type: "category-filter-applied";
|
|
400
465
|
data: {
|
|
401
466
|
userId: string;
|
|
402
|
-
category: import(
|
|
467
|
+
category: import("./event").Category;
|
|
403
468
|
};
|
|
404
469
|
time: string;
|
|
405
470
|
}>, z.ZodObject<{
|
|
@@ -669,14 +734,14 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
669
734
|
time: string;
|
|
670
735
|
}>, z.ZodObject<{
|
|
671
736
|
data: z.ZodObject<{
|
|
672
|
-
regions: z.ZodArray<z.ZodNativeEnum<typeof import(
|
|
737
|
+
regions: z.ZodArray<z.ZodNativeEnum<typeof import("./event").Region>, "many">;
|
|
673
738
|
userId: z.ZodString;
|
|
674
739
|
}, "strip", z.ZodTypeAny, {
|
|
675
740
|
userId: string;
|
|
676
|
-
regions: import(
|
|
741
|
+
regions: import("./event").Region[];
|
|
677
742
|
}, {
|
|
678
743
|
userId: string;
|
|
679
|
-
regions: import(
|
|
744
|
+
regions: import("./event").Region[];
|
|
680
745
|
}>;
|
|
681
746
|
time: z.ZodString;
|
|
682
747
|
type: z.ZodLiteral<"region-filter-applied">;
|
|
@@ -684,17 +749,18 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
684
749
|
type: "region-filter-applied";
|
|
685
750
|
data: {
|
|
686
751
|
userId: string;
|
|
687
|
-
regions: import(
|
|
752
|
+
regions: import("./event").Region[];
|
|
688
753
|
};
|
|
689
754
|
time: string;
|
|
690
755
|
}, {
|
|
691
756
|
type: "region-filter-applied";
|
|
692
757
|
data: {
|
|
693
758
|
userId: string;
|
|
694
|
-
regions: import(
|
|
759
|
+
regions: import("./event").Region[];
|
|
695
760
|
};
|
|
696
761
|
time: string;
|
|
697
762
|
}>]>;
|
|
763
|
+
export type AdPressedStatistic = z.infer<typeof AdPressedStatisticSchema>;
|
|
698
764
|
export type AppStartedStatistic = z.infer<typeof AppStartedStatisticSchema>;
|
|
699
765
|
export type CategoryFilterAppliedStatistic = z.infer<typeof CategoryFilterAppliedStatisticSchema>;
|
|
700
766
|
export type DateFilterAppliedStatistic = z.infer<typeof DateFilterAppliedStatisticSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/shared/stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;EAMpC,CAAC;AAEH,eAAO,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