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