expo-backend-types 0.37.0-EXPO-338-Papa-Francisco.2 → 0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.7

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 (44) hide show
  1. package/README.md +0 -2
  2. package/dist/src/event/dto/get-by-id-event.dto.d.ts +18 -26
  3. package/dist/src/exports.d.ts +1 -0
  4. package/dist/src/exports.js +1 -0
  5. package/dist/src/i18n/es.d.ts +39 -2
  6. package/dist/src/i18n/es.js +39 -2
  7. package/dist/src/i18n/es.js.map +1 -1
  8. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +610 -0
  9. package/dist/src/ticket/dto/create-many-ticket.dto.js +50 -0
  10. package/dist/src/ticket/dto/create-ticket.dto.d.ts +18 -33
  11. package/dist/src/ticket/dto/create-ticket.dto.js +2 -1
  12. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +10 -18
  13. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +18 -26
  14. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +18 -26
  15. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +161 -29
  16. package/dist/src/ticket/dto/find-by-id-ticket.dto.js +2 -5
  17. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +18 -26
  18. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +18 -26
  19. package/dist/src/ticket/dto/find-ticket.dto.d.ts +10 -18
  20. package/dist/src/ticket/dto/ticket.dto.d.ts +10 -18
  21. package/dist/src/ticket/dto/ticket.dto.js +2 -3
  22. package/dist/src/ticket/dto/update-ticket.dto.d.ts +22 -32
  23. package/dist/src/ticket/dto/update-ticket.dto.js +2 -1
  24. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +366 -0
  25. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +27 -0
  26. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +55 -0
  27. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +10 -0
  28. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +32 -0
  29. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +20 -0
  30. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +56 -0
  31. package/dist/src/ticket-group/dto/ticket-group.dto.js +27 -0
  32. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +79 -0
  33. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +18 -0
  34. package/dist/src/ticket-group/exports.d.ts +5 -0
  35. package/dist/src/ticket-group/exports.js +22 -0
  36. package/dist/types/prisma-schema/edge.js +15 -5
  37. package/dist/types/prisma-schema/index-browser.js +12 -2
  38. package/dist/types/prisma-schema/index.d.ts +2178 -167
  39. package/dist/types/prisma-schema/index.js +15 -5
  40. package/dist/types/prisma-schema/package.json +1 -1
  41. package/dist/types/prisma-schema/schema.prisma +22 -3
  42. package/dist/types/prisma-schema/wasm.js +12 -2
  43. package/dist/types/schema.d.ts +379 -12
  44. package/package.json +2 -1
@@ -0,0 +1,366 @@
1
+ import z from 'zod';
2
+ export declare const createTicketGroupSchema: z.ZodObject<Pick<{
3
+ id: z.ZodString;
4
+ amountTickets: z.ZodNumber;
5
+ status: z.ZodNativeEnum<{
6
+ BOOKED: "BOOKED";
7
+ PAID: "PAID";
8
+ FREE: "FREE";
9
+ }>;
10
+ eventId: z.ZodString;
11
+ created_at: z.ZodDate;
12
+ updated_at: z.ZodDate;
13
+ }, "eventId" | "status" | "amountTickets">, "strip", z.ZodTypeAny, {
14
+ eventId: string;
15
+ status: "BOOKED" | "PAID" | "FREE";
16
+ amountTickets: number;
17
+ }, {
18
+ eventId: string;
19
+ status: "BOOKED" | "PAID" | "FREE";
20
+ amountTickets: number;
21
+ }>;
22
+ declare const CreateTicketGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
23
+ eventId: z.ZodString;
24
+ status: z.ZodNativeEnum<{
25
+ BOOKED: "BOOKED";
26
+ PAID: "PAID";
27
+ FREE: "FREE";
28
+ }>;
29
+ amountTickets: z.ZodNumber;
30
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
31
+ eventId: string;
32
+ status: "BOOKED" | "PAID" | "FREE";
33
+ amountTickets: number;
34
+ }, {
35
+ eventId: string;
36
+ status: "BOOKED" | "PAID" | "FREE";
37
+ amountTickets: number;
38
+ }>>;
39
+ export declare class CreateTicketGroupDto extends CreateTicketGroupDto_base {
40
+ }
41
+ export declare const createTicketGroupResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
42
+ id: z.ZodString;
43
+ amountTickets: z.ZodNumber;
44
+ status: z.ZodNativeEnum<{
45
+ BOOKED: "BOOKED";
46
+ PAID: "PAID";
47
+ FREE: "FREE";
48
+ }>;
49
+ eventId: z.ZodString;
50
+ created_at: z.ZodDate;
51
+ updated_at: z.ZodDate;
52
+ }, {
53
+ tickets: z.ZodArray<z.ZodObject<{
54
+ id: z.ZodString;
55
+ eventId: z.ZodString;
56
+ type: z.ZodNativeEnum<{
57
+ PARTICIPANT: "PARTICIPANT";
58
+ STAFF: "STAFF";
59
+ SPECTATOR: "SPECTATOR";
60
+ }>;
61
+ fullName: z.ZodString;
62
+ mail: z.ZodString;
63
+ dni: z.ZodString;
64
+ seat: z.ZodNullable<z.ZodNumber>;
65
+ ticketGroupId: z.ZodNullable<z.ZodString>;
66
+ created_at: z.ZodDate;
67
+ updated_at: z.ZodDate;
68
+ }, "strip", z.ZodTypeAny, {
69
+ id: string;
70
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
71
+ fullName: string;
72
+ mail: string;
73
+ eventId: string;
74
+ dni: string;
75
+ seat: number | null;
76
+ created_at: Date;
77
+ updated_at: Date;
78
+ ticketGroupId: string | null;
79
+ }, {
80
+ id: string;
81
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
82
+ fullName: string;
83
+ mail: string;
84
+ eventId: string;
85
+ dni: string;
86
+ seat: number | null;
87
+ created_at: Date;
88
+ updated_at: Date;
89
+ ticketGroupId: string | null;
90
+ }>, "many">;
91
+ event: z.ZodObject<{
92
+ id: z.ZodString;
93
+ name: z.ZodString;
94
+ date: z.ZodDate;
95
+ startingDate: z.ZodDate;
96
+ endingDate: z.ZodDate;
97
+ location: z.ZodString;
98
+ folderId: z.ZodNullable<z.ZodString>;
99
+ tagAssistedId: z.ZodString;
100
+ tagConfirmedId: z.ZodString;
101
+ active: z.ZodBoolean;
102
+ supraEventId: z.ZodNullable<z.ZodString>;
103
+ created_at: z.ZodDate;
104
+ updated_at: z.ZodDate;
105
+ }, "strip", z.ZodTypeAny, {
106
+ location: string;
107
+ id: string;
108
+ name: string;
109
+ date: Date;
110
+ startingDate: Date;
111
+ endingDate: Date;
112
+ created_at: Date;
113
+ updated_at: Date;
114
+ active: boolean;
115
+ folderId: string | null;
116
+ tagAssistedId: string;
117
+ tagConfirmedId: string;
118
+ supraEventId: string | null;
119
+ }, {
120
+ location: string;
121
+ id: string;
122
+ name: string;
123
+ date: Date;
124
+ startingDate: Date;
125
+ endingDate: Date;
126
+ created_at: Date;
127
+ updated_at: Date;
128
+ active: boolean;
129
+ folderId: string | null;
130
+ tagAssistedId: string;
131
+ tagConfirmedId: string;
132
+ supraEventId: string | null;
133
+ }>;
134
+ }>, "strip", z.ZodTypeAny, {
135
+ event: {
136
+ location: string;
137
+ id: string;
138
+ name: string;
139
+ date: Date;
140
+ startingDate: Date;
141
+ endingDate: Date;
142
+ created_at: Date;
143
+ updated_at: Date;
144
+ active: boolean;
145
+ folderId: string | null;
146
+ tagAssistedId: string;
147
+ tagConfirmedId: string;
148
+ supraEventId: string | null;
149
+ };
150
+ id: string;
151
+ eventId: string;
152
+ status: "BOOKED" | "PAID" | "FREE";
153
+ amountTickets: number;
154
+ created_at: Date;
155
+ updated_at: Date;
156
+ tickets: {
157
+ id: string;
158
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
159
+ fullName: string;
160
+ mail: string;
161
+ eventId: string;
162
+ dni: string;
163
+ seat: number | null;
164
+ created_at: Date;
165
+ updated_at: Date;
166
+ ticketGroupId: string | null;
167
+ }[];
168
+ }, {
169
+ event: {
170
+ location: string;
171
+ id: string;
172
+ name: string;
173
+ date: Date;
174
+ startingDate: Date;
175
+ endingDate: Date;
176
+ created_at: Date;
177
+ updated_at: Date;
178
+ active: boolean;
179
+ folderId: string | null;
180
+ tagAssistedId: string;
181
+ tagConfirmedId: string;
182
+ supraEventId: string | null;
183
+ };
184
+ id: string;
185
+ eventId: string;
186
+ status: "BOOKED" | "PAID" | "FREE";
187
+ amountTickets: number;
188
+ created_at: Date;
189
+ updated_at: Date;
190
+ tickets: {
191
+ id: string;
192
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
193
+ fullName: string;
194
+ mail: string;
195
+ eventId: string;
196
+ dni: string;
197
+ seat: number | null;
198
+ created_at: Date;
199
+ updated_at: Date;
200
+ ticketGroupId: string | null;
201
+ }[];
202
+ }>;
203
+ declare const CreateTicketGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
204
+ id: z.ZodString;
205
+ amountTickets: z.ZodNumber;
206
+ status: z.ZodNativeEnum<{
207
+ BOOKED: "BOOKED";
208
+ PAID: "PAID";
209
+ FREE: "FREE";
210
+ }>;
211
+ eventId: z.ZodString;
212
+ created_at: z.ZodString;
213
+ updated_at: z.ZodString;
214
+ tickets: z.ZodArray<z.ZodObject<{
215
+ id: z.ZodString;
216
+ eventId: z.ZodString;
217
+ type: z.ZodNativeEnum<{
218
+ PARTICIPANT: "PARTICIPANT";
219
+ STAFF: "STAFF";
220
+ SPECTATOR: "SPECTATOR";
221
+ }>;
222
+ fullName: z.ZodString;
223
+ mail: z.ZodString;
224
+ dni: z.ZodString;
225
+ seat: z.ZodNullable<z.ZodNumber>;
226
+ ticketGroupId: z.ZodNullable<z.ZodString>;
227
+ created_at: z.ZodString;
228
+ updated_at: z.ZodString;
229
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
230
+ id: string;
231
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
232
+ fullName: string;
233
+ mail: string;
234
+ eventId: string;
235
+ dni: string;
236
+ seat: number | null;
237
+ created_at: string;
238
+ updated_at: string;
239
+ ticketGroupId: string | null;
240
+ }, {
241
+ id: string;
242
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
243
+ fullName: string;
244
+ mail: string;
245
+ eventId: string;
246
+ dni: string;
247
+ seat: number | null;
248
+ created_at: string;
249
+ updated_at: string;
250
+ ticketGroupId: string | null;
251
+ }>, "many">;
252
+ event: z.ZodObject<{
253
+ id: z.ZodString;
254
+ name: z.ZodString;
255
+ date: z.ZodString;
256
+ startingDate: z.ZodString;
257
+ endingDate: z.ZodString;
258
+ location: z.ZodString;
259
+ folderId: z.ZodNullable<z.ZodString>;
260
+ tagAssistedId: z.ZodString;
261
+ tagConfirmedId: z.ZodString;
262
+ active: z.ZodBoolean;
263
+ supraEventId: z.ZodNullable<z.ZodString>;
264
+ created_at: z.ZodString;
265
+ updated_at: z.ZodString;
266
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
267
+ location: string;
268
+ id: string;
269
+ name: string;
270
+ date: string;
271
+ startingDate: string;
272
+ endingDate: string;
273
+ created_at: string;
274
+ updated_at: string;
275
+ active: boolean;
276
+ folderId: string | null;
277
+ tagAssistedId: string;
278
+ tagConfirmedId: string;
279
+ supraEventId: string | null;
280
+ }, {
281
+ location: string;
282
+ id: string;
283
+ name: string;
284
+ date: string;
285
+ startingDate: string;
286
+ endingDate: string;
287
+ created_at: string;
288
+ updated_at: string;
289
+ active: boolean;
290
+ folderId: string | null;
291
+ tagAssistedId: string;
292
+ tagConfirmedId: string;
293
+ supraEventId: string | null;
294
+ }>;
295
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
296
+ event: {
297
+ location: string;
298
+ id: string;
299
+ name: string;
300
+ date: string;
301
+ startingDate: string;
302
+ endingDate: string;
303
+ created_at: string;
304
+ updated_at: string;
305
+ active: boolean;
306
+ folderId: string | null;
307
+ tagAssistedId: string;
308
+ tagConfirmedId: string;
309
+ supraEventId: string | null;
310
+ };
311
+ id: string;
312
+ eventId: string;
313
+ status: "BOOKED" | "PAID" | "FREE";
314
+ amountTickets: number;
315
+ created_at: string;
316
+ updated_at: string;
317
+ tickets: {
318
+ id: string;
319
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
320
+ fullName: string;
321
+ mail: string;
322
+ eventId: string;
323
+ dni: string;
324
+ seat: number | null;
325
+ created_at: string;
326
+ updated_at: string;
327
+ ticketGroupId: string | null;
328
+ }[];
329
+ }, {
330
+ event: {
331
+ location: string;
332
+ id: string;
333
+ name: string;
334
+ date: string;
335
+ startingDate: string;
336
+ endingDate: string;
337
+ created_at: string;
338
+ updated_at: string;
339
+ active: boolean;
340
+ folderId: string | null;
341
+ tagAssistedId: string;
342
+ tagConfirmedId: string;
343
+ supraEventId: string | null;
344
+ };
345
+ id: string;
346
+ eventId: string;
347
+ status: "BOOKED" | "PAID" | "FREE";
348
+ amountTickets: number;
349
+ created_at: string;
350
+ updated_at: string;
351
+ tickets: {
352
+ id: string;
353
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
354
+ fullName: string;
355
+ mail: string;
356
+ eventId: string;
357
+ dni: string;
358
+ seat: number | null;
359
+ created_at: string;
360
+ updated_at: string;
361
+ ticketGroupId: string | null;
362
+ }[];
363
+ }>>;
364
+ export declare class CreateTicketGroupResponseDto extends CreateTicketGroupResponseDto_base {
365
+ }
366
+ export {};
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CreateTicketGroupResponseDto = exports.createTicketGroupResponseSchema = exports.CreateTicketGroupDto = exports.createTicketGroupSchema = void 0;
7
+ const event_dto_1 = require("../../event/dto/event.dto");
8
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
+ const ticket_group_dto_1 = require("./ticket-group.dto");
10
+ const ticket_dto_1 = require("../../ticket/dto/ticket.dto");
11
+ const zod_1 = __importDefault(require("zod"));
12
+ exports.createTicketGroupSchema = ticket_group_dto_1.ticketGroupSchema.pick({
13
+ eventId: true,
14
+ amountTickets: true,
15
+ status: true,
16
+ });
17
+ class CreateTicketGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createTicketGroupSchema) {
18
+ }
19
+ exports.CreateTicketGroupDto = CreateTicketGroupDto;
20
+ exports.createTicketGroupResponseSchema = ticket_group_dto_1.ticketGroupSchema.merge(zod_1.default.object({
21
+ tickets: zod_1.default.array(ticket_dto_1.ticketSchema),
22
+ event: event_dto_1.eventSchema,
23
+ }));
24
+ class CreateTicketGroupResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createTicketGroupResponseSchema) {
25
+ }
26
+ exports.CreateTicketGroupResponseDto = CreateTicketGroupResponseDto;
27
+ //# sourceMappingURL=create-ticket-group.dto.js.map
@@ -0,0 +1,55 @@
1
+ export declare const deleteTicketGroupResponseSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ amountTickets: import("zod").ZodNumber;
4
+ status: import("zod").ZodNativeEnum<{
5
+ BOOKED: "BOOKED";
6
+ PAID: "PAID";
7
+ FREE: "FREE";
8
+ }>;
9
+ eventId: import("zod").ZodString;
10
+ created_at: import("zod").ZodDate;
11
+ updated_at: import("zod").ZodDate;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ id: string;
14
+ eventId: string;
15
+ status: "BOOKED" | "PAID" | "FREE";
16
+ amountTickets: number;
17
+ created_at: Date;
18
+ updated_at: Date;
19
+ }, {
20
+ id: string;
21
+ eventId: string;
22
+ status: "BOOKED" | "PAID" | "FREE";
23
+ amountTickets: number;
24
+ created_at: Date;
25
+ updated_at: Date;
26
+ }>;
27
+ declare const DeleteTicketGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
28
+ id: import("zod").ZodString;
29
+ amountTickets: import("zod").ZodNumber;
30
+ status: import("zod").ZodNativeEnum<{
31
+ BOOKED: "BOOKED";
32
+ PAID: "PAID";
33
+ FREE: "FREE";
34
+ }>;
35
+ eventId: import("zod").ZodString;
36
+ created_at: import("zod").ZodString;
37
+ updated_at: import("zod").ZodString;
38
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
39
+ id: string;
40
+ eventId: string;
41
+ status: "BOOKED" | "PAID" | "FREE";
42
+ amountTickets: number;
43
+ created_at: string;
44
+ updated_at: string;
45
+ }, {
46
+ id: string;
47
+ eventId: string;
48
+ status: "BOOKED" | "PAID" | "FREE";
49
+ amountTickets: number;
50
+ created_at: string;
51
+ updated_at: string;
52
+ }>>;
53
+ export declare class DeleteTicketGroupResponseDto extends DeleteTicketGroupResponseDto_base {
54
+ }
55
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteTicketGroupResponseDto = exports.deleteTicketGroupResponseSchema = void 0;
4
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
+ const ticket_group_dto_1 = require("./ticket-group.dto");
6
+ exports.deleteTicketGroupResponseSchema = ticket_group_dto_1.ticketGroupSchema;
7
+ class DeleteTicketGroupResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteTicketGroupResponseSchema) {
8
+ }
9
+ exports.DeleteTicketGroupResponseDto = DeleteTicketGroupResponseDto;
10
+ //# sourceMappingURL=delete-ticket-group.dto.js.map
@@ -0,0 +1,32 @@
1
+ import z from 'zod';
2
+ export declare const findTicketsByEventSchema: z.ZodObject<{
3
+ eventId: z.ZodString;
4
+ type: z.ZodNativeEnum<{
5
+ PARTICIPANT: "PARTICIPANT";
6
+ STAFF: "STAFF";
7
+ SPECTATOR: "SPECTATOR";
8
+ }>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
11
+ eventId: string;
12
+ }, {
13
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
14
+ eventId: string;
15
+ }>;
16
+ export declare const findTicketsByEventResponseSchema: z.ZodObject<{
17
+ tickets: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ tickets: number;
20
+ }, {
21
+ tickets: number;
22
+ }>;
23
+ declare const FindTicketsByEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
24
+ tickets: z.ZodNumber;
25
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
26
+ tickets: number;
27
+ }, {
28
+ tickets: number;
29
+ }>>;
30
+ export declare class FindTicketsByEventDto extends FindTicketsByEventDto_base {
31
+ }
32
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FindTicketsByEventDto = exports.findTicketsByEventResponseSchema = exports.findTicketsByEventSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ const types_1 = require("../../../types");
10
+ exports.findTicketsByEventSchema = zod_1.default.object({
11
+ eventId: zod_1.default.string(),
12
+ type: zod_1.default.nativeEnum(types_1.TicketType),
13
+ });
14
+ exports.findTicketsByEventResponseSchema = zod_1.default.object({
15
+ tickets: zod_1.default.number(),
16
+ });
17
+ class FindTicketsByEventDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findTicketsByEventResponseSchema) {
18
+ }
19
+ exports.FindTicketsByEventDto = FindTicketsByEventDto;
20
+ //# sourceMappingURL=find-tickets-by-event.dto.js.map
@@ -0,0 +1,56 @@
1
+ import z from 'zod';
2
+ export declare const ticketGroupSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ amountTickets: z.ZodNumber;
5
+ status: z.ZodNativeEnum<{
6
+ BOOKED: "BOOKED";
7
+ PAID: "PAID";
8
+ FREE: "FREE";
9
+ }>;
10
+ eventId: z.ZodString;
11
+ created_at: z.ZodDate;
12
+ updated_at: z.ZodDate;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: string;
15
+ eventId: string;
16
+ status: "BOOKED" | "PAID" | "FREE";
17
+ amountTickets: number;
18
+ created_at: Date;
19
+ updated_at: Date;
20
+ }, {
21
+ id: string;
22
+ eventId: string;
23
+ status: "BOOKED" | "PAID" | "FREE";
24
+ amountTickets: number;
25
+ created_at: Date;
26
+ updated_at: Date;
27
+ }>;
28
+ declare const TicketGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
29
+ id: z.ZodString;
30
+ amountTickets: z.ZodNumber;
31
+ status: z.ZodNativeEnum<{
32
+ BOOKED: "BOOKED";
33
+ PAID: "PAID";
34
+ FREE: "FREE";
35
+ }>;
36
+ eventId: z.ZodString;
37
+ created_at: z.ZodString;
38
+ updated_at: z.ZodString;
39
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
40
+ id: string;
41
+ eventId: string;
42
+ status: "BOOKED" | "PAID" | "FREE";
43
+ amountTickets: number;
44
+ created_at: string;
45
+ updated_at: string;
46
+ }, {
47
+ id: string;
48
+ eventId: string;
49
+ status: "BOOKED" | "PAID" | "FREE";
50
+ amountTickets: number;
51
+ created_at: string;
52
+ updated_at: string;
53
+ }>>;
54
+ export declare class TicketGroupDto extends TicketGroupDto_base {
55
+ }
56
+ export {};
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TicketGroupDto = exports.ticketGroupSchema = void 0;
7
+ const event_dto_1 = require("../../event/dto/event.dto");
8
+ const translate_1 = require("../../i18n/translate");
9
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
12
+ exports.ticketGroupSchema = zod_1.default.object({
13
+ id: zod_1.default.string().uuid({ message: (0, translate_1.translate)('model.ticketGroup.id.uuid') }),
14
+ amountTickets: zod_1.default
15
+ .number()
16
+ .min(0, (0, translate_1.translate)('model.ticketGroup.amountTickets')),
17
+ status: zod_1.default.nativeEnum(prisma_schema_1.TicketGroupStatus, {
18
+ message: (0, translate_1.translate)('model.ticketGroup.status.invalid'),
19
+ }),
20
+ eventId: event_dto_1.eventSchema.shape.id,
21
+ created_at: zod_1.default.date(),
22
+ updated_at: zod_1.default.date(),
23
+ });
24
+ class TicketGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.ticketGroupSchema) {
25
+ }
26
+ exports.TicketGroupDto = TicketGroupDto;
27
+ //# sourceMappingURL=ticket-group.dto.js.map
@@ -0,0 +1,79 @@
1
+ export declare const updateTicketGroupSchema: import("zod").ZodObject<{
2
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
3
+ BOOKED: "BOOKED";
4
+ PAID: "PAID";
5
+ FREE: "FREE";
6
+ }>>;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
9
+ }, {
10
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
11
+ }>;
12
+ declare const UpdateTicketGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
13
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
14
+ BOOKED: "BOOKED";
15
+ PAID: "PAID";
16
+ FREE: "FREE";
17
+ }>>;
18
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
19
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
20
+ }, {
21
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
22
+ }>>;
23
+ export declare class UpdateTicketGroupDto extends UpdateTicketGroupDto_base {
24
+ }
25
+ export declare const updateTicketGroupResponseSchema: import("zod").ZodObject<{
26
+ id: import("zod").ZodString;
27
+ amountTickets: import("zod").ZodNumber;
28
+ status: import("zod").ZodNativeEnum<{
29
+ BOOKED: "BOOKED";
30
+ PAID: "PAID";
31
+ FREE: "FREE";
32
+ }>;
33
+ eventId: import("zod").ZodString;
34
+ created_at: import("zod").ZodDate;
35
+ updated_at: import("zod").ZodDate;
36
+ }, "strip", import("zod").ZodTypeAny, {
37
+ id: string;
38
+ eventId: string;
39
+ status: "BOOKED" | "PAID" | "FREE";
40
+ amountTickets: number;
41
+ created_at: Date;
42
+ updated_at: Date;
43
+ }, {
44
+ id: string;
45
+ eventId: string;
46
+ status: "BOOKED" | "PAID" | "FREE";
47
+ amountTickets: number;
48
+ created_at: Date;
49
+ updated_at: Date;
50
+ }>;
51
+ declare const UpdateTicketGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
52
+ id: import("zod").ZodString;
53
+ amountTickets: import("zod").ZodNumber;
54
+ status: import("zod").ZodNativeEnum<{
55
+ BOOKED: "BOOKED";
56
+ PAID: "PAID";
57
+ FREE: "FREE";
58
+ }>;
59
+ eventId: import("zod").ZodString;
60
+ created_at: import("zod").ZodString;
61
+ updated_at: import("zod").ZodString;
62
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
63
+ id: string;
64
+ eventId: string;
65
+ status: "BOOKED" | "PAID" | "FREE";
66
+ amountTickets: number;
67
+ created_at: string;
68
+ updated_at: string;
69
+ }, {
70
+ id: string;
71
+ eventId: string;
72
+ status: "BOOKED" | "PAID" | "FREE";
73
+ amountTickets: number;
74
+ created_at: string;
75
+ updated_at: string;
76
+ }>>;
77
+ export declare class UpdateTicketGroupResponseDto extends UpdateTicketGroupResponseDto_base {
78
+ }
79
+ export {};