expo-backend-types 0.37.0-EXPO-338-Papa-Francisco.2 → 0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.6

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 (44) hide show
  1. package/README.md +0 -2
  2. package/dist/src/event/dto/get-by-id-event.dto.d.ts +18 -26
  3. package/dist/src/exports.d.ts +1 -0
  4. package/dist/src/exports.js +1 -0
  5. package/dist/src/i18n/es.d.ts +39 -2
  6. package/dist/src/i18n/es.js +39 -2
  7. package/dist/src/i18n/es.js.map +1 -1
  8. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +610 -0
  9. package/dist/src/ticket/dto/create-many-ticket.dto.js +50 -0
  10. package/dist/src/ticket/dto/create-ticket.dto.d.ts +18 -33
  11. package/dist/src/ticket/dto/create-ticket.dto.js +2 -1
  12. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +10 -18
  13. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +18 -26
  14. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +18 -26
  15. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +161 -29
  16. package/dist/src/ticket/dto/find-by-id-ticket.dto.js +2 -5
  17. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +18 -26
  18. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +18 -26
  19. package/dist/src/ticket/dto/find-ticket.dto.d.ts +10 -18
  20. package/dist/src/ticket/dto/ticket.dto.d.ts +10 -18
  21. package/dist/src/ticket/dto/ticket.dto.js +2 -3
  22. package/dist/src/ticket/dto/update-ticket.dto.d.ts +22 -32
  23. package/dist/src/ticket/dto/update-ticket.dto.js +2 -1
  24. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +366 -0
  25. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +27 -0
  26. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +55 -0
  27. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +10 -0
  28. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +32 -0
  29. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +20 -0
  30. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +56 -0
  31. package/dist/src/ticket-group/dto/ticket-group.dto.js +27 -0
  32. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +79 -0
  33. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +18 -0
  34. package/dist/src/ticket-group/exports.d.ts +5 -0
  35. package/dist/src/ticket-group/exports.js +22 -0
  36. package/dist/types/prisma-schema/edge.js +15 -5
  37. package/dist/types/prisma-schema/index-browser.js +12 -2
  38. package/dist/types/prisma-schema/index.d.ts +2178 -167
  39. package/dist/types/prisma-schema/index.js +15 -5
  40. package/dist/types/prisma-schema/package.json +1 -1
  41. package/dist/types/prisma-schema/schema.prisma +22 -3
  42. package/dist/types/prisma-schema/wasm.js +12 -2
  43. package/dist/types/schema.d.ts +379 -12
  44. package/package.json +2 -1
@@ -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;
@@ -1135,6 +1151,70 @@ export interface paths {
1135
1151
  patch?: never;
1136
1152
  trace?: never;
1137
1153
  };
1154
+ "/ticket-group/create": {
1155
+ parameters: {
1156
+ query?: never;
1157
+ header?: never;
1158
+ path?: never;
1159
+ cookie?: never;
1160
+ };
1161
+ get?: never;
1162
+ put?: never;
1163
+ post: operations["TicketGroupController_create"];
1164
+ delete?: never;
1165
+ options?: never;
1166
+ head?: never;
1167
+ patch?: never;
1168
+ trace?: never;
1169
+ };
1170
+ "/ticket-group/find-tickets-by-event/{id}": {
1171
+ parameters: {
1172
+ query?: never;
1173
+ header?: never;
1174
+ path?: never;
1175
+ cookie?: never;
1176
+ };
1177
+ get: operations["TicketGroupController_findTicketsByEvent"];
1178
+ put?: never;
1179
+ post?: never;
1180
+ delete?: never;
1181
+ options?: never;
1182
+ head?: never;
1183
+ patch?: never;
1184
+ trace?: never;
1185
+ };
1186
+ "/ticket-group/update/{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?: never;
1197
+ options?: never;
1198
+ head?: never;
1199
+ patch: operations["TicketGroupController_update"];
1200
+ trace?: never;
1201
+ };
1202
+ "/ticket-group/delete/{id}": {
1203
+ parameters: {
1204
+ query?: never;
1205
+ header?: never;
1206
+ path?: never;
1207
+ cookie?: never;
1208
+ };
1209
+ get?: never;
1210
+ put?: never;
1211
+ post?: never;
1212
+ delete: operations["TicketGroupController_delete"];
1213
+ options?: never;
1214
+ head?: never;
1215
+ patch?: never;
1216
+ trace?: never;
1217
+ };
1138
1218
  "/webhook": {
1139
1219
  parameters: {
1140
1220
  query?: never;
@@ -2077,11 +2157,11 @@ export interface components {
2077
2157
  id: string;
2078
2158
  eventId: string;
2079
2159
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2080
- status: "BOOKED" | "PAID" | "FREE";
2081
2160
  fullName: string;
2082
2161
  mail: string;
2083
2162
  dni: string;
2084
2163
  seat: number | null;
2164
+ ticketGroupId: string | null;
2085
2165
  created_at: string;
2086
2166
  updated_at: string;
2087
2167
  }[];
@@ -2693,21 +2773,21 @@ export interface components {
2693
2773
  CreateTicketDto: {
2694
2774
  eventId: string;
2695
2775
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2696
- status: "BOOKED" | "PAID" | "FREE";
2697
2776
  fullName: string;
2698
2777
  mail: string;
2699
2778
  dni: string;
2700
2779
  profileId?: string;
2780
+ ticketGroupId?: string;
2701
2781
  };
2702
2782
  CreateTicketResponseDto: {
2703
2783
  id: string;
2704
2784
  eventId: string;
2705
2785
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2706
- status: "BOOKED" | "PAID" | "FREE";
2707
2786
  fullName: string;
2708
2787
  mail: string;
2709
2788
  dni: string;
2710
2789
  seat: number | null;
2790
+ ticketGroupId: string | null;
2711
2791
  created_at: string;
2712
2792
  updated_at: string;
2713
2793
  event: {
@@ -2726,16 +2806,60 @@ export interface components {
2726
2806
  updated_at: string;
2727
2807
  };
2728
2808
  };
2809
+ CreateManyTicketDto: {
2810
+ tickets: {
2811
+ eventId: string;
2812
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2813
+ fullName: string;
2814
+ mail: string;
2815
+ dni: string;
2816
+ ticketGroupId: string | null;
2817
+ profileId?: string;
2818
+ }[];
2819
+ };
2820
+ CreateManyTicketWithPdfsResponseDto: {
2821
+ tickets: {
2822
+ id: string;
2823
+ eventId: string;
2824
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2825
+ fullName: string;
2826
+ mail: string;
2827
+ dni: string;
2828
+ seat: number | null;
2829
+ ticketGroupId: string | null;
2830
+ created_at: string;
2831
+ updated_at: string;
2832
+ event: {
2833
+ id: string;
2834
+ name: string;
2835
+ date: string;
2836
+ startingDate: string;
2837
+ endingDate: string;
2838
+ location: string;
2839
+ folderId: string | null;
2840
+ tagAssistedId: string;
2841
+ tagConfirmedId: string;
2842
+ active: boolean;
2843
+ supraEventId: string | null;
2844
+ created_at: string;
2845
+ updated_at: string;
2846
+ };
2847
+ }[];
2848
+ pdfs: {
2849
+ ticketId: string;
2850
+ pdfBase64: string;
2851
+ }[];
2852
+ };
2729
2853
  FindAllTicketsResponseDto: {
2730
2854
  tickets: {
2731
2855
  id: string;
2732
2856
  eventId: string;
2733
2857
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2734
- status: "BOOKED" | "PAID" | "FREE";
2735
2858
  fullName: string;
2736
2859
  mail: string;
2737
2860
  dni: string;
2738
2861
  seat: number | null;
2862
+ ticketGroupId: string | null;
2739
2863
  created_at: string;
2740
2864
  updated_at: string;
2741
2865
  event: {
@@ -2750,17 +2874,27 @@ export interface components {
2750
2874
  id: string;
2751
2875
  eventId: string;
2752
2876
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2753
- status: "BOOKED" | "PAID" | "FREE";
2754
2877
  fullName: string;
2755
2878
  mail: string;
2756
2879
  dni: string;
2757
2880
  seat: number | null;
2881
+ ticketGroupId: string | null;
2758
2882
  created_at: string;
2759
2883
  updated_at: string;
2760
2884
  event: {
2885
+ id: string;
2761
2886
  name: string;
2762
2887
  date: string;
2888
+ startingDate: string;
2889
+ endingDate: string;
2763
2890
  location: string;
2891
+ folderId: string | null;
2892
+ tagAssistedId: string;
2893
+ tagConfirmedId: string;
2894
+ active: boolean;
2895
+ supraEventId: string | null;
2896
+ created_at: string;
2897
+ updated_at: string;
2764
2898
  };
2765
2899
  profile: {
2766
2900
  id: string;
@@ -2788,6 +2922,7 @@ export interface components {
2788
2922
  created_at: string;
2789
2923
  updated_at: string;
2790
2924
  } | null;
2925
+ profileId: string | null;
2791
2926
  };
2792
2927
  };
2793
2928
  FindByMailTicketResponseDto: {
@@ -2795,11 +2930,11 @@ export interface components {
2795
2930
  id: string;
2796
2931
  eventId: string;
2797
2932
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2798
- status: "BOOKED" | "PAID" | "FREE";
2799
2933
  fullName: string;
2800
2934
  mail: string;
2801
2935
  dni: string;
2802
2936
  seat: number | null;
2937
+ ticketGroupId: string | null;
2803
2938
  created_at: string;
2804
2939
  updated_at: string;
2805
2940
  event: {
@@ -2840,11 +2975,11 @@ export interface components {
2840
2975
  id: string;
2841
2976
  eventId: string;
2842
2977
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2843
- status: "BOOKED" | "PAID" | "FREE";
2844
2978
  fullName: string;
2845
2979
  mail: string;
2846
2980
  dni: string;
2847
2981
  seat: number | null;
2982
+ ticketGroupId: string | null;
2848
2983
  created_at: string;
2849
2984
  updated_at: string;
2850
2985
  event: {
@@ -2885,11 +3020,11 @@ export interface components {
2885
3020
  id: string;
2886
3021
  eventId: string;
2887
3022
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2888
- status: "BOOKED" | "PAID" | "FREE";
2889
3023
  fullName: string;
2890
3024
  mail: string;
2891
3025
  dni: string;
2892
3026
  seat: number | null;
3027
+ ticketGroupId: string | null;
2893
3028
  created_at: string;
2894
3029
  updated_at: string;
2895
3030
  event: {
@@ -2911,19 +3046,20 @@ export interface components {
2911
3046
  };
2912
3047
  UpdateTicketDto: {
2913
3048
  type?: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2914
- status?: "BOOKED" | "PAID" | "FREE";
2915
3049
  fullName?: string;
2916
3050
  mail?: string;
3051
+ dni?: string;
3052
+ ticketGroupId?: string | null;
2917
3053
  };
2918
3054
  UpdateTicketResponseDto: {
2919
3055
  id: string;
2920
3056
  eventId: string;
2921
3057
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2922
- status: "BOOKED" | "PAID" | "FREE";
2923
3058
  fullName: string;
2924
3059
  mail: string;
2925
3060
  dni: string;
2926
3061
  seat: number | null;
3062
+ ticketGroupId: string | null;
2927
3063
  created_at: string;
2928
3064
  updated_at: string;
2929
3065
  };
@@ -2931,11 +3067,11 @@ export interface components {
2931
3067
  id: string;
2932
3068
  eventId: string;
2933
3069
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2934
- status: "BOOKED" | "PAID" | "FREE";
2935
3070
  fullName: string;
2936
3071
  mail: string;
2937
3072
  dni: string;
2938
3073
  seat: number | null;
3074
+ ticketGroupId: string | null;
2939
3075
  created_at: string;
2940
3076
  updated_at: string;
2941
3077
  };
@@ -2943,17 +3079,79 @@ export interface components {
2943
3079
  id: string;
2944
3080
  eventId: string;
2945
3081
  type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2946
- status: "BOOKED" | "PAID" | "FREE";
2947
3082
  fullName: string;
2948
3083
  mail: string;
2949
3084
  dni: string;
2950
3085
  seat: number | null;
3086
+ ticketGroupId: string | null;
2951
3087
  created_at: string;
2952
3088
  updated_at: string;
2953
3089
  };
2954
3090
  SendEmailResponseDto: {
2955
3091
  mailId: string;
2956
3092
  };
3093
+ CreateTicketGroupDto: {
3094
+ eventId: string;
3095
+ amountTickets: number;
3096
+ status: "BOOKED" | "PAID" | "FREE";
3097
+ };
3098
+ CreateTicketGroupResponseDto: {
3099
+ id: string;
3100
+ amountTickets: number;
3101
+ status: "BOOKED" | "PAID" | "FREE";
3102
+ eventId: string;
3103
+ created_at: string;
3104
+ updated_at: string;
3105
+ tickets: {
3106
+ id: string;
3107
+ eventId: string;
3108
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
3109
+ fullName: string;
3110
+ mail: string;
3111
+ dni: string;
3112
+ seat: number | null;
3113
+ ticketGroupId: string | null;
3114
+ created_at: string;
3115
+ updated_at: string;
3116
+ }[];
3117
+ event: {
3118
+ id: string;
3119
+ name: string;
3120
+ date: string;
3121
+ startingDate: string;
3122
+ endingDate: string;
3123
+ location: string;
3124
+ folderId: string | null;
3125
+ tagAssistedId: string;
3126
+ tagConfirmedId: string;
3127
+ active: boolean;
3128
+ supraEventId: string | null;
3129
+ created_at: string;
3130
+ updated_at: string;
3131
+ };
3132
+ };
3133
+ FindTicketsByEventDto: {
3134
+ tickets: number;
3135
+ };
3136
+ UpdateTicketGroupDto: {
3137
+ status?: "BOOKED" | "PAID" | "FREE";
3138
+ };
3139
+ UpdateTicketGroupResponseDto: {
3140
+ id: string;
3141
+ amountTickets: number;
3142
+ status: "BOOKED" | "PAID" | "FREE";
3143
+ eventId: string;
3144
+ created_at: string;
3145
+ updated_at: string;
3146
+ };
3147
+ DeleteTicketGroupResponseDto: {
3148
+ id: string;
3149
+ amountTickets: number;
3150
+ status: "BOOKED" | "PAID" | "FREE";
3151
+ eventId: string;
3152
+ created_at: string;
3153
+ updated_at: string;
3154
+ };
2957
3155
  SendOtpDto: {
2958
3156
  phoneNumber: string;
2959
3157
  };
@@ -5132,6 +5330,45 @@ export interface operations {
5132
5330
  };
5133
5331
  };
5134
5332
  };
5333
+ TicketController_createMany: {
5334
+ parameters: {
5335
+ query?: never;
5336
+ header?: never;
5337
+ path?: never;
5338
+ cookie?: never;
5339
+ };
5340
+ requestBody: {
5341
+ content: {
5342
+ "application/json": components["schemas"]["CreateManyTicketDto"];
5343
+ };
5344
+ };
5345
+ responses: {
5346
+ 200: {
5347
+ headers: {
5348
+ [name: string]: unknown;
5349
+ };
5350
+ content: {
5351
+ "application/json": components["schemas"]["CreateManyTicketWithPdfsResponseDto"];
5352
+ };
5353
+ };
5354
+ 404: {
5355
+ headers: {
5356
+ [name: string]: unknown;
5357
+ };
5358
+ content: {
5359
+ "application/json": components["schemas"]["ErrorDto"];
5360
+ };
5361
+ };
5362
+ 409: {
5363
+ headers: {
5364
+ [name: string]: unknown;
5365
+ };
5366
+ content: {
5367
+ "application/json": components["schemas"]["ErrorDto"];
5368
+ };
5369
+ };
5370
+ };
5371
+ };
5135
5372
  TicketController_findAll: {
5136
5373
  parameters: {
5137
5374
  query?: never;
@@ -5432,6 +5669,136 @@ export interface operations {
5432
5669
  };
5433
5670
  };
5434
5671
  };
5672
+ TicketGroupController_create: {
5673
+ parameters: {
5674
+ query?: never;
5675
+ header?: never;
5676
+ path?: never;
5677
+ cookie?: never;
5678
+ };
5679
+ requestBody: {
5680
+ content: {
5681
+ "application/json": components["schemas"]["CreateTicketGroupDto"];
5682
+ };
5683
+ };
5684
+ responses: {
5685
+ 200: {
5686
+ headers: {
5687
+ [name: string]: unknown;
5688
+ };
5689
+ content: {
5690
+ "application/json": components["schemas"]["CreateTicketGroupResponseDto"];
5691
+ };
5692
+ };
5693
+ 404: {
5694
+ headers: {
5695
+ [name: string]: unknown;
5696
+ };
5697
+ content: {
5698
+ "application/json": components["schemas"]["ErrorDto"];
5699
+ };
5700
+ };
5701
+ 409: {
5702
+ headers: {
5703
+ [name: string]: unknown;
5704
+ };
5705
+ content: {
5706
+ "application/json": components["schemas"]["ErrorDto"];
5707
+ };
5708
+ };
5709
+ };
5710
+ };
5711
+ TicketGroupController_findTicketsByEvent: {
5712
+ parameters: {
5713
+ query?: never;
5714
+ header?: never;
5715
+ path: {
5716
+ id: string;
5717
+ };
5718
+ cookie?: never;
5719
+ };
5720
+ requestBody?: never;
5721
+ responses: {
5722
+ 200: {
5723
+ headers: {
5724
+ [name: string]: unknown;
5725
+ };
5726
+ content: {
5727
+ "application/json": components["schemas"]["FindTicketsByEventDto"];
5728
+ };
5729
+ };
5730
+ 404: {
5731
+ headers: {
5732
+ [name: string]: unknown;
5733
+ };
5734
+ content: {
5735
+ "application/json": components["schemas"]["ErrorDto"];
5736
+ };
5737
+ };
5738
+ };
5739
+ };
5740
+ TicketGroupController_update: {
5741
+ parameters: {
5742
+ query?: never;
5743
+ header?: never;
5744
+ path: {
5745
+ id: string;
5746
+ };
5747
+ cookie?: never;
5748
+ };
5749
+ requestBody: {
5750
+ content: {
5751
+ "application/json": components["schemas"]["UpdateTicketGroupDto"];
5752
+ };
5753
+ };
5754
+ responses: {
5755
+ 200: {
5756
+ headers: {
5757
+ [name: string]: unknown;
5758
+ };
5759
+ content: {
5760
+ "application/json": components["schemas"]["UpdateTicketGroupResponseDto"];
5761
+ };
5762
+ };
5763
+ 404: {
5764
+ headers: {
5765
+ [name: string]: unknown;
5766
+ };
5767
+ content: {
5768
+ "application/json": components["schemas"]["ErrorDto"];
5769
+ };
5770
+ };
5771
+ };
5772
+ };
5773
+ TicketGroupController_delete: {
5774
+ parameters: {
5775
+ query?: never;
5776
+ header?: never;
5777
+ path: {
5778
+ id: string;
5779
+ };
5780
+ cookie?: never;
5781
+ };
5782
+ requestBody?: never;
5783
+ responses: {
5784
+ 200: {
5785
+ headers: {
5786
+ [name: string]: unknown;
5787
+ };
5788
+ content: {
5789
+ "application/json": components["schemas"]["DeleteTicketGroupResponseDto"];
5790
+ };
5791
+ };
5792
+ 404: {
5793
+ headers: {
5794
+ [name: string]: unknown;
5795
+ };
5796
+ content: {
5797
+ "application/json": components["schemas"]["ErrorDto"];
5798
+ };
5799
+ };
5800
+ };
5801
+ };
5435
5802
  WebhookController_verify: {
5436
5803
  parameters: {
5437
5804
  query: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.37.0-EXPO-338-Papa-Francisco.2",
3
+ "version": "0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.6",
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
  },