@sortipei/api-contracts 0.2.2 → 0.2.3
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/event.d.ts
CHANGED
|
@@ -285,9 +285,9 @@ export declare const PromoteEventDTOSchema: z.ZodObject<{
|
|
|
285
285
|
isPromoted: boolean;
|
|
286
286
|
}>;
|
|
287
287
|
export type CreateEventDTO = z.infer<typeof CreateEventDTOSchema>;
|
|
288
|
-
export type UpdateEventDTO = z.infer<typeof UpdateEventDTOSchema>;
|
|
289
288
|
export type DisplayEventDTO = z.infer<typeof DisplayEventDTOSchema>;
|
|
290
289
|
export type PromoteEventDTO = z.infer<typeof PromoteEventDTOSchema>;
|
|
290
|
+
export type UpdateEventDTO = z.infer<typeof UpdateEventDTOSchema>;
|
|
291
291
|
export type EventDTO = z.infer<typeof EventDTOSchema>;
|
|
292
292
|
export declare const constraints: {
|
|
293
293
|
adress: {
|
|
@@ -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,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO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AC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;EAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -26,6 +26,13 @@ export declare const AdStatDTOSchema: z.ZodObject<{
|
|
|
26
26
|
adTitle: string;
|
|
27
27
|
pressedCount: number;
|
|
28
28
|
}>;
|
|
29
|
+
export declare const EventStatisticsDTOSchema: z.ZodObject<{
|
|
30
|
+
openedCount: z.ZodNumber;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
openedCount: number;
|
|
33
|
+
}, {
|
|
34
|
+
openedCount: number;
|
|
35
|
+
}>;
|
|
29
36
|
export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
30
37
|
allAdsStats: z.ZodArray<z.ZodObject<{
|
|
31
38
|
adId: z.ZodUnion<[z.ZodBranded<z.ZodString, "MainAdId">, z.ZodBranded<z.ZodString, "RegionalAdId">]>;
|
|
@@ -173,8 +180,9 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
173
180
|
usersWithMultipleDayAppOpened: number;
|
|
174
181
|
}>;
|
|
175
182
|
export type AdStatDTO = z.infer<typeof AdStatDTOSchema>;
|
|
176
|
-
export type
|
|
183
|
+
export type EventStatisticsDTO = z.infer<typeof EventStatisticsDTOSchema>;
|
|
177
184
|
export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
|
|
185
|
+
export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
|
|
178
186
|
export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
179
187
|
statistic: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
180
188
|
data: z.ZodObject<{
|
|
@@ -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,
|
|
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;;;;;;EAEnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe/B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAA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DTOSchema = z.object({
|
|
|
4383
4383
|
adTitle: StringSchema,
|
|
4384
4384
|
pressedCount: z.number()
|
|
4385
4385
|
});
|
|
4386
|
+
const EventStatisticsDTOSchema = z.object({
|
|
4387
|
+
openedCount: SafeNonNegativeIntegerSchema
|
|
4388
|
+
});
|
|
4386
4389
|
const GlobalStatsDTOSchema = z.object({
|
|
4387
4390
|
allAdsStats: AdStatDTOSchema.array(),
|
|
4388
4391
|
eventsCount: z.number(),
|
|
@@ -4415,6 +4418,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4415
4418
|
DisplayEventDTOSchema,
|
|
4416
4419
|
EventDTOSchema,
|
|
4417
4420
|
EventFileUploadDTOSchema,
|
|
4421
|
+
EventStatisticsDTOSchema,
|
|
4418
4422
|
FileUploadDTOSchema,
|
|
4419
4423
|
GPSCoordinatesSchema,
|
|
4420
4424
|
GlobalStatsDTOSchema,
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4381,6 +4381,9 @@ const AdStatDTOSchema = z.object({
|
|
|
4381
4381
|
adTitle: StringSchema,
|
|
4382
4382
|
pressedCount: z.number()
|
|
4383
4383
|
});
|
|
4384
|
+
const EventStatisticsDTOSchema = z.object({
|
|
4385
|
+
openedCount: SafeNonNegativeIntegerSchema
|
|
4386
|
+
});
|
|
4384
4387
|
const GlobalStatsDTOSchema = z.object({
|
|
4385
4388
|
allAdsStats: AdStatDTOSchema.array(),
|
|
4386
4389
|
eventsCount: z.number(),
|
|
@@ -4413,6 +4416,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4413
4416
|
DisplayEventDTOSchema,
|
|
4414
4417
|
EventDTOSchema,
|
|
4415
4418
|
EventFileUploadDTOSchema,
|
|
4419
|
+
EventStatisticsDTOSchema,
|
|
4416
4420
|
FileUploadDTOSchema,
|
|
4417
4421
|
GPSCoordinatesSchema,
|
|
4418
4422
|
GlobalStatsDTOSchema,
|