@devopness/sdk-js 2.5.0 → 2.7.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/pipelines-steps-api.d.ts +9 -0
- package/dist/api/generated/apis/pipelines-steps-api.js +24 -0
- package/dist/api/generated/models/application-last-deployment.d.ts +130 -0
- package/dist/api/generated/models/application-last-deployment.js +14 -0
- package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
- package/dist/api/generated/models/index.d.ts +2 -0
- package/dist/api/generated/models/index.js +2 -0
- package/dist/api/generated/models/pipeline-step-runner-name.d.ts +1 -0
- package/dist/api/generated/models/pipeline-step-runner-name.js +1 -0
- package/dist/api/generated/models/pipeline-step-update.d.ts +49 -0
- package/dist/api/generated/models/pipeline-step-update.js +14 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { PipelineStep } from '../../generated/models';
|
|
15
15
|
import { PipelineStepCreate } from '../../generated/models';
|
|
16
|
+
import { PipelineStepUpdate } from '../../generated/models';
|
|
16
17
|
/**
|
|
17
18
|
* PipelinesStepsApiService - Auto-generated
|
|
18
19
|
*/
|
|
@@ -38,4 +39,12 @@ export declare class PipelinesStepsApiService extends ApiBaseService {
|
|
|
38
39
|
* @param {number} stepId Unique ID of the step to be unlinked
|
|
39
40
|
*/
|
|
40
41
|
unlinkStepFromPipeline(pipelineId: number, stepId: number): Promise<ApiResponse<void>>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @summary Update a pipeline step
|
|
45
|
+
* @param {number} pipelineId Unique ID of the pipeline
|
|
46
|
+
* @param {number} stepId Unique ID of the pipeline step to update information from
|
|
47
|
+
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing pipeline step data
|
|
48
|
+
*/
|
|
49
|
+
updatePipelineStep(pipelineId: number, stepId: number, pipelineStepUpdate: PipelineStepUpdate): Promise<ApiResponse<void>>;
|
|
41
50
|
}
|
|
@@ -89,5 +89,29 @@ class PipelinesStepsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
89
89
|
return new ApiResponse_1.ApiResponse(response);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @summary Update a pipeline step
|
|
95
|
+
* @param {number} pipelineId Unique ID of the pipeline
|
|
96
|
+
* @param {number} stepId Unique ID of the pipeline step to update information from
|
|
97
|
+
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing pipeline step data
|
|
98
|
+
*/
|
|
99
|
+
updatePipelineStep(pipelineId, stepId, pipelineStepUpdate) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
if (pipelineId === null || pipelineId === undefined) {
|
|
102
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'updatePipelineStep');
|
|
103
|
+
}
|
|
104
|
+
if (stepId === null || stepId === undefined) {
|
|
105
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'updatePipelineStep');
|
|
106
|
+
}
|
|
107
|
+
if (pipelineStepUpdate === null || pipelineStepUpdate === undefined) {
|
|
108
|
+
throw new Exceptions_1.ArgumentNullException('pipelineStepUpdate', 'updatePipelineStep');
|
|
109
|
+
}
|
|
110
|
+
let queryString = '';
|
|
111
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}' + (queryString ? `?${queryString}` : '');
|
|
112
|
+
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))), pipelineStepUpdate);
|
|
113
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
92
116
|
}
|
|
93
117
|
exports.PipelinesStepsApiService = PipelinesStepsApiService;
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { ActionData } from './action-data';
|
|
13
|
+
import { ActionHookRequest } from './action-hook-request';
|
|
14
|
+
import { ActionStatus } from './action-status';
|
|
15
|
+
import { ActionSummary } from './action-summary';
|
|
16
|
+
import { ActionTriggeredFrom } from './action-triggered-from';
|
|
17
|
+
import { ActionType } from './action-type';
|
|
18
|
+
import { EnvironmentRelation } from './environment-relation';
|
|
19
|
+
import { ProjectRelation } from './project-relation';
|
|
20
|
+
import { ServerAction } from './server-action';
|
|
21
|
+
import { UserRelation } from './user-relation';
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
* @interface ApplicationLastDeployment
|
|
26
|
+
*/
|
|
27
|
+
export interface ApplicationLastDeployment {
|
|
28
|
+
/**
|
|
29
|
+
* The Id of the given action
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ApplicationLastDeployment
|
|
32
|
+
*/
|
|
33
|
+
id: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ActionStatus}
|
|
37
|
+
* @memberof ApplicationLastDeployment
|
|
38
|
+
*/
|
|
39
|
+
status: ActionStatus;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {ActionType}
|
|
43
|
+
* @memberof ApplicationLastDeployment
|
|
44
|
+
*/
|
|
45
|
+
type: ActionType;
|
|
46
|
+
/**
|
|
47
|
+
* Human readable version of the action type
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ApplicationLastDeployment
|
|
50
|
+
*/
|
|
51
|
+
type_human_readable: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {ActionSummary}
|
|
55
|
+
* @memberof ApplicationLastDeployment
|
|
56
|
+
*/
|
|
57
|
+
summary?: ActionSummary;
|
|
58
|
+
/**
|
|
59
|
+
* The permalink URL to the action details on Devopness web app
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ApplicationLastDeployment
|
|
62
|
+
*/
|
|
63
|
+
url_web_permalink: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {ActionData}
|
|
67
|
+
* @memberof ApplicationLastDeployment
|
|
68
|
+
*/
|
|
69
|
+
action_data: ActionData | null;
|
|
70
|
+
/**
|
|
71
|
+
* List of actions dispatched to servers
|
|
72
|
+
* @type {Array<ServerAction>}
|
|
73
|
+
* @memberof ApplicationLastDeployment
|
|
74
|
+
*/
|
|
75
|
+
servers?: Array<ServerAction>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {EnvironmentRelation}
|
|
79
|
+
* @memberof ApplicationLastDeployment
|
|
80
|
+
*/
|
|
81
|
+
environment?: EnvironmentRelation;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {ActionTriggeredFrom}
|
|
85
|
+
* @memberof ApplicationLastDeployment
|
|
86
|
+
*/
|
|
87
|
+
triggered_from: ActionTriggeredFrom;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {UserRelation}
|
|
91
|
+
* @memberof ApplicationLastDeployment
|
|
92
|
+
*/
|
|
93
|
+
triggered_by_user?: UserRelation;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {ProjectRelation}
|
|
97
|
+
* @memberof ApplicationLastDeployment
|
|
98
|
+
*/
|
|
99
|
+
project?: ProjectRelation;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {ActionHookRequest}
|
|
103
|
+
* @memberof ApplicationLastDeployment
|
|
104
|
+
*/
|
|
105
|
+
hook_requests?: ActionHookRequest;
|
|
106
|
+
/**
|
|
107
|
+
* The date and time when the action started execution (i.e., left the `pending/queued` status)
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof ApplicationLastDeployment
|
|
110
|
+
*/
|
|
111
|
+
started_at?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* The date and time when the action has finished execution
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof ApplicationLastDeployment
|
|
116
|
+
*/
|
|
117
|
+
completed_at?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* The date and time when the record was created
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof ApplicationLastDeployment
|
|
122
|
+
*/
|
|
123
|
+
created_at?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The date and time when the record was last updated
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof ApplicationLastDeployment
|
|
128
|
+
*/
|
|
129
|
+
updated_at?: string;
|
|
130
|
+
}
|
|
@@ -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 });
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ApplicationLastDeployment } from './application-last-deployment';
|
|
13
13
|
/**
|
|
14
14
|
* Latest deployment created to application and the more recent completed deployment
|
|
15
15
|
* @export
|
|
@@ -18,14 +18,14 @@ import { Action } from './action';
|
|
|
18
18
|
export interface ApplicationLastDeployments {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {ApplicationLastDeployment}
|
|
22
22
|
* @memberof ApplicationLastDeployments
|
|
23
23
|
*/
|
|
24
|
-
latest?:
|
|
24
|
+
latest?: ApplicationLastDeployment | null;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {ApplicationLastDeployment}
|
|
28
28
|
* @memberof ApplicationLastDeployments
|
|
29
29
|
*/
|
|
30
|
-
live?:
|
|
30
|
+
live?: ApplicationLastDeployment | null;
|
|
31
31
|
}
|
|
@@ -22,6 +22,7 @@ export * from './api-error-errors-field-name';
|
|
|
22
22
|
export * from './application';
|
|
23
23
|
export * from './application-create';
|
|
24
24
|
export * from './application-deployment';
|
|
25
|
+
export * from './application-last-deployment';
|
|
25
26
|
export * from './application-last-deployments';
|
|
26
27
|
export * from './application-options';
|
|
27
28
|
export * from './application-pipeline';
|
|
@@ -120,6 +121,7 @@ export * from './pipeline-create';
|
|
|
120
121
|
export * from './pipeline-step';
|
|
121
122
|
export * from './pipeline-step-create';
|
|
122
123
|
export * from './pipeline-step-runner-name';
|
|
124
|
+
export * from './pipeline-step-update';
|
|
123
125
|
export * from './project';
|
|
124
126
|
export * from './project-create';
|
|
125
127
|
export * from './project-relation';
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./api-error-errors-field-name"), exports);
|
|
|
38
38
|
__exportStar(require("./application"), exports);
|
|
39
39
|
__exportStar(require("./application-create"), exports);
|
|
40
40
|
__exportStar(require("./application-deployment"), exports);
|
|
41
|
+
__exportStar(require("./application-last-deployment"), exports);
|
|
41
42
|
__exportStar(require("./application-last-deployments"), exports);
|
|
42
43
|
__exportStar(require("./application-options"), exports);
|
|
43
44
|
__exportStar(require("./application-pipeline"), exports);
|
|
@@ -136,6 +137,7 @@ __exportStar(require("./pipeline-create"), exports);
|
|
|
136
137
|
__exportStar(require("./pipeline-step"), exports);
|
|
137
138
|
__exportStar(require("./pipeline-step-create"), exports);
|
|
138
139
|
__exportStar(require("./pipeline-step-runner-name"), exports);
|
|
140
|
+
__exportStar(require("./pipeline-step-update"), exports);
|
|
139
141
|
__exportStar(require("./project"), exports);
|
|
140
142
|
__exportStar(require("./project-create"), exports);
|
|
141
143
|
__exportStar(require("./project-relation"), exports);
|
|
@@ -21,6 +21,7 @@ exports.PipelineStepRunnerName = void 0;
|
|
|
21
21
|
var PipelineStepRunnerName;
|
|
22
22
|
(function (PipelineStepRunnerName) {
|
|
23
23
|
PipelineStepRunnerName["Composer"] = "composer";
|
|
24
|
+
PipelineStepRunnerName["Custom"] = "custom";
|
|
24
25
|
PipelineStepRunnerName["Npm"] = "npm";
|
|
25
26
|
PipelineStepRunnerName["Pip"] = "pip";
|
|
26
27
|
PipelineStepRunnerName["Yarn"] = "yarn";
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { PipelineStepRunnerName } from './pipeline-step-runner-name';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PipelineStepUpdate
|
|
17
|
+
*/
|
|
18
|
+
export interface PipelineStepUpdate {
|
|
19
|
+
/**
|
|
20
|
+
* Name/short description of the script
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PipelineStepUpdate
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* A command line or multiline bash script
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PipelineStepUpdate
|
|
29
|
+
*/
|
|
30
|
+
command: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PipelineStepRunnerName}
|
|
34
|
+
* @memberof PipelineStepUpdate
|
|
35
|
+
*/
|
|
36
|
+
runner: PipelineStepRunnerName;
|
|
37
|
+
/**
|
|
38
|
+
* The name of the Unix user on behalf of which the script will be executed
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PipelineStepUpdate
|
|
41
|
+
*/
|
|
42
|
+
run_as_user?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Repositions the pipeline step after the step with the given `trigger_order`
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof PipelineStepUpdate
|
|
47
|
+
*/
|
|
48
|
+
trigger_after?: number;
|
|
49
|
+
}
|
|
@@ -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 });
|