@devopness/sdk-js 2.44.1 → 2.46.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/resource-events-api.d.ts +7 -0
- package/dist/api/generated/apis/resource-events-api.js +20 -0
- package/dist/api/generated/models/action-relation.d.ts +6 -0
- package/dist/api/generated/models/action-retry-response.d.ts +6 -0
- package/dist/api/generated/models/action.d.ts +6 -0
- package/dist/api/generated/models/application-relation.d.ts +7 -0
- package/dist/api/generated/models/blueprint-service.d.ts +20 -1
- package/dist/api/generated/models/index.d.ts +1 -0
- package/dist/api/generated/models/index.js +1 -0
- package/dist/api/generated/models/related-action.d.ts +6 -0
- package/dist/api/generated/models/server-blueprint.d.ts +31 -8
- package/dist/api/generated/models/server-environment-create.d.ts +5 -5
- package/dist/api/generated/models/server-update.d.ts +1 -1
- package/dist/api/generated/models/subscription.d.ts +96 -0
- package/dist/api/generated/models/subscription.js +14 -0
- package/dist/api/generated/models/user-me.d.ts +4 -10
- package/dist/api/generated/models/user-update.d.ts +0 -6
- package/dist/api/generated/models/user.d.ts +4 -10
- package/package.json +1 -1
|
@@ -16,6 +16,13 @@ import { ResourceEventRelation } from '../../generated/models';
|
|
|
16
16
|
* ResourceEventsApiService - Auto-generated
|
|
17
17
|
*/
|
|
18
18
|
export declare class ResourceEventsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Process event for a resource
|
|
22
|
+
* @param {string} resourceId The resource ID.
|
|
23
|
+
* @param {string} resourceType The resource type to create events for.
|
|
24
|
+
*/
|
|
25
|
+
addResourceEvent(resourceId: string, resourceType: string): Promise<ApiResponse<void>>;
|
|
19
26
|
/**
|
|
20
27
|
*
|
|
21
28
|
* @summary List events of a resource type
|
|
@@ -29,6 +29,26 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* ResourceEventsApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class ResourceEventsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Process event for a resource
|
|
35
|
+
* @param {string} resourceId The resource ID.
|
|
36
|
+
* @param {string} resourceType The resource type to create events for.
|
|
37
|
+
*/
|
|
38
|
+
addResourceEvent(resourceId, resourceType) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (resourceId === null || resourceId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('resourceId', 'addResourceEvent');
|
|
42
|
+
}
|
|
43
|
+
if (resourceType === null || resourceType === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('resourceType', 'addResourceEvent');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/events/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
32
52
|
/**
|
|
33
53
|
*
|
|
34
54
|
* @summary List events of a resource type
|
|
@@ -34,6 +34,12 @@ export interface ActionRelation {
|
|
|
34
34
|
* @memberof ActionRelation
|
|
35
35
|
*/
|
|
36
36
|
status: ActionStatus;
|
|
37
|
+
/**
|
|
38
|
+
* Current item status human readable
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ActionRelation
|
|
41
|
+
*/
|
|
42
|
+
status_human_readable: string;
|
|
37
43
|
/**
|
|
38
44
|
*
|
|
39
45
|
* @type {ActionType}
|
|
@@ -45,6 +45,12 @@ export interface ActionRetryResponse {
|
|
|
45
45
|
* @memberof ActionRetryResponse
|
|
46
46
|
*/
|
|
47
47
|
status: ActionStatus;
|
|
48
|
+
/**
|
|
49
|
+
* Current item status human readable
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ActionRetryResponse
|
|
52
|
+
*/
|
|
53
|
+
status_human_readable: string;
|
|
48
54
|
/**
|
|
49
55
|
*
|
|
50
56
|
* @type {ActionType}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApplicationLastDeployments } from './application-last-deployments';
|
|
13
13
|
import { ApplicationType } from './application-type';
|
|
14
|
+
import { SourceProvider } from './source-provider';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -161,6 +162,12 @@ export interface ApplicationRelation {
|
|
|
161
162
|
* @memberof ApplicationRelation
|
|
162
163
|
*/
|
|
163
164
|
last_deployments?: ApplicationLastDeployments;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {SourceProvider}
|
|
168
|
+
* @memberof ApplicationRelation
|
|
169
|
+
*/
|
|
170
|
+
source_provider?: SourceProvider;
|
|
164
171
|
/**
|
|
165
172
|
* The date and time when the record was created
|
|
166
173
|
* @type {string}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ServiceInitialState } from './service-initial-state';
|
|
12
13
|
import { ServiceType } from './service-type';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -16,10 +17,28 @@ import { ServiceType } from './service-type';
|
|
|
16
17
|
* @interface BlueprintService
|
|
17
18
|
*/
|
|
18
19
|
export interface BlueprintService {
|
|
20
|
+
/**
|
|
21
|
+
* Indicates if the service will start automatically on operating system boot
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof BlueprintService
|
|
24
|
+
*/
|
|
25
|
+
auto_start?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ServiceInitialState}
|
|
29
|
+
* @memberof BlueprintService
|
|
30
|
+
*/
|
|
31
|
+
initial_state?: ServiceInitialState;
|
|
19
32
|
/**
|
|
20
33
|
*
|
|
21
34
|
* @type {ServiceType}
|
|
22
35
|
* @memberof BlueprintService
|
|
23
36
|
*/
|
|
24
|
-
|
|
37
|
+
type: ServiceType;
|
|
38
|
+
/**
|
|
39
|
+
* The service version
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BlueprintService
|
|
42
|
+
*/
|
|
43
|
+
version: string;
|
|
25
44
|
}
|
|
@@ -185,6 +185,7 @@ export * from './static-service-type-supported-versions';
|
|
|
185
185
|
export * from './step';
|
|
186
186
|
export * from './step-pipeline-create';
|
|
187
187
|
export * from './step-pipeline-update';
|
|
188
|
+
export * from './subscription';
|
|
188
189
|
export * from './subscription-plan';
|
|
189
190
|
export * from './team';
|
|
190
191
|
export * from './team-environment-link';
|
|
@@ -201,6 +201,7 @@ __exportStar(require("./static-service-type-supported-versions"), exports);
|
|
|
201
201
|
__exportStar(require("./step"), exports);
|
|
202
202
|
__exportStar(require("./step-pipeline-create"), exports);
|
|
203
203
|
__exportStar(require("./step-pipeline-update"), exports);
|
|
204
|
+
__exportStar(require("./subscription"), exports);
|
|
204
205
|
__exportStar(require("./subscription-plan"), exports);
|
|
205
206
|
__exportStar(require("./team"), exports);
|
|
206
207
|
__exportStar(require("./team-environment-link"), exports);
|
|
@@ -30,6 +30,12 @@ export interface RelatedAction {
|
|
|
30
30
|
* @memberof RelatedAction
|
|
31
31
|
*/
|
|
32
32
|
status: ActionStatus;
|
|
33
|
+
/**
|
|
34
|
+
* Human readable version of the action status
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof RelatedAction
|
|
37
|
+
*/
|
|
38
|
+
status_human_readable?: string;
|
|
33
39
|
/**
|
|
34
40
|
*
|
|
35
41
|
* @type {ActionType}
|
|
@@ -9,23 +9,46 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { BlueprintService } from './blueprint-service';
|
|
13
12
|
/**
|
|
14
|
-
*
|
|
13
|
+
* Blueprint for creating a server
|
|
15
14
|
* @export
|
|
16
15
|
* @interface ServerBlueprint
|
|
17
16
|
*/
|
|
18
17
|
export interface ServerBlueprint {
|
|
19
18
|
/**
|
|
20
|
-
* The
|
|
21
|
-
* @type {
|
|
19
|
+
* The unique id of the blueprint
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ServerBlueprint
|
|
22
|
+
*/
|
|
23
|
+
id?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the blueprint
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ServerBlueprint
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The blueprint type
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ServerBlueprint
|
|
34
|
+
*/
|
|
35
|
+
type?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof ServerBlueprint
|
|
40
|
+
*/
|
|
41
|
+
spec?: object;
|
|
42
|
+
/**
|
|
43
|
+
* The date and time when the record was created
|
|
44
|
+
* @type {string}
|
|
22
45
|
* @memberof ServerBlueprint
|
|
23
46
|
*/
|
|
24
|
-
|
|
47
|
+
created_at?: string;
|
|
25
48
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {
|
|
49
|
+
* The date and time when the record was last updated
|
|
50
|
+
* @type {string}
|
|
28
51
|
* @memberof ServerBlueprint
|
|
29
52
|
*/
|
|
30
|
-
|
|
53
|
+
updated_at?: string;
|
|
31
54
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { BlueprintService } from './blueprint-service';
|
|
13
13
|
import { ServerProvisionSettings } from './server-provision-settings';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -30,17 +30,17 @@ export interface ServerEnvironmentCreate {
|
|
|
30
30
|
*/
|
|
31
31
|
ip_address?: string;
|
|
32
32
|
/**
|
|
33
|
-
* The network port to which the SSH daemon is listening to SSH connections on the server. This field is required when <code>provision_settings.self_hosted</code> is <code>true</code>.
|
|
33
|
+
* The network port to which the SSH daemon is listening to SSH connections on the server. This field is required when <code>provision_settings.self_hosted</code> is <code>true</code>. Must be between 22 and 65535.
|
|
34
34
|
* @type {number}
|
|
35
35
|
* @memberof ServerEnvironmentCreate
|
|
36
36
|
*/
|
|
37
37
|
ssh_port?: number;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {
|
|
39
|
+
* The specification for this blueprint. Usually contains the service names and their respective versions to be installed on a server.
|
|
40
|
+
* @type {Array<BlueprintService>}
|
|
41
41
|
* @memberof ServerEnvironmentCreate
|
|
42
42
|
*/
|
|
43
|
-
blueprint
|
|
43
|
+
blueprint?: Array<BlueprintService>;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {ServerProvisionSettings}
|
|
@@ -28,7 +28,7 @@ export interface ServerUpdate {
|
|
|
28
28
|
*/
|
|
29
29
|
ip_address?: string;
|
|
30
30
|
/**
|
|
31
|
-
* The network port to which the SSH daemon is listening to SSH connections on the server. This field is required when <code>provision_settings.self_hosted</code> is <code>true</code>.
|
|
31
|
+
* The network port to which the SSH daemon is listening to SSH connections on the server. This field is required when <code>provision_settings.self_hosted</code> is <code>true</code>. Must be between 22 and 65535.
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof ServerUpdate
|
|
34
34
|
*/
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
* The user\'s active subscription
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Subscription
|
|
16
|
+
*/
|
|
17
|
+
export interface Subscription {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the subscription
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Subscription
|
|
22
|
+
*/
|
|
23
|
+
id?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the user this subscription belongs to
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Subscription
|
|
28
|
+
*/
|
|
29
|
+
user_id?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The plan name of this subscription
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Subscription
|
|
34
|
+
*/
|
|
35
|
+
plan_name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Status of this subscription
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Subscription
|
|
40
|
+
*/
|
|
41
|
+
status?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Amount of plans purchased in this subscription
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof Subscription
|
|
46
|
+
*/
|
|
47
|
+
quantity?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Unitary price of the subscribed plan
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof Subscription
|
|
52
|
+
*/
|
|
53
|
+
price_unit?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Total price of this subscription (quantity x price_unit)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof Subscription
|
|
58
|
+
*/
|
|
59
|
+
price_total?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Currency of the prices
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Subscription
|
|
64
|
+
*/
|
|
65
|
+
price_currency?: string;
|
|
66
|
+
/**
|
|
67
|
+
* If this subscription is a trial, this field indicates when it will end
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Subscription
|
|
70
|
+
*/
|
|
71
|
+
trial_ends_at?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* If not null, indicates the date when this subscription was cancelled
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof Subscription
|
|
76
|
+
*/
|
|
77
|
+
cancelled_at?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates the date and time when this subscription ends
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof Subscription
|
|
82
|
+
*/
|
|
83
|
+
ends_at?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The date and time when the record was created
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof Subscription
|
|
88
|
+
*/
|
|
89
|
+
created_at?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The date and time when the record was last updated
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof Subscription
|
|
94
|
+
*/
|
|
95
|
+
updated_at?: string;
|
|
96
|
+
}
|
|
@@ -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 });
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Language } from './language';
|
|
13
13
|
import { SocialAccountRelation } from './social-account-relation';
|
|
14
|
-
import {
|
|
14
|
+
import { Subscription } from './subscription';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -55,17 +55,11 @@ export interface UserMe {
|
|
|
55
55
|
*/
|
|
56
56
|
social_accounts: Array<SocialAccountRelation>;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {
|
|
60
|
-
* @memberof UserMe
|
|
61
|
-
*/
|
|
62
|
-
current_billing_plan: string;
|
|
63
|
-
/**
|
|
64
|
-
* The list of subscription plans
|
|
65
|
-
* @type {Array<SubscriptionPlan>}
|
|
58
|
+
*
|
|
59
|
+
* @type {Subscription}
|
|
66
60
|
* @memberof UserMe
|
|
67
61
|
*/
|
|
68
|
-
|
|
62
|
+
active_subscription: Subscription | null;
|
|
69
63
|
/**
|
|
70
64
|
* The date and time when the record was created
|
|
71
65
|
* @type {string}
|
|
@@ -39,10 +39,4 @@ export interface UserUpdate {
|
|
|
39
39
|
* @memberof UserUpdate
|
|
40
40
|
*/
|
|
41
41
|
language?: string;
|
|
42
|
-
/**
|
|
43
|
-
* The user subscription plan. Must be one of <code>FREE</code> or <code>PAID</code>.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof UserUpdate
|
|
46
|
-
*/
|
|
47
|
-
current_billing_plan?: string;
|
|
48
42
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Language } from './language';
|
|
13
13
|
import { SocialAccountRelation } from './social-account-relation';
|
|
14
|
-
import {
|
|
14
|
+
import { Subscription } from './subscription';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -55,17 +55,11 @@ export interface User {
|
|
|
55
55
|
*/
|
|
56
56
|
social_accounts: Array<SocialAccountRelation>;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {
|
|
60
|
-
* @memberof User
|
|
61
|
-
*/
|
|
62
|
-
current_billing_plan: string;
|
|
63
|
-
/**
|
|
64
|
-
* The list of subscription plans
|
|
65
|
-
* @type {Array<SubscriptionPlan>}
|
|
58
|
+
*
|
|
59
|
+
* @type {Subscription}
|
|
66
60
|
* @memberof User
|
|
67
61
|
*/
|
|
68
|
-
|
|
62
|
+
active_subscription: Subscription | null;
|
|
69
63
|
/**
|
|
70
64
|
* The date and time when the record was created
|
|
71
65
|
* @type {string}
|