expo-backend-types 0.48.0-EXPO-339-Testing-y-bugfixing.1 → 0.49.0-EXPO-345-ExpoBackend-Agregar-los-nuevos-requerimientos-a-las-rutas.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.
Files changed (49) hide show
  1. package/dist/src/event/dto/create-event.dto.d.ts +72 -23
  2. package/dist/src/event/dto/create-event.dto.js +7 -1
  3. package/dist/src/event/dto/delete-banner-event.dto.d.ts +18 -0
  4. package/dist/src/event/dto/delete-banner-event.dto.js +12 -0
  5. package/dist/src/event/dto/delete-event.dto.d.ts +18 -0
  6. package/dist/src/event/dto/delete-main-picture-event.dto.d.ts +18 -0
  7. package/dist/src/event/dto/delete-main-picture-event.dto.js +12 -0
  8. package/dist/src/event/dto/event-tickets.dto.d.ts +2 -33
  9. package/dist/src/event/dto/event-tickets.dto.js +8 -18
  10. package/dist/src/event/dto/event.dto.d.ts +9 -0
  11. package/dist/src/event/dto/event.dto.js +13 -0
  12. package/dist/src/event/dto/get-active-events.dto.d.ts +33 -23
  13. package/dist/src/event/dto/get-all-event.dto.d.ts +272 -48
  14. package/dist/src/event/dto/get-all-event.dto.js +2 -2
  15. package/dist/src/event/dto/get-by-id-event.dto.d.ts +99 -23
  16. package/dist/src/event/dto/toggle-active-event.dto.d.ts +9 -0
  17. package/dist/src/event/dto/update-banner-event.dto.d.ts +33 -0
  18. package/dist/src/event/dto/update-banner-event.dto.js +18 -0
  19. package/dist/src/event/dto/update-event.dto.d.ts +75 -46
  20. package/dist/src/event/dto/update-event.dto.js +8 -2
  21. package/dist/src/event/dto/update-main-picture-event.dto.d.ts +33 -0
  22. package/dist/src/event/dto/update-main-picture-event.dto.js +18 -0
  23. package/dist/src/event-folder/dto/get-all-event-folder.dto.d.ts +42 -0
  24. package/dist/src/event-folder/dto/get-by-id-event-folder.dto.d.ts +30 -0
  25. package/dist/src/i18n/es.d.ts +7 -1
  26. package/dist/src/i18n/es.js +7 -3
  27. package/dist/src/i18n/es.js.map +1 -1
  28. package/dist/src/mi-expo/dto/get-invitations.dto.d.ts +3 -0
  29. package/dist/src/profile/dto/delete-image-profile.dto.d.ts +18 -0
  30. package/dist/src/profile/dto/delete-image-profile.dto.js +12 -0
  31. package/dist/src/profile/dto/update-image-profile.dto.d.ts +33 -0
  32. package/dist/src/profile/dto/update-image-profile.dto.js +18 -0
  33. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +30 -0
  34. package/dist/src/ticket/dto/create-ticket.dto.d.ts +30 -0
  35. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +3 -0
  36. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +3 -0
  37. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +42 -0
  38. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +3 -0
  39. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +42 -0
  40. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +30 -0
  41. package/dist/types/prisma-schema/edge.js +6 -3
  42. package/dist/types/prisma-schema/index-browser.js +3 -0
  43. package/dist/types/prisma-schema/index.d.ts +214 -1
  44. package/dist/types/prisma-schema/index.js +6 -3
  45. package/dist/types/prisma-schema/package.json +1 -1
  46. package/dist/types/prisma-schema/schema.prisma +10 -7
  47. package/dist/types/prisma-schema/wasm.js +3 -0
  48. package/dist/types/schema.d.ts +383 -63
  49. package/package.json +1 -2
@@ -6,6 +6,9 @@ export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pic
6
6
  startingDate: z.ZodDate;
7
7
  endingDate: z.ZodDate;
8
8
  location: z.ZodString;
9
+ mainPictureUrl: z.ZodNullable<z.ZodString>;
10
+ bannerUrl: z.ZodNullable<z.ZodString>;
11
+ description: z.ZodNullable<z.ZodString>;
9
12
  folderId: z.ZodNullable<z.ZodString>;
10
13
  tagAssistedId: z.ZodString;
11
14
  tagConfirmedId: z.ZodString;
@@ -13,7 +16,7 @@ export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pic
13
16
  supraEventId: z.ZodNullable<z.ZodString>;
14
17
  created_at: z.ZodDate;
15
18
  updated_at: z.ZodDate;
16
- }, "location" | "name" | "date" | "startingDate" | "endingDate" | "folderId">, {
19
+ }, "description" | "location" | "name" | "date" | "startingDate" | "endingDate" | "mainPictureUrl" | "bannerUrl" | "folderId">, {
17
20
  subEvents: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
18
21
  id: z.ZodString;
19
22
  name: z.ZodString;
@@ -21,6 +24,9 @@ export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pic
21
24
  startingDate: z.ZodDate;
22
25
  endingDate: z.ZodDate;
23
26
  location: z.ZodString;
27
+ mainPictureUrl: z.ZodNullable<z.ZodString>;
28
+ bannerUrl: z.ZodNullable<z.ZodString>;
29
+ description: z.ZodNullable<z.ZodString>;
24
30
  folderId: z.ZodNullable<z.ZodString>;
25
31
  tagAssistedId: z.ZodString;
26
32
  tagConfirmedId: z.ZodString;
@@ -28,21 +34,27 @@ export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pic
28
34
  supraEventId: z.ZodNullable<z.ZodString>;
29
35
  created_at: z.ZodDate;
30
36
  updated_at: z.ZodDate;
31
- }, "location" | "name" | "date" | "startingDate" | "endingDate">, "strip", z.ZodTypeAny, {
37
+ }, "description" | "location" | "name" | "date" | "startingDate" | "endingDate" | "mainPictureUrl" | "bannerUrl">, "strip", z.ZodTypeAny, {
38
+ description: string | null;
32
39
  location: string;
33
40
  name: string;
34
41
  date: Date;
35
42
  startingDate: Date;
36
43
  endingDate: Date;
44
+ mainPictureUrl: string | null;
45
+ bannerUrl: string | null;
37
46
  }, {
47
+ description: string | null;
38
48
  location: string;
39
49
  name: string;
40
50
  date: Date;
41
51
  startingDate: Date;
42
52
  endingDate: Date;
53
+ mainPictureUrl: string | null;
54
+ bannerUrl: string | null;
43
55
  }>, "many">>;
44
56
  tagsId: z.ZodArray<z.ZodString, "many">;
45
- eventTickets: z.ZodArray<z.ZodEffects<z.ZodObject<Omit<{
57
+ eventTickets: z.ZodArray<z.ZodObject<Omit<{
46
58
  id: z.ZodString;
47
59
  amount: z.ZodNullable<z.ZodNumber>;
48
60
  type: z.ZodNativeEnum<{
@@ -59,21 +71,16 @@ export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pic
59
71
  type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
60
72
  amount: number | null;
61
73
  price: number | null;
62
- }>, {
63
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
64
- amount: number | null;
65
- price: number | null;
66
- }, {
67
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
68
- amount: number | null;
69
- price: number | null;
70
74
  }>, "many">;
71
75
  }>, "strip", z.ZodTypeAny, {
76
+ description: string | null;
72
77
  location: string;
73
78
  name: string;
74
79
  date: Date;
75
80
  startingDate: Date;
76
81
  endingDate: Date;
82
+ mainPictureUrl: string | null;
83
+ bannerUrl: string | null;
77
84
  folderId: string | null;
78
85
  tagsId: string[];
79
86
  eventTickets: {
@@ -82,18 +89,24 @@ export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pic
82
89
  price: number | null;
83
90
  }[];
84
91
  subEvents?: {
92
+ description: string | null;
85
93
  location: string;
86
94
  name: string;
87
95
  date: Date;
88
96
  startingDate: Date;
89
97
  endingDate: Date;
98
+ mainPictureUrl: string | null;
99
+ bannerUrl: string | null;
90
100
  }[] | undefined;
91
101
  }, {
102
+ description: string | null;
92
103
  location: string;
93
104
  name: string;
94
105
  date: Date;
95
106
  startingDate: Date;
96
107
  endingDate: Date;
108
+ mainPictureUrl: string | null;
109
+ bannerUrl: string | null;
97
110
  folderId: string | null;
98
111
  tagsId: string[];
99
112
  eventTickets: {
@@ -102,58 +115,64 @@ export declare const createEventSchema: z.ZodObject<z.objectUtil.extendShape<Pic
102
115
  price: number | null;
103
116
  }[];
104
117
  subEvents?: {
118
+ description: string | null;
105
119
  location: string;
106
120
  name: string;
107
121
  date: Date;
108
122
  startingDate: Date;
109
123
  endingDate: Date;
124
+ mainPictureUrl: string | null;
125
+ bannerUrl: string | null;
110
126
  }[] | undefined;
111
127
  }>;
112
128
  declare const CreateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
129
+ description: z.ZodNullable<z.ZodString>;
113
130
  location: z.ZodString;
114
131
  name: z.ZodString;
115
132
  date: z.ZodString;
116
133
  startingDate: z.ZodString;
117
134
  endingDate: z.ZodString;
135
+ mainPictureUrl: z.ZodNullable<z.ZodString>;
136
+ bannerUrl: z.ZodNullable<z.ZodString>;
118
137
  folderId: z.ZodNullable<z.ZodString>;
119
138
  subEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
+ description: z.ZodNullable<z.ZodString>;
120
140
  location: z.ZodString;
121
141
  name: z.ZodString;
122
142
  date: z.ZodString;
123
143
  startingDate: z.ZodString;
124
144
  endingDate: z.ZodString;
145
+ mainPictureUrl: z.ZodNullable<z.ZodString>;
146
+ bannerUrl: z.ZodNullable<z.ZodString>;
125
147
  }, z.UnknownKeysParam, z.ZodTypeAny, {
148
+ description: string | null;
126
149
  location: string;
127
150
  name: string;
128
151
  date: string;
129
152
  startingDate: string;
130
153
  endingDate: string;
154
+ mainPictureUrl: string | null;
155
+ bannerUrl: string | null;
131
156
  }, {
157
+ description: string | null;
132
158
  location: string;
133
159
  name: string;
134
160
  date: string;
135
161
  startingDate: string;
136
162
  endingDate: string;
163
+ mainPictureUrl: string | null;
164
+ bannerUrl: string | null;
137
165
  }>, "many">>;
138
166
  tagsId: z.ZodArray<z.ZodString, "many">;
139
- eventTickets: z.ZodArray<z.ZodEffects<z.ZodObject<Omit<{
140
- id: z.ZodString;
141
- amount: z.ZodNullable<z.ZodNumber>;
167
+ eventTickets: z.ZodArray<z.ZodObject<{
142
168
  type: z.ZodNativeEnum<{
143
169
  PARTICIPANT: "PARTICIPANT";
144
170
  STAFF: "STAFF";
145
171
  SPECTATOR: "SPECTATOR";
146
172
  }>;
173
+ amount: z.ZodNullable<z.ZodNumber>;
147
174
  price: z.ZodNullable<z.ZodNumber>;
148
- }, "id">, "strip", z.ZodTypeAny, {
149
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
150
- amount: number | null;
151
- price: number | null;
152
- }, {
153
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
154
- amount: number | null;
155
- price: number | null;
156
- }>, {
175
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
157
176
  type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
158
177
  amount: number | null;
159
178
  price: number | null;
@@ -163,11 +182,14 @@ declare const CreateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.
163
182
  price: number | null;
164
183
  }>, "many">;
165
184
  }, z.UnknownKeysParam, z.ZodTypeAny, {
185
+ description: string | null;
166
186
  location: string;
167
187
  name: string;
168
188
  date: string;
169
189
  startingDate: string;
170
190
  endingDate: string;
191
+ mainPictureUrl: string | null;
192
+ bannerUrl: string | null;
171
193
  folderId: string | null;
172
194
  tagsId: string[];
173
195
  eventTickets: {
@@ -176,18 +198,24 @@ declare const CreateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.
176
198
  price: number | null;
177
199
  }[];
178
200
  subEvents?: {
201
+ description: string | null;
179
202
  location: string;
180
203
  name: string;
181
204
  date: string;
182
205
  startingDate: string;
183
206
  endingDate: string;
207
+ mainPictureUrl: string | null;
208
+ bannerUrl: string | null;
184
209
  }[] | undefined;
185
210
  }, {
211
+ description: string | null;
186
212
  location: string;
187
213
  name: string;
188
214
  date: string;
189
215
  startingDate: string;
190
216
  endingDate: string;
217
+ mainPictureUrl: string | null;
218
+ bannerUrl: string | null;
191
219
  folderId: string | null;
192
220
  tagsId: string[];
193
221
  eventTickets: {
@@ -196,11 +224,14 @@ declare const CreateEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.
196
224
  price: number | null;
197
225
  }[];
198
226
  subEvents?: {
227
+ description: string | null;
199
228
  location: string;
200
229
  name: string;
201
230
  date: string;
202
231
  startingDate: string;
203
232
  endingDate: string;
233
+ mainPictureUrl: string | null;
234
+ bannerUrl: string | null;
204
235
  }[] | undefined;
205
236
  }>>;
206
237
  export declare class CreateEventDto extends CreateEventDto_base {
@@ -212,6 +243,9 @@ export declare const createEventResponseSchema: z.ZodObject<{
212
243
  startingDate: z.ZodDate;
213
244
  endingDate: z.ZodDate;
214
245
  location: z.ZodString;
246
+ mainPictureUrl: z.ZodNullable<z.ZodString>;
247
+ bannerUrl: z.ZodNullable<z.ZodString>;
248
+ description: z.ZodNullable<z.ZodString>;
215
249
  folderId: z.ZodNullable<z.ZodString>;
216
250
  tagAssistedId: z.ZodString;
217
251
  tagConfirmedId: z.ZodString;
@@ -220,6 +254,7 @@ export declare const createEventResponseSchema: z.ZodObject<{
220
254
  created_at: z.ZodDate;
221
255
  updated_at: z.ZodDate;
222
256
  }, "strip", z.ZodTypeAny, {
257
+ description: string | null;
223
258
  location: string;
224
259
  id: string;
225
260
  name: string;
@@ -229,11 +264,14 @@ export declare const createEventResponseSchema: z.ZodObject<{
229
264
  created_at: Date;
230
265
  updated_at: Date;
231
266
  active: boolean;
267
+ mainPictureUrl: string | null;
268
+ bannerUrl: string | null;
232
269
  folderId: string | null;
233
270
  tagAssistedId: string;
234
271
  tagConfirmedId: string;
235
272
  supraEventId: string | null;
236
273
  }, {
274
+ description: string | null;
237
275
  location: string;
238
276
  id: string;
239
277
  name: string;
@@ -243,6 +281,8 @@ export declare const createEventResponseSchema: z.ZodObject<{
243
281
  created_at: Date;
244
282
  updated_at: Date;
245
283
  active: boolean;
284
+ mainPictureUrl: string | null;
285
+ bannerUrl: string | null;
246
286
  folderId: string | null;
247
287
  tagAssistedId: string;
248
288
  tagConfirmedId: string;
@@ -255,6 +295,9 @@ declare const CreateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
255
295
  startingDate: z.ZodString;
256
296
  endingDate: z.ZodString;
257
297
  location: z.ZodString;
298
+ mainPictureUrl: z.ZodNullable<z.ZodString>;
299
+ bannerUrl: z.ZodNullable<z.ZodString>;
300
+ description: z.ZodNullable<z.ZodString>;
258
301
  folderId: z.ZodNullable<z.ZodString>;
259
302
  tagAssistedId: z.ZodString;
260
303
  tagConfirmedId: z.ZodString;
@@ -263,6 +306,7 @@ declare const CreateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
263
306
  created_at: z.ZodString;
264
307
  updated_at: z.ZodString;
265
308
  }, z.UnknownKeysParam, z.ZodTypeAny, {
309
+ description: string | null;
266
310
  location: string;
267
311
  id: string;
268
312
  name: string;
@@ -272,11 +316,14 @@ declare const CreateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
272
316
  created_at: string;
273
317
  updated_at: string;
274
318
  active: boolean;
319
+ mainPictureUrl: string | null;
320
+ bannerUrl: string | null;
275
321
  folderId: string | null;
276
322
  tagAssistedId: string;
277
323
  tagConfirmedId: string;
278
324
  supraEventId: string | null;
279
325
  }, {
326
+ description: string | null;
280
327
  location: string;
281
328
  id: string;
282
329
  name: string;
@@ -286,6 +333,8 @@ declare const CreateEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
286
333
  created_at: string;
287
334
  updated_at: string;
288
335
  active: boolean;
336
+ mainPictureUrl: string | null;
337
+ bannerUrl: string | null;
289
338
  folderId: string | null;
290
339
  tagAssistedId: string;
291
340
  tagConfirmedId: string;
@@ -17,6 +17,9 @@ exports.createEventSchema = event_dto_1.eventSchema
17
17
  endingDate: true,
18
18
  location: true,
19
19
  folderId: true,
20
+ mainPictureUrl: true,
21
+ bannerUrl: true,
22
+ description: true,
20
23
  })
21
24
  .merge(zod_1.default.object({
22
25
  subEvents: zod_1.default
@@ -26,10 +29,13 @@ exports.createEventSchema = event_dto_1.eventSchema
26
29
  startingDate: true,
27
30
  endingDate: true,
28
31
  location: true,
32
+ mainPictureUrl: true,
33
+ bannerUrl: true,
34
+ description: true,
29
35
  }))
30
36
  .optional(),
31
37
  tagsId: zod_1.default.array(tag_dto_1.tagSchema.shape.id),
32
- eventTickets: zod_1.default.array((0, event_tickets_dto_1.addEventTicketRefinements)(event_tickets_dto_1.baseEventTicketsSchema.omit({ id: true }))),
38
+ eventTickets: zod_1.default.array(event_tickets_dto_1.eventTicketsSchema.omit({ id: true })),
33
39
  }));
34
40
  class CreateEventDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createEventSchema) {
35
41
  }
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const deleteBannerEventResponseSchema: z.ZodObject<{
3
+ message: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ message: string;
6
+ }, {
7
+ message: string;
8
+ }>;
9
+ declare const DeleteBannerEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
+ message: z.ZodString;
11
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
12
+ message: string;
13
+ }, {
14
+ message: string;
15
+ }>>;
16
+ export declare class DeleteBannerEventResponseDto extends DeleteBannerEventResponseDto_base {
17
+ }
18
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteBannerEventResponseDto = exports.deleteBannerEventResponseSchema = void 0;
4
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
+ const zod_1 = require("zod");
6
+ exports.deleteBannerEventResponseSchema = zod_1.z.object({
7
+ message: zod_1.z.string(),
8
+ });
9
+ class DeleteBannerEventResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteBannerEventResponseSchema) {
10
+ }
11
+ exports.DeleteBannerEventResponseDto = DeleteBannerEventResponseDto;
12
+ //# sourceMappingURL=delete-banner-event.dto.js.map
@@ -5,6 +5,9 @@ export declare const deleteEventResponseSchema: import("zod").ZodObject<{
5
5
  startingDate: import("zod").ZodDate;
6
6
  endingDate: import("zod").ZodDate;
7
7
  location: import("zod").ZodString;
8
+ mainPictureUrl: import("zod").ZodNullable<import("zod").ZodString>;
9
+ bannerUrl: import("zod").ZodNullable<import("zod").ZodString>;
10
+ description: import("zod").ZodNullable<import("zod").ZodString>;
8
11
  folderId: import("zod").ZodNullable<import("zod").ZodString>;
9
12
  tagAssistedId: import("zod").ZodString;
10
13
  tagConfirmedId: import("zod").ZodString;
@@ -13,6 +16,7 @@ export declare const deleteEventResponseSchema: import("zod").ZodObject<{
13
16
  created_at: import("zod").ZodDate;
14
17
  updated_at: import("zod").ZodDate;
15
18
  }, "strip", import("zod").ZodTypeAny, {
19
+ description: string | null;
16
20
  location: string;
17
21
  id: string;
18
22
  name: string;
@@ -22,11 +26,14 @@ export declare const deleteEventResponseSchema: import("zod").ZodObject<{
22
26
  created_at: Date;
23
27
  updated_at: Date;
24
28
  active: boolean;
29
+ mainPictureUrl: string | null;
30
+ bannerUrl: string | null;
25
31
  folderId: string | null;
26
32
  tagAssistedId: string;
27
33
  tagConfirmedId: string;
28
34
  supraEventId: string | null;
29
35
  }, {
36
+ description: string | null;
30
37
  location: string;
31
38
  id: string;
32
39
  name: string;
@@ -36,6 +43,8 @@ export declare const deleteEventResponseSchema: import("zod").ZodObject<{
36
43
  created_at: Date;
37
44
  updated_at: Date;
38
45
  active: boolean;
46
+ mainPictureUrl: string | null;
47
+ bannerUrl: string | null;
39
48
  folderId: string | null;
40
49
  tagAssistedId: string;
41
50
  tagConfirmedId: string;
@@ -48,6 +57,9 @@ declare const DeleteEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
48
57
  startingDate: import("zod").ZodString;
49
58
  endingDate: import("zod").ZodString;
50
59
  location: import("zod").ZodString;
60
+ mainPictureUrl: import("zod").ZodNullable<import("zod").ZodString>;
61
+ bannerUrl: import("zod").ZodNullable<import("zod").ZodString>;
62
+ description: import("zod").ZodNullable<import("zod").ZodString>;
51
63
  folderId: import("zod").ZodNullable<import("zod").ZodString>;
52
64
  tagAssistedId: import("zod").ZodString;
53
65
  tagConfirmedId: import("zod").ZodString;
@@ -56,6 +68,7 @@ declare const DeleteEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
56
68
  created_at: import("zod").ZodString;
57
69
  updated_at: import("zod").ZodString;
58
70
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
71
+ description: string | null;
59
72
  location: string;
60
73
  id: string;
61
74
  name: string;
@@ -65,11 +78,14 @@ declare const DeleteEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
65
78
  created_at: string;
66
79
  updated_at: string;
67
80
  active: boolean;
81
+ mainPictureUrl: string | null;
82
+ bannerUrl: string | null;
68
83
  folderId: string | null;
69
84
  tagAssistedId: string;
70
85
  tagConfirmedId: string;
71
86
  supraEventId: string | null;
72
87
  }, {
88
+ description: string | null;
73
89
  location: string;
74
90
  id: string;
75
91
  name: string;
@@ -79,6 +95,8 @@ declare const DeleteEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoS
79
95
  created_at: string;
80
96
  updated_at: string;
81
97
  active: boolean;
98
+ mainPictureUrl: string | null;
99
+ bannerUrl: string | null;
82
100
  folderId: string | null;
83
101
  tagAssistedId: string;
84
102
  tagConfirmedId: string;
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const deleteMainPictureEventResponseSchema: z.ZodObject<{
3
+ message: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ message: string;
6
+ }, {
7
+ message: string;
8
+ }>;
9
+ declare const DeleteMainPictureEventResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
+ message: z.ZodString;
11
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
12
+ message: string;
13
+ }, {
14
+ message: string;
15
+ }>>;
16
+ export declare class DeleteMainPictureEventResponseDto extends DeleteMainPictureEventResponseDto_base {
17
+ }
18
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteMainPictureEventResponseDto = exports.deleteMainPictureEventResponseSchema = void 0;
4
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
+ const zod_1 = require("zod");
6
+ exports.deleteMainPictureEventResponseSchema = zod_1.z.object({
7
+ message: zod_1.z.string(),
8
+ });
9
+ class DeleteMainPictureEventResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteMainPictureEventResponseSchema) {
10
+ }
11
+ exports.DeleteMainPictureEventResponseDto = DeleteMainPictureEventResponseDto;
12
+ //# sourceMappingURL=delete-main-picture-event.dto.js.map
@@ -1,5 +1,5 @@
1
- import z, { ZodEffects } from 'zod';
2
- export declare const baseEventTicketsSchema: z.ZodObject<{
1
+ import z from 'zod';
2
+ export declare const eventTicketsSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  amount: z.ZodNullable<z.ZodNumber>;
5
5
  type: z.ZodNativeEnum<{
@@ -19,34 +19,3 @@ export declare const baseEventTicketsSchema: z.ZodObject<{
19
19
  amount: number | null;
20
20
  price: number | null;
21
21
  }>;
22
- export declare const eventTicketsSchema: z.ZodEffects<z.ZodObject<{
23
- id: z.ZodString;
24
- amount: z.ZodNullable<z.ZodNumber>;
25
- type: z.ZodNativeEnum<{
26
- PARTICIPANT: "PARTICIPANT";
27
- STAFF: "STAFF";
28
- SPECTATOR: "SPECTATOR";
29
- }>;
30
- price: z.ZodNullable<z.ZodNumber>;
31
- }, "strip", z.ZodTypeAny, {
32
- id: string;
33
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
34
- amount: number | null;
35
- price: number | null;
36
- }, {
37
- id: string;
38
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
39
- amount: number | null;
40
- price: number | null;
41
- }>, {
42
- id: string;
43
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
44
- amount: number | null;
45
- price: number | null;
46
- }, {
47
- id: string;
48
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
49
- amount: number | null;
50
- price: number | null;
51
- }>;
52
- export declare function addEventTicketRefinements<T extends z.ZodTypeAny>(schema: T): ZodEffects<T, T['_output'], T['_input']>;
@@ -3,32 +3,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.eventTicketsSchema = exports.baseEventTicketsSchema = void 0;
7
- exports.addEventTicketRefinements = addEventTicketRefinements;
6
+ exports.eventTicketsSchema = void 0;
8
7
  const translate_1 = require("../../i18n/translate");
9
8
  const zod_1 = __importDefault(require("zod"));
10
9
  const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
11
- exports.baseEventTicketsSchema = zod_1.default.object({
10
+ exports.eventTicketsSchema = zod_1.default.object({
12
11
  id: zod_1.default.string().uuid(),
13
- amount: zod_1.default.number().nullable(),
12
+ amount: zod_1.default
13
+ .number()
14
+ .min(1, {
15
+ message: (0, translate_1.translate)('model.eventTicket.amount.min'),
16
+ })
17
+ .nullable(),
14
18
  type: zod_1.default.nativeEnum(prisma_schema_1.TicketType),
15
19
  price: zod_1.default
16
20
  .number()
17
21
  .min(1, { message: (0, translate_1.translate)('model.eventTicket.price.min') })
18
22
  .nullable(),
19
23
  });
20
- exports.eventTicketsSchema = addEventTicketRefinements(exports.baseEventTicketsSchema);
21
- function addEventTicketRefinements(schema) {
22
- return schema.superRefine((data, ctx) => {
23
- if (data.amount !== null && data.amount < 1) {
24
- ctx.addIssue({
25
- path: ['amount'],
26
- code: zod_1.default.ZodIssueCode.custom,
27
- message: (0, translate_1.translate)('model.eventTicket.amount.min', {
28
- type: `${(0, translate_1.translate)(`prisma.ticketType.${data.type}`)}`,
29
- }),
30
- });
31
- }
32
- });
33
- }
34
24
  //# sourceMappingURL=event-tickets.dto.js.map
@@ -6,6 +6,9 @@ export declare const eventSchema: z.ZodObject<{
6
6
  startingDate: z.ZodDate;
7
7
  endingDate: z.ZodDate;
8
8
  location: z.ZodString;
9
+ mainPictureUrl: z.ZodNullable<z.ZodString>;
10
+ bannerUrl: z.ZodNullable<z.ZodString>;
11
+ description: z.ZodNullable<z.ZodString>;
9
12
  folderId: z.ZodNullable<z.ZodString>;
10
13
  tagAssistedId: z.ZodString;
11
14
  tagConfirmedId: z.ZodString;
@@ -14,6 +17,7 @@ export declare const eventSchema: z.ZodObject<{
14
17
  created_at: z.ZodDate;
15
18
  updated_at: z.ZodDate;
16
19
  }, "strip", z.ZodTypeAny, {
20
+ description: string | null;
17
21
  location: string;
18
22
  id: string;
19
23
  name: string;
@@ -23,11 +27,14 @@ export declare const eventSchema: z.ZodObject<{
23
27
  created_at: Date;
24
28
  updated_at: Date;
25
29
  active: boolean;
30
+ mainPictureUrl: string | null;
31
+ bannerUrl: string | null;
26
32
  folderId: string | null;
27
33
  tagAssistedId: string;
28
34
  tagConfirmedId: string;
29
35
  supraEventId: string | null;
30
36
  }, {
37
+ description: string | null;
31
38
  location: string;
32
39
  id: string;
33
40
  name: string;
@@ -37,6 +44,8 @@ export declare const eventSchema: z.ZodObject<{
37
44
  created_at: Date;
38
45
  updated_at: Date;
39
46
  active: boolean;
47
+ mainPictureUrl: string | null;
48
+ bannerUrl: string | null;
40
49
  folderId: string | null;
41
50
  tagAssistedId: string;
42
51
  tagConfirmedId: string;
@@ -21,6 +21,19 @@ exports.eventSchema = zod_1.z.object({
21
21
  invalid_type_error: (0, translate_1.translate)('model.event.endingDate.invalid'),
22
22
  }),
23
23
  location: zod_1.z.string().min(1, (0, translate_1.translate)('model.event.location.required')),
24
+ mainPictureUrl: zod_1.z
25
+ .string()
26
+ .url({
27
+ message: (0, translate_1.translate)('model.event.eventPictureUrl.invalid'),
28
+ })
29
+ .nullable(),
30
+ bannerUrl: zod_1.z
31
+ .string()
32
+ .url({
33
+ message: (0, translate_1.translate)('model.event.eventBannerUrl.invalid'),
34
+ })
35
+ .nullable(),
36
+ description: zod_1.z.string().nullable(),
24
37
  folderId: event_folder_dto_1.eventFolderSchema.shape.id.nullable(),
25
38
  tagAssistedId: tag_dto_1.tagSchema.shape.id,
26
39
  tagConfirmedId: tag_dto_1.tagSchema.shape.id,