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