@devopness/sdk-js 1.102.0 → 1.104.1
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 +5 -5
- package/dist/DevopnessApiClient.d.ts +2 -4
- package/dist/DevopnessApiClient.js +2 -4
- package/dist/api/generated/apis/actions-api.d.ts +0 -20
- package/dist/api/generated/apis/actions-api.js +0 -62
- package/dist/api/generated/apis/actions-resources-api.d.ts +39 -0
- package/dist/api/generated/apis/actions-resources-api.js +95 -0
- package/dist/api/generated/apis/applications-deployments-api.d.ts +3 -13
- package/dist/api/generated/apis/applications-deployments-api.js +3 -28
- package/dist/api/generated/apis/logs-api.d.ts +0 -7
- package/dist/api/generated/apis/logs-api.js +0 -20
- package/dist/api/generated/apis/resource-events-api.d.ts +1 -1
- package/dist/api/generated/apis/resource-events-api.js +1 -1
- package/dist/api/generated/models/action-data.d.ts +18 -0
- package/dist/api/generated/models/{deployment-create-application.js → action-data.js} +0 -0
- package/dist/api/generated/models/action-deployment-commit.d.ts +90 -0
- package/dist/api/generated/models/{deployment-create-server.js → action-deployment-commit.js} +0 -0
- package/dist/api/generated/models/action-deployment-content.d.ts +55 -0
- package/dist/api/generated/models/{deployment-create.js → action-deployment-content.js} +0 -0
- package/dist/api/generated/models/action-deployment-data.d.ts +38 -0
- package/dist/api/generated/models/{deployment-relation.js → action-deployment-data.js} +0 -0
- package/dist/api/generated/models/action-trigger-type.d.ts +20 -0
- package/dist/api/generated/models/action-trigger-type.js +25 -0
- package/dist/api/generated/models/action-triggered-from.d.ts +73 -0
- package/dist/api/generated/models/{deployment-step.js → action-triggered-from.js} +0 -0
- package/dist/api/generated/models/action.d.ts +15 -1
- package/dist/api/generated/models/{deployment-create.d.ts → application-deployment.d.ts} +6 -6
- package/dist/api/generated/models/{deployment.js → application-deployment.js} +0 -0
- package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
- package/dist/api/generated/models/index.d.ts +7 -6
- package/dist/api/generated/models/index.js +7 -6
- package/dist/api/generated/models/resource.d.ts +2 -3
- package/dist/api/generated/models/script.d.ts +11 -4
- package/dist/services/ActionService.d.ts +2 -0
- package/dist/services/ActionService.js +5 -0
- package/dist/services/EnvironmentService.d.ts +2 -0
- package/dist/services/EnvironmentService.js +2 -0
- package/dist/services/ProjectService.d.ts +2 -2
- package/dist/services/ProjectService.js +2 -2
- package/package.json +1 -1
- package/dist/api/generated/apis/deployments-api.d.ts +0 -25
- package/dist/api/generated/apis/deployments-api.js +0 -49
- package/dist/api/generated/apis/projects-deployments-api.d.ts +0 -27
- package/dist/api/generated/apis/projects-deployments-api.js +0 -58
- package/dist/api/generated/models/deployment-create-application.d.ts +0 -42
- package/dist/api/generated/models/deployment-create-server.d.ts +0 -30
- package/dist/api/generated/models/deployment-relation.d.ts +0 -103
- package/dist/api/generated/models/deployment-step.d.ts +0 -61
- package/dist/api/generated/models/deployment.d.ts +0 -110
- package/dist/services/DeploymentService.d.ts +0 -3
- package/dist/services/DeploymentService.js +0 -7
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { ActionDeploymentCommit } from './action-deployment-commit';
|
|
13
|
+
import { ActionDeploymentContent } from './action-deployment-content';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ActionDeploymentData
|
|
18
|
+
*/
|
|
19
|
+
export interface ActionDeploymentData {
|
|
20
|
+
/**
|
|
21
|
+
* The name generated to release created by this deployment
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ActionDeploymentData
|
|
24
|
+
*/
|
|
25
|
+
release_name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ActionDeploymentCommit}
|
|
29
|
+
* @memberof ActionDeploymentData
|
|
30
|
+
*/
|
|
31
|
+
commit: ActionDeploymentCommit;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ActionDeploymentContent}
|
|
35
|
+
* @memberof ActionDeploymentData
|
|
36
|
+
*/
|
|
37
|
+
deployment: ActionDeploymentContent;
|
|
38
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* * `hook`: the action have been triggered by an `incoming hook`. * `manual`: the action have been manually triggered.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ActionTriggerType {
|
|
18
|
+
Hook = "hook",
|
|
19
|
+
Manual = "manual"
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 });
|
|
15
|
+
exports.ActionTriggerType = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* * `hook`: the action have been triggered by an `incoming hook`. * `manual`: the action have been manually triggered.
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var ActionTriggerType;
|
|
22
|
+
(function (ActionTriggerType) {
|
|
23
|
+
ActionTriggerType["Hook"] = "hook";
|
|
24
|
+
ActionTriggerType["Manual"] = "manual";
|
|
25
|
+
})(ActionTriggerType = exports.ActionTriggerType || (exports.ActionTriggerType = {}));
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { ActionTriggerType } from './action-trigger-type';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ActionTriggeredFrom
|
|
17
|
+
*/
|
|
18
|
+
export interface ActionTriggeredFrom {
|
|
19
|
+
/**
|
|
20
|
+
* The HTTP origin of the request that have been dispatched the action.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ActionTriggeredFrom
|
|
23
|
+
*/
|
|
24
|
+
origin: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ActionTriggerType}
|
|
28
|
+
* @memberof ActionTriggeredFrom
|
|
29
|
+
*/
|
|
30
|
+
trigger_type: ActionTriggerType;
|
|
31
|
+
/**
|
|
32
|
+
* The hook or user name that have been triggered the action.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ActionTriggeredFrom
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* The user\'s email if the action have been manually triggered.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ActionTriggeredFrom
|
|
41
|
+
*/
|
|
42
|
+
email: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The IP address of the request origin.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ActionTriggeredFrom
|
|
47
|
+
*/
|
|
48
|
+
ip_address: string;
|
|
49
|
+
/**
|
|
50
|
+
* The user\'s ID if the action have been manually triggered.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ActionTriggeredFrom
|
|
53
|
+
*/
|
|
54
|
+
user_id: number | null;
|
|
55
|
+
/**
|
|
56
|
+
* The hook\'s ID if the action have been triggered by a hook.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ActionTriggeredFrom
|
|
59
|
+
*/
|
|
60
|
+
hook_id: number | null;
|
|
61
|
+
/**
|
|
62
|
+
* The hook request\'s ID if the action have been triggered by a hook.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof ActionTriggeredFrom
|
|
65
|
+
*/
|
|
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
|
+
}
|
|
File without changes
|
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ActionData } from './action-data';
|
|
12
13
|
import { ActionHookRequest } from './action-hook-request';
|
|
13
14
|
import { ActionStatus } from './action-status';
|
|
14
15
|
import { ActionSummary } from './action-summary';
|
|
16
|
+
import { ActionTriggeredFrom } from './action-triggered-from';
|
|
15
17
|
import { ActionType } from './action-type';
|
|
16
18
|
import { EnvironmentRelation } from './environment-relation';
|
|
17
19
|
import { ProjectRelation } from './project-relation';
|
|
@@ -60,6 +62,12 @@ export interface Action {
|
|
|
60
62
|
* @memberof Action
|
|
61
63
|
*/
|
|
62
64
|
url_web_permalink: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {ActionData}
|
|
68
|
+
* @memberof Action
|
|
69
|
+
*/
|
|
70
|
+
action_data: ActionData | null;
|
|
63
71
|
/**
|
|
64
72
|
* List of actions dispatched to servers
|
|
65
73
|
* @type {Array<ServerAction>}
|
|
@@ -78,12 +86,18 @@ export interface Action {
|
|
|
78
86
|
* @memberof Action
|
|
79
87
|
*/
|
|
80
88
|
environment?: EnvironmentRelation;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {ActionTriggeredFrom}
|
|
92
|
+
* @memberof Action
|
|
93
|
+
*/
|
|
94
|
+
triggered_from: ActionTriggeredFrom;
|
|
81
95
|
/**
|
|
82
96
|
*
|
|
83
97
|
* @type {UserRelation}
|
|
84
98
|
* @memberof Action
|
|
85
99
|
*/
|
|
86
|
-
triggered_by_user
|
|
100
|
+
triggered_by_user?: UserRelation;
|
|
87
101
|
/**
|
|
88
102
|
*
|
|
89
103
|
* @type {ProjectRelation}
|
|
@@ -13,31 +13,31 @@ import { DeploymentType } from './deployment-type';
|
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface ApplicationDeployment
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface ApplicationDeployment {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @type {DeploymentType}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof ApplicationDeployment
|
|
23
23
|
*/
|
|
24
24
|
type: DeploymentType;
|
|
25
25
|
/**
|
|
26
26
|
* The name of the branch from which the application source code will be retrieved and deployed. This parameter is ignored when `hash` is provided.
|
|
27
27
|
* @type {string}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof ApplicationDeployment
|
|
29
29
|
*/
|
|
30
30
|
branch: string;
|
|
31
31
|
/**
|
|
32
32
|
* The commit hash from which the application source code will be retrieved and deployed. When provided `branch` parameter is ignored
|
|
33
33
|
* @type {string}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof ApplicationDeployment
|
|
35
35
|
*/
|
|
36
36
|
hash?: string;
|
|
37
37
|
/**
|
|
38
38
|
* List of servers ids that the deploy will be triggered to
|
|
39
39
|
* @type {Array<number>}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof ApplicationDeployment
|
|
41
41
|
*/
|
|
42
42
|
servers?: Array<number>;
|
|
43
43
|
}
|
|
File without changes
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { Action } from './action';
|
|
13
13
|
/**
|
|
14
14
|
* Latest deployment created to application and the more recent completed deployment
|
|
15
15
|
* @export
|
|
@@ -18,14 +18,14 @@ import { DeploymentRelation } from './deployment-relation';
|
|
|
18
18
|
export interface ApplicationLastDeployments {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {Action}
|
|
22
22
|
* @memberof ApplicationLastDeployments
|
|
23
23
|
*/
|
|
24
|
-
latest?:
|
|
24
|
+
latest?: Action | null;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {Action}
|
|
28
28
|
* @memberof ApplicationLastDeployments
|
|
29
29
|
*/
|
|
30
|
-
live?:
|
|
30
|
+
live?: Action | null;
|
|
31
31
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from './accepted-response-message';
|
|
2
2
|
export * from './action';
|
|
3
|
+
export * from './action-data';
|
|
4
|
+
export * from './action-deployment-commit';
|
|
5
|
+
export * from './action-deployment-content';
|
|
6
|
+
export * from './action-deployment-data';
|
|
3
7
|
export * from './action-hook-request';
|
|
4
8
|
export * from './action-list-item';
|
|
5
9
|
export * from './action-list-item-params';
|
|
@@ -9,12 +13,15 @@ export * from './action-step';
|
|
|
9
13
|
export * from './action-step-log';
|
|
10
14
|
export * from './action-summary';
|
|
11
15
|
export * from './action-summary-server';
|
|
16
|
+
export * from './action-trigger-type';
|
|
17
|
+
export * from './action-triggered-from';
|
|
12
18
|
export * from './action-type';
|
|
13
19
|
export * from './api-error';
|
|
14
20
|
export * from './api-error-errors';
|
|
15
21
|
export * from './api-error-errors-field-name';
|
|
16
22
|
export * from './application';
|
|
17
23
|
export * from './application-create';
|
|
24
|
+
export * from './application-deployment';
|
|
18
25
|
export * from './application-last-deployments';
|
|
19
26
|
export * from './application-options';
|
|
20
27
|
export * from './application-relation';
|
|
@@ -50,15 +57,9 @@ export * from './daemon-create';
|
|
|
50
57
|
export * from './daemon-relation';
|
|
51
58
|
export * from './daemon-restart';
|
|
52
59
|
export * from './daemon-update';
|
|
53
|
-
export * from './deployment';
|
|
54
|
-
export * from './deployment-create';
|
|
55
|
-
export * from './deployment-create-application';
|
|
56
|
-
export * from './deployment-create-server';
|
|
57
60
|
export * from './deployment-default-step';
|
|
58
61
|
export * from './deployment-origin';
|
|
59
|
-
export * from './deployment-relation';
|
|
60
62
|
export * from './deployment-source';
|
|
61
|
-
export * from './deployment-step';
|
|
62
63
|
export * from './deployment-type';
|
|
63
64
|
export * from './environment';
|
|
64
65
|
export * from './environment-create';
|
|
@@ -16,6 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./accepted-response-message"), exports);
|
|
18
18
|
__exportStar(require("./action"), exports);
|
|
19
|
+
__exportStar(require("./action-data"), exports);
|
|
20
|
+
__exportStar(require("./action-deployment-commit"), exports);
|
|
21
|
+
__exportStar(require("./action-deployment-content"), exports);
|
|
22
|
+
__exportStar(require("./action-deployment-data"), exports);
|
|
19
23
|
__exportStar(require("./action-hook-request"), exports);
|
|
20
24
|
__exportStar(require("./action-list-item"), exports);
|
|
21
25
|
__exportStar(require("./action-list-item-params"), exports);
|
|
@@ -25,12 +29,15 @@ __exportStar(require("./action-step"), exports);
|
|
|
25
29
|
__exportStar(require("./action-step-log"), exports);
|
|
26
30
|
__exportStar(require("./action-summary"), exports);
|
|
27
31
|
__exportStar(require("./action-summary-server"), exports);
|
|
32
|
+
__exportStar(require("./action-trigger-type"), exports);
|
|
33
|
+
__exportStar(require("./action-triggered-from"), exports);
|
|
28
34
|
__exportStar(require("./action-type"), exports);
|
|
29
35
|
__exportStar(require("./api-error"), exports);
|
|
30
36
|
__exportStar(require("./api-error-errors"), exports);
|
|
31
37
|
__exportStar(require("./api-error-errors-field-name"), exports);
|
|
32
38
|
__exportStar(require("./application"), exports);
|
|
33
39
|
__exportStar(require("./application-create"), exports);
|
|
40
|
+
__exportStar(require("./application-deployment"), exports);
|
|
34
41
|
__exportStar(require("./application-last-deployments"), exports);
|
|
35
42
|
__exportStar(require("./application-options"), exports);
|
|
36
43
|
__exportStar(require("./application-relation"), exports);
|
|
@@ -66,15 +73,9 @@ __exportStar(require("./daemon-create"), exports);
|
|
|
66
73
|
__exportStar(require("./daemon-relation"), exports);
|
|
67
74
|
__exportStar(require("./daemon-restart"), exports);
|
|
68
75
|
__exportStar(require("./daemon-update"), exports);
|
|
69
|
-
__exportStar(require("./deployment"), exports);
|
|
70
|
-
__exportStar(require("./deployment-create"), exports);
|
|
71
|
-
__exportStar(require("./deployment-create-application"), exports);
|
|
72
|
-
__exportStar(require("./deployment-create-server"), exports);
|
|
73
76
|
__exportStar(require("./deployment-default-step"), exports);
|
|
74
77
|
__exportStar(require("./deployment-origin"), exports);
|
|
75
|
-
__exportStar(require("./deployment-relation"), exports);
|
|
76
78
|
__exportStar(require("./deployment-source"), exports);
|
|
77
|
-
__exportStar(require("./deployment-step"), exports);
|
|
78
79
|
__exportStar(require("./deployment-type"), exports);
|
|
79
80
|
__exportStar(require("./environment"), exports);
|
|
80
81
|
__exportStar(require("./environment-create"), exports);
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { ApplicationRelation } from './application-relation';
|
|
13
13
|
import { CronJobRelation } from './cron-job-relation';
|
|
14
14
|
import { DaemonRelation } from './daemon-relation';
|
|
15
|
-
import { DeploymentRelation } from './deployment-relation';
|
|
16
15
|
import { NetworkRuleRelation } from './network-rule-relation';
|
|
17
16
|
import { ResourceType } from './resource-type';
|
|
18
17
|
import { ServerRelation } from './server-relation';
|
|
@@ -45,8 +44,8 @@ export interface Resource {
|
|
|
45
44
|
type_human_readable: string;
|
|
46
45
|
/**
|
|
47
46
|
* The resource data of type specified on `resource.type`
|
|
48
|
-
* @type {ApplicationRelation | CronJobRelation | DaemonRelation |
|
|
47
|
+
* @type {ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation}
|
|
49
48
|
* @memberof Resource
|
|
50
49
|
*/
|
|
51
|
-
data?: ApplicationRelation | CronJobRelation | DaemonRelation |
|
|
50
|
+
data?: ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | null;
|
|
52
51
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ResourceType } from './resource-type';
|
|
12
13
|
import { TriggerEvent } from './trigger-event';
|
|
13
14
|
import { TriggerType } from './trigger-type';
|
|
14
15
|
/**
|
|
@@ -24,17 +25,23 @@ export interface Script {
|
|
|
24
25
|
*/
|
|
25
26
|
id: number;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
*
|
|
29
|
+
* @type {ResourceType}
|
|
30
|
+
* @memberof Script
|
|
31
|
+
*/
|
|
32
|
+
resource_type: ResourceType;
|
|
33
|
+
/**
|
|
34
|
+
* The id of the linked resource
|
|
28
35
|
* @type {number}
|
|
29
36
|
* @memberof Script
|
|
30
37
|
*/
|
|
31
|
-
|
|
38
|
+
resource_id: number;
|
|
32
39
|
/**
|
|
33
40
|
* The id of the user that own the script
|
|
34
41
|
* @type {number}
|
|
35
42
|
* @memberof Script
|
|
36
43
|
*/
|
|
37
|
-
|
|
44
|
+
created_by: number;
|
|
38
45
|
/**
|
|
39
46
|
* Name/short description of the script
|
|
40
47
|
* @type {string}
|
|
@@ -46,7 +53,7 @@ export interface Script {
|
|
|
46
53
|
* @type {string}
|
|
47
54
|
* @memberof Script
|
|
48
55
|
*/
|
|
49
|
-
|
|
56
|
+
command: string;
|
|
50
57
|
/**
|
|
51
58
|
* The name of the Unix user on behalf of which the script will be executed
|
|
52
59
|
* @type {string}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ActionsApiService } from "../api/generated/apis/actions-api";
|
|
2
|
+
import { ActionsResourcesApiService } from "../api/generated/apis/actions-resources-api";
|
|
2
3
|
export declare class ActionService extends ActionsApiService {
|
|
4
|
+
resources: ActionsResourcesApiService;
|
|
3
5
|
}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActionService = void 0;
|
|
4
4
|
const actions_api_1 = require("../api/generated/apis/actions-api");
|
|
5
|
+
const actions_resources_api_1 = require("../api/generated/apis/actions-resources-api");
|
|
5
6
|
class ActionService extends actions_api_1.ActionsApiService {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.resources = new actions_resources_api_1.ActionsResourcesApiService();
|
|
10
|
+
}
|
|
6
11
|
}
|
|
7
12
|
exports.ActionService = ActionService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EnvironmentsApiService } from '../api/generated/apis/environments-api';
|
|
2
|
+
import { EnvironmentsActionsApiService } from '../api/generated/apis/environments-actions-api';
|
|
2
3
|
import { EnvironmentsApplicationsApiService } from '../api/generated/apis/environments-applications-api';
|
|
3
4
|
import { EnvironmentsCronJobsApiService } from '../api/generated/apis/environments-cron-jobs-api';
|
|
4
5
|
import { EnvironmentsDaemonsApiService } from '../api/generated/apis/environments-daemons-api';
|
|
@@ -9,6 +10,7 @@ import { EnvironmentsServicesApiService } from '../api/generated/apis/environmen
|
|
|
9
10
|
import { EnvironmentsSSHKeysApiService } from '../api/generated/apis/environments-sshkeys-api';
|
|
10
11
|
import { EnvironmentsTeamsApiService } from '../api/generated/apis/environments-teams-api';
|
|
11
12
|
export declare class EnvironmentService extends EnvironmentsApiService {
|
|
13
|
+
actions: EnvironmentsActionsApiService;
|
|
12
14
|
applications: EnvironmentsApplicationsApiService;
|
|
13
15
|
cronjobs: EnvironmentsCronJobsApiService;
|
|
14
16
|
daemons: EnvironmentsDaemonsApiService;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EnvironmentService = void 0;
|
|
4
4
|
const environments_api_1 = require("../api/generated/apis/environments-api");
|
|
5
|
+
const environments_actions_api_1 = require("../api/generated/apis/environments-actions-api");
|
|
5
6
|
const environments_applications_api_1 = require("../api/generated/apis/environments-applications-api");
|
|
6
7
|
const environments_cron_jobs_api_1 = require("../api/generated/apis/environments-cron-jobs-api");
|
|
7
8
|
const environments_daemons_api_1 = require("../api/generated/apis/environments-daemons-api");
|
|
@@ -14,6 +15,7 @@ const environments_teams_api_1 = require("../api/generated/apis/environments-tea
|
|
|
14
15
|
class EnvironmentService extends environments_api_1.EnvironmentsApiService {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
18
|
+
this.actions = new environments_actions_api_1.EnvironmentsActionsApiService();
|
|
17
19
|
this.applications = new environments_applications_api_1.EnvironmentsApplicationsApiService();
|
|
18
20
|
this.cronjobs = new environments_cron_jobs_api_1.EnvironmentsCronJobsApiService();
|
|
19
21
|
this.daemons = new environments_daemons_api_1.EnvironmentsDaemonsApiService();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProjectsApiService } from '../api/generated/apis/projects-api';
|
|
2
|
+
import { ProjectsActionsApiService } from '../api/generated/apis/projects-actions-api';
|
|
2
3
|
import { ProjectsApplicationsApiService } from '../api/generated/apis/projects-applications-api';
|
|
3
4
|
import { ProjectsCronJobsApiService } from '../api/generated/apis/projects-cron-jobs-api';
|
|
4
|
-
import { ProjectsDeploymentsApiService } from '../api/generated/apis/projects-deployments-api';
|
|
5
5
|
import { ProjectsEnvironmentsApiService } from '../api/generated/apis/projects-environments-api';
|
|
6
6
|
import { ProjectsNetworkRulesApiService } from '../api/generated/apis/projects-network-rules-api';
|
|
7
7
|
import { ProjectsServersApiService } from '../api/generated/apis/projects-servers-api';
|
|
@@ -9,10 +9,10 @@ import { ProjectsServicesApiService } from '../api/generated/apis/projects-servi
|
|
|
9
9
|
import { ProjectsSSHKeysApiService } from '../api/generated/apis/projects-sshkeys-api';
|
|
10
10
|
import { ProjectsDaemonsApiService } from '../api/generated/apis/projects-daemons-api';
|
|
11
11
|
export declare class ProjectService extends ProjectsApiService {
|
|
12
|
+
actions: ProjectsActionsApiService;
|
|
12
13
|
applications: ProjectsApplicationsApiService;
|
|
13
14
|
cronjobs: ProjectsCronJobsApiService;
|
|
14
15
|
daemons: ProjectsDaemonsApiService;
|
|
15
|
-
deployments: ProjectsDeploymentsApiService;
|
|
16
16
|
environments: ProjectsEnvironmentsApiService;
|
|
17
17
|
networkRules: ProjectsNetworkRulesApiService;
|
|
18
18
|
servers: ProjectsServersApiService;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProjectService = void 0;
|
|
4
4
|
const projects_api_1 = require("../api/generated/apis/projects-api");
|
|
5
|
+
const projects_actions_api_1 = require("../api/generated/apis/projects-actions-api");
|
|
5
6
|
const projects_applications_api_1 = require("../api/generated/apis/projects-applications-api");
|
|
6
7
|
const projects_cron_jobs_api_1 = require("../api/generated/apis/projects-cron-jobs-api");
|
|
7
|
-
const projects_deployments_api_1 = require("../api/generated/apis/projects-deployments-api");
|
|
8
8
|
const projects_environments_api_1 = require("../api/generated/apis/projects-environments-api");
|
|
9
9
|
const projects_network_rules_api_1 = require("../api/generated/apis/projects-network-rules-api");
|
|
10
10
|
const projects_servers_api_1 = require("../api/generated/apis/projects-servers-api");
|
|
@@ -14,10 +14,10 @@ const projects_daemons_api_1 = require("../api/generated/apis/projects-daemons-a
|
|
|
14
14
|
class ProjectService extends projects_api_1.ProjectsApiService {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
|
+
this.actions = new projects_actions_api_1.ProjectsActionsApiService();
|
|
17
18
|
this.applications = new projects_applications_api_1.ProjectsApplicationsApiService();
|
|
18
19
|
this.cronjobs = new projects_cron_jobs_api_1.ProjectsCronJobsApiService();
|
|
19
20
|
this.daemons = new projects_daemons_api_1.ProjectsDaemonsApiService();
|
|
20
|
-
this.deployments = new projects_deployments_api_1.ProjectsDeploymentsApiService();
|
|
21
21
|
this.environments = new projects_environments_api_1.ProjectsEnvironmentsApiService();
|
|
22
22
|
this.networkRules = new projects_network_rules_api_1.ProjectsNetworkRulesApiService();
|
|
23
23
|
this.servers = new projects_servers_api_1.ProjectsServersApiService();
|
package/package.json
CHANGED
|
@@ -1,25 +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 { Deployment } from '../../generated/models';
|
|
15
|
-
/**
|
|
16
|
-
* DeploymentsApiService - Auto-generated
|
|
17
|
-
*/
|
|
18
|
-
export declare class DeploymentsApiService extends ApiBaseService {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @summary Get a deployment by ID
|
|
22
|
-
* @param {number} deploymentId Numeric ID of the deployment to get
|
|
23
|
-
*/
|
|
24
|
-
getDeployment(deploymentId: number): Promise<ApiResponse<Deployment>>;
|
|
25
|
-
}
|
|
@@ -1,49 +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.DeploymentsApiService = 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
|
-
* DeploymentsApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class DeploymentsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Get a deployment by ID
|
|
35
|
-
* @param {number} deploymentId Numeric ID of the deployment to get
|
|
36
|
-
*/
|
|
37
|
-
getDeployment(deploymentId) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
if (deploymentId === null || deploymentId === undefined) {
|
|
40
|
-
throw new Exceptions_1.ArgumentNullException('deploymentId', 'getDeployment');
|
|
41
|
-
}
|
|
42
|
-
let queryString = '';
|
|
43
|
-
const requestUrl = '/deployments/{deployment_id}' + (queryString ? `?${queryString}` : '');
|
|
44
|
-
const response = yield this.get(requestUrl.replace(`{${"deployment_id"}}`, encodeURIComponent(String(deploymentId))));
|
|
45
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.DeploymentsApiService = DeploymentsApiService;
|
|
@@ -1,27 +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 { DeploymentRelation } from '../../generated/models';
|
|
15
|
-
/**
|
|
16
|
-
* ProjectsDeploymentsApiService - Auto-generated
|
|
17
|
-
*/
|
|
18
|
-
export declare class ProjectsDeploymentsApiService extends ApiBaseService {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @summary Returns a list of all deployments belonging to a project
|
|
22
|
-
* @param {number} projectId Numeric ID of the project to get deployments from
|
|
23
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
24
|
-
* @param {number} [perPage] Number of items returned per page
|
|
25
|
-
*/
|
|
26
|
-
listProjectDeployments(projectId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<DeploymentRelation>>>;
|
|
27
|
-
}
|