expo-backend-types 0.44.0 → 0.45.0-EXPO-341-ExpoBackend-Borrado-de-TicketGroups-no-comprados.2

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.
@@ -10,30 +10,21 @@ export declare const createTicketGroupSchema: z.ZodObject<Pick<{
10
10
  eventId: z.ZodString;
11
11
  created_at: z.ZodDate;
12
12
  updated_at: z.ZodDate;
13
- }, "eventId" | "status" | "amountTickets">, "strip", z.ZodTypeAny, {
13
+ }, "eventId" | "amountTickets">, "strip", z.ZodTypeAny, {
14
14
  eventId: string;
15
- status: "BOOKED" | "PAID" | "FREE";
16
15
  amountTickets: number;
17
16
  }, {
18
17
  eventId: string;
19
- status: "BOOKED" | "PAID" | "FREE";
20
18
  amountTickets: number;
21
19
  }>;
22
20
  declare const CreateTicketGroupDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
23
21
  eventId: z.ZodString;
24
- status: z.ZodNativeEnum<{
25
- BOOKED: "BOOKED";
26
- PAID: "PAID";
27
- FREE: "FREE";
28
- }>;
29
22
  amountTickets: z.ZodNumber;
30
23
  }, z.UnknownKeysParam, z.ZodTypeAny, {
31
24
  eventId: string;
32
- status: "BOOKED" | "PAID" | "FREE";
33
25
  amountTickets: number;
34
26
  }, {
35
27
  eventId: string;
36
- status: "BOOKED" | "PAID" | "FREE";
37
28
  amountTickets: number;
38
29
  }>>;
39
30
  export declare class CreateTicketGroupDto extends CreateTicketGroupDto_base {
@@ -12,7 +12,6 @@ const zod_1 = __importDefault(require("zod"));
12
12
  exports.createTicketGroupSchema = ticket_group_dto_1.ticketGroupSchema.pick({
13
13
  eventId: true,
14
14
  amountTickets: true,
15
- status: true,
16
15
  });
17
16
  class CreateTicketGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.createTicketGroupSchema) {
18
17
  }
@@ -0,0 +1,55 @@
1
+ export declare const findGroupResponseSchema: 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 FindGroupTicketGroupDto_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 FindGroupTicketGroupDto extends FindGroupTicketGroupDto_base {
54
+ }
55
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindGroupTicketGroupDto = exports.findGroupResponseSchema = 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.findGroupResponseSchema = ticket_group_dto_1.ticketGroupSchema;
7
+ class FindGroupTicketGroupDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.findGroupResponseSchema) {
8
+ }
9
+ exports.FindGroupTicketGroupDto = FindGroupTicketGroupDto;
10
+ //# sourceMappingURL=find-group-ticket-group.dto.js.map
@@ -1,5 +1,6 @@
1
1
  export * from './dto/create-ticket-group.dto';
2
2
  export * from './dto/delete-ticket-group.dto';
3
+ export * from './dto/find-group-ticket-group.dto';
3
4
  export * from './dto/find-tickets-by-event.dto';
4
5
  export * from './dto/ticket-group.dto';
5
6
  export * from './dto/update-ticket-group.dto';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dto/create-ticket-group.dto"), exports);
18
18
  __exportStar(require("./dto/delete-ticket-group.dto"), exports);
19
+ __exportStar(require("./dto/find-group-ticket-group.dto"), exports);
19
20
  __exportStar(require("./dto/find-tickets-by-event.dto"), exports);
20
21
  __exportStar(require("./dto/ticket-group.dto"), exports);
21
22
  __exportStar(require("./dto/update-ticket-group.dto"), exports);
@@ -991,6 +991,22 @@ export interface paths {
991
991
  patch?: never;
992
992
  trace?: never;
993
993
  };
994
+ "/ticket/get-pdfs-by-ticket-group/{ticketGroupId}": {
995
+ parameters: {
996
+ query?: never;
997
+ header?: never;
998
+ path?: never;
999
+ cookie?: never;
1000
+ };
1001
+ get: operations["TicketController_getPdfsByTicketGroup"];
1002
+ put?: never;
1003
+ post?: never;
1004
+ delete?: never;
1005
+ options?: never;
1006
+ head?: never;
1007
+ patch?: never;
1008
+ trace?: never;
1009
+ };
994
1010
  "/ticket/all": {
995
1011
  parameters: {
996
1012
  query?: never;
@@ -1199,6 +1215,22 @@ export interface paths {
1199
1215
  patch?: never;
1200
1216
  trace?: never;
1201
1217
  };
1218
+ "/ticket-group/find-group/{id}": {
1219
+ parameters: {
1220
+ query?: never;
1221
+ header?: never;
1222
+ path?: never;
1223
+ cookie?: never;
1224
+ };
1225
+ get: operations["TicketGroupController_findGroup"];
1226
+ put?: never;
1227
+ post?: never;
1228
+ delete?: never;
1229
+ options?: never;
1230
+ head?: never;
1231
+ patch?: never;
1232
+ trace?: never;
1233
+ };
1202
1234
  "/ticket-group/update/{id}": {
1203
1235
  parameters: {
1204
1236
  query?: never;
@@ -1359,6 +1391,38 @@ export interface paths {
1359
1391
  patch?: never;
1360
1392
  trace?: never;
1361
1393
  };
1394
+ "/mercadopago/create-preference": {
1395
+ parameters: {
1396
+ query?: never;
1397
+ header?: never;
1398
+ path?: never;
1399
+ cookie?: never;
1400
+ };
1401
+ get?: never;
1402
+ put?: never;
1403
+ post: operations["MercadoPagoController_createPreference"];
1404
+ delete?: never;
1405
+ options?: never;
1406
+ head?: never;
1407
+ patch?: never;
1408
+ trace?: never;
1409
+ };
1410
+ "/mercadopago/webhook": {
1411
+ parameters: {
1412
+ query?: never;
1413
+ header?: never;
1414
+ path?: never;
1415
+ cookie?: never;
1416
+ };
1417
+ get?: never;
1418
+ put?: never;
1419
+ post: operations["MercadoPagoController_webhook"];
1420
+ delete?: never;
1421
+ options?: never;
1422
+ head?: never;
1423
+ patch?: never;
1424
+ trace?: never;
1425
+ };
1362
1426
  }
1363
1427
  export type webhooks = Record<string, never>;
1364
1428
  export interface components {
@@ -2869,36 +2933,36 @@ export interface components {
2869
2933
  profileId?: string;
2870
2934
  }[];
2871
2935
  };
2872
- CreateManyTicketWithPdfsResponseDto: {
2873
- tickets: {
2936
+ CreateManyTicketResponseDto: {
2937
+ id: string;
2938
+ eventId: string;
2939
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2940
+ fullName: string;
2941
+ mail: string;
2942
+ dni: string;
2943
+ seat: number | null;
2944
+ scanned: boolean;
2945
+ scannedAt: string | null;
2946
+ ticketGroupId: string | null;
2947
+ created_at: string;
2948
+ updated_at: string;
2949
+ event: {
2874
2950
  id: string;
2875
- eventId: string;
2876
- type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2877
- fullName: string;
2878
- mail: string;
2879
- dni: string;
2880
- seat: number | null;
2881
- scanned: boolean;
2882
- scannedAt: string | null;
2883
- ticketGroupId: string | null;
2951
+ name: string;
2952
+ date: string;
2953
+ startingDate: string;
2954
+ endingDate: string;
2955
+ location: string;
2956
+ folderId: string | null;
2957
+ tagAssistedId: string;
2958
+ tagConfirmedId: string;
2959
+ active: boolean;
2960
+ supraEventId: string | null;
2884
2961
  created_at: string;
2885
2962
  updated_at: string;
2886
- event: {
2887
- id: string;
2888
- name: string;
2889
- date: string;
2890
- startingDate: string;
2891
- endingDate: string;
2892
- location: string;
2893
- folderId: string | null;
2894
- tagAssistedId: string;
2895
- tagConfirmedId: string;
2896
- active: boolean;
2897
- supraEventId: string | null;
2898
- created_at: string;
2899
- updated_at: string;
2900
- };
2901
- }[];
2963
+ };
2964
+ }[];
2965
+ GetPdfsByTicketGroupResponseDto: {
2902
2966
  pdfs: {
2903
2967
  ticketId: string;
2904
2968
  pdfBase64: string;
@@ -3181,7 +3245,6 @@ export interface components {
3181
3245
  CreateTicketGroupDto: {
3182
3246
  eventId: string;
3183
3247
  amountTickets: number;
3184
- status: "BOOKED" | "PAID" | "FREE";
3185
3248
  };
3186
3249
  CreateTicketGroupResponseDto: {
3187
3250
  id: string;
@@ -3223,6 +3286,14 @@ export interface components {
3223
3286
  FindTicketsByEventDto: {
3224
3287
  tickets: number;
3225
3288
  };
3289
+ FindGroupTicketGroupDto: {
3290
+ id: string;
3291
+ amountTickets: number;
3292
+ status: "BOOKED" | "PAID" | "FREE";
3293
+ eventId: string;
3294
+ created_at: string;
3295
+ updated_at: string;
3296
+ };
3226
3297
  UpdateTicketGroupDto: {
3227
3298
  status?: "BOOKED" | "PAID" | "FREE";
3228
3299
  };
@@ -3455,6 +3526,34 @@ export interface components {
3455
3526
  expiresIn: number;
3456
3527
  };
3457
3528
  };
3529
+ CreatePreferenceDto: {
3530
+ ticket_group_id: string;
3531
+ ticket_type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
3532
+ };
3533
+ CreatePreferenceResponseDto: {
3534
+ response: {
3535
+ id: string;
3536
+ init_point: string;
3537
+ } | {
3538
+ message: string;
3539
+ error: string;
3540
+ status: string;
3541
+ cause: string;
3542
+ };
3543
+ };
3544
+ WebhookDto: {
3545
+ data: {
3546
+ id: string;
3547
+ };
3548
+ action: string;
3549
+ api_version: string;
3550
+ date_created: string;
3551
+ id: number;
3552
+ live_mode: boolean;
3553
+ type: string;
3554
+ user_id: number;
3555
+ };
3556
+ Response: Record<string, never>;
3458
3557
  };
3459
3558
  responses: never;
3460
3559
  parameters: never;
@@ -5438,7 +5537,44 @@ export interface operations {
5438
5537
  [name: string]: unknown;
5439
5538
  };
5440
5539
  content: {
5441
- "application/json": components["schemas"]["CreateManyTicketWithPdfsResponseDto"];
5540
+ "application/json": components["schemas"]["CreateManyTicketResponseDto"];
5541
+ };
5542
+ };
5543
+ 404: {
5544
+ headers: {
5545
+ [name: string]: unknown;
5546
+ };
5547
+ content: {
5548
+ "application/json": components["schemas"]["ErrorDto"];
5549
+ };
5550
+ };
5551
+ 409: {
5552
+ headers: {
5553
+ [name: string]: unknown;
5554
+ };
5555
+ content: {
5556
+ "application/json": components["schemas"]["ErrorDto"];
5557
+ };
5558
+ };
5559
+ };
5560
+ };
5561
+ TicketController_getPdfsByTicketGroup: {
5562
+ parameters: {
5563
+ query?: never;
5564
+ header?: never;
5565
+ path: {
5566
+ ticketGroupId: string;
5567
+ };
5568
+ cookie?: never;
5569
+ };
5570
+ requestBody?: never;
5571
+ responses: {
5572
+ 200: {
5573
+ headers: {
5574
+ [name: string]: unknown;
5575
+ };
5576
+ content: {
5577
+ "application/json": components["schemas"]["GetPdfsByTicketGroupResponseDto"];
5442
5578
  };
5443
5579
  };
5444
5580
  404: {
@@ -5866,6 +6002,43 @@ export interface operations {
5866
6002
  };
5867
6003
  };
5868
6004
  };
6005
+ TicketGroupController_findGroup: {
6006
+ parameters: {
6007
+ query?: never;
6008
+ header?: never;
6009
+ path: {
6010
+ id: string;
6011
+ };
6012
+ cookie?: never;
6013
+ };
6014
+ requestBody?: never;
6015
+ responses: {
6016
+ 200: {
6017
+ headers: {
6018
+ [name: string]: unknown;
6019
+ };
6020
+ content: {
6021
+ "application/json": components["schemas"]["FindGroupTicketGroupDto"];
6022
+ };
6023
+ };
6024
+ 404: {
6025
+ headers: {
6026
+ [name: string]: unknown;
6027
+ };
6028
+ content: {
6029
+ "application/json": components["schemas"]["ErrorDto"];
6030
+ };
6031
+ };
6032
+ 409: {
6033
+ headers: {
6034
+ [name: string]: unknown;
6035
+ };
6036
+ content: {
6037
+ "application/json": components["schemas"]["ErrorDto"];
6038
+ };
6039
+ };
6040
+ };
6041
+ };
5869
6042
  TicketGroupController_update: {
5870
6043
  parameters: {
5871
6044
  query?: never;
@@ -6202,4 +6375,77 @@ export interface operations {
6202
6375
  };
6203
6376
  };
6204
6377
  };
6378
+ MercadoPagoController_createPreference: {
6379
+ parameters: {
6380
+ query?: never;
6381
+ header?: never;
6382
+ path?: never;
6383
+ cookie?: never;
6384
+ };
6385
+ requestBody: {
6386
+ content: {
6387
+ "application/json": components["schemas"]["CreatePreferenceDto"];
6388
+ };
6389
+ };
6390
+ responses: {
6391
+ 200: {
6392
+ headers: {
6393
+ [name: string]: unknown;
6394
+ };
6395
+ content: {
6396
+ "application/json": components["schemas"]["CreatePreferenceResponseDto"];
6397
+ };
6398
+ };
6399
+ 404: {
6400
+ headers: {
6401
+ [name: string]: unknown;
6402
+ };
6403
+ content: {
6404
+ "application/json": components["schemas"]["ErrorDto"];
6405
+ };
6406
+ };
6407
+ 409: {
6408
+ headers: {
6409
+ [name: string]: unknown;
6410
+ };
6411
+ content: {
6412
+ "application/json": components["schemas"]["ErrorDto"];
6413
+ };
6414
+ };
6415
+ };
6416
+ };
6417
+ MercadoPagoController_webhook: {
6418
+ parameters: {
6419
+ query?: never;
6420
+ header: {
6421
+ "x-signature": string;
6422
+ "x-request-id": string;
6423
+ };
6424
+ path?: never;
6425
+ cookie?: never;
6426
+ };
6427
+ requestBody: {
6428
+ content: {
6429
+ "application/json": components["schemas"]["WebhookDto"];
6430
+ };
6431
+ };
6432
+ responses: {
6433
+ 200: {
6434
+ headers: {
6435
+ [name: string]: unknown;
6436
+ };
6437
+ content: {
6438
+ "application/json": components["schemas"]["Response"];
6439
+ };
6440
+ };
6441
+ 409: {
6442
+ headers: {
6443
+ [name: string]: unknown;
6444
+ };
6445
+ content: {
6446
+ "application/json": components["schemas"]["ErrorDto"];
6447
+ };
6448
+ };
6449
+ };
6450
+ };
6205
6451
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.44.0",
3
+ "version": "0.45.0-EXPO-341-ExpoBackend-Borrado-de-TicketGroups-no-comprados.2",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -37,6 +37,7 @@
37
37
  "@anatine/zod-openapi": "^2.2.6",
38
38
  "i18n-js": "^4.4.3",
39
39
  "libphonenumber-js": "^1.12.6",
40
+ "mercadopago": "^2.4.0",
40
41
  "patch-package": "^8.0.0",
41
42
  "zod": "^3.23.8"
42
43
  },