@devopness/sdk-js 2.39.0 → 2.41.0
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/README.md +1 -1
- package/dist/api/generated/apis/users-api.d.ts +7 -6
- package/dist/api/generated/apis/users-api.js +12 -12
- package/dist/api/generated/models/index.d.ts +0 -1
- package/dist/api/generated/models/index.js +0 -1
- package/dist/api/generated/models/team-update.d.ts +6 -0
- package/package.json +1 -1
- package/dist/api/generated/models/accepted-response-message.d.ts +0 -24
- package/dist/api/generated/models/accepted-response-message.js +0 -14
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ getUserProfile();
|
|
|
72
72
|
|
|
73
73
|
### TypeScript support
|
|
74
74
|
This package includes TypeScript declarations for every method.
|
|
75
|
-
TypeScript versions `>=
|
|
75
|
+
TypeScript versions `>= 4.4` are supported.
|
|
76
76
|
|
|
77
77
|
>Some methods in `Devopness SDK JavaScript` accept and return objects from the Devopness API. The type declarations for these objects will always track the latest version of the API. Therefore, if you'e using the latest version of this package, you can rely on the Devopness API documentation for checking the input and return types of each API endpoint.
|
|
78
78
|
|
|
@@ -15,6 +15,7 @@ import { User } from '../../generated/models';
|
|
|
15
15
|
import { UserCreate } from '../../generated/models';
|
|
16
16
|
import { UserLogin } from '../../generated/models';
|
|
17
17
|
import { UserLoginResponse } from '../../generated/models';
|
|
18
|
+
import { UserMe } from '../../generated/models';
|
|
18
19
|
import { UserRefreshToken } from '../../generated/models';
|
|
19
20
|
import { UserRefreshTokenResponse } from '../../generated/models';
|
|
20
21
|
import { UserResendVerification } from '../../generated/models';
|
|
@@ -36,22 +37,22 @@ export declare class UsersApiService extends ApiBaseService {
|
|
|
36
37
|
* @param {number} userId The ID of the user.
|
|
37
38
|
*/
|
|
38
39
|
getUser(userId: number): Promise<ApiResponse<User>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Logout/revoke an existing token
|
|
43
|
+
*/
|
|
44
|
+
getUserLogout(): Promise<ApiResponse<void>>;
|
|
39
45
|
/**
|
|
40
46
|
*
|
|
41
47
|
* @summary Get details of the current user
|
|
42
48
|
*/
|
|
43
|
-
getUserMe(): Promise<ApiResponse<
|
|
49
|
+
getUserMe(): Promise<ApiResponse<UserMe>>;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @summary Login/create a new token for the given credentials
|
|
47
53
|
* @param {UserLogin} userLogin A JSON object containing the resource data
|
|
48
54
|
*/
|
|
49
55
|
loginUser(userLogin: UserLogin): Promise<ApiResponse<UserLoginResponse>>;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @summary Logout/revoke an existing token
|
|
53
|
-
*/
|
|
54
|
-
logout(): Promise<ApiResponse<void>>;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
58
|
* @summary Refresh an existing user access token
|
|
@@ -61,6 +61,18 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
61
61
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Logout/revoke an existing token
|
|
67
|
+
*/
|
|
68
|
+
getUserLogout() {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
let queryString = '';
|
|
71
|
+
const requestUrl = '/users/logout' + (queryString ? `?${queryString}` : '');
|
|
72
|
+
const response = yield this.get(requestUrl);
|
|
73
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
64
76
|
/**
|
|
65
77
|
*
|
|
66
78
|
* @summary Get details of the current user
|
|
@@ -89,18 +101,6 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
89
101
|
return new ApiResponse_1.ApiResponse(response);
|
|
90
102
|
});
|
|
91
103
|
}
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @summary Logout/revoke an existing token
|
|
95
|
-
*/
|
|
96
|
-
logout() {
|
|
97
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
let queryString = '';
|
|
99
|
-
const requestUrl = '/users/logout' + (queryString ? `?${queryString}` : '');
|
|
100
|
-
const response = yield this.get(requestUrl);
|
|
101
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
104
|
/**
|
|
105
105
|
*
|
|
106
106
|
* @summary Refresh an existing user access token
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./accepted-response-message"), exports);
|
|
18
17
|
__exportStar(require("./action"), exports);
|
|
19
18
|
__exportStar(require("./action-data"), exports);
|
|
20
19
|
__exportStar(require("./action-deployment-commit"), exports);
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface TeamUpdate
|
|
16
16
|
*/
|
|
17
17
|
export interface TeamUpdate {
|
|
18
|
+
/**
|
|
19
|
+
* The unique ID of the given team.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TeamUpdate
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
18
24
|
/**
|
|
19
25
|
* The name of the team. Must not be greater than 255 characters.
|
|
20
26
|
* @type {string}
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* devopness API
|
|
3
|
-
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: latest
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface AcceptedResponseMessage
|
|
16
|
-
*/
|
|
17
|
-
export interface AcceptedResponseMessage {
|
|
18
|
-
/**
|
|
19
|
-
* Message with information about the response
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof AcceptedResponseMessage
|
|
22
|
-
*/
|
|
23
|
-
message: string;
|
|
24
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* devopness API
|
|
5
|
-
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: latest
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|