@devopness/sdk-js 1.101.0 → 1.103.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 (49) hide show
  1. package/README.md +2 -10
  2. package/dist/DevopnessApiClient.d.ts +0 -2
  3. package/dist/DevopnessApiClient.js +0 -2
  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/{deployment-create.js → action-trigger-type.d.ts} +9 -3
  17. package/dist/api/generated/models/action-trigger-type.js +25 -0
  18. package/dist/api/generated/models/action-triggered-from.d.ts +73 -0
  19. package/dist/api/generated/models/{deployment-create-application.js → action-triggered-from.js} +0 -0
  20. package/dist/api/generated/models/action.d.ts +8 -1
  21. package/dist/api/generated/models/{deployment-create.d.ts → application-deployment.d.ts} +6 -6
  22. package/dist/api/generated/models/{deployment-create-server.js → application-deployment.js} +0 -0
  23. package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
  24. package/dist/api/generated/models/cloud-service.d.ts +2 -2
  25. package/dist/api/generated/models/cloud-service.js +2 -2
  26. package/dist/api/generated/models/index.d.ts +3 -6
  27. package/dist/api/generated/models/index.js +3 -6
  28. package/dist/api/generated/models/resource.d.ts +2 -3
  29. package/dist/api/generated/models/script.d.ts +11 -4
  30. package/dist/api/generated/models/server-cloud-service-name.d.ts +2 -2
  31. package/dist/api/generated/models/server-cloud-service-name.js +2 -2
  32. package/dist/services/ActionService.d.ts +2 -0
  33. package/dist/services/ActionService.js +5 -0
  34. package/dist/services/ProjectService.d.ts +0 -2
  35. package/dist/services/ProjectService.js +0 -2
  36. package/package.json +3 -3
  37. package/LICENSE +0 -21
  38. package/dist/api/generated/apis/deployments-api.d.ts +0 -25
  39. package/dist/api/generated/apis/deployments-api.js +0 -49
  40. package/dist/api/generated/models/deployment-create-application.d.ts +0 -42
  41. package/dist/api/generated/models/deployment-create-server.d.ts +0 -30
  42. package/dist/api/generated/models/deployment-relation.d.ts +0 -103
  43. package/dist/api/generated/models/deployment-relation.js +0 -14
  44. package/dist/api/generated/models/deployment-step.d.ts +0 -61
  45. package/dist/api/generated/models/deployment-step.js +0 -14
  46. package/dist/api/generated/models/deployment.d.ts +0 -110
  47. package/dist/api/generated/models/deployment.js +0 -14
  48. package/dist/services/DeploymentService.d.ts +0 -3
  49. package/dist/services/DeploymentService.js +0 -7
@@ -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
+ }
@@ -12,6 +12,7 @@
12
12
  import { ActionHookRequest } from './action-hook-request';
13
13
  import { ActionStatus } from './action-status';
14
14
  import { ActionSummary } from './action-summary';
15
+ import { ActionTriggeredFrom } from './action-triggered-from';
15
16
  import { ActionType } from './action-type';
16
17
  import { EnvironmentRelation } from './environment-relation';
17
18
  import { ProjectRelation } from './project-relation';
@@ -78,12 +79,18 @@ export interface Action {
78
79
  * @memberof Action
79
80
  */
80
81
  environment?: EnvironmentRelation;
82
+ /**
83
+ *
84
+ * @type {ActionTriggeredFrom}
85
+ * @memberof Action
86
+ */
87
+ triggered_from: ActionTriggeredFrom;
81
88
  /**
82
89
  *
83
90
  * @type {UserRelation}
84
91
  * @memberof Action
85
92
  */
86
- triggered_by_user: UserRelation;
93
+ triggered_by_user?: UserRelation;
87
94
  /**
88
95
  *
89
96
  * @type {ProjectRelation}
@@ -13,31 +13,31 @@ import { DeploymentType } from './deployment-type';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface DeploymentCreate
16
+ * @interface ApplicationDeployment
17
17
  */
18
- export interface DeploymentCreate {
18
+ export interface ApplicationDeployment {
19
19
  /**
20
20
  *
21
21
  * @type {DeploymentType}
22
- * @memberof DeploymentCreate
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 DeploymentCreate
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 DeploymentCreate
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 DeploymentCreate
40
+ * @memberof ApplicationDeployment
41
41
  */
42
42
  servers?: Array<number>;
43
43
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { DeploymentRelation } from './deployment-relation';
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 {DeploymentRelation}
21
+ * @type {Action}
22
22
  * @memberof ApplicationLastDeployments
23
23
  */
24
- latest?: DeploymentRelation | null;
24
+ latest?: Action | null;
25
25
  /**
26
26
  *
27
- * @type {DeploymentRelation}
27
+ * @type {Action}
28
28
  * @memberof ApplicationLastDeployments
29
29
  */
30
- live?: DeploymentRelation | null;
30
+ live?: Action | null;
31
31
  }
@@ -47,7 +47,7 @@ export interface CloudService {
47
47
  * @enum {string}
48
48
  */
49
49
  export declare enum CloudServiceCodeEnum {
50
- Ec2 = "ec2",
51
- Droplet = "droplet",
50
+ AwsEc2 = "aws-ec2",
51
+ DigitaloceanDroplet = "digitalocean-droplet",
52
52
  GcpGce = "gcp-gce"
53
53
  }
@@ -19,7 +19,7 @@ exports.CloudServiceCodeEnum = void 0;
19
19
  */
20
20
  var CloudServiceCodeEnum;
21
21
  (function (CloudServiceCodeEnum) {
22
- CloudServiceCodeEnum["Ec2"] = "ec2";
23
- CloudServiceCodeEnum["Droplet"] = "droplet";
22
+ CloudServiceCodeEnum["AwsEc2"] = "aws-ec2";
23
+ CloudServiceCodeEnum["DigitaloceanDroplet"] = "digitalocean-droplet";
24
24
  CloudServiceCodeEnum["GcpGce"] = "gcp-gce";
25
25
  })(CloudServiceCodeEnum = exports.CloudServiceCodeEnum || (exports.CloudServiceCodeEnum = {}));
@@ -9,12 +9,15 @@ export * from './action-step';
9
9
  export * from './action-step-log';
10
10
  export * from './action-summary';
11
11
  export * from './action-summary-server';
12
+ export * from './action-trigger-type';
13
+ export * from './action-triggered-from';
12
14
  export * from './action-type';
13
15
  export * from './api-error';
14
16
  export * from './api-error-errors';
15
17
  export * from './api-error-errors-field-name';
16
18
  export * from './application';
17
19
  export * from './application-create';
20
+ export * from './application-deployment';
18
21
  export * from './application-last-deployments';
19
22
  export * from './application-options';
20
23
  export * from './application-relation';
@@ -50,15 +53,9 @@ export * from './daemon-create';
50
53
  export * from './daemon-relation';
51
54
  export * from './daemon-restart';
52
55
  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
56
  export * from './deployment-default-step';
58
57
  export * from './deployment-origin';
59
- export * from './deployment-relation';
60
58
  export * from './deployment-source';
61
- export * from './deployment-step';
62
59
  export * from './deployment-type';
63
60
  export * from './environment';
64
61
  export * from './environment-create';
@@ -25,12 +25,15 @@ __exportStar(require("./action-step"), exports);
25
25
  __exportStar(require("./action-step-log"), exports);
26
26
  __exportStar(require("./action-summary"), exports);
27
27
  __exportStar(require("./action-summary-server"), exports);
28
+ __exportStar(require("./action-trigger-type"), exports);
29
+ __exportStar(require("./action-triggered-from"), exports);
28
30
  __exportStar(require("./action-type"), exports);
29
31
  __exportStar(require("./api-error"), exports);
30
32
  __exportStar(require("./api-error-errors"), exports);
31
33
  __exportStar(require("./api-error-errors-field-name"), exports);
32
34
  __exportStar(require("./application"), exports);
33
35
  __exportStar(require("./application-create"), exports);
36
+ __exportStar(require("./application-deployment"), exports);
34
37
  __exportStar(require("./application-last-deployments"), exports);
35
38
  __exportStar(require("./application-options"), exports);
36
39
  __exportStar(require("./application-relation"), exports);
@@ -66,15 +69,9 @@ __exportStar(require("./daemon-create"), exports);
66
69
  __exportStar(require("./daemon-relation"), exports);
67
70
  __exportStar(require("./daemon-restart"), exports);
68
71
  __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
72
  __exportStar(require("./deployment-default-step"), exports);
74
73
  __exportStar(require("./deployment-origin"), exports);
75
- __exportStar(require("./deployment-relation"), exports);
76
74
  __exportStar(require("./deployment-source"), exports);
77
- __exportStar(require("./deployment-step"), exports);
78
75
  __exportStar(require("./deployment-type"), exports);
79
76
  __exportStar(require("./environment"), exports);
80
77
  __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 | DeploymentRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation}
47
+ * @type {ApplicationRelation | CronJobRelation | DaemonRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation}
49
48
  * @memberof Resource
50
49
  */
51
- data?: ApplicationRelation | CronJobRelation | DaemonRelation | DeploymentRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | null;
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
- * The id of the application to be linked
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
- application_id: number;
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
- user_id: number;
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
- source_code: string;
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}
@@ -15,7 +15,7 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum ServerCloudServiceName {
18
- Droplet = "droplet",
19
- Ec2 = "ec2",
18
+ DigitaloceanDroplet = "digitalocean-droplet",
19
+ AwsEc2 = "aws-ec2",
20
20
  GcpGce = "gcp-gce"
21
21
  }
@@ -20,7 +20,7 @@ exports.ServerCloudServiceName = void 0;
20
20
  */
21
21
  var ServerCloudServiceName;
22
22
  (function (ServerCloudServiceName) {
23
- ServerCloudServiceName["Droplet"] = "droplet";
24
- ServerCloudServiceName["Ec2"] = "ec2";
23
+ ServerCloudServiceName["DigitaloceanDroplet"] = "digitalocean-droplet";
24
+ ServerCloudServiceName["AwsEc2"] = "aws-ec2";
25
25
  ServerCloudServiceName["GcpGce"] = "gcp-gce";
26
26
  })(ServerCloudServiceName = exports.ServerCloudServiceName || (exports.ServerCloudServiceName = {}));
@@ -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,7 +1,6 @@
1
1
  import { ProjectsApiService } from '../api/generated/apis/projects-api';
2
2
  import { ProjectsApplicationsApiService } from '../api/generated/apis/projects-applications-api';
3
3
  import { ProjectsCronJobsApiService } from '../api/generated/apis/projects-cron-jobs-api';
4
- import { ProjectsDeploymentsApiService } from '../api/generated/apis/projects-deployments-api';
5
4
  import { ProjectsEnvironmentsApiService } from '../api/generated/apis/projects-environments-api';
6
5
  import { ProjectsNetworkRulesApiService } from '../api/generated/apis/projects-network-rules-api';
7
6
  import { ProjectsServersApiService } from '../api/generated/apis/projects-servers-api';
@@ -12,7 +11,6 @@ export declare class ProjectService extends ProjectsApiService {
12
11
  applications: ProjectsApplicationsApiService;
13
12
  cronjobs: ProjectsCronJobsApiService;
14
13
  daemons: ProjectsDaemonsApiService;
15
- deployments: ProjectsDeploymentsApiService;
16
14
  environments: ProjectsEnvironmentsApiService;
17
15
  networkRules: ProjectsNetworkRulesApiService;
18
16
  servers: ProjectsServersApiService;
@@ -4,7 +4,6 @@ exports.ProjectService = void 0;
4
4
  const projects_api_1 = require("../api/generated/apis/projects-api");
5
5
  const projects_applications_api_1 = require("../api/generated/apis/projects-applications-api");
6
6
  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
7
  const projects_environments_api_1 = require("../api/generated/apis/projects-environments-api");
9
8
  const projects_network_rules_api_1 = require("../api/generated/apis/projects-network-rules-api");
10
9
  const projects_servers_api_1 = require("../api/generated/apis/projects-servers-api");
@@ -17,7 +16,6 @@ class ProjectService extends projects_api_1.ProjectsApiService {
17
16
  this.applications = new projects_applications_api_1.ProjectsApplicationsApiService();
18
17
  this.cronjobs = new projects_cron_jobs_api_1.ProjectsCronJobsApiService();
19
18
  this.daemons = new projects_daemons_api_1.ProjectsDaemonsApiService();
20
- this.deployments = new projects_deployments_api_1.ProjectsDeploymentsApiService();
21
19
  this.environments = new projects_environments_api_1.ProjectsEnvironmentsApiService();
22
20
  this.networkRules = new projects_network_rules_api_1.ProjectsNetworkRulesApiService();
23
21
  this.servers = new projects_servers_api_1.ProjectsServersApiService();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "1.101.0",
3
+ "version": "1.103.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "license": "MIT",
38
38
  "release": {
39
39
  "branches": [
40
- "master"
40
+ "main"
41
41
  ]
42
42
  },
43
43
  "bugs": {
@@ -59,7 +59,7 @@
59
59
  "husky": "^8.0.1",
60
60
  "jest": "^27.0.6",
61
61
  "ts-jest": "^27.0.3",
62
- "typedoc": "^0.22.3",
62
+ "typedoc": "^0.23.1",
63
63
  "typescript": "^4.4.0"
64
64
  },
65
65
  "dependencies": {
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
- }