expo-backend-types 0.31.0-EXPO-317-EB-CRUD-Tickets.5 → 0.31.0

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 (32) hide show
  1. package/dist/src/exports.d.ts +0 -1
  2. package/dist/src/exports.js +0 -1
  3. package/dist/src/i18n/es.d.ts +0 -45
  4. package/dist/src/i18n/es.js +0 -45
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/types/prisma-schema/edge.js +3 -26
  7. package/dist/types/prisma-schema/index-browser.js +0 -23
  8. package/dist/types/prisma-schema/index.d.ts +137 -1821
  9. package/dist/types/prisma-schema/index.js +3 -26
  10. package/dist/types/prisma-schema/package.json +1 -1
  11. package/dist/types/prisma-schema/schema.prisma +1 -31
  12. package/dist/types/prisma-schema/wasm.js +0 -23
  13. package/dist/types/schema.d.ts +0 -296
  14. package/package.json +1 -1
  15. package/dist/src/ticket/dto/create-ticket.dto.d.ts +0 -130
  16. package/dist/src/ticket/dto/create-ticket.dto.js +0 -20
  17. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +0 -73
  18. package/dist/src/ticket/dto/delete-ticket.dto.js +0 -10
  19. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +0 -196
  20. package/dist/src/ticket/dto/find-all-tickets.dto.js +0 -23
  21. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +0 -196
  22. package/dist/src/ticket/dto/find-by-event-ticket.dto.js +0 -23
  23. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +0 -196
  24. package/dist/src/ticket/dto/find-by-id-ticket.dto.js +0 -20
  25. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +0 -196
  26. package/dist/src/ticket/dto/find-by-mail-ticket.dto.js +0 -23
  27. package/dist/src/ticket/dto/ticket.dto.d.ts +0 -74
  28. package/dist/src/ticket/dto/ticket.dto.js +0 -25
  29. package/dist/src/ticket/dto/update-ticket.dto.d.ts +0 -125
  30. package/dist/src/ticket/dto/update-ticket.dto.js +0 -19
  31. package/dist/src/ticket/exports.d.ts +0 -8
  32. package/dist/src/ticket/exports.js +0 -25
@@ -1,196 +0,0 @@
1
- import z from 'zod';
2
- export declare const findByMailTicketResponseSchema: z.ZodObject<{
3
- tickets: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4
- id: z.ZodString;
5
- eventId: z.ZodString;
6
- type: z.ZodNativeEnum<{
7
- PARTICIPANT: "PARTICIPANT";
8
- SPECTATOR: "SPECTATOR";
9
- STAFF: "STAFF";
10
- }>;
11
- status: z.ZodNativeEnum<{
12
- BOOKED: "BOOKED";
13
- PAID: "PAID";
14
- }>;
15
- fullName: z.ZodString;
16
- mail: z.ZodString;
17
- created_at: z.ZodDate;
18
- updated_at: z.ZodDate;
19
- }, {
20
- event: z.ZodObject<Pick<{
21
- id: z.ZodString;
22
- name: z.ZodString;
23
- date: z.ZodDate;
24
- location: z.ZodString;
25
- folderId: z.ZodNullable<z.ZodString>;
26
- tagAssistedId: z.ZodString;
27
- tagConfirmedId: z.ZodString;
28
- supraEventId: z.ZodNullable<z.ZodString>;
29
- created_at: z.ZodDate;
30
- updated_at: z.ZodDate;
31
- }, "location" | "name" | "date">, "strip", z.ZodTypeAny, {
32
- location: string;
33
- name: string;
34
- date: Date;
35
- }, {
36
- location: string;
37
- name: string;
38
- date: Date;
39
- }>;
40
- }>, "strip", z.ZodTypeAny, {
41
- event: {
42
- location: string;
43
- name: string;
44
- date: Date;
45
- };
46
- id: string;
47
- type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
48
- fullName: string;
49
- mail: string;
50
- eventId: string;
51
- status: "BOOKED" | "PAID";
52
- created_at: Date;
53
- updated_at: Date;
54
- }, {
55
- event: {
56
- location: string;
57
- name: string;
58
- date: Date;
59
- };
60
- id: string;
61
- type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
62
- fullName: string;
63
- mail: string;
64
- eventId: string;
65
- status: "BOOKED" | "PAID";
66
- created_at: Date;
67
- updated_at: Date;
68
- }>, "many">;
69
- }, "strip", z.ZodTypeAny, {
70
- tickets: {
71
- event: {
72
- location: string;
73
- name: string;
74
- date: Date;
75
- };
76
- id: string;
77
- type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
78
- fullName: string;
79
- mail: string;
80
- eventId: string;
81
- status: "BOOKED" | "PAID";
82
- created_at: Date;
83
- updated_at: Date;
84
- }[];
85
- }, {
86
- tickets: {
87
- event: {
88
- location: string;
89
- name: string;
90
- date: Date;
91
- };
92
- id: string;
93
- type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
94
- fullName: string;
95
- mail: string;
96
- eventId: string;
97
- status: "BOOKED" | "PAID";
98
- created_at: Date;
99
- updated_at: Date;
100
- }[];
101
- }>;
102
- declare const FindByMailTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
103
- tickets: z.ZodArray<z.ZodObject<{
104
- id: z.ZodString;
105
- eventId: z.ZodString;
106
- type: z.ZodNativeEnum<{
107
- PARTICIPANT: "PARTICIPANT";
108
- SPECTATOR: "SPECTATOR";
109
- STAFF: "STAFF";
110
- }>;
111
- status: z.ZodNativeEnum<{
112
- BOOKED: "BOOKED";
113
- PAID: "PAID";
114
- }>;
115
- fullName: z.ZodString;
116
- mail: z.ZodString;
117
- created_at: z.ZodString;
118
- updated_at: z.ZodString;
119
- event: z.ZodObject<{
120
- location: z.ZodString;
121
- name: z.ZodString;
122
- date: z.ZodString;
123
- }, z.UnknownKeysParam, z.ZodTypeAny, {
124
- location: string;
125
- name: string;
126
- date: string;
127
- }, {
128
- location: string;
129
- name: string;
130
- date: string;
131
- }>;
132
- }, z.UnknownKeysParam, z.ZodTypeAny, {
133
- event: {
134
- location: string;
135
- name: string;
136
- date: string;
137
- };
138
- id: string;
139
- type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
140
- fullName: string;
141
- mail: string;
142
- eventId: string;
143
- status: "BOOKED" | "PAID";
144
- created_at: string;
145
- updated_at: string;
146
- }, {
147
- event: {
148
- location: string;
149
- name: string;
150
- date: string;
151
- };
152
- id: string;
153
- type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
154
- fullName: string;
155
- mail: string;
156
- eventId: string;
157
- status: "BOOKED" | "PAID";
158
- created_at: string;
159
- updated_at: string;
160
- }>, "many">;
161
- }, z.UnknownKeysParam, z.ZodTypeAny, {
162
- tickets: {
163
- event: {
164
- location: string;
165
- name: string;
166
- date: string;
167
- };
168
- id: string;
169
- type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
170
- fullName: string;
171
- mail: string;
172
- eventId: string;
173
- status: "BOOKED" | "PAID";
174
- created_at: string;
175
- updated_at: string;
176
- }[];
177
- }, {
178
- tickets: {
179
- event: {
180
- location: string;
181
- name: string;
182
- date: string;
183
- };
184
- id: string;
185
- type: "PARTICIPANT" | "SPECTATOR" | "STAFF";
186
- fullName: string;
187
- mail: string;
188
- eventId: string;
189
- status: "BOOKED" | "PAID";
190
- created_at: string;
191
- updated_at: string;
192
- }[];
193
- }>>;
194
- export declare class FindByMailTicketResponseDto extends FindByMailTicketResponseDto_base {
195
- }
196
- export {};
@@ -1,23 +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.FindByMailTicketResponseDto = exports.findByMailTicketResponseSchema = void 0;
7
- const exports_1 = require("../../exports");
8
- const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
- const zod_1 = __importDefault(require("zod"));
10
- const ticket_dto_1 = require("./ticket.dto");
11
- exports.findByMailTicketResponseSchema = zod_1.default.object({
12
- tickets: zod_1.default.array(ticket_dto_1.ticketSchema.merge(zod_1.default.object({
13
- event: exports_1.eventSchema.pick({
14
- name: true,
15
- date: true,
16
- location: true,
17
- }),
18
- }))),
19
- });
20
- class FindByMailTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByMailTicketResponseSchema) {
21
- }
22
- exports.FindByMailTicketResponseDto = FindByMailTicketResponseDto;
23
- //# sourceMappingURL=find-by-mail-ticket.dto.js.map
@@ -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,25 +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 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
@@ -1,125 +0,0 @@
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 {};
@@ -1,19 +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.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
@@ -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