expo-backend-types 0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.1 → 0.37.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 (83) 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 +78 -50
  9. package/dist/src/event/dto/update-event.dto.d.ts +24 -24
  10. package/dist/src/exports.d.ts +0 -1
  11. package/dist/src/exports.js +0 -1
  12. package/dist/src/i18n/es.d.ts +22 -31
  13. package/dist/src/i18n/es.js +22 -31
  14. package/dist/src/i18n/es.js.map +1 -1
  15. package/dist/src/mi-expo/dto/get-me.dto.d.ts +5 -5
  16. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +9 -9
  17. package/dist/src/mi-expo/dto/login.dto.d.ts +9 -9
  18. package/dist/src/mi-expo/dto/update-me.dto.d.ts +11 -11
  19. package/dist/src/otp/dto/verify-otp.dto.d.ts +8 -8
  20. package/dist/src/profile/dto/create-profile.dto.d.ts +10 -10
  21. package/dist/src/profile/dto/delete-profile.dto.d.ts +4 -4
  22. package/dist/src/profile/dto/find-all-profile.dto.d.ts +20 -20
  23. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +32 -32
  24. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +13 -13
  25. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +4 -4
  26. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +20 -20
  27. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +20 -20
  28. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +20 -20
  29. package/dist/src/profile/dto/profile.dto.d.ts +2 -2
  30. package/dist/src/profile/dto/update-profile.dto.d.ts +10 -10
  31. package/dist/src/schema/profile.schema.d.ts +2 -2
  32. package/dist/src/tag/dto/create-tag.dto.d.ts +4 -4
  33. package/dist/src/tag/dto/delete-tag.dto.d.ts +4 -4
  34. package/dist/src/tag/dto/find-all-tag.dto.d.ts +8 -8
  35. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +8 -8
  36. package/dist/src/tag/dto/find-one-tag.dto.d.ts +4 -4
  37. package/dist/src/tag/dto/massive-allocation.dto.d.ts +8 -8
  38. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +8 -8
  39. package/dist/src/tag/dto/tag.dto.d.ts +4 -4
  40. package/dist/src/tag/dto/update-tag.dto.d.ts +4 -4
  41. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +12 -12
  42. package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +12 -12
  43. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +8 -8
  44. package/dist/src/ticket/constants.d.ts +12 -14
  45. package/dist/src/ticket/constants.js +355 -248
  46. package/dist/src/ticket/dto/create-ticket.dto.d.ts +56 -21
  47. package/dist/src/ticket/dto/create-ticket.dto.js +2 -1
  48. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +30 -10
  49. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +46 -18
  50. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +58 -30
  51. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +58 -30
  52. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +58 -30
  53. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +46 -18
  54. package/dist/src/ticket/dto/find-ticket.dto.d.ts +30 -10
  55. package/dist/src/ticket/dto/send-email.dto.d.ts +18 -0
  56. package/dist/src/ticket/dto/send-email.dto.js +15 -0
  57. package/dist/src/ticket/dto/ticket.dto.d.ts +30 -10
  58. package/dist/src/ticket/dto/ticket.dto.js +5 -2
  59. package/dist/src/ticket/dto/update-ticket.dto.d.ts +48 -20
  60. package/dist/src/ticket/dto/update-ticket.dto.js +1 -1
  61. package/dist/types/prisma-schema/edge.js +7 -15
  62. package/dist/types/prisma-schema/index-browser.js +4 -12
  63. package/dist/types/prisma-schema/index.d.ts +362 -2212
  64. package/dist/types/prisma-schema/index.js +7 -15
  65. package/dist/types/prisma-schema/package.json +1 -1
  66. package/dist/types/prisma-schema/schema.prisma +7 -22
  67. package/dist/types/prisma-schema/wasm.js +4 -12
  68. package/dist/types/schema.d.ts +40 -308
  69. package/package.json +6 -6
  70. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +0 -704
  71. package/dist/src/ticket/dto/create-many-ticket.dto.js +0 -58
  72. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +0 -346
  73. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +0 -27
  74. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +0 -55
  75. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +0 -10
  76. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +0 -8
  77. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +0 -11
  78. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +0 -56
  79. package/dist/src/ticket-group/dto/ticket-group.dto.js +0 -27
  80. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +0 -79
  81. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +0 -18
  82. package/dist/src/ticket-group/exports.d.ts +0 -5
  83. package/dist/src/ticket-group/exports.js +0 -22
@@ -7,29 +7,39 @@ export declare const ticketSchema: z.ZodObject<{
7
7
  STAFF: "STAFF";
8
8
  SPECTATOR: "SPECTATOR";
9
9
  }>;
10
+ status: z.ZodNativeEnum<{
11
+ BOOKED: "BOOKED";
12
+ PAID: "PAID";
13
+ FREE: "FREE";
14
+ }>;
10
15
  fullName: z.ZodString;
11
16
  mail: z.ZodString;
12
- ticketGroupId: z.ZodString;
17
+ dni: z.ZodString;
18
+ seat: z.ZodNullable<z.ZodNumber>;
13
19
  created_at: z.ZodDate;
14
20
  updated_at: z.ZodDate;
15
21
  }, "strip", z.ZodTypeAny, {
16
22
  id: string;
17
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
23
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
18
24
  fullName: string;
19
25
  mail: string;
20
26
  eventId: string;
27
+ status: "BOOKED" | "PAID" | "FREE";
28
+ seat: number | null;
29
+ dni: string;
21
30
  created_at: Date;
22
31
  updated_at: Date;
23
- ticketGroupId: string;
24
32
  }, {
25
33
  id: string;
26
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
34
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
27
35
  fullName: string;
28
36
  mail: string;
29
37
  eventId: string;
38
+ status: "BOOKED" | "PAID" | "FREE";
39
+ seat: number | null;
40
+ dni: string;
30
41
  created_at: Date;
31
42
  updated_at: Date;
32
- ticketGroupId: string;
33
43
  }>;
34
44
  declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
35
45
  id: z.ZodString;
@@ -39,29 +49,39 @@ declare const TicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodOb
39
49
  STAFF: "STAFF";
40
50
  SPECTATOR: "SPECTATOR";
41
51
  }>;
52
+ status: z.ZodNativeEnum<{
53
+ BOOKED: "BOOKED";
54
+ PAID: "PAID";
55
+ FREE: "FREE";
56
+ }>;
42
57
  fullName: z.ZodString;
43
58
  mail: z.ZodString;
44
- ticketGroupId: z.ZodString;
59
+ dni: z.ZodString;
60
+ seat: z.ZodNullable<z.ZodNumber>;
45
61
  created_at: z.ZodString;
46
62
  updated_at: z.ZodString;
47
63
  }, z.UnknownKeysParam, z.ZodTypeAny, {
48
64
  id: string;
49
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
65
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
50
66
  fullName: string;
51
67
  mail: string;
52
68
  eventId: string;
69
+ status: "BOOKED" | "PAID" | "FREE";
70
+ seat: number | null;
71
+ dni: string;
53
72
  created_at: string;
54
73
  updated_at: string;
55
- ticketGroupId: string;
56
74
  }, {
57
75
  id: string;
58
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
76
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
59
77
  fullName: string;
60
78
  mail: string;
61
79
  eventId: string;
80
+ status: "BOOKED" | "PAID" | "FREE";
81
+ seat: number | null;
82
+ dni: string;
62
83
  created_at: string;
63
84
  updated_at: string;
64
- ticketGroupId: string;
65
85
  }>>;
66
86
  export declare class TicketDto extends TicketDto_base {
67
87
  }
@@ -7,7 +7,6 @@ exports.TicketDto = exports.ticketSchema = void 0;
7
7
  const event_dto_1 = require("../../event/dto/event.dto");
8
8
  const translate_1 = require("../../i18n/translate");
9
9
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
10
- const ticket_group_dto_1 = require("../../ticket-group/dto/ticket-group.dto");
11
10
  const zod_1 = __importDefault(require("zod"));
12
11
  const prisma_schema_1 = require("../../../types/prisma-schema/index.js");
13
12
  exports.ticketSchema = zod_1.default.object({
@@ -16,9 +15,13 @@ exports.ticketSchema = zod_1.default.object({
16
15
  type: zod_1.default.nativeEnum(prisma_schema_1.TicketType, {
17
16
  message: (0, translate_1.translate)('model.ticket.type.invalid'),
18
17
  }),
18
+ status: zod_1.default.nativeEnum(prisma_schema_1.TicketStatus, {
19
+ message: (0, translate_1.translate)('model.ticket.status.invalid'),
20
+ }),
19
21
  fullName: zod_1.default.string().min(1, (0, translate_1.translate)('model.ticket.fullName.required')),
20
22
  mail: zod_1.default.string().email((0, translate_1.translate)('model.ticket.mail.email')),
21
- ticketGroupId: ticket_group_dto_1.ticketGroupSchema.shape.id,
23
+ dni: zod_1.default.string().min(1, (0, translate_1.translate)('model.ticket.dni.required')),
24
+ seat: zod_1.default.number().min(1, (0, translate_1.translate)('model.ticket.seat.required')).nullable(),
22
25
  created_at: zod_1.default.date(),
23
26
  updated_at: zod_1.default.date(),
24
27
  });
@@ -6,17 +6,21 @@ export declare const updateTicketSchema: import("zod").ZodObject<{
6
6
  }>>;
7
7
  fullName: import("zod").ZodOptional<import("zod").ZodString>;
8
8
  mail: import("zod").ZodOptional<import("zod").ZodString>;
9
- ticketGroupId: import("zod").ZodOptional<import("zod").ZodString>;
9
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
10
+ BOOKED: "BOOKED";
11
+ PAID: "PAID";
12
+ FREE: "FREE";
13
+ }>>;
10
14
  }, "strip", import("zod").ZodTypeAny, {
11
- type?: "PARTICIPANT" | "STAFF" | "SPECTATOR" | undefined;
15
+ type?: "STAFF" | "SPECTATOR" | "PARTICIPANT" | undefined;
12
16
  fullName?: string | undefined;
13
17
  mail?: string | undefined;
14
- ticketGroupId?: string | undefined;
18
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
15
19
  }, {
16
- type?: "PARTICIPANT" | "STAFF" | "SPECTATOR" | undefined;
20
+ type?: "STAFF" | "SPECTATOR" | "PARTICIPANT" | undefined;
17
21
  fullName?: string | undefined;
18
22
  mail?: string | undefined;
19
- ticketGroupId?: string | undefined;
23
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
20
24
  }>;
21
25
  declare const UpdateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
22
26
  type: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
@@ -26,17 +30,21 @@ declare const UpdateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<i
26
30
  }>>;
27
31
  fullName: import("zod").ZodOptional<import("zod").ZodString>;
28
32
  mail: import("zod").ZodOptional<import("zod").ZodString>;
29
- ticketGroupId: import("zod").ZodOptional<import("zod").ZodString>;
33
+ status: import("zod").ZodOptional<import("zod").ZodNativeEnum<{
34
+ BOOKED: "BOOKED";
35
+ PAID: "PAID";
36
+ FREE: "FREE";
37
+ }>>;
30
38
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
31
- type?: "PARTICIPANT" | "STAFF" | "SPECTATOR" | undefined;
39
+ type?: "STAFF" | "SPECTATOR" | "PARTICIPANT" | undefined;
32
40
  fullName?: string | undefined;
33
41
  mail?: string | undefined;
34
- ticketGroupId?: string | undefined;
42
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
35
43
  }, {
36
- type?: "PARTICIPANT" | "STAFF" | "SPECTATOR" | undefined;
44
+ type?: "STAFF" | "SPECTATOR" | "PARTICIPANT" | undefined;
37
45
  fullName?: string | undefined;
38
46
  mail?: string | undefined;
39
- ticketGroupId?: string | undefined;
47
+ status?: "BOOKED" | "PAID" | "FREE" | undefined;
40
48
  }>>;
41
49
  export declare class UpdateTicketDto extends UpdateTicketDto_base {
42
50
  }
@@ -48,29 +56,39 @@ export declare const updateTicketResponseSchema: import("zod").ZodObject<{
48
56
  STAFF: "STAFF";
49
57
  SPECTATOR: "SPECTATOR";
50
58
  }>;
59
+ status: import("zod").ZodNativeEnum<{
60
+ BOOKED: "BOOKED";
61
+ PAID: "PAID";
62
+ FREE: "FREE";
63
+ }>;
51
64
  fullName: import("zod").ZodString;
52
65
  mail: import("zod").ZodString;
53
- ticketGroupId: import("zod").ZodString;
66
+ dni: import("zod").ZodString;
67
+ seat: import("zod").ZodNullable<import("zod").ZodNumber>;
54
68
  created_at: import("zod").ZodDate;
55
69
  updated_at: import("zod").ZodDate;
56
70
  }, "strip", import("zod").ZodTypeAny, {
57
71
  id: string;
58
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
72
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
59
73
  fullName: string;
60
74
  mail: string;
61
75
  eventId: string;
76
+ status: "BOOKED" | "PAID" | "FREE";
77
+ seat: number | null;
78
+ dni: string;
62
79
  created_at: Date;
63
80
  updated_at: Date;
64
- ticketGroupId: string;
65
81
  }, {
66
82
  id: string;
67
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
83
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
68
84
  fullName: string;
69
85
  mail: string;
70
86
  eventId: string;
87
+ status: "BOOKED" | "PAID" | "FREE";
88
+ seat: number | null;
89
+ dni: string;
71
90
  created_at: Date;
72
91
  updated_at: Date;
73
- ticketGroupId: string;
74
92
  }>;
75
93
  declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
76
94
  id: import("zod").ZodString;
@@ -80,29 +98,39 @@ declare const UpdateTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDto
80
98
  STAFF: "STAFF";
81
99
  SPECTATOR: "SPECTATOR";
82
100
  }>;
101
+ status: import("zod").ZodNativeEnum<{
102
+ BOOKED: "BOOKED";
103
+ PAID: "PAID";
104
+ FREE: "FREE";
105
+ }>;
83
106
  fullName: import("zod").ZodString;
84
107
  mail: import("zod").ZodString;
85
- ticketGroupId: import("zod").ZodString;
108
+ dni: import("zod").ZodString;
109
+ seat: import("zod").ZodNullable<import("zod").ZodNumber>;
86
110
  created_at: import("zod").ZodString;
87
111
  updated_at: import("zod").ZodString;
88
112
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
89
113
  id: string;
90
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
114
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
91
115
  fullName: string;
92
116
  mail: string;
93
117
  eventId: string;
118
+ status: "BOOKED" | "PAID" | "FREE";
119
+ seat: number | null;
120
+ dni: string;
94
121
  created_at: string;
95
122
  updated_at: string;
96
- ticketGroupId: string;
97
123
  }, {
98
124
  id: string;
99
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
125
+ type: "STAFF" | "SPECTATOR" | "PARTICIPANT";
100
126
  fullName: string;
101
127
  mail: string;
102
128
  eventId: string;
129
+ status: "BOOKED" | "PAID" | "FREE";
130
+ seat: number | null;
131
+ dni: string;
103
132
  created_at: string;
104
133
  updated_at: string;
105
- ticketGroupId: string;
106
134
  }>>;
107
135
  export declare class UpdateTicketResponseDto extends UpdateTicketResponseDto_base {
108
136
  }
@@ -6,9 +6,9 @@ const ticket_dto_1 = require("./ticket.dto");
6
6
  exports.updateTicketSchema = ticket_dto_1.ticketSchema
7
7
  .pick({
8
8
  type: true,
9
+ status: true,
9
10
  fullName: true,
10
11
  mail: true,
11
- ticketGroupId: true,
12
12
  })
13
13
  .partial();
14
14
  class UpdateTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateTicketSchema) {