@sortipei/api-contracts 0.2.1 → 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.
@@ -12,7 +12,7 @@ export declare const GPSCoordinatesSchema: z.ZodObject<{
12
12
  export declare const EventDTOSchema: z.ZodObject<{
13
13
  adress: z.ZodString;
14
14
  capacity: z.ZodNullable<z.ZodNumber>;
15
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
15
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
16
16
  createdAt: z.ZodString;
17
17
  description: z.ZodString;
18
18
  externalSourceId: z.ZodNullable<z.ZodString>;
@@ -38,8 +38,8 @@ export declare const EventDTOSchema: z.ZodObject<{
38
38
  isPromoted: z.ZodBoolean;
39
39
  link: z.ZodNullable<z.ZodString>;
40
40
  price: z.ZodNullable<z.ZodNumber>;
41
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
42
- secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>;
41
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
42
+ secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import('../../shared').Category>>;
43
43
  startTime: z.ZodString;
44
44
  thumbnailUrl: z.ZodNullable<z.ZodString>;
45
45
  ticketsUrl: z.ZodNullable<z.ZodString>;
@@ -58,8 +58,8 @@ export declare const EventDTOSchema: z.ZodObject<{
58
58
  name: string;
59
59
  }>, "many">;
60
60
  }, "strip", z.ZodTypeAny, {
61
- regions: import("../../shared").Region[];
62
- category: import("../../shared").Category;
61
+ regions: import('../../shared').Region[];
62
+ category: import('../../shared').Category;
63
63
  startTime: string;
64
64
  createdAt: string;
65
65
  id: string & z.BRAND<"EventId">;
@@ -83,7 +83,7 @@ export declare const EventDTOSchema: z.ZodObject<{
83
83
  isPriceRange: boolean;
84
84
  isPromoted: boolean;
85
85
  price: number | null;
86
- secondaryCategory: import("../../shared").Category | null;
86
+ secondaryCategory: import('../../shared').Category | null;
87
87
  thumbnailUrl: string | null;
88
88
  ticketsUrl: string | null;
89
89
  organizers: {
@@ -92,8 +92,8 @@ export declare const EventDTOSchema: z.ZodObject<{
92
92
  name: string;
93
93
  }[];
94
94
  }, {
95
- regions: import("../../shared").Region[];
96
- category: import("../../shared").Category;
95
+ regions: import('../../shared').Region[];
96
+ category: import('../../shared').Category;
97
97
  startTime: string;
98
98
  createdAt: string;
99
99
  id: string;
@@ -117,7 +117,7 @@ export declare const EventDTOSchema: z.ZodObject<{
117
117
  isPriceRange: boolean;
118
118
  isPromoted: boolean;
119
119
  price: number | null;
120
- secondaryCategory: import("../../shared").Category | null;
120
+ secondaryCategory: import('../../shared').Category | null;
121
121
  thumbnailUrl: string | null;
122
122
  ticketsUrl: string | null;
123
123
  organizers: {
@@ -129,7 +129,7 @@ export declare const EventDTOSchema: z.ZodObject<{
129
129
  export declare const CreateEventDTOSchema: z.ZodObject<{
130
130
  adress: z.ZodString;
131
131
  capacity: z.ZodNullable<z.ZodNumber>;
132
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
132
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
133
133
  description: z.ZodString;
134
134
  externalSourceId: z.ZodNullable<z.ZodString>;
135
135
  finishTime: z.ZodNullable<z.ZodString>;
@@ -144,15 +144,15 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
144
144
  link: z.ZodNullable<z.ZodString>;
145
145
  organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
146
146
  price: z.ZodNullable<z.ZodNumber>;
147
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
148
- secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>;
147
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
148
+ secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import('../../shared').Category>>;
149
149
  startTime: z.ZodString;
150
150
  thumbnailUrl: z.ZodNullable<z.ZodString>;
151
151
  title: z.ZodString;
152
152
  ticketsUrl: z.ZodNullable<z.ZodString>;
153
153
  }, "strip", z.ZodTypeAny, {
154
- regions: import("../../shared").Region[];
155
- category: import("../../shared").Category;
154
+ regions: import('../../shared').Region[];
155
+ category: import('../../shared').Category;
156
156
  startTime: string;
157
157
  id: string & z.BRAND<"EventId">;
158
158
  link: string | null;
@@ -170,13 +170,13 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
170
170
  isOldTimes: boolean;
171
171
  isPriceRange: boolean;
172
172
  price: number | null;
173
- secondaryCategory: import("../../shared").Category | null;
173
+ secondaryCategory: import('../../shared').Category | null;
174
174
  thumbnailUrl: string | null;
175
175
  ticketsUrl: string | null;
176
176
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
177
177
  }, {
178
- regions: import("../../shared").Region[];
179
- category: import("../../shared").Category;
178
+ regions: import('../../shared').Region[];
179
+ category: import('../../shared').Category;
180
180
  startTime: string;
181
181
  id: string;
182
182
  link: string | null;
@@ -194,7 +194,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
194
194
  isOldTimes: boolean;
195
195
  isPriceRange: boolean;
196
196
  price: number | null;
197
- secondaryCategory: import("../../shared").Category | null;
197
+ secondaryCategory: import('../../shared').Category | null;
198
198
  thumbnailUrl: string | null;
199
199
  ticketsUrl: string | null;
200
200
  organizersIds: string[];
@@ -202,7 +202,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
202
202
  export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
203
203
  adress: z.ZodString;
204
204
  capacity: z.ZodNullable<z.ZodNumber>;
205
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
205
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
206
206
  description: z.ZodString;
207
207
  externalSourceId: z.ZodNullable<z.ZodString>;
208
208
  finishTime: z.ZodNullable<z.ZodString>;
@@ -217,15 +217,15 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
217
217
  link: z.ZodNullable<z.ZodString>;
218
218
  organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
219
219
  price: z.ZodNullable<z.ZodNumber>;
220
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
221
- secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>;
220
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
221
+ secondaryCategory: z.ZodNullable<z.ZodNativeEnum<typeof import('../../shared').Category>>;
222
222
  startTime: z.ZodString;
223
223
  thumbnailUrl: z.ZodNullable<z.ZodString>;
224
224
  title: z.ZodString;
225
225
  ticketsUrl: z.ZodNullable<z.ZodString>;
226
226
  }, "id">, "strip", z.ZodTypeAny, {
227
- regions: import("../../shared").Region[];
228
- category: import("../../shared").Category;
227
+ regions: import('../../shared').Region[];
228
+ category: import('../../shared').Category;
229
229
  startTime: string;
230
230
  link: string | null;
231
231
  title: string;
@@ -242,13 +242,13 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
242
242
  isOldTimes: boolean;
243
243
  isPriceRange: boolean;
244
244
  price: number | null;
245
- secondaryCategory: import("../../shared").Category | null;
245
+ secondaryCategory: import('../../shared').Category | null;
246
246
  thumbnailUrl: string | null;
247
247
  ticketsUrl: string | null;
248
248
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
249
249
  }, {
250
- regions: import("../../shared").Region[];
251
- category: import("../../shared").Category;
250
+ regions: import('../../shared').Region[];
251
+ category: import('../../shared').Category;
252
252
  startTime: string;
253
253
  link: string | null;
254
254
  title: string;
@@ -265,7 +265,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
265
265
  isOldTimes: boolean;
266
266
  isPriceRange: boolean;
267
267
  price: number | null;
268
- secondaryCategory: import("../../shared").Category | null;
268
+ secondaryCategory: import('../../shared').Category | null;
269
269
  thumbnailUrl: string | null;
270
270
  ticketsUrl: string | null;
271
271
  organizersIds: string[];
@@ -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: {
@@ -310,7 +310,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
310
310
  partialEventState: z.ZodObject<{
311
311
  adress: z.ZodOptional<z.ZodString>;
312
312
  capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
313
- category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
313
+ category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
314
314
  createdAt: z.ZodOptional<z.ZodString>;
315
315
  description: z.ZodOptional<z.ZodString>;
316
316
  externalSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -336,8 +336,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
336
336
  isPromoted: z.ZodOptional<z.ZodBoolean>;
337
337
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
338
338
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
339
- regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
340
- secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>>;
339
+ regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
340
+ secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import('../../shared').Category>>>;
341
341
  startTime: z.ZodOptional<z.ZodString>;
342
342
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
343
  ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -356,8 +356,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
356
356
  name: string;
357
357
  }>, "many">>;
358
358
  }, "strip", z.ZodTypeAny, {
359
- regions?: import("../../shared").Region[] | undefined;
360
- category?: import("../../shared").Category | undefined;
359
+ regions?: import('../../shared').Region[] | undefined;
360
+ category?: import('../../shared').Category | undefined;
361
361
  startTime?: string | undefined;
362
362
  createdAt?: string | undefined;
363
363
  id?: (string & z.BRAND<"EventId">) | undefined;
@@ -381,7 +381,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
381
381
  isPriceRange?: boolean | undefined;
382
382
  isPromoted?: boolean | undefined;
383
383
  price?: number | null | undefined;
384
- secondaryCategory?: import("../../shared").Category | null | undefined;
384
+ secondaryCategory?: import('../../shared').Category | null | undefined;
385
385
  thumbnailUrl?: string | null | undefined;
386
386
  ticketsUrl?: string | null | undefined;
387
387
  organizers?: {
@@ -390,8 +390,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
390
390
  name: string;
391
391
  }[] | undefined;
392
392
  }, {
393
- regions?: import("../../shared").Region[] | undefined;
394
- category?: import("../../shared").Category | undefined;
393
+ regions?: import('../../shared').Region[] | undefined;
394
+ category?: import('../../shared').Category | undefined;
395
395
  startTime?: string | undefined;
396
396
  createdAt?: string | undefined;
397
397
  id?: string | undefined;
@@ -415,7 +415,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
415
415
  isPriceRange?: boolean | undefined;
416
416
  isPromoted?: boolean | undefined;
417
417
  price?: number | null | undefined;
418
- secondaryCategory?: import("../../shared").Category | null | undefined;
418
+ secondaryCategory?: import('../../shared').Category | null | undefined;
419
419
  thumbnailUrl?: string | null | undefined;
420
420
  ticketsUrl?: string | null | undefined;
421
421
  organizers?: {
@@ -432,8 +432,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
432
432
  id: string;
433
433
  organizersNames: string[];
434
434
  partialEventState: {
435
- regions?: import("../../shared").Region[] | undefined;
436
- category?: import("../../shared").Category | undefined;
435
+ regions?: import('../../shared').Region[] | undefined;
436
+ category?: import('../../shared').Category | undefined;
437
437
  startTime?: string | undefined;
438
438
  createdAt?: string | undefined;
439
439
  id?: (string & z.BRAND<"EventId">) | undefined;
@@ -457,7 +457,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
457
457
  isPriceRange?: boolean | undefined;
458
458
  isPromoted?: boolean | undefined;
459
459
  price?: number | null | undefined;
460
- secondaryCategory?: import("../../shared").Category | null | undefined;
460
+ secondaryCategory?: import('../../shared').Category | null | undefined;
461
461
  thumbnailUrl?: string | null | undefined;
462
462
  ticketsUrl?: string | null | undefined;
463
463
  organizers?: {
@@ -473,8 +473,8 @@ export declare const ImportDTOSchema: z.ZodObject<{
473
473
  id: string;
474
474
  organizersNames: string[];
475
475
  partialEventState: {
476
- regions?: import("../../shared").Region[] | undefined;
477
- category?: import("../../shared").Category | undefined;
476
+ regions?: import('../../shared').Region[] | undefined;
477
+ category?: import('../../shared').Category | undefined;
478
478
  startTime?: string | undefined;
479
479
  createdAt?: string | undefined;
480
480
  id?: string | undefined;
@@ -498,7 +498,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
498
498
  isPriceRange?: boolean | undefined;
499
499
  isPromoted?: boolean | undefined;
500
500
  price?: number | null | undefined;
501
- secondaryCategory?: import("../../shared").Category | null | undefined;
501
+ secondaryCategory?: import('../../shared').Category | null | undefined;
502
502
  thumbnailUrl?: string | null | undefined;
503
503
  ticketsUrl?: string | null | undefined;
504
504
  organizers?: {
@@ -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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C,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,QAAQ,GAAG,CAAC,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">]>;
@@ -40,7 +47,6 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
40
47
  adTitle: string;
41
48
  pressedCount: number;
42
49
  }>, "many">;
43
- currentFavoritesCount: z.ZodNumber;
44
50
  eventsCount: z.ZodNumber;
45
51
  openedEventsCount: z.ZodNumber;
46
52
  presentOrFutureEventsCount: z.ZodNumber;
@@ -97,7 +103,9 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
97
103
  count: number;
98
104
  eventTitle: string;
99
105
  }>, "many">;
106
+ totalAddedToCalendar: z.ZodNumber;
100
107
  totalFavoritesCount: z.ZodNumber;
108
+ totalShared: z.ZodNumber;
101
109
  usersCount: z.ZodNumber;
102
110
  usersWithMultipleDayAppOpened: z.ZodNumber;
103
111
  }, "strip", z.ZodTypeAny, {
@@ -106,7 +114,6 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
106
114
  adTitle: string;
107
115
  pressedCount: number;
108
116
  }[];
109
- currentFavoritesCount: number;
110
117
  eventsCount: number;
111
118
  openedEventsCount: number;
112
119
  presentOrFutureEventsCount: number;
@@ -131,7 +138,9 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
131
138
  count: number;
132
139
  eventTitle: string;
133
140
  }[];
141
+ totalAddedToCalendar: number;
134
142
  totalFavoritesCount: number;
143
+ totalShared: number;
135
144
  usersCount: number;
136
145
  usersWithMultipleDayAppOpened: number;
137
146
  }, {
@@ -140,7 +149,6 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
140
149
  adTitle: string;
141
150
  pressedCount: number;
142
151
  }[];
143
- currentFavoritesCount: number;
144
152
  eventsCount: number;
145
153
  openedEventsCount: number;
146
154
  presentOrFutureEventsCount: number;
@@ -165,13 +173,16 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
165
173
  count: number;
166
174
  eventTitle: string;
167
175
  }[];
176
+ totalAddedToCalendar: number;
168
177
  totalFavoritesCount: number;
178
+ totalShared: number;
169
179
  usersCount: number;
170
180
  usersWithMultipleDayAppOpened: number;
171
181
  }>;
172
182
  export type AdStatDTO = z.infer<typeof AdStatDTOSchema>;
173
- export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
183
+ export type EventStatisticsDTO = z.infer<typeof EventStatisticsDTOSchema>;
174
184
  export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
185
+ export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
175
186
  export declare const SaveStatisticDTOSchema: z.ZodObject<{
176
187
  statistic: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
177
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,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,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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"}
@@ -3,7 +3,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
3
3
  partialEventState: z.ZodObject<{
4
4
  adress: z.ZodOptional<z.ZodString>;
5
5
  capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
- category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
6
+ category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
7
7
  createdAt: z.ZodOptional<z.ZodString>;
8
8
  description: z.ZodOptional<z.ZodString>;
9
9
  externalSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -29,8 +29,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
29
29
  isPromoted: z.ZodOptional<z.ZodBoolean>;
30
30
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
31
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
- regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
33
- secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../../shared").Category>>>;
32
+ regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
33
+ secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import('../../shared').Category>>>;
34
34
  startTime: z.ZodOptional<z.ZodString>;
35
35
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -49,8 +49,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
49
49
  name: string;
50
50
  }>, "many">>;
51
51
  }, "strip", z.ZodTypeAny, {
52
- regions?: import("../../shared").Region[] | undefined;
53
- category?: import("../../shared").Category | undefined;
52
+ regions?: import('../../shared').Region[] | undefined;
53
+ category?: import('../../shared').Category | undefined;
54
54
  startTime?: string | undefined;
55
55
  createdAt?: string | undefined;
56
56
  id?: (string & z.BRAND<"EventId">) | undefined;
@@ -74,7 +74,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
74
74
  isPriceRange?: boolean | undefined;
75
75
  isPromoted?: boolean | undefined;
76
76
  price?: number | null | undefined;
77
- secondaryCategory?: import("../../shared").Category | null | undefined;
77
+ secondaryCategory?: import('../../shared').Category | null | undefined;
78
78
  thumbnailUrl?: string | null | undefined;
79
79
  ticketsUrl?: string | null | undefined;
80
80
  organizers?: {
@@ -83,8 +83,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
83
83
  name: string;
84
84
  }[] | undefined;
85
85
  }, {
86
- regions?: import("../../shared").Region[] | undefined;
87
- category?: import("../../shared").Category | undefined;
86
+ regions?: import('../../shared').Region[] | undefined;
87
+ category?: import('../../shared').Category | undefined;
88
88
  startTime?: string | undefined;
89
89
  createdAt?: string | undefined;
90
90
  id?: string | undefined;
@@ -108,7 +108,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
108
108
  isPriceRange?: boolean | undefined;
109
109
  isPromoted?: boolean | undefined;
110
110
  price?: number | null | undefined;
111
- secondaryCategory?: import("../../shared").Category | null | undefined;
111
+ secondaryCategory?: import('../../shared').Category | null | undefined;
112
112
  thumbnailUrl?: string | null | undefined;
113
113
  ticketsUrl?: string | null | undefined;
114
114
  organizers?: {
@@ -125,8 +125,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
125
125
  userId: string;
126
126
  organizersNames: string[];
127
127
  partialEventState: {
128
- regions?: import("../../shared").Region[] | undefined;
129
- category?: import("../../shared").Category | undefined;
128
+ regions?: import('../../shared').Region[] | undefined;
129
+ category?: import('../../shared').Category | undefined;
130
130
  startTime?: string | undefined;
131
131
  createdAt?: string | undefined;
132
132
  id?: (string & z.BRAND<"EventId">) | undefined;
@@ -150,7 +150,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
150
150
  isPriceRange?: boolean | undefined;
151
151
  isPromoted?: boolean | undefined;
152
152
  price?: number | null | undefined;
153
- secondaryCategory?: import("../../shared").Category | null | undefined;
153
+ secondaryCategory?: import('../../shared').Category | null | undefined;
154
154
  thumbnailUrl?: string | null | undefined;
155
155
  ticketsUrl?: string | null | undefined;
156
156
  organizers?: {
@@ -165,8 +165,8 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
165
165
  userId: string;
166
166
  organizersNames: string[];
167
167
  partialEventState: {
168
- regions?: import("../../shared").Region[] | undefined;
169
- category?: import("../../shared").Category | undefined;
168
+ regions?: import('../../shared').Region[] | undefined;
169
+ category?: import('../../shared').Category | undefined;
170
170
  startTime?: string | undefined;
171
171
  createdAt?: string | undefined;
172
172
  id?: string | undefined;
@@ -190,7 +190,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
190
190
  isPriceRange?: boolean | undefined;
191
191
  isPromoted?: boolean | undefined;
192
192
  price?: number | null | undefined;
193
- secondaryCategory?: import("../../shared").Category | null | undefined;
193
+ secondaryCategory?: import('../../shared').Category | null | undefined;
194
194
  thumbnailUrl?: string | null | undefined;
195
195
  ticketsUrl?: string | null | undefined;
196
196
  organizers?: {
@@ -4254,6 +4254,10 @@ const FileUploadDTOSchema = z.object({
4254
4254
  publicUrl: URLSchema,
4255
4255
  uploadUrl: URLSchema
4256
4256
  });
4257
+ const GPSCoordinatesSchema = z.object({
4258
+ latitude: z.number(),
4259
+ longitude: z.number()
4260
+ });
4257
4261
  const EventDTOSchema = z.object({
4258
4262
  adress: StringSchema,
4259
4263
  capacity: SafeNonNegativeIntegerSchema.nullable(),
@@ -4262,6 +4266,7 @@ const EventDTOSchema = z.object({
4262
4266
  description: StringSchema,
4263
4267
  externalSourceId: StringSchema.nullable(),
4264
4268
  finishTime: z.string().datetime().nullable(),
4269
+ gpsCoordinates: GPSCoordinatesSchema,
4265
4270
  hasHandicapAccess: z.boolean().nullable(),
4266
4271
  id: EventIdSchema,
4267
4272
  imageBlurHashes: StringSchema.array(),
@@ -4378,9 +4383,11 @@ const AdStatDTOSchema = z.object({
4378
4383
  adTitle: StringSchema,
4379
4384
  pressedCount: z.number()
4380
4385
  });
4386
+ const EventStatisticsDTOSchema = z.object({
4387
+ openedCount: SafeNonNegativeIntegerSchema
4388
+ });
4381
4389
  const GlobalStatsDTOSchema = z.object({
4382
4390
  allAdsStats: AdStatDTOSchema.array(),
4383
- currentFavoritesCount: z.number(),
4384
4391
  eventsCount: z.number(),
4385
4392
  openedEventsCount: z.number(),
4386
4393
  presentOrFutureEventsCount: z.number(),
@@ -4389,7 +4396,9 @@ const GlobalStatsDTOSchema = z.object({
4389
4396
  topUpcomingAddedToFavoritesEvents: TopEventDTOSchema.array(),
4390
4397
  topUpcomingViewedEvents: TopEventDTOSchema.array(),
4391
4398
  topViewedEvents: TopEventDTOSchema.array(),
4399
+ totalAddedToCalendar: z.number(),
4392
4400
  totalFavoritesCount: z.number(),
4401
+ totalShared: z.number(),
4393
4402
  usersCount: z.number(),
4394
4403
  usersWithMultipleDayAppOpened: z.number()
4395
4404
  });
@@ -4409,7 +4418,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4409
4418
  DisplayEventDTOSchema,
4410
4419
  EventDTOSchema,
4411
4420
  EventFileUploadDTOSchema,
4421
+ EventStatisticsDTOSchema,
4412
4422
  FileUploadDTOSchema,
4423
+ GPSCoordinatesSchema,
4413
4424
  GlobalStatsDTOSchema,
4414
4425
  ImportDTOSchema,
4415
4426
  ImportFromUrlDTOSchema,
@@ -4252,6 +4252,10 @@ const FileUploadDTOSchema = z.object({
4252
4252
  publicUrl: URLSchema,
4253
4253
  uploadUrl: URLSchema
4254
4254
  });
4255
+ const GPSCoordinatesSchema = z.object({
4256
+ latitude: z.number(),
4257
+ longitude: z.number()
4258
+ });
4255
4259
  const EventDTOSchema = z.object({
4256
4260
  adress: StringSchema,
4257
4261
  capacity: SafeNonNegativeIntegerSchema.nullable(),
@@ -4260,6 +4264,7 @@ const EventDTOSchema = z.object({
4260
4264
  description: StringSchema,
4261
4265
  externalSourceId: StringSchema.nullable(),
4262
4266
  finishTime: z.string().datetime().nullable(),
4267
+ gpsCoordinates: GPSCoordinatesSchema,
4263
4268
  hasHandicapAccess: z.boolean().nullable(),
4264
4269
  id: EventIdSchema,
4265
4270
  imageBlurHashes: StringSchema.array(),
@@ -4376,9 +4381,11 @@ const AdStatDTOSchema = z.object({
4376
4381
  adTitle: StringSchema,
4377
4382
  pressedCount: z.number()
4378
4383
  });
4384
+ const EventStatisticsDTOSchema = z.object({
4385
+ openedCount: SafeNonNegativeIntegerSchema
4386
+ });
4379
4387
  const GlobalStatsDTOSchema = z.object({
4380
4388
  allAdsStats: AdStatDTOSchema.array(),
4381
- currentFavoritesCount: z.number(),
4382
4389
  eventsCount: z.number(),
4383
4390
  openedEventsCount: z.number(),
4384
4391
  presentOrFutureEventsCount: z.number(),
@@ -4387,7 +4394,9 @@ const GlobalStatsDTOSchema = z.object({
4387
4394
  topUpcomingAddedToFavoritesEvents: TopEventDTOSchema.array(),
4388
4395
  topUpcomingViewedEvents: TopEventDTOSchema.array(),
4389
4396
  topViewedEvents: TopEventDTOSchema.array(),
4397
+ totalAddedToCalendar: z.number(),
4390
4398
  totalFavoritesCount: z.number(),
4399
+ totalShared: z.number(),
4391
4400
  usersCount: z.number(),
4392
4401
  usersWithMultipleDayAppOpened: z.number()
4393
4402
  });
@@ -4407,7 +4416,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4407
4416
  DisplayEventDTOSchema,
4408
4417
  EventDTOSchema,
4409
4418
  EventFileUploadDTOSchema,
4419
+ EventStatisticsDTOSchema,
4410
4420
  FileUploadDTOSchema,
4421
+ GPSCoordinatesSchema,
4411
4422
  GlobalStatsDTOSchema,
4412
4423
  ImportDTOSchema,
4413
4424
  ImportFromUrlDTOSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",