@sortipei/api-contracts 0.1.41 → 0.1.42
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.
|
@@ -137,6 +137,33 @@ export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
|
|
|
137
137
|
export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
|
|
138
138
|
export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
139
139
|
statistic: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
140
|
+
data: z.ZodObject<{
|
|
141
|
+
adId: z.ZodString;
|
|
142
|
+
userId: z.ZodString;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
userId: string;
|
|
145
|
+
adId: string;
|
|
146
|
+
}, {
|
|
147
|
+
userId: string;
|
|
148
|
+
adId: string;
|
|
149
|
+
}>;
|
|
150
|
+
time: z.ZodString;
|
|
151
|
+
type: z.ZodLiteral<"ad-pressed">;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
type: "ad-pressed";
|
|
154
|
+
data: {
|
|
155
|
+
userId: string;
|
|
156
|
+
adId: string;
|
|
157
|
+
};
|
|
158
|
+
time: string;
|
|
159
|
+
}, {
|
|
160
|
+
type: "ad-pressed";
|
|
161
|
+
data: {
|
|
162
|
+
userId: string;
|
|
163
|
+
adId: string;
|
|
164
|
+
};
|
|
165
|
+
time: string;
|
|
166
|
+
}>, z.ZodObject<{
|
|
140
167
|
data: z.ZodObject<{
|
|
141
168
|
userId: z.ZodString;
|
|
142
169
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -568,6 +595,13 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
568
595
|
userId: string;
|
|
569
596
|
};
|
|
570
597
|
time: string;
|
|
598
|
+
} | {
|
|
599
|
+
type: "ad-pressed";
|
|
600
|
+
data: {
|
|
601
|
+
userId: string;
|
|
602
|
+
adId: string;
|
|
603
|
+
};
|
|
604
|
+
time: string;
|
|
571
605
|
};
|
|
572
606
|
}, {
|
|
573
607
|
statistic: {
|
|
@@ -659,6 +693,13 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
|
659
693
|
userId: string;
|
|
660
694
|
};
|
|
661
695
|
time: string;
|
|
696
|
+
} | {
|
|
697
|
+
type: "ad-pressed";
|
|
698
|
+
data: {
|
|
699
|
+
userId: string;
|
|
700
|
+
adId: string;
|
|
701
|
+
};
|
|
702
|
+
time: string;
|
|
662
703
|
};
|
|
663
704
|
}>;
|
|
664
705
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH,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
|
|
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,iB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,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
|
@@ -353,7 +353,62 @@ 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
|
+
userId: z.ZodString;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
userId: string;
|
|
362
|
+
adId: string;
|
|
363
|
+
}, {
|
|
364
|
+
userId: string;
|
|
365
|
+
adId: string;
|
|
366
|
+
}>;
|
|
367
|
+
time: z.ZodString;
|
|
368
|
+
type: z.ZodLiteral<"ad-pressed">;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
type: "ad-pressed";
|
|
371
|
+
data: {
|
|
372
|
+
userId: string;
|
|
373
|
+
adId: string;
|
|
374
|
+
};
|
|
375
|
+
time: string;
|
|
376
|
+
}, {
|
|
377
|
+
type: "ad-pressed";
|
|
378
|
+
data: {
|
|
379
|
+
userId: string;
|
|
380
|
+
adId: string;
|
|
381
|
+
};
|
|
382
|
+
time: string;
|
|
383
|
+
}>;
|
|
356
384
|
export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
385
|
+
data: z.ZodObject<{
|
|
386
|
+
adId: z.ZodString;
|
|
387
|
+
userId: z.ZodString;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
userId: string;
|
|
390
|
+
adId: string;
|
|
391
|
+
}, {
|
|
392
|
+
userId: string;
|
|
393
|
+
adId: string;
|
|
394
|
+
}>;
|
|
395
|
+
time: z.ZodString;
|
|
396
|
+
type: z.ZodLiteral<"ad-pressed">;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
type: "ad-pressed";
|
|
399
|
+
data: {
|
|
400
|
+
userId: string;
|
|
401
|
+
adId: string;
|
|
402
|
+
};
|
|
403
|
+
time: string;
|
|
404
|
+
}, {
|
|
405
|
+
type: "ad-pressed";
|
|
406
|
+
data: {
|
|
407
|
+
userId: string;
|
|
408
|
+
adId: string;
|
|
409
|
+
};
|
|
410
|
+
time: string;
|
|
411
|
+
}>, z.ZodObject<{
|
|
357
412
|
data: z.ZodObject<{
|
|
358
413
|
userId: z.ZodString;
|
|
359
414
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -695,6 +750,7 @@ export declare const StatisticSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
695
750
|
};
|
|
696
751
|
time: string;
|
|
697
752
|
}>]>;
|
|
753
|
+
export type AdPressedStatistic = z.infer<typeof AdPressedStatisticSchema>;
|
|
698
754
|
export type AppStartedStatistic = z.infer<typeof AppStartedStatisticSchema>;
|
|
699
755
|
export type CategoryFilterAppliedStatistic = z.infer<typeof CategoryFilterAppliedStatisticSchema>;
|
|
700
756
|
export type DateFilterAppliedStatistic = z.infer<typeof DateFilterAppliedStatisticSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":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