expo-backend-types 0.30.0-EXPO-308-auth.10 → 0.30.0-EXPO-309-Migrar-Configuracion.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 (55) hide show
  1. package/dist/src/exports.d.ts +0 -1
  2. package/dist/src/exports.js +0 -1
  3. package/dist/src/i18n/es.d.ts +0 -19
  4. package/dist/src/i18n/es.js +0 -19
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  7. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  8. package/dist/src/profile/dto/create-profile.dto.d.ts +10 -26
  9. package/dist/src/profile/dto/delete-profile.dto.d.ts +4 -28
  10. package/dist/src/profile/dto/find-all-profile.dto.d.ts +4 -44
  11. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +8 -72
  12. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +4 -28
  13. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +4 -28
  14. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +4 -44
  15. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +4 -44
  16. package/dist/src/profile/dto/find-trash.dto.d.ts +3 -7
  17. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +4 -44
  18. package/dist/src/profile/dto/profile.dto.d.ts +2 -90
  19. package/dist/src/profile/dto/profile.dto.js +4 -75
  20. package/dist/src/profile/dto/update-profile.dto.d.ts +8 -32
  21. package/dist/src/tag/dto/massive-allocation.dto.d.ts +4 -44
  22. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +4 -44
  23. package/dist/types/prisma-schema/edge.js +24 -38
  24. package/dist/types/prisma-schema/index-browser.js +9 -18
  25. package/dist/types/prisma-schema/index.d.ts +553 -3904
  26. package/dist/types/prisma-schema/index.js +24 -38
  27. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  28. package/dist/types/prisma-schema/package.json +2 -2
  29. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  30. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  31. package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -1
  32. package/dist/types/prisma-schema/runtime/library.d.ts +133 -177
  33. package/dist/types/prisma-schema/runtime/library.js +51 -51
  34. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  35. package/dist/types/prisma-schema/runtime/wasm.js +19 -19
  36. package/dist/types/prisma-schema/schema.prisma +1 -22
  37. package/dist/types/prisma-schema/wasm.js +9 -18
  38. package/dist/types/schema.d.ts +2 -277
  39. package/package.json +4 -5
  40. package/dist/src/auth/dto/login-mi-expo.dto.d.ts +0 -327
  41. package/dist/src/auth/dto/login-mi-expo.dto.js +0 -31
  42. package/dist/src/image/constants.d.ts +0 -5
  43. package/dist/src/image/constants.js +0 -9
  44. package/dist/src/otp/constants.d.ts +0 -2
  45. package/dist/src/otp/constants.js +0 -6
  46. package/dist/src/otp/dto/send-otp.dto.d.ts +0 -158
  47. package/dist/src/otp/dto/send-otp.dto.js +0 -35
  48. package/dist/src/otp/dto/verify-otp.dto.d.ts +0 -286
  49. package/dist/src/otp/dto/verify-otp.dto.js +0 -28
  50. package/dist/src/otp/exports.d.ts +0 -2
  51. package/dist/src/otp/exports.js +0 -19
  52. package/dist/src/prisma/constants.d.ts +0 -1
  53. package/dist/src/prisma/constants.js +0 -5
  54. package/dist/src/webhook/constants.d.ts +0 -1
  55. package/dist/src/webhook/constants.js +0 -5
@@ -44,15 +44,7 @@ model Profile {
44
44
  id String @id @default(uuid())
45
45
  shortId Int @map("short_id")
46
46
 
47
- firstTimeMiExpo Boolean @default(true) @map("first_time_mi_expo")
48
-
49
- username String? @unique
50
- password String?
51
-
52
- phoneNumber String @unique @map("phone_number")
53
- isPhoneVerified Boolean @default(false) @map("is_phone_verified")
54
- otp Otp[]
55
-
47
+ phoneNumber String @unique @map("phone_number")
56
48
  secondaryPhoneNumber String? @unique @map("secondary_phone_number")
57
49
  fullName String @map("full_name")
58
50
  firstName String? @map("first_name")
@@ -83,19 +75,6 @@ model Profile {
83
75
  @@map("PROFILE")
84
76
  }
85
77
 
86
- model Otp {
87
- id String @id @default(uuid())
88
- code String
89
- ownerPhoneNumber String @map("account_id")
90
- owner Profile @relation(fields: [ownerPhoneNumber], references: [phoneNumber])
91
- expiresAt DateTime @map("expires_at")
92
-
93
- created_at DateTime @default(now())
94
- updated_at DateTime @updatedAt
95
-
96
- @@map("OTP")
97
- }
98
-
99
78
  model Location {
100
79
  id String @id @default(uuid())
101
80
  latitude Float
@@ -17,12 +17,12 @@ exports.Prisma = Prisma
17
17
  exports.$Enums = {}
18
18
 
19
19
  /**
20
- * Prisma Client JS version: 6.3.1
21
- * Query Engine version: acc0b9dd43eb689cbd20c9470515d719db10d0b0
20
+ * Prisma Client JS version: 5.22.0
21
+ * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
22
22
  */
23
23
  Prisma.prismaVersion = {
24
- client: "6.3.1",
25
- engine: "acc0b9dd43eb689cbd20c9470515d719db10d0b0"
24
+ client: "5.22.0",
25
+ engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
26
26
  }
27
27
 
28
28
  Prisma.PrismaClientKnownRequestError = () => {
@@ -50,6 +50,11 @@ Prisma.PrismaClientValidationError = () => {
50
50
  throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
51
51
  In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
52
52
  )}
53
+ Prisma.NotFoundError = () => {
54
+ const runtimeName = getRuntime().prettyName;
55
+ throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
56
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
57
+ )}
53
58
  Prisma.Decimal = Decimal
54
59
 
55
60
  /**
@@ -131,11 +136,7 @@ exports.Prisma.AccountScalarFieldEnum = {
131
136
  exports.Prisma.ProfileScalarFieldEnum = {
132
137
  id: 'id',
133
138
  shortId: 'shortId',
134
- firstTimeMiExpo: 'firstTimeMiExpo',
135
- username: 'username',
136
- password: 'password',
137
139
  phoneNumber: 'phoneNumber',
138
- isPhoneVerified: 'isPhoneVerified',
139
140
  secondaryPhoneNumber: 'secondaryPhoneNumber',
140
141
  fullName: 'fullName',
141
142
  firstName: 'firstName',
@@ -154,15 +155,6 @@ exports.Prisma.ProfileScalarFieldEnum = {
154
155
  updated_at: 'updated_at'
155
156
  };
156
157
 
157
- exports.Prisma.OtpScalarFieldEnum = {
158
- id: 'id',
159
- code: 'code',
160
- ownerPhoneNumber: 'ownerPhoneNumber',
161
- expiresAt: 'expiresAt',
162
- created_at: 'created_at',
163
- updated_at: 'updated_at'
164
- };
165
-
166
158
  exports.Prisma.LocationScalarFieldEnum = {
167
159
  id: 'id',
168
160
  latitude: 'latitude',
@@ -308,7 +300,6 @@ exports.TemplateCategory = exports.$Enums.TemplateCategory = {
308
300
  exports.Prisma.ModelName = {
309
301
  Account: 'Account',
310
302
  Profile: 'Profile',
311
- Otp: 'Otp',
312
303
  Location: 'Location',
313
304
  Comment: 'Comment',
314
305
  Tag: 'Tag',
@@ -8,7 +8,7 @@ export interface paths {
8
8
  };
9
9
  get?: never;
10
10
  put?: never;
11
- post: operations["AuthController_loginAccount"];
11
+ post: operations["AuthController_loginUser"];
12
12
  delete?: never;
13
13
  options?: never;
14
14
  head?: never;
@@ -31,22 +31,6 @@ export interface paths {
31
31
  patch?: never;
32
32
  trace?: never;
33
33
  };
34
- "/auth/login-mi-expo": {
35
- parameters: {
36
- query?: never;
37
- header?: never;
38
- path?: never;
39
- cookie?: never;
40
- };
41
- get?: never;
42
- put?: never;
43
- post: operations["AuthController_loginProfile"];
44
- delete?: never;
45
- options?: never;
46
- head?: never;
47
- patch?: never;
48
- trace?: never;
49
- };
50
34
  "/tag/create": {
51
35
  parameters: {
52
36
  query?: never;
@@ -959,38 +943,6 @@ export interface paths {
959
943
  patch?: never;
960
944
  trace?: never;
961
945
  };
962
- "/otp/send": {
963
- parameters: {
964
- query?: never;
965
- header?: never;
966
- path?: never;
967
- cookie?: never;
968
- };
969
- get?: never;
970
- put?: never;
971
- post: operations["OtpController_sendOtp"];
972
- delete?: never;
973
- options?: never;
974
- head?: never;
975
- patch?: never;
976
- trace?: never;
977
- };
978
- "/otp/verify": {
979
- parameters: {
980
- query?: never;
981
- header?: never;
982
- path?: never;
983
- cookie?: never;
984
- };
985
- get?: never;
986
- put?: never;
987
- post: operations["OtpController_verifyOtp"];
988
- delete?: never;
989
- options?: never;
990
- head?: never;
991
- patch?: never;
992
- trace?: never;
993
- };
994
946
  }
995
947
  export type webhooks = Record<string, never>;
996
948
  export interface components {
@@ -1025,37 +977,6 @@ export interface components {
1025
977
  accessToken: string;
1026
978
  expiresIn: number;
1027
979
  };
1028
- LoginMiExpoResponseDto: {
1029
- user: {
1030
- id: string;
1031
- shortId: number;
1032
- firstTimeMiExpo: boolean;
1033
- username: string | null;
1034
- phoneNumber: string;
1035
- isPhoneVerified: boolean;
1036
- secondaryPhoneNumber: string | null;
1037
- fullName: string;
1038
- firstName: string | null;
1039
- gender: string | null;
1040
- birthDate: string | null;
1041
- profilePictureUrl: string | null;
1042
- instagram: string | null;
1043
- mail: string | null;
1044
- dni: string | null;
1045
- alternativeNames: string[];
1046
- birthLocationId: string | null;
1047
- residenceLocationId: string | null;
1048
- isInTrash: boolean;
1049
- movedToTrashDate: string | null;
1050
- created_at: string;
1051
- updated_at: string;
1052
- };
1053
- backendTokens: {
1054
- accessToken: string;
1055
- refreshToken: string;
1056
- expiresIn: number;
1057
- };
1058
- };
1059
980
  CreateTagDto: {
1060
981
  name: string;
1061
982
  groupId: string;
@@ -1146,11 +1067,7 @@ export interface components {
1146
1067
  profiles: {
1147
1068
  id: string;
1148
1069
  shortId: number;
1149
- firstTimeMiExpo: boolean;
1150
- username: string | null;
1151
- password: string | null;
1152
1070
  phoneNumber: string;
1153
- isPhoneVerified: boolean;
1154
1071
  secondaryPhoneNumber: string | null;
1155
1072
  fullName: string;
1156
1073
  firstName: string | null;
@@ -1177,11 +1094,7 @@ export interface components {
1177
1094
  profiles: {
1178
1095
  id: string;
1179
1096
  shortId: number;
1180
- firstTimeMiExpo: boolean;
1181
- username: string | null;
1182
- password: string | null;
1183
1097
  phoneNumber: string;
1184
- isPhoneVerified: boolean;
1185
1098
  secondaryPhoneNumber: string | null;
1186
1099
  fullName: string;
1187
1100
  firstName: string | null;
@@ -1762,11 +1675,7 @@ export interface components {
1762
1675
  profiles: {
1763
1676
  id: string;
1764
1677
  shortId: number;
1765
- firstTimeMiExpo: boolean;
1766
- username: string | null;
1767
- password: string | null;
1768
1678
  phoneNumber: string;
1769
- isPhoneVerified: boolean;
1770
1679
  secondaryPhoneNumber: string | null;
1771
1680
  fullName: string;
1772
1681
  firstName: string | null;
@@ -1801,11 +1710,7 @@ export interface components {
1801
1710
  profiles: {
1802
1711
  id: string;
1803
1712
  shortId: number;
1804
- firstTimeMiExpo: boolean;
1805
- username: string | null;
1806
- password: string | null;
1807
1713
  phoneNumber: string;
1808
- isPhoneVerified: boolean;
1809
1714
  secondaryPhoneNumber: string | null;
1810
1715
  fullName: string;
1811
1716
  firstName: string | null;
@@ -1858,11 +1763,7 @@ export interface components {
1858
1763
  profiles: {
1859
1764
  id: string;
1860
1765
  shortId: number;
1861
- firstTimeMiExpo: boolean;
1862
- username: string | null;
1863
- password: string | null;
1864
1766
  phoneNumber: string;
1865
- isPhoneVerified: boolean;
1866
1767
  secondaryPhoneNumber: string | null;
1867
1768
  fullName: string;
1868
1769
  firstName: string | null;
@@ -1896,11 +1797,7 @@ export interface components {
1896
1797
  profiles: {
1897
1798
  id: string;
1898
1799
  shortId: number;
1899
- firstTimeMiExpo: boolean;
1900
- username: string | null;
1901
- password: string | null;
1902
1800
  phoneNumber: string;
1903
- isPhoneVerified: boolean;
1904
1801
  secondaryPhoneNumber: string | null;
1905
1802
  fullName: string;
1906
1803
  firstName: string | null;
@@ -1931,11 +1828,7 @@ export interface components {
1931
1828
  [key: string]: {
1932
1829
  id: string;
1933
1830
  shortId: number;
1934
- firstTimeMiExpo: boolean;
1935
- username: string | null;
1936
- password: string | null;
1937
1831
  phoneNumber: string;
1938
- isPhoneVerified: boolean;
1939
1832
  secondaryPhoneNumber: string | null;
1940
1833
  fullName: string;
1941
1834
  firstName: string | null;
@@ -1968,11 +1861,7 @@ export interface components {
1968
1861
  FindByPhoneNumberResponseDto: {
1969
1862
  id: string;
1970
1863
  shortId: number;
1971
- firstTimeMiExpo: boolean;
1972
- username: string | null;
1973
- password: string | null;
1974
1864
  phoneNumber: string;
1975
- isPhoneVerified: boolean;
1976
1865
  secondaryPhoneNumber: string | null;
1977
1866
  fullName: string;
1978
1867
  firstName: string | null;
@@ -2055,11 +1944,7 @@ export interface components {
2055
1944
  FindByIdProfileResponseDto: {
2056
1945
  id: string;
2057
1946
  shortId: number;
2058
- firstTimeMiExpo: boolean;
2059
- username: string | null;
2060
- password: string | null;
2061
1947
  phoneNumber: string;
2062
- isPhoneVerified: boolean;
2063
1948
  secondaryPhoneNumber: string | null;
2064
1949
  fullName: string;
2065
1950
  firstName: string | null;
@@ -2113,11 +1998,7 @@ export interface components {
2113
1998
  DeleteProfileResponseDto: {
2114
1999
  id: string;
2115
2000
  shortId: number;
2116
- firstTimeMiExpo: boolean;
2117
- username: string | null;
2118
- password: string | null;
2119
2001
  phoneNumber: string;
2120
- isPhoneVerified: boolean;
2121
2002
  secondaryPhoneNumber: string | null;
2122
2003
  fullName: string;
2123
2004
  firstName: string | null;
@@ -2274,53 +2155,6 @@ export interface components {
2274
2155
  GetLastMessageTimestampResponseDto: {
2275
2156
  timestamp: number;
2276
2157
  };
2277
- SendOtpDto: {
2278
- phoneNumber: string;
2279
- };
2280
- SendOtpResponseDto: {
2281
- response: {
2282
- hasVerified: boolean;
2283
- hasUsername: boolean;
2284
- success: true;
2285
- } | {
2286
- hasVerified: boolean;
2287
- hasUsername: boolean;
2288
- success: false;
2289
- message: string;
2290
- };
2291
- };
2292
- VerifyOtpDto: {
2293
- phoneNumber: string;
2294
- code: string;
2295
- };
2296
- VerifyOtpResponseDto: {
2297
- success: boolean;
2298
- profile: {
2299
- id: string;
2300
- shortId: number;
2301
- firstTimeMiExpo: boolean;
2302
- username: string | null;
2303
- password: string | null;
2304
- phoneNumber: string;
2305
- isPhoneVerified: boolean;
2306
- secondaryPhoneNumber: string | null;
2307
- fullName: string;
2308
- firstName: string | null;
2309
- gender: string | null;
2310
- birthDate: string | null;
2311
- profilePictureUrl: string | null;
2312
- instagram: string | null;
2313
- mail: string | null;
2314
- dni: string | null;
2315
- alternativeNames: string[];
2316
- birthLocationId: string | null;
2317
- residenceLocationId: string | null;
2318
- isInTrash: boolean;
2319
- movedToTrashDate: string | null;
2320
- created_at: string;
2321
- updated_at: string;
2322
- };
2323
- };
2324
2158
  };
2325
2159
  responses: never;
2326
2160
  parameters: never;
@@ -2330,7 +2164,7 @@ export interface components {
2330
2164
  }
2331
2165
  export type $defs = Record<string, never>;
2332
2166
  export interface operations {
2333
- AuthController_loginAccount: {
2167
+ AuthController_loginUser: {
2334
2168
  parameters: {
2335
2169
  query?: never;
2336
2170
  header?: never;
@@ -2380,37 +2214,6 @@ export interface operations {
2380
2214
  };
2381
2215
  };
2382
2216
  };
2383
- AuthController_loginProfile: {
2384
- parameters: {
2385
- query?: never;
2386
- header?: never;
2387
- path?: never;
2388
- cookie?: never;
2389
- };
2390
- requestBody: {
2391
- content: {
2392
- "application/json": components["schemas"]["LoginDto"];
2393
- };
2394
- };
2395
- responses: {
2396
- 200: {
2397
- headers: {
2398
- [name: string]: unknown;
2399
- };
2400
- content: {
2401
- "application/json": components["schemas"]["LoginMiExpoResponseDto"];
2402
- };
2403
- };
2404
- 401: {
2405
- headers: {
2406
- [name: string]: unknown;
2407
- };
2408
- content: {
2409
- "application/json": components["schemas"]["ErrorDto"];
2410
- };
2411
- };
2412
- };
2413
- };
2414
2217
  TagController_create: {
2415
2218
  parameters: {
2416
2219
  query?: never;
@@ -4268,82 +4071,4 @@ export interface operations {
4268
4071
  };
4269
4072
  };
4270
4073
  };
4271
- OtpController_sendOtp: {
4272
- parameters: {
4273
- query?: never;
4274
- header?: never;
4275
- path?: never;
4276
- cookie?: never;
4277
- };
4278
- requestBody: {
4279
- content: {
4280
- "application/json": components["schemas"]["SendOtpDto"];
4281
- };
4282
- };
4283
- responses: {
4284
- 200: {
4285
- headers: {
4286
- [name: string]: unknown;
4287
- };
4288
- content: {
4289
- "application/json": components["schemas"]["SendOtpResponseDto"];
4290
- };
4291
- };
4292
- 400: {
4293
- headers: {
4294
- [name: string]: unknown;
4295
- };
4296
- content: {
4297
- "application/json": components["schemas"]["ErrorDto"];
4298
- };
4299
- };
4300
- 404: {
4301
- headers: {
4302
- [name: string]: unknown;
4303
- };
4304
- content: {
4305
- "application/json": components["schemas"]["ErrorDto"];
4306
- };
4307
- };
4308
- };
4309
- };
4310
- OtpController_verifyOtp: {
4311
- parameters: {
4312
- query?: never;
4313
- header?: never;
4314
- path?: never;
4315
- cookie?: never;
4316
- };
4317
- requestBody: {
4318
- content: {
4319
- "application/json": components["schemas"]["VerifyOtpDto"];
4320
- };
4321
- };
4322
- responses: {
4323
- 200: {
4324
- headers: {
4325
- [name: string]: unknown;
4326
- };
4327
- content: {
4328
- "application/json": components["schemas"]["VerifyOtpResponseDto"];
4329
- };
4330
- };
4331
- 400: {
4332
- headers: {
4333
- [name: string]: unknown;
4334
- };
4335
- content: {
4336
- "application/json": components["schemas"]["ErrorDto"];
4337
- };
4338
- };
4339
- 404: {
4340
- headers: {
4341
- [name: string]: unknown;
4342
- };
4343
- content: {
4344
- "application/json": components["schemas"]["ErrorDto"];
4345
- };
4346
- };
4347
- };
4348
- };
4349
4074
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.30.0-EXPO-308-auth.10",
3
+ "version": "0.30.0-EXPO-309-Migrar-Configuracion.2",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,
@@ -8,7 +8,6 @@
8
8
  "files": [
9
9
  "dist/types",
10
10
  "dist/src/**/*.dto.{js,d.ts,ts}",
11
- "dist/src/**/constants.{js,d.ts,ts}",
12
11
  "dist/src/**/exports.{js,d.ts,ts}",
13
12
  "dist/src/shared/dto-modification",
14
13
  "dist/src/i18n"
@@ -45,7 +44,7 @@
45
44
  "@nestjs/jwt": "^10.2.0",
46
45
  "@nestjs/platform-express": "^10.0.0",
47
46
  "@nestjs/swagger": "^7.3.1",
48
- "@prisma/client": "^6.3.1",
47
+ "@prisma/client": "^5.22.0",
49
48
  "bcrypt": "^5.1.1",
50
49
  "body-parser": "^1.20.3",
51
50
  "class-transformer": "^0.5.1",
@@ -56,8 +55,8 @@
56
55
  "fast-csv": "^5.0.2",
57
56
  "i18n-js": "^4.4.3",
58
57
  "json-to-pretty-yaml": "^1.2.2",
59
- "jszip": "^3.10.1",
60
58
  "multer": "^1.4.5-lts.1",
59
+ "jszip": "^3.10.1",
61
60
  "openapi3-ts": "^4.4.0",
62
61
  "patch-package": "^8.0.0",
63
62
  "reflect-metadata": "^0.2.0",
@@ -92,7 +91,7 @@
92
91
  "luxon": "^3.5.0",
93
92
  "openapi-typescript": "^7.0.0-rc.0",
94
93
  "prettier": "^3.0.0",
95
- "prisma": "^6.3.1",
94
+ "prisma": "^5.22.0",
96
95
  "source-map-support": "^0.5.21",
97
96
  "supertest": "^6.3.3",
98
97
  "ts-jest": "^29.1.0",