expo-backend-types 0.0.31 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +10 -5
- package/types/schema.d.ts +15 -58
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.33",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"types"
|
10
10
|
],
|
11
11
|
"scripts": {
|
12
|
-
"ci": "npm run
|
12
|
+
"ci": "npm run build && npm run generate-ts-schema && npm run check-format && npm run lint && npm run check-exports",
|
13
13
|
"build": "nest build",
|
14
14
|
"format": "prettier --write \"src/**/*.ts\"",
|
15
15
|
"check-format": "prettier --check \"src/**/*.ts\"",
|
@@ -26,19 +26,23 @@
|
|
26
26
|
"test:cov": "jest --coverage",
|
27
27
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
28
28
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
29
|
-
"generate-ts-schema": "
|
29
|
+
"generate-ts-schema": "node ./dist/main.swagger.js && openapi-typescript ./swagger.yaml -o ./types/schema.d.ts",
|
30
30
|
"prepare": "husky",
|
31
31
|
"prepublishOnly": "npm run ci"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"@nestjs/common": "^10.0.0",
|
35
|
+
"@nestjs/config": "^3.2.3",
|
35
36
|
"@nestjs/core": "^10.0.0",
|
37
|
+
"@nestjs/jwt": "^10.2.0",
|
36
38
|
"@nestjs/platform-express": "^10.0.0",
|
37
39
|
"@nestjs/swagger": "^7.3.1",
|
38
40
|
"@prisma/client": "^5.14.0",
|
41
|
+
"bcrypt": "^5.1.1",
|
39
42
|
"json-to-pretty-yaml": "^1.2.2",
|
40
43
|
"reflect-metadata": "^0.2.0",
|
41
|
-
"rxjs": "^7.8.1"
|
44
|
+
"rxjs": "^7.8.1",
|
45
|
+
"zod": "^3.23.8"
|
42
46
|
},
|
43
47
|
"devDependencies": {
|
44
48
|
"@arethetypeswrong/cli": "^0.15.4",
|
@@ -47,6 +51,7 @@
|
|
47
51
|
"@nestjs/schematics": "^10.0.0",
|
48
52
|
"@nestjs/testing": "^10.0.0",
|
49
53
|
"@openapitools/openapi-generator-cli": "^2.13.4",
|
54
|
+
"@types/bcrypt": "^5.0.2",
|
50
55
|
"@types/express": "^4.17.17",
|
51
56
|
"@types/jest": "^29.5.2",
|
52
57
|
"@types/json-to-pretty-yaml": "^1.2.1",
|
@@ -102,4 +107,4 @@
|
|
102
107
|
"git add"
|
103
108
|
]
|
104
109
|
}
|
105
|
-
}
|
110
|
+
}
|
package/types/schema.d.ts
CHANGED
@@ -4,39 +4,39 @@
|
|
4
4
|
*/
|
5
5
|
|
6
6
|
export interface paths {
|
7
|
-
"/": {
|
7
|
+
"/auth/register": {
|
8
8
|
parameters: {
|
9
9
|
query?: never;
|
10
10
|
header?: never;
|
11
11
|
path?: never;
|
12
12
|
cookie?: never;
|
13
13
|
};
|
14
|
-
get
|
14
|
+
get?: never;
|
15
15
|
put?: never;
|
16
|
-
post
|
16
|
+
post: operations["AuthController_registerUser"];
|
17
17
|
delete?: never;
|
18
18
|
options?: never;
|
19
19
|
head?: never;
|
20
20
|
patch?: never;
|
21
21
|
trace?: never;
|
22
22
|
};
|
23
|
-
"/
|
23
|
+
"/auth/login": {
|
24
24
|
parameters: {
|
25
25
|
query?: never;
|
26
26
|
header?: never;
|
27
27
|
path?: never;
|
28
28
|
cookie?: never;
|
29
29
|
};
|
30
|
-
get
|
31
|
-
put
|
32
|
-
post: operations["
|
30
|
+
get?: never;
|
31
|
+
put?: never;
|
32
|
+
post: operations["AuthController_loginUser"];
|
33
33
|
delete?: never;
|
34
34
|
options?: never;
|
35
35
|
head?: never;
|
36
36
|
patch?: never;
|
37
37
|
trace?: never;
|
38
38
|
};
|
39
|
-
"/
|
39
|
+
"/auth/refresh": {
|
40
40
|
parameters: {
|
41
41
|
query?: never;
|
42
42
|
header?: never;
|
@@ -45,7 +45,7 @@ export interface paths {
|
|
45
45
|
};
|
46
46
|
get?: never;
|
47
47
|
put?: never;
|
48
|
-
post: operations["
|
48
|
+
post: operations["AuthController_refreshToken"];
|
49
49
|
delete?: never;
|
50
50
|
options?: never;
|
51
51
|
head?: never;
|
@@ -64,7 +64,7 @@ export interface components {
|
|
64
64
|
}
|
65
65
|
export type $defs = Record<string, never>;
|
66
66
|
export interface operations {
|
67
|
-
|
67
|
+
AuthController_registerUser: {
|
68
68
|
parameters: {
|
69
69
|
query?: never;
|
70
70
|
header?: never;
|
@@ -73,45 +73,7 @@ export interface operations {
|
|
73
73
|
};
|
74
74
|
requestBody?: never;
|
75
75
|
responses: {
|
76
|
-
|
77
|
-
headers: {
|
78
|
-
[name: string]: unknown;
|
79
|
-
};
|
80
|
-
content?: never;
|
81
|
-
};
|
82
|
-
};
|
83
|
-
};
|
84
|
-
AppController_test: {
|
85
|
-
parameters: {
|
86
|
-
query?: never;
|
87
|
-
header?: never;
|
88
|
-
path: {
|
89
|
-
id: string;
|
90
|
-
};
|
91
|
-
cookie?: never;
|
92
|
-
};
|
93
|
-
requestBody?: never;
|
94
|
-
responses: {
|
95
|
-
200: {
|
96
|
-
headers: {
|
97
|
-
[name: string]: unknown;
|
98
|
-
};
|
99
|
-
content?: never;
|
100
|
-
};
|
101
|
-
};
|
102
|
-
};
|
103
|
-
AppController_testPut: {
|
104
|
-
parameters: {
|
105
|
-
query?: never;
|
106
|
-
header?: never;
|
107
|
-
path: {
|
108
|
-
id: string;
|
109
|
-
};
|
110
|
-
cookie?: never;
|
111
|
-
};
|
112
|
-
requestBody?: never;
|
113
|
-
responses: {
|
114
|
-
200: {
|
76
|
+
201: {
|
115
77
|
headers: {
|
116
78
|
[name: string]: unknown;
|
117
79
|
};
|
@@ -119,13 +81,11 @@ export interface operations {
|
|
119
81
|
};
|
120
82
|
};
|
121
83
|
};
|
122
|
-
|
84
|
+
AuthController_loginUser: {
|
123
85
|
parameters: {
|
124
86
|
query?: never;
|
125
87
|
header?: never;
|
126
|
-
path
|
127
|
-
id: string;
|
128
|
-
};
|
88
|
+
path?: never;
|
129
89
|
cookie?: never;
|
130
90
|
};
|
131
91
|
requestBody?: never;
|
@@ -138,14 +98,11 @@ export interface operations {
|
|
138
98
|
};
|
139
99
|
};
|
140
100
|
};
|
141
|
-
|
101
|
+
AuthController_refreshToken: {
|
142
102
|
parameters: {
|
143
103
|
query?: never;
|
144
104
|
header?: never;
|
145
|
-
path
|
146
|
-
id1: string;
|
147
|
-
id2: string;
|
148
|
-
};
|
105
|
+
path?: never;
|
149
106
|
cookie?: never;
|
150
107
|
};
|
151
108
|
requestBody?: never;
|