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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) 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 +34 -0
  5. package/dist/src/i18n/es.js +34 -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-id-ticket.dto.d.ts +10 -18
  16. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +10 -18
  17. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +10 -18
  18. package/dist/src/ticket/dto/find-ticket.dto.d.ts +6 -14
  19. package/dist/src/ticket/dto/ticket.dto.d.ts +6 -14
  20. package/dist/src/ticket/dto/ticket.dto.js +2 -3
  21. package/dist/src/ticket/dto/update-ticket.dto.d.ts +12 -28
  22. package/dist/src/ticket/dto/update-ticket.dto.js +1 -1
  23. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +346 -0
  24. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +27 -0
  25. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +55 -0
  26. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +10 -0
  27. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +8 -0
  28. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +11 -0
  29. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +56 -0
  30. package/dist/src/ticket-group/dto/ticket-group.dto.js +27 -0
  31. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +79 -0
  32. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +18 -0
  33. package/dist/src/ticket-group/exports.d.ts +5 -0
  34. package/dist/src/ticket-group/exports.js +22 -0
  35. package/dist/types/prisma-schema/edge.js +15 -5
  36. package/dist/types/prisma-schema/index-browser.js +12 -2
  37. package/dist/types/prisma-schema/index.d.ts +2156 -178
  38. package/dist/types/prisma-schema/index.js +15 -5
  39. package/dist/types/prisma-schema/package.json +1 -1
  40. package/dist/types/prisma-schema/schema.prisma +22 -3
  41. package/dist/types/prisma-schema/wasm.js +12 -2
  42. package/dist/types/schema.d.ts +357 -12
  43. package/package.json +3 -2
@@ -0,0 +1,346 @@
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
+ ticketGroupId: z.ZodString;
64
+ created_at: z.ZodDate;
65
+ updated_at: z.ZodDate;
66
+ }, "strip", z.ZodTypeAny, {
67
+ id: string;
68
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
69
+ fullName: string;
70
+ mail: string;
71
+ eventId: string;
72
+ created_at: Date;
73
+ updated_at: Date;
74
+ ticketGroupId: string;
75
+ }, {
76
+ id: string;
77
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
78
+ fullName: string;
79
+ mail: string;
80
+ eventId: string;
81
+ created_at: Date;
82
+ updated_at: Date;
83
+ ticketGroupId: string;
84
+ }>, "many">;
85
+ event: z.ZodObject<{
86
+ id: z.ZodString;
87
+ name: z.ZodString;
88
+ date: z.ZodDate;
89
+ startingDate: z.ZodDate;
90
+ endingDate: z.ZodDate;
91
+ location: z.ZodString;
92
+ folderId: z.ZodNullable<z.ZodString>;
93
+ tagAssistedId: z.ZodString;
94
+ tagConfirmedId: z.ZodString;
95
+ active: z.ZodBoolean;
96
+ supraEventId: z.ZodNullable<z.ZodString>;
97
+ created_at: z.ZodDate;
98
+ updated_at: z.ZodDate;
99
+ }, "strip", z.ZodTypeAny, {
100
+ location: string;
101
+ id: string;
102
+ name: string;
103
+ date: Date;
104
+ startingDate: Date;
105
+ endingDate: Date;
106
+ created_at: Date;
107
+ updated_at: Date;
108
+ active: boolean;
109
+ folderId: string | null;
110
+ tagAssistedId: string;
111
+ tagConfirmedId: string;
112
+ supraEventId: string | null;
113
+ }, {
114
+ location: string;
115
+ id: string;
116
+ name: string;
117
+ date: Date;
118
+ startingDate: Date;
119
+ endingDate: Date;
120
+ created_at: Date;
121
+ updated_at: Date;
122
+ active: boolean;
123
+ folderId: string | null;
124
+ tagAssistedId: string;
125
+ tagConfirmedId: string;
126
+ supraEventId: string | null;
127
+ }>;
128
+ }>, "strip", z.ZodTypeAny, {
129
+ event: {
130
+ location: string;
131
+ id: string;
132
+ name: string;
133
+ date: Date;
134
+ startingDate: Date;
135
+ endingDate: Date;
136
+ created_at: Date;
137
+ updated_at: Date;
138
+ active: boolean;
139
+ folderId: string | null;
140
+ tagAssistedId: string;
141
+ tagConfirmedId: string;
142
+ supraEventId: string | null;
143
+ };
144
+ id: string;
145
+ eventId: string;
146
+ status: "BOOKED" | "PAID" | "FREE";
147
+ amountTickets: number;
148
+ created_at: Date;
149
+ updated_at: Date;
150
+ tickets: {
151
+ id: string;
152
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
153
+ fullName: string;
154
+ mail: string;
155
+ eventId: string;
156
+ created_at: Date;
157
+ updated_at: Date;
158
+ ticketGroupId: string;
159
+ }[];
160
+ }, {
161
+ event: {
162
+ location: string;
163
+ id: string;
164
+ name: string;
165
+ date: Date;
166
+ startingDate: Date;
167
+ endingDate: Date;
168
+ created_at: Date;
169
+ updated_at: Date;
170
+ active: boolean;
171
+ folderId: string | null;
172
+ tagAssistedId: string;
173
+ tagConfirmedId: string;
174
+ supraEventId: string | null;
175
+ };
176
+ id: string;
177
+ eventId: string;
178
+ status: "BOOKED" | "PAID" | "FREE";
179
+ amountTickets: number;
180
+ created_at: Date;
181
+ updated_at: Date;
182
+ tickets: {
183
+ id: string;
184
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
185
+ fullName: string;
186
+ mail: string;
187
+ eventId: string;
188
+ created_at: Date;
189
+ updated_at: Date;
190
+ ticketGroupId: string;
191
+ }[];
192
+ }>;
193
+ declare const CreateTicketGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
194
+ id: z.ZodString;
195
+ amountTickets: z.ZodNumber;
196
+ status: z.ZodNativeEnum<{
197
+ BOOKED: "BOOKED";
198
+ PAID: "PAID";
199
+ FREE: "FREE";
200
+ }>;
201
+ eventId: z.ZodString;
202
+ created_at: z.ZodString;
203
+ updated_at: z.ZodString;
204
+ tickets: z.ZodArray<z.ZodObject<{
205
+ id: z.ZodString;
206
+ eventId: z.ZodString;
207
+ type: z.ZodNativeEnum<{
208
+ PARTICIPANT: "PARTICIPANT";
209
+ STAFF: "STAFF";
210
+ SPECTATOR: "SPECTATOR";
211
+ }>;
212
+ fullName: z.ZodString;
213
+ mail: z.ZodString;
214
+ ticketGroupId: z.ZodString;
215
+ created_at: z.ZodString;
216
+ updated_at: z.ZodString;
217
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
218
+ id: string;
219
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
220
+ fullName: string;
221
+ mail: string;
222
+ eventId: string;
223
+ created_at: string;
224
+ updated_at: string;
225
+ ticketGroupId: string;
226
+ }, {
227
+ id: string;
228
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
229
+ fullName: string;
230
+ mail: string;
231
+ eventId: string;
232
+ created_at: string;
233
+ updated_at: string;
234
+ ticketGroupId: string;
235
+ }>, "many">;
236
+ event: z.ZodObject<{
237
+ id: z.ZodString;
238
+ name: z.ZodString;
239
+ date: z.ZodString;
240
+ startingDate: z.ZodString;
241
+ endingDate: z.ZodString;
242
+ location: z.ZodString;
243
+ folderId: z.ZodNullable<z.ZodString>;
244
+ tagAssistedId: z.ZodString;
245
+ tagConfirmedId: z.ZodString;
246
+ active: z.ZodBoolean;
247
+ supraEventId: z.ZodNullable<z.ZodString>;
248
+ created_at: z.ZodString;
249
+ updated_at: z.ZodString;
250
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
251
+ location: string;
252
+ id: string;
253
+ name: string;
254
+ date: string;
255
+ startingDate: string;
256
+ endingDate: string;
257
+ created_at: string;
258
+ updated_at: string;
259
+ active: boolean;
260
+ folderId: string | null;
261
+ tagAssistedId: string;
262
+ tagConfirmedId: string;
263
+ supraEventId: string | null;
264
+ }, {
265
+ location: string;
266
+ id: string;
267
+ name: string;
268
+ date: string;
269
+ startingDate: string;
270
+ endingDate: string;
271
+ created_at: string;
272
+ updated_at: string;
273
+ active: boolean;
274
+ folderId: string | null;
275
+ tagAssistedId: string;
276
+ tagConfirmedId: string;
277
+ supraEventId: string | null;
278
+ }>;
279
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
280
+ event: {
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
+ id: string;
296
+ eventId: string;
297
+ status: "BOOKED" | "PAID" | "FREE";
298
+ amountTickets: number;
299
+ created_at: string;
300
+ updated_at: string;
301
+ tickets: {
302
+ id: string;
303
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
304
+ fullName: string;
305
+ mail: string;
306
+ eventId: string;
307
+ created_at: string;
308
+ updated_at: string;
309
+ ticketGroupId: string;
310
+ }[];
311
+ }, {
312
+ event: {
313
+ location: string;
314
+ id: string;
315
+ name: string;
316
+ date: string;
317
+ startingDate: string;
318
+ endingDate: string;
319
+ created_at: string;
320
+ updated_at: string;
321
+ active: boolean;
322
+ folderId: string | null;
323
+ tagAssistedId: string;
324
+ tagConfirmedId: string;
325
+ supraEventId: string | null;
326
+ };
327
+ id: string;
328
+ eventId: string;
329
+ status: "BOOKED" | "PAID" | "FREE";
330
+ amountTickets: number;
331
+ created_at: string;
332
+ updated_at: string;
333
+ tickets: {
334
+ id: string;
335
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
336
+ fullName: string;
337
+ mail: string;
338
+ eventId: string;
339
+ created_at: string;
340
+ updated_at: string;
341
+ ticketGroupId: string;
342
+ }[];
343
+ }>>;
344
+ export declare class CreateTicketGroupResponseDto extends CreateTicketGroupResponseDto_base {
345
+ }
346
+ 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,8 @@
1
+ import z from 'zod';
2
+ export declare const findTicketsByEventResponseSchema: z.ZodObject<{
3
+ tickets: z.ZodNumber;
4
+ }, "strip", z.ZodTypeAny, {
5
+ tickets: number;
6
+ }, {
7
+ tickets: number;
8
+ }>;
@@ -0,0 +1,11 @@
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.findTicketsByEventResponseSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.findTicketsByEventResponseSchema = zod_1.default.object({
9
+ tickets: zod_1.default.number(),
10
+ });
11
+ //# 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 {};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTicketGroupResponseDto = exports.updateTicketGroupResponseSchema = exports.UpdateTicketGroupDto = exports.updateTicketGroupSchema = 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.updateTicketGroupSchema = ticket_group_dto_1.ticketGroupSchema
7
+ .pick({
8
+ status: true,
9
+ })
10
+ .partial();
11
+ class UpdateTicketGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketGroupSchema) {
12
+ }
13
+ exports.UpdateTicketGroupDto = UpdateTicketGroupDto;
14
+ exports.updateTicketGroupResponseSchema = ticket_group_dto_1.ticketGroupSchema;
15
+ class UpdateTicketGroupResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketGroupResponseSchema) {
16
+ }
17
+ exports.UpdateTicketGroupResponseDto = UpdateTicketGroupResponseDto;
18
+ //# sourceMappingURL=update-ticket-group.dto.js.map
@@ -0,0 +1,5 @@
1
+ export * from './dto/create-ticket-group.dto';
2
+ export * from './dto/delete-ticket-group.dto';
3
+ export * from './dto/find-tickets-by-event.dto';
4
+ export * from './dto/ticket-group.dto';
5
+ export * from './dto/update-ticket-group.dto';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dto/create-ticket-group.dto"), exports);
18
+ __exportStar(require("./dto/delete-ticket-group.dto"), exports);
19
+ __exportStar(require("./dto/find-tickets-by-event.dto"), exports);
20
+ __exportStar(require("./dto/ticket-group.dto"), exports);
21
+ __exportStar(require("./dto/update-ticket-group.dto"), exports);
22
+ //# sourceMappingURL=exports.js.map