@sortipei/api-contracts 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/V1/api/common.d.ts +13 -0
- package/dist/V1/api/common.d.ts.map +1 -0
- package/dist/V1/api/event.d.ts +12 -78
- package/dist/V1/api/event.d.ts.map +1 -1
- package/dist/V1/api/index.d.ts +1 -0
- package/dist/V1/api/index.d.ts.map +1 -1
- package/dist/V1/api/organizer.d.ts +13 -2
- package/dist/V1/api/organizer.d.ts.map +1 -1
- package/dist/V1/external/partial-imported-event.d.ts +7 -0
- package/dist/V1/external/partial-imported-event.d.ts.map +1 -1
- package/dist/api-contracts.js +12 -13
- package/dist/api-contracts.mjs +12 -13
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FileUploadDTOSchema: z.ZodObject<{
|
|
3
|
+
publicUrl: z.ZodString;
|
|
4
|
+
uploadUrl: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
publicUrl: string;
|
|
7
|
+
uploadUrl: string;
|
|
8
|
+
}, {
|
|
9
|
+
publicUrl: string;
|
|
10
|
+
uploadUrl: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type FileUploadDTO = z.infer<typeof FileUploadDTOSchema>;
|
|
13
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/V1/api/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/V1/api/event.d.ts
CHANGED
|
@@ -17,12 +17,15 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
17
17
|
organizers: z.ZodArray<z.ZodObject<{
|
|
18
18
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
19
19
|
name: z.ZodString;
|
|
20
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
20
21
|
}, "strip", z.ZodTypeAny, {
|
|
21
22
|
id: string & z.BRAND<"OrganizerId">;
|
|
22
23
|
name: string;
|
|
24
|
+
imageUrl: string | null;
|
|
23
25
|
}, {
|
|
24
26
|
id: string;
|
|
25
27
|
name: string;
|
|
28
|
+
imageUrl: string | null;
|
|
26
29
|
}>, "many">;
|
|
27
30
|
}, "strip", z.ZodTypeAny, {
|
|
28
31
|
adress: string;
|
|
@@ -42,6 +45,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
42
45
|
organizers: {
|
|
43
46
|
id: string & z.BRAND<"OrganizerId">;
|
|
44
47
|
name: string;
|
|
48
|
+
imageUrl: string | null;
|
|
45
49
|
}[];
|
|
46
50
|
}, {
|
|
47
51
|
adress: string;
|
|
@@ -61,74 +65,9 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
61
65
|
organizers: {
|
|
62
66
|
id: string;
|
|
63
67
|
name: string;
|
|
68
|
+
imageUrl: string | null;
|
|
64
69
|
}[];
|
|
65
70
|
}>;
|
|
66
|
-
export declare const EventPublicDTOSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
67
|
-
adress: z.ZodString;
|
|
68
|
-
capacity: z.ZodNullable<z.ZodNumber>;
|
|
69
|
-
description: z.ZodString;
|
|
70
|
-
finishTime: z.ZodNullable<z.ZodString>;
|
|
71
|
-
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
72
|
-
id: z.ZodBranded<z.ZodString, "EventId">;
|
|
73
|
-
imageUrls: z.ZodArray<z.ZodString, "many">;
|
|
74
|
-
isDisplayed: z.ZodBoolean;
|
|
75
|
-
isPromoted: z.ZodBoolean;
|
|
76
|
-
link: z.ZodNullable<z.ZodString>;
|
|
77
|
-
price: z.ZodNullable<z.ZodNumber>;
|
|
78
|
-
region: z.ZodNativeEnum<typeof import('../../shared').Region>;
|
|
79
|
-
startTime: z.ZodString;
|
|
80
|
-
title: z.ZodString;
|
|
81
|
-
organizers: z.ZodArray<z.ZodObject<{
|
|
82
|
-
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
83
|
-
name: z.ZodString;
|
|
84
|
-
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
id: string & z.BRAND<"OrganizerId">;
|
|
86
|
-
name: string;
|
|
87
|
-
}, {
|
|
88
|
-
id: string;
|
|
89
|
-
name: string;
|
|
90
|
-
}>, "many">;
|
|
91
|
-
}, "isDisplayed">, {
|
|
92
|
-
isFavorite: z.ZodBoolean;
|
|
93
|
-
}>, "strip", z.ZodTypeAny, {
|
|
94
|
-
adress: string;
|
|
95
|
-
capacity: number | null;
|
|
96
|
-
description: string;
|
|
97
|
-
finishTime: string | null;
|
|
98
|
-
hasHandicapAccess: boolean | null;
|
|
99
|
-
id: string & z.BRAND<"EventId">;
|
|
100
|
-
imageUrls: string[];
|
|
101
|
-
isPromoted: boolean;
|
|
102
|
-
link: string | null;
|
|
103
|
-
price: number | null;
|
|
104
|
-
region: import('../../shared').Region;
|
|
105
|
-
startTime: string;
|
|
106
|
-
title: string;
|
|
107
|
-
organizers: {
|
|
108
|
-
id: string & z.BRAND<"OrganizerId">;
|
|
109
|
-
name: string;
|
|
110
|
-
}[];
|
|
111
|
-
isFavorite: boolean;
|
|
112
|
-
}, {
|
|
113
|
-
adress: string;
|
|
114
|
-
capacity: number | null;
|
|
115
|
-
description: string;
|
|
116
|
-
finishTime: string | null;
|
|
117
|
-
hasHandicapAccess: boolean | null;
|
|
118
|
-
id: string;
|
|
119
|
-
imageUrls: string[];
|
|
120
|
-
isPromoted: boolean;
|
|
121
|
-
link: string | null;
|
|
122
|
-
price: number | null;
|
|
123
|
-
region: import('../../shared').Region;
|
|
124
|
-
startTime: string;
|
|
125
|
-
title: string;
|
|
126
|
-
organizers: {
|
|
127
|
-
id: string;
|
|
128
|
-
name: string;
|
|
129
|
-
}[];
|
|
130
|
-
isFavorite: boolean;
|
|
131
|
-
}>;
|
|
132
71
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
133
72
|
adress: z.ZodString;
|
|
134
73
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
@@ -233,23 +172,11 @@ export declare const PromoteEventDTOSchema: z.ZodObject<{
|
|
|
233
172
|
}, {
|
|
234
173
|
isPromoted: boolean;
|
|
235
174
|
}>;
|
|
236
|
-
export declare const EventFileUploadsDTOSchema: z.ZodArray<z.ZodObject<{
|
|
237
|
-
publicUrl: z.ZodString;
|
|
238
|
-
uploadUrl: z.ZodString;
|
|
239
|
-
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
publicUrl: string;
|
|
241
|
-
uploadUrl: string;
|
|
242
|
-
}, {
|
|
243
|
-
publicUrl: string;
|
|
244
|
-
uploadUrl: string;
|
|
245
|
-
}>, "many">;
|
|
246
175
|
export type CreateEventDTO = z.infer<typeof CreateEventDTOSchema>;
|
|
247
176
|
export type UpdateEventDTO = z.infer<typeof UpdateEventDTOSchema>;
|
|
248
177
|
export type DisplayEventDTO = z.infer<typeof DisplayEventDTOSchema>;
|
|
249
178
|
export type PromoteEventDTO = z.infer<typeof PromoteEventDTOSchema>;
|
|
250
|
-
export type EventFileUploadsDTO = z.infer<typeof EventFileUploadsDTOSchema>;
|
|
251
179
|
export type EventDTO = z.infer<typeof EventDTOSchema>;
|
|
252
|
-
export type EventPublicDTO = z.infer<typeof EventPublicDTOSchema>;
|
|
253
180
|
export declare const constraints: {
|
|
254
181
|
adress: {
|
|
255
182
|
minLength: number;
|
|
@@ -286,12 +213,15 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
286
213
|
organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
214
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
288
215
|
name: z.ZodString;
|
|
216
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
289
217
|
}, "strip", z.ZodTypeAny, {
|
|
290
218
|
id: string & z.BRAND<"OrganizerId">;
|
|
291
219
|
name: string;
|
|
220
|
+
imageUrl: string | null;
|
|
292
221
|
}, {
|
|
293
222
|
id: string;
|
|
294
223
|
name: string;
|
|
224
|
+
imageUrl: string | null;
|
|
295
225
|
}>, "many">>;
|
|
296
226
|
}, "strip", z.ZodTypeAny, {
|
|
297
227
|
adress?: string | undefined;
|
|
@@ -311,6 +241,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
311
241
|
organizers?: {
|
|
312
242
|
id: string & z.BRAND<"OrganizerId">;
|
|
313
243
|
name: string;
|
|
244
|
+
imageUrl: string | null;
|
|
314
245
|
}[] | undefined;
|
|
315
246
|
}, {
|
|
316
247
|
adress?: string | undefined;
|
|
@@ -330,6 +261,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
330
261
|
organizers?: {
|
|
331
262
|
id: string;
|
|
332
263
|
name: string;
|
|
264
|
+
imageUrl: string | null;
|
|
333
265
|
}[] | undefined;
|
|
334
266
|
}>;
|
|
335
267
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -354,6 +286,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
354
286
|
organizers?: {
|
|
355
287
|
id: string & z.BRAND<"OrganizerId">;
|
|
356
288
|
name: string;
|
|
289
|
+
imageUrl: string | null;
|
|
357
290
|
}[] | undefined;
|
|
358
291
|
};
|
|
359
292
|
}, {
|
|
@@ -378,6 +311,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
378
311
|
organizers?: {
|
|
379
312
|
id: string;
|
|
380
313
|
name: string;
|
|
314
|
+
imageUrl: string | null;
|
|
381
315
|
}[] | undefined;
|
|
382
316
|
};
|
|
383
317
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/V1/api/index.d.ts
CHANGED
|
@@ -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;
|
|
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"}
|
|
@@ -2,33 +2,44 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const OrganizerDTOSchema: z.ZodObject<{
|
|
3
3
|
eventsIds: z.ZodArray<z.ZodBranded<z.ZodString, "EventId">, "many">;
|
|
4
4
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
5
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
5
6
|
name: z.ZodString;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
id: string & z.BRAND<"OrganizerId">;
|
|
8
9
|
name: string;
|
|
10
|
+
imageUrl: string | null;
|
|
9
11
|
eventsIds: (string & z.BRAND<"EventId">)[];
|
|
10
12
|
}, {
|
|
11
13
|
id: string;
|
|
12
14
|
name: string;
|
|
15
|
+
imageUrl: string | null;
|
|
13
16
|
eventsIds: string[];
|
|
14
17
|
}>;
|
|
15
18
|
export declare const CreateOrganizerDTOSchema: z.ZodObject<{
|
|
16
19
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
20
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
17
21
|
name: z.ZodString;
|
|
18
22
|
}, "strip", z.ZodTypeAny, {
|
|
19
23
|
id: string & z.BRAND<"OrganizerId">;
|
|
20
24
|
name: string;
|
|
25
|
+
imageUrl: string | null;
|
|
21
26
|
}, {
|
|
22
27
|
id: string;
|
|
23
28
|
name: string;
|
|
29
|
+
imageUrl: string | null;
|
|
24
30
|
}>;
|
|
25
|
-
export declare const UpdateOrganizerDTOSchema: z.ZodObject<Omit<{
|
|
31
|
+
export declare const UpdateOrganizerDTOSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
26
32
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
33
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
27
34
|
name: z.ZodString;
|
|
28
|
-
}, "id">,
|
|
35
|
+
}, "id">, {
|
|
36
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
}>, "strip", z.ZodTypeAny, {
|
|
29
38
|
name: string;
|
|
39
|
+
imageUrl?: string | null | undefined;
|
|
30
40
|
}, {
|
|
31
41
|
name: string;
|
|
42
|
+
imageUrl?: string | null | undefined;
|
|
32
43
|
}>;
|
|
33
44
|
export type CreateOrganizerDTO = z.infer<typeof CreateOrganizerDTOSchema>;
|
|
34
45
|
export type UpdateOrganizerDTO = z.infer<typeof UpdateOrganizerDTOSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizer.d.ts","sourceRoot":"","sources":["../../../src/V1/api/organizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"organizer.d.ts","sourceRoot":"","sources":["../../../src/V1/api/organizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAEnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
|
|
@@ -18,12 +18,15 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
18
18
|
organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
19
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
20
20
|
name: z.ZodString;
|
|
21
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
21
22
|
}, "strip", z.ZodTypeAny, {
|
|
22
23
|
id: string & z.BRAND<"OrganizerId">;
|
|
23
24
|
name: string;
|
|
25
|
+
imageUrl: string | null;
|
|
24
26
|
}, {
|
|
25
27
|
id: string;
|
|
26
28
|
name: string;
|
|
29
|
+
imageUrl: string | null;
|
|
27
30
|
}>, "many">>;
|
|
28
31
|
}, "strip", z.ZodTypeAny, {
|
|
29
32
|
adress?: string | undefined;
|
|
@@ -43,6 +46,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
43
46
|
organizers?: {
|
|
44
47
|
id: string & z.BRAND<"OrganizerId">;
|
|
45
48
|
name: string;
|
|
49
|
+
imageUrl: string | null;
|
|
46
50
|
}[] | undefined;
|
|
47
51
|
}, {
|
|
48
52
|
adress?: string | undefined;
|
|
@@ -62,6 +66,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
62
66
|
organizers?: {
|
|
63
67
|
id: string;
|
|
64
68
|
name: string;
|
|
69
|
+
imageUrl: string | null;
|
|
65
70
|
}[] | undefined;
|
|
66
71
|
}>;
|
|
67
72
|
token: z.ZodString;
|
|
@@ -86,6 +91,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
86
91
|
organizers?: {
|
|
87
92
|
id: string & z.BRAND<"OrganizerId">;
|
|
88
93
|
name: string;
|
|
94
|
+
imageUrl: string | null;
|
|
89
95
|
}[] | undefined;
|
|
90
96
|
};
|
|
91
97
|
token: string;
|
|
@@ -109,6 +115,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
109
115
|
organizers?: {
|
|
110
116
|
id: string;
|
|
111
117
|
name: string;
|
|
118
|
+
imageUrl: string | null;
|
|
112
119
|
}[] | undefined;
|
|
113
120
|
};
|
|
114
121
|
token: string;
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -4088,14 +4088,10 @@ const EventDTOSchema = z.object({
|
|
|
4088
4088
|
title: StringSchema,
|
|
4089
4089
|
organizers: z.object({
|
|
4090
4090
|
id: OrganizerIdSchema,
|
|
4091
|
-
name: StringSchema
|
|
4091
|
+
name: StringSchema,
|
|
4092
|
+
imageUrl: URLSchema.nullable()
|
|
4092
4093
|
}).array().min(1)
|
|
4093
4094
|
});
|
|
4094
|
-
const EventPublicDTOSchema = EventDTOSchema.omit({
|
|
4095
|
-
isDisplayed: true
|
|
4096
|
-
}).extend({
|
|
4097
|
-
isFavorite: z.boolean()
|
|
4098
|
-
});
|
|
4099
4095
|
const CreateEventDTOSchema = z.object({
|
|
4100
4096
|
adress: StringSchema,
|
|
4101
4097
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
@@ -4121,10 +4117,6 @@ const DisplayEventDTOSchema = z.object({
|
|
|
4121
4117
|
const PromoteEventDTOSchema = z.object({
|
|
4122
4118
|
isPromoted: z.boolean()
|
|
4123
4119
|
});
|
|
4124
|
-
const EventFileUploadsDTOSchema = z.object({
|
|
4125
|
-
publicUrl: URLSchema,
|
|
4126
|
-
uploadUrl: URLSchema
|
|
4127
|
-
}).array();
|
|
4128
4120
|
const constraints$2 = {
|
|
4129
4121
|
adress: {
|
|
4130
4122
|
minLength: 3,
|
|
@@ -4148,19 +4140,27 @@ const ImportDTOSchema = z.object({
|
|
|
4148
4140
|
const OrganizerDTOSchema = z.object({
|
|
4149
4141
|
eventsIds: EventIdSchema.array(),
|
|
4150
4142
|
id: OrganizerIdSchema,
|
|
4143
|
+
imageUrl: URLSchema.nullable(),
|
|
4151
4144
|
name: StringSchema
|
|
4152
4145
|
});
|
|
4153
4146
|
const CreateOrganizerDTOSchema = z.object({
|
|
4154
4147
|
id: OrganizerIdSchema,
|
|
4148
|
+
imageUrl: URLSchema.nullable(),
|
|
4155
4149
|
name: StringSchema
|
|
4156
4150
|
});
|
|
4157
|
-
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true })
|
|
4151
|
+
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true }).extend({
|
|
4152
|
+
imageUrl: URLSchema.nullable().optional()
|
|
4153
|
+
});
|
|
4158
4154
|
const constraints$1 = {
|
|
4159
4155
|
name: {
|
|
4160
4156
|
minLength: 3,
|
|
4161
4157
|
maxLength: 100
|
|
4162
4158
|
}
|
|
4163
4159
|
};
|
|
4160
|
+
const FileUploadDTOSchema = z.object({
|
|
4161
|
+
publicUrl: URLSchema,
|
|
4162
|
+
uploadUrl: URLSchema
|
|
4163
|
+
});
|
|
4164
4164
|
const constraints = {
|
|
4165
4165
|
events: constraints$2,
|
|
4166
4166
|
organizers: constraints$1
|
|
@@ -4171,8 +4171,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4171
4171
|
CreateOrganizerDTOSchema,
|
|
4172
4172
|
DisplayEventDTOSchema,
|
|
4173
4173
|
EventDTOSchema,
|
|
4174
|
-
|
|
4175
|
-
EventPublicDTOSchema,
|
|
4174
|
+
FileUploadDTOSchema,
|
|
4176
4175
|
ImportDTOSchema,
|
|
4177
4176
|
OrganizerDTOSchema,
|
|
4178
4177
|
PromoteEventDTOSchema,
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4086,14 +4086,10 @@ const EventDTOSchema = z.object({
|
|
|
4086
4086
|
title: StringSchema,
|
|
4087
4087
|
organizers: z.object({
|
|
4088
4088
|
id: OrganizerIdSchema,
|
|
4089
|
-
name: StringSchema
|
|
4089
|
+
name: StringSchema,
|
|
4090
|
+
imageUrl: URLSchema.nullable()
|
|
4090
4091
|
}).array().min(1)
|
|
4091
4092
|
});
|
|
4092
|
-
const EventPublicDTOSchema = EventDTOSchema.omit({
|
|
4093
|
-
isDisplayed: true
|
|
4094
|
-
}).extend({
|
|
4095
|
-
isFavorite: z.boolean()
|
|
4096
|
-
});
|
|
4097
4093
|
const CreateEventDTOSchema = z.object({
|
|
4098
4094
|
adress: StringSchema,
|
|
4099
4095
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
@@ -4119,10 +4115,6 @@ const DisplayEventDTOSchema = z.object({
|
|
|
4119
4115
|
const PromoteEventDTOSchema = z.object({
|
|
4120
4116
|
isPromoted: z.boolean()
|
|
4121
4117
|
});
|
|
4122
|
-
const EventFileUploadsDTOSchema = z.object({
|
|
4123
|
-
publicUrl: URLSchema,
|
|
4124
|
-
uploadUrl: URLSchema
|
|
4125
|
-
}).array();
|
|
4126
4118
|
const constraints$2 = {
|
|
4127
4119
|
adress: {
|
|
4128
4120
|
minLength: 3,
|
|
@@ -4146,19 +4138,27 @@ const ImportDTOSchema = z.object({
|
|
|
4146
4138
|
const OrganizerDTOSchema = z.object({
|
|
4147
4139
|
eventsIds: EventIdSchema.array(),
|
|
4148
4140
|
id: OrganizerIdSchema,
|
|
4141
|
+
imageUrl: URLSchema.nullable(),
|
|
4149
4142
|
name: StringSchema
|
|
4150
4143
|
});
|
|
4151
4144
|
const CreateOrganizerDTOSchema = z.object({
|
|
4152
4145
|
id: OrganizerIdSchema,
|
|
4146
|
+
imageUrl: URLSchema.nullable(),
|
|
4153
4147
|
name: StringSchema
|
|
4154
4148
|
});
|
|
4155
|
-
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true })
|
|
4149
|
+
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true }).extend({
|
|
4150
|
+
imageUrl: URLSchema.nullable().optional()
|
|
4151
|
+
});
|
|
4156
4152
|
const constraints$1 = {
|
|
4157
4153
|
name: {
|
|
4158
4154
|
minLength: 3,
|
|
4159
4155
|
maxLength: 100
|
|
4160
4156
|
}
|
|
4161
4157
|
};
|
|
4158
|
+
const FileUploadDTOSchema = z.object({
|
|
4159
|
+
publicUrl: URLSchema,
|
|
4160
|
+
uploadUrl: URLSchema
|
|
4161
|
+
});
|
|
4162
4162
|
const constraints = {
|
|
4163
4163
|
events: constraints$2,
|
|
4164
4164
|
organizers: constraints$1
|
|
@@ -4169,8 +4169,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4169
4169
|
CreateOrganizerDTOSchema,
|
|
4170
4170
|
DisplayEventDTOSchema,
|
|
4171
4171
|
EventDTOSchema,
|
|
4172
|
-
|
|
4173
|
-
EventPublicDTOSchema,
|
|
4172
|
+
FileUploadDTOSchema,
|
|
4174
4173
|
ImportDTOSchema,
|
|
4175
4174
|
OrganizerDTOSchema,
|
|
4176
4175
|
PromoteEventDTOSchema,
|