expo-backend-types 0.36.0 → 0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.2

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 (45) hide show
  1. package/dist/src/event/dto/get-by-id-event.dto.d.ts +10 -18
  2. package/dist/src/exports.d.ts +1 -0
  3. package/dist/src/exports.js +1 -0
  4. package/dist/src/i18n/es.d.ts +37 -0
  5. package/dist/src/i18n/es.js +37 -0
  6. package/dist/src/i18n/es.js.map +1 -1
  7. package/dist/src/ticket/constants.js +0 -19
  8. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +704 -0
  9. package/dist/src/ticket/dto/create-many-ticket.dto.js +58 -0
  10. package/dist/src/ticket/dto/create-ticket.dto.d.ts +13 -29
  11. package/dist/src/ticket/dto/create-ticket.dto.js +1 -1
  12. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +6 -14
  13. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +10 -18
  14. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +10 -18
  15. package/dist/src/ticket/dto/find-by-event-type-ticket.dto.d.ts +48 -0
  16. package/dist/src/ticket/dto/find-by-event-type-ticket.dto.js +20 -0
  17. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +10 -18
  18. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +10 -18
  19. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +10 -18
  20. package/dist/src/ticket/dto/find-ticket.dto.d.ts +6 -14
  21. package/dist/src/ticket/dto/ticket.dto.d.ts +6 -14
  22. package/dist/src/ticket/dto/ticket.dto.js +2 -3
  23. package/dist/src/ticket/dto/update-ticket.dto.d.ts +12 -28
  24. package/dist/src/ticket/dto/update-ticket.dto.js +1 -1
  25. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +346 -0
  26. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +27 -0
  27. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +55 -0
  28. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +10 -0
  29. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +32 -0
  30. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +20 -0
  31. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +56 -0
  32. package/dist/src/ticket-group/dto/ticket-group.dto.js +27 -0
  33. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +79 -0
  34. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +18 -0
  35. package/dist/src/ticket-group/exports.d.ts +5 -0
  36. package/dist/src/ticket-group/exports.js +22 -0
  37. package/dist/types/prisma-schema/edge.js +15 -5
  38. package/dist/types/prisma-schema/index-browser.js +12 -2
  39. package/dist/types/prisma-schema/index.d.ts +2156 -178
  40. package/dist/types/prisma-schema/index.js +15 -5
  41. package/dist/types/prisma-schema/package.json +1 -1
  42. package/dist/types/prisma-schema/schema.prisma +22 -3
  43. package/dist/types/prisma-schema/wasm.js +12 -2
  44. package/dist/types/schema.d.ts +362 -12
  45. package/package.json +3 -2
@@ -8,13 +8,9 @@ export declare const findByIdTicketResponseSchema: z.ZodObject<{
8
8
  STAFF: "STAFF";
9
9
  SPECTATOR: "SPECTATOR";
10
10
  }>;
11
- status: z.ZodNativeEnum<{
12
- BOOKED: "BOOKED";
13
- PAID: "PAID";
14
- FREE: "FREE";
15
- }>;
16
11
  fullName: z.ZodString;
17
12
  mail: z.ZodString;
13
+ ticketGroupId: z.ZodString;
18
14
  created_at: z.ZodDate;
19
15
  updated_at: z.ZodDate;
20
16
  }, {
@@ -160,9 +156,9 @@ export declare const findByIdTicketResponseSchema: z.ZodObject<{
160
156
  fullName: string;
161
157
  mail: string;
162
158
  eventId: string;
163
- status: "BOOKED" | "PAID" | "FREE";
164
159
  created_at: Date;
165
160
  updated_at: Date;
161
+ ticketGroupId: string;
166
162
  }, {
167
163
  event: {
168
164
  location: string;
@@ -200,9 +196,9 @@ export declare const findByIdTicketResponseSchema: z.ZodObject<{
200
196
  fullName: string;
201
197
  mail: string;
202
198
  eventId: string;
203
- status: "BOOKED" | "PAID" | "FREE";
204
199
  created_at: Date;
205
200
  updated_at: Date;
201
+ ticketGroupId: string;
206
202
  }>;
207
203
  }, "strip", z.ZodTypeAny, {
208
204
  ticket: {
@@ -242,9 +238,9 @@ export declare const findByIdTicketResponseSchema: z.ZodObject<{
242
238
  fullName: string;
243
239
  mail: string;
244
240
  eventId: string;
245
- status: "BOOKED" | "PAID" | "FREE";
246
241
  created_at: Date;
247
242
  updated_at: Date;
243
+ ticketGroupId: string;
248
244
  };
249
245
  }, {
250
246
  ticket: {
@@ -284,9 +280,9 @@ export declare const findByIdTicketResponseSchema: z.ZodObject<{
284
280
  fullName: string;
285
281
  mail: string;
286
282
  eventId: string;
287
- status: "BOOKED" | "PAID" | "FREE";
288
283
  created_at: Date;
289
284
  updated_at: Date;
285
+ ticketGroupId: string;
290
286
  };
291
287
  }>;
292
288
  declare const FindByIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
@@ -298,13 +294,9 @@ declare const FindByIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodD
298
294
  STAFF: "STAFF";
299
295
  SPECTATOR: "SPECTATOR";
300
296
  }>;
301
- status: z.ZodNativeEnum<{
302
- BOOKED: "BOOKED";
303
- PAID: "PAID";
304
- FREE: "FREE";
305
- }>;
306
297
  fullName: z.ZodString;
307
298
  mail: z.ZodString;
299
+ ticketGroupId: z.ZodString;
308
300
  created_at: z.ZodString;
309
301
  updated_at: z.ZodString;
310
302
  event: z.ZodObject<{
@@ -439,9 +431,9 @@ declare const FindByIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodD
439
431
  fullName: string;
440
432
  mail: string;
441
433
  eventId: string;
442
- status: "BOOKED" | "PAID" | "FREE";
443
434
  created_at: string;
444
435
  updated_at: string;
436
+ ticketGroupId: string;
445
437
  }, {
446
438
  event: {
447
439
  location: string;
@@ -479,9 +471,9 @@ declare const FindByIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodD
479
471
  fullName: string;
480
472
  mail: string;
481
473
  eventId: string;
482
- status: "BOOKED" | "PAID" | "FREE";
483
474
  created_at: string;
484
475
  updated_at: string;
476
+ ticketGroupId: string;
485
477
  }>;
486
478
  }, z.UnknownKeysParam, z.ZodTypeAny, {
487
479
  ticket: {
@@ -521,9 +513,9 @@ declare const FindByIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodD
521
513
  fullName: string;
522
514
  mail: string;
523
515
  eventId: string;
524
- status: "BOOKED" | "PAID" | "FREE";
525
516
  created_at: string;
526
517
  updated_at: string;
518
+ ticketGroupId: string;
527
519
  };
528
520
  }, {
529
521
  ticket: {
@@ -563,9 +555,9 @@ declare const FindByIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodD
563
555
  fullName: string;
564
556
  mail: string;
565
557
  eventId: string;
566
- status: "BOOKED" | "PAID" | "FREE";
567
558
  created_at: string;
568
559
  updated_at: string;
560
+ ticketGroupId: string;
569
561
  };
570
562
  }>>;
571
563
  export declare class FindByIdTicketResponseDto extends FindByIdTicketResponseDto_base {
@@ -8,13 +8,9 @@ export declare const findByMailTicketResponseSchema: z.ZodObject<{
8
8
  STAFF: "STAFF";
9
9
  SPECTATOR: "SPECTATOR";
10
10
  }>;
11
- status: z.ZodNativeEnum<{
12
- BOOKED: "BOOKED";
13
- PAID: "PAID";
14
- FREE: "FREE";
15
- }>;
16
11
  fullName: z.ZodString;
17
12
  mail: z.ZodString;
13
+ ticketGroupId: z.ZodString;
18
14
  created_at: z.ZodDate;
19
15
  updated_at: z.ZodDate;
20
16
  }, {
@@ -160,9 +156,9 @@ export declare const findByMailTicketResponseSchema: z.ZodObject<{
160
156
  fullName: string;
161
157
  mail: string;
162
158
  eventId: string;
163
- status: "BOOKED" | "PAID" | "FREE";
164
159
  created_at: Date;
165
160
  updated_at: Date;
161
+ ticketGroupId: string;
166
162
  }, {
167
163
  event: {
168
164
  location: string;
@@ -200,9 +196,9 @@ export declare const findByMailTicketResponseSchema: z.ZodObject<{
200
196
  fullName: string;
201
197
  mail: string;
202
198
  eventId: string;
203
- status: "BOOKED" | "PAID" | "FREE";
204
199
  created_at: Date;
205
200
  updated_at: Date;
201
+ ticketGroupId: string;
206
202
  }>, "many">;
207
203
  }, "strip", z.ZodTypeAny, {
208
204
  tickets: {
@@ -242,9 +238,9 @@ export declare const findByMailTicketResponseSchema: z.ZodObject<{
242
238
  fullName: string;
243
239
  mail: string;
244
240
  eventId: string;
245
- status: "BOOKED" | "PAID" | "FREE";
246
241
  created_at: Date;
247
242
  updated_at: Date;
243
+ ticketGroupId: string;
248
244
  }[];
249
245
  }, {
250
246
  tickets: {
@@ -284,9 +280,9 @@ export declare const findByMailTicketResponseSchema: z.ZodObject<{
284
280
  fullName: string;
285
281
  mail: string;
286
282
  eventId: string;
287
- status: "BOOKED" | "PAID" | "FREE";
288
283
  created_at: Date;
289
284
  updated_at: Date;
285
+ ticketGroupId: string;
290
286
  }[];
291
287
  }>;
292
288
  declare const FindByMailTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
@@ -298,13 +294,9 @@ declare const FindByMailTicketResponseDto_base: import("@anatine/zod-nestjs").Zo
298
294
  STAFF: "STAFF";
299
295
  SPECTATOR: "SPECTATOR";
300
296
  }>;
301
- status: z.ZodNativeEnum<{
302
- BOOKED: "BOOKED";
303
- PAID: "PAID";
304
- FREE: "FREE";
305
- }>;
306
297
  fullName: z.ZodString;
307
298
  mail: z.ZodString;
299
+ ticketGroupId: z.ZodString;
308
300
  created_at: z.ZodString;
309
301
  updated_at: z.ZodString;
310
302
  event: z.ZodObject<{
@@ -439,9 +431,9 @@ declare const FindByMailTicketResponseDto_base: import("@anatine/zod-nestjs").Zo
439
431
  fullName: string;
440
432
  mail: string;
441
433
  eventId: string;
442
- status: "BOOKED" | "PAID" | "FREE";
443
434
  created_at: string;
444
435
  updated_at: string;
436
+ ticketGroupId: string;
445
437
  }, {
446
438
  event: {
447
439
  location: string;
@@ -479,9 +471,9 @@ declare const FindByMailTicketResponseDto_base: import("@anatine/zod-nestjs").Zo
479
471
  fullName: string;
480
472
  mail: string;
481
473
  eventId: string;
482
- status: "BOOKED" | "PAID" | "FREE";
483
474
  created_at: string;
484
475
  updated_at: string;
476
+ ticketGroupId: string;
485
477
  }>, "many">;
486
478
  }, z.UnknownKeysParam, z.ZodTypeAny, {
487
479
  tickets: {
@@ -521,9 +513,9 @@ declare const FindByMailTicketResponseDto_base: import("@anatine/zod-nestjs").Zo
521
513
  fullName: string;
522
514
  mail: string;
523
515
  eventId: string;
524
- status: "BOOKED" | "PAID" | "FREE";
525
516
  created_at: string;
526
517
  updated_at: string;
518
+ ticketGroupId: string;
527
519
  }[];
528
520
  }, {
529
521
  tickets: {
@@ -563,9 +555,9 @@ declare const FindByMailTicketResponseDto_base: import("@anatine/zod-nestjs").Zo
563
555
  fullName: string;
564
556
  mail: string;
565
557
  eventId: string;
566
- status: "BOOKED" | "PAID" | "FREE";
567
558
  created_at: string;
568
559
  updated_at: string;
560
+ ticketGroupId: string;
569
561
  }[];
570
562
  }>>;
571
563
  export declare class FindByMailTicketResponseDto extends FindByMailTicketResponseDto_base {
@@ -8,13 +8,9 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
8
8
  STAFF: "STAFF";
9
9
  SPECTATOR: "SPECTATOR";
10
10
  }>;
11
- status: z.ZodNativeEnum<{
12
- BOOKED: "BOOKED";
13
- PAID: "PAID";
14
- FREE: "FREE";
15
- }>;
16
11
  fullName: z.ZodString;
17
12
  mail: z.ZodString;
13
+ ticketGroupId: z.ZodString;
18
14
  created_at: z.ZodDate;
19
15
  updated_at: z.ZodDate;
20
16
  }, {
@@ -82,9 +78,9 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
82
78
  fullName: string;
83
79
  mail: string;
84
80
  eventId: string;
85
- status: "BOOKED" | "PAID" | "FREE";
86
81
  created_at: Date;
87
82
  updated_at: Date;
83
+ ticketGroupId: string;
88
84
  }, {
89
85
  event: {
90
86
  location: string;
@@ -106,9 +102,9 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
106
102
  fullName: string;
107
103
  mail: string;
108
104
  eventId: string;
109
- status: "BOOKED" | "PAID" | "FREE";
110
105
  created_at: Date;
111
106
  updated_at: Date;
107
+ ticketGroupId: string;
112
108
  }>, "many">;
113
109
  }, "strip", z.ZodTypeAny, {
114
110
  tickets: {
@@ -132,9 +128,9 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
132
128
  fullName: string;
133
129
  mail: string;
134
130
  eventId: string;
135
- status: "BOOKED" | "PAID" | "FREE";
136
131
  created_at: Date;
137
132
  updated_at: Date;
133
+ ticketGroupId: string;
138
134
  }[];
139
135
  }, {
140
136
  tickets: {
@@ -158,9 +154,9 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
158
154
  fullName: string;
159
155
  mail: string;
160
156
  eventId: string;
161
- status: "BOOKED" | "PAID" | "FREE";
162
157
  created_at: Date;
163
158
  updated_at: Date;
159
+ ticketGroupId: string;
164
160
  }[];
165
161
  }>;
166
162
  declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
@@ -172,13 +168,9 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
172
168
  STAFF: "STAFF";
173
169
  SPECTATOR: "SPECTATOR";
174
170
  }>;
175
- status: z.ZodNativeEnum<{
176
- BOOKED: "BOOKED";
177
- PAID: "PAID";
178
- FREE: "FREE";
179
- }>;
180
171
  fullName: z.ZodString;
181
172
  mail: z.ZodString;
173
+ ticketGroupId: z.ZodString;
182
174
  created_at: z.ZodString;
183
175
  updated_at: z.ZodString;
184
176
  event: z.ZodObject<{
@@ -245,9 +237,9 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
245
237
  fullName: string;
246
238
  mail: string;
247
239
  eventId: string;
248
- status: "BOOKED" | "PAID" | "FREE";
249
240
  created_at: string;
250
241
  updated_at: string;
242
+ ticketGroupId: string;
251
243
  }, {
252
244
  event: {
253
245
  location: string;
@@ -269,9 +261,9 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
269
261
  fullName: string;
270
262
  mail: string;
271
263
  eventId: string;
272
- status: "BOOKED" | "PAID" | "FREE";
273
264
  created_at: string;
274
265
  updated_at: string;
266
+ ticketGroupId: string;
275
267
  }>, "many">;
276
268
  }, z.UnknownKeysParam, z.ZodTypeAny, {
277
269
  tickets: {
@@ -295,9 +287,9 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
295
287
  fullName: string;
296
288
  mail: string;
297
289
  eventId: string;
298
- status: "BOOKED" | "PAID" | "FREE";
299
290
  created_at: string;
300
291
  updated_at: string;
292
+ ticketGroupId: string;
301
293
  }[];
302
294
  }, {
303
295
  tickets: {
@@ -321,9 +313,9 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
321
313
  fullName: string;
322
314
  mail: string;
323
315
  eventId: string;
324
- status: "BOOKED" | "PAID" | "FREE";
325
316
  created_at: string;
326
317
  updated_at: string;
318
+ ticketGroupId: string;
327
319
  }[];
328
320
  }>>;
329
321
  export declare class FindByProfileIdTicketResponseDto extends FindByProfileIdTicketResponseDto_base {
@@ -6,13 +6,9 @@ export declare const findTicketResponseSchema: import("zod").ZodObject<{
6
6
  STAFF: "STAFF";
7
7
  SPECTATOR: "SPECTATOR";
8
8
  }>;
9
- status: import("zod").ZodNativeEnum<{
10
- BOOKED: "BOOKED";
11
- PAID: "PAID";
12
- FREE: "FREE";
13
- }>;
14
9
  fullName: import("zod").ZodString;
15
10
  mail: import("zod").ZodString;
11
+ ticketGroupId: import("zod").ZodString;
16
12
  created_at: import("zod").ZodDate;
17
13
  updated_at: import("zod").ZodDate;
18
14
  }, "strip", import("zod").ZodTypeAny, {
@@ -21,18 +17,18 @@ export declare const findTicketResponseSchema: import("zod").ZodObject<{
21
17
  fullName: string;
22
18
  mail: string;
23
19
  eventId: string;
24
- status: "BOOKED" | "PAID" | "FREE";
25
20
  created_at: Date;
26
21
  updated_at: Date;
22
+ ticketGroupId: string;
27
23
  }, {
28
24
  id: string;
29
25
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
30
26
  fullName: string;
31
27
  mail: string;
32
28
  eventId: string;
33
- status: "BOOKED" | "PAID" | "FREE";
34
29
  created_at: Date;
35
30
  updated_at: Date;
31
+ ticketGroupId: string;
36
32
  }>;
37
33
  declare const FindTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
38
34
  id: import("zod").ZodString;
@@ -42,13 +38,9 @@ declare const FindTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoSt
42
38
  STAFF: "STAFF";
43
39
  SPECTATOR: "SPECTATOR";
44
40
  }>;
45
- status: import("zod").ZodNativeEnum<{
46
- BOOKED: "BOOKED";
47
- PAID: "PAID";
48
- FREE: "FREE";
49
- }>;
50
41
  fullName: import("zod").ZodString;
51
42
  mail: import("zod").ZodString;
43
+ ticketGroupId: import("zod").ZodString;
52
44
  created_at: import("zod").ZodString;
53
45
  updated_at: import("zod").ZodString;
54
46
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
@@ -57,18 +49,18 @@ declare const FindTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoSt
57
49
  fullName: string;
58
50
  mail: string;
59
51
  eventId: string;
60
- status: "BOOKED" | "PAID" | "FREE";
61
52
  created_at: string;
62
53
  updated_at: string;
54
+ ticketGroupId: string;
63
55
  }, {
64
56
  id: string;
65
57
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
66
58
  fullName: string;
67
59
  mail: string;
68
60
  eventId: string;
69
- status: "BOOKED" | "PAID" | "FREE";
70
61
  created_at: string;
71
62
  updated_at: string;
63
+ ticketGroupId: string;
72
64
  }>>;
73
65
  export declare class FindTicketResponseDto extends FindTicketResponseDto_base {
74
66
  }
@@ -7,13 +7,9 @@ export declare const ticketSchema: z.ZodObject<{
7
7
  STAFF: "STAFF";
8
8
  SPECTATOR: "SPECTATOR";
9
9
  }>;
10
- status: z.ZodNativeEnum<{
11
- BOOKED: "BOOKED";
12
- PAID: "PAID";
13
- FREE: "FREE";
14
- }>;
15
10
  fullName: z.ZodString;
16
11
  mail: z.ZodString;
12
+ ticketGroupId: z.ZodString;
17
13
  created_at: z.ZodDate;
18
14
  updated_at: z.ZodDate;
19
15
  }, "strip", z.ZodTypeAny, {
@@ -22,18 +18,18 @@ export declare const ticketSchema: z.ZodObject<{
22
18
  fullName: string;
23
19
  mail: string;
24
20
  eventId: string;
25
- status: "BOOKED" | "PAID" | "FREE";
26
21
  created_at: Date;
27
22
  updated_at: Date;
23
+ ticketGroupId: string;
28
24
  }, {
29
25
  id: string;
30
26
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
31
27
  fullName: string;
32
28
  mail: string;
33
29
  eventId: string;
34
- status: "BOOKED" | "PAID" | "FREE";
35
30
  created_at: Date;
36
31
  updated_at: Date;
32
+ ticketGroupId: string;
37
33
  }>;
38
34
  declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
39
35
  id: z.ZodString;
@@ -43,13 +39,9 @@ declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
43
39
  STAFF: "STAFF";
44
40
  SPECTATOR: "SPECTATOR";
45
41
  }>;
46
- status: z.ZodNativeEnum<{
47
- BOOKED: "BOOKED";
48
- PAID: "PAID";
49
- FREE: "FREE";
50
- }>;
51
42
  fullName: z.ZodString;
52
43
  mail: z.ZodString;
44
+ ticketGroupId: z.ZodString;
53
45
  created_at: z.ZodString;
54
46
  updated_at: z.ZodString;
55
47
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -58,18 +50,18 @@ declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
58
50
  fullName: string;
59
51
  mail: string;
60
52
  eventId: string;
61
- status: "BOOKED" | "PAID" | "FREE";
62
53
  created_at: string;
63
54
  updated_at: string;
55
+ ticketGroupId: string;
64
56
  }, {
65
57
  id: string;
66
58
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
67
59
  fullName: string;
68
60
  mail: string;
69
61
  eventId: string;
70
- status: "BOOKED" | "PAID" | "FREE";
71
62
  created_at: string;
72
63
  updated_at: string;
64
+ ticketGroupId: string;
73
65
  }>>;
74
66
  export declare class TicketDto extends TicketDto_base {
75
67
  }
@@ -7,6 +7,7 @@ exports.TicketDto = exports.ticketSchema = void 0;
7
7
  const event_dto_1 = require("../../event/dto/event.dto");
8
8
  const translate_1 = require("../../i18n/translate");
9
9
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
10
+ const ticket_group_dto_1 = require("../../ticket-group/dto/ticket-group.dto");
10
11
  const zod_1 = __importDefault(require("zod"));
11
12
  const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
12
13
  exports.ticketSchema = zod_1.default.object({
@@ -15,11 +16,9 @@ exports.ticketSchema = zod_1.default.object({
15
16
  type: zod_1.default.nativeEnum(prisma_schema_1.TicketType, {
16
17
  message: (0, translate_1.translate)('model.ticket.type.invalid'),
17
18
  }),
18
- status: zod_1.default.nativeEnum(prisma_schema_1.TicketStatus, {
19
- message: (0, translate_1.translate)('model.ticket.status.invalid'),
20
- }),
21
19
  fullName: zod_1.default.string().min(1, (0, translate_1.translate)('model.ticket.fullName.required')),
22
20
  mail: zod_1.default.string().email((0, translate_1.translate)('model.ticket.mail.email')),
21
+ ticketGroupId: ticket_group_dto_1.ticketGroupSchema.shape.id,
23
22
  created_at: zod_1.default.date(),
24
23
  updated_at: zod_1.default.date(),
25
24
  });
@@ -6,21 +6,17 @@ export declare const updateTicketSchema: import("zod").ZodObject<{
6
6
  }>>;
7
7
  fullName: import("zod").ZodOptional<import("zod").ZodString>;
8
8
  mail: import("zod").ZodOptional<import("zod").ZodString>;
9
- status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
10
- BOOKED: "BOOKED";
11
- PAID: "PAID";
12
- FREE: "FREE";
13
- }>>;
9
+ ticketGroupId: import("zod").ZodOptional<import("zod").ZodString>;
14
10
  }, "strip", import("zod").ZodTypeAny, {
15
11
  type?: "PARTICIPANT" | "STAFF" | "SPECTATOR" | undefined;
16
12
  fullName?: string | undefined;
17
13
  mail?: string | undefined;
18
- status?: "BOOKED" | "PAID" | "FREE" | undefined;
14
+ ticketGroupId?: string | undefined;
19
15
  }, {
20
16
  type?: "PARTICIPANT" | "STAFF" | "SPECTATOR" | undefined;
21
17
  fullName?: string | undefined;
22
18
  mail?: string | undefined;
23
- status?: "BOOKED" | "PAID" | "FREE" | undefined;
19
+ ticketGroupId?: string | undefined;
24
20
  }>;
25
21
  declare const UpdateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
26
22
  type: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
@@ -30,21 +26,17 @@ declare const UpdateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<i
30
26
  }>>;
31
27
  fullName: import("zod").ZodOptional<import("zod").ZodString>;
32
28
  mail: import("zod").ZodOptional<import("zod").ZodString>;
33
- status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
34
- BOOKED: "BOOKED";
35
- PAID: "PAID";
36
- FREE: "FREE";
37
- }>>;
29
+ ticketGroupId: import("zod").ZodOptional<import("zod").ZodString>;
38
30
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
39
31
  type?: "PARTICIPANT" | "STAFF" | "SPECTATOR" | undefined;
40
32
  fullName?: string | undefined;
41
33
  mail?: string | undefined;
42
- status?: "BOOKED" | "PAID" | "FREE" | undefined;
34
+ ticketGroupId?: string | undefined;
43
35
  }, {
44
36
  type?: "PARTICIPANT" | "STAFF" | "SPECTATOR" | undefined;
45
37
  fullName?: string | undefined;
46
38
  mail?: string | undefined;
47
- status?: "BOOKED" | "PAID" | "FREE" | undefined;
39
+ ticketGroupId?: string | undefined;
48
40
  }>>;
49
41
  export declare class UpdateTicketDto extends UpdateTicketDto_base {
50
42
  }
@@ -56,13 +48,9 @@ export declare const updateTicketResponseSchema: import("zod").ZodObject<{
56
48
  STAFF: "STAFF";
57
49
  SPECTATOR: "SPECTATOR";
58
50
  }>;
59
- status: import("zod").ZodNativeEnum<{
60
- BOOKED: "BOOKED";
61
- PAID: "PAID";
62
- FREE: "FREE";
63
- }>;
64
51
  fullName: import("zod").ZodString;
65
52
  mail: import("zod").ZodString;
53
+ ticketGroupId: import("zod").ZodString;
66
54
  created_at: import("zod").ZodDate;
67
55
  updated_at: import("zod").ZodDate;
68
56
  }, "strip", import("zod").ZodTypeAny, {
@@ -71,18 +59,18 @@ export declare const updateTicketResponseSchema: import("zod").ZodObject<{
71
59
  fullName: string;
72
60
  mail: string;
73
61
  eventId: string;
74
- status: "BOOKED" | "PAID" | "FREE";
75
62
  created_at: Date;
76
63
  updated_at: Date;
64
+ ticketGroupId: string;
77
65
  }, {
78
66
  id: string;
79
67
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
80
68
  fullName: string;
81
69
  mail: string;
82
70
  eventId: string;
83
- status: "BOOKED" | "PAID" | "FREE";
84
71
  created_at: Date;
85
72
  updated_at: Date;
73
+ ticketGroupId: string;
86
74
  }>;
87
75
  declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
88
76
  id: import("zod").ZodString;
@@ -92,13 +80,9 @@ declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
92
80
  STAFF: "STAFF";
93
81
  SPECTATOR: "SPECTATOR";
94
82
  }>;
95
- status: import("zod").ZodNativeEnum<{
96
- BOOKED: "BOOKED";
97
- PAID: "PAID";
98
- FREE: "FREE";
99
- }>;
100
83
  fullName: import("zod").ZodString;
101
84
  mail: import("zod").ZodString;
85
+ ticketGroupId: import("zod").ZodString;
102
86
  created_at: import("zod").ZodString;
103
87
  updated_at: import("zod").ZodString;
104
88
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
@@ -107,18 +91,18 @@ declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
107
91
  fullName: string;
108
92
  mail: string;
109
93
  eventId: string;
110
- status: "BOOKED" | "PAID" | "FREE";
111
94
  created_at: string;
112
95
  updated_at: string;
96
+ ticketGroupId: string;
113
97
  }, {
114
98
  id: string;
115
99
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
116
100
  fullName: string;
117
101
  mail: string;
118
102
  eventId: string;
119
- status: "BOOKED" | "PAID" | "FREE";
120
103
  created_at: string;
121
104
  updated_at: string;
105
+ ticketGroupId: string;
122
106
  }>>;
123
107
  export declare class UpdateTicketResponseDto extends UpdateTicketResponseDto_base {
124
108
  }
@@ -6,9 +6,9 @@ const ticket_dto_1 = require("./ticket.dto");
6
6
  exports.updateTicketSchema = ticket_dto_1.ticketSchema
7
7
  .pick({
8
8
  type: true,
9
- status: true,
10
9
  fullName: true,
11
10
  mail: true,
11
+ ticketGroupId: true,
12
12
  })
13
13
  .partial();
14
14
  class UpdateTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketSchema) {