@sortipei/api-contracts 0.1.12 → 0.1.14
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 +22 -15
- 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 +15 -2
- package/dist/V1/external/partial-imported-event.d.ts.map +1 -1
- package/dist/api-contracts.js +20 -11
- package/dist/api-contracts.mjs +20 -11
- 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,6 +65,7 @@ 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
71
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
@@ -167,21 +172,10 @@ export declare const PromoteEventDTOSchema: z.ZodObject<{
|
|
|
167
172
|
}, {
|
|
168
173
|
isPromoted: boolean;
|
|
169
174
|
}>;
|
|
170
|
-
export declare const EventFileUploadsDTOSchema: z.ZodArray<z.ZodObject<{
|
|
171
|
-
publicUrl: z.ZodString;
|
|
172
|
-
uploadUrl: z.ZodString;
|
|
173
|
-
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
publicUrl: string;
|
|
175
|
-
uploadUrl: string;
|
|
176
|
-
}, {
|
|
177
|
-
publicUrl: string;
|
|
178
|
-
uploadUrl: string;
|
|
179
|
-
}>, "many">;
|
|
180
175
|
export type CreateEventDTO = z.infer<typeof CreateEventDTOSchema>;
|
|
181
176
|
export type UpdateEventDTO = z.infer<typeof UpdateEventDTOSchema>;
|
|
182
177
|
export type DisplayEventDTO = z.infer<typeof DisplayEventDTOSchema>;
|
|
183
178
|
export type PromoteEventDTO = z.infer<typeof PromoteEventDTOSchema>;
|
|
184
|
-
export type EventFileUploadsDTO = z.infer<typeof EventFileUploadsDTOSchema>;
|
|
185
179
|
export type EventDTO = z.infer<typeof EventDTOSchema>;
|
|
186
180
|
export declare const constraints: {
|
|
187
181
|
adress: {
|
|
@@ -198,9 +192,9 @@ export declare const constraints: {
|
|
|
198
192
|
};
|
|
199
193
|
};
|
|
200
194
|
export declare const ImportDTOSchema: z.ZodObject<{
|
|
201
|
-
id: z.ZodString;
|
|
202
|
-
userId: z.ZodString;
|
|
203
195
|
createdAt: z.ZodString;
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
organizersNames: z.ZodArray<z.ZodString, "many">;
|
|
204
198
|
partialEventState: z.ZodObject<{
|
|
205
199
|
adress: z.ZodOptional<z.ZodString>;
|
|
206
200
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -219,12 +213,15 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
219
213
|
organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
220
214
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
221
215
|
name: z.ZodString;
|
|
216
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
222
217
|
}, "strip", z.ZodTypeAny, {
|
|
223
218
|
id: string & z.BRAND<"OrganizerId">;
|
|
224
219
|
name: string;
|
|
220
|
+
imageUrl: string | null;
|
|
225
221
|
}, {
|
|
226
222
|
id: string;
|
|
227
223
|
name: string;
|
|
224
|
+
imageUrl: string | null;
|
|
228
225
|
}>, "many">>;
|
|
229
226
|
}, "strip", z.ZodTypeAny, {
|
|
230
227
|
adress?: string | undefined;
|
|
@@ -244,6 +241,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
244
241
|
organizers?: {
|
|
245
242
|
id: string & z.BRAND<"OrganizerId">;
|
|
246
243
|
name: string;
|
|
244
|
+
imageUrl: string | null;
|
|
247
245
|
}[] | undefined;
|
|
248
246
|
}, {
|
|
249
247
|
adress?: string | undefined;
|
|
@@ -263,12 +261,15 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
263
261
|
organizers?: {
|
|
264
262
|
id: string;
|
|
265
263
|
name: string;
|
|
264
|
+
imageUrl: string | null;
|
|
266
265
|
}[] | undefined;
|
|
267
266
|
}>;
|
|
267
|
+
source: z.ZodLiteral<"facebook">;
|
|
268
|
+
userId: z.ZodString;
|
|
268
269
|
}, "strip", z.ZodTypeAny, {
|
|
269
270
|
id: string;
|
|
270
|
-
userId: string;
|
|
271
271
|
createdAt: string;
|
|
272
|
+
organizersNames: string[];
|
|
272
273
|
partialEventState: {
|
|
273
274
|
adress?: string | undefined;
|
|
274
275
|
capacity?: number | null | undefined;
|
|
@@ -287,12 +288,15 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
287
288
|
organizers?: {
|
|
288
289
|
id: string & z.BRAND<"OrganizerId">;
|
|
289
290
|
name: string;
|
|
291
|
+
imageUrl: string | null;
|
|
290
292
|
}[] | undefined;
|
|
291
293
|
};
|
|
294
|
+
source: "facebook";
|
|
295
|
+
userId: string;
|
|
292
296
|
}, {
|
|
293
297
|
id: string;
|
|
294
|
-
userId: string;
|
|
295
298
|
createdAt: string;
|
|
299
|
+
organizersNames: string[];
|
|
296
300
|
partialEventState: {
|
|
297
301
|
adress?: string | undefined;
|
|
298
302
|
capacity?: number | null | undefined;
|
|
@@ -311,8 +315,11 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
311
315
|
organizers?: {
|
|
312
316
|
id: string;
|
|
313
317
|
name: string;
|
|
318
|
+
imageUrl: string | null;
|
|
314
319
|
}[] | undefined;
|
|
315
320
|
};
|
|
321
|
+
source: "facebook";
|
|
322
|
+
userId: string;
|
|
316
323
|
}>;
|
|
317
324
|
export type ImportDTO = z.infer<typeof ImportDTOSchema>;
|
|
318
325
|
//# sourceMappingURL=event.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1B,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,12 +66,15 @@ 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;
|
|
68
73
|
userId: z.ZodString;
|
|
74
|
+
organizersNames: z.ZodArray<z.ZodString, "many">;
|
|
75
|
+
source: z.ZodLiteral<"facebook">;
|
|
69
76
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
|
|
77
|
+
organizersNames: string[];
|
|
71
78
|
partialEventState: {
|
|
72
79
|
adress?: string | undefined;
|
|
73
80
|
capacity?: number | null | undefined;
|
|
@@ -86,11 +93,14 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
86
93
|
organizers?: {
|
|
87
94
|
id: string & z.BRAND<"OrganizerId">;
|
|
88
95
|
name: string;
|
|
96
|
+
imageUrl: string | null;
|
|
89
97
|
}[] | undefined;
|
|
90
98
|
};
|
|
99
|
+
source: "facebook";
|
|
100
|
+
userId: string;
|
|
91
101
|
token: string;
|
|
92
102
|
}, {
|
|
93
|
-
|
|
103
|
+
organizersNames: string[];
|
|
94
104
|
partialEventState: {
|
|
95
105
|
adress?: string | undefined;
|
|
96
106
|
capacity?: number | null | undefined;
|
|
@@ -109,8 +119,11 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
109
119
|
organizers?: {
|
|
110
120
|
id: string;
|
|
111
121
|
name: string;
|
|
122
|
+
imageUrl: string | null;
|
|
112
123
|
}[] | undefined;
|
|
113
124
|
};
|
|
125
|
+
source: "facebook";
|
|
126
|
+
userId: string;
|
|
114
127
|
token: string;
|
|
115
128
|
}>;
|
|
116
129
|
export type CreatePartialImportedEventDTO = z.infer<typeof CreatePartialImportedEventDTOSchema>;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -4088,7 +4088,8 @@ 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
4095
|
const CreateEventDTOSchema = z.object({
|
|
@@ -4116,10 +4117,6 @@ const DisplayEventDTOSchema = z.object({
|
|
|
4116
4117
|
const PromoteEventDTOSchema = z.object({
|
|
4117
4118
|
isPromoted: z.boolean()
|
|
4118
4119
|
});
|
|
4119
|
-
const EventFileUploadsDTOSchema = z.object({
|
|
4120
|
-
publicUrl: URLSchema,
|
|
4121
|
-
uploadUrl: URLSchema
|
|
4122
|
-
}).array();
|
|
4123
4120
|
const constraints$2 = {
|
|
4124
4121
|
adress: {
|
|
4125
4122
|
minLength: 3,
|
|
@@ -4135,27 +4132,37 @@ const constraints$2 = {
|
|
|
4135
4132
|
}
|
|
4136
4133
|
};
|
|
4137
4134
|
const ImportDTOSchema = z.object({
|
|
4135
|
+
createdAt: z.string().datetime(),
|
|
4138
4136
|
id: StringSchema,
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4137
|
+
organizersNames: StringSchema.array(),
|
|
4138
|
+
partialEventState: EventDTOSchema.partial(),
|
|
4139
|
+
source: z.literal("facebook"),
|
|
4140
|
+
userId: StringSchema
|
|
4142
4141
|
});
|
|
4143
4142
|
const OrganizerDTOSchema = z.object({
|
|
4144
4143
|
eventsIds: EventIdSchema.array(),
|
|
4145
4144
|
id: OrganizerIdSchema,
|
|
4145
|
+
imageUrl: URLSchema.nullable(),
|
|
4146
4146
|
name: StringSchema
|
|
4147
4147
|
});
|
|
4148
4148
|
const CreateOrganizerDTOSchema = z.object({
|
|
4149
4149
|
id: OrganizerIdSchema,
|
|
4150
|
+
imageUrl: URLSchema.nullable(),
|
|
4150
4151
|
name: StringSchema
|
|
4151
4152
|
});
|
|
4152
|
-
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true })
|
|
4153
|
+
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true }).extend({
|
|
4154
|
+
imageUrl: URLSchema.nullable().optional()
|
|
4155
|
+
});
|
|
4153
4156
|
const constraints$1 = {
|
|
4154
4157
|
name: {
|
|
4155
4158
|
minLength: 3,
|
|
4156
4159
|
maxLength: 100
|
|
4157
4160
|
}
|
|
4158
4161
|
};
|
|
4162
|
+
const FileUploadDTOSchema = z.object({
|
|
4163
|
+
publicUrl: URLSchema,
|
|
4164
|
+
uploadUrl: URLSchema
|
|
4165
|
+
});
|
|
4159
4166
|
const constraints = {
|
|
4160
4167
|
events: constraints$2,
|
|
4161
4168
|
organizers: constraints$1
|
|
@@ -4166,7 +4173,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4166
4173
|
CreateOrganizerDTOSchema,
|
|
4167
4174
|
DisplayEventDTOSchema,
|
|
4168
4175
|
EventDTOSchema,
|
|
4169
|
-
|
|
4176
|
+
FileUploadDTOSchema,
|
|
4170
4177
|
ImportDTOSchema,
|
|
4171
4178
|
OrganizerDTOSchema,
|
|
4172
4179
|
PromoteEventDTOSchema,
|
|
@@ -4177,7 +4184,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4177
4184
|
const CreatePartialImportedEventDTOSchema = z.object({
|
|
4178
4185
|
partialEventState: EventDTOSchema.partial(),
|
|
4179
4186
|
token: StringSchema,
|
|
4180
|
-
userId: StringSchema
|
|
4187
|
+
userId: StringSchema,
|
|
4188
|
+
organizersNames: StringSchema.array(),
|
|
4189
|
+
source: z.literal("facebook")
|
|
4181
4190
|
});
|
|
4182
4191
|
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4183
4192
|
__proto__: null,
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4086,7 +4086,8 @@ 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
4093
|
const CreateEventDTOSchema = z.object({
|
|
@@ -4114,10 +4115,6 @@ const DisplayEventDTOSchema = z.object({
|
|
|
4114
4115
|
const PromoteEventDTOSchema = z.object({
|
|
4115
4116
|
isPromoted: z.boolean()
|
|
4116
4117
|
});
|
|
4117
|
-
const EventFileUploadsDTOSchema = z.object({
|
|
4118
|
-
publicUrl: URLSchema,
|
|
4119
|
-
uploadUrl: URLSchema
|
|
4120
|
-
}).array();
|
|
4121
4118
|
const constraints$2 = {
|
|
4122
4119
|
adress: {
|
|
4123
4120
|
minLength: 3,
|
|
@@ -4133,27 +4130,37 @@ const constraints$2 = {
|
|
|
4133
4130
|
}
|
|
4134
4131
|
};
|
|
4135
4132
|
const ImportDTOSchema = z.object({
|
|
4133
|
+
createdAt: z.string().datetime(),
|
|
4136
4134
|
id: StringSchema,
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4135
|
+
organizersNames: StringSchema.array(),
|
|
4136
|
+
partialEventState: EventDTOSchema.partial(),
|
|
4137
|
+
source: z.literal("facebook"),
|
|
4138
|
+
userId: StringSchema
|
|
4140
4139
|
});
|
|
4141
4140
|
const OrganizerDTOSchema = z.object({
|
|
4142
4141
|
eventsIds: EventIdSchema.array(),
|
|
4143
4142
|
id: OrganizerIdSchema,
|
|
4143
|
+
imageUrl: URLSchema.nullable(),
|
|
4144
4144
|
name: StringSchema
|
|
4145
4145
|
});
|
|
4146
4146
|
const CreateOrganizerDTOSchema = z.object({
|
|
4147
4147
|
id: OrganizerIdSchema,
|
|
4148
|
+
imageUrl: URLSchema.nullable(),
|
|
4148
4149
|
name: StringSchema
|
|
4149
4150
|
});
|
|
4150
|
-
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true })
|
|
4151
|
+
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true }).extend({
|
|
4152
|
+
imageUrl: URLSchema.nullable().optional()
|
|
4153
|
+
});
|
|
4151
4154
|
const constraints$1 = {
|
|
4152
4155
|
name: {
|
|
4153
4156
|
minLength: 3,
|
|
4154
4157
|
maxLength: 100
|
|
4155
4158
|
}
|
|
4156
4159
|
};
|
|
4160
|
+
const FileUploadDTOSchema = z.object({
|
|
4161
|
+
publicUrl: URLSchema,
|
|
4162
|
+
uploadUrl: URLSchema
|
|
4163
|
+
});
|
|
4157
4164
|
const constraints = {
|
|
4158
4165
|
events: constraints$2,
|
|
4159
4166
|
organizers: constraints$1
|
|
@@ -4164,7 +4171,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4164
4171
|
CreateOrganizerDTOSchema,
|
|
4165
4172
|
DisplayEventDTOSchema,
|
|
4166
4173
|
EventDTOSchema,
|
|
4167
|
-
|
|
4174
|
+
FileUploadDTOSchema,
|
|
4168
4175
|
ImportDTOSchema,
|
|
4169
4176
|
OrganizerDTOSchema,
|
|
4170
4177
|
PromoteEventDTOSchema,
|
|
@@ -4175,7 +4182,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4175
4182
|
const CreatePartialImportedEventDTOSchema = z.object({
|
|
4176
4183
|
partialEventState: EventDTOSchema.partial(),
|
|
4177
4184
|
token: StringSchema,
|
|
4178
|
-
userId: StringSchema
|
|
4185
|
+
userId: StringSchema,
|
|
4186
|
+
organizersNames: StringSchema.array(),
|
|
4187
|
+
source: z.literal("facebook")
|
|
4179
4188
|
});
|
|
4180
4189
|
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4181
4190
|
__proto__: null,
|