@boarteam/boar-pack-users-frontend 2.6.1 → 3.0.1
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/package.json +3 -3
- package/src/tools/api-client/generated/index.ts +0 -1
- package/src/tools/api-client/generated/models/User.ts +1 -1
- package/src/tools/api-client/generated/services/AuthenticationService.ts +0 -57
- package/src/tools/api-client/generated/services/EventLogsService.ts +4 -4
- package/src/tools/api-client/generated/services/TokensService.ts +7 -8
- package/src/tools/api-client/generated/services/UsersService.ts +4 -4
- package/src/tools/api-client/generated/models/LocalAuthLoginDto.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boarteam/boar-pack-users-frontend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Users frontend package for Boar Pack",
|
|
5
5
|
"repository": "git@github.com:boarteam/boar-pack.git",
|
|
6
6
|
"author": "Andrew Balakirev <balakirev.andrey@gmail.com>",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@ant-design/plots": "^2.3.2",
|
|
18
|
-
"@boarteam/boar-pack-common-frontend": "^
|
|
18
|
+
"@boarteam/boar-pack-common-frontend": "^3.0.0",
|
|
19
19
|
"@fortawesome/fontawesome-svg-core": "^6.6.0",
|
|
20
20
|
"@fortawesome/free-brands-svg-icons": "^6.6.0",
|
|
21
21
|
"@umijs/max": "^4.1.10",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"build": "tsc --project tsconfig.build.json",
|
|
35
35
|
"yalc:push": "yalc push"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "07238d65c97b83936c8bb88a5be0e40f9a7b8d82"
|
|
38
38
|
}
|
|
@@ -19,7 +19,6 @@ export type { EventSettingsDto } from './models/EventSettingsDto';
|
|
|
19
19
|
export type { GetManyEventLogResponseDto } from './models/GetManyEventLogResponseDto';
|
|
20
20
|
export type { GetManyTokenResponseDto } from './models/GetManyTokenResponseDto';
|
|
21
21
|
export type { GetManyUserResponseDto } from './models/GetManyUserResponseDto';
|
|
22
|
-
export type { LocalAuthLoginDto } from './models/LocalAuthLoginDto';
|
|
23
22
|
export type { LocalAuthTokenDto } from './models/LocalAuthTokenDto';
|
|
24
23
|
export type { PermissionDto } from './models/PermissionDto';
|
|
25
24
|
export type { TelegramSettingsDto } from './models/TelegramSettingsDto';
|
|
@@ -2,28 +2,11 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
import type { LocalAuthLoginDto } from '../models/LocalAuthLoginDto';
|
|
6
5
|
import type { LocalAuthTokenDto } from '../models/LocalAuthTokenDto';
|
|
7
6
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
7
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
9
8
|
export class AuthenticationService {
|
|
10
9
|
constructor(public readonly httpRequest: BaseHttpRequest) {}
|
|
11
|
-
/**
|
|
12
|
-
* @returns LocalAuthTokenDto
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
public login({
|
|
16
|
-
requestBody,
|
|
17
|
-
}: {
|
|
18
|
-
requestBody: LocalAuthLoginDto,
|
|
19
|
-
}): CancelablePromise<LocalAuthTokenDto> {
|
|
20
|
-
return this.httpRequest.request({
|
|
21
|
-
method: 'POST',
|
|
22
|
-
url: '/auth/login',
|
|
23
|
-
body: requestBody,
|
|
24
|
-
mediaType: 'application/json',
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
10
|
/**
|
|
28
11
|
* @returns LocalAuthTokenDto
|
|
29
12
|
* @throws ApiError
|
|
@@ -34,46 +17,6 @@ export class AuthenticationService {
|
|
|
34
17
|
url: '/auth/token',
|
|
35
18
|
});
|
|
36
19
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @returns any
|
|
39
|
-
* @throws ApiError
|
|
40
|
-
*/
|
|
41
|
-
public loginGoogle(): CancelablePromise<any> {
|
|
42
|
-
return this.httpRequest.request({
|
|
43
|
-
method: 'GET',
|
|
44
|
-
url: '/auth/google',
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @returns any
|
|
49
|
-
* @throws ApiError
|
|
50
|
-
*/
|
|
51
|
-
public loginGoogleCallback(): CancelablePromise<any> {
|
|
52
|
-
return this.httpRequest.request({
|
|
53
|
-
method: 'GET',
|
|
54
|
-
url: '/auth/google/callback',
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* @returns any
|
|
59
|
-
* @throws ApiError
|
|
60
|
-
*/
|
|
61
|
-
public loginMs(): CancelablePromise<any> {
|
|
62
|
-
return this.httpRequest.request({
|
|
63
|
-
method: 'GET',
|
|
64
|
-
url: '/auth/ms',
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @returns any
|
|
69
|
-
* @throws ApiError
|
|
70
|
-
*/
|
|
71
|
-
public loginMsCallback(): CancelablePromise<any> {
|
|
72
|
-
return this.httpRequest.request({
|
|
73
|
-
method: 'GET',
|
|
74
|
-
url: '/auth/ms/callback',
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
20
|
/**
|
|
78
21
|
* @returns any
|
|
79
22
|
* @throws ApiError
|
|
@@ -46,7 +46,7 @@ export class EventLogsService {
|
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Retrieve multiple EventLogs
|
|
49
|
-
* @returns GetManyEventLogResponseDto
|
|
49
|
+
* @returns GetManyEventLogResponseDto
|
|
50
50
|
* @throws ApiError
|
|
51
51
|
*/
|
|
52
52
|
public getManyBaseEventLogsControllerEventLog({
|
|
@@ -121,7 +121,7 @@ export class EventLogsService {
|
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
123
|
* Create a single EventLog
|
|
124
|
-
* @returns EventLog
|
|
124
|
+
* @returns EventLog
|
|
125
125
|
* @throws ApiError
|
|
126
126
|
*/
|
|
127
127
|
public createOneBaseEventLogsControllerEventLog({
|
|
@@ -138,7 +138,7 @@ export class EventLogsService {
|
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* Update a single EventLog
|
|
141
|
-
* @returns EventLog
|
|
141
|
+
* @returns EventLog
|
|
142
142
|
* @throws ApiError
|
|
143
143
|
*/
|
|
144
144
|
public updateOneBaseEventLogsControllerEventLog({
|
|
@@ -160,7 +160,7 @@ export class EventLogsService {
|
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* Delete a single EventLog
|
|
163
|
-
* @returns any
|
|
163
|
+
* @returns any
|
|
164
164
|
* @throws ApiError
|
|
165
165
|
*/
|
|
166
166
|
public deleteOneBaseEventLogsControllerEventLog({
|
|
@@ -13,7 +13,7 @@ export class TokensService {
|
|
|
13
13
|
constructor(public readonly httpRequest: BaseHttpRequest) {}
|
|
14
14
|
/**
|
|
15
15
|
* Retrieve multiple Tokens
|
|
16
|
-
* @returns GetManyTokenResponseDto
|
|
16
|
+
* @returns GetManyTokenResponseDto
|
|
17
17
|
* @throws ApiError
|
|
18
18
|
*/
|
|
19
19
|
public getManyBaseTokensControllerToken({
|
|
@@ -88,7 +88,7 @@ export class TokensService {
|
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* Update a single Token
|
|
91
|
-
* @returns Token
|
|
91
|
+
* @returns Token
|
|
92
92
|
* @throws ApiError
|
|
93
93
|
*/
|
|
94
94
|
public updateOneBaseTokensControllerToken({
|
|
@@ -110,7 +110,7 @@ export class TokensService {
|
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
* Delete a single Token
|
|
113
|
-
* @returns any
|
|
113
|
+
* @returns any
|
|
114
114
|
* @throws ApiError
|
|
115
115
|
*/
|
|
116
116
|
public deleteOneBaseTokensControllerToken({
|
|
@@ -129,14 +129,13 @@ export class TokensService {
|
|
|
129
129
|
/**
|
|
130
130
|
* Create a single Token
|
|
131
131
|
* @returns TokenWithValueDto
|
|
132
|
-
* @returns Token Get create one base response
|
|
133
132
|
* @throws ApiError
|
|
134
133
|
*/
|
|
135
134
|
public createOneBaseMyTokensControllerToken({
|
|
136
135
|
requestBody,
|
|
137
136
|
}: {
|
|
138
137
|
requestBody: TokenCreateDto,
|
|
139
|
-
}): CancelablePromise<TokenWithValueDto
|
|
138
|
+
}): CancelablePromise<TokenWithValueDto> {
|
|
140
139
|
return this.httpRequest.request({
|
|
141
140
|
method: 'POST',
|
|
142
141
|
url: '/my/tokens',
|
|
@@ -146,7 +145,7 @@ export class TokensService {
|
|
|
146
145
|
}
|
|
147
146
|
/**
|
|
148
147
|
* Retrieve multiple Tokens
|
|
149
|
-
* @returns GetManyTokenResponseDto
|
|
148
|
+
* @returns GetManyTokenResponseDto
|
|
150
149
|
* @throws ApiError
|
|
151
150
|
*/
|
|
152
151
|
public getManyBaseMyTokensControllerToken({
|
|
@@ -221,7 +220,7 @@ export class TokensService {
|
|
|
221
220
|
}
|
|
222
221
|
/**
|
|
223
222
|
* Update a single Token
|
|
224
|
-
* @returns Token
|
|
223
|
+
* @returns Token
|
|
225
224
|
* @throws ApiError
|
|
226
225
|
*/
|
|
227
226
|
public updateOneBaseMyTokensControllerToken({
|
|
@@ -243,7 +242,7 @@ export class TokensService {
|
|
|
243
242
|
}
|
|
244
243
|
/**
|
|
245
244
|
* Delete a single Token
|
|
246
|
-
* @returns any
|
|
245
|
+
* @returns any
|
|
247
246
|
* @throws ApiError
|
|
248
247
|
*/
|
|
249
248
|
public deleteOneBaseMyTokensControllerToken({
|
|
@@ -56,7 +56,7 @@ export class UsersService {
|
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Update a single User
|
|
59
|
-
* @returns User
|
|
59
|
+
* @returns User
|
|
60
60
|
* @throws ApiError
|
|
61
61
|
*/
|
|
62
62
|
public updateOneBaseUsersControllerUser({
|
|
@@ -78,7 +78,7 @@ export class UsersService {
|
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
* Delete a single User
|
|
81
|
-
* @returns any
|
|
81
|
+
* @returns any
|
|
82
82
|
* @throws ApiError
|
|
83
83
|
*/
|
|
84
84
|
public deleteOneBaseUsersControllerUser({
|
|
@@ -96,7 +96,7 @@ export class UsersService {
|
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
* Retrieve multiple Users
|
|
99
|
-
* @returns GetManyUserResponseDto
|
|
99
|
+
* @returns GetManyUserResponseDto
|
|
100
100
|
* @throws ApiError
|
|
101
101
|
*/
|
|
102
102
|
public getManyBaseUsersControllerUser({
|
|
@@ -177,7 +177,7 @@ export class UsersService {
|
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
179
|
* Create a single User
|
|
180
|
-
* @returns User
|
|
180
|
+
* @returns User
|
|
181
181
|
* @throws ApiError
|
|
182
182
|
*/
|
|
183
183
|
public createOneBaseUsersControllerUser({
|