expo-backend-types 0.32.0 → 0.33.0-EXPO-308-auth.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.
Files changed (116) hide show
  1. package/dist/src/exports.d.ts +4 -0
  2. package/dist/src/exports.js +4 -0
  3. package/dist/src/i18n/es.d.ts +84 -0
  4. package/dist/src/i18n/es.js +84 -0
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/image/constants.d.ts +5 -0
  7. package/dist/src/image/constants.js +9 -0
  8. package/dist/src/location/dto/find-all-location.dto.js +2 -2
  9. package/dist/src/location/exports.d.ts +0 -1
  10. package/dist/src/location/exports.js +0 -1
  11. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  12. package/dist/src/message/dto/non-read-messages.dto.js +2 -2
  13. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  14. package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
  15. package/dist/src/message/dto/template.dto.d.ts +2 -2
  16. package/dist/src/mi-expo/dto/get-me.dto.d.ts +337 -0
  17. package/dist/src/mi-expo/dto/get-me.dto.js +16 -0
  18. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +311 -0
  19. package/dist/src/mi-expo/dto/login-with-phone.dto.js +29 -0
  20. package/dist/src/mi-expo/dto/login.dto.d.ts +327 -0
  21. package/dist/src/mi-expo/dto/login.dto.js +31 -0
  22. package/dist/src/mi-expo/dto/update-me.dto.d.ts +352 -0
  23. package/dist/src/mi-expo/dto/update-me.dto.js +31 -0
  24. package/dist/src/mi-expo/exports.d.ts +4 -0
  25. package/dist/src/mi-expo/exports.js +21 -0
  26. package/dist/src/otp/constants.d.ts +2 -0
  27. package/dist/src/otp/constants.js +6 -0
  28. package/dist/src/otp/dto/send-otp.dto.d.ts +158 -0
  29. package/dist/src/otp/dto/send-otp.dto.js +35 -0
  30. package/dist/src/otp/dto/verify-otp.dto.d.ts +455 -0
  31. package/dist/src/otp/dto/verify-otp.dto.js +46 -0
  32. package/dist/src/otp/exports.d.ts +2 -0
  33. package/dist/src/otp/exports.js +19 -0
  34. package/dist/src/prisma/constants.d.ts +1 -0
  35. package/dist/src/prisma/constants.js +5 -0
  36. package/dist/src/profile/dto/create-profile.dto.d.ts +48 -14
  37. package/dist/src/profile/dto/create-profile.dto.js +9 -7
  38. package/dist/src/profile/dto/delete-profile.dto.d.ts +30 -6
  39. package/dist/src/profile/dto/delete-profile.dto.js +2 -2
  40. package/dist/src/profile/dto/find-all-profile.dto.d.ts +47 -7
  41. package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
  42. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +75 -11
  43. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
  44. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +32 -13
  45. package/dist/src/profile/dto/find-by-id-profile.dto.js +7 -5
  46. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +30 -6
  47. package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
  48. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +47 -7
  49. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
  50. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +47 -7
  51. package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
  52. package/dist/src/profile/dto/find-trash.dto.d.ts +7 -3
  53. package/dist/src/profile/dto/find-trash.dto.js +2 -2
  54. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +47 -7
  55. package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
  56. package/dist/src/profile/dto/profile.dto.d.ts +44 -30
  57. package/dist/src/profile/dto/profile.dto.js +6 -63
  58. package/dist/src/profile/dto/update-profile.dto.d.ts +54 -12
  59. package/dist/src/profile/dto/update-profile.dto.js +9 -6
  60. package/dist/src/schema/exports.d.ts +2 -0
  61. package/dist/src/schema/exports.js +19 -0
  62. package/dist/src/{location/dto/location.dto.js → schema/location.schema.js} +2 -2
  63. package/dist/src/schema/profile.schema.d.ts +74 -0
  64. package/dist/src/schema/profile.schema.js +133 -0
  65. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +2 -4
  66. package/dist/src/shared/dto-modification/zod-without-dates.js +8 -0
  67. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  68. package/dist/src/tag/dto/massive-allocation.dto.d.ts +47 -7
  69. package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
  70. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +47 -7
  71. package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
  72. package/dist/src/ticket/constants.d.ts +16 -0
  73. package/dist/src/ticket/constants.js +272 -0
  74. package/dist/src/ticket/dto/create-ticket.dto.d.ts +134 -0
  75. package/dist/src/ticket/dto/create-ticket.dto.js +20 -0
  76. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +75 -0
  77. package/dist/src/ticket/dto/delete-ticket.dto.js +10 -0
  78. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +201 -0
  79. package/dist/src/ticket/dto/find-all-tickets.dto.js +23 -0
  80. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +201 -0
  81. package/dist/src/ticket/dto/find-by-event-ticket.dto.js +23 -0
  82. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +201 -0
  83. package/dist/src/ticket/dto/find-by-id-ticket.dto.js +20 -0
  84. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +201 -0
  85. package/dist/src/ticket/dto/find-by-mail-ticket.dto.js +23 -0
  86. package/dist/src/ticket/dto/find-ticket.dto.d.ts +75 -0
  87. package/dist/src/ticket/dto/find-ticket.dto.js +10 -0
  88. package/dist/src/ticket/dto/generate-pdf.dto.d.ts +7 -0
  89. package/dist/src/ticket/dto/generate-pdf.dto.js +13 -0
  90. package/dist/src/ticket/dto/ticket.dto.d.ts +76 -0
  91. package/dist/src/ticket/dto/ticket.dto.js +29 -0
  92. package/dist/src/ticket/dto/update-ticket.dto.d.ts +125 -0
  93. package/dist/src/ticket/dto/update-ticket.dto.js +21 -0
  94. package/dist/src/ticket/exports.d.ts +10 -0
  95. package/dist/src/ticket/exports.js +27 -0
  96. package/dist/src/webhook/constants.d.ts +1 -0
  97. package/dist/src/webhook/constants.js +5 -0
  98. package/dist/types/prisma-schema/edge.js +56 -24
  99. package/dist/types/prisma-schema/index-browser.js +42 -15
  100. package/dist/types/prisma-schema/index.d.ts +8596 -3316
  101. package/dist/types/prisma-schema/index.js +56 -24
  102. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  103. package/dist/types/prisma-schema/package.json +8 -2
  104. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  105. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  106. package/dist/types/prisma-schema/runtime/index-browser.d.ts +3 -1
  107. package/dist/types/prisma-schema/runtime/index-browser.js +3 -3
  108. package/dist/types/prisma-schema/runtime/library.d.ts +205 -153
  109. package/dist/types/prisma-schema/runtime/library.js +55 -55
  110. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  111. package/dist/types/prisma-schema/runtime/wasm.js +17 -17
  112. package/dist/types/prisma-schema/schema.prisma +47 -1
  113. package/dist/types/prisma-schema/wasm.js +42 -15
  114. package/dist/types/schema.d.ts +1082 -48
  115. package/package.json +41 -37
  116. /package/dist/src/{location/dto/location.dto.d.ts → schema/location.schema.d.ts} +0 -0
@@ -8,7 +8,7 @@ export interface paths {
8
8
  };
9
9
  get?: never;
10
10
  put?: never;
11
- post: operations["AuthController_loginUser"];
11
+ post: operations["AuthController_loginAccount"];
12
12
  delete?: never;
13
13
  options?: never;
14
14
  head?: never;
@@ -959,6 +959,150 @@ export interface paths {
959
959
  patch?: never;
960
960
  trace?: never;
961
961
  };
962
+ "/ticket/create": {
963
+ parameters: {
964
+ query?: never;
965
+ header?: never;
966
+ path?: never;
967
+ cookie?: never;
968
+ };
969
+ get?: never;
970
+ put?: never;
971
+ post: operations["TicketController_create"];
972
+ delete?: never;
973
+ options?: never;
974
+ head?: never;
975
+ patch?: never;
976
+ trace?: never;
977
+ };
978
+ "/ticket/all": {
979
+ parameters: {
980
+ query?: never;
981
+ header?: never;
982
+ path?: never;
983
+ cookie?: never;
984
+ };
985
+ get: operations["TicketController_findAll"];
986
+ put?: never;
987
+ post?: never;
988
+ delete?: never;
989
+ options?: never;
990
+ head?: never;
991
+ patch?: never;
992
+ trace?: never;
993
+ };
994
+ "/ticket/find-by-id/{id}": {
995
+ parameters: {
996
+ query?: never;
997
+ header?: never;
998
+ path?: never;
999
+ cookie?: never;
1000
+ };
1001
+ get: operations["TicketController_findById"];
1002
+ put?: never;
1003
+ post?: never;
1004
+ delete?: never;
1005
+ options?: never;
1006
+ head?: never;
1007
+ patch?: never;
1008
+ trace?: never;
1009
+ };
1010
+ "/ticket/find-by-mail/{mail}": {
1011
+ parameters: {
1012
+ query?: never;
1013
+ header?: never;
1014
+ path?: never;
1015
+ cookie?: never;
1016
+ };
1017
+ get: operations["TicketController_findByMail"];
1018
+ put?: never;
1019
+ post?: never;
1020
+ delete?: never;
1021
+ options?: never;
1022
+ head?: never;
1023
+ patch?: never;
1024
+ trace?: never;
1025
+ };
1026
+ "/ticket/find-by-event/{eventId}": {
1027
+ parameters: {
1028
+ query?: never;
1029
+ header?: never;
1030
+ path?: never;
1031
+ cookie?: never;
1032
+ };
1033
+ get: operations["TicketController_findByEvent"];
1034
+ put?: never;
1035
+ post?: never;
1036
+ delete?: never;
1037
+ options?: never;
1038
+ head?: never;
1039
+ patch?: never;
1040
+ trace?: never;
1041
+ };
1042
+ "/ticket/update/{id}": {
1043
+ parameters: {
1044
+ query?: never;
1045
+ header?: never;
1046
+ path?: never;
1047
+ cookie?: never;
1048
+ };
1049
+ get?: never;
1050
+ put?: never;
1051
+ post?: never;
1052
+ delete?: never;
1053
+ options?: never;
1054
+ head?: never;
1055
+ patch: operations["TicketController_update"];
1056
+ trace?: never;
1057
+ };
1058
+ "/ticket/delete/{id}": {
1059
+ parameters: {
1060
+ query?: never;
1061
+ header?: never;
1062
+ path?: never;
1063
+ cookie?: never;
1064
+ };
1065
+ get?: never;
1066
+ put?: never;
1067
+ post?: never;
1068
+ delete: operations["TicketController_delete"];
1069
+ options?: never;
1070
+ head?: never;
1071
+ patch?: never;
1072
+ trace?: never;
1073
+ };
1074
+ "/ticket/generate-pdf/{id}": {
1075
+ parameters: {
1076
+ query?: never;
1077
+ header?: never;
1078
+ path?: never;
1079
+ cookie?: never;
1080
+ };
1081
+ get: operations["TicketController_generatePdf"];
1082
+ put?: never;
1083
+ post?: never;
1084
+ delete?: never;
1085
+ options?: never;
1086
+ head?: never;
1087
+ patch?: never;
1088
+ trace?: never;
1089
+ };
1090
+ "/ticket/find-ticket/{id}": {
1091
+ parameters: {
1092
+ query?: never;
1093
+ header?: never;
1094
+ path?: never;
1095
+ cookie?: never;
1096
+ };
1097
+ get: operations["TicketController_findTicket"];
1098
+ put?: never;
1099
+ post?: never;
1100
+ delete?: never;
1101
+ options?: never;
1102
+ head?: never;
1103
+ patch?: never;
1104
+ trace?: never;
1105
+ };
962
1106
  "/webhook": {
963
1107
  parameters: {
964
1108
  query?: never;
@@ -975,6 +1119,86 @@ export interface paths {
975
1119
  patch?: never;
976
1120
  trace?: never;
977
1121
  };
1122
+ "/otp/send": {
1123
+ parameters: {
1124
+ query?: never;
1125
+ header?: never;
1126
+ path?: never;
1127
+ cookie?: never;
1128
+ };
1129
+ get?: never;
1130
+ put?: never;
1131
+ post: operations["OtpController_sendOtp"];
1132
+ delete?: never;
1133
+ options?: never;
1134
+ head?: never;
1135
+ patch?: never;
1136
+ trace?: never;
1137
+ };
1138
+ "/otp/verify": {
1139
+ parameters: {
1140
+ query?: never;
1141
+ header?: never;
1142
+ path?: never;
1143
+ cookie?: never;
1144
+ };
1145
+ get?: never;
1146
+ put?: never;
1147
+ post: operations["OtpController_verifyOtp"];
1148
+ delete?: never;
1149
+ options?: never;
1150
+ head?: never;
1151
+ patch?: never;
1152
+ trace?: never;
1153
+ };
1154
+ "/mi-expo/login-with-phone": {
1155
+ parameters: {
1156
+ query?: never;
1157
+ header?: never;
1158
+ path?: never;
1159
+ cookie?: never;
1160
+ };
1161
+ get?: never;
1162
+ put?: never;
1163
+ post: operations["MiExpoController_loginWithPhone"];
1164
+ delete?: never;
1165
+ options?: never;
1166
+ head?: never;
1167
+ patch?: never;
1168
+ trace?: never;
1169
+ };
1170
+ "/mi-expo/me": {
1171
+ parameters: {
1172
+ query?: never;
1173
+ header?: never;
1174
+ path?: never;
1175
+ cookie?: never;
1176
+ };
1177
+ get: operations["MiExpoController_me"];
1178
+ put?: never;
1179
+ post?: never;
1180
+ delete?: never;
1181
+ options?: never;
1182
+ head?: never;
1183
+ patch: operations["MiExpoController_updateMe"];
1184
+ trace?: never;
1185
+ };
1186
+ "/mi-expo/login": {
1187
+ parameters: {
1188
+ query?: never;
1189
+ header?: never;
1190
+ path?: never;
1191
+ cookie?: never;
1192
+ };
1193
+ get?: never;
1194
+ put?: never;
1195
+ post: operations["MiExpoController_loginUsernamePassword"];
1196
+ delete?: never;
1197
+ options?: never;
1198
+ head?: never;
1199
+ patch?: never;
1200
+ trace?: never;
1201
+ };
978
1202
  }
979
1203
  export type webhooks = Record<string, never>;
980
1204
  export interface components {
@@ -1099,7 +1323,11 @@ export interface components {
1099
1323
  profiles: {
1100
1324
  id: string;
1101
1325
  shortId: number;
1326
+ firstTimeMiExpo: boolean;
1327
+ username: string | null;
1328
+ password: string | null;
1102
1329
  phoneNumber: string;
1330
+ isPhoneVerified: boolean;
1103
1331
  secondaryPhoneNumber: string | null;
1104
1332
  fullName: string;
1105
1333
  firstName: string | null;
@@ -1126,7 +1354,11 @@ export interface components {
1126
1354
  profiles: {
1127
1355
  id: string;
1128
1356
  shortId: number;
1357
+ firstTimeMiExpo: boolean;
1358
+ username: string | null;
1359
+ password: string | null;
1129
1360
  phoneNumber: string;
1361
+ isPhoneVerified: boolean;
1130
1362
  secondaryPhoneNumber: string | null;
1131
1363
  fullName: string;
1132
1364
  firstName: string | null;
@@ -1803,7 +2035,11 @@ export interface components {
1803
2035
  profiles: {
1804
2036
  id: string;
1805
2037
  shortId: number;
2038
+ firstTimeMiExpo: boolean;
2039
+ username: string | null;
2040
+ password: string | null;
1806
2041
  phoneNumber: string;
2042
+ isPhoneVerified: boolean;
1807
2043
  secondaryPhoneNumber: string | null;
1808
2044
  fullName: string;
1809
2045
  firstName: string | null;
@@ -1838,7 +2074,11 @@ export interface components {
1838
2074
  profiles: {
1839
2075
  id: string;
1840
2076
  shortId: number;
2077
+ firstTimeMiExpo: boolean;
2078
+ username: string | null;
2079
+ password: string | null;
1841
2080
  phoneNumber: string;
2081
+ isPhoneVerified: boolean;
1842
2082
  secondaryPhoneNumber: string | null;
1843
2083
  fullName: string;
1844
2084
  firstName: string | null;
@@ -1891,7 +2131,11 @@ export interface components {
1891
2131
  profiles: {
1892
2132
  id: string;
1893
2133
  shortId: number;
2134
+ firstTimeMiExpo: boolean;
2135
+ username: string | null;
2136
+ password: string | null;
1894
2137
  phoneNumber: string;
2138
+ isPhoneVerified: boolean;
1895
2139
  secondaryPhoneNumber: string | null;
1896
2140
  fullName: string;
1897
2141
  firstName: string | null;
@@ -1925,7 +2169,11 @@ export interface components {
1925
2169
  profiles: {
1926
2170
  id: string;
1927
2171
  shortId: number;
2172
+ firstTimeMiExpo: boolean;
2173
+ username: string | null;
2174
+ password: string | null;
1928
2175
  phoneNumber: string;
2176
+ isPhoneVerified: boolean;
1929
2177
  secondaryPhoneNumber: string | null;
1930
2178
  fullName: string;
1931
2179
  firstName: string | null;
@@ -1956,7 +2204,11 @@ export interface components {
1956
2204
  [key: string]: {
1957
2205
  id: string;
1958
2206
  shortId: number;
2207
+ firstTimeMiExpo: boolean;
2208
+ username: string | null;
2209
+ password: string | null;
1959
2210
  phoneNumber: string;
2211
+ isPhoneVerified: boolean;
1960
2212
  secondaryPhoneNumber: string | null;
1961
2213
  fullName: string;
1962
2214
  firstName: string | null;
@@ -1989,7 +2241,11 @@ export interface components {
1989
2241
  FindByPhoneNumberResponseDto: {
1990
2242
  id: string;
1991
2243
  shortId: number;
2244
+ firstTimeMiExpo: boolean;
2245
+ username: string | null;
2246
+ password: string | null;
1992
2247
  phoneNumber: string;
2248
+ isPhoneVerified: boolean;
1993
2249
  secondaryPhoneNumber: string | null;
1994
2250
  fullName: string;
1995
2251
  firstName: string | null;
@@ -2030,6 +2286,8 @@ export interface components {
2030
2286
  phoneNumber: string;
2031
2287
  profilePictureUrl: string | null;
2032
2288
  secondaryPhoneNumber: string | null;
2289
+ username: string | null;
2290
+ password: string | null;
2033
2291
  comments?: {
2034
2292
  content: string;
2035
2293
  isSolvable: boolean;
@@ -2072,7 +2330,10 @@ export interface components {
2072
2330
  FindByIdProfileResponseDto: {
2073
2331
  id: string;
2074
2332
  shortId: number;
2333
+ firstTimeMiExpo: boolean;
2334
+ username: string | null;
2075
2335
  phoneNumber: string;
2336
+ isPhoneVerified: boolean;
2076
2337
  secondaryPhoneNumber: string | null;
2077
2338
  fullName: string;
2078
2339
  firstName: string | null;
@@ -2126,7 +2387,11 @@ export interface components {
2126
2387
  DeleteProfileResponseDto: {
2127
2388
  id: string;
2128
2389
  shortId: number;
2390
+ firstTimeMiExpo: boolean;
2391
+ username: string | null;
2392
+ password: string | null;
2129
2393
  phoneNumber: string;
2394
+ isPhoneVerified: boolean;
2130
2395
  secondaryPhoneNumber: string | null;
2131
2396
  fullName: string;
2132
2397
  firstName: string | null;
@@ -2157,6 +2422,9 @@ export interface components {
2157
2422
  secondaryPhoneNumber?: string | null;
2158
2423
  isInTrash?: boolean;
2159
2424
  movedToTrashDate?: string | null;
2425
+ username?: string | null;
2426
+ password?: string | null;
2427
+ firstTimeMiExpo?: boolean;
2160
2428
  residence?: {
2161
2429
  city: string;
2162
2430
  country: string;
@@ -2283,51 +2551,370 @@ export interface components {
2283
2551
  GetLastMessageTimestampResponseDto: {
2284
2552
  timestamp: number;
2285
2553
  };
2286
- };
2287
- responses: never;
2288
- parameters: never;
2289
- requestBodies: never;
2290
- headers: never;
2291
- pathItems: never;
2292
- }
2293
- export type $defs = Record<string, never>;
2294
- export interface operations {
2295
- AuthController_loginUser: {
2296
- parameters: {
2297
- query?: never;
2298
- header?: never;
2299
- path?: never;
2300
- cookie?: never;
2554
+ CreateTicketDto: {
2555
+ eventId: string;
2556
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2557
+ status: "BOOKED" | "PAID" | "FREE";
2558
+ fullName: string;
2559
+ mail: string;
2301
2560
  };
2302
- requestBody: {
2303
- content: {
2304
- "application/json": components["schemas"]["LoginDto"];
2305
- };
2561
+ CreateTicketResponseDto: {
2562
+ id: string;
2563
+ eventId: string;
2564
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2565
+ status: "BOOKED" | "PAID" | "FREE";
2566
+ fullName: string;
2567
+ mail: string;
2568
+ created_at: string;
2569
+ updated_at: string;
2306
2570
  };
2307
- responses: {
2308
- 200: {
2309
- headers: {
2310
- [name: string]: unknown;
2311
- };
2312
- content: {
2313
- "application/json": components["schemas"]["LoginResponseDto"];
2314
- };
2315
- };
2316
- 401: {
2317
- headers: {
2318
- [name: string]: unknown;
2571
+ FindAllTicketsResponseDto: {
2572
+ tickets: {
2573
+ id: string;
2574
+ eventId: string;
2575
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2576
+ status: "BOOKED" | "PAID" | "FREE";
2577
+ fullName: string;
2578
+ mail: string;
2579
+ created_at: string;
2580
+ updated_at: string;
2581
+ event: {
2582
+ name: string;
2583
+ date: string;
2584
+ location: string;
2319
2585
  };
2320
- content: {
2321
- "application/json": components["schemas"]["ErrorDto"];
2586
+ }[];
2587
+ };
2588
+ FindByIdTicketResponseDto: {
2589
+ ticket: {
2590
+ id: string;
2591
+ eventId: string;
2592
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2593
+ status: "BOOKED" | "PAID" | "FREE";
2594
+ fullName: string;
2595
+ mail: string;
2596
+ created_at: string;
2597
+ updated_at: string;
2598
+ event: {
2599
+ name: string;
2600
+ date: string;
2601
+ location: string;
2322
2602
  };
2323
2603
  };
2324
2604
  };
2325
- };
2326
- AuthController_refreshToken: {
2327
- parameters: {
2328
- query?: never;
2329
- header?: never;
2330
- path?: never;
2605
+ FindByMailTicketResponseDto: {
2606
+ tickets: {
2607
+ id: string;
2608
+ eventId: string;
2609
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2610
+ status: "BOOKED" | "PAID" | "FREE";
2611
+ fullName: string;
2612
+ mail: string;
2613
+ created_at: string;
2614
+ updated_at: string;
2615
+ event: {
2616
+ name: string;
2617
+ date: string;
2618
+ location: string;
2619
+ };
2620
+ }[];
2621
+ };
2622
+ FindByEventTicketResponseDto: {
2623
+ tickets: {
2624
+ id: string;
2625
+ eventId: string;
2626
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2627
+ status: "BOOKED" | "PAID" | "FREE";
2628
+ fullName: string;
2629
+ mail: string;
2630
+ created_at: string;
2631
+ updated_at: string;
2632
+ event: {
2633
+ name: string;
2634
+ date: string;
2635
+ location: string;
2636
+ };
2637
+ }[];
2638
+ };
2639
+ UpdateTicketDto: {
2640
+ type?: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2641
+ status?: "BOOKED" | "PAID" | "FREE";
2642
+ fullName?: string;
2643
+ mail?: string;
2644
+ };
2645
+ UpdateTicketResponseDto: {
2646
+ id: string;
2647
+ eventId: string;
2648
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2649
+ status: "BOOKED" | "PAID" | "FREE";
2650
+ fullName: string;
2651
+ mail: string;
2652
+ created_at: string;
2653
+ updated_at: string;
2654
+ };
2655
+ DeleteTicketResponseDto: {
2656
+ id: string;
2657
+ eventId: string;
2658
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2659
+ status: "BOOKED" | "PAID" | "FREE";
2660
+ fullName: string;
2661
+ mail: string;
2662
+ created_at: string;
2663
+ updated_at: string;
2664
+ };
2665
+ FindTicketResponseDto: {
2666
+ id: string;
2667
+ eventId: string;
2668
+ type: "PARTICIPANT" | "STAFF" | "SPECTATOR";
2669
+ status: "BOOKED" | "PAID" | "FREE";
2670
+ fullName: string;
2671
+ mail: string;
2672
+ created_at: string;
2673
+ updated_at: string;
2674
+ };
2675
+ SendOtpDto: {
2676
+ phoneNumber: string;
2677
+ };
2678
+ SendOtpResponseDto: {
2679
+ response: {
2680
+ hasVerified: boolean;
2681
+ hasUsername: boolean;
2682
+ success: true;
2683
+ } | {
2684
+ hasVerified: boolean;
2685
+ hasUsername: boolean;
2686
+ success: false;
2687
+ message: string;
2688
+ };
2689
+ };
2690
+ VerifyOtpDto: {
2691
+ phoneNumber: string;
2692
+ code: string;
2693
+ };
2694
+ VerifyOtpResponseDto: {
2695
+ success: boolean;
2696
+ profile: {
2697
+ id: string;
2698
+ shortId: number;
2699
+ firstTimeMiExpo: boolean;
2700
+ username: string | null;
2701
+ password: string | null;
2702
+ phoneNumber: string;
2703
+ isPhoneVerified: boolean;
2704
+ secondaryPhoneNumber: string | null;
2705
+ fullName: string;
2706
+ firstName: string | null;
2707
+ gender: string | null;
2708
+ birthDate: string | null;
2709
+ profilePictureUrl: string | null;
2710
+ instagram: string | null;
2711
+ mail: string | null;
2712
+ dni: string | null;
2713
+ alternativeNames: string[];
2714
+ birthLocationId: string | null;
2715
+ residenceLocationId: string | null;
2716
+ isInTrash: boolean;
2717
+ movedToTrashDate: string | null;
2718
+ created_at: string;
2719
+ updated_at: string;
2720
+ residenceLocation: {
2721
+ city: string;
2722
+ country: string;
2723
+ latitude: number;
2724
+ longitude: number;
2725
+ } | null;
2726
+ birthLocation: {
2727
+ city: string;
2728
+ country: string;
2729
+ latitude: number;
2730
+ longitude: number;
2731
+ } | null;
2732
+ };
2733
+ };
2734
+ LoginWithPhoneDto: {
2735
+ phoneNumber: string;
2736
+ };
2737
+ LoginWithPhoneResponseDto: {
2738
+ tokens: {
2739
+ accessToken: string;
2740
+ refreshToken: string;
2741
+ expiresIn: number;
2742
+ };
2743
+ profile: {
2744
+ id: string;
2745
+ shortId: number;
2746
+ firstTimeMiExpo: boolean;
2747
+ username: string | null;
2748
+ phoneNumber: string;
2749
+ isPhoneVerified: boolean;
2750
+ secondaryPhoneNumber: string | null;
2751
+ fullName: string;
2752
+ firstName: string | null;
2753
+ gender: string | null;
2754
+ birthDate: string | null;
2755
+ profilePictureUrl: string | null;
2756
+ instagram: string | null;
2757
+ mail: string | null;
2758
+ dni: string | null;
2759
+ alternativeNames: string[];
2760
+ birthLocationId: string | null;
2761
+ residenceLocationId: string | null;
2762
+ isInTrash: boolean;
2763
+ movedToTrashDate: string | null;
2764
+ created_at: string;
2765
+ updated_at: string;
2766
+ };
2767
+ };
2768
+ GetMiExpoMeResponseDto: {
2769
+ id: string;
2770
+ shortId: number;
2771
+ firstTimeMiExpo: boolean;
2772
+ username: string | null;
2773
+ phoneNumber: string;
2774
+ isPhoneVerified: boolean;
2775
+ secondaryPhoneNumber: string | null;
2776
+ fullName: string;
2777
+ firstName: string | null;
2778
+ gender: string | null;
2779
+ birthDate: string | null;
2780
+ profilePictureUrl: string | null;
2781
+ instagram: string | null;
2782
+ mail: string | null;
2783
+ dni: string | null;
2784
+ alternativeNames: string[];
2785
+ birthLocationId: string | null;
2786
+ residenceLocationId: string | null;
2787
+ isInTrash: boolean;
2788
+ movedToTrashDate: string | null;
2789
+ created_at: string;
2790
+ updated_at: string;
2791
+ residenceLocation: {
2792
+ id: string;
2793
+ latitude: number;
2794
+ longitude: number;
2795
+ country: string;
2796
+ state: string;
2797
+ city: string;
2798
+ created_at: string;
2799
+ updated_at: string;
2800
+ } | null;
2801
+ birthLocation: {
2802
+ id: string;
2803
+ latitude: number;
2804
+ longitude: number;
2805
+ country: string;
2806
+ state: string;
2807
+ city: string;
2808
+ created_at: string;
2809
+ updated_at: string;
2810
+ } | null;
2811
+ };
2812
+ UpdateMiExpoMeDto: {
2813
+ birthDate: string | null;
2814
+ dni: string | null;
2815
+ fullName: string;
2816
+ gender: string | null;
2817
+ instagram: string | null;
2818
+ mail: string | null;
2819
+ password: string | null;
2820
+ phoneNumber: string;
2821
+ secondaryPhoneNumber: string | null;
2822
+ username: string | null;
2823
+ birth: {
2824
+ city: string;
2825
+ country: string;
2826
+ latitude: number;
2827
+ longitude: number;
2828
+ state: string;
2829
+ };
2830
+ residence: {
2831
+ city: string;
2832
+ country: string;
2833
+ latitude: number;
2834
+ longitude: number;
2835
+ state: string;
2836
+ };
2837
+ };
2838
+ LoginMiExpoDto: {
2839
+ username: string;
2840
+ password: string;
2841
+ };
2842
+ LoginMiExpoResponseDto: {
2843
+ user: {
2844
+ id: string;
2845
+ shortId: number;
2846
+ firstTimeMiExpo: boolean;
2847
+ username: string | null;
2848
+ phoneNumber: string;
2849
+ isPhoneVerified: boolean;
2850
+ secondaryPhoneNumber: string | null;
2851
+ fullName: string;
2852
+ firstName: string | null;
2853
+ gender: string | null;
2854
+ birthDate: string | null;
2855
+ profilePictureUrl: string | null;
2856
+ instagram: string | null;
2857
+ mail: string | null;
2858
+ dni: string | null;
2859
+ alternativeNames: string[];
2860
+ birthLocationId: string | null;
2861
+ residenceLocationId: string | null;
2862
+ isInTrash: boolean;
2863
+ movedToTrashDate: string | null;
2864
+ created_at: string;
2865
+ updated_at: string;
2866
+ };
2867
+ backendTokens: {
2868
+ accessToken: string;
2869
+ refreshToken: string;
2870
+ expiresIn: number;
2871
+ };
2872
+ };
2873
+ };
2874
+ responses: never;
2875
+ parameters: never;
2876
+ requestBodies: never;
2877
+ headers: never;
2878
+ pathItems: never;
2879
+ }
2880
+ export type $defs = Record<string, never>;
2881
+ export interface operations {
2882
+ AuthController_loginAccount: {
2883
+ parameters: {
2884
+ query?: never;
2885
+ header?: never;
2886
+ path?: never;
2887
+ cookie?: never;
2888
+ };
2889
+ requestBody: {
2890
+ content: {
2891
+ "application/json": components["schemas"]["LoginDto"];
2892
+ };
2893
+ };
2894
+ responses: {
2895
+ 200: {
2896
+ headers: {
2897
+ [name: string]: unknown;
2898
+ };
2899
+ content: {
2900
+ "application/json": components["schemas"]["LoginResponseDto"];
2901
+ };
2902
+ };
2903
+ 401: {
2904
+ headers: {
2905
+ [name: string]: unknown;
2906
+ };
2907
+ content: {
2908
+ "application/json": components["schemas"]["ErrorDto"];
2909
+ };
2910
+ };
2911
+ };
2912
+ };
2913
+ AuthController_refreshToken: {
2914
+ parameters: {
2915
+ query?: never;
2916
+ header?: never;
2917
+ path?: never;
2331
2918
  cookie?: never;
2332
2919
  };
2333
2920
  requestBody?: never;
@@ -4209,20 +4796,285 @@ export interface operations {
4209
4796
  };
4210
4797
  };
4211
4798
  };
4212
- WebhookController_verify: {
4799
+ TicketController_create: {
4213
4800
  parameters: {
4214
- query: {
4215
- "hub.mode": string;
4216
- "hub.verify_token": string;
4217
- "hub.challenge": string;
4218
- };
4801
+ query?: never;
4219
4802
  header?: never;
4220
4803
  path?: never;
4221
4804
  cookie?: never;
4222
4805
  };
4223
- requestBody?: never;
4806
+ requestBody: {
4807
+ content: {
4808
+ "application/json": components["schemas"]["CreateTicketDto"];
4809
+ };
4810
+ };
4224
4811
  responses: {
4225
- 200: {
4812
+ 201: {
4813
+ headers: {
4814
+ [name: string]: unknown;
4815
+ };
4816
+ content: {
4817
+ "application/json": components["schemas"]["CreateTicketResponseDto"];
4818
+ };
4819
+ };
4820
+ 404: {
4821
+ headers: {
4822
+ [name: string]: unknown;
4823
+ };
4824
+ content: {
4825
+ "application/json": components["schemas"]["ErrorDto"];
4826
+ };
4827
+ };
4828
+ };
4829
+ };
4830
+ TicketController_findAll: {
4831
+ parameters: {
4832
+ query?: never;
4833
+ header?: never;
4834
+ path?: never;
4835
+ cookie?: never;
4836
+ };
4837
+ requestBody?: never;
4838
+ responses: {
4839
+ 200: {
4840
+ headers: {
4841
+ [name: string]: unknown;
4842
+ };
4843
+ content: {
4844
+ "application/json": components["schemas"]["FindAllTicketsResponseDto"];
4845
+ };
4846
+ };
4847
+ };
4848
+ };
4849
+ TicketController_findById: {
4850
+ parameters: {
4851
+ query?: never;
4852
+ header?: never;
4853
+ path: {
4854
+ id: string;
4855
+ };
4856
+ cookie?: never;
4857
+ };
4858
+ requestBody?: never;
4859
+ responses: {
4860
+ 200: {
4861
+ headers: {
4862
+ [name: string]: unknown;
4863
+ };
4864
+ content: {
4865
+ "application/json": components["schemas"]["FindByIdTicketResponseDto"];
4866
+ };
4867
+ };
4868
+ 404: {
4869
+ headers: {
4870
+ [name: string]: unknown;
4871
+ };
4872
+ content: {
4873
+ "application/json": components["schemas"]["ErrorDto"];
4874
+ };
4875
+ };
4876
+ };
4877
+ };
4878
+ TicketController_findByMail: {
4879
+ parameters: {
4880
+ query?: never;
4881
+ header?: never;
4882
+ path: {
4883
+ mail: string;
4884
+ };
4885
+ cookie?: never;
4886
+ };
4887
+ requestBody?: never;
4888
+ responses: {
4889
+ 200: {
4890
+ headers: {
4891
+ [name: string]: unknown;
4892
+ };
4893
+ content: {
4894
+ "application/json": components["schemas"]["FindByMailTicketResponseDto"];
4895
+ };
4896
+ };
4897
+ };
4898
+ };
4899
+ TicketController_findByEvent: {
4900
+ parameters: {
4901
+ query?: never;
4902
+ header?: never;
4903
+ path: {
4904
+ eventId: string;
4905
+ };
4906
+ cookie?: never;
4907
+ };
4908
+ requestBody?: never;
4909
+ responses: {
4910
+ 200: {
4911
+ headers: {
4912
+ [name: string]: unknown;
4913
+ };
4914
+ content: {
4915
+ "application/json": components["schemas"]["FindByEventTicketResponseDto"];
4916
+ };
4917
+ };
4918
+ 404: {
4919
+ headers: {
4920
+ [name: string]: unknown;
4921
+ };
4922
+ content: {
4923
+ "application/json": components["schemas"]["ErrorDto"];
4924
+ };
4925
+ };
4926
+ };
4927
+ };
4928
+ TicketController_update: {
4929
+ parameters: {
4930
+ query?: never;
4931
+ header?: never;
4932
+ path: {
4933
+ id: string;
4934
+ };
4935
+ cookie?: never;
4936
+ };
4937
+ requestBody: {
4938
+ content: {
4939
+ "application/json": components["schemas"]["UpdateTicketDto"];
4940
+ };
4941
+ };
4942
+ responses: {
4943
+ 200: {
4944
+ headers: {
4945
+ [name: string]: unknown;
4946
+ };
4947
+ content: {
4948
+ "application/json": components["schemas"]["UpdateTicketResponseDto"];
4949
+ };
4950
+ };
4951
+ 404: {
4952
+ headers: {
4953
+ [name: string]: unknown;
4954
+ };
4955
+ content: {
4956
+ "application/json": components["schemas"]["ErrorDto"];
4957
+ };
4958
+ };
4959
+ };
4960
+ };
4961
+ TicketController_delete: {
4962
+ parameters: {
4963
+ query?: never;
4964
+ header?: never;
4965
+ path: {
4966
+ id: string;
4967
+ };
4968
+ cookie?: never;
4969
+ };
4970
+ requestBody?: never;
4971
+ responses: {
4972
+ 200: {
4973
+ headers: {
4974
+ [name: string]: unknown;
4975
+ };
4976
+ content: {
4977
+ "application/json": components["schemas"]["DeleteTicketResponseDto"];
4978
+ };
4979
+ };
4980
+ 404: {
4981
+ headers: {
4982
+ [name: string]: unknown;
4983
+ };
4984
+ content: {
4985
+ "application/json": components["schemas"]["ErrorDto"];
4986
+ };
4987
+ };
4988
+ };
4989
+ };
4990
+ TicketController_generatePdf: {
4991
+ parameters: {
4992
+ query?: never;
4993
+ header?: never;
4994
+ path: {
4995
+ id: string;
4996
+ };
4997
+ cookie?: never;
4998
+ };
4999
+ requestBody?: never;
5000
+ responses: {
5001
+ 200: {
5002
+ headers: {
5003
+ [name: string]: unknown;
5004
+ };
5005
+ content: {
5006
+ "application/json": components["schemas"]["Buffer"];
5007
+ };
5008
+ };
5009
+ 404: {
5010
+ headers: {
5011
+ [name: string]: unknown;
5012
+ };
5013
+ content: {
5014
+ "application/json": components["schemas"]["ErrorDto"];
5015
+ };
5016
+ };
5017
+ };
5018
+ };
5019
+ TicketController_findTicket: {
5020
+ parameters: {
5021
+ query?: never;
5022
+ header?: never;
5023
+ path: {
5024
+ id: string;
5025
+ };
5026
+ cookie?: never;
5027
+ };
5028
+ requestBody?: never;
5029
+ responses: {
5030
+ 200: {
5031
+ headers: {
5032
+ [name: string]: unknown;
5033
+ };
5034
+ content: {
5035
+ "application/json": components["schemas"]["FindTicketResponseDto"];
5036
+ };
5037
+ };
5038
+ 404: {
5039
+ headers: {
5040
+ [name: string]: unknown;
5041
+ };
5042
+ content: {
5043
+ "application/json": components["schemas"]["ErrorDto"];
5044
+ };
5045
+ };
5046
+ 409: {
5047
+ headers: {
5048
+ [name: string]: unknown;
5049
+ };
5050
+ content: {
5051
+ "application/json": components["schemas"]["ErrorDto"];
5052
+ };
5053
+ };
5054
+ 500: {
5055
+ headers: {
5056
+ [name: string]: unknown;
5057
+ };
5058
+ content: {
5059
+ "application/json": components["schemas"]["ErrorDto"];
5060
+ };
5061
+ };
5062
+ };
5063
+ };
5064
+ WebhookController_verify: {
5065
+ parameters: {
5066
+ query: {
5067
+ "hub.mode": string;
5068
+ "hub.verify_token": string;
5069
+ "hub.challenge": string;
5070
+ };
5071
+ header?: never;
5072
+ path?: never;
5073
+ cookie?: never;
5074
+ };
5075
+ requestBody?: never;
5076
+ responses: {
5077
+ 200: {
4226
5078
  headers: {
4227
5079
  [name: string]: unknown;
4228
5080
  };
@@ -4263,4 +5115,186 @@ export interface operations {
4263
5115
  };
4264
5116
  };
4265
5117
  };
5118
+ OtpController_sendOtp: {
5119
+ parameters: {
5120
+ query?: never;
5121
+ header?: never;
5122
+ path?: never;
5123
+ cookie?: never;
5124
+ };
5125
+ requestBody: {
5126
+ content: {
5127
+ "application/json": components["schemas"]["SendOtpDto"];
5128
+ };
5129
+ };
5130
+ responses: {
5131
+ 200: {
5132
+ headers: {
5133
+ [name: string]: unknown;
5134
+ };
5135
+ content: {
5136
+ "application/json": components["schemas"]["SendOtpResponseDto"];
5137
+ };
5138
+ };
5139
+ 400: {
5140
+ headers: {
5141
+ [name: string]: unknown;
5142
+ };
5143
+ content: {
5144
+ "application/json": components["schemas"]["ErrorDto"];
5145
+ };
5146
+ };
5147
+ 404: {
5148
+ headers: {
5149
+ [name: string]: unknown;
5150
+ };
5151
+ content: {
5152
+ "application/json": components["schemas"]["ErrorDto"];
5153
+ };
5154
+ };
5155
+ };
5156
+ };
5157
+ OtpController_verifyOtp: {
5158
+ parameters: {
5159
+ query?: never;
5160
+ header?: never;
5161
+ path?: never;
5162
+ cookie?: never;
5163
+ };
5164
+ requestBody: {
5165
+ content: {
5166
+ "application/json": components["schemas"]["VerifyOtpDto"];
5167
+ };
5168
+ };
5169
+ responses: {
5170
+ 200: {
5171
+ headers: {
5172
+ [name: string]: unknown;
5173
+ };
5174
+ content: {
5175
+ "application/json": components["schemas"]["VerifyOtpResponseDto"];
5176
+ };
5177
+ };
5178
+ 400: {
5179
+ headers: {
5180
+ [name: string]: unknown;
5181
+ };
5182
+ content: {
5183
+ "application/json": components["schemas"]["ErrorDto"];
5184
+ };
5185
+ };
5186
+ 404: {
5187
+ headers: {
5188
+ [name: string]: unknown;
5189
+ };
5190
+ content: {
5191
+ "application/json": components["schemas"]["ErrorDto"];
5192
+ };
5193
+ };
5194
+ };
5195
+ };
5196
+ MiExpoController_loginWithPhone: {
5197
+ parameters: {
5198
+ query?: never;
5199
+ header?: never;
5200
+ path?: never;
5201
+ cookie?: never;
5202
+ };
5203
+ requestBody: {
5204
+ content: {
5205
+ "application/json": components["schemas"]["LoginWithPhoneDto"];
5206
+ };
5207
+ };
5208
+ responses: {
5209
+ 200: {
5210
+ headers: {
5211
+ [name: string]: unknown;
5212
+ };
5213
+ content: {
5214
+ "application/json": components["schemas"]["LoginWithPhoneResponseDto"];
5215
+ };
5216
+ };
5217
+ 401: {
5218
+ headers: {
5219
+ [name: string]: unknown;
5220
+ };
5221
+ content: {
5222
+ "application/json": components["schemas"]["ErrorDto"];
5223
+ };
5224
+ };
5225
+ };
5226
+ };
5227
+ MiExpoController_me: {
5228
+ parameters: {
5229
+ query?: never;
5230
+ header?: never;
5231
+ path?: never;
5232
+ cookie?: never;
5233
+ };
5234
+ requestBody?: never;
5235
+ responses: {
5236
+ 200: {
5237
+ headers: {
5238
+ [name: string]: unknown;
5239
+ };
5240
+ content: {
5241
+ "application/json": components["schemas"]["GetMiExpoMeResponseDto"];
5242
+ };
5243
+ };
5244
+ };
5245
+ };
5246
+ MiExpoController_updateMe: {
5247
+ parameters: {
5248
+ query?: never;
5249
+ header?: never;
5250
+ path?: never;
5251
+ cookie?: never;
5252
+ };
5253
+ requestBody: {
5254
+ content: {
5255
+ "application/json": components["schemas"]["UpdateMiExpoMeDto"];
5256
+ };
5257
+ };
5258
+ responses: {
5259
+ 200: {
5260
+ headers: {
5261
+ [name: string]: unknown;
5262
+ };
5263
+ content: {
5264
+ "application/json": components["schemas"]["GetMiExpoMeResponseDto"];
5265
+ };
5266
+ };
5267
+ };
5268
+ };
5269
+ MiExpoController_loginUsernamePassword: {
5270
+ parameters: {
5271
+ query?: never;
5272
+ header?: never;
5273
+ path?: never;
5274
+ cookie?: never;
5275
+ };
5276
+ requestBody: {
5277
+ content: {
5278
+ "application/json": components["schemas"]["LoginMiExpoDto"];
5279
+ };
5280
+ };
5281
+ responses: {
5282
+ 200: {
5283
+ headers: {
5284
+ [name: string]: unknown;
5285
+ };
5286
+ content: {
5287
+ "application/json": components["schemas"]["LoginMiExpoResponseDto"];
5288
+ };
5289
+ };
5290
+ 401: {
5291
+ headers: {
5292
+ [name: string]: unknown;
5293
+ };
5294
+ content: {
5295
+ "application/json": components["schemas"]["ErrorDto"];
5296
+ };
5297
+ };
5298
+ };
5299
+ };
4266
5300
  }