@sortipei/api-contracts 0.1.22 → 0.1.24

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.
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const AppConfigurationDTOSchema: z.ZodObject<{
3
+ isInfoMessageEnabled: z.ZodBoolean;
4
+ infoMessageContent: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ isInfoMessageEnabled: boolean;
7
+ infoMessageContent: string;
8
+ }, {
9
+ isInfoMessageEnabled: boolean;
10
+ infoMessageContent: string;
11
+ }>;
12
+ export declare const UpdateAppConfigurationDTOSchema: z.ZodObject<{
13
+ isInfoMessageEnabled: z.ZodBoolean;
14
+ infoMessageContent: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ isInfoMessageEnabled: boolean;
17
+ infoMessageContent: string;
18
+ }, {
19
+ isInfoMessageEnabled: boolean;
20
+ infoMessageContent: string;
21
+ }>;
22
+ export type AppConfigurationDTO = z.infer<typeof AppConfigurationDTOSchema>;
23
+ export type UpdateAppConfigurationDTO = z.infer<typeof UpdateAppConfigurationDTOSchema>;
24
+ //# sourceMappingURL=app-configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-configuration.d.ts","sourceRoot":"","sources":["../../../src/V1/api/app-configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;EAG1C,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
@@ -3,6 +3,7 @@ export declare const EventDTOSchema: z.ZodObject<{
3
3
  adress: z.ZodString;
4
4
  capacity: z.ZodNullable<z.ZodNumber>;
5
5
  category: z.ZodNativeEnum<typeof import('../../shared').Category>;
6
+ createdAt: z.ZodString;
6
7
  description: z.ZodString;
7
8
  finishTime: z.ZodNullable<z.ZodString>;
8
9
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
@@ -17,6 +18,7 @@ export declare const EventDTOSchema: z.ZodObject<{
17
18
  startTime: z.ZodString;
18
19
  title: z.ZodString;
19
20
  thumbnailUrl: z.ZodNullable<z.ZodString>;
21
+ ticketsUrl: z.ZodNullable<z.ZodString>;
20
22
  organizers: z.ZodArray<z.ZodObject<{
21
23
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
22
24
  name: z.ZodString;
@@ -34,6 +36,7 @@ export declare const EventDTOSchema: z.ZodObject<{
34
36
  adress: string;
35
37
  capacity: number | null;
36
38
  category: import('../../shared').Category;
39
+ createdAt: string;
37
40
  description: string;
38
41
  finishTime: string | null;
39
42
  hasHandicapAccess: boolean | null;
@@ -48,6 +51,7 @@ export declare const EventDTOSchema: z.ZodObject<{
48
51
  startTime: string;
49
52
  title: string;
50
53
  thumbnailUrl: string | null;
54
+ ticketsUrl: string | null;
51
55
  organizers: {
52
56
  id: string & z.BRAND<"OrganizerId">;
53
57
  name: string;
@@ -57,6 +61,7 @@ export declare const EventDTOSchema: z.ZodObject<{
57
61
  adress: string;
58
62
  capacity: number | null;
59
63
  category: import('../../shared').Category;
64
+ createdAt: string;
60
65
  description: string;
61
66
  finishTime: string | null;
62
67
  hasHandicapAccess: boolean | null;
@@ -71,6 +76,7 @@ export declare const EventDTOSchema: z.ZodObject<{
71
76
  startTime: string;
72
77
  title: string;
73
78
  thumbnailUrl: string | null;
79
+ ticketsUrl: string | null;
74
80
  organizers: {
75
81
  id: string;
76
82
  name: string;
@@ -95,6 +101,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
95
101
  startTime: z.ZodString;
96
102
  title: z.ZodString;
97
103
  thumbnailUrl: z.ZodNullable<z.ZodString>;
104
+ ticketsUrl: z.ZodNullable<z.ZodString>;
98
105
  }, "strip", z.ZodTypeAny, {
99
106
  adress: string;
100
107
  capacity: number | null;
@@ -112,6 +119,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
112
119
  startTime: string;
113
120
  title: string;
114
121
  thumbnailUrl: string | null;
122
+ ticketsUrl: string | null;
115
123
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
116
124
  }, {
117
125
  adress: string;
@@ -130,6 +138,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
130
138
  startTime: string;
131
139
  title: string;
132
140
  thumbnailUrl: string | null;
141
+ ticketsUrl: string | null;
133
142
  organizersIds: string[];
134
143
  }>;
135
144
  export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
@@ -150,6 +159,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
150
159
  startTime: z.ZodString;
151
160
  title: z.ZodString;
152
161
  thumbnailUrl: z.ZodNullable<z.ZodString>;
162
+ ticketsUrl: z.ZodNullable<z.ZodString>;
153
163
  }, "id">, "strip", z.ZodTypeAny, {
154
164
  adress: string;
155
165
  capacity: number | null;
@@ -166,6 +176,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
166
176
  startTime: string;
167
177
  title: string;
168
178
  thumbnailUrl: string | null;
179
+ ticketsUrl: string | null;
169
180
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
170
181
  }, {
171
182
  adress: string;
@@ -183,6 +194,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
183
194
  startTime: string;
184
195
  title: string;
185
196
  thumbnailUrl: string | null;
197
+ ticketsUrl: string | null;
186
198
  organizersIds: string[];
187
199
  }>;
188
200
  export declare const DisplayEventDTOSchema: z.ZodObject<{
@@ -226,6 +238,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
226
238
  adress: z.ZodOptional<z.ZodString>;
227
239
  capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
228
240
  category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
241
+ createdAt: z.ZodOptional<z.ZodString>;
229
242
  description: z.ZodOptional<z.ZodString>;
230
243
  finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
244
  hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -240,6 +253,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
240
253
  startTime: z.ZodOptional<z.ZodString>;
241
254
  title: z.ZodOptional<z.ZodString>;
242
255
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
243
257
  organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
244
258
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
245
259
  name: z.ZodString;
@@ -257,6 +271,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
257
271
  adress?: string | undefined;
258
272
  capacity?: number | null | undefined;
259
273
  category?: import('../../shared').Category | undefined;
274
+ createdAt?: string | undefined;
260
275
  description?: string | undefined;
261
276
  finishTime?: string | null | undefined;
262
277
  hasHandicapAccess?: boolean | null | undefined;
@@ -271,6 +286,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
271
286
  startTime?: string | undefined;
272
287
  title?: string | undefined;
273
288
  thumbnailUrl?: string | null | undefined;
289
+ ticketsUrl?: string | null | undefined;
274
290
  organizers?: {
275
291
  id: string & z.BRAND<"OrganizerId">;
276
292
  name: string;
@@ -280,6 +296,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
280
296
  adress?: string | undefined;
281
297
  capacity?: number | null | undefined;
282
298
  category?: import('../../shared').Category | undefined;
299
+ createdAt?: string | undefined;
283
300
  description?: string | undefined;
284
301
  finishTime?: string | null | undefined;
285
302
  hasHandicapAccess?: boolean | null | undefined;
@@ -294,22 +311,24 @@ export declare const ImportDTOSchema: z.ZodObject<{
294
311
  startTime?: string | undefined;
295
312
  title?: string | undefined;
296
313
  thumbnailUrl?: string | null | undefined;
314
+ ticketsUrl?: string | null | undefined;
297
315
  organizers?: {
298
316
  id: string;
299
317
  name: string;
300
318
  imageUrl: string | null;
301
319
  }[] | undefined;
302
320
  }>;
303
- source: z.ZodLiteral<"facebook">;
321
+ source: z.ZodUnion<[z.ZodLiteral<"facebook">, z.ZodLiteral<"website">]>;
304
322
  userId: z.ZodString;
305
323
  }, "strip", z.ZodTypeAny, {
306
- id: string;
307
324
  createdAt: string;
325
+ id: string;
308
326
  organizersNames: string[];
309
327
  partialEventState: {
310
328
  adress?: string | undefined;
311
329
  capacity?: number | null | undefined;
312
330
  category?: import('../../shared').Category | undefined;
331
+ createdAt?: string | undefined;
313
332
  description?: string | undefined;
314
333
  finishTime?: string | null | undefined;
315
334
  hasHandicapAccess?: boolean | null | undefined;
@@ -324,22 +343,24 @@ export declare const ImportDTOSchema: z.ZodObject<{
324
343
  startTime?: string | undefined;
325
344
  title?: string | undefined;
326
345
  thumbnailUrl?: string | null | undefined;
346
+ ticketsUrl?: string | null | undefined;
327
347
  organizers?: {
328
348
  id: string & z.BRAND<"OrganizerId">;
329
349
  name: string;
330
350
  imageUrl: string | null;
331
351
  }[] | undefined;
332
352
  };
333
- source: "facebook";
353
+ source: "facebook" | "website";
334
354
  userId: string;
335
355
  }, {
336
- id: string;
337
356
  createdAt: string;
357
+ id: string;
338
358
  organizersNames: string[];
339
359
  partialEventState: {
340
360
  adress?: string | undefined;
341
361
  capacity?: number | null | undefined;
342
362
  category?: import('../../shared').Category | undefined;
363
+ createdAt?: string | undefined;
343
364
  description?: string | undefined;
344
365
  finishTime?: string | null | undefined;
345
366
  hasHandicapAccess?: boolean | null | undefined;
@@ -354,13 +375,14 @@ export declare const ImportDTOSchema: z.ZodObject<{
354
375
  startTime?: string | undefined;
355
376
  title?: string | undefined;
356
377
  thumbnailUrl?: string | null | undefined;
378
+ ticketsUrl?: string | null | undefined;
357
379
  organizers?: {
358
380
  id: string;
359
381
  name: string;
360
382
  imageUrl: string | null;
361
383
  }[] | undefined;
362
384
  };
363
- source: "facebook";
385
+ source: "facebook" | "website";
364
386
  userId: string;
365
387
  }>;
366
388
  export type ImportDTO = z.infer<typeof ImportDTOSchema>;
@@ -405,4 +427,12 @@ export declare const EventFileUploadDTOSchema: z.ZodObject<{
405
427
  };
406
428
  }>;
407
429
  export type EventFileUploadDTO = z.infer<typeof EventFileUploadDTOSchema>;
430
+ export declare const ImportFromUrlDTOSchema: z.ZodObject<{
431
+ url: z.ZodString;
432
+ }, "strip", z.ZodTypeAny, {
433
+ url: string;
434
+ }, {
435
+ url: string;
436
+ }>;
437
+ export type ImportFromUrlDTO = z.infer<typeof ImportFromUrlDTOSchema>;
408
438
  //# sourceMappingURL=event.d.ts.map
@@ -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,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,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"}
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,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,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"}
@@ -1,6 +1,8 @@
1
+ export * from './app-configuration';
2
+ export * from './common';
1
3
  export * from './event';
2
4
  export * from './organizer';
3
- export * from './common';
5
+ export * from './statistics';
4
6
  export declare const constraints: {
5
7
  events: {
6
8
  adress: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AAKzB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAK7B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare const GlobalStatsDTOSchema: z.ZodObject<{
3
+ currentFavoritesCount: z.ZodNumber;
4
+ totalFavoritesCount: z.ZodNumber;
5
+ usersCount: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ currentFavoritesCount: number;
8
+ totalFavoritesCount: number;
9
+ usersCount: number;
10
+ }, {
11
+ currentFavoritesCount: number;
12
+ totalFavoritesCount: number;
13
+ usersCount: number;
14
+ }>;
15
+ export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
16
+ //# sourceMappingURL=statistics.d.ts.map
@@ -0,0 +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;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -4,6 +4,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
4
4
  adress: z.ZodOptional<z.ZodString>;
5
5
  capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
6
  category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
7
+ createdAt: z.ZodOptional<z.ZodString>;
7
8
  description: z.ZodOptional<z.ZodString>;
8
9
  finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
10
  hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -18,6 +19,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
18
19
  startTime: z.ZodOptional<z.ZodString>;
19
20
  title: z.ZodOptional<z.ZodString>;
20
21
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
22
24
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
23
25
  name: z.ZodString;
@@ -35,6 +37,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
35
37
  adress?: string | undefined;
36
38
  capacity?: number | null | undefined;
37
39
  category?: import('../../shared').Category | undefined;
40
+ createdAt?: string | undefined;
38
41
  description?: string | undefined;
39
42
  finishTime?: string | null | undefined;
40
43
  hasHandicapAccess?: boolean | null | undefined;
@@ -49,6 +52,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
49
52
  startTime?: string | undefined;
50
53
  title?: string | undefined;
51
54
  thumbnailUrl?: string | null | undefined;
55
+ ticketsUrl?: string | null | undefined;
52
56
  organizers?: {
53
57
  id: string & z.BRAND<"OrganizerId">;
54
58
  name: string;
@@ -58,6 +62,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
58
62
  adress?: string | undefined;
59
63
  capacity?: number | null | undefined;
60
64
  category?: import('../../shared').Category | undefined;
65
+ createdAt?: string | undefined;
61
66
  description?: string | undefined;
62
67
  finishTime?: string | null | undefined;
63
68
  hasHandicapAccess?: boolean | null | undefined;
@@ -72,6 +77,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
72
77
  startTime?: string | undefined;
73
78
  title?: string | undefined;
74
79
  thumbnailUrl?: string | null | undefined;
80
+ ticketsUrl?: string | null | undefined;
75
81
  organizers?: {
76
82
  id: string;
77
83
  name: string;
@@ -81,13 +87,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
81
87
  token: z.ZodString;
82
88
  userId: z.ZodString;
83
89
  organizersNames: z.ZodArray<z.ZodString, "many">;
84
- source: z.ZodLiteral<"facebook">;
90
+ source: z.ZodUnion<[z.ZodLiteral<"facebook">, z.ZodLiteral<"website">]>;
85
91
  }, "strip", z.ZodTypeAny, {
86
92
  organizersNames: string[];
87
93
  partialEventState: {
88
94
  adress?: string | undefined;
89
95
  capacity?: number | null | undefined;
90
96
  category?: import('../../shared').Category | undefined;
97
+ createdAt?: string | undefined;
91
98
  description?: string | undefined;
92
99
  finishTime?: string | null | undefined;
93
100
  hasHandicapAccess?: boolean | null | undefined;
@@ -102,13 +109,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
102
109
  startTime?: string | undefined;
103
110
  title?: string | undefined;
104
111
  thumbnailUrl?: string | null | undefined;
112
+ ticketsUrl?: string | null | undefined;
105
113
  organizers?: {
106
114
  id: string & z.BRAND<"OrganizerId">;
107
115
  name: string;
108
116
  imageUrl: string | null;
109
117
  }[] | undefined;
110
118
  };
111
- source: "facebook";
119
+ source: "facebook" | "website";
112
120
  userId: string;
113
121
  token: string;
114
122
  }, {
@@ -117,6 +125,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
117
125
  adress?: string | undefined;
118
126
  capacity?: number | null | undefined;
119
127
  category?: import('../../shared').Category | undefined;
128
+ createdAt?: string | undefined;
120
129
  description?: string | undefined;
121
130
  finishTime?: string | null | undefined;
122
131
  hasHandicapAccess?: boolean | null | undefined;
@@ -131,13 +140,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
131
140
  startTime?: string | undefined;
132
141
  title?: string | undefined;
133
142
  thumbnailUrl?: string | null | undefined;
143
+ ticketsUrl?: string | null | undefined;
134
144
  organizers?: {
135
145
  id: string;
136
146
  name: string;
137
147
  imageUrl: string | null;
138
148
  }[] | undefined;
139
149
  };
140
- source: "facebook";
150
+ source: "facebook" | "website";
141
151
  userId: string;
142
152
  token: string;
143
153
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -4082,6 +4082,14 @@ const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
4082
4082
  const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(id);
4083
4083
  const UserIdSchema = UUIDSchema.brand("UserId");
4084
4084
  const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
4085
+ const AppConfigurationDTOSchema = z.object({
4086
+ isInfoMessageEnabled: z.boolean(),
4087
+ infoMessageContent: StringSchema
4088
+ });
4089
+ const UpdateAppConfigurationDTOSchema = z.object({
4090
+ isInfoMessageEnabled: z.boolean(),
4091
+ infoMessageContent: StringSchema
4092
+ });
4085
4093
  const FileUploadDTOSchema = z.object({
4086
4094
  publicUrl: URLSchema,
4087
4095
  uploadUrl: URLSchema
@@ -4090,6 +4098,7 @@ const EventDTOSchema = z.object({
4090
4098
  adress: StringSchema,
4091
4099
  capacity: SafeNonNegativeIntegerSchema.nullable(),
4092
4100
  category: CategorySchema,
4101
+ createdAt: z.string().datetime(),
4093
4102
  description: StringSchema,
4094
4103
  finishTime: z.string().datetime().nullable(),
4095
4104
  hasHandicapAccess: z.boolean().nullable(),
@@ -4104,6 +4113,7 @@ const EventDTOSchema = z.object({
4104
4113
  startTime: z.string().datetime(),
4105
4114
  title: StringSchema,
4106
4115
  thumbnailUrl: URLSchema.nullable(),
4116
+ ticketsUrl: URLSchema.nullable(),
4107
4117
  organizers: z.object({
4108
4118
  id: OrganizerIdSchema,
4109
4119
  name: StringSchema,
@@ -4127,7 +4137,8 @@ const CreateEventDTOSchema = z.object({
4127
4137
  regions: RegionSchema.array(),
4128
4138
  startTime: z.string().datetime(),
4129
4139
  title: StringSchema,
4130
- thumbnailUrl: URLSchema.nullable()
4140
+ thumbnailUrl: URLSchema.nullable(),
4141
+ ticketsUrl: URLSchema.nullable()
4131
4142
  });
4132
4143
  const UpdateEventDTOSchema = CreateEventDTOSchema.omit({
4133
4144
  id: true
@@ -4157,13 +4168,16 @@ const ImportDTOSchema = z.object({
4157
4168
  id: StringSchema,
4158
4169
  organizersNames: StringSchema.array(),
4159
4170
  partialEventState: EventDTOSchema.partial(),
4160
- source: z.literal("facebook"),
4171
+ source: z.union([z.literal("facebook"), z.literal("website")]),
4161
4172
  userId: StringSchema
4162
4173
  });
4163
4174
  const EventFileUploadDTOSchema = z.object({
4164
4175
  imageUploadUrls: FileUploadDTOSchema.array(),
4165
4176
  thumbnailUploadUrl: FileUploadDTOSchema
4166
4177
  });
4178
+ const ImportFromUrlDTOSchema = z.object({
4179
+ url: URLSchema
4180
+ });
4167
4181
  const OrganizerDTOSchema = z.object({
4168
4182
  eventsIds: EventIdSchema.array(),
4169
4183
  id: OrganizerIdSchema,
@@ -4184,21 +4198,30 @@ const constraints$1 = {
4184
4198
  maxLength: 100
4185
4199
  }
4186
4200
  };
4201
+ const GlobalStatsDTOSchema = z.object({
4202
+ currentFavoritesCount: z.number(),
4203
+ totalFavoritesCount: z.number(),
4204
+ usersCount: z.number()
4205
+ });
4187
4206
  const constraints = {
4188
4207
  events: constraints$2,
4189
4208
  organizers: constraints$1
4190
4209
  };
4191
4210
  const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4192
4211
  __proto__: null,
4212
+ AppConfigurationDTOSchema,
4193
4213
  CreateEventDTOSchema,
4194
4214
  CreateOrganizerDTOSchema,
4195
4215
  DisplayEventDTOSchema,
4196
4216
  EventDTOSchema,
4197
4217
  EventFileUploadDTOSchema,
4198
4218
  FileUploadDTOSchema,
4219
+ GlobalStatsDTOSchema,
4199
4220
  ImportDTOSchema,
4221
+ ImportFromUrlDTOSchema,
4200
4222
  OrganizerDTOSchema,
4201
4223
  PromoteEventDTOSchema,
4224
+ UpdateAppConfigurationDTOSchema,
4202
4225
  UpdateEventDTOSchema,
4203
4226
  UpdateOrganizerDTOSchema,
4204
4227
  constraints
@@ -4208,7 +4231,7 @@ const CreatePartialImportedEventDTOSchema = z.object({
4208
4231
  token: StringSchema,
4209
4232
  userId: StringSchema,
4210
4233
  organizersNames: StringSchema.array(),
4211
- source: z.literal("facebook")
4234
+ source: z.union([z.literal("facebook"), z.literal("website")])
4212
4235
  });
4213
4236
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4214
4237
  __proto__: null,
@@ -4080,6 +4080,14 @@ const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
4080
4080
  const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(id);
4081
4081
  const UserIdSchema = UUIDSchema.brand("UserId");
4082
4082
  const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
4083
+ const AppConfigurationDTOSchema = z.object({
4084
+ isInfoMessageEnabled: z.boolean(),
4085
+ infoMessageContent: StringSchema
4086
+ });
4087
+ const UpdateAppConfigurationDTOSchema = z.object({
4088
+ isInfoMessageEnabled: z.boolean(),
4089
+ infoMessageContent: StringSchema
4090
+ });
4083
4091
  const FileUploadDTOSchema = z.object({
4084
4092
  publicUrl: URLSchema,
4085
4093
  uploadUrl: URLSchema
@@ -4088,6 +4096,7 @@ const EventDTOSchema = z.object({
4088
4096
  adress: StringSchema,
4089
4097
  capacity: SafeNonNegativeIntegerSchema.nullable(),
4090
4098
  category: CategorySchema,
4099
+ createdAt: z.string().datetime(),
4091
4100
  description: StringSchema,
4092
4101
  finishTime: z.string().datetime().nullable(),
4093
4102
  hasHandicapAccess: z.boolean().nullable(),
@@ -4102,6 +4111,7 @@ const EventDTOSchema = z.object({
4102
4111
  startTime: z.string().datetime(),
4103
4112
  title: StringSchema,
4104
4113
  thumbnailUrl: URLSchema.nullable(),
4114
+ ticketsUrl: URLSchema.nullable(),
4105
4115
  organizers: z.object({
4106
4116
  id: OrganizerIdSchema,
4107
4117
  name: StringSchema,
@@ -4125,7 +4135,8 @@ const CreateEventDTOSchema = z.object({
4125
4135
  regions: RegionSchema.array(),
4126
4136
  startTime: z.string().datetime(),
4127
4137
  title: StringSchema,
4128
- thumbnailUrl: URLSchema.nullable()
4138
+ thumbnailUrl: URLSchema.nullable(),
4139
+ ticketsUrl: URLSchema.nullable()
4129
4140
  });
4130
4141
  const UpdateEventDTOSchema = CreateEventDTOSchema.omit({
4131
4142
  id: true
@@ -4155,13 +4166,16 @@ const ImportDTOSchema = z.object({
4155
4166
  id: StringSchema,
4156
4167
  organizersNames: StringSchema.array(),
4157
4168
  partialEventState: EventDTOSchema.partial(),
4158
- source: z.literal("facebook"),
4169
+ source: z.union([z.literal("facebook"), z.literal("website")]),
4159
4170
  userId: StringSchema
4160
4171
  });
4161
4172
  const EventFileUploadDTOSchema = z.object({
4162
4173
  imageUploadUrls: FileUploadDTOSchema.array(),
4163
4174
  thumbnailUploadUrl: FileUploadDTOSchema
4164
4175
  });
4176
+ const ImportFromUrlDTOSchema = z.object({
4177
+ url: URLSchema
4178
+ });
4165
4179
  const OrganizerDTOSchema = z.object({
4166
4180
  eventsIds: EventIdSchema.array(),
4167
4181
  id: OrganizerIdSchema,
@@ -4182,21 +4196,30 @@ const constraints$1 = {
4182
4196
  maxLength: 100
4183
4197
  }
4184
4198
  };
4199
+ const GlobalStatsDTOSchema = z.object({
4200
+ currentFavoritesCount: z.number(),
4201
+ totalFavoritesCount: z.number(),
4202
+ usersCount: z.number()
4203
+ });
4185
4204
  const constraints = {
4186
4205
  events: constraints$2,
4187
4206
  organizers: constraints$1
4188
4207
  };
4189
4208
  const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4190
4209
  __proto__: null,
4210
+ AppConfigurationDTOSchema,
4191
4211
  CreateEventDTOSchema,
4192
4212
  CreateOrganizerDTOSchema,
4193
4213
  DisplayEventDTOSchema,
4194
4214
  EventDTOSchema,
4195
4215
  EventFileUploadDTOSchema,
4196
4216
  FileUploadDTOSchema,
4217
+ GlobalStatsDTOSchema,
4197
4218
  ImportDTOSchema,
4219
+ ImportFromUrlDTOSchema,
4198
4220
  OrganizerDTOSchema,
4199
4221
  PromoteEventDTOSchema,
4222
+ UpdateAppConfigurationDTOSchema,
4200
4223
  UpdateEventDTOSchema,
4201
4224
  UpdateOrganizerDTOSchema,
4202
4225
  constraints
@@ -4206,7 +4229,7 @@ const CreatePartialImportedEventDTOSchema = z.object({
4206
4229
  token: StringSchema,
4207
4230
  userId: StringSchema,
4208
4231
  organizersNames: StringSchema.array(),
4209
- source: z.literal("facebook")
4232
+ source: z.union([z.literal("facebook"), z.literal("website")])
4210
4233
  });
4211
4234
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4212
4235
  __proto__: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",