@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
|
@@ -1,58 +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.ProjectsDeploymentsApiService = 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
|
-
* ProjectsDeploymentsApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class ProjectsDeploymentsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Returns a list of all deployments belonging to a project
|
|
35
|
-
* @param {number} projectId Numeric ID of the project to get deployments from
|
|
36
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
37
|
-
* @param {number} [perPage] Number of items returned per page
|
|
38
|
-
*/
|
|
39
|
-
listProjectDeployments(projectId, page, perPage) {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
if (projectId === null || projectId === undefined) {
|
|
42
|
-
throw new Exceptions_1.ArgumentNullException('projectId', 'listProjectDeployments');
|
|
43
|
-
}
|
|
44
|
-
let queryString = '';
|
|
45
|
-
const queryParams = { page: page, per_page: perPage, };
|
|
46
|
-
for (const key in queryParams) {
|
|
47
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
51
|
-
}
|
|
52
|
-
const requestUrl = '/projects/{project_id}/deployments' + (queryString ? `?${queryString}` : '');
|
|
53
|
-
const response = yield this.get(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))));
|
|
54
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.ProjectsDeploymentsApiService = ProjectsDeploymentsApiService;
|
|
@@ -1,42 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface DeploymentCreateApplication
|
|
16
|
-
*/
|
|
17
|
-
export interface DeploymentCreateApplication {
|
|
18
|
-
/**
|
|
19
|
-
* Numeric ID of the application
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof DeploymentCreateApplication
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
* The applications\'s name
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof DeploymentCreateApplication
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
* The name of the branch from which the source code should be retrieved and deployed
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof DeploymentCreateApplication
|
|
34
|
-
*/
|
|
35
|
-
branch: string;
|
|
36
|
-
/**
|
|
37
|
-
* The commit\'s full hash that uniquely identify a commit. Required when re-deploying
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof DeploymentCreateApplication
|
|
40
|
-
*/
|
|
41
|
-
hash?: string;
|
|
42
|
-
}
|
|
@@ -1,30 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface DeploymentCreateServer
|
|
16
|
-
*/
|
|
17
|
-
export interface DeploymentCreateServer {
|
|
18
|
-
/**
|
|
19
|
-
* Numeric ID of the server
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof DeploymentCreateServer
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
* The server\'s hostname
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof DeploymentCreateServer
|
|
28
|
-
*/
|
|
29
|
-
hostname: string;
|
|
30
|
-
}
|
|
@@ -1,103 +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 { ActionRelation } from './action-relation';
|
|
13
|
-
import { ActionStatus } from './action-status';
|
|
14
|
-
import { Commit } from './commit';
|
|
15
|
-
import { DeploymentSource } from './deployment-source';
|
|
16
|
-
import { DeploymentStep } from './deployment-step';
|
|
17
|
-
import { DeploymentType } from './deployment-type';
|
|
18
|
-
import { UserRelation } from './user-relation';
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface DeploymentRelation
|
|
23
|
-
*/
|
|
24
|
-
export interface DeploymentRelation {
|
|
25
|
-
/**
|
|
26
|
-
* The unique id of the given record
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof DeploymentRelation
|
|
29
|
-
*/
|
|
30
|
-
id: number;
|
|
31
|
-
/**
|
|
32
|
-
* The application\'s name that the deployment belongs to
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof DeploymentRelation
|
|
35
|
-
*/
|
|
36
|
-
name: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {ActionStatus}
|
|
40
|
-
* @memberof DeploymentRelation
|
|
41
|
-
*/
|
|
42
|
-
status: ActionStatus;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {DeploymentType}
|
|
46
|
-
* @memberof DeploymentRelation
|
|
47
|
-
*/
|
|
48
|
-
type: DeploymentType;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {DeploymentSource}
|
|
52
|
-
* @memberof DeploymentRelation
|
|
53
|
-
*/
|
|
54
|
-
source: DeploymentSource;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Commit}
|
|
58
|
-
* @memberof DeploymentRelation
|
|
59
|
-
*/
|
|
60
|
-
commit: Commit;
|
|
61
|
-
/**
|
|
62
|
-
* The steps that were meant to be executed when the deployment was triggered
|
|
63
|
-
* @type {Array<DeploymentStep>}
|
|
64
|
-
* @memberof DeploymentRelation
|
|
65
|
-
*/
|
|
66
|
-
steps: Array<DeploymentStep>;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {UserRelation}
|
|
70
|
-
* @memberof DeploymentRelation
|
|
71
|
-
*/
|
|
72
|
-
triggered_by_user?: UserRelation;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {ActionRelation}
|
|
76
|
-
* @memberof DeploymentRelation
|
|
77
|
-
*/
|
|
78
|
-
last_action?: ActionRelation | null;
|
|
79
|
-
/**
|
|
80
|
-
* The date and time when the action started execution (i.e., left the `pending/queued` status)
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof DeploymentRelation
|
|
83
|
-
*/
|
|
84
|
-
started_at?: string | null;
|
|
85
|
-
/**
|
|
86
|
-
* The date and time when the action has finished execution
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof DeploymentRelation
|
|
89
|
-
*/
|
|
90
|
-
completed_at?: string | null;
|
|
91
|
-
/**
|
|
92
|
-
* The date and time when the record was created
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof DeploymentRelation
|
|
95
|
-
*/
|
|
96
|
-
created_at?: string | null;
|
|
97
|
-
/**
|
|
98
|
-
* The date and time when the record was last updated
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof DeploymentRelation
|
|
101
|
-
*/
|
|
102
|
-
updated_at?: string | null;
|
|
103
|
-
}
|
|
@@ -1,61 +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 { ActionStatus } from './action-status';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface DeploymentStep
|
|
17
|
-
*/
|
|
18
|
-
export interface DeploymentStep {
|
|
19
|
-
/**
|
|
20
|
-
* The execution order of the given step
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof DeploymentStep
|
|
23
|
-
*/
|
|
24
|
-
order: number;
|
|
25
|
-
/**
|
|
26
|
-
* The step name
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof DeploymentStep
|
|
29
|
-
*/
|
|
30
|
-
name: string;
|
|
31
|
-
/**
|
|
32
|
-
* The name of the script linked to this step
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof DeploymentStep
|
|
35
|
-
*/
|
|
36
|
-
script_name?: string | null;
|
|
37
|
-
/**
|
|
38
|
-
* The source code of the script linked to this step
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof DeploymentStep
|
|
41
|
-
*/
|
|
42
|
-
script_code?: string | null;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {ActionStatus}
|
|
46
|
-
* @memberof DeploymentStep
|
|
47
|
-
*/
|
|
48
|
-
status: ActionStatus;
|
|
49
|
-
/**
|
|
50
|
-
* The date and time when the step started execution (i.e., left the `pending/queued` status)
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof DeploymentStep
|
|
53
|
-
*/
|
|
54
|
-
started_at?: string | null;
|
|
55
|
-
/**
|
|
56
|
-
* The date and time when the step has finished execution
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof DeploymentStep
|
|
59
|
-
*/
|
|
60
|
-
completed_at?: string | null;
|
|
61
|
-
}
|
|
@@ -1,110 +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 { ActionRelation } from './action-relation';
|
|
13
|
-
import { ActionStatus } from './action-status';
|
|
14
|
-
import { ApplicationRelation } from './application-relation';
|
|
15
|
-
import { Commit } from './commit';
|
|
16
|
-
import { DeploymentSource } from './deployment-source';
|
|
17
|
-
import { DeploymentStep } from './deployment-step';
|
|
18
|
-
import { DeploymentType } from './deployment-type';
|
|
19
|
-
import { UserRelation } from './user-relation';
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @export
|
|
23
|
-
* @interface Deployment
|
|
24
|
-
*/
|
|
25
|
-
export interface Deployment {
|
|
26
|
-
/**
|
|
27
|
-
* The unique id of the given record
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof Deployment
|
|
30
|
-
*/
|
|
31
|
-
id: number;
|
|
32
|
-
/**
|
|
33
|
-
* The application\'s name that the deployment belongs to
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Deployment
|
|
36
|
-
*/
|
|
37
|
-
name: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {ActionStatus}
|
|
41
|
-
* @memberof Deployment
|
|
42
|
-
*/
|
|
43
|
-
status: ActionStatus;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {DeploymentType}
|
|
47
|
-
* @memberof Deployment
|
|
48
|
-
*/
|
|
49
|
-
type: DeploymentType;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {DeploymentSource}
|
|
53
|
-
* @memberof Deployment
|
|
54
|
-
*/
|
|
55
|
-
source: DeploymentSource;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {ApplicationRelation}
|
|
59
|
-
* @memberof Deployment
|
|
60
|
-
*/
|
|
61
|
-
application: ApplicationRelation | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Commit}
|
|
65
|
-
* @memberof Deployment
|
|
66
|
-
*/
|
|
67
|
-
commit: Commit;
|
|
68
|
-
/**
|
|
69
|
-
* The steps that were meant to be executed when the deployment was triggered
|
|
70
|
-
* @type {Array<DeploymentStep>}
|
|
71
|
-
* @memberof Deployment
|
|
72
|
-
*/
|
|
73
|
-
steps: Array<DeploymentStep>;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {UserRelation}
|
|
77
|
-
* @memberof Deployment
|
|
78
|
-
*/
|
|
79
|
-
triggered_by_user: UserRelation;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {ActionRelation}
|
|
83
|
-
* @memberof Deployment
|
|
84
|
-
*/
|
|
85
|
-
last_action: ActionRelation | null;
|
|
86
|
-
/**
|
|
87
|
-
* The date and time when the action started execution (i.e., left the `pending/queued` status)
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof Deployment
|
|
90
|
-
*/
|
|
91
|
-
started_at?: string | null;
|
|
92
|
-
/**
|
|
93
|
-
* The date and time when the action has finished execution
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof Deployment
|
|
96
|
-
*/
|
|
97
|
-
completed_at?: string | null;
|
|
98
|
-
/**
|
|
99
|
-
* The date and time when the record was created
|
|
100
|
-
* @type {string}
|
|
101
|
-
* @memberof Deployment
|
|
102
|
-
*/
|
|
103
|
-
created_at?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
* The date and time when the record was last updated
|
|
106
|
-
* @type {string}
|
|
107
|
-
* @memberof Deployment
|
|
108
|
-
*/
|
|
109
|
-
updated_at?: string | null;
|
|
110
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeploymentService = void 0;
|
|
4
|
-
const deployments_api_1 = require("../api/generated/apis/deployments-api");
|
|
5
|
-
class DeploymentService extends deployments_api_1.DeploymentsApiService {
|
|
6
|
-
}
|
|
7
|
-
exports.DeploymentService = DeploymentService;
|