@devopness/sdk-js 2.41.0 → 2.43.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/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 +6 -0
- package/dist/api/generated/apis/users-api.js +12 -0
- package/dist/api/generated/models/action-triggered-from.d.ts +0 -6
- package/dist/api/generated/models/deployment-application-create.d.ts +0 -6
- package/dist/api/generated/models/index.d.ts +3 -0
- package/dist/api/generated/models/index.js +3 -0
- package/dist/api/generated/models/static-billing-info.d.ts +25 -0
- package/dist/api/generated/models/static-billing-info.js +14 -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/user-url.d.ts +24 -0
- package/dist/api/generated/models/user-url.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
|
@@ -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;
|
|
@@ -20,6 +20,7 @@ import { UserRefreshToken } from '../../generated/models';
|
|
|
20
20
|
import { UserRefreshTokenResponse } from '../../generated/models';
|
|
21
21
|
import { UserResendVerification } from '../../generated/models';
|
|
22
22
|
import { UserUpdate } from '../../generated/models';
|
|
23
|
+
import { UserUrl } from '../../generated/models';
|
|
23
24
|
import { UserVerify } from '../../generated/models';
|
|
24
25
|
/**
|
|
25
26
|
* UsersApiService - Auto-generated
|
|
@@ -47,6 +48,11 @@ export declare class UsersApiService extends ApiBaseService {
|
|
|
47
48
|
* @summary Get details of the current user
|
|
48
49
|
*/
|
|
49
50
|
getUserMe(): Promise<ApiResponse<UserMe>>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @summary Get the authenticated user\'s URLs
|
|
54
|
+
*/
|
|
55
|
+
getUserUrls(): Promise<ApiResponse<UserUrl>>;
|
|
50
56
|
/**
|
|
51
57
|
*
|
|
52
58
|
* @summary Login/create a new token for the given credentials
|
|
@@ -85,6 +85,18 @@ class UsersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
85
85
|
return new ApiResponse_1.ApiResponse(response);
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @summary Get the authenticated user\'s URLs
|
|
91
|
+
*/
|
|
92
|
+
getUserUrls() {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
let queryString = '';
|
|
95
|
+
const requestUrl = '/users/urls' + (queryString ? `?${queryString}` : '');
|
|
96
|
+
const response = yield this.get(requestUrl);
|
|
97
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
88
100
|
/**
|
|
89
101
|
*
|
|
90
102
|
* @summary Login/create a new token for the given credentials
|
|
@@ -64,10 +64,4 @@ export interface ActionTriggeredFrom {
|
|
|
64
64
|
* @memberof ActionTriggeredFrom
|
|
65
65
|
*/
|
|
66
66
|
hook_request_id: number | null;
|
|
67
|
-
/**
|
|
68
|
-
* The value defined has pull request ID on triggering a deployment.
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof ActionTriggeredFrom
|
|
71
|
-
*/
|
|
72
|
-
pull_request_id: number | null;
|
|
73
67
|
}
|
|
@@ -46,12 +46,6 @@ export interface DeploymentApplicationCreate {
|
|
|
46
46
|
* @memberof DeploymentApplicationCreate
|
|
47
47
|
*/
|
|
48
48
|
pipeline_id?: number;
|
|
49
|
-
/**
|
|
50
|
-
* The pull request\'s ID to use for deployment.
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof DeploymentApplicationCreate
|
|
53
|
-
*/
|
|
54
|
-
pull_request_id?: number;
|
|
55
49
|
/**
|
|
56
50
|
* List of valid resource IDs
|
|
57
51
|
* @type {Array<number>}
|
|
@@ -174,6 +174,7 @@ export * from './ssl-certificate-issuer';
|
|
|
174
174
|
export * from './ssl-certificate-relation';
|
|
175
175
|
export * from './ssl-certificate-type';
|
|
176
176
|
export * from './ssl-certificate-validation-level';
|
|
177
|
+
export * from './static-billing-info';
|
|
177
178
|
export * from './static-cloud-provider-code';
|
|
178
179
|
export * from './static-cron-job-frequency';
|
|
179
180
|
export * from './static-environment-type';
|
|
@@ -198,11 +199,13 @@ 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';
|
|
204
206
|
export * from './user-resend-verification';
|
|
205
207
|
export * from './user-update';
|
|
208
|
+
export * from './user-url';
|
|
206
209
|
export * from './user-verify';
|
|
207
210
|
export * from './variable';
|
|
208
211
|
export * from './variable-application-create';
|
|
@@ -190,6 +190,7 @@ __exportStar(require("./ssl-certificate-issuer"), exports);
|
|
|
190
190
|
__exportStar(require("./ssl-certificate-relation"), exports);
|
|
191
191
|
__exportStar(require("./ssl-certificate-type"), exports);
|
|
192
192
|
__exportStar(require("./ssl-certificate-validation-level"), exports);
|
|
193
|
+
__exportStar(require("./static-billing-info"), exports);
|
|
193
194
|
__exportStar(require("./static-cloud-provider-code"), exports);
|
|
194
195
|
__exportStar(require("./static-cron-job-frequency"), exports);
|
|
195
196
|
__exportStar(require("./static-environment-type"), exports);
|
|
@@ -214,11 +215,13 @@ __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);
|
|
220
222
|
__exportStar(require("./user-resend-verification"), exports);
|
|
221
223
|
__exportStar(require("./user-update"), exports);
|
|
224
|
+
__exportStar(require("./user-url"), exports);
|
|
222
225
|
__exportStar(require("./user-verify"), exports);
|
|
223
226
|
__exportStar(require("./variable"), exports);
|
|
224
227
|
__exportStar(require("./variable-application-create"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Information about billing, such as subscription plans.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StaticBillingInfo
|
|
17
|
+
*/
|
|
18
|
+
export interface StaticBillingInfo {
|
|
19
|
+
/**
|
|
20
|
+
* The list of subscription plans
|
|
21
|
+
* @type {Array<SubscriptionPlan>}
|
|
22
|
+
* @memberof StaticBillingInfo
|
|
23
|
+
*/
|
|
24
|
+
subscription_plans?: Array<SubscriptionPlan>;
|
|
25
|
+
}
|
|
@@ -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 });
|
|
@@ -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 { StaticBillingInfo } from './static-billing-info';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UserProfileOptions
|
|
17
|
+
*/
|
|
18
|
+
export interface UserProfileOptions {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {StaticBillingInfo}
|
|
22
|
+
* @memberof UserProfileOptions
|
|
23
|
+
*/
|
|
24
|
+
billing: StaticBillingInfo;
|
|
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 });
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserUrl
|
|
16
|
+
*/
|
|
17
|
+
export interface UserUrl {
|
|
18
|
+
/**
|
|
19
|
+
* The URL leading to a billing management page
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserUrl
|
|
22
|
+
*/
|
|
23
|
+
billing_management_url: string;
|
|
24
|
+
}
|
|
@@ -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";
|