expo-backend-types 0.31.0-EXPO-311-EB-Modificar-DB-schema.1 → 0.31.0-EXPO-317-EB-CRUD-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.
Files changed (43) hide show
  1. package/dist/src/event/dto/create-event.dto.d.ts +2 -186
  2. package/dist/src/event/dto/create-event.dto.js +0 -12
  3. package/dist/src/event/dto/delete-event.dto.d.ts +0 -12
  4. package/dist/src/event/dto/event.dto.d.ts +0 -6
  5. package/dist/src/event/dto/event.dto.js +0 -8
  6. package/dist/src/event/dto/get-all-event.dto.d.ts +0 -176
  7. package/dist/src/event/dto/get-by-id-event.dto.d.ts +0 -64
  8. package/dist/src/event/dto/update-event.dto.d.ts +2 -46
  9. package/dist/src/event/dto/update-event.dto.js +0 -4
  10. package/dist/src/event-folder/dto/get-all-event-folder.dto.d.ts +0 -28
  11. package/dist/src/event-folder/dto/get-by-id-event-folder.dto.d.ts +0 -20
  12. package/dist/src/exports.d.ts +2 -0
  13. package/dist/src/exports.js +2 -0
  14. package/dist/src/i18n/es.d.ts +45 -9
  15. package/dist/src/i18n/es.js +45 -9
  16. package/dist/src/i18n/es.js.map +1 -1
  17. package/dist/src/ticket/dto/create-ticket.dto.d.ts +130 -0
  18. package/dist/src/ticket/dto/create-ticket.dto.js +20 -0
  19. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +73 -0
  20. package/dist/src/ticket/dto/delete-ticket.dto.js +10 -0
  21. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +196 -0
  22. package/dist/src/ticket/dto/find-all-tickets.dto.js +23 -0
  23. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +196 -0
  24. package/dist/src/ticket/dto/find-by-event-ticket.dto.js +23 -0
  25. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +196 -0
  26. package/dist/src/ticket/dto/find-by-id-ticket.dto.js +20 -0
  27. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +196 -0
  28. package/dist/src/ticket/dto/find-by-mail-ticket.dto.js +23 -0
  29. package/dist/src/ticket/dto/ticket.dto.d.ts +74 -0
  30. package/dist/src/ticket/dto/ticket.dto.js +25 -0
  31. package/dist/src/ticket/dto/update-ticket.dto.d.ts +125 -0
  32. package/dist/src/ticket/dto/update-ticket.dto.js +19 -0
  33. package/dist/src/ticket/exports.d.ts +8 -0
  34. package/dist/src/ticket/exports.js +25 -0
  35. package/dist/types/prisma-schema/edge.js +26 -22
  36. package/dist/types/prisma-schema/index-browser.js +23 -19
  37. package/dist/types/prisma-schema/index.d.ts +1294 -1815
  38. package/dist/types/prisma-schema/index.js +26 -22
  39. package/dist/types/prisma-schema/package.json +1 -1
  40. package/dist/types/prisma-schema/schema.prisma +32 -27
  41. package/dist/types/prisma-schema/wasm.js +23 -19
  42. package/dist/types/schema.d.ts +300 -53
  43. package/package.json +1 -1
@@ -0,0 +1,74 @@
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 {};
@@ -0,0 +1,25 @@
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 exports_1 = require("../../exports");
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 types_1 = require("../../../types");
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: exports_1.eventSchema.shape.id,
15
+ type: zod_1.default.nativeEnum(types_1.TicketType),
16
+ status: zod_1.default.nativeEnum(types_1.TicketStatus),
17
+ fullName: zod_1.default.string().min(1, (0, translate_1.translate)('model.ticket.fullName.required')),
18
+ mail: zod_1.default.string().email((0, translate_1.translate)('model.ticket.mail.email')),
19
+ created_at: zod_1.default.date(),
20
+ updated_at: zod_1.default.date(),
21
+ });
22
+ class TicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.ticketSchema) {
23
+ }
24
+ exports.TicketDto = TicketDto;
25
+ //# sourceMappingURL=ticket.dto.js.map
@@ -0,0 +1,125 @@
1
+ export declare const updateTicketSchema: import("zod").ZodObject<Pick<{
2
+ id: import("zod").ZodString;
3
+ eventId: import("zod").ZodString;
4
+ type: import("zod").ZodNativeEnum<{
5
+ PARTICIPANT: "PARTICIPANT";
6
+ SPECTATOR: "SPECTATOR";
7
+ STAFF: "STAFF";
8
+ }>;
9
+ status: import("zod").ZodNativeEnum<{
10
+ BOOKED: "BOOKED";
11
+ PAID: "PAID";
12
+ }>;
13
+ fullName: import("zod").ZodString;
14
+ mail: import("zod").ZodString;
15
+ created_at: import("zod").ZodDate;
16
+ updated_at: import("zod").ZodDate;
17
+ }, "type" | "fullName" | "mail" | "status">, "strip", import("zod").ZodTypeAny, {
18
+ type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
19
+ fullName: string;
20
+ mail: string;
21
+ status: "BOOKED" | "PAID";
22
+ }, {
23
+ type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
24
+ fullName: string;
25
+ mail: string;
26
+ status: "BOOKED" | "PAID";
27
+ }>;
28
+ declare const UpdateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
29
+ type: import("zod").ZodNativeEnum<{
30
+ PARTICIPANT: "PARTICIPANT";
31
+ SPECTATOR: "SPECTATOR";
32
+ STAFF: "STAFF";
33
+ }>;
34
+ fullName: import("zod").ZodString;
35
+ mail: import("zod").ZodString;
36
+ status: import("zod").ZodNativeEnum<{
37
+ BOOKED: "BOOKED";
38
+ PAID: "PAID";
39
+ }>;
40
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
41
+ type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
42
+ fullName: string;
43
+ mail: string;
44
+ status: "BOOKED" | "PAID";
45
+ }, {
46
+ type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
47
+ fullName: string;
48
+ mail: string;
49
+ status: "BOOKED" | "PAID";
50
+ }>>;
51
+ export declare class UpdateTicketDto extends UpdateTicketDto_base {
52
+ }
53
+ export declare const updateTicketResponseSchema: import("zod").ZodObject<{
54
+ id: import("zod").ZodString;
55
+ eventId: import("zod").ZodString;
56
+ type: import("zod").ZodNativeEnum<{
57
+ PARTICIPANT: "PARTICIPANT";
58
+ SPECTATOR: "SPECTATOR";
59
+ STAFF: "STAFF";
60
+ }>;
61
+ status: import("zod").ZodNativeEnum<{
62
+ BOOKED: "BOOKED";
63
+ PAID: "PAID";
64
+ }>;
65
+ fullName: import("zod").ZodString;
66
+ mail: import("zod").ZodString;
67
+ created_at: import("zod").ZodDate;
68
+ updated_at: import("zod").ZodDate;
69
+ }, "strip", import("zod").ZodTypeAny, {
70
+ id: string;
71
+ type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
72
+ fullName: string;
73
+ mail: string;
74
+ eventId: string;
75
+ status: "BOOKED" | "PAID";
76
+ created_at: Date;
77
+ updated_at: Date;
78
+ }, {
79
+ id: string;
80
+ type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
81
+ fullName: string;
82
+ mail: string;
83
+ eventId: string;
84
+ status: "BOOKED" | "PAID";
85
+ created_at: Date;
86
+ updated_at: Date;
87
+ }>;
88
+ declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
89
+ id: import("zod").ZodString;
90
+ eventId: import("zod").ZodString;
91
+ type: import("zod").ZodNativeEnum<{
92
+ PARTICIPANT: "PARTICIPANT";
93
+ SPECTATOR: "SPECTATOR";
94
+ STAFF: "STAFF";
95
+ }>;
96
+ status: import("zod").ZodNativeEnum<{
97
+ BOOKED: "BOOKED";
98
+ PAID: "PAID";
99
+ }>;
100
+ fullName: import("zod").ZodString;
101
+ mail: import("zod").ZodString;
102
+ created_at: import("zod").ZodString;
103
+ updated_at: import("zod").ZodString;
104
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
105
+ id: string;
106
+ type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
107
+ fullName: string;
108
+ mail: string;
109
+ eventId: string;
110
+ status: "BOOKED" | "PAID";
111
+ created_at: string;
112
+ updated_at: string;
113
+ }, {
114
+ id: string;
115
+ type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
116
+ fullName: string;
117
+ mail: string;
118
+ eventId: string;
119
+ status: "BOOKED" | "PAID";
120
+ created_at: string;
121
+ updated_at: string;
122
+ }>>;
123
+ export declare class UpdateTicketResponseDto extends UpdateTicketResponseDto_base {
124
+ }
125
+ export {};
@@ -0,0 +1,19 @@
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.pick({
7
+ type: true,
8
+ status: true,
9
+ fullName: true,
10
+ mail: true,
11
+ });
12
+ class UpdateTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketSchema) {
13
+ }
14
+ exports.UpdateTicketDto = UpdateTicketDto;
15
+ exports.updateTicketResponseSchema = ticket_dto_1.ticketSchema;
16
+ class UpdateTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketResponseSchema) {
17
+ }
18
+ exports.UpdateTicketResponseDto = UpdateTicketResponseDto;
19
+ //# sourceMappingURL=update-ticket.dto.js.map
@@ -0,0 +1,8 @@
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';
@@ -0,0 +1,25 @@
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