expo-backend-types 0.52.0 → 0.53.0-EXPO-360-Tato-Bores.1
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/src/event/dto/create-event.dto.d.ts +68 -2
- package/dist/src/event/dto/create-event.dto.js +6 -0
- package/dist/src/event/dto/delete-banner-event.dto.d.ts +18 -0
- package/dist/src/event/dto/delete-banner-event.dto.js +12 -0
- package/dist/src/event/dto/delete-event.dto.d.ts +18 -0
- package/dist/src/event/dto/delete-main-picture-event.dto.d.ts +18 -0
- package/dist/src/event/dto/delete-main-picture-event.dto.js +12 -0
- package/dist/src/event/dto/event.dto.d.ts +9 -0
- package/dist/src/event/dto/event.dto.js +13 -0
- package/dist/src/event/dto/get-active-events.dto.d.ts +30 -0
- package/dist/src/event/dto/get-all-event.dto.d.ts +264 -0
- package/dist/src/event/dto/get-all-statistics.dto.d.ts +9 -0
- package/dist/src/event/dto/get-by-id-event.dto.d.ts +96 -0
- package/dist/src/event/dto/get-statistics-by-id-event.dto.d.ts +9 -0
- package/dist/src/event/dto/toggle-active-event.dto.d.ts +9 -0
- package/dist/src/event/dto/update-banner-event.dto.d.ts +33 -0
- package/dist/src/event/dto/update-banner-event.dto.js +18 -0
- package/dist/src/event/dto/update-event.dto.d.ts +185 -135
- package/dist/src/event/dto/update-event.dto.js +9 -1
- package/dist/src/event/dto/update-main-picture-event.dto.d.ts +33 -0
- package/dist/src/event/dto/update-main-picture-event.dto.js +18 -0
- package/dist/src/event-folder/dto/get-all-event-folder.dto.d.ts +42 -0
- package/dist/src/event-folder/dto/get-by-id-event-folder.dto.d.ts +30 -0
- package/dist/src/i18n/es.d.ts +7 -0
- package/dist/src/i18n/es.js +7 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/mi-expo/dto/get-invitations.dto.d.ts +3 -0
- package/dist/src/profile/dto/delete-image-profile.dto.d.ts +18 -0
- package/dist/src/profile/dto/delete-image-profile.dto.js +12 -0
- package/dist/src/profile/dto/update-image-profile.dto.d.ts +33 -0
- package/dist/src/profile/dto/update-image-profile.dto.js +18 -0
- package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +30 -0
- package/dist/src/ticket/dto/create-ticket.dto.d.ts +30 -0
- package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +3 -0
- package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +3 -0
- package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +42 -0
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +3 -0
- package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +42 -0
- package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +30 -0
- package/dist/types/prisma-schema/edge.js +6 -3
- package/dist/types/prisma-schema/index-browser.js +3 -0
- package/dist/types/prisma-schema/index.d.ts +244 -1
- package/dist/types/prisma-schema/index.js +6 -3
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +9 -6
- package/dist/types/prisma-schema/wasm.js +3 -0
- package/dist/types/schema.d.ts +397 -77
- package/package.json +1 -1
@@ -1,52 +1,48 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
export declare const updateEventSchema: z.ZodObject<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
endingDate: z.ZodDate;
|
24
|
-
location: z.ZodString;
|
25
|
-
folderId: z.ZodNullable<z.ZodString>;
|
26
|
-
tagAssistedId: z.ZodString;
|
27
|
-
tagConfirmedId: z.ZodString;
|
28
|
-
active: z.ZodBoolean;
|
29
|
-
supraEventId: z.ZodNullable<z.ZodString>;
|
30
|
-
created_at: z.ZodDate;
|
31
|
-
updated_at: z.ZodDate;
|
32
|
-
}, "location" | "name" | "date" | "startingDate" | "endingDate">, {
|
2
|
+
export declare const updateEventSchema: z.ZodObject<{
|
3
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
4
|
+
location: z.ZodOptional<z.ZodString>;
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
6
|
+
date: z.ZodOptional<z.ZodDate>;
|
7
|
+
startingDate: z.ZodOptional<z.ZodDate>;
|
8
|
+
endingDate: z.ZodOptional<z.ZodDate>;
|
9
|
+
mainPictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
10
|
+
bannerUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
11
|
+
folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
12
|
+
tagsId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
13
|
+
subEvents: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
14
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
15
|
+
location: z.ZodOptional<z.ZodString>;
|
16
|
+
name: z.ZodOptional<z.ZodString>;
|
17
|
+
date: z.ZodOptional<z.ZodDate>;
|
18
|
+
startingDate: z.ZodOptional<z.ZodDate>;
|
19
|
+
endingDate: z.ZodOptional<z.ZodDate>;
|
20
|
+
mainPictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
21
|
+
bannerUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
22
|
+
}, {
|
33
23
|
id: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
34
24
|
}>, "strip", z.ZodTypeAny, {
|
35
|
-
location: string;
|
36
25
|
id: string;
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
26
|
+
description?: string | null | undefined;
|
27
|
+
location?: string | undefined;
|
28
|
+
name?: string | undefined;
|
29
|
+
date?: Date | undefined;
|
30
|
+
startingDate?: Date | undefined;
|
31
|
+
endingDate?: Date | undefined;
|
32
|
+
mainPictureUrl?: string | null | undefined;
|
33
|
+
bannerUrl?: string | null | undefined;
|
41
34
|
}, {
|
42
|
-
location: string;
|
43
35
|
id: string;
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
36
|
+
description?: string | null | undefined;
|
37
|
+
location?: string | undefined;
|
38
|
+
name?: string | undefined;
|
39
|
+
date?: Date | undefined;
|
40
|
+
startingDate?: Date | undefined;
|
41
|
+
endingDate?: Date | undefined;
|
42
|
+
mainPictureUrl?: string | null | undefined;
|
43
|
+
bannerUrl?: string | null | undefined;
|
44
|
+
}>, "many">>;
|
45
|
+
eventTickets: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<Omit<{
|
50
46
|
id: z.ZodString;
|
51
47
|
amount: z.ZodNullable<z.ZodNumber>;
|
52
48
|
type: z.ZodNativeEnum<{
|
@@ -71,81 +67,105 @@ export declare const updateEventSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
71
67
|
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
72
68
|
amount: number | null;
|
73
69
|
price: number | null;
|
74
|
-
}>, "many"
|
75
|
-
}
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
70
|
+
}>, "many">>;
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
72
|
+
description?: string | null | undefined;
|
73
|
+
location?: string | undefined;
|
74
|
+
name?: string | undefined;
|
75
|
+
date?: Date | undefined;
|
76
|
+
startingDate?: Date | undefined;
|
77
|
+
endingDate?: Date | undefined;
|
78
|
+
mainPictureUrl?: string | null | undefined;
|
79
|
+
bannerUrl?: string | null | undefined;
|
80
|
+
folderId?: string | null | undefined;
|
81
|
+
subEvents?: {
|
84
82
|
id: string;
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
83
|
+
description?: string | null | undefined;
|
84
|
+
location?: string | undefined;
|
85
|
+
name?: string | undefined;
|
86
|
+
date?: Date | undefined;
|
87
|
+
startingDate?: Date | undefined;
|
88
|
+
endingDate?: Date | undefined;
|
89
|
+
mainPictureUrl?: string | null | undefined;
|
90
|
+
bannerUrl?: string | null | undefined;
|
91
|
+
}[] | undefined;
|
92
|
+
tagsId?: string[] | undefined;
|
93
|
+
eventTickets?: {
|
92
94
|
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
93
95
|
amount: number | null;
|
94
96
|
price: number | null;
|
95
|
-
}[];
|
97
|
+
}[] | undefined;
|
96
98
|
}, {
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
99
|
+
description?: string | null | undefined;
|
100
|
+
location?: string | undefined;
|
101
|
+
name?: string | undefined;
|
102
|
+
date?: Date | undefined;
|
103
|
+
startingDate?: Date | undefined;
|
104
|
+
endingDate?: Date | undefined;
|
105
|
+
mainPictureUrl?: string | null | undefined;
|
106
|
+
bannerUrl?: string | null | undefined;
|
107
|
+
folderId?: string | null | undefined;
|
108
|
+
subEvents?: {
|
105
109
|
id: string;
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
110
|
+
description?: string | null | undefined;
|
111
|
+
location?: string | undefined;
|
112
|
+
name?: string | undefined;
|
113
|
+
date?: Date | undefined;
|
114
|
+
startingDate?: Date | undefined;
|
115
|
+
endingDate?: Date | undefined;
|
116
|
+
mainPictureUrl?: string | null | undefined;
|
117
|
+
bannerUrl?: string | null | undefined;
|
118
|
+
}[] | undefined;
|
119
|
+
tagsId?: string[] | undefined;
|
120
|
+
eventTickets?: {
|
113
121
|
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
114
122
|
amount: number | null;
|
115
123
|
price: number | null;
|
116
|
-
}[];
|
124
|
+
}[] | undefined;
|
117
125
|
}>;
|
118
126
|
declare const UpdateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
127
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
128
|
+
location: z.ZodOptional<z.ZodString>;
|
129
|
+
name: z.ZodOptional<z.ZodString>;
|
130
|
+
date: z.ZodOptional<z.ZodString>;
|
131
|
+
startingDate: z.ZodOptional<z.ZodString>;
|
132
|
+
endingDate: z.ZodOptional<z.ZodString>;
|
133
|
+
mainPictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
134
|
+
bannerUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
135
|
+
folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
136
|
+
tagsId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
137
|
+
subEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
138
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
139
|
+
location: z.ZodOptional<z.ZodString>;
|
140
|
+
name: z.ZodOptional<z.ZodString>;
|
141
|
+
date: z.ZodOptional<z.ZodString>;
|
142
|
+
startingDate: z.ZodOptional<z.ZodString>;
|
143
|
+
endingDate: z.ZodOptional<z.ZodString>;
|
144
|
+
mainPictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
145
|
+
bannerUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
132
146
|
id: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
133
147
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
134
|
-
location: string;
|
135
148
|
id: string;
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
149
|
+
description?: string | null | undefined;
|
150
|
+
location?: string | undefined;
|
151
|
+
name?: string | undefined;
|
152
|
+
date?: string | undefined;
|
153
|
+
startingDate?: string | undefined;
|
154
|
+
endingDate?: string | undefined;
|
155
|
+
mainPictureUrl?: string | null | undefined;
|
156
|
+
bannerUrl?: string | null | undefined;
|
140
157
|
}, {
|
141
|
-
location: string;
|
142
158
|
id: string;
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
159
|
+
description?: string | null | undefined;
|
160
|
+
location?: string | undefined;
|
161
|
+
name?: string | undefined;
|
162
|
+
date?: string | undefined;
|
163
|
+
startingDate?: string | undefined;
|
164
|
+
endingDate?: string | undefined;
|
165
|
+
mainPictureUrl?: string | null | undefined;
|
166
|
+
bannerUrl?: string | null | undefined;
|
167
|
+
}>, "many">>;
|
168
|
+
eventTickets: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<Omit<{
|
149
169
|
id: z.ZodString;
|
150
170
|
amount: z.ZodNullable<z.ZodNumber>;
|
151
171
|
type: z.ZodNativeEnum<{
|
@@ -170,49 +190,61 @@ declare const UpdateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.
|
|
170
190
|
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
171
191
|
amount: number | null;
|
172
192
|
price: number | null;
|
173
|
-
}>, "many"
|
193
|
+
}>, "many">>;
|
174
194
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
195
|
+
description?: string | null | undefined;
|
196
|
+
location?: string | undefined;
|
197
|
+
name?: string | undefined;
|
198
|
+
date?: string | undefined;
|
199
|
+
startingDate?: string | undefined;
|
200
|
+
endingDate?: string | undefined;
|
201
|
+
mainPictureUrl?: string | null | undefined;
|
202
|
+
bannerUrl?: string | null | undefined;
|
203
|
+
folderId?: string | null | undefined;
|
204
|
+
subEvents?: {
|
183
205
|
id: string;
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
206
|
+
description?: string | null | undefined;
|
207
|
+
location?: string | undefined;
|
208
|
+
name?: string | undefined;
|
209
|
+
date?: string | undefined;
|
210
|
+
startingDate?: string | undefined;
|
211
|
+
endingDate?: string | undefined;
|
212
|
+
mainPictureUrl?: string | null | undefined;
|
213
|
+
bannerUrl?: string | null | undefined;
|
214
|
+
}[] | undefined;
|
215
|
+
tagsId?: string[] | undefined;
|
216
|
+
eventTickets?: {
|
191
217
|
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
192
218
|
amount: number | null;
|
193
219
|
price: number | null;
|
194
|
-
}[];
|
220
|
+
}[] | undefined;
|
195
221
|
}, {
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
222
|
+
description?: string | null | undefined;
|
223
|
+
location?: string | undefined;
|
224
|
+
name?: string | undefined;
|
225
|
+
date?: string | undefined;
|
226
|
+
startingDate?: string | undefined;
|
227
|
+
endingDate?: string | undefined;
|
228
|
+
mainPictureUrl?: string | null | undefined;
|
229
|
+
bannerUrl?: string | null | undefined;
|
230
|
+
folderId?: string | null | undefined;
|
231
|
+
subEvents?: {
|
204
232
|
id: string;
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
233
|
+
description?: string | null | undefined;
|
234
|
+
location?: string | undefined;
|
235
|
+
name?: string | undefined;
|
236
|
+
date?: string | undefined;
|
237
|
+
startingDate?: string | undefined;
|
238
|
+
endingDate?: string | undefined;
|
239
|
+
mainPictureUrl?: string | null | undefined;
|
240
|
+
bannerUrl?: string | null | undefined;
|
241
|
+
}[] | undefined;
|
242
|
+
tagsId?: string[] | undefined;
|
243
|
+
eventTickets?: {
|
212
244
|
type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
|
213
245
|
amount: number | null;
|
214
246
|
price: number | null;
|
215
|
-
}[];
|
247
|
+
}[] | undefined;
|
216
248
|
}>>;
|
217
249
|
export declare class UpdateEventDto extends UpdateEventDto_base {
|
218
250
|
}
|
@@ -223,6 +255,9 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
223
255
|
startingDate: z.ZodDate;
|
224
256
|
endingDate: z.ZodDate;
|
225
257
|
location: z.ZodString;
|
258
|
+
mainPictureUrl: z.ZodNullable<z.ZodString>;
|
259
|
+
bannerUrl: z.ZodNullable<z.ZodString>;
|
260
|
+
description: z.ZodNullable<z.ZodString>;
|
226
261
|
folderId: z.ZodNullable<z.ZodString>;
|
227
262
|
tagAssistedId: z.ZodString;
|
228
263
|
tagConfirmedId: z.ZodString;
|
@@ -329,6 +364,7 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
329
364
|
price: number | null;
|
330
365
|
}>, "many">;
|
331
366
|
}>, "strip", z.ZodTypeAny, {
|
367
|
+
description: string | null;
|
332
368
|
location: string;
|
333
369
|
id: string;
|
334
370
|
name: string;
|
@@ -338,6 +374,8 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
338
374
|
created_at: Date;
|
339
375
|
updated_at: Date;
|
340
376
|
active: boolean;
|
377
|
+
mainPictureUrl: string | null;
|
378
|
+
bannerUrl: string | null;
|
341
379
|
folderId: string | null;
|
342
380
|
tagAssistedId: string;
|
343
381
|
tagConfirmedId: string;
|
@@ -365,6 +403,7 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
365
403
|
};
|
366
404
|
};
|
367
405
|
}, {
|
406
|
+
description: string | null;
|
368
407
|
location: string;
|
369
408
|
id: string;
|
370
409
|
name: string;
|
@@ -374,6 +413,8 @@ export declare const updateEventResponseSchema: z.ZodObject<z.objectUtil.extendS
|
|
374
413
|
created_at: Date;
|
375
414
|
updated_at: Date;
|
376
415
|
active: boolean;
|
416
|
+
mainPictureUrl: string | null;
|
417
|
+
bannerUrl: string | null;
|
377
418
|
folderId: string | null;
|
378
419
|
tagAssistedId: string;
|
379
420
|
tagConfirmedId: string;
|
@@ -408,6 +449,9 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
408
449
|
startingDate: z.ZodString;
|
409
450
|
endingDate: z.ZodString;
|
410
451
|
location: z.ZodString;
|
452
|
+
mainPictureUrl: z.ZodNullable<z.ZodString>;
|
453
|
+
bannerUrl: z.ZodNullable<z.ZodString>;
|
454
|
+
description: z.ZodNullable<z.ZodString>;
|
411
455
|
folderId: z.ZodNullable<z.ZodString>;
|
412
456
|
tagAssistedId: z.ZodString;
|
413
457
|
tagConfirmedId: z.ZodString;
|
@@ -512,6 +556,7 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
512
556
|
price: number | null;
|
513
557
|
}>, "many">;
|
514
558
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
559
|
+
description: string | null;
|
515
560
|
location: string;
|
516
561
|
id: string;
|
517
562
|
name: string;
|
@@ -521,6 +566,8 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
521
566
|
created_at: string;
|
522
567
|
updated_at: string;
|
523
568
|
active: boolean;
|
569
|
+
mainPictureUrl: string | null;
|
570
|
+
bannerUrl: string | null;
|
524
571
|
folderId: string | null;
|
525
572
|
tagAssistedId: string;
|
526
573
|
tagConfirmedId: string;
|
@@ -548,6 +595,7 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
548
595
|
};
|
549
596
|
};
|
550
597
|
}, {
|
598
|
+
description: string | null;
|
551
599
|
location: string;
|
552
600
|
id: string;
|
553
601
|
name: string;
|
@@ -557,6 +605,8 @@ declare const UpdateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
|
|
557
605
|
created_at: string;
|
558
606
|
updated_at: string;
|
559
607
|
active: boolean;
|
608
|
+
mainPictureUrl: string | null;
|
609
|
+
bannerUrl: string | null;
|
560
610
|
folderId: string | null;
|
561
611
|
tagAssistedId: string;
|
562
612
|
tagConfirmedId: string;
|
@@ -18,6 +18,9 @@ exports.updateEventSchema = event_dto_1.eventSchema
|
|
18
18
|
location: true,
|
19
19
|
startingDate: true,
|
20
20
|
endingDate: true,
|
21
|
+
bannerUrl: true,
|
22
|
+
mainPictureUrl: true,
|
23
|
+
description: true,
|
21
24
|
})
|
22
25
|
.merge(zod_1.default.object({
|
23
26
|
tagsId: zod_1.default.array(tag_dto_1.tagSchema.shape.id),
|
@@ -28,14 +31,19 @@ exports.updateEventSchema = event_dto_1.eventSchema
|
|
28
31
|
date: true,
|
29
32
|
startingDate: true,
|
30
33
|
endingDate: true,
|
34
|
+
bannerUrl: true,
|
35
|
+
mainPictureUrl: true,
|
36
|
+
description: true,
|
31
37
|
})
|
38
|
+
.partial()
|
32
39
|
.extend({
|
33
40
|
id: event_dto_1.eventSchema.shape.id.or(zod_1.default.literal('')),
|
34
41
|
})),
|
35
42
|
eventTickets: zod_1.default.array((0, event_tickets_dto_1.addEventTicketRefinements)(event_tickets_dto_1.baseEventTicketsSchema.omit({
|
36
43
|
id: true,
|
37
44
|
}))),
|
38
|
-
}))
|
45
|
+
}))
|
46
|
+
.partial();
|
39
47
|
class UpdateEventDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateEventSchema) {
|
40
48
|
}
|
41
49
|
exports.UpdateEventDto = UpdateEventDto;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
export declare const updateMainPictureEventSchema: import("zod").ZodObject<Pick<{
|
2
|
+
image: import("zod").ZodType<Express.Multer.File, import("zod").ZodTypeDef, Express.Multer.File>;
|
3
|
+
}, "image">, "strip", import("zod").ZodTypeAny, {
|
4
|
+
image: Express.Multer.File;
|
5
|
+
}, {
|
6
|
+
image: Express.Multer.File;
|
7
|
+
}>;
|
8
|
+
declare const UpdateMainPictureEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
9
|
+
image: import("zod").ZodType<Express.Multer.File, import("zod").ZodTypeDef, Express.Multer.File>;
|
10
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
11
|
+
image: Express.Multer.File;
|
12
|
+
}, {
|
13
|
+
image: Express.Multer.File;
|
14
|
+
}>>;
|
15
|
+
export declare class UpdateMainPictureEventDto extends UpdateMainPictureEventDto_base {
|
16
|
+
}
|
17
|
+
export declare const updateMainPictureEventResponseSchema: import("zod").ZodObject<Pick<{
|
18
|
+
message: import("zod").ZodString;
|
19
|
+
}, "message">, "strip", import("zod").ZodTypeAny, {
|
20
|
+
message: string;
|
21
|
+
}, {
|
22
|
+
message: string;
|
23
|
+
}>;
|
24
|
+
declare const UpdateMainPictureEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
25
|
+
message: import("zod").ZodString;
|
26
|
+
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
27
|
+
message: string;
|
28
|
+
}, {
|
29
|
+
message: string;
|
30
|
+
}>>;
|
31
|
+
export declare class UpdateMainPictureEventResponseDto extends UpdateMainPictureEventResponseDto_base {
|
32
|
+
}
|
33
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UpdateMainPictureEventResponseDto = exports.updateMainPictureEventResponseSchema = exports.UpdateMainPictureEventDto = exports.updateMainPictureEventSchema = void 0;
|
4
|
+
const update_image_dto_1 = require("../../image/dto/update-image.dto");
|
5
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
+
exports.updateMainPictureEventSchema = update_image_dto_1.updateImageSchema.pick({
|
7
|
+
image: true,
|
8
|
+
});
|
9
|
+
class UpdateMainPictureEventDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateMainPictureEventSchema) {
|
10
|
+
}
|
11
|
+
exports.UpdateMainPictureEventDto = UpdateMainPictureEventDto;
|
12
|
+
exports.updateMainPictureEventResponseSchema = update_image_dto_1.updateImageResponseSchema.pick({
|
13
|
+
message: true,
|
14
|
+
});
|
15
|
+
class UpdateMainPictureEventResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateMainPictureEventResponseSchema) {
|
16
|
+
}
|
17
|
+
exports.UpdateMainPictureEventResponseDto = UpdateMainPictureEventResponseDto;
|
18
|
+
//# sourceMappingURL=update-main-picture-event.dto.js.map
|