@devopness/sdk-js 2.4.0 → 2.6.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/dist/api/generated/apis/pipelines-steps-api.d.ts +41 -0
- package/dist/api/generated/apis/pipelines-steps-api.js +93 -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/application-options.d.ts +7 -0
- package/dist/api/generated/models/index.d.ts +5 -0
- package/dist/api/generated/models/index.js +5 -0
- package/dist/api/generated/models/pipeline-step-create.d.ts +43 -0
- package/dist/api/generated/models/pipeline-step-create.js +14 -0
- package/dist/api/generated/models/pipeline-step-runner-name.d.ts +23 -0
- package/dist/api/generated/models/pipeline-step-runner-name.js +28 -0
- package/dist/api/generated/models/pipeline-step.d.ts +73 -0
- package/dist/api/generated/models/pipeline-step.js +14 -0
- package/dist/api/generated/models/script-runner.d.ts +36 -0
- package/dist/api/generated/models/script-runner.js +14 -0
- package/dist/services/PipelineService.d.ts +2 -0
- package/dist/services/PipelineService.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
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 { PipelineStep } from '../../generated/models';
|
|
15
|
+
import { PipelineStepCreate } from '../../generated/models';
|
|
16
|
+
/**
|
|
17
|
+
* PipelinesStepsApiService - Auto-generated
|
|
18
|
+
*/
|
|
19
|
+
export declare class PipelinesStepsApiService extends ApiBaseService {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @summary Creates a step for a pipeline
|
|
23
|
+
* @param {number} pipelineId Unique ID of the pipeline to add the step to
|
|
24
|
+
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing pipeline script data
|
|
25
|
+
*/
|
|
26
|
+
createPipelineStep(pipelineId: number, pipelineStepCreate: PipelineStepCreate): Promise<ApiResponse<PipelineStep>>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @summary Link a step to a pipeline
|
|
30
|
+
* @param {number} pipelineId Unique ID of the pipeline
|
|
31
|
+
* @param {number} stepId Unique ID of the step to be linked
|
|
32
|
+
*/
|
|
33
|
+
linkStepToPipeline(pipelineId: number, stepId: number): Promise<ApiResponse<void>>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary Unlink a step from a pipeline
|
|
37
|
+
* @param {number} pipelineId Unique ID of the pipeline
|
|
38
|
+
* @param {number} stepId Unique ID of the step to be unlinked
|
|
39
|
+
*/
|
|
40
|
+
unlinkStepFromPipeline(pipelineId: number, stepId: number): Promise<ApiResponse<void>>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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.PipelinesStepsApiService = 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
|
+
* PipelinesStepsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class PipelinesStepsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Creates a step for a pipeline
|
|
35
|
+
* @param {number} pipelineId Unique ID of the pipeline to add the step to
|
|
36
|
+
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing pipeline script data
|
|
37
|
+
*/
|
|
38
|
+
createPipelineStep(pipelineId, pipelineStepCreate) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (pipelineId === null || pipelineId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'createPipelineStep');
|
|
42
|
+
}
|
|
43
|
+
if (pipelineStepCreate === null || pipelineStepCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('pipelineStepCreate', 'createPipelineStep');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))), pipelineStepCreate);
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Link a step to a pipeline
|
|
55
|
+
* @param {number} pipelineId Unique ID of the pipeline
|
|
56
|
+
* @param {number} stepId Unique ID of the step to be linked
|
|
57
|
+
*/
|
|
58
|
+
linkStepToPipeline(pipelineId, stepId) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
if (pipelineId === null || pipelineId === undefined) {
|
|
61
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'linkStepToPipeline');
|
|
62
|
+
}
|
|
63
|
+
if (stepId === null || stepId === undefined) {
|
|
64
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'linkStepToPipeline');
|
|
65
|
+
}
|
|
66
|
+
let queryString = '';
|
|
67
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}' + (queryString ? `?${queryString}` : '');
|
|
68
|
+
const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))));
|
|
69
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @summary Unlink a step from a pipeline
|
|
75
|
+
* @param {number} pipelineId Unique ID of the pipeline
|
|
76
|
+
* @param {number} stepId Unique ID of the step to be unlinked
|
|
77
|
+
*/
|
|
78
|
+
unlinkStepFromPipeline(pipelineId, stepId) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
if (pipelineId === null || pipelineId === undefined) {
|
|
81
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'unlinkStepFromPipeline');
|
|
82
|
+
}
|
|
83
|
+
if (stepId === null || stepId === undefined) {
|
|
84
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'unlinkStepFromPipeline');
|
|
85
|
+
}
|
|
86
|
+
let queryString = '';
|
|
87
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}' + (queryString ? `?${queryString}` : '');
|
|
88
|
+
const response = yield this.delete(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))));
|
|
89
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
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
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { DeploymentDefaultStep } from './deployment-default-step';
|
|
13
13
|
import { LanguageRuntime } from './language-runtime';
|
|
14
|
+
import { ScriptRunner } from './script-runner';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -29,4 +30,10 @@ export interface ApplicationOptions {
|
|
|
29
30
|
* @memberof ApplicationOptions
|
|
30
31
|
*/
|
|
31
32
|
language_runtimes: Array<LanguageRuntime>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<ScriptRunner>}
|
|
36
|
+
* @memberof ApplicationOptions
|
|
37
|
+
*/
|
|
38
|
+
script_runners: Array<ScriptRunner>;
|
|
32
39
|
}
|
|
@@ -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';
|
|
@@ -117,6 +118,9 @@ export * from './operating-system';
|
|
|
117
118
|
export * from './operating-system-supported-versions';
|
|
118
119
|
export * from './pipeline';
|
|
119
120
|
export * from './pipeline-create';
|
|
121
|
+
export * from './pipeline-step';
|
|
122
|
+
export * from './pipeline-step-create';
|
|
123
|
+
export * from './pipeline-step-runner-name';
|
|
120
124
|
export * from './project';
|
|
121
125
|
export * from './project-create';
|
|
122
126
|
export * from './project-relation';
|
|
@@ -128,6 +132,7 @@ export * from './resource-event';
|
|
|
128
132
|
export * from './resource-type';
|
|
129
133
|
export * from './script';
|
|
130
134
|
export * from './script-create';
|
|
135
|
+
export * from './script-runner';
|
|
131
136
|
export * from './script-update';
|
|
132
137
|
export * from './server';
|
|
133
138
|
export * from './server-action';
|
|
@@ -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);
|
|
@@ -133,6 +134,9 @@ __exportStar(require("./operating-system"), exports);
|
|
|
133
134
|
__exportStar(require("./operating-system-supported-versions"), exports);
|
|
134
135
|
__exportStar(require("./pipeline"), exports);
|
|
135
136
|
__exportStar(require("./pipeline-create"), exports);
|
|
137
|
+
__exportStar(require("./pipeline-step"), exports);
|
|
138
|
+
__exportStar(require("./pipeline-step-create"), exports);
|
|
139
|
+
__exportStar(require("./pipeline-step-runner-name"), exports);
|
|
136
140
|
__exportStar(require("./project"), exports);
|
|
137
141
|
__exportStar(require("./project-create"), exports);
|
|
138
142
|
__exportStar(require("./project-relation"), exports);
|
|
@@ -144,6 +148,7 @@ __exportStar(require("./resource-event"), exports);
|
|
|
144
148
|
__exportStar(require("./resource-type"), exports);
|
|
145
149
|
__exportStar(require("./script"), exports);
|
|
146
150
|
__exportStar(require("./script-create"), exports);
|
|
151
|
+
__exportStar(require("./script-runner"), exports);
|
|
147
152
|
__exportStar(require("./script-update"), exports);
|
|
148
153
|
__exportStar(require("./server"), exports);
|
|
149
154
|
__exportStar(require("./server-action"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
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 PipelineStepCreate
|
|
17
|
+
*/
|
|
18
|
+
export interface PipelineStepCreate {
|
|
19
|
+
/**
|
|
20
|
+
* Name/short description of the script
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PipelineStepCreate
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* A command line or multiline bash script
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PipelineStepCreate
|
|
29
|
+
*/
|
|
30
|
+
command: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PipelineStepRunnerName}
|
|
34
|
+
* @memberof PipelineStepCreate
|
|
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 PipelineStepCreate
|
|
41
|
+
*/
|
|
42
|
+
run_as_user?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Name of the script runner that will run the script
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum PipelineStepRunnerName {
|
|
18
|
+
Composer = "composer",
|
|
19
|
+
Custom = "custom",
|
|
20
|
+
Npm = "npm",
|
|
21
|
+
Pip = "pip",
|
|
22
|
+
Yarn = "yarn"
|
|
23
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.PipelineStepRunnerName = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* Name of the script runner that will run the script
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var PipelineStepRunnerName;
|
|
22
|
+
(function (PipelineStepRunnerName) {
|
|
23
|
+
PipelineStepRunnerName["Composer"] = "composer";
|
|
24
|
+
PipelineStepRunnerName["Custom"] = "custom";
|
|
25
|
+
PipelineStepRunnerName["Npm"] = "npm";
|
|
26
|
+
PipelineStepRunnerName["Pip"] = "pip";
|
|
27
|
+
PipelineStepRunnerName["Yarn"] = "yarn";
|
|
28
|
+
})(PipelineStepRunnerName = exports.PipelineStepRunnerName || (exports.PipelineStepRunnerName = {}));
|
|
@@ -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 { PipelineStepRunnerName } from './pipeline-step-runner-name';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PipelineStep
|
|
17
|
+
*/
|
|
18
|
+
export interface PipelineStep {
|
|
19
|
+
/**
|
|
20
|
+
* The Id of the given script
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof PipelineStep
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
* The id of the user that own the script
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PipelineStep
|
|
29
|
+
*/
|
|
30
|
+
created_by: number;
|
|
31
|
+
/**
|
|
32
|
+
* Name/short description of the script
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PipelineStep
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* A command line or multiline bash script
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PipelineStep
|
|
41
|
+
*/
|
|
42
|
+
command: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PipelineStepRunnerName}
|
|
46
|
+
* @memberof PipelineStep
|
|
47
|
+
*/
|
|
48
|
+
runner: PipelineStepRunnerName;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the Unix user on behalf of which the script will be executed
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PipelineStep
|
|
53
|
+
*/
|
|
54
|
+
run_as_user: string;
|
|
55
|
+
/**
|
|
56
|
+
* The relative order of the script execution in case the event has multiple scripts attached
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PipelineStep
|
|
59
|
+
*/
|
|
60
|
+
trigger_order: number;
|
|
61
|
+
/**
|
|
62
|
+
* The date and time when the record was created
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PipelineStep
|
|
65
|
+
*/
|
|
66
|
+
created_at?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The date and time when the record was last updated
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PipelineStep
|
|
71
|
+
*/
|
|
72
|
+
updated_at?: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScriptRunner
|
|
16
|
+
*/
|
|
17
|
+
export interface ScriptRunner {
|
|
18
|
+
/**
|
|
19
|
+
* How to call the runner in CLI
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScriptRunner
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
* The formatted name of the runner
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScriptRunner
|
|
28
|
+
*/
|
|
29
|
+
human_readable: string;
|
|
30
|
+
/**
|
|
31
|
+
* A brief description about the runner
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScriptRunner
|
|
34
|
+
*/
|
|
35
|
+
hint: string;
|
|
36
|
+
}
|
|
@@ -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 });
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PipelinesApiService } from "../api/generated/apis/pipelines-api";
|
|
2
2
|
import { PipelinesResourcesApiService } from "../api/generated/apis/pipelines-resources-api";
|
|
3
|
+
import { PipelinesStepsApiService } from "../api/generated/apis/pipelines-steps-api";
|
|
3
4
|
export declare class PipelineService extends PipelinesApiService {
|
|
4
5
|
resources: PipelinesResourcesApiService;
|
|
6
|
+
steps: PipelinesStepsApiService;
|
|
5
7
|
}
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PipelineService = void 0;
|
|
4
4
|
const pipelines_api_1 = require("../api/generated/apis/pipelines-api");
|
|
5
5
|
const pipelines_resources_api_1 = require("../api/generated/apis/pipelines-resources-api");
|
|
6
|
+
const pipelines_steps_api_1 = require("../api/generated/apis/pipelines-steps-api");
|
|
6
7
|
class PipelineService extends pipelines_api_1.PipelinesApiService {
|
|
7
8
|
constructor() {
|
|
8
9
|
super(...arguments);
|
|
9
10
|
this.resources = new pipelines_resources_api_1.PipelinesResourcesApiService();
|
|
11
|
+
this.steps = new pipelines_steps_api_1.PipelinesStepsApiService();
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
exports.PipelineService = PipelineService;
|