expo-backend-types 0.30.0-EXPO-308-auth.6 → 0.30.0-EXPO-308-auth.8
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.
- package/dist/src/auth/dto/login-mi-expo.dto.d.ts +327 -0
- package/dist/src/auth/dto/login-mi-expo.dto.js +31 -0
- package/dist/src/otp/constants.d.ts +1 -0
- package/dist/src/otp/constants.js +2 -1
- package/dist/src/otp/dto/send-otp.dto.d.ts +12 -0
- package/dist/src/otp/dto/send-otp.dto.js +2 -0
- package/dist/src/otp/dto/verify-otp.dto.d.ts +22 -2
- package/dist/src/profile/dto/create-profile.dto.d.ts +12 -4
- package/dist/src/profile/dto/delete-profile.dto.d.ts +14 -2
- package/dist/src/profile/dto/find-all-profile.dto.d.ts +22 -2
- package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +36 -4
- package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +14 -2
- package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +14 -2
- package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +22 -2
- package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +22 -2
- package/dist/src/profile/dto/find-trash.dto.d.ts +3 -1
- package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +22 -2
- package/dist/src/profile/dto/profile.dto.d.ts +7 -1
- package/dist/src/profile/dto/profile.dto.js +3 -1
- package/dist/src/profile/dto/update-profile.dto.d.ts +14 -2
- package/dist/src/tag/dto/massive-allocation.dto.d.ts +22 -2
- package/dist/src/tag/dto/massive-deallocation.dto.d.ts +22 -2
- package/dist/types/prisma-schema/edge.js +26 -24
- package/dist/types/prisma-schema/index-browser.js +6 -9
- package/dist/types/prisma-schema/index.d.ts +2126 -415
- package/dist/types/prisma-schema/index.js +26 -24
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +2 -2
- package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
- package/dist/types/prisma-schema/runtime/edge.js +18 -18
- package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -1
- package/dist/types/prisma-schema/runtime/library.d.ts +177 -133
- package/dist/types/prisma-schema/runtime/library.js +51 -51
- package/dist/types/prisma-schema/runtime/react-native.js +26 -26
- package/dist/types/prisma-schema/runtime/wasm.js +19 -19
- package/dist/types/prisma-schema/schema.prisma +3 -0
- package/dist/types/prisma-schema/wasm.js +6 -9
- package/dist/types/schema.d.ts +115 -13
- package/package.json +4 -4
@@ -46,6 +46,9 @@ model Profile {
|
|
46
46
|
|
47
47
|
firstTimeMiExpo Boolean @default(true) @map("first_time_mi_expo")
|
48
48
|
|
49
|
+
username String? @unique
|
50
|
+
password String?
|
51
|
+
|
49
52
|
phoneNumber String @unique @map("phone_number")
|
50
53
|
isPhoneVerified Boolean @default(false) @map("is_phone_verified")
|
51
54
|
otp Otp[]
|
@@ -17,12 +17,12 @@ exports.Prisma = Prisma
|
|
17
17
|
exports.$Enums = {}
|
18
18
|
|
19
19
|
/**
|
20
|
-
* Prisma Client JS version:
|
21
|
-
* Query Engine version:
|
20
|
+
* Prisma Client JS version: 6.3.1
|
21
|
+
* Query Engine version: acc0b9dd43eb689cbd20c9470515d719db10d0b0
|
22
22
|
*/
|
23
23
|
Prisma.prismaVersion = {
|
24
|
-
client: "
|
25
|
-
engine: "
|
24
|
+
client: "6.3.1",
|
25
|
+
engine: "acc0b9dd43eb689cbd20c9470515d719db10d0b0"
|
26
26
|
}
|
27
27
|
|
28
28
|
Prisma.PrismaClientKnownRequestError = () => {
|
@@ -50,11 +50,6 @@ 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
|
-
)}
|
58
53
|
Prisma.Decimal = Decimal
|
59
54
|
|
60
55
|
/**
|
@@ -137,6 +132,8 @@ exports.Prisma.ProfileScalarFieldEnum = {
|
|
137
132
|
id: 'id',
|
138
133
|
shortId: 'shortId',
|
139
134
|
firstTimeMiExpo: 'firstTimeMiExpo',
|
135
|
+
username: 'username',
|
136
|
+
password: 'password',
|
140
137
|
phoneNumber: 'phoneNumber',
|
141
138
|
isPhoneVerified: 'isPhoneVerified',
|
142
139
|
secondaryPhoneNumber: 'secondaryPhoneNumber',
|
package/dist/types/schema.d.ts
CHANGED
@@ -8,7 +8,7 @@ export interface paths {
|
|
8
8
|
};
|
9
9
|
get?: never;
|
10
10
|
put?: never;
|
11
|
-
post: operations["
|
11
|
+
post: operations["AuthController_loginAccount"];
|
12
12
|
delete?: never;
|
13
13
|
options?: never;
|
14
14
|
head?: never;
|
@@ -31,6 +31,22 @@ 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
|
+
};
|
34
50
|
"/tag/create": {
|
35
51
|
parameters: {
|
36
52
|
query?: never;
|
@@ -1009,6 +1025,37 @@ export interface components {
|
|
1009
1025
|
accessToken: string;
|
1010
1026
|
expiresIn: number;
|
1011
1027
|
};
|
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
|
+
};
|
1012
1059
|
CreateTagDto: {
|
1013
1060
|
name: string;
|
1014
1061
|
groupId: string;
|
@@ -1099,6 +1146,9 @@ export interface components {
|
|
1099
1146
|
profiles: {
|
1100
1147
|
id: string;
|
1101
1148
|
shortId: number;
|
1149
|
+
firstTimeMiExpo: boolean;
|
1150
|
+
username: string | null;
|
1151
|
+
password: string | null;
|
1102
1152
|
phoneNumber: string;
|
1103
1153
|
isPhoneVerified: boolean;
|
1104
1154
|
secondaryPhoneNumber: string | null;
|
@@ -1115,7 +1165,6 @@ export interface components {
|
|
1115
1165
|
residenceLocationId: string | null;
|
1116
1166
|
isInTrash: boolean;
|
1117
1167
|
movedToTrashDate: string | null;
|
1118
|
-
firstTimeMiExpo: boolean;
|
1119
1168
|
created_at: string;
|
1120
1169
|
updated_at: string;
|
1121
1170
|
}[];
|
@@ -1128,6 +1177,9 @@ export interface components {
|
|
1128
1177
|
profiles: {
|
1129
1178
|
id: string;
|
1130
1179
|
shortId: number;
|
1180
|
+
firstTimeMiExpo: boolean;
|
1181
|
+
username: string | null;
|
1182
|
+
password: string | null;
|
1131
1183
|
phoneNumber: string;
|
1132
1184
|
isPhoneVerified: boolean;
|
1133
1185
|
secondaryPhoneNumber: string | null;
|
@@ -1144,7 +1196,6 @@ export interface components {
|
|
1144
1196
|
residenceLocationId: string | null;
|
1145
1197
|
isInTrash: boolean;
|
1146
1198
|
movedToTrashDate: string | null;
|
1147
|
-
firstTimeMiExpo: boolean;
|
1148
1199
|
created_at: string;
|
1149
1200
|
updated_at: string;
|
1150
1201
|
}[];
|
@@ -1711,6 +1762,9 @@ export interface components {
|
|
1711
1762
|
profiles: {
|
1712
1763
|
id: string;
|
1713
1764
|
shortId: number;
|
1765
|
+
firstTimeMiExpo: boolean;
|
1766
|
+
username: string | null;
|
1767
|
+
password: string | null;
|
1714
1768
|
phoneNumber: string;
|
1715
1769
|
isPhoneVerified: boolean;
|
1716
1770
|
secondaryPhoneNumber: string | null;
|
@@ -1727,7 +1781,6 @@ export interface components {
|
|
1727
1781
|
residenceLocationId: string | null;
|
1728
1782
|
isInTrash: boolean;
|
1729
1783
|
movedToTrashDate: string | null;
|
1730
|
-
firstTimeMiExpo: boolean;
|
1731
1784
|
created_at: string;
|
1732
1785
|
updated_at: string;
|
1733
1786
|
tags: {
|
@@ -1748,6 +1801,9 @@ export interface components {
|
|
1748
1801
|
profiles: {
|
1749
1802
|
id: string;
|
1750
1803
|
shortId: number;
|
1804
|
+
firstTimeMiExpo: boolean;
|
1805
|
+
username: string | null;
|
1806
|
+
password: string | null;
|
1751
1807
|
phoneNumber: string;
|
1752
1808
|
isPhoneVerified: boolean;
|
1753
1809
|
secondaryPhoneNumber: string | null;
|
@@ -1764,7 +1820,6 @@ export interface components {
|
|
1764
1820
|
residenceLocationId: string | null;
|
1765
1821
|
isInTrash: boolean;
|
1766
1822
|
movedToTrashDate: string | null;
|
1767
|
-
firstTimeMiExpo: boolean;
|
1768
1823
|
created_at: string;
|
1769
1824
|
updated_at: string;
|
1770
1825
|
tags: {
|
@@ -1803,6 +1858,9 @@ export interface components {
|
|
1803
1858
|
profiles: {
|
1804
1859
|
id: string;
|
1805
1860
|
shortId: number;
|
1861
|
+
firstTimeMiExpo: boolean;
|
1862
|
+
username: string | null;
|
1863
|
+
password: string | null;
|
1806
1864
|
phoneNumber: string;
|
1807
1865
|
isPhoneVerified: boolean;
|
1808
1866
|
secondaryPhoneNumber: string | null;
|
@@ -1819,7 +1877,6 @@ export interface components {
|
|
1819
1877
|
residenceLocationId: string | null;
|
1820
1878
|
isInTrash: boolean;
|
1821
1879
|
movedToTrashDate: string | null;
|
1822
|
-
firstTimeMiExpo: boolean;
|
1823
1880
|
created_at: string;
|
1824
1881
|
updated_at: string;
|
1825
1882
|
tags: {
|
@@ -1839,6 +1896,9 @@ export interface components {
|
|
1839
1896
|
profiles: {
|
1840
1897
|
id: string;
|
1841
1898
|
shortId: number;
|
1899
|
+
firstTimeMiExpo: boolean;
|
1900
|
+
username: string | null;
|
1901
|
+
password: string | null;
|
1842
1902
|
phoneNumber: string;
|
1843
1903
|
isPhoneVerified: boolean;
|
1844
1904
|
secondaryPhoneNumber: string | null;
|
@@ -1855,7 +1915,6 @@ export interface components {
|
|
1855
1915
|
residenceLocationId: string | null;
|
1856
1916
|
isInTrash: boolean;
|
1857
1917
|
movedToTrashDate: string | null;
|
1858
|
-
firstTimeMiExpo: boolean;
|
1859
1918
|
created_at: string;
|
1860
1919
|
updated_at: string;
|
1861
1920
|
tags: {
|
@@ -1872,6 +1931,9 @@ export interface components {
|
|
1872
1931
|
[key: string]: {
|
1873
1932
|
id: string;
|
1874
1933
|
shortId: number;
|
1934
|
+
firstTimeMiExpo: boolean;
|
1935
|
+
username: string | null;
|
1936
|
+
password: string | null;
|
1875
1937
|
phoneNumber: string;
|
1876
1938
|
isPhoneVerified: boolean;
|
1877
1939
|
secondaryPhoneNumber: string | null;
|
@@ -1888,7 +1950,6 @@ export interface components {
|
|
1888
1950
|
residenceLocationId: string | null;
|
1889
1951
|
isInTrash: boolean;
|
1890
1952
|
movedToTrashDate: string | null;
|
1891
|
-
firstTimeMiExpo: boolean;
|
1892
1953
|
created_at: string;
|
1893
1954
|
updated_at: string;
|
1894
1955
|
tags: {
|
@@ -1907,6 +1968,9 @@ export interface components {
|
|
1907
1968
|
FindByPhoneNumberResponseDto: {
|
1908
1969
|
id: string;
|
1909
1970
|
shortId: number;
|
1971
|
+
firstTimeMiExpo: boolean;
|
1972
|
+
username: string | null;
|
1973
|
+
password: string | null;
|
1910
1974
|
phoneNumber: string;
|
1911
1975
|
isPhoneVerified: boolean;
|
1912
1976
|
secondaryPhoneNumber: string | null;
|
@@ -1923,7 +1987,6 @@ export interface components {
|
|
1923
1987
|
residenceLocationId: string | null;
|
1924
1988
|
isInTrash: boolean;
|
1925
1989
|
movedToTrashDate: string | null;
|
1926
|
-
firstTimeMiExpo: boolean;
|
1927
1990
|
created_at: string;
|
1928
1991
|
updated_at: string;
|
1929
1992
|
};
|
@@ -1992,6 +2055,9 @@ export interface components {
|
|
1992
2055
|
FindByIdProfileResponseDto: {
|
1993
2056
|
id: string;
|
1994
2057
|
shortId: number;
|
2058
|
+
firstTimeMiExpo: boolean;
|
2059
|
+
username: string | null;
|
2060
|
+
password: string | null;
|
1995
2061
|
phoneNumber: string;
|
1996
2062
|
isPhoneVerified: boolean;
|
1997
2063
|
secondaryPhoneNumber: string | null;
|
@@ -2008,7 +2074,6 @@ export interface components {
|
|
2008
2074
|
residenceLocationId: string | null;
|
2009
2075
|
isInTrash: boolean;
|
2010
2076
|
movedToTrashDate: string | null;
|
2011
|
-
firstTimeMiExpo: boolean;
|
2012
2077
|
created_at: string;
|
2013
2078
|
updated_at: string;
|
2014
2079
|
residenceLocation: {
|
@@ -2048,6 +2113,9 @@ export interface components {
|
|
2048
2113
|
DeleteProfileResponseDto: {
|
2049
2114
|
id: string;
|
2050
2115
|
shortId: number;
|
2116
|
+
firstTimeMiExpo: boolean;
|
2117
|
+
username: string | null;
|
2118
|
+
password: string | null;
|
2051
2119
|
phoneNumber: string;
|
2052
2120
|
isPhoneVerified: boolean;
|
2053
2121
|
secondaryPhoneNumber: string | null;
|
@@ -2064,7 +2132,6 @@ export interface components {
|
|
2064
2132
|
residenceLocationId: string | null;
|
2065
2133
|
isInTrash: boolean;
|
2066
2134
|
movedToTrashDate: string | null;
|
2067
|
-
firstTimeMiExpo: boolean;
|
2068
2135
|
created_at: string;
|
2069
2136
|
updated_at: string;
|
2070
2137
|
};
|
@@ -2212,6 +2279,8 @@ export interface components {
|
|
2212
2279
|
};
|
2213
2280
|
SendOtpResponseDto: {
|
2214
2281
|
success: boolean;
|
2282
|
+
hasVerified: boolean;
|
2283
|
+
hasUsername: boolean;
|
2215
2284
|
};
|
2216
2285
|
VerifyOtpDto: {
|
2217
2286
|
phoneNumber: string;
|
@@ -2222,6 +2291,9 @@ export interface components {
|
|
2222
2291
|
profile: {
|
2223
2292
|
id: string;
|
2224
2293
|
shortId: number;
|
2294
|
+
firstTimeMiExpo: boolean;
|
2295
|
+
username: string | null;
|
2296
|
+
password: string | null;
|
2225
2297
|
phoneNumber: string;
|
2226
2298
|
isPhoneVerified: boolean;
|
2227
2299
|
secondaryPhoneNumber: string | null;
|
@@ -2238,7 +2310,6 @@ export interface components {
|
|
2238
2310
|
residenceLocationId: string | null;
|
2239
2311
|
isInTrash: boolean;
|
2240
2312
|
movedToTrashDate: string | null;
|
2241
|
-
firstTimeMiExpo: boolean;
|
2242
2313
|
created_at: string;
|
2243
2314
|
updated_at: string;
|
2244
2315
|
};
|
@@ -2252,7 +2323,7 @@ export interface components {
|
|
2252
2323
|
}
|
2253
2324
|
export type $defs = Record<string, never>;
|
2254
2325
|
export interface operations {
|
2255
|
-
|
2326
|
+
AuthController_loginAccount: {
|
2256
2327
|
parameters: {
|
2257
2328
|
query?: never;
|
2258
2329
|
header?: never;
|
@@ -2302,6 +2373,37 @@ export interface operations {
|
|
2302
2373
|
};
|
2303
2374
|
};
|
2304
2375
|
};
|
2376
|
+
AuthController_loginProfile: {
|
2377
|
+
parameters: {
|
2378
|
+
query?: never;
|
2379
|
+
header?: never;
|
2380
|
+
path?: never;
|
2381
|
+
cookie?: never;
|
2382
|
+
};
|
2383
|
+
requestBody: {
|
2384
|
+
content: {
|
2385
|
+
"application/json": components["schemas"]["LoginDto"];
|
2386
|
+
};
|
2387
|
+
};
|
2388
|
+
responses: {
|
2389
|
+
200: {
|
2390
|
+
headers: {
|
2391
|
+
[name: string]: unknown;
|
2392
|
+
};
|
2393
|
+
content: {
|
2394
|
+
"application/json": components["schemas"]["LoginMiExpoResponseDto"];
|
2395
|
+
};
|
2396
|
+
};
|
2397
|
+
401: {
|
2398
|
+
headers: {
|
2399
|
+
[name: string]: unknown;
|
2400
|
+
};
|
2401
|
+
content: {
|
2402
|
+
"application/json": components["schemas"]["ErrorDto"];
|
2403
|
+
};
|
2404
|
+
};
|
2405
|
+
};
|
2406
|
+
};
|
2305
2407
|
TagController_create: {
|
2306
2408
|
parameters: {
|
2307
2409
|
query?: never;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.30.0-EXPO-308-auth.
|
3
|
+
"version": "0.30.0-EXPO-308-auth.8",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@nestjs/jwt": "^10.2.0",
|
46
46
|
"@nestjs/platform-express": "^10.0.0",
|
47
47
|
"@nestjs/swagger": "^7.3.1",
|
48
|
-
"@prisma/client": "^
|
48
|
+
"@prisma/client": "^6.3.1",
|
49
49
|
"bcrypt": "^5.1.1",
|
50
50
|
"body-parser": "^1.20.3",
|
51
51
|
"class-transformer": "^0.5.1",
|
@@ -56,8 +56,8 @@
|
|
56
56
|
"fast-csv": "^5.0.2",
|
57
57
|
"i18n-js": "^4.4.3",
|
58
58
|
"json-to-pretty-yaml": "^1.2.2",
|
59
|
-
"multer": "^1.4.5-lts.1",
|
60
59
|
"jszip": "^3.10.1",
|
60
|
+
"multer": "^1.4.5-lts.1",
|
61
61
|
"openapi3-ts": "^4.4.0",
|
62
62
|
"patch-package": "^8.0.0",
|
63
63
|
"reflect-metadata": "^0.2.0",
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"luxon": "^3.5.0",
|
93
93
|
"openapi-typescript": "^7.0.0-rc.0",
|
94
94
|
"prettier": "^3.0.0",
|
95
|
-
"prisma": "^
|
95
|
+
"prisma": "^6.3.1",
|
96
96
|
"source-map-support": "^0.5.21",
|
97
97
|
"supertest": "^6.3.3",
|
98
98
|
"ts-jest": "^29.1.0",
|