expo-backend-types 0.38.0 → 0.39.0-EXPO-326-Oscar-Ruggeri.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 (65) hide show
  1. package/dist/src/csv/dto/download-all-tables.dto.d.ts +2 -3
  2. package/dist/src/event/dto/get-by-id-event.dto.d.ts +46 -18
  3. package/dist/src/exports.d.ts +0 -1
  4. package/dist/src/exports.js +0 -1
  5. package/dist/src/i18n/es.d.ts +8 -37
  6. package/dist/src/i18n/es.js +61 -205
  7. package/dist/src/i18n/es.js.map +1 -1
  8. package/dist/src/i18n/translate.js +2 -2
  9. package/dist/src/i18n/translate.js.map +1 -1
  10. package/dist/src/image/dto/update-image.dto.d.ts +0 -1
  11. package/dist/src/schema/profile.schema.js +17 -7
  12. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +1 -2
  13. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -1
  14. package/dist/src/ticket/constants.js +1 -2
  15. package/dist/src/ticket/dto/create-ticket.dto.d.ts +47 -18
  16. package/dist/src/ticket/dto/create-ticket.dto.js +1 -2
  17. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +30 -10
  18. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +46 -18
  19. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +46 -18
  20. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +49 -161
  21. package/dist/src/ticket/dto/find-by-id-ticket.dto.js +5 -2
  22. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +46 -18
  23. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +46 -18
  24. package/dist/src/ticket/dto/find-ticket.dto.d.ts +30 -10
  25. package/dist/src/ticket/dto/generate-pdf.dto.d.ts +2 -3
  26. package/dist/src/ticket/dto/scan-ticket.dto.d.ts +34 -0
  27. package/dist/src/ticket/dto/scan-ticket.dto.js +21 -0
  28. package/dist/src/ticket/dto/ticket.dto.d.ts +30 -10
  29. package/dist/src/ticket/dto/ticket.dto.js +5 -2
  30. package/dist/src/ticket/dto/update-ticket.dto.d.ts +44 -22
  31. package/dist/src/ticket/dto/update-ticket.dto.js +1 -2
  32. package/dist/src/ticket/exports.d.ts +1 -0
  33. package/dist/src/ticket/exports.js +1 -0
  34. package/dist/types/prisma-schema/edge.js +13 -21
  35. package/dist/types/prisma-schema/index-browser.js +8 -16
  36. package/dist/types/prisma-schema/index.d.ts +483 -2407
  37. package/dist/types/prisma-schema/index.js +13 -21
  38. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  39. package/dist/types/prisma-schema/package.json +2 -2
  40. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  41. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  42. package/dist/types/prisma-schema/runtime/index-browser.d.ts +2 -2
  43. package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
  44. package/dist/types/prisma-schema/runtime/library.d.ts +123 -105
  45. package/dist/types/prisma-schema/runtime/library.js +56 -56
  46. package/dist/types/prisma-schema/runtime/react-native.js +25 -25
  47. package/dist/types/prisma-schema/runtime/wasm.js +19 -19
  48. package/dist/types/prisma-schema/schema.prisma +6 -23
  49. package/dist/types/prisma-schema/wasm.js +8 -16
  50. package/dist/types/schema.d.ts +49 -335
  51. package/package.json +13 -15
  52. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +0 -610
  53. package/dist/src/ticket/dto/create-many-ticket.dto.js +0 -50
  54. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +0 -366
  55. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +0 -27
  56. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +0 -55
  57. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +0 -10
  58. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +0 -32
  59. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +0 -20
  60. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +0 -56
  61. package/dist/src/ticket-group/dto/ticket-group.dto.js +0 -27
  62. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +0 -79
  63. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +0 -18
  64. package/dist/src/ticket-group/exports.d.ts +0 -5
  65. package/dist/src/ticket-group/exports.js +0 -22
@@ -8,11 +8,17 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
8
8
  STAFF: "STAFF";
9
9
  SPECTATOR: "SPECTATOR";
10
10
  }>;
11
+ status: z.ZodNativeEnum<{
12
+ BOOKED: "BOOKED";
13
+ PAID: "PAID";
14
+ FREE: "FREE";
15
+ }>;
11
16
  fullName: z.ZodString;
12
17
  mail: z.ZodString;
13
18
  dni: z.ZodString;
14
19
  seat: z.ZodNullable<z.ZodNumber>;
15
- ticketGroupId: z.ZodNullable<z.ZodString>;
20
+ scanned: z.ZodBoolean;
21
+ scannedAt: z.ZodNullable<z.ZodDate>;
16
22
  created_at: z.ZodDate;
17
23
  updated_at: z.ZodDate;
18
24
  }, {
@@ -80,11 +86,13 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
80
86
  fullName: string;
81
87
  mail: string;
82
88
  eventId: string;
83
- dni: string;
89
+ status: "BOOKED" | "PAID" | "FREE";
84
90
  seat: number | null;
91
+ dni: string;
85
92
  created_at: Date;
86
93
  updated_at: Date;
87
- ticketGroupId: string | null;
94
+ scanned: boolean;
95
+ scannedAt: Date | null;
88
96
  }, {
89
97
  event: {
90
98
  location: string;
@@ -106,11 +114,13 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
106
114
  fullName: string;
107
115
  mail: string;
108
116
  eventId: string;
109
- dni: string;
117
+ status: "BOOKED" | "PAID" | "FREE";
110
118
  seat: number | null;
119
+ dni: string;
111
120
  created_at: Date;
112
121
  updated_at: Date;
113
- ticketGroupId: string | null;
122
+ scanned: boolean;
123
+ scannedAt: Date | null;
114
124
  }>, "many">;
115
125
  }, "strip", z.ZodTypeAny, {
116
126
  tickets: {
@@ -134,11 +144,13 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
134
144
  fullName: string;
135
145
  mail: string;
136
146
  eventId: string;
137
- dni: string;
147
+ status: "BOOKED" | "PAID" | "FREE";
138
148
  seat: number | null;
149
+ dni: string;
139
150
  created_at: Date;
140
151
  updated_at: Date;
141
- ticketGroupId: string | null;
152
+ scanned: boolean;
153
+ scannedAt: Date | null;
142
154
  }[];
143
155
  }, {
144
156
  tickets: {
@@ -162,11 +174,13 @@ export declare const findByProfileIdTicketResponseSchema: z.ZodObject<{
162
174
  fullName: string;
163
175
  mail: string;
164
176
  eventId: string;
165
- dni: string;
177
+ status: "BOOKED" | "PAID" | "FREE";
166
178
  seat: number | null;
179
+ dni: string;
167
180
  created_at: Date;
168
181
  updated_at: Date;
169
- ticketGroupId: string | null;
182
+ scanned: boolean;
183
+ scannedAt: Date | null;
170
184
  }[];
171
185
  }>;
172
186
  declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
@@ -178,11 +192,17 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
178
192
  STAFF: "STAFF";
179
193
  SPECTATOR: "SPECTATOR";
180
194
  }>;
195
+ status: z.ZodNativeEnum<{
196
+ BOOKED: "BOOKED";
197
+ PAID: "PAID";
198
+ FREE: "FREE";
199
+ }>;
181
200
  fullName: z.ZodString;
182
201
  mail: z.ZodString;
183
202
  dni: z.ZodString;
184
203
  seat: z.ZodNullable<z.ZodNumber>;
185
- ticketGroupId: z.ZodNullable<z.ZodString>;
204
+ scanned: z.ZodBoolean;
205
+ scannedAt: z.ZodNullable<z.ZodString>;
186
206
  created_at: z.ZodString;
187
207
  updated_at: z.ZodString;
188
208
  event: z.ZodObject<{
@@ -249,11 +269,13 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
249
269
  fullName: string;
250
270
  mail: string;
251
271
  eventId: string;
252
- dni: string;
272
+ status: "BOOKED" | "PAID" | "FREE";
253
273
  seat: number | null;
274
+ dni: string;
254
275
  created_at: string;
255
276
  updated_at: string;
256
- ticketGroupId: string | null;
277
+ scanned: boolean;
278
+ scannedAt: string | null;
257
279
  }, {
258
280
  event: {
259
281
  location: string;
@@ -275,11 +297,13 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
275
297
  fullName: string;
276
298
  mail: string;
277
299
  eventId: string;
278
- dni: string;
300
+ status: "BOOKED" | "PAID" | "FREE";
279
301
  seat: number | null;
302
+ dni: string;
280
303
  created_at: string;
281
304
  updated_at: string;
282
- ticketGroupId: string | null;
305
+ scanned: boolean;
306
+ scannedAt: string | null;
283
307
  }>, "many">;
284
308
  }, z.UnknownKeysParam, z.ZodTypeAny, {
285
309
  tickets: {
@@ -303,11 +327,13 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
303
327
  fullName: string;
304
328
  mail: string;
305
329
  eventId: string;
306
- dni: string;
330
+ status: "BOOKED" | "PAID" | "FREE";
307
331
  seat: number | null;
332
+ dni: string;
308
333
  created_at: string;
309
334
  updated_at: string;
310
- ticketGroupId: string | null;
335
+ scanned: boolean;
336
+ scannedAt: string | null;
311
337
  }[];
312
338
  }, {
313
339
  tickets: {
@@ -331,11 +357,13 @@ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs
331
357
  fullName: string;
332
358
  mail: string;
333
359
  eventId: string;
334
- dni: string;
360
+ status: "BOOKED" | "PAID" | "FREE";
335
361
  seat: number | null;
362
+ dni: string;
336
363
  created_at: string;
337
364
  updated_at: string;
338
- ticketGroupId: string | null;
365
+ scanned: boolean;
366
+ scannedAt: string | null;
339
367
  }[];
340
368
  }>>;
341
369
  export declare class FindByProfileIdTicketResponseDto extends FindByProfileIdTicketResponseDto_base {
@@ -6,11 +6,17 @@ export declare const findTicketResponseSchema: import("zod").ZodObject<{
6
6
  STAFF: "STAFF";
7
7
  SPECTATOR: "SPECTATOR";
8
8
  }>;
9
+ status: import("zod").ZodNativeEnum<{
10
+ BOOKED: "BOOKED";
11
+ PAID: "PAID";
12
+ FREE: "FREE";
13
+ }>;
9
14
  fullName: import("zod").ZodString;
10
15
  mail: import("zod").ZodString;
11
16
  dni: import("zod").ZodString;
12
17
  seat: import("zod").ZodNullable<import("zod").ZodNumber>;
13
- ticketGroupId: import("zod").ZodNullable<import("zod").ZodString>;
18
+ scanned: import("zod").ZodBoolean;
19
+ scannedAt: import("zod").ZodNullable<import("zod").ZodDate>;
14
20
  created_at: import("zod").ZodDate;
15
21
  updated_at: import("zod").ZodDate;
16
22
  }, "strip", import("zod").ZodTypeAny, {
@@ -19,22 +25,26 @@ export declare const findTicketResponseSchema: import("zod").ZodObject<{
19
25
  fullName: string;
20
26
  mail: string;
21
27
  eventId: string;
22
- dni: string;
28
+ status: "BOOKED" | "PAID" | "FREE";
23
29
  seat: number | null;
30
+ dni: string;
24
31
  created_at: Date;
25
32
  updated_at: Date;
26
- ticketGroupId: string | null;
33
+ scanned: boolean;
34
+ scannedAt: Date | null;
27
35
  }, {
28
36
  id: string;
29
37
  type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
30
38
  fullName: string;
31
39
  mail: string;
32
40
  eventId: string;
33
- dni: string;
41
+ status: "BOOKED" | "PAID" | "FREE";
34
42
  seat: number | null;
43
+ dni: string;
35
44
  created_at: Date;
36
45
  updated_at: Date;
37
- ticketGroupId: string | null;
46
+ scanned: boolean;
47
+ scannedAt: Date | null;
38
48
  }>;
39
49
  declare const FindTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
40
50
  id: import("zod").ZodString;
@@ -44,11 +54,17 @@ declare const FindTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoSt
44
54
  STAFF: "STAFF";
45
55
  SPECTATOR: "SPECTATOR";
46
56
  }>;
57
+ status: import("zod").ZodNativeEnum<{
58
+ BOOKED: "BOOKED";
59
+ PAID: "PAID";
60
+ FREE: "FREE";
61
+ }>;
47
62
  fullName: import("zod").ZodString;
48
63
  mail: import("zod").ZodString;
49
64
  dni: import("zod").ZodString;
50
65
  seat: import("zod").ZodNullable<import("zod").ZodNumber>;
51
- ticketGroupId: import("zod").ZodNullable<import("zod").ZodString>;
66
+ scanned: import("zod").ZodBoolean;
67
+ scannedAt: import("zod").ZodNullable<import("zod").ZodString>;
52
68
  created_at: import("zod").ZodString;
53
69
  updated_at: import("zod").ZodString;
54
70
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
@@ -57,22 +73,26 @@ declare const FindTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoSt
57
73
  fullName: string;
58
74
  mail: string;
59
75
  eventId: string;
60
- dni: string;
76
+ status: "BOOKED" | "PAID" | "FREE";
61
77
  seat: number | null;
78
+ dni: string;
62
79
  created_at: string;
63
80
  updated_at: string;
64
- ticketGroupId: string | null;
81
+ scanned: boolean;
82
+ scannedAt: string | null;
65
83
  }, {
66
84
  id: string;
67
85
  type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
68
86
  fullName: string;
69
87
  mail: string;
70
88
  eventId: string;
71
- dni: string;
89
+ status: "BOOKED" | "PAID" | "FREE";
72
90
  seat: number | null;
91
+ dni: string;
73
92
  created_at: string;
74
93
  updated_at: string;
75
- ticketGroupId: string | null;
94
+ scanned: boolean;
95
+ scannedAt: string | null;
76
96
  }>>;
77
97
  export declare class FindTicketResponseDto extends FindTicketResponseDto_base {
78
98
  }
@@ -1,7 +1,6 @@
1
- /// <reference types="node" />
2
1
  import z from 'zod';
3
- export declare const generatePdfResponseSchema: z.ZodType<Buffer, z.ZodTypeDef, Buffer>;
4
- declare const GeneratePdfResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodType<Buffer, z.ZodTypeDef, Buffer>>;
2
+ export declare const generatePdfResponseSchema: z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>;
3
+ declare const GeneratePdfResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
5
4
  export declare class GeneratePdfResponseDto extends GeneratePdfResponseDto_base {
6
5
  }
7
6
  export {};
@@ -0,0 +1,34 @@
1
+ import z from 'zod';
2
+ export declare const scanTicketSchema: z.ZodObject<{
3
+ ticketBarcode: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ ticketBarcode: string;
6
+ }, {
7
+ ticketBarcode: string;
8
+ }>;
9
+ declare const ScanTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
+ ticketBarcode: z.ZodString;
11
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
12
+ ticketBarcode: string;
13
+ }, {
14
+ ticketBarcode: string;
15
+ }>>;
16
+ export declare class ScanTicketDto extends ScanTicketDto_base {
17
+ }
18
+ export declare const scanTicketResponseSchema: z.ZodObject<{
19
+ success: z.ZodBoolean;
20
+ }, "strip", z.ZodTypeAny, {
21
+ success: boolean;
22
+ }, {
23
+ success: boolean;
24
+ }>;
25
+ declare const ScanTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
26
+ success: z.ZodBoolean;
27
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
28
+ success: boolean;
29
+ }, {
30
+ success: boolean;
31
+ }>>;
32
+ export declare class ScanTicketResponseDto extends ScanTicketResponseDto_base {
33
+ }
34
+ export {};
@@ -0,0 +1,21 @@
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.ScanTicketResponseDto = exports.scanTicketResponseSchema = exports.ScanTicketDto = exports.scanTicketSchema = 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
+ exports.scanTicketSchema = zod_1.default.object({
10
+ ticketBarcode: zod_1.default.string(),
11
+ });
12
+ class ScanTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.scanTicketSchema) {
13
+ }
14
+ exports.ScanTicketDto = ScanTicketDto;
15
+ exports.scanTicketResponseSchema = zod_1.default.object({
16
+ success: zod_1.default.boolean(),
17
+ });
18
+ class ScanTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.scanTicketResponseSchema) {
19
+ }
20
+ exports.ScanTicketResponseDto = ScanTicketResponseDto;
21
+ //# sourceMappingURL=scan-ticket.dto.js.map
@@ -7,11 +7,17 @@ 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
+ }>;
10
15
  fullName: z.ZodString;
11
16
  mail: z.ZodString;
12
17
  dni: z.ZodString;
13
18
  seat: z.ZodNullable<z.ZodNumber>;
14
- ticketGroupId: z.ZodNullable<z.ZodString>;
19
+ scanned: z.ZodBoolean;
20
+ scannedAt: z.ZodNullable<z.ZodDate>;
15
21
  created_at: z.ZodDate;
16
22
  updated_at: z.ZodDate;
17
23
  }, "strip", z.ZodTypeAny, {
@@ -20,22 +26,26 @@ export declare const ticketSchema: z.ZodObject<{
20
26
  fullName: string;
21
27
  mail: string;
22
28
  eventId: string;
23
- dni: string;
29
+ status: "BOOKED" | "PAID" | "FREE";
24
30
  seat: number | null;
31
+ dni: string;
25
32
  created_at: Date;
26
33
  updated_at: Date;
27
- ticketGroupId: string | null;
34
+ scanned: boolean;
35
+ scannedAt: Date | null;
28
36
  }, {
29
37
  id: string;
30
38
  type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
31
39
  fullName: string;
32
40
  mail: string;
33
41
  eventId: string;
34
- dni: string;
42
+ status: "BOOKED" | "PAID" | "FREE";
35
43
  seat: number | null;
44
+ dni: string;
36
45
  created_at: Date;
37
46
  updated_at: Date;
38
- ticketGroupId: string | null;
47
+ scanned: boolean;
48
+ scannedAt: Date | null;
39
49
  }>;
40
50
  declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
41
51
  id: z.ZodString;
@@ -45,11 +55,17 @@ declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
45
55
  STAFF: "STAFF";
46
56
  SPECTATOR: "SPECTATOR";
47
57
  }>;
58
+ status: z.ZodNativeEnum<{
59
+ BOOKED: "BOOKED";
60
+ PAID: "PAID";
61
+ FREE: "FREE";
62
+ }>;
48
63
  fullName: z.ZodString;
49
64
  mail: z.ZodString;
50
65
  dni: z.ZodString;
51
66
  seat: z.ZodNullable<z.ZodNumber>;
52
- ticketGroupId: z.ZodNullable<z.ZodString>;
67
+ scanned: z.ZodBoolean;
68
+ scannedAt: z.ZodNullable<z.ZodString>;
53
69
  created_at: z.ZodString;
54
70
  updated_at: z.ZodString;
55
71
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -58,22 +74,26 @@ declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
58
74
  fullName: string;
59
75
  mail: string;
60
76
  eventId: string;
61
- dni: string;
77
+ status: "BOOKED" | "PAID" | "FREE";
62
78
  seat: number | null;
79
+ dni: string;
63
80
  created_at: string;
64
81
  updated_at: string;
65
- ticketGroupId: string | null;
82
+ scanned: boolean;
83
+ scannedAt: string | null;
66
84
  }, {
67
85
  id: string;
68
86
  type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
69
87
  fullName: string;
70
88
  mail: string;
71
89
  eventId: string;
72
- dni: string;
90
+ status: "BOOKED" | "PAID" | "FREE";
73
91
  seat: number | null;
92
+ dni: string;
74
93
  created_at: string;
75
94
  updated_at: string;
76
- ticketGroupId: string | null;
95
+ scanned: boolean;
96
+ scannedAt: string | null;
77
97
  }>>;
78
98
  export declare class TicketDto extends TicketDto_base {
79
99
  }
@@ -7,7 +7,6 @@ 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");
11
10
  const zod_1 = __importDefault(require("zod"));
12
11
  const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
13
12
  exports.ticketSchema = zod_1.default.object({
@@ -16,11 +15,15 @@ exports.ticketSchema = zod_1.default.object({
16
15
  type: zod_1.default.nativeEnum(prisma_schema_1.TicketType, {
17
16
  message: (0, translate_1.translate)('model.ticket.type.invalid'),
18
17
  }),
18
+ status: zod_1.default.nativeEnum(prisma_schema_1.TicketStatus, {
19
+ message: (0, translate_1.translate)('model.ticket.status.invalid'),
20
+ }),
19
21
  fullName: zod_1.default.string().min(1, (0, translate_1.translate)('model.ticket.fullName.required')),
20
22
  mail: zod_1.default.string().email((0, translate_1.translate)('model.ticket.mail.email')),
21
23
  dni: zod_1.default.string().min(1, (0, translate_1.translate)('model.ticket.dni.required')),
22
24
  seat: zod_1.default.number().min(1, (0, translate_1.translate)('model.ticket.seat.required')).nullable(),
23
- ticketGroupId: ticket_group_dto_1.ticketGroupSchema.shape.id.nullable(),
25
+ scanned: zod_1.default.boolean(),
26
+ scannedAt: zod_1.default.date().nullable(),
24
27
  created_at: zod_1.default.date(),
25
28
  updated_at: zod_1.default.date(),
26
29
  });
@@ -6,20 +6,21 @@ 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
- dni: import("zod").ZodOptional<import("zod").ZodString>;
10
- ticketGroupId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
9
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
10
+ BOOKED: "BOOKED";
11
+ PAID: "PAID";
12
+ FREE: "FREE";
13
+ }>>;
11
14
  }, "strip", import("zod").ZodTypeAny, {
12
15
  type?: "STAFF" | "SPECTATOR" | "PARTICIPANT" | undefined;
13
16
  fullName?: string | undefined;
14
17
  mail?: string | undefined;
15
- dni?: string | undefined;
16
- ticketGroupId?: string | null | undefined;
18
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
17
19
  }, {
18
20
  type?: "STAFF" | "SPECTATOR" | "PARTICIPANT" | undefined;
19
21
  fullName?: string | undefined;
20
22
  mail?: string | undefined;
21
- dni?: string | undefined;
22
- ticketGroupId?: string | null | undefined;
23
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
23
24
  }>;
24
25
  declare const UpdateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
25
26
  type: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
@@ -29,20 +30,21 @@ declare const UpdateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<i
29
30
  }>>;
30
31
  fullName: import("zod").ZodOptional<import("zod").ZodString>;
31
32
  mail: import("zod").ZodOptional<import("zod").ZodString>;
32
- dni: import("zod").ZodOptional<import("zod").ZodString>;
33
- ticketGroupId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
33
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
34
+ BOOKED: "BOOKED";
35
+ PAID: "PAID";
36
+ FREE: "FREE";
37
+ }>>;
34
38
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
35
39
  type?: "STAFF" | "SPECTATOR" | "PARTICIPANT" | undefined;
36
40
  fullName?: string | undefined;
37
41
  mail?: string | undefined;
38
- dni?: string | undefined;
39
- ticketGroupId?: string | null | undefined;
42
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
40
43
  }, {
41
44
  type?: "STAFF" | "SPECTATOR" | "PARTICIPANT" | undefined;
42
45
  fullName?: string | undefined;
43
46
  mail?: string | undefined;
44
- dni?: string | undefined;
45
- ticketGroupId?: string | null | undefined;
47
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
46
48
  }>>;
47
49
  export declare class UpdateTicketDto extends UpdateTicketDto_base {
48
50
  }
@@ -54,11 +56,17 @@ export declare const updateTicketResponseSchema: import("zod").ZodObject<{
54
56
  STAFF: "STAFF";
55
57
  SPECTATOR: "SPECTATOR";
56
58
  }>;
59
+ status: import("zod").ZodNativeEnum<{
60
+ BOOKED: "BOOKED";
61
+ PAID: "PAID";
62
+ FREE: "FREE";
63
+ }>;
57
64
  fullName: import("zod").ZodString;
58
65
  mail: import("zod").ZodString;
59
66
  dni: import("zod").ZodString;
60
67
  seat: import("zod").ZodNullable<import("zod").ZodNumber>;
61
- ticketGroupId: import("zod").ZodNullable<import("zod").ZodString>;
68
+ scanned: import("zod").ZodBoolean;
69
+ scannedAt: import("zod").ZodNullable<import("zod").ZodDate>;
62
70
  created_at: import("zod").ZodDate;
63
71
  updated_at: import("zod").ZodDate;
64
72
  }, "strip", import("zod").ZodTypeAny, {
@@ -67,22 +75,26 @@ export declare const updateTicketResponseSchema: import("zod").ZodObject<{
67
75
  fullName: string;
68
76
  mail: string;
69
77
  eventId: string;
70
- dni: string;
78
+ status: "BOOKED" | "PAID" | "FREE";
71
79
  seat: number | null;
80
+ dni: string;
72
81
  created_at: Date;
73
82
  updated_at: Date;
74
- ticketGroupId: string | null;
83
+ scanned: boolean;
84
+ scannedAt: Date | null;
75
85
  }, {
76
86
  id: string;
77
87
  type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
78
88
  fullName: string;
79
89
  mail: string;
80
90
  eventId: string;
81
- dni: string;
91
+ status: "BOOKED" | "PAID" | "FREE";
82
92
  seat: number | null;
93
+ dni: string;
83
94
  created_at: Date;
84
95
  updated_at: Date;
85
- ticketGroupId: string | null;
96
+ scanned: boolean;
97
+ scannedAt: Date | null;
86
98
  }>;
87
99
  declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
88
100
  id: import("zod").ZodString;
@@ -92,11 +104,17 @@ declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
92
104
  STAFF: "STAFF";
93
105
  SPECTATOR: "SPECTATOR";
94
106
  }>;
107
+ status: import("zod").ZodNativeEnum<{
108
+ BOOKED: "BOOKED";
109
+ PAID: "PAID";
110
+ FREE: "FREE";
111
+ }>;
95
112
  fullName: import("zod").ZodString;
96
113
  mail: import("zod").ZodString;
97
114
  dni: import("zod").ZodString;
98
115
  seat: import("zod").ZodNullable<import("zod").ZodNumber>;
99
- ticketGroupId: import("zod").ZodNullable<import("zod").ZodString>;
116
+ scanned: import("zod").ZodBoolean;
117
+ scannedAt: import("zod").ZodNullable<import("zod").ZodString>;
100
118
  created_at: import("zod").ZodString;
101
119
  updated_at: import("zod").ZodString;
102
120
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
@@ -105,22 +123,26 @@ declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
105
123
  fullName: string;
106
124
  mail: string;
107
125
  eventId: string;
108
- dni: string;
126
+ status: "BOOKED" | "PAID" | "FREE";
109
127
  seat: number | null;
128
+ dni: string;
110
129
  created_at: string;
111
130
  updated_at: string;
112
- ticketGroupId: string | null;
131
+ scanned: boolean;
132
+ scannedAt: string | null;
113
133
  }, {
114
134
  id: string;
115
135
  type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
116
136
  fullName: string;
117
137
  mail: string;
118
138
  eventId: string;
119
- dni: string;
139
+ status: "BOOKED" | "PAID" | "FREE";
120
140
  seat: number | null;
141
+ dni: string;
121
142
  created_at: string;
122
143
  updated_at: string;
123
- ticketGroupId: string | null;
144
+ scanned: boolean;
145
+ scannedAt: string | null;
124
146
  }>>;
125
147
  export declare class UpdateTicketResponseDto extends UpdateTicketResponseDto_base {
126
148
  }
@@ -6,10 +6,9 @@ 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,
9
10
  fullName: true,
10
11
  mail: true,
11
- dni: true,
12
- ticketGroupId: true,
13
12
  })
14
13
  .partial();
15
14
  class UpdateTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketSchema) {
@@ -7,5 +7,6 @@ export * from './dto/find-by-mail-ticket.dto';
7
7
  export * from './dto/find-by-profile-id-ticket.dto';
8
8
  export * from './dto/find-ticket.dto';
9
9
  export * from './dto/generate-pdf.dto';
10
+ export * from './dto/scan-ticket.dto';
10
11
  export * from './dto/ticket.dto';
11
12
  export * from './dto/update-ticket.dto';
@@ -23,6 +23,7 @@ __exportStar(require("./dto/find-by-mail-ticket.dto"), exports);
23
23
  __exportStar(require("./dto/find-by-profile-id-ticket.dto"), exports);
24
24
  __exportStar(require("./dto/find-ticket.dto"), exports);
25
25
  __exportStar(require("./dto/generate-pdf.dto"), exports);
26
+ __exportStar(require("./dto/scan-ticket.dto"), exports);
26
27
  __exportStar(require("./dto/ticket.dto"), exports);
27
28
  __exportStar(require("./dto/update-ticket.dto"), exports);
28
29
  //# sourceMappingURL=exports.js.map