expo-backend-types 0.37.0-EXPO-327-EB-Escanear-entrada.1 → 0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-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 (70) hide show
  1. package/dist/src/account/dto/get-global-filter.dto.d.ts +8 -8
  2. package/dist/src/account/dto/get-me.dto.d.ts +16 -16
  3. package/dist/src/account/dto/update-global-filter.dto.d.ts +8 -8
  4. package/dist/src/event/dto/create-event.dto.d.ts +8 -8
  5. package/dist/src/event/dto/event-tickets.dto.d.ts +2 -2
  6. package/dist/src/event/dto/get-active-events.dto.d.ts +12 -12
  7. package/dist/src/event/dto/get-all-event.dto.d.ts +56 -56
  8. package/dist/src/event/dto/get-by-id-event.dto.d.ts +50 -68
  9. package/dist/src/event/dto/update-event.dto.d.ts +24 -24
  10. package/dist/src/exports.d.ts +1 -0
  11. package/dist/src/exports.js +1 -0
  12. package/dist/src/i18n/es.d.ts +36 -21
  13. package/dist/src/i18n/es.js +36 -21
  14. package/dist/src/i18n/es.js.map +1 -1
  15. package/dist/src/profile/dto/find-all-profile.dto.d.ts +12 -12
  16. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +20 -20
  17. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +8 -8
  18. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +12 -12
  19. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +12 -12
  20. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +12 -12
  21. package/dist/src/tag/dto/create-tag.dto.d.ts +4 -4
  22. package/dist/src/tag/dto/delete-tag.dto.d.ts +4 -4
  23. package/dist/src/tag/dto/find-all-tag.dto.d.ts +8 -8
  24. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +8 -8
  25. package/dist/src/tag/dto/find-one-tag.dto.d.ts +4 -4
  26. package/dist/src/tag/dto/tag.dto.d.ts +4 -4
  27. package/dist/src/tag/dto/update-tag.dto.d.ts +4 -4
  28. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +12 -12
  29. package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +12 -12
  30. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +8 -8
  31. package/dist/src/ticket/constants.d.ts +14 -12
  32. package/dist/src/ticket/constants.js +248 -355
  33. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +596 -0
  34. package/dist/src/ticket/dto/create-many-ticket.dto.js +50 -0
  35. package/dist/src/ticket/dto/create-ticket.dto.d.ts +21 -44
  36. package/dist/src/ticket/dto/create-ticket.dto.js +1 -1
  37. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +10 -24
  38. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +18 -36
  39. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +18 -36
  40. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +18 -36
  41. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +18 -36
  42. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +18 -36
  43. package/dist/src/ticket/dto/find-ticket.dto.d.ts +10 -24
  44. package/dist/src/ticket/dto/ticket.dto.d.ts +10 -24
  45. package/dist/src/ticket/dto/ticket.dto.js +2 -4
  46. package/dist/src/ticket/dto/update-ticket.dto.d.ts +26 -42
  47. package/dist/src/ticket/dto/update-ticket.dto.js +2 -1
  48. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +356 -0
  49. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +27 -0
  50. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +55 -0
  51. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +10 -0
  52. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +32 -0
  53. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +20 -0
  54. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +56 -0
  55. package/dist/src/ticket-group/dto/ticket-group.dto.js +27 -0
  56. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +79 -0
  57. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +18 -0
  58. package/dist/src/ticket-group/exports.d.ts +5 -0
  59. package/dist/src/ticket-group/exports.js +22 -0
  60. package/dist/types/prisma-schema/edge.js +15 -6
  61. package/dist/types/prisma-schema/index-browser.js +12 -3
  62. package/dist/types/prisma-schema/index.d.ts +2230 -332
  63. package/dist/types/prisma-schema/index.js +15 -6
  64. package/dist/types/prisma-schema/package.json +1 -1
  65. package/dist/types/prisma-schema/schema.prisma +23 -7
  66. package/dist/types/prisma-schema/wasm.js +12 -3
  67. package/dist/types/schema.d.ts +317 -29
  68. package/package.json +6 -6
  69. package/dist/src/ticket/dto/send-email.dto.d.ts +0 -18
  70. package/dist/src/ticket/dto/send-email.dto.js +0 -15
@@ -0,0 +1,55 @@
1
+ export declare const deleteTicketGroupResponseSchema: import("zod").ZodObject<{
2
+ id: import("zod").ZodString;
3
+ amountTickets: import("zod").ZodNumber;
4
+ status: import("zod").ZodNativeEnum<{
5
+ BOOKED: "BOOKED";
6
+ PAID: "PAID";
7
+ FREE: "FREE";
8
+ }>;
9
+ eventId: import("zod").ZodString;
10
+ created_at: import("zod").ZodDate;
11
+ updated_at: import("zod").ZodDate;
12
+ }, "strip", import("zod").ZodTypeAny, {
13
+ id: string;
14
+ eventId: string;
15
+ status: "BOOKED" | "PAID" | "FREE";
16
+ amountTickets: number;
17
+ created_at: Date;
18
+ updated_at: Date;
19
+ }, {
20
+ id: string;
21
+ eventId: string;
22
+ status: "BOOKED" | "PAID" | "FREE";
23
+ amountTickets: number;
24
+ created_at: Date;
25
+ updated_at: Date;
26
+ }>;
27
+ declare const DeleteTicketGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
28
+ id: import("zod").ZodString;
29
+ amountTickets: import("zod").ZodNumber;
30
+ status: import("zod").ZodNativeEnum<{
31
+ BOOKED: "BOOKED";
32
+ PAID: "PAID";
33
+ FREE: "FREE";
34
+ }>;
35
+ eventId: import("zod").ZodString;
36
+ created_at: import("zod").ZodString;
37
+ updated_at: import("zod").ZodString;
38
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
39
+ id: string;
40
+ eventId: string;
41
+ status: "BOOKED" | "PAID" | "FREE";
42
+ amountTickets: number;
43
+ created_at: string;
44
+ updated_at: string;
45
+ }, {
46
+ id: string;
47
+ eventId: string;
48
+ status: "BOOKED" | "PAID" | "FREE";
49
+ amountTickets: number;
50
+ created_at: string;
51
+ updated_at: string;
52
+ }>>;
53
+ export declare class DeleteTicketGroupResponseDto extends DeleteTicketGroupResponseDto_base {
54
+ }
55
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteTicketGroupResponseDto = exports.deleteTicketGroupResponseSchema = void 0;
4
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
+ const ticket_group_dto_1 = require("./ticket-group.dto");
6
+ exports.deleteTicketGroupResponseSchema = ticket_group_dto_1.ticketGroupSchema;
7
+ class DeleteTicketGroupResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.deleteTicketGroupResponseSchema) {
8
+ }
9
+ exports.DeleteTicketGroupResponseDto = DeleteTicketGroupResponseDto;
10
+ //# sourceMappingURL=delete-ticket-group.dto.js.map
@@ -0,0 +1,32 @@
1
+ import z from 'zod';
2
+ export declare const findTicketsByEventSchema: 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
+ export declare const findTicketsByEventResponseSchema: z.ZodObject<{
17
+ tickets: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ tickets: number;
20
+ }, {
21
+ tickets: number;
22
+ }>;
23
+ declare const FindTicketsByEventDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
24
+ tickets: z.ZodNumber;
25
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
26
+ tickets: number;
27
+ }, {
28
+ tickets: number;
29
+ }>>;
30
+ export declare class FindTicketsByEventDto extends FindTicketsByEventDto_base {
31
+ }
32
+ export {};
@@ -0,0 +1,20 @@
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.FindTicketsByEventDto = exports.findTicketsByEventResponseSchema = exports.findTicketsByEventSchema = void 0;
7
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
8
+ const zod_1 = __importDefault(require("zod"));
9
+ const types_1 = require("../../../types");
10
+ exports.findTicketsByEventSchema = zod_1.default.object({
11
+ eventId: zod_1.default.string(),
12
+ type: zod_1.default.nativeEnum(types_1.TicketType),
13
+ });
14
+ exports.findTicketsByEventResponseSchema = zod_1.default.object({
15
+ tickets: zod_1.default.number(),
16
+ });
17
+ class FindTicketsByEventDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findTicketsByEventResponseSchema) {
18
+ }
19
+ exports.FindTicketsByEventDto = FindTicketsByEventDto;
20
+ //# sourceMappingURL=find-tickets-by-event.dto.js.map
@@ -0,0 +1,56 @@
1
+ import z from 'zod';
2
+ export declare const ticketGroupSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ amountTickets: z.ZodNumber;
5
+ status: z.ZodNativeEnum<{
6
+ BOOKED: "BOOKED";
7
+ PAID: "PAID";
8
+ FREE: "FREE";
9
+ }>;
10
+ eventId: z.ZodString;
11
+ created_at: z.ZodDate;
12
+ updated_at: z.ZodDate;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: string;
15
+ eventId: string;
16
+ status: "BOOKED" | "PAID" | "FREE";
17
+ amountTickets: number;
18
+ created_at: Date;
19
+ updated_at: Date;
20
+ }, {
21
+ id: string;
22
+ eventId: string;
23
+ status: "BOOKED" | "PAID" | "FREE";
24
+ amountTickets: number;
25
+ created_at: Date;
26
+ updated_at: Date;
27
+ }>;
28
+ declare const TicketGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
29
+ id: z.ZodString;
30
+ amountTickets: z.ZodNumber;
31
+ status: z.ZodNativeEnum<{
32
+ BOOKED: "BOOKED";
33
+ PAID: "PAID";
34
+ FREE: "FREE";
35
+ }>;
36
+ eventId: z.ZodString;
37
+ created_at: z.ZodString;
38
+ updated_at: z.ZodString;
39
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
40
+ id: string;
41
+ eventId: string;
42
+ status: "BOOKED" | "PAID" | "FREE";
43
+ amountTickets: number;
44
+ created_at: string;
45
+ updated_at: string;
46
+ }, {
47
+ id: string;
48
+ eventId: string;
49
+ status: "BOOKED" | "PAID" | "FREE";
50
+ amountTickets: number;
51
+ created_at: string;
52
+ updated_at: string;
53
+ }>>;
54
+ export declare class TicketGroupDto extends TicketGroupDto_base {
55
+ }
56
+ export {};
@@ -0,0 +1,27 @@
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.TicketGroupDto = exports.ticketGroupSchema = 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.ticketGroupSchema = zod_1.default.object({
13
+ id: zod_1.default.string().uuid({ message: (0, translate_1.translate)('model.ticketGroup.id.uuid') }),
14
+ amountTickets: zod_1.default
15
+ .number()
16
+ .min(0, (0, translate_1.translate)('model.ticketGroup.amountTickets')),
17
+ status: zod_1.default.nativeEnum(prisma_schema_1.TicketGroupStatus, {
18
+ message: (0, translate_1.translate)('model.ticketGroup.status.invalid'),
19
+ }),
20
+ eventId: event_dto_1.eventSchema.shape.id,
21
+ created_at: zod_1.default.date(),
22
+ updated_at: zod_1.default.date(),
23
+ });
24
+ class TicketGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.ticketGroupSchema) {
25
+ }
26
+ exports.TicketGroupDto = TicketGroupDto;
27
+ //# sourceMappingURL=ticket-group.dto.js.map
@@ -0,0 +1,79 @@
1
+ export declare const updateTicketGroupSchema: import("zod").ZodObject<{
2
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
3
+ BOOKED: "BOOKED";
4
+ PAID: "PAID";
5
+ FREE: "FREE";
6
+ }>>;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
9
+ }, {
10
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
11
+ }>;
12
+ declare const UpdateTicketGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
13
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
14
+ BOOKED: "BOOKED";
15
+ PAID: "PAID";
16
+ FREE: "FREE";
17
+ }>>;
18
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
19
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
20
+ }, {
21
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
22
+ }>>;
23
+ export declare class UpdateTicketGroupDto extends UpdateTicketGroupDto_base {
24
+ }
25
+ export declare const updateTicketGroupResponseSchema: import("zod").ZodObject<{
26
+ id: import("zod").ZodString;
27
+ amountTickets: import("zod").ZodNumber;
28
+ status: import("zod").ZodNativeEnum<{
29
+ BOOKED: "BOOKED";
30
+ PAID: "PAID";
31
+ FREE: "FREE";
32
+ }>;
33
+ eventId: import("zod").ZodString;
34
+ created_at: import("zod").ZodDate;
35
+ updated_at: import("zod").ZodDate;
36
+ }, "strip", import("zod").ZodTypeAny, {
37
+ id: string;
38
+ eventId: string;
39
+ status: "BOOKED" | "PAID" | "FREE";
40
+ amountTickets: number;
41
+ created_at: Date;
42
+ updated_at: Date;
43
+ }, {
44
+ id: string;
45
+ eventId: string;
46
+ status: "BOOKED" | "PAID" | "FREE";
47
+ amountTickets: number;
48
+ created_at: Date;
49
+ updated_at: Date;
50
+ }>;
51
+ declare const UpdateTicketGroupResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
52
+ id: import("zod").ZodString;
53
+ amountTickets: import("zod").ZodNumber;
54
+ status: import("zod").ZodNativeEnum<{
55
+ BOOKED: "BOOKED";
56
+ PAID: "PAID";
57
+ FREE: "FREE";
58
+ }>;
59
+ eventId: import("zod").ZodString;
60
+ created_at: import("zod").ZodString;
61
+ updated_at: import("zod").ZodString;
62
+ }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
63
+ id: string;
64
+ eventId: string;
65
+ status: "BOOKED" | "PAID" | "FREE";
66
+ amountTickets: number;
67
+ created_at: string;
68
+ updated_at: string;
69
+ }, {
70
+ id: string;
71
+ eventId: string;
72
+ status: "BOOKED" | "PAID" | "FREE";
73
+ amountTickets: number;
74
+ created_at: string;
75
+ updated_at: string;
76
+ }>>;
77
+ export declare class UpdateTicketGroupResponseDto extends UpdateTicketGroupResponseDto_base {
78
+ }
79
+ export {};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTicketGroupResponseDto = exports.updateTicketGroupResponseSchema = exports.UpdateTicketGroupDto = exports.updateTicketGroupSchema = void 0;
4
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
+ const ticket_group_dto_1 = require("./ticket-group.dto");
6
+ exports.updateTicketGroupSchema = ticket_group_dto_1.ticketGroupSchema
7
+ .pick({
8
+ status: true,
9
+ })
10
+ .partial();
11
+ class UpdateTicketGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketGroupSchema) {
12
+ }
13
+ exports.UpdateTicketGroupDto = UpdateTicketGroupDto;
14
+ exports.updateTicketGroupResponseSchema = ticket_group_dto_1.ticketGroupSchema;
15
+ class UpdateTicketGroupResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketGroupResponseSchema) {
16
+ }
17
+ exports.UpdateTicketGroupResponseDto = UpdateTicketGroupResponseDto;
18
+ //# sourceMappingURL=update-ticket-group.dto.js.map
@@ -0,0 +1,5 @@
1
+ export * from './dto/create-ticket-group.dto';
2
+ export * from './dto/delete-ticket-group.dto';
3
+ export * from './dto/find-tickets-by-event.dto';
4
+ export * from './dto/ticket-group.dto';
5
+ export * from './dto/update-ticket-group.dto';
@@ -0,0 +1,22 @@
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-group.dto"), exports);
18
+ __exportStar(require("./dto/delete-ticket-group.dto"), exports);
19
+ __exportStar(require("./dto/find-tickets-by-event.dto"), exports);
20
+ __exportStar(require("./dto/ticket-group.dto"), exports);
21
+ __exportStar(require("./dto/update-ticket-group.dto"), exports);
22
+ //# sourceMappingURL=exports.js.map