expo-backend-types 0.31.0-EXPO-317-EB-CRUD-Tickets.2 → 0.31.0-EXPO-317-EB-CRUD-Tickets.3
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.
@@ -4,13 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.TicketDto = exports.ticketSchema = void 0;
|
7
|
+
const exports_1 = require("../../exports");
|
7
8
|
const translate_1 = require("../../i18n/translate");
|
8
9
|
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
9
10
|
const zod_1 = __importDefault(require("zod"));
|
10
11
|
const types_1 = require("../../../types");
|
11
12
|
exports.ticketSchema = zod_1.default.object({
|
12
13
|
id: zod_1.default.string().uuid({ message: (0, translate_1.translate)('model.ticket.id.uuid') }),
|
13
|
-
eventId:
|
14
|
+
eventId: exports_1.eventSchema.shape.id,
|
14
15
|
type: zod_1.default.nativeEnum(types_1.TicketType),
|
15
16
|
status: zod_1.default.nativeEnum(types_1.TicketStatus),
|
16
17
|
fullName: zod_1.default.string().min(1, (0, translate_1.translate)('model.ticket.fullName.required')),
|