@sortipei/api-contracts 0.1.40 → 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.
- package/dist/V1/api/ad.d.ts +12 -0
- package/dist/V1/api/ad.d.ts.map +1 -1
- package/dist/V1/api/event.d.ts +10 -10
- package/dist/V1/api/statistics.d.ts +41 -0
- package/dist/V1/api/statistics.d.ts.map +1 -1
- package/dist/V1/external/partial-imported-event.d.ts +4 -4
- package/dist/api-contracts.js +14 -2
- package/dist/api-contracts.mjs +14 -2
- package/dist/shared/stats.d.ts +56 -0
- package/dist/shared/stats.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/V1/api/ad.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const MainAdDTOSchema: z.ZodObject<{
|
|
|
7
7
|
isEnabled: z.ZodBoolean;
|
|
8
8
|
link: z.ZodNullable<z.ZodString>;
|
|
9
9
|
startTime: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
startTime: string;
|
|
12
13
|
endTime: string;
|
|
@@ -15,6 +16,7 @@ export declare const MainAdDTOSchema: z.ZodObject<{
|
|
|
15
16
|
imageUrl: string;
|
|
16
17
|
isEnabled: boolean;
|
|
17
18
|
link: string | null;
|
|
19
|
+
title: string;
|
|
18
20
|
}, {
|
|
19
21
|
startTime: string;
|
|
20
22
|
endTime: string;
|
|
@@ -23,6 +25,7 @@ export declare const MainAdDTOSchema: z.ZodObject<{
|
|
|
23
25
|
imageUrl: string;
|
|
24
26
|
isEnabled: boolean;
|
|
25
27
|
link: string | null;
|
|
28
|
+
title: string;
|
|
26
29
|
}>;
|
|
27
30
|
export declare const UpdateMainAdDTOSchema: z.ZodObject<Omit<{
|
|
28
31
|
createdAt: z.ZodString;
|
|
@@ -32,18 +35,21 @@ export declare const UpdateMainAdDTOSchema: z.ZodObject<Omit<{
|
|
|
32
35
|
isEnabled: z.ZodBoolean;
|
|
33
36
|
link: z.ZodNullable<z.ZodString>;
|
|
34
37
|
startTime: z.ZodString;
|
|
38
|
+
title: z.ZodString;
|
|
35
39
|
}, "createdAt" | "id">, "strip", z.ZodTypeAny, {
|
|
36
40
|
startTime: string;
|
|
37
41
|
endTime: string;
|
|
38
42
|
imageUrl: string;
|
|
39
43
|
isEnabled: boolean;
|
|
40
44
|
link: string | null;
|
|
45
|
+
title: string;
|
|
41
46
|
}, {
|
|
42
47
|
startTime: string;
|
|
43
48
|
endTime: string;
|
|
44
49
|
imageUrl: string;
|
|
45
50
|
isEnabled: boolean;
|
|
46
51
|
link: string | null;
|
|
52
|
+
title: string;
|
|
47
53
|
}>;
|
|
48
54
|
export declare const RegionalAdDTOSchema: z.ZodObject<{
|
|
49
55
|
createdAt: z.ZodString;
|
|
@@ -54,6 +60,7 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
|
|
|
54
60
|
link: z.ZodNullable<z.ZodString>;
|
|
55
61
|
regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
|
|
56
62
|
startTime: z.ZodString;
|
|
63
|
+
title: z.ZodString;
|
|
57
64
|
}, "strip", z.ZodTypeAny, {
|
|
58
65
|
regions: import('../../shared').Region[];
|
|
59
66
|
startTime: string;
|
|
@@ -63,6 +70,7 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
|
|
|
63
70
|
imageUrl: string;
|
|
64
71
|
isEnabled: boolean;
|
|
65
72
|
link: string | null;
|
|
73
|
+
title: string;
|
|
66
74
|
}, {
|
|
67
75
|
regions: import('../../shared').Region[];
|
|
68
76
|
startTime: string;
|
|
@@ -72,6 +80,7 @@ export declare const RegionalAdDTOSchema: z.ZodObject<{
|
|
|
72
80
|
imageUrl: string;
|
|
73
81
|
isEnabled: boolean;
|
|
74
82
|
link: string | null;
|
|
83
|
+
title: string;
|
|
75
84
|
}>;
|
|
76
85
|
export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
|
|
77
86
|
createdAt: z.ZodString;
|
|
@@ -82,6 +91,7 @@ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
|
|
|
82
91
|
link: z.ZodNullable<z.ZodString>;
|
|
83
92
|
regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
|
|
84
93
|
startTime: z.ZodString;
|
|
94
|
+
title: z.ZodString;
|
|
85
95
|
}, "createdAt" | "id">, "strip", z.ZodTypeAny, {
|
|
86
96
|
regions: import('../../shared').Region[];
|
|
87
97
|
startTime: string;
|
|
@@ -89,6 +99,7 @@ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
|
|
|
89
99
|
imageUrl: string;
|
|
90
100
|
isEnabled: boolean;
|
|
91
101
|
link: string | null;
|
|
102
|
+
title: string;
|
|
92
103
|
}, {
|
|
93
104
|
regions: import('../../shared').Region[];
|
|
94
105
|
startTime: string;
|
|
@@ -96,6 +107,7 @@ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
|
|
|
96
107
|
imageUrl: string;
|
|
97
108
|
isEnabled: boolean;
|
|
98
109
|
link: string | null;
|
|
110
|
+
title: string;
|
|
99
111
|
}>;
|
|
100
112
|
export type MainAdDTO = z.infer<typeof MainAdDTOSchema>;
|
|
101
113
|
export type UpdateMainAdDTO = z.infer<typeof UpdateMainAdDTOSchema>;
|
package/dist/V1/api/ad.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ad.d.ts","sourceRoot":"","sources":["../../../src/V1/api/ad.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"ad.d.ts","sourceRoot":"","sources":["../../../src/V1/api/ad.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
package/dist/V1/api/event.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
44
44
|
createdAt: string;
|
|
45
45
|
id: string & z.BRAND<"EventId">;
|
|
46
46
|
link: string | null;
|
|
47
|
+
title: string;
|
|
47
48
|
adress: string;
|
|
48
49
|
capacity: number | null;
|
|
49
50
|
description: string;
|
|
@@ -61,7 +62,6 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
61
62
|
secondaryCategory: import('../../shared').Category | null;
|
|
62
63
|
thumbnailUrl: string | null;
|
|
63
64
|
ticketsUrl: string | null;
|
|
64
|
-
title: string;
|
|
65
65
|
organizers: {
|
|
66
66
|
id: string & z.BRAND<"OrganizerId">;
|
|
67
67
|
imageUrl: string | null;
|
|
@@ -74,6 +74,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
74
74
|
createdAt: string;
|
|
75
75
|
id: string;
|
|
76
76
|
link: string | null;
|
|
77
|
+
title: string;
|
|
77
78
|
adress: string;
|
|
78
79
|
capacity: number | null;
|
|
79
80
|
description: string;
|
|
@@ -91,7 +92,6 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
91
92
|
secondaryCategory: import('../../shared').Category | null;
|
|
92
93
|
thumbnailUrl: string | null;
|
|
93
94
|
ticketsUrl: string | null;
|
|
94
|
-
title: string;
|
|
95
95
|
organizers: {
|
|
96
96
|
id: string;
|
|
97
97
|
imageUrl: string | null;
|
|
@@ -128,6 +128,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
128
128
|
startTime: string;
|
|
129
129
|
id: string & z.BRAND<"EventId">;
|
|
130
130
|
link: string | null;
|
|
131
|
+
title: string;
|
|
131
132
|
adress: string;
|
|
132
133
|
capacity: number | null;
|
|
133
134
|
description: string;
|
|
@@ -144,7 +145,6 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
144
145
|
secondaryCategory: import('../../shared').Category | null;
|
|
145
146
|
thumbnailUrl: string | null;
|
|
146
147
|
ticketsUrl: string | null;
|
|
147
|
-
title: string;
|
|
148
148
|
organizersIds: (string & z.BRAND<"OrganizerId">)[];
|
|
149
149
|
}, {
|
|
150
150
|
regions: import('../../shared').Region[];
|
|
@@ -152,6 +152,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
152
152
|
startTime: string;
|
|
153
153
|
id: string;
|
|
154
154
|
link: string | null;
|
|
155
|
+
title: string;
|
|
155
156
|
adress: string;
|
|
156
157
|
capacity: number | null;
|
|
157
158
|
description: string;
|
|
@@ -168,7 +169,6 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
168
169
|
secondaryCategory: import('../../shared').Category | null;
|
|
169
170
|
thumbnailUrl: string | null;
|
|
170
171
|
ticketsUrl: string | null;
|
|
171
|
-
title: string;
|
|
172
172
|
organizersIds: string[];
|
|
173
173
|
}>;
|
|
174
174
|
export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
@@ -200,6 +200,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
200
200
|
category: import('../../shared').Category;
|
|
201
201
|
startTime: string;
|
|
202
202
|
link: string | null;
|
|
203
|
+
title: string;
|
|
203
204
|
adress: string;
|
|
204
205
|
capacity: number | null;
|
|
205
206
|
description: string;
|
|
@@ -216,13 +217,13 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
216
217
|
secondaryCategory: import('../../shared').Category | null;
|
|
217
218
|
thumbnailUrl: string | null;
|
|
218
219
|
ticketsUrl: string | null;
|
|
219
|
-
title: string;
|
|
220
220
|
organizersIds: (string & z.BRAND<"OrganizerId">)[];
|
|
221
221
|
}, {
|
|
222
222
|
regions: import('../../shared').Region[];
|
|
223
223
|
category: import('../../shared').Category;
|
|
224
224
|
startTime: string;
|
|
225
225
|
link: string | null;
|
|
226
|
+
title: string;
|
|
226
227
|
adress: string;
|
|
227
228
|
capacity: number | null;
|
|
228
229
|
description: string;
|
|
@@ -239,7 +240,6 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
239
240
|
secondaryCategory: import('../../shared').Category | null;
|
|
240
241
|
thumbnailUrl: string | null;
|
|
241
242
|
ticketsUrl: string | null;
|
|
242
|
-
title: string;
|
|
243
243
|
organizersIds: string[];
|
|
244
244
|
}>;
|
|
245
245
|
export declare const DisplayEventDTOSchema: z.ZodObject<{
|
|
@@ -324,6 +324,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
324
324
|
createdAt?: string | undefined;
|
|
325
325
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
326
326
|
link?: string | null | undefined;
|
|
327
|
+
title?: string | undefined;
|
|
327
328
|
adress?: string | undefined;
|
|
328
329
|
capacity?: number | null | undefined;
|
|
329
330
|
description?: string | undefined;
|
|
@@ -341,7 +342,6 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
341
342
|
secondaryCategory?: import('../../shared').Category | null | undefined;
|
|
342
343
|
thumbnailUrl?: string | null | undefined;
|
|
343
344
|
ticketsUrl?: string | null | undefined;
|
|
344
|
-
title?: string | undefined;
|
|
345
345
|
organizers?: {
|
|
346
346
|
id: string & z.BRAND<"OrganizerId">;
|
|
347
347
|
imageUrl: string | null;
|
|
@@ -354,6 +354,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
354
354
|
createdAt?: string | undefined;
|
|
355
355
|
id?: string | undefined;
|
|
356
356
|
link?: string | null | undefined;
|
|
357
|
+
title?: string | undefined;
|
|
357
358
|
adress?: string | undefined;
|
|
358
359
|
capacity?: number | null | undefined;
|
|
359
360
|
description?: string | undefined;
|
|
@@ -371,7 +372,6 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
371
372
|
secondaryCategory?: import('../../shared').Category | null | undefined;
|
|
372
373
|
thumbnailUrl?: string | null | undefined;
|
|
373
374
|
ticketsUrl?: string | null | undefined;
|
|
374
|
-
title?: string | undefined;
|
|
375
375
|
organizers?: {
|
|
376
376
|
id: string;
|
|
377
377
|
imageUrl: string | null;
|
|
@@ -392,6 +392,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
392
392
|
createdAt?: string | undefined;
|
|
393
393
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
394
394
|
link?: string | null | undefined;
|
|
395
|
+
title?: string | undefined;
|
|
395
396
|
adress?: string | undefined;
|
|
396
397
|
capacity?: number | null | undefined;
|
|
397
398
|
description?: string | undefined;
|
|
@@ -409,7 +410,6 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
409
410
|
secondaryCategory?: import('../../shared').Category | null | undefined;
|
|
410
411
|
thumbnailUrl?: string | null | undefined;
|
|
411
412
|
ticketsUrl?: string | null | undefined;
|
|
412
|
-
title?: string | undefined;
|
|
413
413
|
organizers?: {
|
|
414
414
|
id: string & z.BRAND<"OrganizerId">;
|
|
415
415
|
imageUrl: string | null;
|
|
@@ -429,6 +429,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
429
429
|
createdAt?: string | undefined;
|
|
430
430
|
id?: string | undefined;
|
|
431
431
|
link?: string | null | undefined;
|
|
432
|
+
title?: string | undefined;
|
|
432
433
|
adress?: string | undefined;
|
|
433
434
|
capacity?: number | null | undefined;
|
|
434
435
|
description?: string | undefined;
|
|
@@ -446,7 +447,6 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
446
447
|
secondaryCategory?: import('../../shared').Category | null | undefined;
|
|
447
448
|
thumbnailUrl?: string | null | undefined;
|
|
448
449
|
ticketsUrl?: string | null | undefined;
|
|
449
|
-
title?: string | undefined;
|
|
450
450
|
organizers?: {
|
|
451
451
|
id: string;
|
|
452
452
|
imageUrl: string | null;
|
|
@@ -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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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"}
|
|
@@ -45,6 +45,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
45
45
|
createdAt?: string | undefined;
|
|
46
46
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
47
47
|
link?: string | null | undefined;
|
|
48
|
+
title?: string | undefined;
|
|
48
49
|
adress?: string | undefined;
|
|
49
50
|
capacity?: number | null | undefined;
|
|
50
51
|
description?: string | undefined;
|
|
@@ -62,7 +63,6 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
62
63
|
secondaryCategory?: import('../../shared').Category | null | undefined;
|
|
63
64
|
thumbnailUrl?: string | null | undefined;
|
|
64
65
|
ticketsUrl?: string | null | undefined;
|
|
65
|
-
title?: string | undefined;
|
|
66
66
|
organizers?: {
|
|
67
67
|
id: string & z.BRAND<"OrganizerId">;
|
|
68
68
|
imageUrl: string | null;
|
|
@@ -75,6 +75,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
75
75
|
createdAt?: string | undefined;
|
|
76
76
|
id?: string | undefined;
|
|
77
77
|
link?: string | null | undefined;
|
|
78
|
+
title?: string | undefined;
|
|
78
79
|
adress?: string | undefined;
|
|
79
80
|
capacity?: number | null | undefined;
|
|
80
81
|
description?: string | undefined;
|
|
@@ -92,7 +93,6 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
92
93
|
secondaryCategory?: import('../../shared').Category | null | undefined;
|
|
93
94
|
thumbnailUrl?: string | null | undefined;
|
|
94
95
|
ticketsUrl?: string | null | undefined;
|
|
95
|
-
title?: string | undefined;
|
|
96
96
|
organizers?: {
|
|
97
97
|
id: string;
|
|
98
98
|
imageUrl: string | null;
|
|
@@ -113,6 +113,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
113
113
|
createdAt?: string | undefined;
|
|
114
114
|
id?: (string & z.BRAND<"EventId">) | undefined;
|
|
115
115
|
link?: string | null | undefined;
|
|
116
|
+
title?: string | undefined;
|
|
116
117
|
adress?: string | undefined;
|
|
117
118
|
capacity?: number | null | undefined;
|
|
118
119
|
description?: string | undefined;
|
|
@@ -130,7 +131,6 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
130
131
|
secondaryCategory?: import('../../shared').Category | null | undefined;
|
|
131
132
|
thumbnailUrl?: string | null | undefined;
|
|
132
133
|
ticketsUrl?: string | null | undefined;
|
|
133
|
-
title?: string | undefined;
|
|
134
134
|
organizers?: {
|
|
135
135
|
id: string & z.BRAND<"OrganizerId">;
|
|
136
136
|
imageUrl: string | null;
|
|
@@ -149,6 +149,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
149
149
|
createdAt?: string | undefined;
|
|
150
150
|
id?: string | undefined;
|
|
151
151
|
link?: string | null | undefined;
|
|
152
|
+
title?: string | undefined;
|
|
152
153
|
adress?: string | undefined;
|
|
153
154
|
capacity?: number | null | undefined;
|
|
154
155
|
description?: string | undefined;
|
|
@@ -166,7 +167,6 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
166
167
|
secondaryCategory?: import('../../shared').Category | null | undefined;
|
|
167
168
|
thumbnailUrl?: string | null | undefined;
|
|
168
169
|
ticketsUrl?: string | null | undefined;
|
|
169
|
-
title?: string | undefined;
|
|
170
170
|
organizers?: {
|
|
171
171
|
id: string;
|
|
172
172
|
imageUrl: string | null;
|
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,
|
|
@@ -4210,7 +4219,8 @@ const MainAdDTOSchema = z.object({
|
|
|
4210
4219
|
imageUrl: URLSchema,
|
|
4211
4220
|
isEnabled: z.boolean(),
|
|
4212
4221
|
link: URLSchema.nullable(),
|
|
4213
|
-
startTime: StringSchema
|
|
4222
|
+
startTime: StringSchema,
|
|
4223
|
+
title: z.string()
|
|
4214
4224
|
});
|
|
4215
4225
|
const UpdateMainAdDTOSchema = MainAdDTOSchema.omit({
|
|
4216
4226
|
createdAt: true,
|
|
@@ -4224,7 +4234,8 @@ const RegionalAdDTOSchema = z.object({
|
|
|
4224
4234
|
isEnabled: z.boolean(),
|
|
4225
4235
|
link: URLSchema.nullable(),
|
|
4226
4236
|
regions: RegionSchema.array(),
|
|
4227
|
-
startTime: StringSchema
|
|
4237
|
+
startTime: StringSchema,
|
|
4238
|
+
title: z.string()
|
|
4228
4239
|
});
|
|
4229
4240
|
const UpdateRegionalAdDTOSchema = RegionalAdDTOSchema.omit({
|
|
4230
4241
|
createdAt: true,
|
|
@@ -4423,6 +4434,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4423
4434
|
api: index$2,
|
|
4424
4435
|
external: index$1
|
|
4425
4436
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4437
|
+
exports.AdPressedStatisticSchema = AdPressedStatisticSchema;
|
|
4426
4438
|
exports.AppStartedStatisticSchema = AppStartedStatisticSchema;
|
|
4427
4439
|
exports.Category = Category;
|
|
4428
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,
|
|
@@ -4208,7 +4217,8 @@ const MainAdDTOSchema = z.object({
|
|
|
4208
4217
|
imageUrl: URLSchema,
|
|
4209
4218
|
isEnabled: z.boolean(),
|
|
4210
4219
|
link: URLSchema.nullable(),
|
|
4211
|
-
startTime: StringSchema
|
|
4220
|
+
startTime: StringSchema,
|
|
4221
|
+
title: z.string()
|
|
4212
4222
|
});
|
|
4213
4223
|
const UpdateMainAdDTOSchema = MainAdDTOSchema.omit({
|
|
4214
4224
|
createdAt: true,
|
|
@@ -4222,7 +4232,8 @@ const RegionalAdDTOSchema = z.object({
|
|
|
4222
4232
|
isEnabled: z.boolean(),
|
|
4223
4233
|
link: URLSchema.nullable(),
|
|
4224
4234
|
regions: RegionSchema.array(),
|
|
4225
|
-
startTime: StringSchema
|
|
4235
|
+
startTime: StringSchema,
|
|
4236
|
+
title: z.string()
|
|
4226
4237
|
});
|
|
4227
4238
|
const UpdateRegionalAdDTOSchema = RegionalAdDTOSchema.omit({
|
|
4228
4239
|
createdAt: true,
|
|
@@ -4422,6 +4433,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4422
4433
|
external: index$1
|
|
4423
4434
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4424
4435
|
export {
|
|
4436
|
+
AdPressedStatisticSchema,
|
|
4425
4437
|
AppStartedStatisticSchema,
|
|
4426
4438
|
Category,
|
|
4427
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":"","sources":["../../src/shared/stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,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