expo-backend-types 0.36.0 → 0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.1

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 (43) hide show
  1. package/dist/src/event/dto/get-by-id-event.dto.d.ts +10 -18
  2. package/dist/src/exports.d.ts +1 -0
  3. package/dist/src/exports.js +1 -0
  4. package/dist/src/i18n/es.d.ts +34 -0
  5. package/dist/src/i18n/es.js +34 -0
  6. package/dist/src/i18n/es.js.map +1 -1
  7. package/dist/src/ticket/constants.js +0 -19
  8. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +704 -0
  9. package/dist/src/ticket/dto/create-many-ticket.dto.js +58 -0
  10. package/dist/src/ticket/dto/create-ticket.dto.d.ts +13 -29
  11. package/dist/src/ticket/dto/create-ticket.dto.js +1 -1
  12. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +6 -14
  13. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +10 -18
  14. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +10 -18
  15. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +10 -18
  16. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +10 -18
  17. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +10 -18
  18. package/dist/src/ticket/dto/find-ticket.dto.d.ts +6 -14
  19. package/dist/src/ticket/dto/ticket.dto.d.ts +6 -14
  20. package/dist/src/ticket/dto/ticket.dto.js +2 -3
  21. package/dist/src/ticket/dto/update-ticket.dto.d.ts +12 -28
  22. package/dist/src/ticket/dto/update-ticket.dto.js +1 -1
  23. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +346 -0
  24. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +27 -0
  25. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +55 -0
  26. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +10 -0
  27. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +8 -0
  28. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +11 -0
  29. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +56 -0
  30. package/dist/src/ticket-group/dto/ticket-group.dto.js +27 -0
  31. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +79 -0
  32. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +18 -0
  33. package/dist/src/ticket-group/exports.d.ts +5 -0
  34. package/dist/src/ticket-group/exports.js +22 -0
  35. package/dist/types/prisma-schema/edge.js +15 -5
  36. package/dist/types/prisma-schema/index-browser.js +12 -2
  37. package/dist/types/prisma-schema/index.d.ts +2156 -178
  38. package/dist/types/prisma-schema/index.js +15 -5
  39. package/dist/types/prisma-schema/package.json +1 -1
  40. package/dist/types/prisma-schema/schema.prisma +22 -3
  41. package/dist/types/prisma-schema/wasm.js +12 -2
  42. package/dist/types/schema.d.ts +357 -12
  43. package/package.json +3 -2
@@ -975,6 +975,22 @@ export interface paths {
975
975
  patch?: never;
976
976
  trace?: never;
977
977
  };
978
+ "/ticket/create-many": {
979
+ parameters: {
980
+ query?: never;
981
+ header?: never;
982
+ path?: never;
983
+ cookie?: never;
984
+ };
985
+ get?: never;
986
+ put?: never;
987
+ post: operations["TicketController_createMany"];
988
+ delete?: never;
989
+ options?: never;
990
+ head?: never;
991
+ patch?: never;
992
+ trace?: never;
993
+ };
978
994
  "/ticket/all": {
979
995
  parameters: {
980
996
  query?: never;
@@ -1119,6 +1135,70 @@ export interface paths {
1119
1135
  patch?: never;
1120
1136
  trace?: never;
1121
1137
  };
1138
+ "/ticket-group/create": {
1139
+ parameters: {
1140
+ query?: never;
1141
+ header?: never;
1142
+ path?: never;
1143
+ cookie?: never;
1144
+ };
1145
+ get?: never;
1146
+ put?: never;
1147
+ post: operations["TicketGroupController_create"];
1148
+ delete?: never;
1149
+ options?: never;
1150
+ head?: never;
1151
+ patch?: never;
1152
+ trace?: never;
1153
+ };
1154
+ "/ticket-group/find-tickets-by-event/{id}": {
1155
+ parameters: {
1156
+ query?: never;
1157
+ header?: never;
1158
+ path?: never;
1159
+ cookie?: never;
1160
+ };
1161
+ get: operations["TicketGroupController_findTicketsByEvent"];
1162
+ put?: never;
1163
+ post?: never;
1164
+ delete?: never;
1165
+ options?: never;
1166
+ head?: never;
1167
+ patch?: never;
1168
+ trace?: never;
1169
+ };
1170
+ "/ticket-group/update/{id}": {
1171
+ parameters: {
1172
+ query?: never;
1173
+ header?: never;
1174
+ path?: never;
1175
+ cookie?: never;
1176
+ };
1177
+ get?: never;
1178
+ put?: never;
1179
+ post?: never;
1180
+ delete?: never;
1181
+ options?: never;
1182
+ head?: never;
1183
+ patch: operations["TicketGroupController_update"];
1184
+ trace?: never;
1185
+ };
1186
+ "/ticket-group/delete/{id}": {
1187
+ parameters: {
1188
+ query?: never;
1189
+ header?: never;
1190
+ path?: never;
1191
+ cookie?: never;
1192
+ };
1193
+ get?: never;
1194
+ put?: never;
1195
+ post?: never;
1196
+ delete: operations["TicketGroupController_delete"];
1197
+ options?: never;
1198
+ head?: never;
1199
+ patch?: never;
1200
+ trace?: never;
1201
+ };
1122
1202
  "/webhook": {
1123
1203
  parameters: {
1124
1204
  query?: never;
@@ -2061,9 +2141,9 @@ export interface components {
2061
2141
  id: string;
2062
2142
  eventId: string;
2063
2143
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2064
- status: "BOOKED" | "PAID" | "FREE";
2065
2144
  fullName: string;
2066
2145
  mail: string;
2146
+ ticketGroupId: string;
2067
2147
  created_at: string;
2068
2148
  updated_at: string;
2069
2149
  }[];
@@ -2675,18 +2755,18 @@ export interface components {
2675
2755
  CreateTicketDto: {
2676
2756
  eventId: string;
2677
2757
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2678
- status: "BOOKED" | "PAID" | "FREE";
2679
2758
  fullName: string;
2680
2759
  mail: string;
2760
+ ticketGroupId: string;
2681
2761
  profileId?: string;
2682
2762
  };
2683
2763
  CreateTicketResponseDto: {
2684
2764
  id: string;
2685
2765
  eventId: string;
2686
2766
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2687
- status: "BOOKED" | "PAID" | "FREE";
2688
2767
  fullName: string;
2689
2768
  mail: string;
2769
+ ticketGroupId: string;
2690
2770
  created_at: string;
2691
2771
  updated_at: string;
2692
2772
  event: {
@@ -2705,14 +2785,55 @@ export interface components {
2705
2785
  updated_at: string;
2706
2786
  };
2707
2787
  };
2788
+ CreateManyTicketDto: {
2789
+ tickets: {
2790
+ eventId: string;
2791
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2792
+ fullName: string;
2793
+ mail: string;
2794
+ ticketGroupId: string;
2795
+ profileId?: string;
2796
+ }[];
2797
+ };
2798
+ CreateManyTicketWithPdfsResponseDto: {
2799
+ tickets: {
2800
+ id: string;
2801
+ eventId: string;
2802
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2803
+ fullName: string;
2804
+ mail: string;
2805
+ ticketGroupId: string;
2806
+ created_at: string;
2807
+ updated_at: string;
2808
+ event: {
2809
+ id: string;
2810
+ name: string;
2811
+ date: string;
2812
+ startingDate: string;
2813
+ endingDate: string;
2814
+ location: string;
2815
+ folderId: string | null;
2816
+ tagAssistedId: string;
2817
+ tagConfirmedId: string;
2818
+ active: boolean;
2819
+ supraEventId: string | null;
2820
+ created_at: string;
2821
+ updated_at: string;
2822
+ };
2823
+ }[];
2824
+ pdfs: {
2825
+ ticketId: string;
2826
+ pdfBase64: string;
2827
+ }[];
2828
+ };
2708
2829
  FindAllTicketsResponseDto: {
2709
2830
  tickets: {
2710
2831
  id: string;
2711
2832
  eventId: string;
2712
2833
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2713
- status: "BOOKED" | "PAID" | "FREE";
2714
2834
  fullName: string;
2715
2835
  mail: string;
2836
+ ticketGroupId: string;
2716
2837
  created_at: string;
2717
2838
  updated_at: string;
2718
2839
  event: {
@@ -2727,9 +2848,9 @@ export interface components {
2727
2848
  id: string;
2728
2849
  eventId: string;
2729
2850
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2730
- status: "BOOKED" | "PAID" | "FREE";
2731
2851
  fullName: string;
2732
2852
  mail: string;
2853
+ ticketGroupId: string;
2733
2854
  created_at: string;
2734
2855
  updated_at: string;
2735
2856
  event: {
@@ -2770,9 +2891,9 @@ export interface components {
2770
2891
  id: string;
2771
2892
  eventId: string;
2772
2893
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2773
- status: "BOOKED" | "PAID" | "FREE";
2774
2894
  fullName: string;
2775
2895
  mail: string;
2896
+ ticketGroupId: string;
2776
2897
  created_at: string;
2777
2898
  updated_at: string;
2778
2899
  event: {
@@ -2813,9 +2934,9 @@ export interface components {
2813
2934
  id: string;
2814
2935
  eventId: string;
2815
2936
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2816
- status: "BOOKED" | "PAID" | "FREE";
2817
2937
  fullName: string;
2818
2938
  mail: string;
2939
+ ticketGroupId: string;
2819
2940
  created_at: string;
2820
2941
  updated_at: string;
2821
2942
  event: {
@@ -2856,9 +2977,9 @@ export interface components {
2856
2977
  id: string;
2857
2978
  eventId: string;
2858
2979
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2859
- status: "BOOKED" | "PAID" | "FREE";
2860
2980
  fullName: string;
2861
2981
  mail: string;
2982
+ ticketGroupId: string;
2862
2983
  created_at: string;
2863
2984
  updated_at: string;
2864
2985
  event: {
@@ -2880,17 +3001,17 @@ export interface components {
2880
3001
  };
2881
3002
  UpdateTicketDto: {
2882
3003
  type?: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2883
- status?: "BOOKED" | "PAID" | "FREE";
2884
3004
  fullName?: string;
2885
3005
  mail?: string;
3006
+ ticketGroupId?: string;
2886
3007
  };
2887
3008
  UpdateTicketResponseDto: {
2888
3009
  id: string;
2889
3010
  eventId: string;
2890
3011
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2891
- status: "BOOKED" | "PAID" | "FREE";
2892
3012
  fullName: string;
2893
3013
  mail: string;
3014
+ ticketGroupId: string;
2894
3015
  created_at: string;
2895
3016
  updated_at: string;
2896
3017
  };
@@ -2898,9 +3019,9 @@ export interface components {
2898
3019
  id: string;
2899
3020
  eventId: string;
2900
3021
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2901
- status: "BOOKED" | "PAID" | "FREE";
2902
3022
  fullName: string;
2903
3023
  mail: string;
3024
+ ticketGroupId: string;
2904
3025
  created_at: string;
2905
3026
  updated_at: string;
2906
3027
  };
@@ -2908,9 +3029,66 @@ export interface components {
2908
3029
  id: string;
2909
3030
  eventId: string;
2910
3031
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2911
- status: "BOOKED" | "PAID" | "FREE";
2912
3032
  fullName: string;
2913
3033
  mail: string;
3034
+ ticketGroupId: string;
3035
+ created_at: string;
3036
+ updated_at: string;
3037
+ };
3038
+ CreateTicketGroupDto: {
3039
+ eventId: string;
3040
+ amountTickets: number;
3041
+ status: "BOOKED" | "PAID" | "FREE";
3042
+ };
3043
+ CreateTicketGroupResponseDto: {
3044
+ id: string;
3045
+ amountTickets: number;
3046
+ status: "BOOKED" | "PAID" | "FREE";
3047
+ eventId: string;
3048
+ created_at: string;
3049
+ updated_at: string;
3050
+ tickets: {
3051
+ id: string;
3052
+ eventId: string;
3053
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
3054
+ fullName: string;
3055
+ mail: string;
3056
+ ticketGroupId: string;
3057
+ created_at: string;
3058
+ updated_at: string;
3059
+ }[];
3060
+ event: {
3061
+ id: string;
3062
+ name: string;
3063
+ date: string;
3064
+ startingDate: string;
3065
+ endingDate: string;
3066
+ location: string;
3067
+ folderId: string | null;
3068
+ tagAssistedId: string;
3069
+ tagConfirmedId: string;
3070
+ active: boolean;
3071
+ supraEventId: string | null;
3072
+ created_at: string;
3073
+ updated_at: string;
3074
+ };
3075
+ };
3076
+ UpdateTicketGroupDto: {
3077
+ status?: "BOOKED" | "PAID" | "FREE";
3078
+ };
3079
+ UpdateTicketGroupResponseDto: {
3080
+ id: string;
3081
+ amountTickets: number;
3082
+ status: "BOOKED" | "PAID" | "FREE";
3083
+ eventId: string;
3084
+ created_at: string;
3085
+ updated_at: string;
3086
+ };
3087
+ DeleteTicketGroupResponseDto: {
3088
+ id: string;
3089
+ amountTickets: number;
3090
+ status: "BOOKED" | "PAID" | "FREE";
3091
+ eventId: string;
2914
3092
  created_at: string;
2915
3093
  updated_at: string;
2916
3094
  };
@@ -5092,6 +5270,45 @@ export interface operations {
5092
5270
  };
5093
5271
  };
5094
5272
  };
5273
+ TicketController_createMany: {
5274
+ parameters: {
5275
+ query?: never;
5276
+ header?: never;
5277
+ path?: never;
5278
+ cookie?: never;
5279
+ };
5280
+ requestBody: {
5281
+ content: {
5282
+ "application/json": components["schemas"]["CreateManyTicketDto"];
5283
+ };
5284
+ };
5285
+ responses: {
5286
+ 200: {
5287
+ headers: {
5288
+ [name: string]: unknown;
5289
+ };
5290
+ content: {
5291
+ "application/json": components["schemas"]["CreateManyTicketWithPdfsResponseDto"];
5292
+ };
5293
+ };
5294
+ 404: {
5295
+ headers: {
5296
+ [name: string]: unknown;
5297
+ };
5298
+ content: {
5299
+ "application/json": components["schemas"]["ErrorDto"];
5300
+ };
5301
+ };
5302
+ 409: {
5303
+ headers: {
5304
+ [name: string]: unknown;
5305
+ };
5306
+ content: {
5307
+ "application/json": components["schemas"]["ErrorDto"];
5308
+ };
5309
+ };
5310
+ };
5311
+ };
5095
5312
  TicketController_findAll: {
5096
5313
  parameters: {
5097
5314
  query?: never;
@@ -5355,6 +5572,134 @@ export interface operations {
5355
5572
  };
5356
5573
  };
5357
5574
  };
5575
+ TicketGroupController_create: {
5576
+ parameters: {
5577
+ query?: never;
5578
+ header?: never;
5579
+ path?: never;
5580
+ cookie?: never;
5581
+ };
5582
+ requestBody: {
5583
+ content: {
5584
+ "application/json": components["schemas"]["CreateTicketGroupDto"];
5585
+ };
5586
+ };
5587
+ responses: {
5588
+ 200: {
5589
+ headers: {
5590
+ [name: string]: unknown;
5591
+ };
5592
+ content: {
5593
+ "application/json": components["schemas"]["CreateTicketGroupResponseDto"];
5594
+ };
5595
+ };
5596
+ 404: {
5597
+ headers: {
5598
+ [name: string]: unknown;
5599
+ };
5600
+ content: {
5601
+ "application/json": components["schemas"]["ErrorDto"];
5602
+ };
5603
+ };
5604
+ 409: {
5605
+ headers: {
5606
+ [name: string]: unknown;
5607
+ };
5608
+ content: {
5609
+ "application/json": components["schemas"]["ErrorDto"];
5610
+ };
5611
+ };
5612
+ };
5613
+ };
5614
+ TicketGroupController_findTicketsByEvent: {
5615
+ parameters: {
5616
+ query?: never;
5617
+ header?: never;
5618
+ path: {
5619
+ id: string;
5620
+ };
5621
+ cookie?: never;
5622
+ };
5623
+ requestBody?: never;
5624
+ responses: {
5625
+ 200: {
5626
+ headers: {
5627
+ [name: string]: unknown;
5628
+ };
5629
+ content?: never;
5630
+ };
5631
+ 404: {
5632
+ headers: {
5633
+ [name: string]: unknown;
5634
+ };
5635
+ content: {
5636
+ "application/json": components["schemas"]["ErrorDto"];
5637
+ };
5638
+ };
5639
+ };
5640
+ };
5641
+ TicketGroupController_update: {
5642
+ parameters: {
5643
+ query?: never;
5644
+ header?: never;
5645
+ path: {
5646
+ id: string;
5647
+ };
5648
+ cookie?: never;
5649
+ };
5650
+ requestBody: {
5651
+ content: {
5652
+ "application/json": components["schemas"]["UpdateTicketGroupDto"];
5653
+ };
5654
+ };
5655
+ responses: {
5656
+ 200: {
5657
+ headers: {
5658
+ [name: string]: unknown;
5659
+ };
5660
+ content: {
5661
+ "application/json": components["schemas"]["UpdateTicketGroupResponseDto"];
5662
+ };
5663
+ };
5664
+ 404: {
5665
+ headers: {
5666
+ [name: string]: unknown;
5667
+ };
5668
+ content: {
5669
+ "application/json": components["schemas"]["ErrorDto"];
5670
+ };
5671
+ };
5672
+ };
5673
+ };
5674
+ TicketGroupController_delete: {
5675
+ parameters: {
5676
+ query?: never;
5677
+ header?: never;
5678
+ path: {
5679
+ id: string;
5680
+ };
5681
+ cookie?: never;
5682
+ };
5683
+ requestBody?: never;
5684
+ responses: {
5685
+ 200: {
5686
+ headers: {
5687
+ [name: string]: unknown;
5688
+ };
5689
+ content: {
5690
+ "application/json": components["schemas"]["DeleteTicketGroupResponseDto"];
5691
+ };
5692
+ };
5693
+ 404: {
5694
+ headers: {
5695
+ [name: string]: unknown;
5696
+ };
5697
+ content: {
5698
+ "application/json": components["schemas"]["ErrorDto"];
5699
+ };
5700
+ };
5701
+ };
5702
+ };
5358
5703
  WebhookController_verify: {
5359
5704
  parameters: {
5360
5705
  query: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.36.0",
3
+ "version": "0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.1",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -36,6 +36,7 @@
36
36
  "@anatine/zod-nestjs": "^2.0.9",
37
37
  "@anatine/zod-openapi": "^2.2.6",
38
38
  "i18n-js": "^4.4.3",
39
+ "libphonenumber-js": "^1.12.6",
39
40
  "patch-package": "^8.0.0",
40
41
  "zod": "^3.23.8"
41
42
  },
@@ -73,10 +74,10 @@
73
74
  "class-validator": "^0.14.1",
74
75
  "country-state-city": "^3.2.1",
75
76
  "date-fns": "^4.1.0",
77
+ "eslint": "^9.11.1",
76
78
  "eslint-config-prettier": "^9.0.0",
77
79
  "eslint-plugin-prettier": "^5.0.0",
78
80
  "eslint-plugin-unused-imports": "^4.1.4",
79
- "eslint": "^9.11.1",
80
81
  "exceljs": "^4.4.0",
81
82
  "fast-csv": "^5.0.2",
82
83
  "globals": "^15.10.0",