@sortipei/api-contracts 0.2.2 → 0.2.4
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,28 @@ export declare const AdStatDTOSchema: z.ZodObject<{
|
|
|
26
26
|
adTitle: string;
|
|
27
27
|
pressedCount: number;
|
|
28
28
|
}>;
|
|
29
|
+
export declare const EventStatisticsDTOSchema: z.ZodObject<{
|
|
30
|
+
addedToCalendarCount: z.ZodNumber;
|
|
31
|
+
favoritesCount: z.ZodNumber;
|
|
32
|
+
openedCount: z.ZodNumber;
|
|
33
|
+
seeMoreClickedCount: z.ZodNumber;
|
|
34
|
+
sharedCount: z.ZodNumber;
|
|
35
|
+
ticketsUrlClickedCount: z.ZodNumber;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
addedToCalendarCount: number;
|
|
38
|
+
favoritesCount: number;
|
|
39
|
+
openedCount: number;
|
|
40
|
+
seeMoreClickedCount: number;
|
|
41
|
+
sharedCount: number;
|
|
42
|
+
ticketsUrlClickedCount: number;
|
|
43
|
+
}, {
|
|
44
|
+
addedToCalendarCount: number;
|
|
45
|
+
favoritesCount: number;
|
|
46
|
+
openedCount: number;
|
|
47
|
+
seeMoreClickedCount: number;
|
|
48
|
+
sharedCount: number;
|
|
49
|
+
ticketsUrlClickedCount: number;
|
|
50
|
+
}>;
|
|
29
51
|
export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
30
52
|
allAdsStats: z.ZodArray<z.ZodObject<{
|
|
31
53
|
adId: z.ZodUnion<[z.ZodBranded<z.ZodString, "MainAdId">, z.ZodBranded<z.ZodString, "RegionalAdId">]>;
|
|
@@ -173,8 +195,9 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
173
195
|
usersWithMultipleDayAppOpened: number;
|
|
174
196
|
}>;
|
|
175
197
|
export type AdStatDTO = z.infer<typeof AdStatDTOSchema>;
|
|
176
|
-
export type
|
|
198
|
+
export type EventStatisticsDTO = z.infer<typeof EventStatisticsDTOSchema>;
|
|
177
199
|
export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
|
|
200
|
+
export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
|
|
178
201
|
export declare const SaveStatisticDTOSchema: z.ZodObject<{
|
|
179
202
|
statistic: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
180
203
|
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,O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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"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -4383,6 +4383,14 @@ const AdStatDTOSchema = z.object({
|
|
|
4383
4383
|
adTitle: StringSchema,
|
|
4384
4384
|
pressedCount: z.number()
|
|
4385
4385
|
});
|
|
4386
|
+
const EventStatisticsDTOSchema = z.object({
|
|
4387
|
+
addedToCalendarCount: SafeNonNegativeIntegerSchema,
|
|
4388
|
+
favoritesCount: SafeNonNegativeIntegerSchema,
|
|
4389
|
+
openedCount: SafeNonNegativeIntegerSchema,
|
|
4390
|
+
seeMoreClickedCount: SafeNonNegativeIntegerSchema,
|
|
4391
|
+
sharedCount: SafeNonNegativeIntegerSchema,
|
|
4392
|
+
ticketsUrlClickedCount: SafeNonNegativeIntegerSchema
|
|
4393
|
+
});
|
|
4386
4394
|
const GlobalStatsDTOSchema = z.object({
|
|
4387
4395
|
allAdsStats: AdStatDTOSchema.array(),
|
|
4388
4396
|
eventsCount: z.number(),
|
|
@@ -4415,6 +4423,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4415
4423
|
DisplayEventDTOSchema,
|
|
4416
4424
|
EventDTOSchema,
|
|
4417
4425
|
EventFileUploadDTOSchema,
|
|
4426
|
+
EventStatisticsDTOSchema,
|
|
4418
4427
|
FileUploadDTOSchema,
|
|
4419
4428
|
GPSCoordinatesSchema,
|
|
4420
4429
|
GlobalStatsDTOSchema,
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4381,6 +4381,14 @@ const AdStatDTOSchema = z.object({
|
|
|
4381
4381
|
adTitle: StringSchema,
|
|
4382
4382
|
pressedCount: z.number()
|
|
4383
4383
|
});
|
|
4384
|
+
const EventStatisticsDTOSchema = z.object({
|
|
4385
|
+
addedToCalendarCount: SafeNonNegativeIntegerSchema,
|
|
4386
|
+
favoritesCount: SafeNonNegativeIntegerSchema,
|
|
4387
|
+
openedCount: SafeNonNegativeIntegerSchema,
|
|
4388
|
+
seeMoreClickedCount: SafeNonNegativeIntegerSchema,
|
|
4389
|
+
sharedCount: SafeNonNegativeIntegerSchema,
|
|
4390
|
+
ticketsUrlClickedCount: SafeNonNegativeIntegerSchema
|
|
4391
|
+
});
|
|
4384
4392
|
const GlobalStatsDTOSchema = z.object({
|
|
4385
4393
|
allAdsStats: AdStatDTOSchema.array(),
|
|
4386
4394
|
eventsCount: z.number(),
|
|
@@ -4413,6 +4421,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4413
4421
|
DisplayEventDTOSchema,
|
|
4414
4422
|
EventDTOSchema,
|
|
4415
4423
|
EventFileUploadDTOSchema,
|
|
4424
|
+
EventStatisticsDTOSchema,
|
|
4416
4425
|
FileUploadDTOSchema,
|
|
4417
4426
|
GPSCoordinatesSchema,
|
|
4418
4427
|
GlobalStatsDTOSchema,
|