expo-backend-types 0.31.0-EXPO-318-EB-Generacion-de-PDF-de-Ticket.2 → 0.31.0-EXPO-311-EB-Modificar-DB-schema.4
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/create-event.dto.d.ts +115 -2
- package/dist/src/event/dto/create-event.dto.js +8 -0
- package/dist/src/event/dto/delete-event.dto.d.ts +18 -0
- package/dist/src/event/dto/event-tickets.dto.d.ts +21 -0
- package/dist/src/event/dto/event-tickets.dto.js +21 -0
- package/dist/src/event/dto/event.dto.d.ts +9 -0
- package/dist/src/event/dto/event.dto.js +9 -0
- package/dist/src/event/dto/get-active-events.dto.d.ts +247 -0
- package/dist/src/event/dto/get-active-events.dto.js +19 -0
- package/dist/src/event/dto/get-all-event.dto.d.ts +264 -0
- package/dist/src/event/dto/get-by-id-event.dto.d.ts +160 -0
- package/dist/src/event/dto/get-by-id-event.dto.js +2 -0
- package/dist/src/event/dto/toggle-active-event.dto.d.ts +43 -0
- package/dist/src/event/dto/toggle-active-event.dto.js +6 -0
- package/dist/src/event/dto/update-event.dto.d.ts +173 -2
- package/dist/src/event/dto/update-event.dto.js +9 -0
- package/dist/src/event/exports.d.ts +3 -0
- package/dist/src/event/exports.js +3 -0
- package/dist/src/event-folder/dto/get-all-event-folder.dto.d.ts +42 -0
- package/dist/src/event-folder/dto/get-by-id-event-folder.dto.d.ts +30 -0
- package/dist/src/exports.d.ts +0 -3
- package/dist/src/exports.js +0 -3
- package/dist/src/i18n/es.d.ts +20 -53
- package/dist/src/i18n/es.js +20 -53
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/message/dto/template.dto.d.ts +2 -2
- package/dist/types/prisma-schema/edge.js +23 -26
- package/dist/types/prisma-schema/index-browser.js +20 -23
- package/dist/types/prisma-schema/index.d.ts +1878 -1295
- package/dist/types/prisma-schema/index.js +23 -26
- package/dist/types/prisma-schema/package.json +1 -1
- package/dist/types/prisma-schema/schema.prisma +29 -32
- package/dist/types/prisma-schema/wasm.js +20 -23
- package/dist/types/schema.d.ts +156 -416
- package/package.json +2 -5
- package/dist/src/pdf/dto/generate-pdf.dto.d.ts +0 -7
- package/dist/src/pdf/dto/generate-pdf.dto.js +0 -13
- package/dist/src/pdf/exports.d.ts +0 -1
- package/dist/src/pdf/exports.js +0 -18
- package/dist/src/ticket/dto/create-ticket.dto.d.ts +0 -130
- package/dist/src/ticket/dto/create-ticket.dto.js +0 -20
- package/dist/src/ticket/dto/delete-ticket.dto.d.ts +0 -73
- package/dist/src/ticket/dto/delete-ticket.dto.js +0 -10
- package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +0 -196
- package/dist/src/ticket/dto/find-all-tickets.dto.js +0 -23
- package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +0 -196
- package/dist/src/ticket/dto/find-by-event-ticket.dto.js +0 -23
- package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +0 -196
- package/dist/src/ticket/dto/find-by-id-ticket.dto.js +0 -20
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +0 -196
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.js +0 -23
- package/dist/src/ticket/dto/ticket.dto.d.ts +0 -74
- package/dist/src/ticket/dto/ticket.dto.js +0 -29
- package/dist/src/ticket/dto/update-ticket.dto.d.ts +0 -121
- package/dist/src/ticket/dto/update-ticket.dto.js +0 -21
- package/dist/src/ticket/exports.d.ts +0 -8
- package/dist/src/ticket/exports.js +0 -25
@@ -1,74 +0,0 @@
|
|
1
|
-
import z from 'zod';
|
2
|
-
export declare const ticketSchema: z.ZodObject<{
|
3
|
-
id: z.ZodString;
|
4
|
-
eventId: z.ZodString;
|
5
|
-
type: z.ZodNativeEnum<{
|
6
|
-
PARTICIPANT: "PARTICIPANT";
|
7
|
-
SPECTATOR: "SPECTATOR";
|
8
|
-
STAFF: "STAFF";
|
9
|
-
}>;
|
10
|
-
status: z.ZodNativeEnum<{
|
11
|
-
BOOKED: "BOOKED";
|
12
|
-
PAID: "PAID";
|
13
|
-
}>;
|
14
|
-
fullName: z.ZodString;
|
15
|
-
mail: z.ZodString;
|
16
|
-
created_at: z.ZodDate;
|
17
|
-
updated_at: z.ZodDate;
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
19
|
-
id: string;
|
20
|
-
type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
|
21
|
-
fullName: string;
|
22
|
-
mail: string;
|
23
|
-
eventId: string;
|
24
|
-
status: "BOOKED" | "PAID";
|
25
|
-
created_at: Date;
|
26
|
-
updated_at: Date;
|
27
|
-
}, {
|
28
|
-
id: string;
|
29
|
-
type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
|
30
|
-
fullName: string;
|
31
|
-
mail: string;
|
32
|
-
eventId: string;
|
33
|
-
status: "BOOKED" | "PAID";
|
34
|
-
created_at: Date;
|
35
|
-
updated_at: Date;
|
36
|
-
}>;
|
37
|
-
declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
38
|
-
id: z.ZodString;
|
39
|
-
eventId: z.ZodString;
|
40
|
-
type: z.ZodNativeEnum<{
|
41
|
-
PARTICIPANT: "PARTICIPANT";
|
42
|
-
SPECTATOR: "SPECTATOR";
|
43
|
-
STAFF: "STAFF";
|
44
|
-
}>;
|
45
|
-
status: z.ZodNativeEnum<{
|
46
|
-
BOOKED: "BOOKED";
|
47
|
-
PAID: "PAID";
|
48
|
-
}>;
|
49
|
-
fullName: z.ZodString;
|
50
|
-
mail: z.ZodString;
|
51
|
-
created_at: z.ZodString;
|
52
|
-
updated_at: z.ZodString;
|
53
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
54
|
-
id: string;
|
55
|
-
type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
|
56
|
-
fullName: string;
|
57
|
-
mail: string;
|
58
|
-
eventId: string;
|
59
|
-
status: "BOOKED" | "PAID";
|
60
|
-
created_at: string;
|
61
|
-
updated_at: string;
|
62
|
-
}, {
|
63
|
-
id: string;
|
64
|
-
type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
|
65
|
-
fullName: string;
|
66
|
-
mail: string;
|
67
|
-
eventId: string;
|
68
|
-
status: "BOOKED" | "PAID";
|
69
|
-
created_at: string;
|
70
|
-
updated_at: string;
|
71
|
-
}>>;
|
72
|
-
export declare class TicketDto extends TicketDto_base {
|
73
|
-
}
|
74
|
-
export {};
|
@@ -1,29 +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.TicketDto = exports.ticketSchema = 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.ticketSchema = zod_1.default.object({
|
13
|
-
id: zod_1.default.string().uuid({ message: (0, translate_1.translate)('model.ticket.id.uuid') }),
|
14
|
-
eventId: event_dto_1.eventSchema.shape.id,
|
15
|
-
type: zod_1.default.nativeEnum(prisma_schema_1.TicketType, {
|
16
|
-
message: (0, translate_1.translate)('model.ticket.type.invalid'),
|
17
|
-
}),
|
18
|
-
status: zod_1.default.nativeEnum(prisma_schema_1.TicketStatus, {
|
19
|
-
message: (0, translate_1.translate)('model.ticket.status.invalid'),
|
20
|
-
}),
|
21
|
-
fullName: zod_1.default.string().min(1, (0, translate_1.translate)('model.ticket.fullName.required')),
|
22
|
-
mail: zod_1.default.string().email((0, translate_1.translate)('model.ticket.mail.email')),
|
23
|
-
created_at: zod_1.default.date(),
|
24
|
-
updated_at: zod_1.default.date(),
|
25
|
-
});
|
26
|
-
class TicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.ticketSchema) {
|
27
|
-
}
|
28
|
-
exports.TicketDto = TicketDto;
|
29
|
-
//# sourceMappingURL=ticket.dto.js.map
|
@@ -1,121 +0,0 @@
|
|
1
|
-
export declare const updateTicketSchema: import("zod").ZodObject<{
|
2
|
-
type: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
|
3
|
-
PARTICIPANT: "PARTICIPANT";
|
4
|
-
SPECTATOR: "SPECTATOR";
|
5
|
-
STAFF: "STAFF";
|
6
|
-
}>>;
|
7
|
-
fullName: import("zod").ZodOptional<import("zod").ZodString>;
|
8
|
-
mail: import("zod").ZodOptional<import("zod").ZodString>;
|
9
|
-
status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
|
10
|
-
BOOKED: "BOOKED";
|
11
|
-
PAID: "PAID";
|
12
|
-
}>>;
|
13
|
-
}, "strip", import("zod").ZodTypeAny, {
|
14
|
-
type?: "PARTICIPANT" | "SPECTATOR" | "STAFF" | undefined;
|
15
|
-
fullName?: string | undefined;
|
16
|
-
mail?: string | undefined;
|
17
|
-
status?: "BOOKED" | "PAID" | undefined;
|
18
|
-
}, {
|
19
|
-
type?: "PARTICIPANT" | "SPECTATOR" | "STAFF" | undefined;
|
20
|
-
fullName?: string | undefined;
|
21
|
-
mail?: string | undefined;
|
22
|
-
status?: "BOOKED" | "PAID" | undefined;
|
23
|
-
}>;
|
24
|
-
declare const UpdateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
25
|
-
type: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
|
26
|
-
PARTICIPANT: "PARTICIPANT";
|
27
|
-
SPECTATOR: "SPECTATOR";
|
28
|
-
STAFF: "STAFF";
|
29
|
-
}>>;
|
30
|
-
fullName: import("zod").ZodOptional<import("zod").ZodString>;
|
31
|
-
mail: import("zod").ZodOptional<import("zod").ZodString>;
|
32
|
-
status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
|
33
|
-
BOOKED: "BOOKED";
|
34
|
-
PAID: "PAID";
|
35
|
-
}>>;
|
36
|
-
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
37
|
-
type?: "PARTICIPANT" | "SPECTATOR" | "STAFF" | undefined;
|
38
|
-
fullName?: string | undefined;
|
39
|
-
mail?: string | undefined;
|
40
|
-
status?: "BOOKED" | "PAID" | undefined;
|
41
|
-
}, {
|
42
|
-
type?: "PARTICIPANT" | "SPECTATOR" | "STAFF" | undefined;
|
43
|
-
fullName?: string | undefined;
|
44
|
-
mail?: string | undefined;
|
45
|
-
status?: "BOOKED" | "PAID" | undefined;
|
46
|
-
}>>;
|
47
|
-
export declare class UpdateTicketDto extends UpdateTicketDto_base {
|
48
|
-
}
|
49
|
-
export declare const updateTicketResponseSchema: import("zod").ZodObject<{
|
50
|
-
id: import("zod").ZodString;
|
51
|
-
eventId: import("zod").ZodString;
|
52
|
-
type: import("zod").ZodNativeEnum<{
|
53
|
-
PARTICIPANT: "PARTICIPANT";
|
54
|
-
SPECTATOR: "SPECTATOR";
|
55
|
-
STAFF: "STAFF";
|
56
|
-
}>;
|
57
|
-
status: import("zod").ZodNativeEnum<{
|
58
|
-
BOOKED: "BOOKED";
|
59
|
-
PAID: "PAID";
|
60
|
-
}>;
|
61
|
-
fullName: import("zod").ZodString;
|
62
|
-
mail: import("zod").ZodString;
|
63
|
-
created_at: import("zod").ZodDate;
|
64
|
-
updated_at: import("zod").ZodDate;
|
65
|
-
}, "strip", import("zod").ZodTypeAny, {
|
66
|
-
id: string;
|
67
|
-
type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
|
68
|
-
fullName: string;
|
69
|
-
mail: string;
|
70
|
-
eventId: string;
|
71
|
-
status: "BOOKED" | "PAID";
|
72
|
-
created_at: Date;
|
73
|
-
updated_at: Date;
|
74
|
-
}, {
|
75
|
-
id: string;
|
76
|
-
type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
|
77
|
-
fullName: string;
|
78
|
-
mail: string;
|
79
|
-
eventId: string;
|
80
|
-
status: "BOOKED" | "PAID";
|
81
|
-
created_at: Date;
|
82
|
-
updated_at: Date;
|
83
|
-
}>;
|
84
|
-
declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
|
85
|
-
id: import("zod").ZodString;
|
86
|
-
eventId: import("zod").ZodString;
|
87
|
-
type: import("zod").ZodNativeEnum<{
|
88
|
-
PARTICIPANT: "PARTICIPANT";
|
89
|
-
SPECTATOR: "SPECTATOR";
|
90
|
-
STAFF: "STAFF";
|
91
|
-
}>;
|
92
|
-
status: import("zod").ZodNativeEnum<{
|
93
|
-
BOOKED: "BOOKED";
|
94
|
-
PAID: "PAID";
|
95
|
-
}>;
|
96
|
-
fullName: import("zod").ZodString;
|
97
|
-
mail: import("zod").ZodString;
|
98
|
-
created_at: import("zod").ZodString;
|
99
|
-
updated_at: import("zod").ZodString;
|
100
|
-
}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
101
|
-
id: string;
|
102
|
-
type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
|
103
|
-
fullName: string;
|
104
|
-
mail: string;
|
105
|
-
eventId: string;
|
106
|
-
status: "BOOKED" | "PAID";
|
107
|
-
created_at: string;
|
108
|
-
updated_at: string;
|
109
|
-
}, {
|
110
|
-
id: string;
|
111
|
-
type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
|
112
|
-
fullName: string;
|
113
|
-
mail: string;
|
114
|
-
eventId: string;
|
115
|
-
status: "BOOKED" | "PAID";
|
116
|
-
created_at: string;
|
117
|
-
updated_at: string;
|
118
|
-
}>>;
|
119
|
-
export declare class UpdateTicketResponseDto extends UpdateTicketResponseDto_base {
|
120
|
-
}
|
121
|
-
export {};
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UpdateTicketResponseDto = exports.updateTicketResponseSchema = exports.UpdateTicketDto = exports.updateTicketSchema = void 0;
|
4
|
-
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
5
|
-
const ticket_dto_1 = require("./ticket.dto");
|
6
|
-
exports.updateTicketSchema = ticket_dto_1.ticketSchema
|
7
|
-
.pick({
|
8
|
-
type: true,
|
9
|
-
status: true,
|
10
|
-
fullName: true,
|
11
|
-
mail: true,
|
12
|
-
})
|
13
|
-
.partial();
|
14
|
-
class UpdateTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketSchema) {
|
15
|
-
}
|
16
|
-
exports.UpdateTicketDto = UpdateTicketDto;
|
17
|
-
exports.updateTicketResponseSchema = ticket_dto_1.ticketSchema;
|
18
|
-
class UpdateTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketResponseSchema) {
|
19
|
-
}
|
20
|
-
exports.UpdateTicketResponseDto = UpdateTicketResponseDto;
|
21
|
-
//# sourceMappingURL=update-ticket.dto.js.map
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export * from './dto/create-ticket.dto';
|
2
|
-
export * from './dto/delete-ticket.dto';
|
3
|
-
export * from './dto/find-all-tickets.dto';
|
4
|
-
export * from './dto/find-by-event-ticket.dto';
|
5
|
-
export * from './dto/find-by-id-ticket.dto';
|
6
|
-
export * from './dto/find-by-mail-ticket.dto';
|
7
|
-
export * from './dto/ticket.dto';
|
8
|
-
export * from './dto/update-ticket.dto';
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./dto/create-ticket.dto"), exports);
|
18
|
-
__exportStar(require("./dto/delete-ticket.dto"), exports);
|
19
|
-
__exportStar(require("./dto/find-all-tickets.dto"), exports);
|
20
|
-
__exportStar(require("./dto/find-by-event-ticket.dto"), exports);
|
21
|
-
__exportStar(require("./dto/find-by-id-ticket.dto"), exports);
|
22
|
-
__exportStar(require("./dto/find-by-mail-ticket.dto"), exports);
|
23
|
-
__exportStar(require("./dto/ticket.dto"), exports);
|
24
|
-
__exportStar(require("./dto/update-ticket.dto"), exports);
|
25
|
-
//# sourceMappingURL=exports.js.map
|