@devopness/sdk-js 2.40.0 → 2.42.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/static-data-user-profile-options-api.d.ts +24 -0
- package/dist/api/generated/apis/static-data-user-profile-options-api.js +44 -0
- 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/billing.d.ts +31 -0
- package/dist/api/generated/models/billing.js +14 -0
- package/dist/api/generated/models/index.d.ts +2 -0
- package/dist/api/generated/models/index.js +2 -0
- package/dist/api/generated/models/subscription-plan.d.ts +10 -4
- package/dist/api/generated/models/user-profile-options.d.ts +37 -0
- package/dist/api/generated/models/user-profile-options.js +14 -0
- package/dist/api/generated/models/variable-target.d.ts +1 -1
- package/dist/api/generated/models/variable-target.js +1 -1
- package/package.json +1 -1
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
|
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
+
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { UserProfileOptions } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* StaticDataUserProfileOptionsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class StaticDataUserProfileOptionsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary List `User profile` options
|
|
22
|
+
*/
|
|
23
|
+
getStaticUserProfileOptions(): Promise<ApiResponse<UserProfileOptions>>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.StaticDataUserProfileOptionsApiService = void 0;
|
|
25
|
+
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
+
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
+
/**
|
|
28
|
+
* StaticDataUserProfileOptionsApiService - Auto-generated
|
|
29
|
+
*/
|
|
30
|
+
class StaticDataUserProfileOptionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary List `User profile` options
|
|
34
|
+
*/
|
|
35
|
+
getStaticUserProfileOptions() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
let queryString = '';
|
|
38
|
+
const requestUrl = '/static/user-profile-options' + (queryString ? `?${queryString}` : '');
|
|
39
|
+
const response = yield this.get(requestUrl);
|
|
40
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.StaticDataUserProfileOptionsApiService = StaticDataUserProfileOptionsApiService;
|
|
@@ -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
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
import { SubscriptionPlan } from './subscription-plan';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Billing
|
|
17
|
+
*/
|
|
18
|
+
export interface Billing {
|
|
19
|
+
/**
|
|
20
|
+
* Billing management URL
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Billing
|
|
23
|
+
*/
|
|
24
|
+
management_url?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The list of subscription plans
|
|
27
|
+
* @type {Array<SubscriptionPlan>}
|
|
28
|
+
* @memberof Billing
|
|
29
|
+
*/
|
|
30
|
+
subscription_plans?: Array<SubscriptionPlan>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 });
|
|
@@ -24,6 +24,7 @@ export * from './application-pipeline';
|
|
|
24
24
|
export * from './application-relation';
|
|
25
25
|
export * from './application-type';
|
|
26
26
|
export * from './application-update';
|
|
27
|
+
export * from './billing';
|
|
27
28
|
export * from './blueprint-service';
|
|
28
29
|
export * from './cloud-aws-ec2-settings';
|
|
29
30
|
export * from './cloud-digital-ocean-droplet-settings';
|
|
@@ -198,6 +199,7 @@ export * from './user-create';
|
|
|
198
199
|
export * from './user-login';
|
|
199
200
|
export * from './user-login-response';
|
|
200
201
|
export * from './user-me';
|
|
202
|
+
export * from './user-profile-options';
|
|
201
203
|
export * from './user-refresh-token';
|
|
202
204
|
export * from './user-refresh-token-response';
|
|
203
205
|
export * from './user-relation';
|
|
@@ -40,6 +40,7 @@ __exportStar(require("./application-pipeline"), exports);
|
|
|
40
40
|
__exportStar(require("./application-relation"), exports);
|
|
41
41
|
__exportStar(require("./application-type"), exports);
|
|
42
42
|
__exportStar(require("./application-update"), exports);
|
|
43
|
+
__exportStar(require("./billing"), exports);
|
|
43
44
|
__exportStar(require("./blueprint-service"), exports);
|
|
44
45
|
__exportStar(require("./cloud-aws-ec2-settings"), exports);
|
|
45
46
|
__exportStar(require("./cloud-digital-ocean-droplet-settings"), exports);
|
|
@@ -214,6 +215,7 @@ __exportStar(require("./user-create"), exports);
|
|
|
214
215
|
__exportStar(require("./user-login"), exports);
|
|
215
216
|
__exportStar(require("./user-login-response"), exports);
|
|
216
217
|
__exportStar(require("./user-me"), exports);
|
|
218
|
+
__exportStar(require("./user-profile-options"), exports);
|
|
217
219
|
__exportStar(require("./user-refresh-token"), exports);
|
|
218
220
|
__exportStar(require("./user-refresh-token-response"), exports);
|
|
219
221
|
__exportStar(require("./user-relation"), exports);
|
|
@@ -16,15 +16,21 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface SubscriptionPlan {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof SubscriptionPlan
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
provider_plan_id?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SubscriptionPlan
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
human_readable?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof SubscriptionPlan
|
|
34
|
+
*/
|
|
35
|
+
allow_subscriptions?: boolean;
|
|
30
36
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
import { Billing } from './billing';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UserProfileOptions
|
|
17
|
+
*/
|
|
18
|
+
export interface UserProfileOptions {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Billing}
|
|
22
|
+
* @memberof UserProfileOptions
|
|
23
|
+
*/
|
|
24
|
+
billing: Billing;
|
|
25
|
+
/**
|
|
26
|
+
* Supported languages
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof UserProfileOptions
|
|
29
|
+
*/
|
|
30
|
+
languages: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Supported time zones
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof UserProfileOptions
|
|
35
|
+
*/
|
|
36
|
+
timezones: Array<string>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 });
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
export declare enum VariableTarget {
|
|
18
18
|
ResourceConfigFile = "resource-config-file",
|
|
19
19
|
MyCnf = "my-cnf",
|
|
20
|
-
|
|
20
|
+
NewrelicInfraYml = "newrelic-infra-yml",
|
|
21
21
|
NginxConf = "nginx-conf",
|
|
22
22
|
OsEnvVar = "os-env-var",
|
|
23
23
|
PhpCliPhpIni = "php-cli_php-ini",
|
|
@@ -22,7 +22,7 @@ var VariableTarget;
|
|
|
22
22
|
(function (VariableTarget) {
|
|
23
23
|
VariableTarget["ResourceConfigFile"] = "resource-config-file";
|
|
24
24
|
VariableTarget["MyCnf"] = "my-cnf";
|
|
25
|
-
VariableTarget["
|
|
25
|
+
VariableTarget["NewrelicInfraYml"] = "newrelic-infra-yml";
|
|
26
26
|
VariableTarget["NginxConf"] = "nginx-conf";
|
|
27
27
|
VariableTarget["OsEnvVar"] = "os-env-var";
|
|
28
28
|
VariableTarget["PhpCliPhpIni"] = "php-cli_php-ini";
|