@sortipei/api-contracts 0.1.29 → 0.1.30

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.
@@ -45,6 +45,60 @@ export declare const UpdateMainAdDTOSchema: z.ZodObject<Omit<{
45
45
  link: string | null;
46
46
  startTime: string;
47
47
  }>;
48
+ export declare const RegionalAdDTOSchema: z.ZodObject<{
49
+ createdAt: z.ZodString;
50
+ endTime: z.ZodString;
51
+ id: z.ZodBranded<z.ZodString, "RegionalAdId">;
52
+ imageUrl: z.ZodString;
53
+ isEnabled: z.ZodBoolean;
54
+ link: z.ZodNullable<z.ZodString>;
55
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
56
+ startTime: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ createdAt: string;
59
+ endTime: string;
60
+ id: string & z.BRAND<"RegionalAdId">;
61
+ imageUrl: string;
62
+ isEnabled: boolean;
63
+ link: string | null;
64
+ startTime: string;
65
+ regions: import('../../shared').Region[];
66
+ }, {
67
+ createdAt: string;
68
+ endTime: string;
69
+ id: string;
70
+ imageUrl: string;
71
+ isEnabled: boolean;
72
+ link: string | null;
73
+ startTime: string;
74
+ regions: import('../../shared').Region[];
75
+ }>;
76
+ export declare const UpdateRegionalAdDTOSchema: z.ZodObject<Omit<{
77
+ createdAt: z.ZodString;
78
+ endTime: z.ZodString;
79
+ id: z.ZodBranded<z.ZodString, "RegionalAdId">;
80
+ imageUrl: z.ZodString;
81
+ isEnabled: z.ZodBoolean;
82
+ link: z.ZodNullable<z.ZodString>;
83
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
84
+ startTime: z.ZodString;
85
+ }, "createdAt" | "id">, "strip", z.ZodTypeAny, {
86
+ endTime: string;
87
+ imageUrl: string;
88
+ isEnabled: boolean;
89
+ link: string | null;
90
+ startTime: string;
91
+ regions: import('../../shared').Region[];
92
+ }, {
93
+ endTime: string;
94
+ imageUrl: string;
95
+ isEnabled: boolean;
96
+ link: string | null;
97
+ startTime: string;
98
+ regions: import('../../shared').Region[];
99
+ }>;
48
100
  export type MainAdDTO = z.infer<typeof MainAdDTOSchema>;
49
101
  export type UpdateMainAdDTO = z.infer<typeof UpdateMainAdDTOSchema>;
102
+ export type RegionalAdDTO = z.infer<typeof RegionalAdDTOSchema>;
103
+ export type UpdateRegionalAdDTO = z.infer<typeof UpdateRegionalAdDTOSchema>;
50
104
  //# sourceMappingURL=ad.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;EAQ1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;EAGhC,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"}
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;;;;;;;;;;;;;;;;;;;;;;;;EAQ1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,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"}
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const EventDTOSchema: z.ZodObject<{
3
3
  adress: z.ZodString;
4
4
  capacity: z.ZodNullable<z.ZodNumber>;
5
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
5
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
6
6
  createdAt: z.ZodString;
7
7
  description: z.ZodString;
8
8
  finishTime: z.ZodNullable<z.ZodString>;
@@ -15,7 +15,7 @@ export declare const EventDTOSchema: z.ZodObject<{
15
15
  isPriceRange: z.ZodBoolean;
16
16
  link: z.ZodNullable<z.ZodString>;
17
17
  price: z.ZodNullable<z.ZodNumber>;
18
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
18
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
19
19
  startTime: z.ZodString;
20
20
  title: z.ZodString;
21
21
  thumbnailUrl: z.ZodNullable<z.ZodString>;
@@ -34,11 +34,14 @@ export declare const EventDTOSchema: z.ZodObject<{
34
34
  name: string;
35
35
  }>, "many">;
36
36
  }, "strip", z.ZodTypeAny, {
37
+ createdAt: string;
37
38
  id: string & z.BRAND<"EventId">;
39
+ link: string | null;
40
+ startTime: string;
41
+ regions: import('../../shared').Region[];
38
42
  adress: string;
39
43
  capacity: number | null;
40
- category: import("../../shared").Category;
41
- createdAt: string;
44
+ category: import('../../shared').Category;
42
45
  description: string;
43
46
  finishTime: string | null;
44
47
  hasHandicapAccess: boolean | null;
@@ -47,10 +50,7 @@ export declare const EventDTOSchema: z.ZodObject<{
47
50
  isDisplayed: boolean;
48
51
  isPromoted: boolean;
49
52
  isPriceRange: boolean;
50
- link: string | null;
51
53
  price: number | null;
52
- regions: import("../../shared").Region[];
53
- startTime: string;
54
54
  title: string;
55
55
  thumbnailUrl: string | null;
56
56
  ticketsUrl: string | null;
@@ -60,11 +60,14 @@ export declare const EventDTOSchema: z.ZodObject<{
60
60
  name: string;
61
61
  }[];
62
62
  }, {
63
+ createdAt: string;
63
64
  id: string;
65
+ link: string | null;
66
+ startTime: string;
67
+ regions: import('../../shared').Region[];
64
68
  adress: string;
65
69
  capacity: number | null;
66
- category: import("../../shared").Category;
67
- createdAt: string;
70
+ category: import('../../shared').Category;
68
71
  description: string;
69
72
  finishTime: string | null;
70
73
  hasHandicapAccess: boolean | null;
@@ -73,10 +76,7 @@ export declare const EventDTOSchema: z.ZodObject<{
73
76
  isDisplayed: boolean;
74
77
  isPromoted: boolean;
75
78
  isPriceRange: boolean;
76
- link: string | null;
77
79
  price: number | null;
78
- regions: import("../../shared").Region[];
79
- startTime: string;
80
80
  title: string;
81
81
  thumbnailUrl: string | null;
82
82
  ticketsUrl: string | null;
@@ -89,7 +89,7 @@ export declare const EventDTOSchema: z.ZodObject<{
89
89
  export declare const CreateEventDTOSchema: z.ZodObject<{
90
90
  adress: z.ZodString;
91
91
  capacity: z.ZodNullable<z.ZodNumber>;
92
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
92
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
93
93
  description: z.ZodString;
94
94
  finishTime: z.ZodNullable<z.ZodString>;
95
95
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
@@ -101,16 +101,19 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
101
101
  link: z.ZodNullable<z.ZodString>;
102
102
  organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
103
103
  price: z.ZodNullable<z.ZodNumber>;
104
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
104
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
105
105
  startTime: z.ZodString;
106
106
  title: z.ZodString;
107
107
  thumbnailUrl: z.ZodNullable<z.ZodString>;
108
108
  ticketsUrl: z.ZodNullable<z.ZodString>;
109
109
  }, "strip", z.ZodTypeAny, {
110
110
  id: string & z.BRAND<"EventId">;
111
+ link: string | null;
112
+ startTime: string;
113
+ regions: import('../../shared').Region[];
111
114
  adress: string;
112
115
  capacity: number | null;
113
- category: import("../../shared").Category;
116
+ category: import('../../shared').Category;
114
117
  description: string;
115
118
  finishTime: string | null;
116
119
  hasHandicapAccess: boolean | null;
@@ -118,19 +121,19 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
118
121
  imageUrls: string[];
119
122
  isDisplayed: boolean;
120
123
  isPriceRange: boolean;
121
- link: string | null;
122
124
  price: number | null;
123
- regions: import("../../shared").Region[];
124
- startTime: string;
125
125
  title: string;
126
126
  thumbnailUrl: string | null;
127
127
  ticketsUrl: string | null;
128
128
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
129
129
  }, {
130
130
  id: string;
131
+ link: string | null;
132
+ startTime: string;
133
+ regions: import('../../shared').Region[];
131
134
  adress: string;
132
135
  capacity: number | null;
133
- category: import("../../shared").Category;
136
+ category: import('../../shared').Category;
134
137
  description: string;
135
138
  finishTime: string | null;
136
139
  hasHandicapAccess: boolean | null;
@@ -138,10 +141,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
138
141
  imageUrls: string[];
139
142
  isDisplayed: boolean;
140
143
  isPriceRange: boolean;
141
- link: string | null;
142
144
  price: number | null;
143
- regions: import("../../shared").Region[];
144
- startTime: string;
145
145
  title: string;
146
146
  thumbnailUrl: string | null;
147
147
  ticketsUrl: string | null;
@@ -150,7 +150,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
150
150
  export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
151
151
  adress: z.ZodString;
152
152
  capacity: z.ZodNullable<z.ZodNumber>;
153
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
153
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
154
154
  description: z.ZodString;
155
155
  finishTime: z.ZodNullable<z.ZodString>;
156
156
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
@@ -162,15 +162,18 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
162
162
  link: z.ZodNullable<z.ZodString>;
163
163
  organizersIds: z.ZodArray<z.ZodBranded<z.ZodString, "OrganizerId">, "many">;
164
164
  price: z.ZodNullable<z.ZodNumber>;
165
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
165
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
166
166
  startTime: z.ZodString;
167
167
  title: z.ZodString;
168
168
  thumbnailUrl: z.ZodNullable<z.ZodString>;
169
169
  ticketsUrl: z.ZodNullable<z.ZodString>;
170
170
  }, "id">, "strip", z.ZodTypeAny, {
171
+ link: string | null;
172
+ startTime: string;
173
+ regions: import('../../shared').Region[];
171
174
  adress: string;
172
175
  capacity: number | null;
173
- category: import("../../shared").Category;
176
+ category: import('../../shared').Category;
174
177
  description: string;
175
178
  finishTime: string | null;
176
179
  hasHandicapAccess: boolean | null;
@@ -178,18 +181,18 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
178
181
  imageUrls: string[];
179
182
  isDisplayed: boolean;
180
183
  isPriceRange: boolean;
181
- link: string | null;
182
184
  price: number | null;
183
- regions: import("../../shared").Region[];
184
- startTime: string;
185
185
  title: string;
186
186
  thumbnailUrl: string | null;
187
187
  ticketsUrl: string | null;
188
188
  organizersIds: (string & z.BRAND<"OrganizerId">)[];
189
189
  }, {
190
+ link: string | null;
191
+ startTime: string;
192
+ regions: import('../../shared').Region[];
190
193
  adress: string;
191
194
  capacity: number | null;
192
- category: import("../../shared").Category;
195
+ category: import('../../shared').Category;
193
196
  description: string;
194
197
  finishTime: string | null;
195
198
  hasHandicapAccess: boolean | null;
@@ -197,10 +200,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
197
200
  imageUrls: string[];
198
201
  isDisplayed: boolean;
199
202
  isPriceRange: boolean;
200
- link: string | null;
201
203
  price: number | null;
202
- regions: import("../../shared").Region[];
203
- startTime: string;
204
204
  title: string;
205
205
  thumbnailUrl: string | null;
206
206
  ticketsUrl: string | null;
@@ -246,7 +246,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
246
246
  partialEventState: z.ZodObject<{
247
247
  adress: z.ZodOptional<z.ZodString>;
248
248
  capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
249
- category: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").Category>>;
249
+ category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
250
250
  createdAt: z.ZodOptional<z.ZodString>;
251
251
  description: z.ZodOptional<z.ZodString>;
252
252
  finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -259,7 +259,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
259
259
  isPriceRange: z.ZodOptional<z.ZodBoolean>;
260
260
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
261
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
262
- regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
262
+ regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
263
263
  startTime: z.ZodOptional<z.ZodString>;
264
264
  title: z.ZodOptional<z.ZodString>;
265
265
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -278,11 +278,14 @@ export declare const ImportDTOSchema: z.ZodObject<{
278
278
  name: string;
279
279
  }>, "many">>;
280
280
  }, "strip", z.ZodTypeAny, {
281
+ createdAt?: string | undefined;
281
282
  id?: (string & z.BRAND<"EventId">) | undefined;
283
+ link?: string | null | undefined;
284
+ startTime?: string | undefined;
285
+ regions?: import('../../shared').Region[] | undefined;
282
286
  adress?: string | undefined;
283
287
  capacity?: number | null | undefined;
284
- category?: import("../../shared").Category | undefined;
285
- createdAt?: string | undefined;
288
+ category?: import('../../shared').Category | undefined;
286
289
  description?: string | undefined;
287
290
  finishTime?: string | null | undefined;
288
291
  hasHandicapAccess?: boolean | null | undefined;
@@ -291,10 +294,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
291
294
  isDisplayed?: boolean | undefined;
292
295
  isPromoted?: boolean | undefined;
293
296
  isPriceRange?: boolean | undefined;
294
- link?: string | null | undefined;
295
297
  price?: number | null | undefined;
296
- regions?: import("../../shared").Region[] | undefined;
297
- startTime?: string | undefined;
298
298
  title?: string | undefined;
299
299
  thumbnailUrl?: string | null | undefined;
300
300
  ticketsUrl?: string | null | undefined;
@@ -304,11 +304,14 @@ export declare const ImportDTOSchema: z.ZodObject<{
304
304
  name: string;
305
305
  }[] | undefined;
306
306
  }, {
307
+ createdAt?: string | undefined;
307
308
  id?: string | undefined;
309
+ link?: string | null | undefined;
310
+ startTime?: string | undefined;
311
+ regions?: import('../../shared').Region[] | undefined;
308
312
  adress?: string | undefined;
309
313
  capacity?: number | null | undefined;
310
- category?: import("../../shared").Category | undefined;
311
- createdAt?: string | undefined;
314
+ category?: import('../../shared').Category | undefined;
312
315
  description?: string | undefined;
313
316
  finishTime?: string | null | undefined;
314
317
  hasHandicapAccess?: boolean | null | undefined;
@@ -317,10 +320,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
317
320
  isDisplayed?: boolean | undefined;
318
321
  isPromoted?: boolean | undefined;
319
322
  isPriceRange?: boolean | undefined;
320
- link?: string | null | undefined;
321
323
  price?: number | null | undefined;
322
- regions?: import("../../shared").Region[] | undefined;
323
- startTime?: string | undefined;
324
324
  title?: string | undefined;
325
325
  thumbnailUrl?: string | null | undefined;
326
326
  ticketsUrl?: string | null | undefined;
@@ -333,15 +333,18 @@ export declare const ImportDTOSchema: z.ZodObject<{
333
333
  source: z.ZodUnion<[z.ZodLiteral<"facebook">, z.ZodLiteral<"website">]>;
334
334
  userId: z.ZodString;
335
335
  }, "strip", z.ZodTypeAny, {
336
- id: string;
337
336
  createdAt: string;
337
+ id: string;
338
338
  organizersNames: string[];
339
339
  partialEventState: {
340
+ createdAt?: string | undefined;
340
341
  id?: (string & z.BRAND<"EventId">) | undefined;
342
+ link?: string | null | undefined;
343
+ startTime?: string | undefined;
344
+ regions?: import('../../shared').Region[] | undefined;
341
345
  adress?: string | undefined;
342
346
  capacity?: number | null | undefined;
343
- category?: import("../../shared").Category | undefined;
344
- createdAt?: string | undefined;
347
+ category?: import('../../shared').Category | undefined;
345
348
  description?: string | undefined;
346
349
  finishTime?: string | null | undefined;
347
350
  hasHandicapAccess?: boolean | null | undefined;
@@ -350,10 +353,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
350
353
  isDisplayed?: boolean | undefined;
351
354
  isPromoted?: boolean | undefined;
352
355
  isPriceRange?: boolean | undefined;
353
- link?: string | null | undefined;
354
356
  price?: number | null | undefined;
355
- regions?: import("../../shared").Region[] | undefined;
356
- startTime?: string | undefined;
357
357
  title?: string | undefined;
358
358
  thumbnailUrl?: string | null | undefined;
359
359
  ticketsUrl?: string | null | undefined;
@@ -366,15 +366,18 @@ export declare const ImportDTOSchema: z.ZodObject<{
366
366
  source: "facebook" | "website";
367
367
  userId: string;
368
368
  }, {
369
- id: string;
370
369
  createdAt: string;
370
+ id: string;
371
371
  organizersNames: string[];
372
372
  partialEventState: {
373
+ createdAt?: string | undefined;
373
374
  id?: string | undefined;
375
+ link?: string | null | undefined;
376
+ startTime?: string | undefined;
377
+ regions?: import('../../shared').Region[] | undefined;
374
378
  adress?: string | undefined;
375
379
  capacity?: number | null | undefined;
376
- category?: import("../../shared").Category | undefined;
377
- createdAt?: string | undefined;
380
+ category?: import('../../shared').Category | undefined;
378
381
  description?: string | undefined;
379
382
  finishTime?: string | null | undefined;
380
383
  hasHandicapAccess?: boolean | null | undefined;
@@ -383,10 +386,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
383
386
  isDisplayed?: boolean | undefined;
384
387
  isPromoted?: boolean | undefined;
385
388
  isPriceRange?: boolean | undefined;
386
- link?: string | null | undefined;
387
389
  price?: number | null | undefined;
388
- regions?: import("../../shared").Region[] | undefined;
389
- startTime?: string | undefined;
390
390
  title?: string | undefined;
391
391
  thumbnailUrl?: string | null | undefined;
392
392
  ticketsUrl?: string | null | undefined;
@@ -5,15 +5,15 @@ export declare const OrganizerDTOSchema: z.ZodObject<{
5
5
  imageUrl: z.ZodNullable<z.ZodString>;
6
6
  name: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
- eventsIds: (string & z.BRAND<"EventId">)[];
9
8
  id: string & z.BRAND<"OrganizerId">;
10
9
  imageUrl: string | null;
11
10
  name: string;
11
+ eventsIds: (string & z.BRAND<"EventId">)[];
12
12
  }, {
13
- eventsIds: string[];
14
13
  id: string;
15
14
  imageUrl: string | null;
16
15
  name: string;
16
+ eventsIds: string[];
17
17
  }>;
18
18
  export declare const CreateOrganizerDTOSchema: z.ZodObject<{
19
19
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
@@ -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
  finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16,7 +16,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
16
16
  isPriceRange: z.ZodOptional<z.ZodBoolean>;
17
17
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
- regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">>;
19
+ regions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">>;
20
20
  startTime: z.ZodOptional<z.ZodString>;
21
21
  title: z.ZodOptional<z.ZodString>;
22
22
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -35,11 +35,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
35
35
  name: string;
36
36
  }>, "many">>;
37
37
  }, "strip", z.ZodTypeAny, {
38
+ createdAt?: string | undefined;
38
39
  id?: (string & z.BRAND<"EventId">) | undefined;
40
+ link?: string | null | undefined;
41
+ startTime?: string | undefined;
42
+ regions?: import('../../shared').Region[] | undefined;
39
43
  adress?: string | undefined;
40
44
  capacity?: number | null | undefined;
41
- category?: import("../../shared").Category | undefined;
42
- createdAt?: string | undefined;
45
+ category?: import('../../shared').Category | undefined;
43
46
  description?: string | undefined;
44
47
  finishTime?: string | null | undefined;
45
48
  hasHandicapAccess?: boolean | null | undefined;
@@ -48,10 +51,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
48
51
  isDisplayed?: boolean | undefined;
49
52
  isPromoted?: boolean | undefined;
50
53
  isPriceRange?: boolean | undefined;
51
- link?: string | null | undefined;
52
54
  price?: number | null | undefined;
53
- regions?: import("../../shared").Region[] | undefined;
54
- startTime?: string | undefined;
55
55
  title?: string | undefined;
56
56
  thumbnailUrl?: string | null | undefined;
57
57
  ticketsUrl?: string | null | undefined;
@@ -61,11 +61,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
61
61
  name: string;
62
62
  }[] | undefined;
63
63
  }, {
64
+ createdAt?: string | undefined;
64
65
  id?: string | undefined;
66
+ link?: string | null | undefined;
67
+ startTime?: string | undefined;
68
+ regions?: import('../../shared').Region[] | undefined;
65
69
  adress?: string | undefined;
66
70
  capacity?: number | null | undefined;
67
- category?: import("../../shared").Category | undefined;
68
- createdAt?: string | undefined;
71
+ category?: import('../../shared').Category | undefined;
69
72
  description?: string | undefined;
70
73
  finishTime?: string | null | undefined;
71
74
  hasHandicapAccess?: boolean | null | undefined;
@@ -74,10 +77,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
74
77
  isDisplayed?: boolean | undefined;
75
78
  isPromoted?: boolean | undefined;
76
79
  isPriceRange?: boolean | undefined;
77
- link?: string | null | undefined;
78
80
  price?: number | null | undefined;
79
- regions?: import("../../shared").Region[] | undefined;
80
- startTime?: string | undefined;
81
81
  title?: string | undefined;
82
82
  thumbnailUrl?: string | null | undefined;
83
83
  ticketsUrl?: string | null | undefined;
@@ -94,11 +94,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
94
94
  }, "strip", z.ZodTypeAny, {
95
95
  organizersNames: string[];
96
96
  partialEventState: {
97
+ createdAt?: string | undefined;
97
98
  id?: (string & z.BRAND<"EventId">) | undefined;
99
+ link?: string | null | undefined;
100
+ startTime?: string | undefined;
101
+ regions?: import('../../shared').Region[] | undefined;
98
102
  adress?: string | undefined;
99
103
  capacity?: number | null | undefined;
100
- category?: import("../../shared").Category | undefined;
101
- createdAt?: string | undefined;
104
+ category?: import('../../shared').Category | undefined;
102
105
  description?: string | undefined;
103
106
  finishTime?: string | null | undefined;
104
107
  hasHandicapAccess?: boolean | null | undefined;
@@ -107,10 +110,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
107
110
  isDisplayed?: boolean | undefined;
108
111
  isPromoted?: boolean | undefined;
109
112
  isPriceRange?: boolean | undefined;
110
- link?: string | null | undefined;
111
113
  price?: number | null | undefined;
112
- regions?: import("../../shared").Region[] | undefined;
113
- startTime?: string | undefined;
114
114
  title?: string | undefined;
115
115
  thumbnailUrl?: string | null | undefined;
116
116
  ticketsUrl?: string | null | undefined;
@@ -126,11 +126,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
126
126
  }, {
127
127
  organizersNames: string[];
128
128
  partialEventState: {
129
+ createdAt?: string | undefined;
129
130
  id?: string | undefined;
131
+ link?: string | null | undefined;
132
+ startTime?: string | undefined;
133
+ regions?: import('../../shared').Region[] | undefined;
130
134
  adress?: string | undefined;
131
135
  capacity?: number | null | undefined;
132
- category?: import("../../shared").Category | undefined;
133
- createdAt?: string | undefined;
136
+ category?: import('../../shared').Category | undefined;
134
137
  description?: string | undefined;
135
138
  finishTime?: string | null | undefined;
136
139
  hasHandicapAccess?: boolean | null | undefined;
@@ -139,10 +142,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
139
142
  isDisplayed?: boolean | undefined;
140
143
  isPromoted?: boolean | undefined;
141
144
  isPriceRange?: boolean | undefined;
142
- link?: string | null | undefined;
143
145
  price?: number | null | undefined;
144
- regions?: import("../../shared").Region[] | undefined;
145
- startTime?: string | undefined;
146
146
  title?: string | undefined;
147
147
  thumbnailUrl?: string | null | undefined;
148
148
  ticketsUrl?: string | null | undefined;
@@ -4082,6 +4082,37 @@ 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 MainAdIdSchema = UUIDSchema.brand("MainAdId");
4086
+ const createMainAdId = (id = crypto.randomUUID()) => MainAdIdSchema.parse(id);
4087
+ const RegionalAdIdSchema = UUIDSchema.brand("RegionalAdId");
4088
+ const createRegionalAdId = (id = crypto.randomUUID()) => RegionalAdIdSchema.parse(id);
4089
+ const MainAdDTOSchema = z.object({
4090
+ createdAt: StringSchema.datetime(),
4091
+ endTime: StringSchema,
4092
+ id: MainAdIdSchema,
4093
+ imageUrl: URLSchema,
4094
+ isEnabled: z.boolean(),
4095
+ link: URLSchema.nullable(),
4096
+ startTime: StringSchema
4097
+ });
4098
+ const UpdateMainAdDTOSchema = MainAdDTOSchema.omit({
4099
+ createdAt: true,
4100
+ id: true
4101
+ });
4102
+ const RegionalAdDTOSchema = z.object({
4103
+ createdAt: StringSchema.datetime(),
4104
+ endTime: StringSchema,
4105
+ id: RegionalAdIdSchema,
4106
+ imageUrl: URLSchema,
4107
+ isEnabled: z.boolean(),
4108
+ link: URLSchema.nullable(),
4109
+ regions: RegionSchema.array(),
4110
+ startTime: StringSchema
4111
+ });
4112
+ const UpdateRegionalAdDTOSchema = RegionalAdDTOSchema.omit({
4113
+ createdAt: true,
4114
+ id: true
4115
+ });
4085
4116
  const AppConfigurationDTOSchema = z.object({
4086
4117
  isInfoMessageEnabled: z.boolean(),
4087
4118
  infoMessageContent: StringSchema
@@ -4221,11 +4252,15 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4221
4252
  GlobalStatsDTOSchema,
4222
4253
  ImportDTOSchema,
4223
4254
  ImportFromUrlDTOSchema,
4255
+ MainAdDTOSchema,
4224
4256
  OrganizerDTOSchema,
4225
4257
  PromoteEventDTOSchema,
4258
+ RegionalAdDTOSchema,
4226
4259
  UpdateAppConfigurationDTOSchema,
4227
4260
  UpdateEventDTOSchema,
4261
+ UpdateMainAdDTOSchema,
4228
4262
  UpdateOrganizerDTOSchema,
4263
+ UpdateRegionalAdDTOSchema,
4229
4264
  constraints
4230
4265
  }, Symbol.toStringTag, { value: "Module" }));
4231
4266
  const CreatePartialImportedEventDTOSchema = z.object({
@@ -4250,9 +4285,11 @@ exports.CoerceDateSchema = CoerceDateSchema;
4250
4285
  exports.CoerceNullableDateSchema = CoerceNullableDateSchema;
4251
4286
  exports.ErrorCodes = ErrorCodes;
4252
4287
  exports.EventIdSchema = EventIdSchema;
4288
+ exports.MainAdIdSchema = MainAdIdSchema;
4253
4289
  exports.OrganizerIdSchema = OrganizerIdSchema;
4254
4290
  exports.Region = Region;
4255
4291
  exports.RegionSchema = RegionSchema;
4292
+ exports.RegionalAdIdSchema = RegionalAdIdSchema;
4256
4293
  exports.SafeNonNegativeFloatSchema = SafeNonNegativeFloatSchema;
4257
4294
  exports.SafeNonNegativeIntegerSchema = SafeNonNegativeIntegerSchema;
4258
4295
  exports.StringSchema = StringSchema;
@@ -4261,5 +4298,7 @@ exports.UUIDSchema = UUIDSchema;
4261
4298
  exports.UserIdSchema = UserIdSchema;
4262
4299
  exports.V1 = index;
4263
4300
  exports.createEventId = createEventId;
4301
+ exports.createMainAdId = createMainAdId;
4264
4302
  exports.createOrganizerId = createOrganizerId;
4303
+ exports.createRegionalAdId = createRegionalAdId;
4265
4304
  exports.createUserId = createUserId;
@@ -4080,6 +4080,37 @@ 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 MainAdIdSchema = UUIDSchema.brand("MainAdId");
4084
+ const createMainAdId = (id = crypto.randomUUID()) => MainAdIdSchema.parse(id);
4085
+ const RegionalAdIdSchema = UUIDSchema.brand("RegionalAdId");
4086
+ const createRegionalAdId = (id = crypto.randomUUID()) => RegionalAdIdSchema.parse(id);
4087
+ const MainAdDTOSchema = z.object({
4088
+ createdAt: StringSchema.datetime(),
4089
+ endTime: StringSchema,
4090
+ id: MainAdIdSchema,
4091
+ imageUrl: URLSchema,
4092
+ isEnabled: z.boolean(),
4093
+ link: URLSchema.nullable(),
4094
+ startTime: StringSchema
4095
+ });
4096
+ const UpdateMainAdDTOSchema = MainAdDTOSchema.omit({
4097
+ createdAt: true,
4098
+ id: true
4099
+ });
4100
+ const RegionalAdDTOSchema = z.object({
4101
+ createdAt: StringSchema.datetime(),
4102
+ endTime: StringSchema,
4103
+ id: RegionalAdIdSchema,
4104
+ imageUrl: URLSchema,
4105
+ isEnabled: z.boolean(),
4106
+ link: URLSchema.nullable(),
4107
+ regions: RegionSchema.array(),
4108
+ startTime: StringSchema
4109
+ });
4110
+ const UpdateRegionalAdDTOSchema = RegionalAdDTOSchema.omit({
4111
+ createdAt: true,
4112
+ id: true
4113
+ });
4083
4114
  const AppConfigurationDTOSchema = z.object({
4084
4115
  isInfoMessageEnabled: z.boolean(),
4085
4116
  infoMessageContent: StringSchema
@@ -4219,11 +4250,15 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4219
4250
  GlobalStatsDTOSchema,
4220
4251
  ImportDTOSchema,
4221
4252
  ImportFromUrlDTOSchema,
4253
+ MainAdDTOSchema,
4222
4254
  OrganizerDTOSchema,
4223
4255
  PromoteEventDTOSchema,
4256
+ RegionalAdDTOSchema,
4224
4257
  UpdateAppConfigurationDTOSchema,
4225
4258
  UpdateEventDTOSchema,
4259
+ UpdateMainAdDTOSchema,
4226
4260
  UpdateOrganizerDTOSchema,
4261
+ UpdateRegionalAdDTOSchema,
4227
4262
  constraints
4228
4263
  }, Symbol.toStringTag, { value: "Module" }));
4229
4264
  const CreatePartialImportedEventDTOSchema = z.object({
@@ -4249,9 +4284,11 @@ export {
4249
4284
  CoerceNullableDateSchema,
4250
4285
  ErrorCodes,
4251
4286
  EventIdSchema,
4287
+ MainAdIdSchema,
4252
4288
  OrganizerIdSchema,
4253
4289
  Region,
4254
4290
  RegionSchema,
4291
+ RegionalAdIdSchema,
4255
4292
  SafeNonNegativeFloatSchema,
4256
4293
  SafeNonNegativeIntegerSchema,
4257
4294
  StringSchema,
@@ -4260,6 +4297,8 @@ export {
4260
4297
  UserIdSchema,
4261
4298
  index as V1,
4262
4299
  createEventId,
4300
+ createMainAdId,
4263
4301
  createOrganizerId,
4302
+ createRegionalAdId,
4264
4303
  createUserId
4265
4304
  };
package/dist/flavors.d.ts CHANGED
@@ -11,4 +11,7 @@ export declare const createUserId: (id?: string) => UserId;
11
11
  export declare const MainAdIdSchema: z.ZodBranded<z.ZodString, "MainAdId">;
12
12
  export type MainAdId = z.infer<typeof MainAdIdSchema>;
13
13
  export declare const createMainAdId: (id?: string) => MainAdId;
14
+ export declare const RegionalAdIdSchema: z.ZodBranded<z.ZodString, "RegionalAdId">;
15
+ export type RegionalAdId = z.infer<typeof RegionalAdIdSchema>;
16
+ export declare const createRegionalAdId: (id?: string) => RegionalAdId;
14
17
  //# sourceMappingURL=flavors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flavors.d.ts","sourceRoot":"","sources":["../src/flavors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,sCAA8B,CAAC;AACzD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,aAAa,QAAQ,MAAM,KAAyB,OAAkC,CAAC;AAEpG,eAAO,MAAM,iBAAiB,0CAAkC,CAAC;AACjE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,QAAQ,MAAM,KAAyB,WAA0C,CAAC;AAEhH,eAAO,MAAM,YAAY,qCAA6B,CAAC;AACvD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,YAAY,QAAQ,MAAM,KAAyB,MAAgC,CAAC;AAEjG,eAAO,MAAM,cAAc,uCAA+B,CAAC;AAC3D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,cAAc,QAAQ,MAAM,KAAyB,QAAoC,CAAC"}
1
+ {"version":3,"file":"flavors.d.ts","sourceRoot":"","sources":["../src/flavors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,sCAA8B,CAAC;AACzD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,aAAa,QAAQ,MAAM,KAAyB,OAAkC,CAAC;AAEpG,eAAO,MAAM,iBAAiB,0CAAkC,CAAC;AACjE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,QAAQ,MAAM,KAAyB,WAA0C,CAAC;AAEhH,eAAO,MAAM,YAAY,qCAA6B,CAAC;AACvD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,YAAY,QAAQ,MAAM,KAAyB,MAAgC,CAAC;AAEjG,eAAO,MAAM,cAAc,uCAA+B,CAAC;AAC3D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,cAAc,QAAQ,MAAM,KAAyB,QAAoC,CAAC;AAEvG,eAAO,MAAM,kBAAkB,2CAAmC,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB,QAAQ,MAAM,KAAyB,YAA4C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",