@devopness/sdk-js 1.101.1 → 1.104.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.
Files changed (50) hide show
  1. package/README.md +2 -10
  2. package/dist/DevopnessApiClient.d.ts +2 -4
  3. package/dist/DevopnessApiClient.js +2 -4
  4. package/dist/api/generated/apis/actions-api.d.ts +6 -0
  5. package/dist/api/generated/apis/actions-api.js +16 -0
  6. package/dist/api/generated/apis/actions-resources-api.d.ts +39 -0
  7. package/dist/api/generated/apis/actions-resources-api.js +95 -0
  8. package/dist/api/generated/apis/applications-deployments-api.d.ts +3 -13
  9. package/dist/api/generated/apis/applications-deployments-api.js +3 -28
  10. package/dist/api/generated/apis/{projects-deployments-api.d.ts → environments-actions-api.d.ts} +7 -6
  11. package/dist/api/generated/apis/{projects-deployments-api.js → environments-actions-api.js} +15 -11
  12. package/dist/api/generated/apis/logs-api.d.ts +0 -7
  13. package/dist/api/generated/apis/logs-api.js +0 -20
  14. package/dist/api/generated/apis/projects-actions-api.d.ts +39 -0
  15. package/dist/api/generated/apis/projects-actions-api.js +95 -0
  16. package/dist/api/generated/models/action-data.d.ts +18 -0
  17. package/dist/api/generated/models/{deployment-create-application.js → action-data.js} +0 -0
  18. package/dist/api/generated/models/action-deployment-commit.d.ts +90 -0
  19. package/dist/api/generated/models/{deployment-create-server.js → action-deployment-commit.js} +0 -0
  20. package/dist/api/generated/models/action-deployment-content.d.ts +55 -0
  21. package/dist/api/generated/models/{deployment-create.js → action-deployment-content.js} +0 -0
  22. package/dist/api/generated/models/action-deployment-data.d.ts +38 -0
  23. package/dist/api/generated/models/{deployment-relation.js → action-deployment-data.js} +0 -0
  24. package/dist/api/generated/models/action-trigger-type.d.ts +20 -0
  25. package/dist/api/generated/models/action-trigger-type.js +25 -0
  26. package/dist/api/generated/models/action-triggered-from.d.ts +73 -0
  27. package/dist/api/generated/models/{deployment-step.js → action-triggered-from.js} +0 -0
  28. package/dist/api/generated/models/action.d.ts +15 -1
  29. package/dist/api/generated/models/{deployment-create.d.ts → application-deployment.d.ts} +6 -6
  30. package/dist/api/generated/models/{deployment.js → application-deployment.js} +0 -0
  31. package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
  32. package/dist/api/generated/models/index.d.ts +7 -6
  33. package/dist/api/generated/models/index.js +7 -6
  34. package/dist/api/generated/models/resource.d.ts +2 -3
  35. package/dist/api/generated/models/script.d.ts +11 -4
  36. package/dist/services/ActionService.d.ts +2 -0
  37. package/dist/services/ActionService.js +5 -0
  38. package/dist/services/ProjectService.d.ts +0 -2
  39. package/dist/services/ProjectService.js +0 -2
  40. package/package.json +3 -3
  41. package/LICENSE +0 -21
  42. package/dist/api/generated/apis/deployments-api.d.ts +0 -25
  43. package/dist/api/generated/apis/deployments-api.js +0 -49
  44. package/dist/api/generated/models/deployment-create-application.d.ts +0 -42
  45. package/dist/api/generated/models/deployment-create-server.d.ts +0 -30
  46. package/dist/api/generated/models/deployment-relation.d.ts +0 -103
  47. package/dist/api/generated/models/deployment-step.d.ts +0 -61
  48. package/dist/api/generated/models/deployment.d.ts +0 -110
  49. package/dist/services/DeploymentService.d.ts +0 -3
  50. package/dist/services/DeploymentService.js +0 -7
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Devopness
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -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,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,3 +0,0 @@
1
- import { DeploymentsApiService } from '../api/generated/apis/deployments-api';
2
- export declare class DeploymentService extends DeploymentsApiService {
3
- }
@@ -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;