@devopness/sdk-js 2.162.1 → 2.163.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/applications-api.d.ts +25 -0
- package/dist/api/generated/apis/applications-api.js +65 -0
- package/dist/api/generated/apis/credentials-api.d.ts +27 -0
- package/dist/api/generated/apis/credentials-api.js +67 -0
- package/dist/api/generated/apis/cron-jobs-api.d.ts +17 -0
- package/dist/api/generated/apis/cron-jobs-api.js +45 -0
- package/dist/api/generated/apis/daemons-api.d.ts +17 -0
- package/dist/api/generated/apis/daemons-api.js +45 -0
- package/dist/api/generated/apis/network-rules-api.d.ts +17 -0
- package/dist/api/generated/apis/network-rules-api.js +45 -0
- package/dist/api/generated/apis/networks-api.d.ts +20 -0
- package/dist/api/generated/apis/networks-api.js +48 -0
- package/dist/api/generated/apis/servers-api.d.ts +17 -0
- package/dist/api/generated/apis/servers-api.js +45 -0
- package/dist/api/generated/apis/services-api.d.ts +17 -0
- package/dist/api/generated/apis/services-api.js +45 -0
- package/dist/api/generated/apis/sshkeys-api.d.ts +17 -0
- package/dist/api/generated/apis/sshkeys-api.js +45 -0
- package/dist/api/generated/apis/sslcertificates-api.d.ts +17 -0
- package/dist/api/generated/apis/sslcertificates-api.js +45 -0
- package/dist/api/generated/apis/virtual-hosts-api.d.ts +17 -0
- package/dist/api/generated/apis/virtual-hosts-api.js +45 -0
- package/dist/api/generated/models/action-relation-shallow.d.ts +121 -0
- package/dist/api/generated/models/action-relation-shallow.js +14 -0
- package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
- package/dist/api/generated/models/cron-job-relation.d.ts +3 -3
- package/dist/api/generated/models/daemon-relation.d.ts +3 -3
- package/dist/api/generated/models/index.d.ts +2 -0
- package/dist/api/generated/models/index.js +2 -0
- package/dist/api/generated/models/network-relation.d.ts +3 -3
- package/dist/api/generated/models/network-rule-relation.d.ts +3 -3
- package/dist/api/generated/models/resource-link-child.d.ts +55 -0
- package/dist/api/generated/models/resource-link-child.js +14 -0
- package/dist/api/generated/models/resource-link-relation.d.ts +3 -2
- package/dist/api/generated/models/server-relation.d.ts +3 -3
- package/dist/api/generated/models/service-relation.d.ts +3 -3
- package/dist/api/generated/models/ssh-key-relation.d.ts +3 -3
- package/dist/api/generated/models/ssl-certificate-relation.d.ts +3 -3
- package/dist/api/generated/models/user-relation.d.ts +6 -0
- package/dist/api/generated/models/virtual-host-relation.d.ts +3 -3
- package/dist/services/ApplicationService.d.ts +1 -2
- package/dist/services/ApplicationService.js +0 -2
- package/dist/services/EnvironmentService.d.ts +0 -22
- package/dist/services/EnvironmentService.js +0 -22
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +1 -0
- package/package.json +8 -8
- package/dist/api/generated/apis/applications-deployments-api.d.ts +0 -26
- package/dist/api/generated/apis/applications-deployments-api.js +0 -53
- package/dist/api/generated/apis/environments-applications-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-applications-api.js +0 -78
- package/dist/api/generated/apis/environments-credentials-api.d.ts +0 -46
- package/dist/api/generated/apis/environments-credentials-api.js +0 -100
- package/dist/api/generated/apis/environments-cron-jobs-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-cron-jobs-api.js +0 -78
- package/dist/api/generated/apis/environments-daemons-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-daemons-api.js +0 -78
- package/dist/api/generated/apis/environments-network-rules-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-network-rules-api.js +0 -78
- package/dist/api/generated/apis/environments-networks-api.d.ts +0 -39
- package/dist/api/generated/apis/environments-networks-api.js +0 -81
- package/dist/api/generated/apis/environments-servers-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-servers-api.js +0 -78
- package/dist/api/generated/apis/environments-services-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-services-api.js +0 -78
- package/dist/api/generated/apis/environments-sshkeys-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-sshkeys-api.js +0 -78
- package/dist/api/generated/apis/environments-sslcertificates-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-sslcertificates-api.js +0 -78
- package/dist/api/generated/apis/environments-virtual-hosts-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-virtual-hosts-api.js +0 -78
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
13
|
import { ApplicationRelation } from './application-relation';
|
|
14
14
|
import { UserRelation } from './user-relation';
|
|
15
15
|
/**
|
|
@@ -62,10 +62,10 @@ export interface DaemonRelation {
|
|
|
62
62
|
is_auto_generated: boolean;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
|
-
* @type {
|
|
65
|
+
* @type {ActionRelationShallow}
|
|
66
66
|
* @memberof DaemonRelation
|
|
67
67
|
*/
|
|
68
|
-
last_action:
|
|
68
|
+
last_action: ActionRelationShallow | null;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {ApplicationRelation}
|
|
@@ -6,6 +6,7 @@ export * from './action-deployment-data';
|
|
|
6
6
|
export * from './action-hook-request';
|
|
7
7
|
export * from './action-pipeline-create';
|
|
8
8
|
export * from './action-relation';
|
|
9
|
+
export * from './action-relation-shallow';
|
|
9
10
|
export * from './action-resource';
|
|
10
11
|
export * from './action-retry-response';
|
|
11
12
|
export * from './action-status';
|
|
@@ -178,6 +179,7 @@ export * from './repository-tag-commit';
|
|
|
178
179
|
export * from './request-relation';
|
|
179
180
|
export * from './resource-event';
|
|
180
181
|
export * from './resource-event-relation';
|
|
182
|
+
export * from './resource-link-child';
|
|
181
183
|
export * from './resource-link-relation';
|
|
182
184
|
export * from './resource-operation';
|
|
183
185
|
export * from './resource-summary-item';
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./action-deployment-data"), exports);
|
|
|
22
22
|
__exportStar(require("./action-hook-request"), exports);
|
|
23
23
|
__exportStar(require("./action-pipeline-create"), exports);
|
|
24
24
|
__exportStar(require("./action-relation"), exports);
|
|
25
|
+
__exportStar(require("./action-relation-shallow"), exports);
|
|
25
26
|
__exportStar(require("./action-resource"), exports);
|
|
26
27
|
__exportStar(require("./action-retry-response"), exports);
|
|
27
28
|
__exportStar(require("./action-status"), exports);
|
|
@@ -194,6 +195,7 @@ __exportStar(require("./repository-tag-commit"), exports);
|
|
|
194
195
|
__exportStar(require("./request-relation"), exports);
|
|
195
196
|
__exportStar(require("./resource-event"), exports);
|
|
196
197
|
__exportStar(require("./resource-event-relation"), exports);
|
|
198
|
+
__exportStar(require("./resource-link-child"), exports);
|
|
197
199
|
__exportStar(require("./resource-link-relation"), exports);
|
|
198
200
|
__exportStar(require("./resource-operation"), exports);
|
|
199
201
|
__exportStar(require("./resource-summary-item"), exports);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
13
|
import { Credential } from './credential';
|
|
14
14
|
import { NetworkProvisionInput } from './network-provision-input';
|
|
15
15
|
/**
|
|
@@ -80,10 +80,10 @@ export interface NetworkRelation {
|
|
|
80
80
|
provision_input: NetworkProvisionInput;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
|
-
* @type {
|
|
83
|
+
* @type {ActionRelationShallow}
|
|
84
84
|
* @memberof NetworkRelation
|
|
85
85
|
*/
|
|
86
|
-
last_action:
|
|
86
|
+
last_action: ActionRelationShallow | null;
|
|
87
87
|
/**
|
|
88
88
|
* The date and time when the record was created
|
|
89
89
|
* @type {string}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
13
|
import { NetworkRuleDirection } from './network-rule-direction';
|
|
14
14
|
import { NetworkRuleProtocol } from './network-rule-protocol';
|
|
15
15
|
/**
|
|
@@ -62,10 +62,10 @@ export interface NetworkRuleRelation {
|
|
|
62
62
|
is_auto_generated: boolean;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
|
-
* @type {
|
|
65
|
+
* @type {ActionRelationShallow}
|
|
66
66
|
* @memberof NetworkRuleRelation
|
|
67
67
|
*/
|
|
68
|
-
last_action:
|
|
68
|
+
last_action: ActionRelationShallow | null;
|
|
69
69
|
/**
|
|
70
70
|
* The date and time when the record was created
|
|
71
71
|
* @type {string}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { LinkedResourceData } from './linked-resource-data';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ResourceLinkChild
|
|
17
|
+
*/
|
|
18
|
+
export interface ResourceLinkChild {
|
|
19
|
+
/**
|
|
20
|
+
* The link type to related resource (`child` or `parent`)
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ResourceLinkChild
|
|
23
|
+
*/
|
|
24
|
+
link_type: string;
|
|
25
|
+
/**
|
|
26
|
+
* The linked resource ID
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ResourceLinkChild
|
|
29
|
+
*/
|
|
30
|
+
resource_id: number;
|
|
31
|
+
/**
|
|
32
|
+
* The linked resource type
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ResourceLinkChild
|
|
35
|
+
*/
|
|
36
|
+
resource_type: string;
|
|
37
|
+
/**
|
|
38
|
+
* Human readable resource type
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ResourceLinkChild
|
|
41
|
+
*/
|
|
42
|
+
resource_type_human_readable: string;
|
|
43
|
+
/**
|
|
44
|
+
* If false, the link cannot be manually removed
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof ResourceLinkChild
|
|
47
|
+
*/
|
|
48
|
+
can_be_unlinked: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {LinkedResourceData}
|
|
52
|
+
* @memberof ResourceLinkChild
|
|
53
|
+
*/
|
|
54
|
+
linked_resource_data: LinkedResourceData;
|
|
55
|
+
}
|
|
@@ -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 });
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { LinkedResourceData } from './linked-resource-data';
|
|
13
|
+
import { ResourceLinkChild } from './resource-link-child';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -54,8 +55,8 @@ export interface ResourceLinkRelation {
|
|
|
54
55
|
linked_resource_data: LinkedResourceData;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
|
-
* @type {Array<
|
|
58
|
+
* @type {Array<ResourceLinkChild>}
|
|
58
59
|
* @memberof ResourceLinkRelation
|
|
59
60
|
*/
|
|
60
|
-
children?: Array<
|
|
61
|
+
children?: Array<ResourceLinkChild>;
|
|
61
62
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
13
|
import { ActionStatus } from './action-status';
|
|
14
14
|
import { CredentialRelation } from './credential-relation';
|
|
15
15
|
/**
|
|
@@ -98,10 +98,10 @@ export interface ServerRelation {
|
|
|
98
98
|
status: ActionStatus;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
|
-
* @type {
|
|
101
|
+
* @type {ActionRelationShallow}
|
|
102
102
|
* @memberof ServerRelation
|
|
103
103
|
*/
|
|
104
|
-
last_action:
|
|
104
|
+
last_action: ActionRelationShallow | null;
|
|
105
105
|
/**
|
|
106
106
|
* The date and time when the record was created
|
|
107
107
|
* @type {string}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
13
|
import { ServiceInitialState } from './service-initial-state';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -73,10 +73,10 @@ export interface ServiceRelation {
|
|
|
73
73
|
description: string | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
|
-
* @type {
|
|
76
|
+
* @type {ActionRelationShallow}
|
|
77
77
|
* @memberof ServiceRelation
|
|
78
78
|
*/
|
|
79
|
-
last_action:
|
|
79
|
+
last_action: ActionRelationShallow | null;
|
|
80
80
|
/**
|
|
81
81
|
* The date and time when the record was created
|
|
82
82
|
* @type {string}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -54,10 +54,10 @@ export interface SshKeyRelation {
|
|
|
54
54
|
fingerprint: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {ActionRelationShallow}
|
|
58
58
|
* @memberof SshKeyRelation
|
|
59
59
|
*/
|
|
60
|
-
last_action?:
|
|
60
|
+
last_action?: ActionRelationShallow | null;
|
|
61
61
|
/**
|
|
62
62
|
* The date and time when the record was created
|
|
63
63
|
* @type {string}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
13
|
import { SslCertificateIssuer } from './ssl-certificate-issuer';
|
|
14
14
|
import { SslCertificateType } from './ssl-certificate-type';
|
|
15
15
|
import { SslCertificateValidationLevel } from './ssl-certificate-validation-level';
|
|
@@ -57,10 +57,10 @@ export interface SslCertificateRelation {
|
|
|
57
57
|
active: boolean;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {ActionRelationShallow}
|
|
61
61
|
* @memberof SslCertificateRelation
|
|
62
62
|
*/
|
|
63
|
-
last_action:
|
|
63
|
+
last_action: ActionRelationShallow | null;
|
|
64
64
|
/**
|
|
65
65
|
* The date and time when this certificate will no longer be valid, down to minute precision
|
|
66
66
|
* @type {string}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ActionRelationShallow } from './action-relation-shallow';
|
|
13
13
|
import { ApplicationRelation } from './application-relation';
|
|
14
14
|
import { SslCertificateRelation } from './ssl-certificate-relation';
|
|
15
15
|
import { UserRelation } from './user-relation';
|
|
@@ -70,10 +70,10 @@ export interface VirtualHostRelation {
|
|
|
70
70
|
ssl_certificate: SslCertificateRelation | null;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
|
-
* @type {
|
|
73
|
+
* @type {ActionRelationShallow}
|
|
74
74
|
* @memberof VirtualHostRelation
|
|
75
75
|
*/
|
|
76
|
-
last_action:
|
|
76
|
+
last_action: ActionRelationShallow | null;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @type {UserRelation}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ApiBaseService } from './ApiBaseService';
|
|
2
2
|
import { ApplicationsApiService } from '../api/generated/apis/applications-api';
|
|
3
|
-
import { ApplicationsDeploymentsApiService } from '../api/generated/apis/applications-deployments-api';
|
|
4
3
|
import { ApplicationsVariablesApiService } from '../api/generated/apis/applications-variables-api';
|
|
5
4
|
import { ApplicationsHooksApiService } from '../api/generated/apis/applications-hooks-api';
|
|
6
5
|
export declare class ApplicationService extends ApiBaseService {
|
|
7
6
|
}
|
|
8
|
-
export interface ApplicationService extends ApplicationsApiService,
|
|
7
|
+
export interface ApplicationService extends ApplicationsApiService, ApplicationsVariablesApiService, ApplicationsHooksApiService {
|
|
9
8
|
}
|
|
@@ -4,7 +4,6 @@ exports.ApplicationService = void 0;
|
|
|
4
4
|
const ApiBaseService_1 = require("./ApiBaseService");
|
|
5
5
|
const MergeSiblingClasses_1 = require("../common/MergeSiblingClasses");
|
|
6
6
|
const applications_api_1 = require("../api/generated/apis/applications-api");
|
|
7
|
-
const applications_deployments_api_1 = require("../api/generated/apis/applications-deployments-api");
|
|
8
7
|
const applications_variables_api_1 = require("../api/generated/apis/applications-variables-api");
|
|
9
8
|
const applications_hooks_api_1 = require("../api/generated/apis/applications-hooks-api");
|
|
10
9
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
|
@@ -13,7 +12,6 @@ class ApplicationService extends ApiBaseService_1.ApiBaseService {
|
|
|
13
12
|
exports.ApplicationService = ApplicationService;
|
|
14
13
|
(0, MergeSiblingClasses_1.mergeSiblingClasses)(ApplicationService, [
|
|
15
14
|
applications_api_1.ApplicationsApiService,
|
|
16
|
-
applications_deployments_api_1.ApplicationsDeploymentsApiService,
|
|
17
15
|
applications_variables_api_1.ApplicationsVariablesApiService,
|
|
18
16
|
applications_hooks_api_1.ApplicationsHooksApiService,
|
|
19
17
|
]);
|
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
import { EnvironmentsActionsApiService } from '../api/generated/apis/environments-actions-api';
|
|
2
2
|
import { EnvironmentsApiService } from '../api/generated/apis/environments-api';
|
|
3
|
-
import { EnvironmentsApplicationsApiService } from '../api/generated/apis/environments-applications-api';
|
|
4
|
-
import { EnvironmentsCredentialsApiService } from '../api/generated/apis/environments-credentials-api';
|
|
5
|
-
import { EnvironmentsCronJobsApiService } from '../api/generated/apis/environments-cron-jobs-api';
|
|
6
|
-
import { EnvironmentsDaemonsApiService } from '../api/generated/apis/environments-daemons-api';
|
|
7
|
-
import { EnvironmentsNetworkRulesApiService } from '../api/generated/apis/environments-network-rules-api';
|
|
8
|
-
import { EnvironmentsNetworksApiService } from '../api/generated/apis/environments-networks-api';
|
|
9
|
-
import { EnvironmentsServersApiService } from '../api/generated/apis/environments-servers-api';
|
|
10
|
-
import { EnvironmentsServicesApiService } from '../api/generated/apis/environments-services-api';
|
|
11
|
-
import { EnvironmentsSSHKeysApiService } from '../api/generated/apis/environments-sshkeys-api';
|
|
12
|
-
import { EnvironmentsSSLCertificatesApiService } from '../api/generated/apis/environments-sslcertificates-api';
|
|
13
3
|
import { EnvironmentsTeamMembershipsApiService } from '../api/generated/apis/environments-team-memberships-api';
|
|
14
4
|
import { EnvironmentsTeamsApiService } from '../api/generated/apis/environments-teams-api';
|
|
15
|
-
import { EnvironmentsVirtualHostsApiService } from '../api/generated/apis/environments-virtual-hosts-api';
|
|
16
5
|
export declare class EnvironmentService extends EnvironmentsApiService {
|
|
17
6
|
actions: EnvironmentsActionsApiService;
|
|
18
|
-
applications: EnvironmentsApplicationsApiService;
|
|
19
|
-
credentials: EnvironmentsCredentialsApiService;
|
|
20
|
-
cronjobs: EnvironmentsCronJobsApiService;
|
|
21
|
-
daemons: EnvironmentsDaemonsApiService;
|
|
22
|
-
networks: EnvironmentsNetworksApiService;
|
|
23
|
-
networkRules: EnvironmentsNetworkRulesApiService;
|
|
24
|
-
servers: EnvironmentsServersApiService;
|
|
25
|
-
services: EnvironmentsServicesApiService;
|
|
26
|
-
sshKeys: EnvironmentsSSHKeysApiService;
|
|
27
|
-
sslCertificates: EnvironmentsSSLCertificatesApiService;
|
|
28
7
|
teams: EnvironmentsTeamsApiService;
|
|
29
8
|
teamMemberships: EnvironmentsTeamMembershipsApiService;
|
|
30
|
-
virtualHosts: EnvironmentsVirtualHostsApiService;
|
|
31
9
|
}
|
|
@@ -3,36 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EnvironmentService = void 0;
|
|
4
4
|
const environments_actions_api_1 = require("../api/generated/apis/environments-actions-api");
|
|
5
5
|
const environments_api_1 = require("../api/generated/apis/environments-api");
|
|
6
|
-
const environments_applications_api_1 = require("../api/generated/apis/environments-applications-api");
|
|
7
|
-
const environments_credentials_api_1 = require("../api/generated/apis/environments-credentials-api");
|
|
8
|
-
const environments_cron_jobs_api_1 = require("../api/generated/apis/environments-cron-jobs-api");
|
|
9
|
-
const environments_daemons_api_1 = require("../api/generated/apis/environments-daemons-api");
|
|
10
|
-
const environments_network_rules_api_1 = require("../api/generated/apis/environments-network-rules-api");
|
|
11
|
-
const environments_networks_api_1 = require("../api/generated/apis/environments-networks-api");
|
|
12
|
-
const environments_servers_api_1 = require("../api/generated/apis/environments-servers-api");
|
|
13
|
-
const environments_services_api_1 = require("../api/generated/apis/environments-services-api");
|
|
14
|
-
const environments_sshkeys_api_1 = require("../api/generated/apis/environments-sshkeys-api");
|
|
15
|
-
const environments_sslcertificates_api_1 = require("../api/generated/apis/environments-sslcertificates-api");
|
|
16
6
|
const environments_team_memberships_api_1 = require("../api/generated/apis/environments-team-memberships-api");
|
|
17
7
|
const environments_teams_api_1 = require("../api/generated/apis/environments-teams-api");
|
|
18
|
-
const environments_virtual_hosts_api_1 = require("../api/generated/apis/environments-virtual-hosts-api");
|
|
19
8
|
class EnvironmentService extends environments_api_1.EnvironmentsApiService {
|
|
20
9
|
constructor() {
|
|
21
10
|
super(...arguments);
|
|
22
11
|
this.actions = new environments_actions_api_1.EnvironmentsActionsApiService();
|
|
23
|
-
this.applications = new environments_applications_api_1.EnvironmentsApplicationsApiService();
|
|
24
|
-
this.credentials = new environments_credentials_api_1.EnvironmentsCredentialsApiService();
|
|
25
|
-
this.cronjobs = new environments_cron_jobs_api_1.EnvironmentsCronJobsApiService();
|
|
26
|
-
this.daemons = new environments_daemons_api_1.EnvironmentsDaemonsApiService();
|
|
27
|
-
this.networks = new environments_networks_api_1.EnvironmentsNetworksApiService();
|
|
28
|
-
this.networkRules = new environments_network_rules_api_1.EnvironmentsNetworkRulesApiService();
|
|
29
|
-
this.servers = new environments_servers_api_1.EnvironmentsServersApiService();
|
|
30
|
-
this.services = new environments_services_api_1.EnvironmentsServicesApiService();
|
|
31
|
-
this.sshKeys = new environments_sshkeys_api_1.EnvironmentsSSHKeysApiService();
|
|
32
|
-
this.sslCertificates = new environments_sslcertificates_api_1.EnvironmentsSSLCertificatesApiService();
|
|
33
12
|
this.teams = new environments_teams_api_1.EnvironmentsTeamsApiService();
|
|
34
13
|
this.teamMemberships = new environments_team_memberships_api_1.EnvironmentsTeamMembershipsApiService();
|
|
35
|
-
this.virtualHosts = new environments_virtual_hosts_api_1.EnvironmentsVirtualHostsApiService();
|
|
36
14
|
}
|
|
37
15
|
}
|
|
38
16
|
exports.EnvironmentService = EnvironmentService;
|
package/dist/services/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './HookService';
|
|
|
10
10
|
export * from './LogService';
|
|
11
11
|
export * from './NetworkRuleService';
|
|
12
12
|
export * from './NetworkService';
|
|
13
|
+
export * from './OrganizationService';
|
|
13
14
|
export * from './PipelineService';
|
|
14
15
|
export * from './ProjectService';
|
|
15
16
|
export * from './ResourceEventService';
|
package/dist/services/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __exportStar(require("./HookService"), exports);
|
|
|
26
26
|
__exportStar(require("./LogService"), exports);
|
|
27
27
|
__exportStar(require("./NetworkRuleService"), exports);
|
|
28
28
|
__exportStar(require("./NetworkService"), exports);
|
|
29
|
+
__exportStar(require("./OrganizationService"), exports);
|
|
29
30
|
__exportStar(require("./PipelineService"), exports);
|
|
30
31
|
__exportStar(require("./ProjectService"), exports);
|
|
31
32
|
__exportStar(require("./ResourceEventService"), exports);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@devopness/sdk-js",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.163.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
"@eslint/js": "^9.22.0",
|
|
55
55
|
"@openapitools/openapi-generator-cli": "^2.18.4",
|
|
56
56
|
"@types/jest": "^29.5.12",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/parser": "^8.30.1",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
|
-
"eslint": "^9.
|
|
60
|
-
"eslint-import-resolver-typescript": "^4.3.
|
|
59
|
+
"eslint": "^9.24.0",
|
|
60
|
+
"eslint-import-resolver-typescript": "^4.3.2",
|
|
61
61
|
"eslint-plugin-import": "^2.31.0",
|
|
62
62
|
"eslint-plugin-n": "^17.17.0",
|
|
63
63
|
"eslint-plugin-promise": "^7.2.1",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
65
|
"jest": "^29.7.0",
|
|
66
|
-
"ts-jest": "^29.3.
|
|
67
|
-
"typedoc": "^0.28.
|
|
68
|
-
"typescript": "^5.8.
|
|
69
|
-
"typescript-eslint": "^8.
|
|
66
|
+
"ts-jest": "^29.3.2",
|
|
67
|
+
"typedoc": "^0.28.2",
|
|
68
|
+
"typescript": "^5.8.3",
|
|
69
|
+
"typescript-eslint": "^8.30.1"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|
|
@@ -1,26 +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
|
-
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { DeploymentApplicationCreate } from '../../generated/models';
|
|
15
|
-
/**
|
|
16
|
-
* ApplicationsDeploymentsApiService - Auto-generated
|
|
17
|
-
*/
|
|
18
|
-
export declare class ApplicationsDeploymentsApiService extends ApiBaseService {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @summary Trigger a new deployment for current application
|
|
22
|
-
* @param {number} applicationId The ID of the application.
|
|
23
|
-
* @param {DeploymentApplicationCreate} deploymentApplicationCreate A JSON object containing the resource data
|
|
24
|
-
*/
|
|
25
|
-
addApplicationDeployment(applicationId: number, deploymentApplicationCreate: DeploymentApplicationCreate): Promise<ApiResponse<void>>;
|
|
26
|
-
}
|
|
@@ -1,53 +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
|
-
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.ApplicationsDeploymentsApiService = void 0;
|
|
25
|
-
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
-
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
-
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
-
/**
|
|
29
|
-
* ApplicationsDeploymentsApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class ApplicationsDeploymentsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Trigger a new deployment for current application
|
|
35
|
-
* @param {number} applicationId The ID of the application.
|
|
36
|
-
* @param {DeploymentApplicationCreate} deploymentApplicationCreate A JSON object containing the resource data
|
|
37
|
-
*/
|
|
38
|
-
addApplicationDeployment(applicationId, deploymentApplicationCreate) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (applicationId === null || applicationId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationDeployment');
|
|
42
|
-
}
|
|
43
|
-
if (deploymentApplicationCreate === null || deploymentApplicationCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('deploymentApplicationCreate', 'addApplicationDeployment');
|
|
45
|
-
}
|
|
46
|
-
let queryString = '';
|
|
47
|
-
const requestUrl = '/applications/{application_id}/deployments' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), deploymentApplicationCreate);
|
|
49
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.ApplicationsDeploymentsApiService = ApplicationsDeploymentsApiService;
|
|
@@ -1,36 +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
|
-
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { Application } from '../../generated/models';
|
|
15
|
-
import { ApplicationEnvironmentCreate } from '../../generated/models';
|
|
16
|
-
import { ApplicationRelation } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* EnvironmentsApplicationsApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class EnvironmentsApplicationsApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Create a new application
|
|
24
|
-
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {ApplicationEnvironmentCreate} applicationEnvironmentCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addEnvironmentApplication(environmentId: number, applicationEnvironmentCreate: ApplicationEnvironmentCreate): Promise<ApiResponse<Application>>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Return a list of all Applications belonging to an environment
|
|
31
|
-
* @param {number} environmentId The ID of the environment.
|
|
32
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
33
|
-
* @param {number} [perPage] Number of items returned per page
|
|
34
|
-
*/
|
|
35
|
-
listEnvironmentApplications(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ApplicationRelation>>>;
|
|
36
|
-
}
|