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

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 (83) 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 +78 -50
  9. package/dist/src/event/dto/update-event.dto.d.ts +24 -24
  10. package/dist/src/exports.d.ts +0 -1
  11. package/dist/src/exports.js +0 -1
  12. package/dist/src/i18n/es.d.ts +22 -31
  13. package/dist/src/i18n/es.js +22 -31
  14. package/dist/src/i18n/es.js.map +1 -1
  15. package/dist/src/mi-expo/dto/get-me.dto.d.ts +5 -5
  16. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +9 -9
  17. package/dist/src/mi-expo/dto/login.dto.d.ts +9 -9
  18. package/dist/src/mi-expo/dto/update-me.dto.d.ts +11 -11
  19. package/dist/src/otp/dto/verify-otp.dto.d.ts +8 -8
  20. package/dist/src/profile/dto/create-profile.dto.d.ts +10 -10
  21. package/dist/src/profile/dto/delete-profile.dto.d.ts +4 -4
  22. package/dist/src/profile/dto/find-all-profile.dto.d.ts +20 -20
  23. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +32 -32
  24. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +13 -13
  25. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +4 -4
  26. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +20 -20
  27. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +20 -20
  28. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +20 -20
  29. package/dist/src/profile/dto/profile.dto.d.ts +2 -2
  30. package/dist/src/profile/dto/update-profile.dto.d.ts +10 -10
  31. package/dist/src/schema/profile.schema.d.ts +2 -2
  32. package/dist/src/tag/dto/create-tag.dto.d.ts +4 -4
  33. package/dist/src/tag/dto/delete-tag.dto.d.ts +4 -4
  34. package/dist/src/tag/dto/find-all-tag.dto.d.ts +8 -8
  35. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +8 -8
  36. package/dist/src/tag/dto/find-one-tag.dto.d.ts +4 -4
  37. package/dist/src/tag/dto/massive-allocation.dto.d.ts +8 -8
  38. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +8 -8
  39. package/dist/src/tag/dto/tag.dto.d.ts +4 -4
  40. package/dist/src/tag/dto/update-tag.dto.d.ts +4 -4
  41. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +12 -12
  42. package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +12 -12
  43. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +8 -8
  44. package/dist/src/ticket/constants.d.ts +12 -14
  45. package/dist/src/ticket/constants.js +355 -248
  46. package/dist/src/ticket/dto/create-ticket.dto.d.ts +56 -21
  47. package/dist/src/ticket/dto/create-ticket.dto.js +2 -1
  48. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +30 -10
  49. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +46 -18
  50. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +58 -30
  51. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +58 -30
  52. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +58 -30
  53. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +46 -18
  54. package/dist/src/ticket/dto/find-ticket.dto.d.ts +30 -10
  55. package/dist/src/ticket/dto/send-email.dto.d.ts +18 -0
  56. package/dist/src/ticket/dto/send-email.dto.js +15 -0
  57. package/dist/src/ticket/dto/ticket.dto.d.ts +30 -10
  58. package/dist/src/ticket/dto/ticket.dto.js +5 -2
  59. package/dist/src/ticket/dto/update-ticket.dto.d.ts +48 -20
  60. package/dist/src/ticket/dto/update-ticket.dto.js +1 -1
  61. package/dist/types/prisma-schema/edge.js +7 -15
  62. package/dist/types/prisma-schema/index-browser.js +4 -12
  63. package/dist/types/prisma-schema/index.d.ts +362 -2212
  64. package/dist/types/prisma-schema/index.js +7 -15
  65. package/dist/types/prisma-schema/package.json +1 -1
  66. package/dist/types/prisma-schema/schema.prisma +7 -22
  67. package/dist/types/prisma-schema/wasm.js +4 -12
  68. package/dist/types/schema.d.ts +40 -308
  69. package/package.json +6 -6
  70. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +0 -704
  71. package/dist/src/ticket/dto/create-many-ticket.dto.js +0 -58
  72. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +0 -346
  73. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +0 -27
  74. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +0 -55
  75. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +0 -10
  76. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +0 -8
  77. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +0 -11
  78. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +0 -56
  79. package/dist/src/ticket-group/dto/ticket-group.dto.js +0 -27
  80. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +0 -79
  81. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +0 -18
  82. package/dist/src/ticket-group/exports.d.ts +0 -5
  83. package/dist/src/ticket-group/exports.js +0 -22
@@ -1,58 +0,0 @@
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.CreateManyTicketWithPdfsResponseDto = exports.createManyTicketWithPdfsResponseSchema = exports.CreateManyTicketResponseDto = exports.createManyTicketResponseSchema = exports.GenerateMultiplePdfTicketsDto = exports.GenerateMultiplePdfTicketsResponseDto = exports.generateMultiplePdfTicketsSchema = exports.CreateManyTicketDto = exports.createManyTicketSchema = void 0;
7
- const event_dto_1 = require("../../event/dto/event.dto");
8
- const profile_schema_1 = require("../../schema/profile.schema");
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 ticket_dto_1 = require("./ticket.dto");
12
- exports.createManyTicketSchema = zod_1.default.object({
13
- tickets: zod_1.default.array(ticket_dto_1.ticketSchema
14
- .pick({
15
- eventId: true,
16
- type: true,
17
- fullName: true,
18
- mail: true,
19
- ticketGroupId: true,
20
- })
21
- .extend({
22
- profileId: profile_schema_1.profileSchema.shape.id.optional(),
23
- })),
24
- });
25
- class CreateManyTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createManyTicketSchema) {
26
- }
27
- exports.CreateManyTicketDto = CreateManyTicketDto;
28
- exports.generateMultiplePdfTicketsSchema = zod_1.default
29
- .object({
30
- ticketId: zod_1.default.string(),
31
- pdf: zod_1.default.instanceof(Blob),
32
- })
33
- .array();
34
- class GenerateMultiplePdfTicketsResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.generateMultiplePdfTicketsSchema) {
35
- }
36
- exports.GenerateMultiplePdfTicketsResponseDto = GenerateMultiplePdfTicketsResponseDto;
37
- class GenerateMultiplePdfTicketsDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.generateMultiplePdfTicketsSchema) {
38
- }
39
- exports.GenerateMultiplePdfTicketsDto = GenerateMultiplePdfTicketsDto;
40
- exports.createManyTicketResponseSchema = ticket_dto_1.ticketSchema
41
- .extend({
42
- event: event_dto_1.eventSchema,
43
- })
44
- .array();
45
- class CreateManyTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createManyTicketResponseSchema) {
46
- }
47
- exports.CreateManyTicketResponseDto = CreateManyTicketResponseDto;
48
- exports.createManyTicketWithPdfsResponseSchema = zod_1.default.object({
49
- tickets: exports.createManyTicketResponseSchema,
50
- pdfs: zod_1.default.array(zod_1.default.object({
51
- ticketId: zod_1.default.string(),
52
- pdfBase64: zod_1.default.string(),
53
- })),
54
- });
55
- class CreateManyTicketWithPdfsResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createManyTicketWithPdfsResponseSchema) {
56
- }
57
- exports.CreateManyTicketWithPdfsResponseDto = CreateManyTicketWithPdfsResponseDto;
58
- //# sourceMappingURL=create-many-ticket.dto.js.map
@@ -1,346 +0,0 @@
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 {};
@@ -1,27 +0,0 @@
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
@@ -1,55 +0,0 @@
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 {};
@@ -1,10 +0,0 @@
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
@@ -1,8 +0,0 @@
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
- }>;
@@ -1,11 +0,0 @@
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
@@ -1,56 +0,0 @@
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 {};
@@ -1,27 +0,0 @@
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
@@ -1,79 +0,0 @@
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 {};