expo-backend-types 0.37.0-EXPO-327-EB-Escanear-entrada.3 → 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 (91) 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/csv/dto/download-all-tables.dto.d.ts +3 -2
  5. package/dist/src/event/dto/create-event.dto.d.ts +8 -8
  6. package/dist/src/event/dto/event-tickets.dto.d.ts +2 -2
  7. package/dist/src/event/dto/get-active-events.dto.d.ts +12 -12
  8. package/dist/src/event/dto/get-all-event.dto.d.ts +56 -56
  9. package/dist/src/event/dto/get-by-id-event.dto.d.ts +50 -88
  10. package/dist/src/event/dto/update-event.dto.d.ts +24 -24
  11. package/dist/src/exports.d.ts +1 -0
  12. package/dist/src/exports.js +1 -0
  13. package/dist/src/i18n/es.d.ts +35 -28
  14. package/dist/src/i18n/es.js +201 -79
  15. package/dist/src/i18n/es.js.map +1 -1
  16. package/dist/src/i18n/translate.js +2 -2
  17. package/dist/src/i18n/translate.js.map +1 -1
  18. package/dist/src/image/dto/update-image.dto.d.ts +1 -0
  19. package/dist/src/profile/dto/find-all-profile.dto.d.ts +12 -12
  20. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +20 -20
  21. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +8 -8
  22. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +12 -12
  23. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +12 -12
  24. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +12 -12
  25. package/dist/src/schema/profile.schema.js +7 -17
  26. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +2 -1
  27. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -1
  28. package/dist/src/tag/dto/create-tag.dto.d.ts +4 -4
  29. package/dist/src/tag/dto/delete-tag.dto.d.ts +4 -4
  30. package/dist/src/tag/dto/find-all-tag.dto.d.ts +8 -8
  31. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +8 -8
  32. package/dist/src/tag/dto/find-one-tag.dto.d.ts +4 -4
  33. package/dist/src/tag/dto/tag.dto.d.ts +4 -4
  34. package/dist/src/tag/dto/update-tag.dto.d.ts +4 -4
  35. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +12 -12
  36. package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +12 -12
  37. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +8 -8
  38. package/dist/src/ticket/constants.d.ts +14 -12
  39. package/dist/src/ticket/constants.js +248 -354
  40. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +596 -0
  41. package/dist/src/ticket/dto/create-many-ticket.dto.js +50 -0
  42. package/dist/src/ticket/dto/create-ticket.dto.d.ts +21 -58
  43. package/dist/src/ticket/dto/create-ticket.dto.js +1 -1
  44. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +10 -36
  45. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +18 -56
  46. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +18 -56
  47. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +18 -56
  48. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +18 -56
  49. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +18 -56
  50. package/dist/src/ticket/dto/find-ticket.dto.d.ts +10 -36
  51. package/dist/src/ticket/dto/generate-pdf.dto.d.ts +3 -2
  52. package/dist/src/ticket/dto/ticket.dto.d.ts +10 -36
  53. package/dist/src/ticket/dto/ticket.dto.js +2 -6
  54. package/dist/src/ticket/dto/update-ticket.dto.d.ts +26 -54
  55. package/dist/src/ticket/dto/update-ticket.dto.js +2 -1
  56. package/dist/src/ticket/exports.d.ts +0 -1
  57. package/dist/src/ticket/exports.js +0 -1
  58. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +356 -0
  59. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +27 -0
  60. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +55 -0
  61. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +10 -0
  62. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +32 -0
  63. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +20 -0
  64. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +56 -0
  65. package/dist/src/ticket-group/dto/ticket-group.dto.js +27 -0
  66. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +79 -0
  67. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +18 -0
  68. package/dist/src/ticket-group/exports.d.ts +5 -0
  69. package/dist/src/ticket-group/exports.js +22 -0
  70. package/dist/types/prisma-schema/edge.js +21 -14
  71. package/dist/types/prisma-schema/index-browser.js +16 -9
  72. package/dist/types/prisma-schema/index.d.ts +2464 -653
  73. package/dist/types/prisma-schema/index.js +21 -14
  74. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  75. package/dist/types/prisma-schema/package.json +2 -2
  76. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  77. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  78. package/dist/types/prisma-schema/runtime/index-browser.d.ts +2 -2
  79. package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
  80. package/dist/types/prisma-schema/runtime/library.d.ts +105 -123
  81. package/dist/types/prisma-schema/runtime/library.js +56 -56
  82. package/dist/types/prisma-schema/runtime/react-native.js +25 -25
  83. package/dist/types/prisma-schema/runtime/wasm.js +19 -19
  84. package/dist/types/prisma-schema/schema.prisma +23 -9
  85. package/dist/types/prisma-schema/wasm.js +16 -9
  86. package/dist/types/schema.d.ts +266 -59
  87. package/package.json +19 -18
  88. package/dist/src/ticket/dto/scan-ticket.dto.d.ts +0 -34
  89. package/dist/src/ticket/dto/scan-ticket.dto.js +0 -21
  90. package/dist/src/ticket/dto/send-email.dto.d.ts +0 -18
  91. package/dist/src/ticket/dto/send-email.dto.js +0 -15
@@ -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
@@ -0,0 +1,55 @@
1
+ export declare const deleteTicketGroupResponseSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ amountTickets: import("zod").ZodNumber;
4
+ status: import("zod").ZodNativeEnum<{
5
+ BOOKED: "BOOKED";
6
+ PAID: "PAID";
7
+ FREE: "FREE";
8
+ }>;
9
+ eventId: import("zod").ZodString;
10
+ created_at: import("zod").ZodDate;
11
+ updated_at: import("zod").ZodDate;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ id: string;
14
+ eventId: string;
15
+ status: "BOOKED" | "PAID" | "FREE";
16
+ amountTickets: number;
17
+ created_at: Date;
18
+ updated_at: Date;
19
+ }, {
20
+ id: string;
21
+ eventId: string;
22
+ status: "BOOKED" | "PAID" | "FREE";
23
+ amountTickets: number;
24
+ created_at: Date;
25
+ updated_at: Date;
26
+ }>;
27
+ declare const DeleteTicketGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
28
+ id: import("zod").ZodString;
29
+ amountTickets: import("zod").ZodNumber;
30
+ status: import("zod").ZodNativeEnum<{
31
+ BOOKED: "BOOKED";
32
+ PAID: "PAID";
33
+ FREE: "FREE";
34
+ }>;
35
+ eventId: import("zod").ZodString;
36
+ created_at: import("zod").ZodString;
37
+ updated_at: import("zod").ZodString;
38
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
39
+ id: string;
40
+ eventId: string;
41
+ status: "BOOKED" | "PAID" | "FREE";
42
+ amountTickets: number;
43
+ created_at: string;
44
+ updated_at: string;
45
+ }, {
46
+ id: string;
47
+ eventId: string;
48
+ status: "BOOKED" | "PAID" | "FREE";
49
+ amountTickets: number;
50
+ created_at: string;
51
+ updated_at: string;
52
+ }>>;
53
+ export declare class DeleteTicketGroupResponseDto extends DeleteTicketGroupResponseDto_base {
54
+ }
55
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteTicketGroupResponseDto = exports.deleteTicketGroupResponseSchema = void 0;
4
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
+ const ticket_group_dto_1 = require("./ticket-group.dto");
6
+ exports.deleteTicketGroupResponseSchema = ticket_group_dto_1.ticketGroupSchema;
7
+ class DeleteTicketGroupResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteTicketGroupResponseSchema) {
8
+ }
9
+ exports.DeleteTicketGroupResponseDto = DeleteTicketGroupResponseDto;
10
+ //# sourceMappingURL=delete-ticket-group.dto.js.map
@@ -0,0 +1,32 @@
1
+ import z from 'zod';
2
+ export declare const findTicketsByEventSchema: z.ZodObject<{
3
+ eventId: z.ZodString;
4
+ type: z.ZodNativeEnum<{
5
+ PARTICIPANT: "PARTICIPANT";
6
+ STAFF: "STAFF";
7
+ SPECTATOR: "SPECTATOR";
8
+ }>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
11
+ eventId: string;
12
+ }, {
13
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
14
+ eventId: string;
15
+ }>;
16
+ export declare const findTicketsByEventResponseSchema: z.ZodObject<{
17
+ tickets: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ tickets: number;
20
+ }, {
21
+ tickets: number;
22
+ }>;
23
+ declare const FindTicketsByEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
24
+ tickets: z.ZodNumber;
25
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
26
+ tickets: number;
27
+ }, {
28
+ tickets: number;
29
+ }>>;
30
+ export declare class FindTicketsByEventDto extends FindTicketsByEventDto_base {
31
+ }
32
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FindTicketsByEventDto = exports.findTicketsByEventResponseSchema = exports.findTicketsByEventSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ const types_1 = require("../../../types");
10
+ exports.findTicketsByEventSchema = zod_1.default.object({
11
+ eventId: zod_1.default.string(),
12
+ type: zod_1.default.nativeEnum(types_1.TicketType),
13
+ });
14
+ exports.findTicketsByEventResponseSchema = zod_1.default.object({
15
+ tickets: zod_1.default.number(),
16
+ });
17
+ class FindTicketsByEventDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findTicketsByEventResponseSchema) {
18
+ }
19
+ exports.FindTicketsByEventDto = FindTicketsByEventDto;
20
+ //# sourceMappingURL=find-tickets-by-event.dto.js.map
@@ -0,0 +1,56 @@
1
+ import z from 'zod';
2
+ export declare const ticketGroupSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ amountTickets: z.ZodNumber;
5
+ status: z.ZodNativeEnum<{
6
+ BOOKED: "BOOKED";
7
+ PAID: "PAID";
8
+ FREE: "FREE";
9
+ }>;
10
+ eventId: z.ZodString;
11
+ created_at: z.ZodDate;
12
+ updated_at: z.ZodDate;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: string;
15
+ eventId: string;
16
+ status: "BOOKED" | "PAID" | "FREE";
17
+ amountTickets: number;
18
+ created_at: Date;
19
+ updated_at: Date;
20
+ }, {
21
+ id: string;
22
+ eventId: string;
23
+ status: "BOOKED" | "PAID" | "FREE";
24
+ amountTickets: number;
25
+ created_at: Date;
26
+ updated_at: Date;
27
+ }>;
28
+ declare const TicketGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
29
+ id: z.ZodString;
30
+ amountTickets: z.ZodNumber;
31
+ status: z.ZodNativeEnum<{
32
+ BOOKED: "BOOKED";
33
+ PAID: "PAID";
34
+ FREE: "FREE";
35
+ }>;
36
+ eventId: z.ZodString;
37
+ created_at: z.ZodString;
38
+ updated_at: z.ZodString;
39
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
40
+ id: string;
41
+ eventId: string;
42
+ status: "BOOKED" | "PAID" | "FREE";
43
+ amountTickets: number;
44
+ created_at: string;
45
+ updated_at: string;
46
+ }, {
47
+ id: string;
48
+ eventId: string;
49
+ status: "BOOKED" | "PAID" | "FREE";
50
+ amountTickets: number;
51
+ created_at: string;
52
+ updated_at: string;
53
+ }>>;
54
+ export declare class TicketGroupDto extends TicketGroupDto_base {
55
+ }
56
+ export {};
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TicketGroupDto = exports.ticketGroupSchema = void 0;
7
+ const event_dto_1 = require("../../event/dto/event.dto");
8
+ const translate_1 = require("../../i18n/translate");
9
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
12
+ exports.ticketGroupSchema = zod_1.default.object({
13
+ id: zod_1.default.string().uuid({ message: (0, translate_1.translate)('model.ticketGroup.id.uuid') }),
14
+ amountTickets: zod_1.default
15
+ .number()
16
+ .min(0, (0, translate_1.translate)('model.ticketGroup.amountTickets')),
17
+ status: zod_1.default.nativeEnum(prisma_schema_1.TicketGroupStatus, {
18
+ message: (0, translate_1.translate)('model.ticketGroup.status.invalid'),
19
+ }),
20
+ eventId: event_dto_1.eventSchema.shape.id,
21
+ created_at: zod_1.default.date(),
22
+ updated_at: zod_1.default.date(),
23
+ });
24
+ class TicketGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.ticketGroupSchema) {
25
+ }
26
+ exports.TicketGroupDto = TicketGroupDto;
27
+ //# sourceMappingURL=ticket-group.dto.js.map
@@ -0,0 +1,79 @@
1
+ export declare const updateTicketGroupSchema: import("zod").ZodObject<{
2
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
3
+ BOOKED: "BOOKED";
4
+ PAID: "PAID";
5
+ FREE: "FREE";
6
+ }>>;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
9
+ }, {
10
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
11
+ }>;
12
+ declare const UpdateTicketGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
13
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
14
+ BOOKED: "BOOKED";
15
+ PAID: "PAID";
16
+ FREE: "FREE";
17
+ }>>;
18
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
19
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
20
+ }, {
21
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
22
+ }>>;
23
+ export declare class UpdateTicketGroupDto extends UpdateTicketGroupDto_base {
24
+ }
25
+ export declare const updateTicketGroupResponseSchema: import("zod").ZodObject<{
26
+ id: import("zod").ZodString;
27
+ amountTickets: import("zod").ZodNumber;
28
+ status: import("zod").ZodNativeEnum<{
29
+ BOOKED: "BOOKED";
30
+ PAID: "PAID";
31
+ FREE: "FREE";
32
+ }>;
33
+ eventId: import("zod").ZodString;
34
+ created_at: import("zod").ZodDate;
35
+ updated_at: import("zod").ZodDate;
36
+ }, "strip", import("zod").ZodTypeAny, {
37
+ id: string;
38
+ eventId: string;
39
+ status: "BOOKED" | "PAID" | "FREE";
40
+ amountTickets: number;
41
+ created_at: Date;
42
+ updated_at: Date;
43
+ }, {
44
+ id: string;
45
+ eventId: string;
46
+ status: "BOOKED" | "PAID" | "FREE";
47
+ amountTickets: number;
48
+ created_at: Date;
49
+ updated_at: Date;
50
+ }>;
51
+ declare const UpdateTicketGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
52
+ id: import("zod").ZodString;
53
+ amountTickets: import("zod").ZodNumber;
54
+ status: import("zod").ZodNativeEnum<{
55
+ BOOKED: "BOOKED";
56
+ PAID: "PAID";
57
+ FREE: "FREE";
58
+ }>;
59
+ eventId: import("zod").ZodString;
60
+ created_at: import("zod").ZodString;
61
+ updated_at: import("zod").ZodString;
62
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
63
+ id: string;
64
+ eventId: string;
65
+ status: "BOOKED" | "PAID" | "FREE";
66
+ amountTickets: number;
67
+ created_at: string;
68
+ updated_at: string;
69
+ }, {
70
+ id: string;
71
+ eventId: string;
72
+ status: "BOOKED" | "PAID" | "FREE";
73
+ amountTickets: number;
74
+ created_at: string;
75
+ updated_at: string;
76
+ }>>;
77
+ export declare class UpdateTicketGroupResponseDto extends UpdateTicketGroupResponseDto_base {
78
+ }
79
+ export {};
@@ -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';