expo-backend-types 0.40.0-EXPO-330-ExpoBackend-MercadoPago.8 → 0.40.0-EXPO-327-EB-Escanear-entrada.5

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.
@@ -238,123 +238,401 @@ export declare const createManyTicketResponseSchema: z.ZodArray<z.ZodObject<z.ob
238
238
  scannedAt: Date | null;
239
239
  ticketGroupId: string | null;
240
240
  }>, "many">;
241
- declare const CreateManyTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodArray<z.ZodObject<{
242
- id: z.ZodString;
243
- eventId: z.ZodString;
244
- type: z.ZodNativeEnum<{
245
- PARTICIPANT: "PARTICIPANT";
246
- STAFF: "STAFF";
247
- SPECTATOR: "SPECTATOR";
248
- }>;
249
- fullName: z.ZodString;
250
- mail: z.ZodString;
251
- dni: z.ZodString;
252
- seat: z.ZodNullable<z.ZodNumber>;
253
- scanned: z.ZodBoolean;
254
- scannedAt: z.ZodNullable<z.ZodString>;
255
- ticketGroupId: z.ZodNullable<z.ZodString>;
256
- created_at: z.ZodString;
257
- updated_at: z.ZodString;
258
- event: z.ZodObject<{
241
+ export declare const createManyTicketWithPdfsResponseSchema: z.ZodObject<{
242
+ tickets: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
259
243
  id: z.ZodString;
260
- name: z.ZodString;
261
- date: z.ZodString;
262
- startingDate: z.ZodString;
263
- endingDate: z.ZodString;
264
- location: z.ZodString;
265
- folderId: z.ZodNullable<z.ZodString>;
266
- tagAssistedId: z.ZodString;
267
- tagConfirmedId: z.ZodString;
268
- active: z.ZodBoolean;
269
- supraEventId: z.ZodNullable<z.ZodString>;
244
+ eventId: z.ZodString;
245
+ type: z.ZodNativeEnum<{
246
+ PARTICIPANT: "PARTICIPANT";
247
+ STAFF: "STAFF";
248
+ SPECTATOR: "SPECTATOR";
249
+ }>;
250
+ fullName: z.ZodString;
251
+ mail: z.ZodString;
252
+ dni: z.ZodString;
253
+ seat: z.ZodNullable<z.ZodNumber>;
254
+ scanned: z.ZodBoolean;
255
+ scannedAt: z.ZodNullable<z.ZodDate>;
256
+ ticketGroupId: z.ZodNullable<z.ZodString>;
257
+ created_at: z.ZodDate;
258
+ updated_at: z.ZodDate;
259
+ }, {
260
+ event: z.ZodObject<{
261
+ id: z.ZodString;
262
+ name: z.ZodString;
263
+ date: z.ZodDate;
264
+ startingDate: z.ZodDate;
265
+ endingDate: z.ZodDate;
266
+ location: z.ZodString;
267
+ folderId: z.ZodNullable<z.ZodString>;
268
+ tagAssistedId: z.ZodString;
269
+ tagConfirmedId: z.ZodString;
270
+ active: z.ZodBoolean;
271
+ supraEventId: z.ZodNullable<z.ZodString>;
272
+ created_at: z.ZodDate;
273
+ updated_at: z.ZodDate;
274
+ }, "strip", z.ZodTypeAny, {
275
+ location: string;
276
+ id: string;
277
+ name: string;
278
+ date: Date;
279
+ startingDate: Date;
280
+ endingDate: Date;
281
+ created_at: Date;
282
+ updated_at: Date;
283
+ active: boolean;
284
+ folderId: string | null;
285
+ tagAssistedId: string;
286
+ tagConfirmedId: string;
287
+ supraEventId: string | null;
288
+ }, {
289
+ location: string;
290
+ id: string;
291
+ name: string;
292
+ date: Date;
293
+ startingDate: Date;
294
+ endingDate: Date;
295
+ created_at: Date;
296
+ updated_at: Date;
297
+ active: boolean;
298
+ folderId: string | null;
299
+ tagAssistedId: string;
300
+ tagConfirmedId: string;
301
+ supraEventId: string | null;
302
+ }>;
303
+ }>, "strip", z.ZodTypeAny, {
304
+ event: {
305
+ location: string;
306
+ id: string;
307
+ name: string;
308
+ date: Date;
309
+ startingDate: Date;
310
+ endingDate: Date;
311
+ created_at: Date;
312
+ updated_at: Date;
313
+ active: boolean;
314
+ folderId: string | null;
315
+ tagAssistedId: string;
316
+ tagConfirmedId: string;
317
+ supraEventId: string | null;
318
+ };
319
+ id: string;
320
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
321
+ fullName: string;
322
+ mail: string;
323
+ eventId: string;
324
+ dni: string;
325
+ seat: number | null;
326
+ created_at: Date;
327
+ updated_at: Date;
328
+ scanned: boolean;
329
+ scannedAt: Date | null;
330
+ ticketGroupId: string | null;
331
+ }, {
332
+ event: {
333
+ location: string;
334
+ id: string;
335
+ name: string;
336
+ date: Date;
337
+ startingDate: Date;
338
+ endingDate: Date;
339
+ created_at: Date;
340
+ updated_at: Date;
341
+ active: boolean;
342
+ folderId: string | null;
343
+ tagAssistedId: string;
344
+ tagConfirmedId: string;
345
+ supraEventId: string | null;
346
+ };
347
+ id: string;
348
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
349
+ fullName: string;
350
+ mail: string;
351
+ eventId: string;
352
+ dni: string;
353
+ seat: number | null;
354
+ created_at: Date;
355
+ updated_at: Date;
356
+ scanned: boolean;
357
+ scannedAt: Date | null;
358
+ ticketGroupId: string | null;
359
+ }>, "many">;
360
+ pdfs: z.ZodArray<z.ZodObject<{
361
+ ticketId: z.ZodString;
362
+ pdfBase64: z.ZodString;
363
+ }, "strip", z.ZodTypeAny, {
364
+ ticketId: string;
365
+ pdfBase64: string;
366
+ }, {
367
+ ticketId: string;
368
+ pdfBase64: string;
369
+ }>, "many">;
370
+ }, "strip", z.ZodTypeAny, {
371
+ tickets: {
372
+ event: {
373
+ location: string;
374
+ id: string;
375
+ name: string;
376
+ date: Date;
377
+ startingDate: Date;
378
+ endingDate: Date;
379
+ created_at: Date;
380
+ updated_at: Date;
381
+ active: boolean;
382
+ folderId: string | null;
383
+ tagAssistedId: string;
384
+ tagConfirmedId: string;
385
+ supraEventId: string | null;
386
+ };
387
+ id: string;
388
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
389
+ fullName: string;
390
+ mail: string;
391
+ eventId: string;
392
+ dni: string;
393
+ seat: number | null;
394
+ created_at: Date;
395
+ updated_at: Date;
396
+ scanned: boolean;
397
+ scannedAt: Date | null;
398
+ ticketGroupId: string | null;
399
+ }[];
400
+ pdfs: {
401
+ ticketId: string;
402
+ pdfBase64: string;
403
+ }[];
404
+ }, {
405
+ tickets: {
406
+ event: {
407
+ location: string;
408
+ id: string;
409
+ name: string;
410
+ date: Date;
411
+ startingDate: Date;
412
+ endingDate: Date;
413
+ created_at: Date;
414
+ updated_at: Date;
415
+ active: boolean;
416
+ folderId: string | null;
417
+ tagAssistedId: string;
418
+ tagConfirmedId: string;
419
+ supraEventId: string | null;
420
+ };
421
+ id: string;
422
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
423
+ fullName: string;
424
+ mail: string;
425
+ eventId: string;
426
+ dni: string;
427
+ seat: number | null;
428
+ created_at: Date;
429
+ updated_at: Date;
430
+ scanned: boolean;
431
+ scannedAt: Date | null;
432
+ ticketGroupId: string | null;
433
+ }[];
434
+ pdfs: {
435
+ ticketId: string;
436
+ pdfBase64: string;
437
+ }[];
438
+ }>;
439
+ declare const CreateManyTicketWithPdfsResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
440
+ tickets: z.ZodArray<z.ZodObject<{
441
+ id: z.ZodString;
442
+ eventId: z.ZodString;
443
+ type: z.ZodNativeEnum<{
444
+ PARTICIPANT: "PARTICIPANT";
445
+ STAFF: "STAFF";
446
+ SPECTATOR: "SPECTATOR";
447
+ }>;
448
+ fullName: z.ZodString;
449
+ mail: z.ZodString;
450
+ dni: z.ZodString;
451
+ seat: z.ZodNullable<z.ZodNumber>;
452
+ scanned: z.ZodBoolean;
453
+ scannedAt: z.ZodNullable<z.ZodString>;
454
+ ticketGroupId: z.ZodNullable<z.ZodString>;
270
455
  created_at: z.ZodString;
271
456
  updated_at: z.ZodString;
457
+ event: z.ZodObject<{
458
+ id: z.ZodString;
459
+ name: z.ZodString;
460
+ date: z.ZodString;
461
+ startingDate: z.ZodString;
462
+ endingDate: z.ZodString;
463
+ location: z.ZodString;
464
+ folderId: z.ZodNullable<z.ZodString>;
465
+ tagAssistedId: z.ZodString;
466
+ tagConfirmedId: z.ZodString;
467
+ active: z.ZodBoolean;
468
+ supraEventId: z.ZodNullable<z.ZodString>;
469
+ created_at: z.ZodString;
470
+ updated_at: z.ZodString;
471
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
472
+ location: string;
473
+ id: string;
474
+ name: string;
475
+ date: string;
476
+ startingDate: string;
477
+ endingDate: string;
478
+ created_at: string;
479
+ updated_at: string;
480
+ active: boolean;
481
+ folderId: string | null;
482
+ tagAssistedId: string;
483
+ tagConfirmedId: string;
484
+ supraEventId: string | null;
485
+ }, {
486
+ location: string;
487
+ id: string;
488
+ name: string;
489
+ date: string;
490
+ startingDate: string;
491
+ endingDate: string;
492
+ created_at: string;
493
+ updated_at: string;
494
+ active: boolean;
495
+ folderId: string | null;
496
+ tagAssistedId: string;
497
+ tagConfirmedId: string;
498
+ supraEventId: string | null;
499
+ }>;
272
500
  }, z.UnknownKeysParam, z.ZodTypeAny, {
273
- location: string;
501
+ event: {
502
+ location: string;
503
+ id: string;
504
+ name: string;
505
+ date: string;
506
+ startingDate: string;
507
+ endingDate: string;
508
+ created_at: string;
509
+ updated_at: string;
510
+ active: boolean;
511
+ folderId: string | null;
512
+ tagAssistedId: string;
513
+ tagConfirmedId: string;
514
+ supraEventId: string | null;
515
+ };
274
516
  id: string;
275
- name: string;
276
- date: string;
277
- startingDate: string;
278
- endingDate: string;
517
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
518
+ fullName: string;
519
+ mail: string;
520
+ eventId: string;
521
+ dni: string;
522
+ seat: number | null;
279
523
  created_at: string;
280
524
  updated_at: string;
281
- active: boolean;
282
- folderId: string | null;
283
- tagAssistedId: string;
284
- tagConfirmedId: string;
285
- supraEventId: string | null;
525
+ scanned: boolean;
526
+ scannedAt: string | null;
527
+ ticketGroupId: string | null;
286
528
  }, {
287
- location: string;
529
+ event: {
530
+ location: string;
531
+ id: string;
532
+ name: string;
533
+ date: string;
534
+ startingDate: string;
535
+ endingDate: string;
536
+ created_at: string;
537
+ updated_at: string;
538
+ active: boolean;
539
+ folderId: string | null;
540
+ tagAssistedId: string;
541
+ tagConfirmedId: string;
542
+ supraEventId: string | null;
543
+ };
288
544
  id: string;
289
- name: string;
290
- date: string;
291
- startingDate: string;
292
- endingDate: string;
545
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
546
+ fullName: string;
547
+ mail: string;
548
+ eventId: string;
549
+ dni: string;
550
+ seat: number | null;
293
551
  created_at: string;
294
552
  updated_at: string;
295
- active: boolean;
296
- folderId: string | null;
297
- tagAssistedId: string;
298
- tagConfirmedId: string;
299
- supraEventId: string | null;
300
- }>;
553
+ scanned: boolean;
554
+ scannedAt: string | null;
555
+ ticketGroupId: string | null;
556
+ }>, "many">;
557
+ pdfs: z.ZodArray<z.ZodObject<{
558
+ ticketId: z.ZodString;
559
+ pdfBase64: z.ZodString;
560
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
561
+ ticketId: string;
562
+ pdfBase64: string;
563
+ }, {
564
+ ticketId: string;
565
+ pdfBase64: string;
566
+ }>, "many">;
301
567
  }, z.UnknownKeysParam, z.ZodTypeAny, {
302
- event: {
303
- location: string;
568
+ tickets: {
569
+ event: {
570
+ location: string;
571
+ id: string;
572
+ name: string;
573
+ date: string;
574
+ startingDate: string;
575
+ endingDate: string;
576
+ created_at: string;
577
+ updated_at: string;
578
+ active: boolean;
579
+ folderId: string | null;
580
+ tagAssistedId: string;
581
+ tagConfirmedId: string;
582
+ supraEventId: string | null;
583
+ };
304
584
  id: string;
305
- name: string;
306
- date: string;
307
- startingDate: string;
308
- endingDate: string;
585
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
586
+ fullName: string;
587
+ mail: string;
588
+ eventId: string;
589
+ dni: string;
590
+ seat: number | null;
309
591
  created_at: string;
310
592
  updated_at: string;
311
- active: boolean;
312
- folderId: string | null;
313
- tagAssistedId: string;
314
- tagConfirmedId: string;
315
- supraEventId: string | null;
316
- };
317
- id: string;
318
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
319
- fullName: string;
320
- mail: string;
321
- eventId: string;
322
- dni: string;
323
- seat: number | null;
324
- created_at: string;
325
- updated_at: string;
326
- scanned: boolean;
327
- scannedAt: string | null;
328
- ticketGroupId: string | null;
593
+ scanned: boolean;
594
+ scannedAt: string | null;
595
+ ticketGroupId: string | null;
596
+ }[];
597
+ pdfs: {
598
+ ticketId: string;
599
+ pdfBase64: string;
600
+ }[];
329
601
  }, {
330
- event: {
331
- location: string;
602
+ tickets: {
603
+ event: {
604
+ location: string;
605
+ id: string;
606
+ name: string;
607
+ date: string;
608
+ startingDate: string;
609
+ endingDate: string;
610
+ created_at: string;
611
+ updated_at: string;
612
+ active: boolean;
613
+ folderId: string | null;
614
+ tagAssistedId: string;
615
+ tagConfirmedId: string;
616
+ supraEventId: string | null;
617
+ };
332
618
  id: string;
333
- name: string;
334
- date: string;
335
- startingDate: string;
336
- endingDate: string;
619
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
620
+ fullName: string;
621
+ mail: string;
622
+ eventId: string;
623
+ dni: string;
624
+ seat: number | null;
337
625
  created_at: string;
338
626
  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
- type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
347
- fullName: string;
348
- mail: string;
349
- eventId: string;
350
- dni: string;
351
- seat: number | null;
352
- created_at: string;
353
- updated_at: string;
354
- scanned: boolean;
355
- scannedAt: string | null;
356
- ticketGroupId: string | null;
357
- }>, "many">>;
358
- export declare class CreateManyTicketResponseDto extends CreateManyTicketResponseDto_base {
627
+ scanned: boolean;
628
+ scannedAt: string | null;
629
+ ticketGroupId: string | null;
630
+ }[];
631
+ pdfs: {
632
+ ticketId: string;
633
+ pdfBase64: string;
634
+ }[];
635
+ }>>;
636
+ export declare class CreateManyTicketWithPdfsResponseDto extends CreateManyTicketWithPdfsResponseDto_base {
359
637
  }
360
638
  export {};
@@ -3,7 +3,7 @@ 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.CreateManyTicketResponseDto = exports.createManyTicketResponseSchema = exports.generateMultiplePdfTicketsSchema = exports.CreateManyTicketDto = exports.createManyTicketSchema = void 0;
6
+ exports.CreateManyTicketWithPdfsResponseDto = exports.createManyTicketWithPdfsResponseSchema = exports.createManyTicketResponseSchema = exports.generateMultiplePdfTicketsSchema = exports.CreateManyTicketDto = exports.createManyTicketSchema = void 0;
7
7
  const event_dto_1 = require("../../event/dto/event.dto");
8
8
  const profile_schema_1 = require("../../schema/profile.schema");
9
9
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
@@ -37,7 +37,14 @@ exports.createManyTicketResponseSchema = ticket_dto_1.ticketSchema
37
37
  event: event_dto_1.eventSchema,
38
38
  })
39
39
  .array();
40
- class CreateManyTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createManyTicketResponseSchema) {
40
+ exports.createManyTicketWithPdfsResponseSchema = zod_1.default.object({
41
+ tickets: exports.createManyTicketResponseSchema,
42
+ pdfs: zod_1.default.array(zod_1.default.object({
43
+ ticketId: zod_1.default.string(),
44
+ pdfBase64: zod_1.default.string(),
45
+ })),
46
+ });
47
+ class CreateManyTicketWithPdfsResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createManyTicketWithPdfsResponseSchema) {
41
48
  }
42
- exports.CreateManyTicketResponseDto = CreateManyTicketResponseDto;
49
+ exports.CreateManyTicketWithPdfsResponseDto = CreateManyTicketWithPdfsResponseDto;
43
50
  //# sourceMappingURL=create-many-ticket.dto.js.map
@@ -1,33 +1,113 @@
1
1
  import z from 'zod';
2
2
  export declare const scanTicketSchema: z.ZodObject<{
3
- ticketBarcode: z.ZodString;
3
+ type: z.ZodEnum<["id", "barcode"]>;
4
+ value: z.ZodString;
4
5
  }, "strip", z.ZodTypeAny, {
5
- ticketBarcode: string;
6
+ type: "id" | "barcode";
7
+ value: string;
6
8
  }, {
7
- ticketBarcode: string;
9
+ type: "id" | "barcode";
10
+ value: string;
8
11
  }>;
9
12
  declare const ScanTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
- ticketBarcode: z.ZodString;
13
+ type: z.ZodEnum<["id", "barcode"]>;
14
+ value: z.ZodString;
11
15
  }, z.UnknownKeysParam, z.ZodTypeAny, {
12
- ticketBarcode: string;
16
+ type: "id" | "barcode";
17
+ value: string;
13
18
  }, {
14
- ticketBarcode: string;
19
+ type: "id" | "barcode";
20
+ value: string;
15
21
  }>>;
16
22
  export declare class ScanTicketDto extends ScanTicketDto_base {
17
23
  }
18
24
  export declare const scanTicketResponseSchema: z.ZodObject<{
19
- success: z.ZodBoolean;
25
+ id: z.ZodString;
26
+ eventId: z.ZodString;
27
+ type: z.ZodNativeEnum<{
28
+ PARTICIPANT: "PARTICIPANT";
29
+ STAFF: "STAFF";
30
+ SPECTATOR: "SPECTATOR";
31
+ }>;
32
+ fullName: z.ZodString;
33
+ mail: z.ZodString;
34
+ dni: z.ZodString;
35
+ seat: z.ZodNullable<z.ZodNumber>;
36
+ scanned: z.ZodBoolean;
37
+ scannedAt: z.ZodNullable<z.ZodDate>;
38
+ ticketGroupId: z.ZodNullable<z.ZodString>;
39
+ created_at: z.ZodDate;
40
+ updated_at: z.ZodDate;
20
41
  }, "strip", z.ZodTypeAny, {
21
- success: boolean;
42
+ id: string;
43
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
44
+ fullName: string;
45
+ mail: string;
46
+ eventId: string;
47
+ dni: string;
48
+ seat: number | null;
49
+ created_at: Date;
50
+ updated_at: Date;
51
+ scanned: boolean;
52
+ scannedAt: Date | null;
53
+ ticketGroupId: string | null;
22
54
  }, {
23
- success: boolean;
55
+ id: string;
56
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
57
+ fullName: string;
58
+ mail: string;
59
+ eventId: string;
60
+ dni: string;
61
+ seat: number | null;
62
+ created_at: Date;
63
+ updated_at: Date;
64
+ scanned: boolean;
65
+ scannedAt: Date | null;
66
+ ticketGroupId: string | null;
24
67
  }>;
25
68
  declare const ScanTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
26
- success: z.ZodBoolean;
69
+ id: z.ZodString;
70
+ eventId: z.ZodString;
71
+ type: z.ZodNativeEnum<{
72
+ PARTICIPANT: "PARTICIPANT";
73
+ STAFF: "STAFF";
74
+ SPECTATOR: "SPECTATOR";
75
+ }>;
76
+ fullName: z.ZodString;
77
+ mail: z.ZodString;
78
+ dni: z.ZodString;
79
+ seat: z.ZodNullable<z.ZodNumber>;
80
+ scanned: z.ZodBoolean;
81
+ scannedAt: z.ZodNullable<z.ZodString>;
82
+ ticketGroupId: z.ZodNullable<z.ZodString>;
83
+ created_at: z.ZodString;
84
+ updated_at: z.ZodString;
27
85
  }, z.UnknownKeysParam, z.ZodTypeAny, {
28
- success: boolean;
86
+ id: string;
87
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
88
+ fullName: string;
89
+ mail: string;
90
+ eventId: string;
91
+ dni: string;
92
+ seat: number | null;
93
+ created_at: string;
94
+ updated_at: string;
95
+ scanned: boolean;
96
+ scannedAt: string | null;
97
+ ticketGroupId: string | null;
29
98
  }, {
30
- success: boolean;
99
+ id: string;
100
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
101
+ fullName: string;
102
+ mail: string;
103
+ eventId: string;
104
+ dni: string;
105
+ seat: number | null;
106
+ created_at: string;
107
+ updated_at: string;
108
+ scanned: boolean;
109
+ scannedAt: string | null;
110
+ ticketGroupId: string | null;
31
111
  }>>;
32
112
  export declare class ScanTicketResponseDto extends ScanTicketResponseDto_base {
33
113
  }
@@ -5,16 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ScanTicketResponseDto = exports.scanTicketResponseSchema = exports.ScanTicketDto = exports.scanTicketSchema = void 0;
7
7
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const ticket_dto_1 = require("./ticket.dto");
8
9
  const zod_1 = __importDefault(require("zod"));
9
10
  exports.scanTicketSchema = zod_1.default.object({
10
- ticketBarcode: zod_1.default.string(),
11
+ type: zod_1.default.enum(['id', 'barcode']),
12
+ value: zod_1.default.string(),
11
13
  });
12
14
  class ScanTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.scanTicketSchema) {
13
15
  }
14
16
  exports.ScanTicketDto = ScanTicketDto;
15
- exports.scanTicketResponseSchema = zod_1.default.object({
16
- success: zod_1.default.boolean(),
17
- });
17
+ exports.scanTicketResponseSchema = ticket_dto_1.ticketSchema;
18
18
  class ScanTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.scanTicketResponseSchema) {
19
19
  }
20
20
  exports.ScanTicketResponseDto = ScanTicketResponseDto;
@@ -1,6 +1,5 @@
1
1
  export * from './dto/create-ticket-group.dto';
2
2
  export * from './dto/delete-ticket-group.dto';
3
- export * from './dto/find-group-ticket-group.dto';
4
3
  export * from './dto/find-tickets-by-event.dto';
5
4
  export * from './dto/ticket-group.dto';
6
5
  export * from './dto/update-ticket-group.dto';
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto/create-ticket-group.dto"), exports);
18
18
  __exportStar(require("./dto/delete-ticket-group.dto"), exports);
19
- __exportStar(require("./dto/find-group-ticket-group.dto"), exports);
20
19
  __exportStar(require("./dto/find-tickets-by-event.dto"), exports);
21
20
  __exportStar(require("./dto/ticket-group.dto"), exports);
22
21
  __exportStar(require("./dto/update-ticket-group.dto"), exports);