@sortipei/api-contracts 0.1.23 → 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.
@@ -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,C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,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -2,6 +2,7 @@ export * from './app-configuration';
2
2
  export * from './common';
3
3
  export * from './event';
4
4
  export * from './organizer';
5
+ export * from './statistics';
5
6
  export declare const constraints: {
6
7
  events: {
7
8
  adress: {
@@ -1 +1 @@
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;AAK5B,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"}
@@ -4098,6 +4098,7 @@ const EventDTOSchema = z.object({
4098
4098
  adress: StringSchema,
4099
4099
  capacity: SafeNonNegativeIntegerSchema.nullable(),
4100
4100
  category: CategorySchema,
4101
+ createdAt: z.string().datetime(),
4101
4102
  description: StringSchema,
4102
4103
  finishTime: z.string().datetime().nullable(),
4103
4104
  hasHandicapAccess: z.boolean().nullable(),
@@ -4112,6 +4113,7 @@ const EventDTOSchema = z.object({
4112
4113
  startTime: z.string().datetime(),
4113
4114
  title: StringSchema,
4114
4115
  thumbnailUrl: URLSchema.nullable(),
4116
+ ticketsUrl: URLSchema.nullable(),
4115
4117
  organizers: z.object({
4116
4118
  id: OrganizerIdSchema,
4117
4119
  name: StringSchema,
@@ -4135,7 +4137,8 @@ const CreateEventDTOSchema = z.object({
4135
4137
  regions: RegionSchema.array(),
4136
4138
  startTime: z.string().datetime(),
4137
4139
  title: StringSchema,
4138
- thumbnailUrl: URLSchema.nullable()
4140
+ thumbnailUrl: URLSchema.nullable(),
4141
+ ticketsUrl: URLSchema.nullable()
4139
4142
  });
4140
4143
  const UpdateEventDTOSchema = CreateEventDTOSchema.omit({
4141
4144
  id: true
@@ -4165,13 +4168,16 @@ const ImportDTOSchema = z.object({
4165
4168
  id: StringSchema,
4166
4169
  organizersNames: StringSchema.array(),
4167
4170
  partialEventState: EventDTOSchema.partial(),
4168
- source: z.literal("facebook"),
4171
+ source: z.union([z.literal("facebook"), z.literal("website")]),
4169
4172
  userId: StringSchema
4170
4173
  });
4171
4174
  const EventFileUploadDTOSchema = z.object({
4172
4175
  imageUploadUrls: FileUploadDTOSchema.array(),
4173
4176
  thumbnailUploadUrl: FileUploadDTOSchema
4174
4177
  });
4178
+ const ImportFromUrlDTOSchema = z.object({
4179
+ url: URLSchema
4180
+ });
4175
4181
  const OrganizerDTOSchema = z.object({
4176
4182
  eventsIds: EventIdSchema.array(),
4177
4183
  id: OrganizerIdSchema,
@@ -4192,6 +4198,11 @@ const constraints$1 = {
4192
4198
  maxLength: 100
4193
4199
  }
4194
4200
  };
4201
+ const GlobalStatsDTOSchema = z.object({
4202
+ currentFavoritesCount: z.number(),
4203
+ totalFavoritesCount: z.number(),
4204
+ usersCount: z.number()
4205
+ });
4195
4206
  const constraints = {
4196
4207
  events: constraints$2,
4197
4208
  organizers: constraints$1
@@ -4205,7 +4216,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4205
4216
  EventDTOSchema,
4206
4217
  EventFileUploadDTOSchema,
4207
4218
  FileUploadDTOSchema,
4219
+ GlobalStatsDTOSchema,
4208
4220
  ImportDTOSchema,
4221
+ ImportFromUrlDTOSchema,
4209
4222
  OrganizerDTOSchema,
4210
4223
  PromoteEventDTOSchema,
4211
4224
  UpdateAppConfigurationDTOSchema,
@@ -4218,7 +4231,7 @@ const CreatePartialImportedEventDTOSchema = z.object({
4218
4231
  token: StringSchema,
4219
4232
  userId: StringSchema,
4220
4233
  organizersNames: StringSchema.array(),
4221
- source: z.literal("facebook")
4234
+ source: z.union([z.literal("facebook"), z.literal("website")])
4222
4235
  });
4223
4236
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4224
4237
  __proto__: null,
@@ -4096,6 +4096,7 @@ const EventDTOSchema = z.object({
4096
4096
  adress: StringSchema,
4097
4097
  capacity: SafeNonNegativeIntegerSchema.nullable(),
4098
4098
  category: CategorySchema,
4099
+ createdAt: z.string().datetime(),
4099
4100
  description: StringSchema,
4100
4101
  finishTime: z.string().datetime().nullable(),
4101
4102
  hasHandicapAccess: z.boolean().nullable(),
@@ -4110,6 +4111,7 @@ const EventDTOSchema = z.object({
4110
4111
  startTime: z.string().datetime(),
4111
4112
  title: StringSchema,
4112
4113
  thumbnailUrl: URLSchema.nullable(),
4114
+ ticketsUrl: URLSchema.nullable(),
4113
4115
  organizers: z.object({
4114
4116
  id: OrganizerIdSchema,
4115
4117
  name: StringSchema,
@@ -4133,7 +4135,8 @@ const CreateEventDTOSchema = z.object({
4133
4135
  regions: RegionSchema.array(),
4134
4136
  startTime: z.string().datetime(),
4135
4137
  title: StringSchema,
4136
- thumbnailUrl: URLSchema.nullable()
4138
+ thumbnailUrl: URLSchema.nullable(),
4139
+ ticketsUrl: URLSchema.nullable()
4137
4140
  });
4138
4141
  const UpdateEventDTOSchema = CreateEventDTOSchema.omit({
4139
4142
  id: true
@@ -4163,13 +4166,16 @@ const ImportDTOSchema = z.object({
4163
4166
  id: StringSchema,
4164
4167
  organizersNames: StringSchema.array(),
4165
4168
  partialEventState: EventDTOSchema.partial(),
4166
- source: z.literal("facebook"),
4169
+ source: z.union([z.literal("facebook"), z.literal("website")]),
4167
4170
  userId: StringSchema
4168
4171
  });
4169
4172
  const EventFileUploadDTOSchema = z.object({
4170
4173
  imageUploadUrls: FileUploadDTOSchema.array(),
4171
4174
  thumbnailUploadUrl: FileUploadDTOSchema
4172
4175
  });
4176
+ const ImportFromUrlDTOSchema = z.object({
4177
+ url: URLSchema
4178
+ });
4173
4179
  const OrganizerDTOSchema = z.object({
4174
4180
  eventsIds: EventIdSchema.array(),
4175
4181
  id: OrganizerIdSchema,
@@ -4190,6 +4196,11 @@ const constraints$1 = {
4190
4196
  maxLength: 100
4191
4197
  }
4192
4198
  };
4199
+ const GlobalStatsDTOSchema = z.object({
4200
+ currentFavoritesCount: z.number(),
4201
+ totalFavoritesCount: z.number(),
4202
+ usersCount: z.number()
4203
+ });
4193
4204
  const constraints = {
4194
4205
  events: constraints$2,
4195
4206
  organizers: constraints$1
@@ -4203,7 +4214,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4203
4214
  EventDTOSchema,
4204
4215
  EventFileUploadDTOSchema,
4205
4216
  FileUploadDTOSchema,
4217
+ GlobalStatsDTOSchema,
4206
4218
  ImportDTOSchema,
4219
+ ImportFromUrlDTOSchema,
4207
4220
  OrganizerDTOSchema,
4208
4221
  PromoteEventDTOSchema,
4209
4222
  UpdateAppConfigurationDTOSchema,
@@ -4216,7 +4229,7 @@ const CreatePartialImportedEventDTOSchema = z.object({
4216
4229
  token: StringSchema,
4217
4230
  userId: StringSchema,
4218
4231
  organizersNames: StringSchema.array(),
4219
- source: z.literal("facebook")
4232
+ source: z.union([z.literal("facebook"), z.literal("website")])
4220
4233
  });
4221
4234
  const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4222
4235
  __proto__: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",