expo-backend-types 0.34.0-EXPO-319-ver-eventos-disponibles.9 → 0.34.0-EXPO-319-ver-eventos-disponibles.10

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.
@@ -1,4 +1,4 @@
1
- export declare const createTicketSchema: import("zod").ZodObject<Pick<{
1
+ export declare const createTicketSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Pick<{
2
2
  id: import("zod").ZodString;
3
3
  eventId: import("zod").ZodString;
4
4
  type: import("zod").ZodNativeEnum<{
@@ -15,18 +15,22 @@ export declare const createTicketSchema: import("zod").ZodObject<Pick<{
15
15
  mail: import("zod").ZodString;
16
16
  created_at: import("zod").ZodDate;
17
17
  updated_at: import("zod").ZodDate;
18
- }, "type" | "fullName" | "mail" | "eventId" | "status">, "strip", import("zod").ZodTypeAny, {
18
+ }, "type" | "fullName" | "mail" | "eventId" | "status">, {
19
+ profileId: import("zod").ZodOptional<import("zod").ZodString>;
20
+ }>, "strip", import("zod").ZodTypeAny, {
19
21
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
20
22
  fullName: string;
21
23
  mail: string;
22
24
  eventId: string;
23
25
  status: "BOOKED" | "PAID" | "FREE";
26
+ profileId?: string | undefined;
24
27
  }, {
25
28
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
26
29
  fullName: string;
27
30
  mail: string;
28
31
  eventId: string;
29
32
  status: "BOOKED" | "PAID" | "FREE";
33
+ profileId?: string | undefined;
30
34
  }>;
31
35
  declare const CreateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<import("zod").ZodObject<{
32
36
  type: import("zod").ZodNativeEnum<{
@@ -42,18 +46,21 @@ declare const CreateTicketDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<i
42
46
  PAID: "PAID";
43
47
  FREE: "FREE";
44
48
  }>;
49
+ profileId: import("zod").ZodOptional<import("zod").ZodString>;
45
50
  }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
46
51
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
47
52
  fullName: string;
48
53
  mail: string;
49
54
  eventId: string;
50
55
  status: "BOOKED" | "PAID" | "FREE";
56
+ profileId?: string | undefined;
51
57
  }, {
52
58
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
53
59
  fullName: string;
54
60
  mail: string;
55
61
  eventId: string;
56
62
  status: "BOOKED" | "PAID" | "FREE";
63
+ profileId?: string | undefined;
57
64
  }>>;
58
65
  export declare class CreateTicketDto extends CreateTicketDto_base {
59
66
  }
@@ -1,14 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateTicketResponseDto = exports.createTicketResponseSchema = exports.CreateTicketDto = exports.createTicketSchema = void 0;
4
+ const profile_schema_1 = require("../../schema/profile.schema");
4
5
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
5
6
  const ticket_dto_1 = require("./ticket.dto");
6
- exports.createTicketSchema = ticket_dto_1.ticketSchema.pick({
7
+ exports.createTicketSchema = ticket_dto_1.ticketSchema
8
+ .pick({
7
9
  eventId: true,
8
10
  type: true,
9
11
  status: true,
10
12
  fullName: true,
11
13
  mail: true,
14
+ })
15
+ .extend({
16
+ profileId: profile_schema_1.profileSchema.shape.id.optional(),
12
17
  });
13
18
  class CreateTicketDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createTicketSchema) {
14
19
  }
@@ -0,0 +1,331 @@
1
+ import z from 'zod';
2
+ export declare const findByProfileIdTicketResponseSchema: 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
+ STAFF: "STAFF";
9
+ SPECTATOR: "SPECTATOR";
10
+ }>;
11
+ status: z.ZodNativeEnum<{
12
+ BOOKED: "BOOKED";
13
+ PAID: "PAID";
14
+ FREE: "FREE";
15
+ }>;
16
+ fullName: z.ZodString;
17
+ mail: z.ZodString;
18
+ created_at: z.ZodDate;
19
+ updated_at: z.ZodDate;
20
+ }, {
21
+ event: z.ZodObject<{
22
+ id: z.ZodString;
23
+ name: z.ZodString;
24
+ date: z.ZodDate;
25
+ startingDate: z.ZodDate;
26
+ endingDate: z.ZodDate;
27
+ location: z.ZodString;
28
+ folderId: z.ZodNullable<z.ZodString>;
29
+ tagAssistedId: z.ZodString;
30
+ tagConfirmedId: z.ZodString;
31
+ active: z.ZodBoolean;
32
+ supraEventId: z.ZodNullable<z.ZodString>;
33
+ created_at: z.ZodDate;
34
+ updated_at: z.ZodDate;
35
+ }, "strip", z.ZodTypeAny, {
36
+ location: string;
37
+ id: string;
38
+ name: string;
39
+ date: Date;
40
+ startingDate: Date;
41
+ endingDate: Date;
42
+ created_at: Date;
43
+ updated_at: Date;
44
+ active: boolean;
45
+ folderId: string | null;
46
+ tagAssistedId: string;
47
+ tagConfirmedId: string;
48
+ supraEventId: string | null;
49
+ }, {
50
+ location: string;
51
+ id: string;
52
+ name: string;
53
+ date: Date;
54
+ startingDate: Date;
55
+ endingDate: Date;
56
+ created_at: Date;
57
+ updated_at: Date;
58
+ active: boolean;
59
+ folderId: string | null;
60
+ tagAssistedId: string;
61
+ tagConfirmedId: string;
62
+ supraEventId: string | null;
63
+ }>;
64
+ }>, "strip", z.ZodTypeAny, {
65
+ event: {
66
+ location: string;
67
+ id: string;
68
+ name: string;
69
+ date: Date;
70
+ startingDate: Date;
71
+ endingDate: Date;
72
+ created_at: Date;
73
+ updated_at: Date;
74
+ active: boolean;
75
+ folderId: string | null;
76
+ tagAssistedId: string;
77
+ tagConfirmedId: string;
78
+ supraEventId: string | null;
79
+ };
80
+ id: string;
81
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
82
+ fullName: string;
83
+ mail: string;
84
+ eventId: string;
85
+ status: "BOOKED" | "PAID" | "FREE";
86
+ created_at: Date;
87
+ updated_at: Date;
88
+ }, {
89
+ event: {
90
+ location: string;
91
+ id: string;
92
+ name: string;
93
+ date: Date;
94
+ startingDate: Date;
95
+ endingDate: Date;
96
+ created_at: Date;
97
+ updated_at: Date;
98
+ active: boolean;
99
+ folderId: string | null;
100
+ tagAssistedId: string;
101
+ tagConfirmedId: string;
102
+ supraEventId: string | null;
103
+ };
104
+ id: string;
105
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
106
+ fullName: string;
107
+ mail: string;
108
+ eventId: string;
109
+ status: "BOOKED" | "PAID" | "FREE";
110
+ created_at: Date;
111
+ updated_at: Date;
112
+ }>, "many">;
113
+ }, "strip", z.ZodTypeAny, {
114
+ tickets: {
115
+ event: {
116
+ location: string;
117
+ id: string;
118
+ name: string;
119
+ date: Date;
120
+ startingDate: Date;
121
+ endingDate: Date;
122
+ created_at: Date;
123
+ updated_at: Date;
124
+ active: boolean;
125
+ folderId: string | null;
126
+ tagAssistedId: string;
127
+ tagConfirmedId: string;
128
+ supraEventId: string | null;
129
+ };
130
+ id: string;
131
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
132
+ fullName: string;
133
+ mail: string;
134
+ eventId: string;
135
+ status: "BOOKED" | "PAID" | "FREE";
136
+ created_at: Date;
137
+ updated_at: Date;
138
+ }[];
139
+ }, {
140
+ tickets: {
141
+ event: {
142
+ location: string;
143
+ id: string;
144
+ name: string;
145
+ date: Date;
146
+ startingDate: Date;
147
+ endingDate: Date;
148
+ created_at: Date;
149
+ updated_at: Date;
150
+ active: boolean;
151
+ folderId: string | null;
152
+ tagAssistedId: string;
153
+ tagConfirmedId: string;
154
+ supraEventId: string | null;
155
+ };
156
+ id: string;
157
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
158
+ fullName: string;
159
+ mail: string;
160
+ eventId: string;
161
+ status: "BOOKED" | "PAID" | "FREE";
162
+ created_at: Date;
163
+ updated_at: Date;
164
+ }[];
165
+ }>;
166
+ declare const FindByProfileIdTicketResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
167
+ tickets: z.ZodArray<z.ZodObject<{
168
+ id: z.ZodString;
169
+ eventId: z.ZodString;
170
+ type: z.ZodNativeEnum<{
171
+ PARTICIPANT: "PARTICIPANT";
172
+ STAFF: "STAFF";
173
+ SPECTATOR: "SPECTATOR";
174
+ }>;
175
+ status: z.ZodNativeEnum<{
176
+ BOOKED: "BOOKED";
177
+ PAID: "PAID";
178
+ FREE: "FREE";
179
+ }>;
180
+ fullName: z.ZodString;
181
+ mail: z.ZodString;
182
+ created_at: z.ZodString;
183
+ updated_at: z.ZodString;
184
+ event: z.ZodObject<{
185
+ id: z.ZodString;
186
+ name: z.ZodString;
187
+ date: z.ZodString;
188
+ startingDate: z.ZodString;
189
+ endingDate: z.ZodString;
190
+ location: z.ZodString;
191
+ folderId: z.ZodNullable<z.ZodString>;
192
+ tagAssistedId: z.ZodString;
193
+ tagConfirmedId: z.ZodString;
194
+ active: z.ZodBoolean;
195
+ supraEventId: z.ZodNullable<z.ZodString>;
196
+ created_at: z.ZodString;
197
+ updated_at: z.ZodString;
198
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
199
+ location: string;
200
+ id: string;
201
+ name: string;
202
+ date: string;
203
+ startingDate: string;
204
+ endingDate: string;
205
+ created_at: string;
206
+ updated_at: string;
207
+ active: boolean;
208
+ folderId: string | null;
209
+ tagAssistedId: string;
210
+ tagConfirmedId: string;
211
+ supraEventId: string | null;
212
+ }, {
213
+ location: string;
214
+ id: string;
215
+ name: string;
216
+ date: string;
217
+ startingDate: string;
218
+ endingDate: string;
219
+ created_at: string;
220
+ updated_at: string;
221
+ active: boolean;
222
+ folderId: string | null;
223
+ tagAssistedId: string;
224
+ tagConfirmedId: string;
225
+ supraEventId: string | null;
226
+ }>;
227
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
228
+ event: {
229
+ location: string;
230
+ id: string;
231
+ name: string;
232
+ date: string;
233
+ startingDate: string;
234
+ endingDate: string;
235
+ created_at: string;
236
+ updated_at: string;
237
+ active: boolean;
238
+ folderId: string | null;
239
+ tagAssistedId: string;
240
+ tagConfirmedId: string;
241
+ supraEventId: string | null;
242
+ };
243
+ id: string;
244
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
245
+ fullName: string;
246
+ mail: string;
247
+ eventId: string;
248
+ status: "BOOKED" | "PAID" | "FREE";
249
+ created_at: string;
250
+ updated_at: string;
251
+ }, {
252
+ event: {
253
+ location: string;
254
+ id: string;
255
+ name: string;
256
+ date: string;
257
+ startingDate: string;
258
+ endingDate: string;
259
+ created_at: string;
260
+ updated_at: string;
261
+ active: boolean;
262
+ folderId: string | null;
263
+ tagAssistedId: string;
264
+ tagConfirmedId: string;
265
+ supraEventId: string | null;
266
+ };
267
+ id: string;
268
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
269
+ fullName: string;
270
+ mail: string;
271
+ eventId: string;
272
+ status: "BOOKED" | "PAID" | "FREE";
273
+ created_at: string;
274
+ updated_at: string;
275
+ }>, "many">;
276
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
277
+ tickets: {
278
+ event: {
279
+ location: string;
280
+ id: string;
281
+ name: string;
282
+ date: string;
283
+ startingDate: string;
284
+ endingDate: string;
285
+ created_at: string;
286
+ updated_at: string;
287
+ active: boolean;
288
+ folderId: string | null;
289
+ tagAssistedId: string;
290
+ tagConfirmedId: string;
291
+ supraEventId: string | null;
292
+ };
293
+ id: string;
294
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
295
+ fullName: string;
296
+ mail: string;
297
+ eventId: string;
298
+ status: "BOOKED" | "PAID" | "FREE";
299
+ created_at: string;
300
+ updated_at: string;
301
+ }[];
302
+ }, {
303
+ tickets: {
304
+ event: {
305
+ location: string;
306
+ id: string;
307
+ name: string;
308
+ date: string;
309
+ startingDate: string;
310
+ endingDate: string;
311
+ created_at: string;
312
+ updated_at: string;
313
+ active: boolean;
314
+ folderId: string | null;
315
+ tagAssistedId: string;
316
+ tagConfirmedId: string;
317
+ supraEventId: string | null;
318
+ };
319
+ id: string;
320
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
321
+ fullName: string;
322
+ mail: string;
323
+ eventId: string;
324
+ status: "BOOKED" | "PAID" | "FREE";
325
+ created_at: string;
326
+ updated_at: string;
327
+ }[];
328
+ }>>;
329
+ export declare class FindByProfileIdTicketResponseDto extends FindByProfileIdTicketResponseDto_base {
330
+ }
331
+ export {};
@@ -0,0 +1,19 @@
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.FindByProfileIdTicketResponseDto = exports.findByProfileIdTicketResponseSchema = void 0;
7
+ const event_dto_1 = require("../../event/dto/event.dto");
8
+ const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
9
+ const ticket_dto_1 = require("./ticket.dto");
10
+ const zod_1 = __importDefault(require("zod"));
11
+ exports.findByProfileIdTicketResponseSchema = zod_1.default.object({
12
+ tickets: zod_1.default.array(ticket_dto_1.ticketSchema.extend({
13
+ event: event_dto_1.eventSchema,
14
+ })),
15
+ });
16
+ class FindByProfileIdTicketResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findByProfileIdTicketResponseSchema) {
17
+ }
18
+ exports.FindByProfileIdTicketResponseDto = FindByProfileIdTicketResponseDto;
19
+ //# sourceMappingURL=find-by-profile-id-ticket.dto.js.map
@@ -4,6 +4,7 @@ export * from './dto/find-all-tickets.dto';
4
4
  export * from './dto/find-by-event-ticket.dto';
5
5
  export * from './dto/find-by-id-ticket.dto';
6
6
  export * from './dto/find-by-mail-ticket.dto';
7
+ export * from './dto/find-by-profile-id-ticket.dto';
7
8
  export * from './dto/find-ticket.dto';
8
9
  export * from './dto/generate-pdf.dto';
9
10
  export * from './dto/ticket.dto';
@@ -20,6 +20,7 @@ __exportStar(require("./dto/find-all-tickets.dto"), exports);
20
20
  __exportStar(require("./dto/find-by-event-ticket.dto"), exports);
21
21
  __exportStar(require("./dto/find-by-id-ticket.dto"), exports);
22
22
  __exportStar(require("./dto/find-by-mail-ticket.dto"), exports);
23
+ __exportStar(require("./dto/find-by-profile-id-ticket.dto"), exports);
23
24
  __exportStar(require("./dto/find-ticket.dto"), exports);
24
25
  __exportStar(require("./dto/generate-pdf.dto"), exports);
25
26
  __exportStar(require("./dto/ticket.dto"), exports);
@@ -1039,6 +1039,22 @@ export interface paths {
1039
1039
  patch?: never;
1040
1040
  trace?: never;
1041
1041
  };
1042
+ "/ticket/find-by-profile-id/{profileId}": {
1043
+ parameters: {
1044
+ query?: never;
1045
+ header?: never;
1046
+ path?: never;
1047
+ cookie?: never;
1048
+ };
1049
+ get: operations["TicketController_findByProfileId"];
1050
+ put?: never;
1051
+ post?: never;
1052
+ delete?: never;
1053
+ options?: never;
1054
+ head?: never;
1055
+ patch?: never;
1056
+ trace?: never;
1057
+ };
1042
1058
  "/ticket/update/{id}": {
1043
1059
  parameters: {
1044
1060
  query?: never;
@@ -2636,6 +2652,7 @@ export interface components {
2636
2652
  status: "BOOKED" | "PAID" | "FREE";
2637
2653
  fullName: string;
2638
2654
  mail: string;
2655
+ profileId?: string;
2639
2656
  };
2640
2657
  CreateTicketResponseDto: {
2641
2658
  id: string;
@@ -2790,6 +2807,33 @@ export interface components {
2790
2807
  } | null;
2791
2808
  }[];
2792
2809
  };
2810
+ FindByProfileIdTicketResponseDto: {
2811
+ tickets: {
2812
+ id: string;
2813
+ eventId: string;
2814
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2815
+ status: "BOOKED" | "PAID" | "FREE";
2816
+ fullName: string;
2817
+ mail: string;
2818
+ created_at: string;
2819
+ updated_at: string;
2820
+ event: {
2821
+ id: string;
2822
+ name: string;
2823
+ date: string;
2824
+ startingDate: string;
2825
+ endingDate: string;
2826
+ location: string;
2827
+ folderId: string | null;
2828
+ tagAssistedId: string;
2829
+ tagConfirmedId: string;
2830
+ active: boolean;
2831
+ supraEventId: string | null;
2832
+ created_at: string;
2833
+ updated_at: string;
2834
+ };
2835
+ }[];
2836
+ };
2793
2837
  UpdateTicketDto: {
2794
2838
  type?: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2795
2839
  status?: "BOOKED" | "PAID" | "FREE";
@@ -5090,6 +5134,35 @@ export interface operations {
5090
5134
  };
5091
5135
  };
5092
5136
  };
5137
+ TicketController_findByProfileId: {
5138
+ parameters: {
5139
+ query?: never;
5140
+ header?: never;
5141
+ path: {
5142
+ profileId: string;
5143
+ };
5144
+ cookie?: never;
5145
+ };
5146
+ requestBody?: never;
5147
+ responses: {
5148
+ 200: {
5149
+ headers: {
5150
+ [name: string]: unknown;
5151
+ };
5152
+ content: {
5153
+ "application/json": components["schemas"]["FindByProfileIdTicketResponseDto"];
5154
+ };
5155
+ };
5156
+ 404: {
5157
+ headers: {
5158
+ [name: string]: unknown;
5159
+ };
5160
+ content: {
5161
+ "application/json": components["schemas"]["ErrorDto"];
5162
+ };
5163
+ };
5164
+ };
5165
+ };
5093
5166
  TicketController_update: {
5094
5167
  parameters: {
5095
5168
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.34.0-EXPO-319-ver-eventos-disponibles.9",
3
+ "version": "0.34.0-EXPO-319-ver-eventos-disponibles.10",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,