expo-backend-types 0.36.0 → 0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.2
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/event/dto/get-by-id-event.dto.d.ts +10 -18
- package/dist/src/exports.d.ts +1 -0
- package/dist/src/exports.js +1 -0
- package/dist/src/i18n/es.d.ts +37 -0
- package/dist/src/i18n/es.js +37 -0
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/ticket/constants.js +0 -19
- package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +704 -0
- package/dist/src/ticket/dto/create-many-ticket.dto.js +58 -0
- package/dist/src/ticket/dto/create-ticket.dto.d.ts +13 -29
- package/dist/src/ticket/dto/create-ticket.dto.js +1 -1
- package/dist/src/ticket/dto/delete-ticket.dto.d.ts +6 -14
- package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +10 -18
- package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +10 -18
- package/dist/src/ticket/dto/find-by-event-type-ticket.dto.d.ts +48 -0
- package/dist/src/ticket/dto/find-by-event-type-ticket.dto.js +20 -0
- package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +10 -18
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +10 -18
- package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +10 -18
- package/dist/src/ticket/dto/find-ticket.dto.d.ts +6 -14
- package/dist/src/ticket/dto/ticket.dto.d.ts +6 -14
- package/dist/src/ticket/dto/ticket.dto.js +2 -3
- package/dist/src/ticket/dto/update-ticket.dto.d.ts +12 -28
- package/dist/src/ticket/dto/update-ticket.dto.js +1 -1
- package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +346 -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 +15 -5
- package/dist/types/prisma-schema/index-browser.js +12 -2
- package/dist/types/prisma-schema/index.d.ts +2156 -178
- package/dist/types/prisma-schema/index.js +15 -5
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +22 -3
- package/dist/types/prisma-schema/wasm.js +12 -2
- package/dist/types/schema.d.ts +362 -12
- package/package.json +3 -2
@@ -0,0 +1,58 @@
|
|
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
|
@@ -6,30 +6,26 @@ export declare const createTicketSchema: import("zod").ZodObject<import("zod").o
|
|
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;
|
11
|
+
ticketGroupId: import("zod").ZodString;
|
16
12
|
created_at: import("zod").ZodDate;
|
17
13
|
updated_at: import("zod").ZodDate;
|
18
|
-
}, "type" | "fullName" | "mail" | "eventId" | "
|
14
|
+
}, "type" | "fullName" | "mail" | "eventId" | "ticketGroupId">, {
|
19
15
|
profileId: import("zod").ZodOptional<import("zod").ZodString>;
|
20
16
|
}>, "strip", import("zod").ZodTypeAny, {
|
21
17
|
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
22
18
|
fullName: string;
|
23
19
|
mail: string;
|
24
20
|
eventId: string;
|
25
|
-
|
21
|
+
ticketGroupId: string;
|
26
22
|
profileId?: string | undefined;
|
27
23
|
}, {
|
28
24
|
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
29
25
|
fullName: string;
|
30
26
|
mail: string;
|
31
27
|
eventId: string;
|
32
|
-
|
28
|
+
ticketGroupId: string;
|
33
29
|
profileId?: string | undefined;
|
34
30
|
}>;
|
35
31
|
declare const CreateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
@@ -41,25 +37,21 @@ declare const CreateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<i
|
|
41
37
|
fullName: import("zod").ZodString;
|
42
38
|
mail: import("zod").ZodString;
|
43
39
|
eventId: import("zod").ZodString;
|
44
|
-
|
45
|
-
BOOKED: "BOOKED";
|
46
|
-
PAID: "PAID";
|
47
|
-
FREE: "FREE";
|
48
|
-
}>;
|
40
|
+
ticketGroupId: import("zod").ZodString;
|
49
41
|
profileId: import("zod").ZodOptional<import("zod").ZodString>;
|
50
42
|
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
51
43
|
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
52
44
|
fullName: string;
|
53
45
|
mail: string;
|
54
46
|
eventId: string;
|
55
|
-
|
47
|
+
ticketGroupId: string;
|
56
48
|
profileId?: string | undefined;
|
57
49
|
}, {
|
58
50
|
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
59
51
|
fullName: string;
|
60
52
|
mail: string;
|
61
53
|
eventId: string;
|
62
|
-
|
54
|
+
ticketGroupId: string;
|
63
55
|
profileId?: string | undefined;
|
64
56
|
}>>;
|
65
57
|
export declare class CreateTicketDto extends CreateTicketDto_base {
|
@@ -72,13 +64,9 @@ export declare const createTicketResponseSchema: import("zod").ZodObject<import(
|
|
72
64
|
STAFF: "STAFF";
|
73
65
|
SPECTATOR: "SPECTATOR";
|
74
66
|
}>;
|
75
|
-
status: import("zod").ZodNativeEnum<{
|
76
|
-
BOOKED: "BOOKED";
|
77
|
-
PAID: "PAID";
|
78
|
-
FREE: "FREE";
|
79
|
-
}>;
|
80
67
|
fullName: import("zod").ZodString;
|
81
68
|
mail: import("zod").ZodString;
|
69
|
+
ticketGroupId: import("zod").ZodString;
|
82
70
|
created_at: import("zod").ZodDate;
|
83
71
|
updated_at: import("zod").ZodDate;
|
84
72
|
}, {
|
@@ -146,9 +134,9 @@ export declare const createTicketResponseSchema: import("zod").ZodObject<import(
|
|
146
134
|
fullName: string;
|
147
135
|
mail: string;
|
148
136
|
eventId: string;
|
149
|
-
status: "BOOKED" | "PAID" | "FREE";
|
150
137
|
created_at: Date;
|
151
138
|
updated_at: Date;
|
139
|
+
ticketGroupId: string;
|
152
140
|
}, {
|
153
141
|
event: {
|
154
142
|
location: string;
|
@@ -170,9 +158,9 @@ export declare const createTicketResponseSchema: import("zod").ZodObject<import(
|
|
170
158
|
fullName: string;
|
171
159
|
mail: string;
|
172
160
|
eventId: string;
|
173
|
-
status: "BOOKED" | "PAID" | "FREE";
|
174
161
|
created_at: Date;
|
175
162
|
updated_at: Date;
|
163
|
+
ticketGroupId: string;
|
176
164
|
}>;
|
177
165
|
declare const CreateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
178
166
|
id: import("zod").ZodString;
|
@@ -182,13 +170,9 @@ declare const CreateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
|
|
182
170
|
STAFF: "STAFF";
|
183
171
|
SPECTATOR: "SPECTATOR";
|
184
172
|
}>;
|
185
|
-
status: import("zod").ZodNativeEnum<{
|
186
|
-
BOOKED: "BOOKED";
|
187
|
-
PAID: "PAID";
|
188
|
-
FREE: "FREE";
|
189
|
-
}>;
|
190
173
|
fullName: import("zod").ZodString;
|
191
174
|
mail: import("zod").ZodString;
|
175
|
+
ticketGroupId: import("zod").ZodString;
|
192
176
|
created_at: import("zod").ZodString;
|
193
177
|
updated_at: import("zod").ZodString;
|
194
178
|
event: import("zod").ZodObject<{
|
@@ -255,9 +239,9 @@ declare const CreateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
|
|
255
239
|
fullName: string;
|
256
240
|
mail: string;
|
257
241
|
eventId: string;
|
258
|
-
status: "BOOKED" | "PAID" | "FREE";
|
259
242
|
created_at: string;
|
260
243
|
updated_at: string;
|
244
|
+
ticketGroupId: string;
|
261
245
|
}, {
|
262
246
|
event: {
|
263
247
|
location: string;
|
@@ -279,9 +263,9 @@ declare const CreateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
|
|
279
263
|
fullName: string;
|
280
264
|
mail: string;
|
281
265
|
eventId: string;
|
282
|
-
status: "BOOKED" | "PAID" | "FREE";
|
283
266
|
created_at: string;
|
284
267
|
updated_at: string;
|
268
|
+
ticketGroupId: string;
|
285
269
|
}>>;
|
286
270
|
export declare class CreateTicketResponseDto extends CreateTicketResponseDto_base {
|
287
271
|
}
|
@@ -9,9 +9,9 @@ exports.createTicketSchema = ticket_dto_1.ticketSchema
|
|
9
9
|
.pick({
|
10
10
|
eventId: true,
|
11
11
|
type: true,
|
12
|
-
status: true,
|
13
12
|
fullName: true,
|
14
13
|
mail: true,
|
14
|
+
ticketGroupId: true,
|
15
15
|
})
|
16
16
|
.extend({
|
17
17
|
profileId: profile_schema_1.profileSchema.shape.id.optional(),
|
@@ -6,13 +6,9 @@ export declare const deleteTicketResponseSchema: 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;
|
11
|
+
ticketGroupId: import("zod").ZodString;
|
16
12
|
created_at: import("zod").ZodDate;
|
17
13
|
updated_at: import("zod").ZodDate;
|
18
14
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -21,18 +17,18 @@ export declare const deleteTicketResponseSchema: import("zod").ZodObject<{
|
|
21
17
|
fullName: string;
|
22
18
|
mail: string;
|
23
19
|
eventId: string;
|
24
|
-
status: "BOOKED" | "PAID" | "FREE";
|
25
20
|
created_at: Date;
|
26
21
|
updated_at: Date;
|
22
|
+
ticketGroupId: string;
|
27
23
|
}, {
|
28
24
|
id: string;
|
29
25
|
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
30
26
|
fullName: string;
|
31
27
|
mail: string;
|
32
28
|
eventId: string;
|
33
|
-
status: "BOOKED" | "PAID" | "FREE";
|
34
29
|
created_at: Date;
|
35
30
|
updated_at: Date;
|
31
|
+
ticketGroupId: string;
|
36
32
|
}>;
|
37
33
|
declare const DeleteTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
38
34
|
id: import("zod").ZodString;
|
@@ -42,13 +38,9 @@ declare const DeleteTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
|
|
42
38
|
STAFF: "STAFF";
|
43
39
|
SPECTATOR: "SPECTATOR";
|
44
40
|
}>;
|
45
|
-
status: import("zod").ZodNativeEnum<{
|
46
|
-
BOOKED: "BOOKED";
|
47
|
-
PAID: "PAID";
|
48
|
-
FREE: "FREE";
|
49
|
-
}>;
|
50
41
|
fullName: import("zod").ZodString;
|
51
42
|
mail: import("zod").ZodString;
|
43
|
+
ticketGroupId: import("zod").ZodString;
|
52
44
|
created_at: import("zod").ZodString;
|
53
45
|
updated_at: import("zod").ZodString;
|
54
46
|
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
@@ -57,18 +49,18 @@ declare const DeleteTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
|
|
57
49
|
fullName: string;
|
58
50
|
mail: string;
|
59
51
|
eventId: string;
|
60
|
-
status: "BOOKED" | "PAID" | "FREE";
|
61
52
|
created_at: string;
|
62
53
|
updated_at: string;
|
54
|
+
ticketGroupId: string;
|
63
55
|
}, {
|
64
56
|
id: string;
|
65
57
|
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
66
58
|
fullName: string;
|
67
59
|
mail: string;
|
68
60
|
eventId: string;
|
69
|
-
status: "BOOKED" | "PAID" | "FREE";
|
70
61
|
created_at: string;
|
71
62
|
updated_at: string;
|
63
|
+
ticketGroupId: string;
|
72
64
|
}>>;
|
73
65
|
export declare class DeleteTicketResponseDto extends DeleteTicketResponseDto_base {
|
74
66
|
}
|
@@ -8,13 +8,9 @@ export declare const findAllTicketsResponseSchema: 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;
|
13
|
+
ticketGroupId: z.ZodString;
|
18
14
|
created_at: z.ZodDate;
|
19
15
|
updated_at: z.ZodDate;
|
20
16
|
}, {
|
@@ -52,9 +48,9 @@ export declare const findAllTicketsResponseSchema: z.ZodObject<{
|
|
52
48
|
fullName: string;
|
53
49
|
mail: string;
|
54
50
|
eventId: string;
|
55
|
-
status: "BOOKED" | "PAID" | "FREE";
|
56
51
|
created_at: Date;
|
57
52
|
updated_at: Date;
|
53
|
+
ticketGroupId: string;
|
58
54
|
}, {
|
59
55
|
event: {
|
60
56
|
location: string;
|
@@ -66,9 +62,9 @@ export declare const findAllTicketsResponseSchema: z.ZodObject<{
|
|
66
62
|
fullName: string;
|
67
63
|
mail: string;
|
68
64
|
eventId: string;
|
69
|
-
status: "BOOKED" | "PAID" | "FREE";
|
70
65
|
created_at: Date;
|
71
66
|
updated_at: Date;
|
67
|
+
ticketGroupId: string;
|
72
68
|
}>, "many">;
|
73
69
|
}, "strip", z.ZodTypeAny, {
|
74
70
|
tickets: {
|
@@ -82,9 +78,9 @@ export declare const findAllTicketsResponseSchema: z.ZodObject<{
|
|
82
78
|
fullName: string;
|
83
79
|
mail: string;
|
84
80
|
eventId: string;
|
85
|
-
status: "BOOKED" | "PAID" | "FREE";
|
86
81
|
created_at: Date;
|
87
82
|
updated_at: Date;
|
83
|
+
ticketGroupId: string;
|
88
84
|
}[];
|
89
85
|
}, {
|
90
86
|
tickets: {
|
@@ -98,9 +94,9 @@ export declare const findAllTicketsResponseSchema: z.ZodObject<{
|
|
98
94
|
fullName: string;
|
99
95
|
mail: string;
|
100
96
|
eventId: string;
|
101
|
-
status: "BOOKED" | "PAID" | "FREE";
|
102
97
|
created_at: Date;
|
103
98
|
updated_at: Date;
|
99
|
+
ticketGroupId: string;
|
104
100
|
}[];
|
105
101
|
}>;
|
106
102
|
declare const FindAllTicketsResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
@@ -112,13 +108,9 @@ declare const FindAllTicketsResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
112
108
|
STAFF: "STAFF";
|
113
109
|
SPECTATOR: "SPECTATOR";
|
114
110
|
}>;
|
115
|
-
status: z.ZodNativeEnum<{
|
116
|
-
BOOKED: "BOOKED";
|
117
|
-
PAID: "PAID";
|
118
|
-
FREE: "FREE";
|
119
|
-
}>;
|
120
111
|
fullName: z.ZodString;
|
121
112
|
mail: z.ZodString;
|
113
|
+
ticketGroupId: z.ZodString;
|
122
114
|
created_at: z.ZodString;
|
123
115
|
updated_at: z.ZodString;
|
124
116
|
event: z.ZodObject<{
|
@@ -145,9 +137,9 @@ declare const FindAllTicketsResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
145
137
|
fullName: string;
|
146
138
|
mail: string;
|
147
139
|
eventId: string;
|
148
|
-
status: "BOOKED" | "PAID" | "FREE";
|
149
140
|
created_at: string;
|
150
141
|
updated_at: string;
|
142
|
+
ticketGroupId: string;
|
151
143
|
}, {
|
152
144
|
event: {
|
153
145
|
location: string;
|
@@ -159,9 +151,9 @@ declare const FindAllTicketsResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
159
151
|
fullName: string;
|
160
152
|
mail: string;
|
161
153
|
eventId: string;
|
162
|
-
status: "BOOKED" | "PAID" | "FREE";
|
163
154
|
created_at: string;
|
164
155
|
updated_at: string;
|
156
|
+
ticketGroupId: string;
|
165
157
|
}>, "many">;
|
166
158
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
167
159
|
tickets: {
|
@@ -175,9 +167,9 @@ declare const FindAllTicketsResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
175
167
|
fullName: string;
|
176
168
|
mail: string;
|
177
169
|
eventId: string;
|
178
|
-
status: "BOOKED" | "PAID" | "FREE";
|
179
170
|
created_at: string;
|
180
171
|
updated_at: string;
|
172
|
+
ticketGroupId: string;
|
181
173
|
}[];
|
182
174
|
}, {
|
183
175
|
tickets: {
|
@@ -191,9 +183,9 @@ declare const FindAllTicketsResponseDto_base: import("@anatine/zod-nestjs").ZodD
|
|
191
183
|
fullName: string;
|
192
184
|
mail: string;
|
193
185
|
eventId: string;
|
194
|
-
status: "BOOKED" | "PAID" | "FREE";
|
195
186
|
created_at: string;
|
196
187
|
updated_at: string;
|
188
|
+
ticketGroupId: string;
|
197
189
|
}[];
|
198
190
|
}>>;
|
199
191
|
export declare class FindAllTicketsResponseDto extends FindAllTicketsResponseDto_base {
|
@@ -8,13 +8,9 @@ export declare const findByEventTicketResponseSchema: 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;
|
13
|
+
ticketGroupId: z.ZodString;
|
18
14
|
created_at: z.ZodDate;
|
19
15
|
updated_at: z.ZodDate;
|
20
16
|
}, {
|
@@ -160,9 +156,9 @@ export declare const findByEventTicketResponseSchema: z.ZodObject<{
|
|
160
156
|
fullName: string;
|
161
157
|
mail: string;
|
162
158
|
eventId: string;
|
163
|
-
status: "BOOKED" | "PAID" | "FREE";
|
164
159
|
created_at: Date;
|
165
160
|
updated_at: Date;
|
161
|
+
ticketGroupId: string;
|
166
162
|
}, {
|
167
163
|
event: {
|
168
164
|
location: string;
|
@@ -200,9 +196,9 @@ export declare const findByEventTicketResponseSchema: z.ZodObject<{
|
|
200
196
|
fullName: string;
|
201
197
|
mail: string;
|
202
198
|
eventId: string;
|
203
|
-
status: "BOOKED" | "PAID" | "FREE";
|
204
199
|
created_at: Date;
|
205
200
|
updated_at: Date;
|
201
|
+
ticketGroupId: string;
|
206
202
|
}>, "many">;
|
207
203
|
}, "strip", z.ZodTypeAny, {
|
208
204
|
tickets: {
|
@@ -242,9 +238,9 @@ export declare const findByEventTicketResponseSchema: z.ZodObject<{
|
|
242
238
|
fullName: string;
|
243
239
|
mail: string;
|
244
240
|
eventId: string;
|
245
|
-
status: "BOOKED" | "PAID" | "FREE";
|
246
241
|
created_at: Date;
|
247
242
|
updated_at: Date;
|
243
|
+
ticketGroupId: string;
|
248
244
|
}[];
|
249
245
|
}, {
|
250
246
|
tickets: {
|
@@ -284,9 +280,9 @@ export declare const findByEventTicketResponseSchema: z.ZodObject<{
|
|
284
280
|
fullName: string;
|
285
281
|
mail: string;
|
286
282
|
eventId: string;
|
287
|
-
status: "BOOKED" | "PAID" | "FREE";
|
288
283
|
created_at: Date;
|
289
284
|
updated_at: Date;
|
285
|
+
ticketGroupId: string;
|
290
286
|
}[];
|
291
287
|
}>;
|
292
288
|
declare const FindByEventTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
@@ -298,13 +294,9 @@ declare const FindByEventTicketResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
298
294
|
STAFF: "STAFF";
|
299
295
|
SPECTATOR: "SPECTATOR";
|
300
296
|
}>;
|
301
|
-
status: z.ZodNativeEnum<{
|
302
|
-
BOOKED: "BOOKED";
|
303
|
-
PAID: "PAID";
|
304
|
-
FREE: "FREE";
|
305
|
-
}>;
|
306
297
|
fullName: z.ZodString;
|
307
298
|
mail: z.ZodString;
|
299
|
+
ticketGroupId: z.ZodString;
|
308
300
|
created_at: z.ZodString;
|
309
301
|
updated_at: z.ZodString;
|
310
302
|
event: z.ZodObject<{
|
@@ -439,9 +431,9 @@ declare const FindByEventTicketResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
439
431
|
fullName: string;
|
440
432
|
mail: string;
|
441
433
|
eventId: string;
|
442
|
-
status: "BOOKED" | "PAID" | "FREE";
|
443
434
|
created_at: string;
|
444
435
|
updated_at: string;
|
436
|
+
ticketGroupId: string;
|
445
437
|
}, {
|
446
438
|
event: {
|
447
439
|
location: string;
|
@@ -479,9 +471,9 @@ declare const FindByEventTicketResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
479
471
|
fullName: string;
|
480
472
|
mail: string;
|
481
473
|
eventId: string;
|
482
|
-
status: "BOOKED" | "PAID" | "FREE";
|
483
474
|
created_at: string;
|
484
475
|
updated_at: string;
|
476
|
+
ticketGroupId: string;
|
485
477
|
}>, "many">;
|
486
478
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
487
479
|
tickets: {
|
@@ -521,9 +513,9 @@ declare const FindByEventTicketResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
521
513
|
fullName: string;
|
522
514
|
mail: string;
|
523
515
|
eventId: string;
|
524
|
-
status: "BOOKED" | "PAID" | "FREE";
|
525
516
|
created_at: string;
|
526
517
|
updated_at: string;
|
518
|
+
ticketGroupId: string;
|
527
519
|
}[];
|
528
520
|
}, {
|
529
521
|
tickets: {
|
@@ -563,9 +555,9 @@ declare const FindByEventTicketResponseDto_base: import("@anatine/zod-nestjs").Z
|
|
563
555
|
fullName: string;
|
564
556
|
mail: string;
|
565
557
|
eventId: string;
|
566
|
-
status: "BOOKED" | "PAID" | "FREE";
|
567
558
|
created_at: string;
|
568
559
|
updated_at: string;
|
560
|
+
ticketGroupId: string;
|
569
561
|
}[];
|
570
562
|
}>>;
|
571
563
|
export declare class FindByEventTicketResponseDto extends FindByEventTicketResponseDto_base {
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const findByEventAndTypeTicketSchema: 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
|
+
declare const FindByEventAndTypeTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
17
|
+
eventId: z.ZodString;
|
18
|
+
type: z.ZodNativeEnum<{
|
19
|
+
PARTICIPANT: "PARTICIPANT";
|
20
|
+
STAFF: "STAFF";
|
21
|
+
SPECTATOR: "SPECTATOR";
|
22
|
+
}>;
|
23
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
24
|
+
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
25
|
+
eventId: string;
|
26
|
+
}, {
|
27
|
+
type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
|
28
|
+
eventId: string;
|
29
|
+
}>>;
|
30
|
+
export declare class FindByEventAndTypeTicketDto extends FindByEventAndTypeTicketDto_base {
|
31
|
+
}
|
32
|
+
export declare const findByEventAndTypeTicketResponseSchema: z.ZodObject<{
|
33
|
+
tickets: z.ZodNumber;
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
35
|
+
tickets: number;
|
36
|
+
}, {
|
37
|
+
tickets: number;
|
38
|
+
}>;
|
39
|
+
declare const FindByEventAndTypeTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
40
|
+
tickets: z.ZodNumber;
|
41
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
42
|
+
tickets: number;
|
43
|
+
}, {
|
44
|
+
tickets: number;
|
45
|
+
}>>;
|
46
|
+
export declare class FindByEventAndTypeTicketResponseDto extends FindByEventAndTypeTicketResponseDto_base {
|
47
|
+
}
|
48
|
+
export {};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FindByEventAndTypeTicketResponseDto = exports.findByEventAndTypeTicketResponseSchema = exports.FindByEventAndTypeTicketDto = exports.findByEventAndTypeTicketSchema = void 0;
|
4
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
const types_1 = require("../../../types");
|
7
|
+
exports.findByEventAndTypeTicketSchema = zod_1.z.object({
|
8
|
+
eventId: zod_1.z.string(),
|
9
|
+
type: zod_1.z.nativeEnum(types_1.TicketType),
|
10
|
+
});
|
11
|
+
class FindByEventAndTypeTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByEventAndTypeTicketSchema) {
|
12
|
+
}
|
13
|
+
exports.FindByEventAndTypeTicketDto = FindByEventAndTypeTicketDto;
|
14
|
+
exports.findByEventAndTypeTicketResponseSchema = zod_1.z.object({
|
15
|
+
tickets: zod_1.z.number(),
|
16
|
+
});
|
17
|
+
class FindByEventAndTypeTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByEventAndTypeTicketResponseSchema) {
|
18
|
+
}
|
19
|
+
exports.FindByEventAndTypeTicketResponseDto = FindByEventAndTypeTicketResponseDto;
|
20
|
+
//# sourceMappingURL=find-by-event-type-ticket.dto.js.map
|