@devopness/sdk-js 2.34.0 → 2.36.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 (30) hide show
  1. package/dist/api/generated/apis/actions-api.d.ts +1 -2
  2. package/dist/api/generated/apis/actions-api.js +5 -9
  3. package/dist/api/generated/apis/applications-deployments-api.d.ts +4 -4
  4. package/dist/api/generated/apis/applications-deployments-api.js +8 -5
  5. package/dist/api/generated/apis/environments-actions-api.d.ts +4 -4
  6. package/dist/api/generated/apis/environments-actions-api.js +5 -5
  7. package/dist/api/generated/apis/projects-actions-api.d.ts +5 -16
  8. package/dist/api/generated/apis/projects-actions-api.js +6 -39
  9. package/dist/api/generated/apis/resource-events-api.d.ts +5 -5
  10. package/dist/api/generated/apis/resource-events-api.js +9 -9
  11. package/dist/api/generated/models/action-retry-response.d.ts +13 -0
  12. package/dist/api/generated/models/action.d.ts +13 -0
  13. package/dist/api/generated/models/deployment-application-create.d.ts +61 -0
  14. package/dist/api/generated/models/{resource-event.js → deployment-application-create.js} +0 -0
  15. package/dist/api/generated/models/index.d.ts +3 -1
  16. package/dist/api/generated/models/index.js +3 -1
  17. package/dist/api/generated/models/project.d.ts +0 -42
  18. package/dist/api/generated/models/related-action.d.ts +63 -0
  19. package/dist/api/generated/models/related-action.js +14 -0
  20. package/dist/api/generated/models/{resource-event.d.ts → resource-event-relation.d.ts} +19 -19
  21. package/dist/api/generated/models/resource-event-relation.js +14 -0
  22. package/dist/api/generated/models/service-type.d.ts +1 -0
  23. package/dist/api/generated/models/service-type.js +1 -0
  24. package/dist/api/generated/models/variable-target.d.ts +4 -1
  25. package/dist/api/generated/models/variable-target.js +3 -0
  26. package/dist/services/ActionService.d.ts +0 -2
  27. package/dist/services/ActionService.js +0 -5
  28. package/package.json +1 -1
  29. package/dist/api/generated/apis/actions-resources-api.d.ts +0 -28
  30. package/dist/api/generated/apis/actions-resources-api.js +0 -62
@@ -34,13 +34,12 @@ export declare class ActionsApiService extends ApiBaseService {
34
34
  /**
35
35
  *
36
36
  * @summary List resource actions of an action type
37
- * @param {string} actionType The action type.
38
37
  * @param {number} resourceId The resource ID.
39
38
  * @param {string} resourceType The resource type to get related actions.
40
39
  * @param {number} [page] Number of the page to be retrieved
41
40
  * @param {number} [perPage] Number of items returned per page
42
41
  */
43
- listActionsByResourceTypeAndActionType(actionType: string, resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
42
+ listActionsByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
44
43
  /**
45
44
  *
46
45
  * @summary Retry an action
@@ -69,22 +69,18 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
69
69
  /**
70
70
  *
71
71
  * @summary List resource actions of an action type
72
- * @param {string} actionType The action type.
73
72
  * @param {number} resourceId The resource ID.
74
73
  * @param {string} resourceType The resource type to get related actions.
75
74
  * @param {number} [page] Number of the page to be retrieved
76
75
  * @param {number} [perPage] Number of items returned per page
77
76
  */
78
- listActionsByResourceTypeAndActionType(actionType, resourceId, resourceType, page, perPage) {
77
+ listActionsByResourceType(resourceId, resourceType, page, perPage) {
79
78
  return __awaiter(this, void 0, void 0, function* () {
80
- if (actionType === null || actionType === undefined) {
81
- throw new Exceptions_1.ArgumentNullException('actionType', 'listActionsByResourceTypeAndActionType');
82
- }
83
79
  if (resourceId === null || resourceId === undefined) {
84
- throw new Exceptions_1.ArgumentNullException('resourceId', 'listActionsByResourceTypeAndActionType');
80
+ throw new Exceptions_1.ArgumentNullException('resourceId', 'listActionsByResourceType');
85
81
  }
86
82
  if (resourceType === null || resourceType === undefined) {
87
- throw new Exceptions_1.ArgumentNullException('resourceType', 'listActionsByResourceTypeAndActionType');
83
+ throw new Exceptions_1.ArgumentNullException('resourceType', 'listActionsByResourceType');
88
84
  }
89
85
  let queryString = '';
90
86
  const queryParams = { page: page, per_page: perPage, };
@@ -94,8 +90,8 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
94
90
  }
95
91
  queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
96
92
  }
97
- const requestUrl = '/actions/{resource_type}/{resource_id}/{action_type}' + (queryString ? `?${queryString}` : '');
98
- const response = yield this.get(requestUrl.replace(`{${"action_type"}}`, encodeURIComponent(String(actionType))).replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
93
+ const requestUrl = '/actions/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
94
+ const response = yield this.get(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
99
95
  return new ApiResponse_1.ApiResponse(response);
100
96
  });
101
97
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
- import { ApplicationDeployment } from '../../generated/models';
14
+ import { DeploymentApplicationCreate } from '../../generated/models';
15
15
  /**
16
16
  * ApplicationsDeploymentsApiService - Auto-generated
17
17
  */
@@ -19,8 +19,8 @@ export declare class ApplicationsDeploymentsApiService extends ApiBaseService {
19
19
  /**
20
20
  *
21
21
  * @summary Trigger a new deployment for current application
22
- * @param {number} applicationId Numeric ID of the application to be deployed
23
- * @param {ApplicationDeployment} [applicationDeployment] A JSON object containing deployment parameters
22
+ * @param {number} applicationId The ID of the application.
23
+ * @param {DeploymentApplicationCreate} deploymentApplicationCreate A JSON object containing the resource data
24
24
  */
25
- deployApplication(applicationId: number, applicationDeployment?: ApplicationDeployment): Promise<ApiResponse<void>>;
25
+ addApplicationDeployment(applicationId: number, deploymentApplicationCreate: DeploymentApplicationCreate): Promise<ApiResponse<void>>;
26
26
  }
@@ -32,17 +32,20 @@ class ApplicationsDeploymentsApiService extends ApiBaseService_1.ApiBaseService
32
32
  /**
33
33
  *
34
34
  * @summary Trigger a new deployment for current application
35
- * @param {number} applicationId Numeric ID of the application to be deployed
36
- * @param {ApplicationDeployment} [applicationDeployment] A JSON object containing deployment parameters
35
+ * @param {number} applicationId The ID of the application.
36
+ * @param {DeploymentApplicationCreate} deploymentApplicationCreate A JSON object containing the resource data
37
37
  */
38
- deployApplication(applicationId, applicationDeployment) {
38
+ addApplicationDeployment(applicationId, deploymentApplicationCreate) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  if (applicationId === null || applicationId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('applicationId', 'deployApplication');
41
+ throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationDeployment');
42
+ }
43
+ if (deploymentApplicationCreate === null || deploymentApplicationCreate === undefined) {
44
+ throw new Exceptions_1.ArgumentNullException('deploymentApplicationCreate', 'addApplicationDeployment');
42
45
  }
43
46
  let queryString = '';
44
47
  const requestUrl = '/applications/{application_id}/deployments' + (queryString ? `?${queryString}` : '');
45
- const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), applicationDeployment);
48
+ const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), deploymentApplicationCreate);
46
49
  return new ApiResponse_1.ApiResponse(response);
47
50
  });
48
51
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
- import { ActionListItem } from '../../generated/models';
14
+ import { ActionRelation } from '../../generated/models';
15
15
  /**
16
16
  * EnvironmentsActionsApiService - Auto-generated
17
17
  */
@@ -19,10 +19,10 @@ export declare class EnvironmentsActionsApiService extends ApiBaseService {
19
19
  /**
20
20
  *
21
21
  * @summary List environment actions of a resource type
22
- * @param {number} environmentId Unique ID of the environment to get
23
- * @param {string} resourceType The resource type to get related actions
22
+ * @param {number} environmentId The ID of the environment.
23
+ * @param {string} resourceType The resource type to get related actions.
24
24
  * @param {number} [page] Number of the page to be retrieved
25
25
  * @param {number} [perPage] Number of items returned per page
26
26
  */
27
- listEnvironmentActionsOfResourceType(environmentId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
27
+ listEnvironmentActionsByResourceType(environmentId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
28
28
  }
@@ -32,18 +32,18 @@ class EnvironmentsActionsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
34
  * @summary List environment actions of a resource type
35
- * @param {number} environmentId Unique ID of the environment to get
36
- * @param {string} resourceType The resource type to get related actions
35
+ * @param {number} environmentId The ID of the environment.
36
+ * @param {string} resourceType The resource type to get related actions.
37
37
  * @param {number} [page] Number of the page to be retrieved
38
38
  * @param {number} [perPage] Number of items returned per page
39
39
  */
40
- listEnvironmentActionsOfResourceType(environmentId, resourceType, page, perPage) {
40
+ listEnvironmentActionsByResourceType(environmentId, resourceType, page, perPage) {
41
41
  return __awaiter(this, void 0, void 0, function* () {
42
42
  if (environmentId === null || environmentId === undefined) {
43
- throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentActionsOfResourceType');
43
+ throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentActionsByResourceType');
44
44
  }
45
45
  if (resourceType === null || resourceType === undefined) {
46
- throw new Exceptions_1.ArgumentNullException('resourceType', 'listEnvironmentActionsOfResourceType');
46
+ throw new Exceptions_1.ArgumentNullException('resourceType', 'listEnvironmentActionsByResourceType');
47
47
  }
48
48
  let queryString = '';
49
49
  const queryParams = { page: page, per_page: perPage, };
@@ -11,29 +11,18 @@
11
11
  */
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
- import { ActionListItem } from '../../generated/models';
15
- import { ActionType } from '../../generated/models';
14
+ import { ActionRelation } from '../../generated/models';
16
15
  /**
17
16
  * ProjectsActionsApiService - Auto-generated
18
17
  */
19
18
  export declare class ProjectsActionsApiService extends ApiBaseService {
20
19
  /**
21
20
  *
22
- * @summary List resource actions of a resource type
23
- * @param {number} projectId Unique ID of the project to get
24
- * @param {string} resourceType The resource type to get related actions
21
+ * @summary List project actions of a resource type
22
+ * @param {number} projectId The ID of the project.
23
+ * @param {string} resourceType The resource type to get related actions.
25
24
  * @param {number} [page] Number of the page to be retrieved
26
25
  * @param {number} [perPage] Number of items returned per page
27
26
  */
28
- listProjectActionsOfResourceType(projectId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
29
- /**
30
- *
31
- * @summary List project actions of a resource type and action type
32
- * @param {number} projectId Unique ID of the project to get
33
- * @param {string} resourceType The resource type to get related actions
34
- * @param {ActionType} actionType The action type
35
- * @param {number} [page] Number of the page to be retrieved
36
- * @param {number} [perPage] Number of items returned per page
37
- */
38
- listProjectActionsOfResourceTypeActionType(projectId: number, resourceType: string, actionType: ActionType, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
27
+ listProjectActionsByResourceType(projectId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
39
28
  }
@@ -31,19 +31,19 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class ProjectsActionsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary List resource actions of a resource type
35
- * @param {number} projectId Unique ID of the project to get
36
- * @param {string} resourceType The resource type to get related actions
34
+ * @summary List project actions of a resource type
35
+ * @param {number} projectId The ID of the project.
36
+ * @param {string} resourceType The resource type to get related actions.
37
37
  * @param {number} [page] Number of the page to be retrieved
38
38
  * @param {number} [perPage] Number of items returned per page
39
39
  */
40
- listProjectActionsOfResourceType(projectId, resourceType, page, perPage) {
40
+ listProjectActionsByResourceType(projectId, resourceType, page, perPage) {
41
41
  return __awaiter(this, void 0, void 0, function* () {
42
42
  if (projectId === null || projectId === undefined) {
43
- throw new Exceptions_1.ArgumentNullException('projectId', 'listProjectActionsOfResourceType');
43
+ throw new Exceptions_1.ArgumentNullException('projectId', 'listProjectActionsByResourceType');
44
44
  }
45
45
  if (resourceType === null || resourceType === undefined) {
46
- throw new Exceptions_1.ArgumentNullException('resourceType', 'listProjectActionsOfResourceType');
46
+ throw new Exceptions_1.ArgumentNullException('resourceType', 'listProjectActionsByResourceType');
47
47
  }
48
48
  let queryString = '';
49
49
  const queryParams = { page: page, per_page: perPage, };
@@ -58,38 +58,5 @@ class ProjectsActionsApiService extends ApiBaseService_1.ApiBaseService {
58
58
  return new ApiResponse_1.ApiResponse(response);
59
59
  });
60
60
  }
61
- /**
62
- *
63
- * @summary List project actions of a resource type and action type
64
- * @param {number} projectId Unique ID of the project to get
65
- * @param {string} resourceType The resource type to get related actions
66
- * @param {ActionType} actionType The action type
67
- * @param {number} [page] Number of the page to be retrieved
68
- * @param {number} [perPage] Number of items returned per page
69
- */
70
- listProjectActionsOfResourceTypeActionType(projectId, resourceType, actionType, page, perPage) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- if (projectId === null || projectId === undefined) {
73
- throw new Exceptions_1.ArgumentNullException('projectId', 'listProjectActionsOfResourceTypeActionType');
74
- }
75
- if (resourceType === null || resourceType === undefined) {
76
- throw new Exceptions_1.ArgumentNullException('resourceType', 'listProjectActionsOfResourceTypeActionType');
77
- }
78
- if (actionType === null || actionType === undefined) {
79
- throw new Exceptions_1.ArgumentNullException('actionType', 'listProjectActionsOfResourceTypeActionType');
80
- }
81
- let queryString = '';
82
- const queryParams = { page: page, per_page: perPage, };
83
- for (const key in queryParams) {
84
- if (queryParams[key] === undefined || queryParams[key] === null) {
85
- continue;
86
- }
87
- queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
88
- }
89
- const requestUrl = '/projects/{project_id}/actions/{resource_type}/{action_type}' + (queryString ? `?${queryString}` : '');
90
- const response = yield this.get(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))).replace(`{${"action_type"}}`, encodeURIComponent(String(actionType))));
91
- return new ApiResponse_1.ApiResponse(response);
92
- });
93
- }
94
61
  }
95
62
  exports.ProjectsActionsApiService = ProjectsActionsApiService;
@@ -11,18 +11,18 @@
11
11
  */
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
- import { ResourceEvent } from '../../generated/models';
14
+ import { ResourceEventRelation } from '../../generated/models';
15
15
  /**
16
16
  * ResourceEventsApiService - Auto-generated
17
17
  */
18
18
  export declare class ResourceEventsApiService extends ApiBaseService {
19
19
  /**
20
20
  *
21
- * @summary Return a list of all events belonging to a resource
22
- * @param {string} resourceType The resource type to get related events
23
- * @param {number} resourceId Unique ID of the resource that\&#39;s being searched
21
+ * @summary List events of a resource type
22
+ * @param {number} resourceId The resource ID.
23
+ * @param {string} resourceType The resource type to get related events.
24
24
  * @param {number} [page] Number of the page to be retrieved
25
25
  * @param {number} [perPage] Number of items returned per page
26
26
  */
27
- listResourceEvents(resourceType: string, resourceId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ResourceEvent>>>;
27
+ listResourceEventsByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ResourceEventRelation>>>;
28
28
  }
@@ -31,19 +31,19 @@ const Exceptions_1 = require("../../../common/Exceptions");
31
31
  class ResourceEventsApiService extends ApiBaseService_1.ApiBaseService {
32
32
  /**
33
33
  *
34
- * @summary Return a list of all events belonging to a resource
35
- * @param {string} resourceType The resource type to get related events
36
- * @param {number} resourceId Unique ID of the resource that\&#39;s being searched
34
+ * @summary List events of a resource type
35
+ * @param {number} resourceId The resource ID.
36
+ * @param {string} resourceType The resource type to get related events.
37
37
  * @param {number} [page] Number of the page to be retrieved
38
38
  * @param {number} [perPage] Number of items returned per page
39
39
  */
40
- listResourceEvents(resourceType, resourceId, page, perPage) {
40
+ listResourceEventsByResourceType(resourceId, resourceType, page, perPage) {
41
41
  return __awaiter(this, void 0, void 0, function* () {
42
- if (resourceType === null || resourceType === undefined) {
43
- throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceEvents');
44
- }
45
42
  if (resourceId === null || resourceId === undefined) {
46
- throw new Exceptions_1.ArgumentNullException('resourceId', 'listResourceEvents');
43
+ throw new Exceptions_1.ArgumentNullException('resourceId', 'listResourceEventsByResourceType');
44
+ }
45
+ if (resourceType === null || resourceType === undefined) {
46
+ throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceEventsByResourceType');
47
47
  }
48
48
  let queryString = '';
49
49
  const queryParams = { page: page, per_page: perPage, };
@@ -54,7 +54,7 @@ class ResourceEventsApiService extends ApiBaseService_1.ApiBaseService {
54
54
  queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
55
55
  }
56
56
  const requestUrl = '/events/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
57
- const response = yield this.get(requestUrl.replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))).replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))));
57
+ const response = yield this.get(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
58
58
  return new ApiResponse_1.ApiResponse(response);
59
59
  });
60
60
  }
@@ -17,6 +17,7 @@ import { ActionTriggeredFrom } from './action-triggered-from';
17
17
  import { ActionType } from './action-type';
18
18
  import { EnvironmentRelation } from './environment-relation';
19
19
  import { ProjectRelation } from './project-relation';
20
+ import { RelatedAction } from './related-action';
20
21
  import { Resource } from './resource';
21
22
  import { ServerAction } from './server-action';
22
23
  import { UserRelation } from './user-relation';
@@ -74,6 +75,18 @@ export interface ActionRetryResponse {
74
75
  * @memberof ActionRetryResponse
75
76
  */
76
77
  triggered_from: ActionTriggeredFrom;
78
+ /**
79
+ *
80
+ * @type {RelatedAction}
81
+ * @memberof ActionRetryResponse
82
+ */
83
+ parent: RelatedAction | null;
84
+ /**
85
+ * List of related actions
86
+ * @type {Array<RelatedAction>}
87
+ * @memberof ActionRetryResponse
88
+ */
89
+ children: Array<RelatedAction>;
77
90
  /**
78
91
  *
79
92
  * @type {UserRelation}
@@ -17,6 +17,7 @@ import { ActionTriggeredFrom } from './action-triggered-from';
17
17
  import { ActionType } from './action-type';
18
18
  import { EnvironmentRelation } from './environment-relation';
19
19
  import { ProjectRelation } from './project-relation';
20
+ import { RelatedAction } from './related-action';
20
21
  import { Resource } from './resource';
21
22
  import { ServerAction } from './server-action';
22
23
  import { UserRelation } from './user-relation';
@@ -74,6 +75,18 @@ export interface Action {
74
75
  * @memberof Action
75
76
  */
76
77
  triggered_from: ActionTriggeredFrom;
78
+ /**
79
+ *
80
+ * @type {RelatedAction}
81
+ * @memberof Action
82
+ */
83
+ parent: RelatedAction | null;
84
+ /**
85
+ * List of related actions
86
+ * @type {Array<RelatedAction>}
87
+ * @memberof Action
88
+ */
89
+ children: Array<RelatedAction>;
77
90
  /**
78
91
  *
79
92
  * @type {UserRelation}
@@ -0,0 +1,61 @@
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 { DeploymentType } from './deployment-type';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeploymentApplicationCreate
17
+ */
18
+ export interface DeploymentApplicationCreate {
19
+ /**
20
+ * The environment type of the deployment. Must be one of <code>development</code>, <code>testing</code>, <code>staging</code>, or <code>production</code>.
21
+ * @type {string}
22
+ * @memberof DeploymentApplicationCreate
23
+ */
24
+ environment?: string;
25
+ /**
26
+ *
27
+ * @type {DeploymentType}
28
+ * @memberof DeploymentApplicationCreate
29
+ */
30
+ type: DeploymentType;
31
+ /**
32
+ * The name of the branch from which the application source code will be retrieved and deployed.This field is required when <code>hash</code> is not present. Must not be greater than 100 characters.
33
+ * @type {string}
34
+ * @memberof DeploymentApplicationCreate
35
+ */
36
+ branch?: string;
37
+ /**
38
+ * The commit hash from which the application source code will be retrieved and deployed.This field is required when <code>branch</code> is not present. Must contain only letters and numbers. Must be at least 7 characters. Must not be greater than 40 characters.
39
+ * @type {string}
40
+ * @memberof DeploymentApplicationCreate
41
+ */
42
+ hash?: string;
43
+ /**
44
+ * The pipeline\'s ID to use for deployment.
45
+ * @type {number}
46
+ * @memberof DeploymentApplicationCreate
47
+ */
48
+ pipeline_id?: number;
49
+ /**
50
+ * The pull request\'s ID to use for deployment.
51
+ * @type {number}
52
+ * @memberof DeploymentApplicationCreate
53
+ */
54
+ pull_request_id?: number;
55
+ /**
56
+ * List of valid resource IDs
57
+ * @type {Array<number>}
58
+ * @memberof DeploymentApplicationCreate
59
+ */
60
+ servers?: Array<number>;
61
+ }
@@ -63,6 +63,7 @@ export * from './daemon-environment-create';
63
63
  export * from './daemon-relation';
64
64
  export * from './daemon-restart';
65
65
  export * from './daemon-update';
66
+ export * from './deployment-application-create';
66
67
  export * from './deployment-default-step';
67
68
  export * from './deployment-origin';
68
69
  export * from './deployment-source';
@@ -131,12 +132,13 @@ export * from './project';
131
132
  export * from './project-create';
132
133
  export * from './project-relation';
133
134
  export * from './project-update';
135
+ export * from './related-action';
134
136
  export * from './repository';
135
137
  export * from './repository-branch';
136
138
  export * from './repository-relation';
137
139
  export * from './request-relation';
138
140
  export * from './resource';
139
- export * from './resource-event';
141
+ export * from './resource-event-relation';
140
142
  export * from './resource-type';
141
143
  export * from './role';
142
144
  export * from './role-project-create';
@@ -79,6 +79,7 @@ __exportStar(require("./daemon-environment-create"), exports);
79
79
  __exportStar(require("./daemon-relation"), exports);
80
80
  __exportStar(require("./daemon-restart"), exports);
81
81
  __exportStar(require("./daemon-update"), exports);
82
+ __exportStar(require("./deployment-application-create"), exports);
82
83
  __exportStar(require("./deployment-default-step"), exports);
83
84
  __exportStar(require("./deployment-origin"), exports);
84
85
  __exportStar(require("./deployment-source"), exports);
@@ -147,12 +148,13 @@ __exportStar(require("./project"), exports);
147
148
  __exportStar(require("./project-create"), exports);
148
149
  __exportStar(require("./project-relation"), exports);
149
150
  __exportStar(require("./project-update"), exports);
151
+ __exportStar(require("./related-action"), exports);
150
152
  __exportStar(require("./repository"), exports);
151
153
  __exportStar(require("./repository-branch"), exports);
152
154
  __exportStar(require("./repository-relation"), exports);
153
155
  __exportStar(require("./request-relation"), exports);
154
156
  __exportStar(require("./resource"), exports);
155
- __exportStar(require("./resource-event"), exports);
157
+ __exportStar(require("./resource-event-relation"), exports);
156
158
  __exportStar(require("./resource-type"), exports);
157
159
  __exportStar(require("./role"), exports);
158
160
  __exportStar(require("./role-project-create"), exports);
@@ -9,13 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ApplicationRelation } from './application-relation';
13
- import { CronJobRelation } from './cron-job-relation';
14
- import { DaemonRelation } from './daemon-relation';
15
12
  import { EnvironmentRelation } from './environment-relation';
16
- import { NetworkRuleRelation } from './network-rule-relation';
17
- import { ServerRelation } from './server-relation';
18
- import { ServiceRelation } from './service-relation';
19
13
  import { UserRelation } from './user-relation';
20
14
  /**
21
15
  *
@@ -65,42 +59,6 @@ export interface Project {
65
59
  * @memberof Project
66
60
  */
67
61
  environments: Array<EnvironmentRelation>;
68
- /**
69
- *
70
- * @type {Array<ApplicationRelation>}
71
- * @memberof Project
72
- */
73
- applications: Array<ApplicationRelation>;
74
- /**
75
- *
76
- * @type {Array<CronJobRelation>}
77
- * @memberof Project
78
- */
79
- cron_jobs: Array<CronJobRelation>;
80
- /**
81
- *
82
- * @type {Array<DaemonRelation>}
83
- * @memberof Project
84
- */
85
- daemons: Array<DaemonRelation>;
86
- /**
87
- *
88
- * @type {Array<NetworkRuleRelation>}
89
- * @memberof Project
90
- */
91
- network_rules: Array<NetworkRuleRelation>;
92
- /**
93
- *
94
- * @type {Array<ServerRelation>}
95
- * @memberof Project
96
- */
97
- servers: Array<ServerRelation>;
98
- /**
99
- *
100
- * @type {Array<ServiceRelation>}
101
- * @memberof Project
102
- */
103
- services: Array<ServiceRelation>;
104
62
  /**
105
63
  * The date and time when the record was created
106
64
  * @type {string}
@@ -0,0 +1,63 @@
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
+ import { ActionType } from './action-type';
14
+ import { ResourceType } from './resource-type';
15
+ /**
16
+ * Action related to another action
17
+ * @export
18
+ * @interface RelatedAction
19
+ */
20
+ export interface RelatedAction {
21
+ /**
22
+ * The Id of the given action
23
+ * @type {number}
24
+ * @memberof RelatedAction
25
+ */
26
+ id: number;
27
+ /**
28
+ *
29
+ * @type {ActionStatus}
30
+ * @memberof RelatedAction
31
+ */
32
+ status: ActionStatus;
33
+ /**
34
+ *
35
+ * @type {ActionType}
36
+ * @memberof RelatedAction
37
+ */
38
+ type: ActionType;
39
+ /**
40
+ * Human readable version of the action type
41
+ * @type {string}
42
+ * @memberof RelatedAction
43
+ */
44
+ type_human_readable: string;
45
+ /**
46
+ *
47
+ * @type {ResourceType}
48
+ * @memberof RelatedAction
49
+ */
50
+ resource_type: ResourceType;
51
+ /**
52
+ * Human readable version of the resource type
53
+ * @type {string}
54
+ * @memberof RelatedAction
55
+ */
56
+ resource_type_human_readable: string;
57
+ /**
58
+ * The permalink URL to the action details on Devopness web app
59
+ * @type {string}
60
+ * @memberof RelatedAction
61
+ */
62
+ url_web_permalink: string;
63
+ }
@@ -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 });
@@ -12,55 +12,55 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface ResourceEvent
15
+ * @interface ResourceEventRelation
16
16
  */
17
- export interface ResourceEvent {
17
+ export interface ResourceEventRelation {
18
18
  /**
19
- * The unique id of the event
19
+ * The ID of the given resource event
20
20
  * @type {number}
21
- * @memberof ResourceEvent
21
+ * @memberof ResourceEventRelation
22
22
  */
23
23
  id: number;
24
24
  /**
25
- * The event type
25
+ * The type of resource event
26
26
  * @type {string}
27
- * @memberof ResourceEvent
27
+ * @memberof ResourceEventRelation
28
28
  */
29
- type: string;
29
+ event_type: string;
30
30
  /**
31
- * The type of the resource that triggered the event
31
+ * The event\'s resource type
32
32
  * @type {string}
33
- * @memberof ResourceEvent
33
+ * @memberof ResourceEventRelation
34
34
  */
35
35
  resource_type: string;
36
36
  /**
37
- * The id of the resource that triggered the event
37
+ * The event\'s resource ID
38
38
  * @type {number}
39
- * @memberof ResourceEvent
39
+ * @memberof ResourceEventRelation
40
40
  */
41
41
  resource_id: number;
42
42
  /**
43
- * Text describing the event\'s origin and output
43
+ *
44
44
  * @type {string}
45
- * @memberof ResourceEvent
45
+ * @memberof ResourceEventRelation
46
46
  */
47
- message?: string | null;
47
+ message: string | null;
48
48
  /**
49
- * ID of the user who triggered the event
49
+ *
50
50
  * @type {number}
51
- * @memberof ResourceEvent
51
+ * @memberof ResourceEventRelation
52
52
  */
53
- triggered_by?: number | null;
53
+ triggered_by: number | null;
54
54
  /**
55
55
  * The date and time when the record was created
56
56
  * @type {string}
57
- * @memberof ResourceEvent
57
+ * @memberof ResourceEventRelation
58
58
  */
59
59
  created_at: string;
60
60
  /**
61
61
  * The date and time when the record was last updated
62
62
  * @type {string}
63
- * @memberof ResourceEvent
63
+ * @memberof ResourceEventRelation
64
64
  */
65
65
  updated_at: string;
66
66
  }
@@ -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 });
@@ -17,6 +17,7 @@
17
17
  export declare enum ServiceType {
18
18
  Docker = "docker",
19
19
  Mysql = "mysql",
20
+ NewrelicInfra = "newrelic-infra",
20
21
  Nginx = "nginx",
21
22
  Php = "php",
22
23
  Redis = "redis",
@@ -22,6 +22,7 @@ var ServiceType;
22
22
  (function (ServiceType) {
23
23
  ServiceType["Docker"] = "docker";
24
24
  ServiceType["Mysql"] = "mysql";
25
+ ServiceType["NewrelicInfra"] = "newrelic-infra";
25
26
  ServiceType["Nginx"] = "nginx";
26
27
  ServiceType["Php"] = "php";
27
28
  ServiceType["Redis"] = "redis";
@@ -16,11 +16,14 @@
16
16
  */
17
17
  export declare enum VariableTarget {
18
18
  ResourceConfigFile = "resource-config-file",
19
+ MyCnf = "my-cnf",
20
+ NewrelicInfra = "newrelic-infra",
19
21
  NginxConf = "nginx-conf",
20
22
  OsEnvVar = "os-env-var",
21
23
  PhpCliPhpIni = "php-cli_php-ini",
22
24
  PhpFpmPhpFpmConf = "php-fpm_php-fpm-conf",
23
25
  PhpFpmPhpIni = "php-fpm_php-ini",
24
26
  PhpFpmPoolDWwwConf = "php-fpm_pool-d-www-conf",
25
- RedisConf = "redis-conf"
27
+ RedisConf = "redis-conf",
28
+ SupervisordConf = "supervisord-conf"
26
29
  }
@@ -21,6 +21,8 @@ exports.VariableTarget = void 0;
21
21
  var VariableTarget;
22
22
  (function (VariableTarget) {
23
23
  VariableTarget["ResourceConfigFile"] = "resource-config-file";
24
+ VariableTarget["MyCnf"] = "my-cnf";
25
+ VariableTarget["NewrelicInfra"] = "newrelic-infra";
24
26
  VariableTarget["NginxConf"] = "nginx-conf";
25
27
  VariableTarget["OsEnvVar"] = "os-env-var";
26
28
  VariableTarget["PhpCliPhpIni"] = "php-cli_php-ini";
@@ -28,4 +30,5 @@ var VariableTarget;
28
30
  VariableTarget["PhpFpmPhpIni"] = "php-fpm_php-ini";
29
31
  VariableTarget["PhpFpmPoolDWwwConf"] = "php-fpm_pool-d-www-conf";
30
32
  VariableTarget["RedisConf"] = "redis-conf";
33
+ VariableTarget["SupervisordConf"] = "supervisord-conf";
31
34
  })(VariableTarget = exports.VariableTarget || (exports.VariableTarget = {}));
@@ -1,5 +1,3 @@
1
1
  import { ActionsApiService } from "../api/generated/apis/actions-api";
2
- import { ActionsResourcesApiService } from "../api/generated/apis/actions-resources-api";
3
2
  export declare class ActionService extends ActionsApiService {
4
- resources: ActionsResourcesApiService;
5
3
  }
@@ -2,11 +2,6 @@
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");
6
5
  class ActionService extends actions_api_1.ActionsApiService {
7
- constructor() {
8
- super(...arguments);
9
- this.resources = new actions_resources_api_1.ActionsResourcesApiService();
10
- }
11
6
  }
12
7
  exports.ActionService = ActionService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.34.0",
3
+ "version": "2.36.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,28 +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 { ActionListItem } from '../../generated/models';
15
- /**
16
- * ActionsResourcesApiService - Auto-generated
17
- */
18
- export declare class ActionsResourcesApiService extends ApiBaseService {
19
- /**
20
- *
21
- * @summary List resource actions
22
- * @param {string} resourceType The resource type to get related actions
23
- * @param {number} resourceId Unique ID of the resource that\&#39;s being searched
24
- * @param {number} [page] Number of the page to be retrieved
25
- * @param {number} [perPage] Number of items returned per page
26
- */
27
- listResourceActions(resourceType: string, resourceId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
28
- }
@@ -1,62 +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.ActionsResourcesApiService = 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
- * ActionsResourcesApiService - Auto-generated
30
- */
31
- class ActionsResourcesApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary List resource actions
35
- * @param {string} resourceType The resource type to get related actions
36
- * @param {number} resourceId Unique ID of the resource that\&#39;s being searched
37
- * @param {number} [page] Number of the page to be retrieved
38
- * @param {number} [perPage] Number of items returned per page
39
- */
40
- listResourceActions(resourceType, resourceId, page, perPage) {
41
- return __awaiter(this, void 0, void 0, function* () {
42
- if (resourceType === null || resourceType === undefined) {
43
- throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceActions');
44
- }
45
- if (resourceId === null || resourceId === undefined) {
46
- throw new Exceptions_1.ArgumentNullException('resourceId', 'listResourceActions');
47
- }
48
- let queryString = '';
49
- const queryParams = { page: page, per_page: perPage, };
50
- for (const key in queryParams) {
51
- if (queryParams[key] === undefined || queryParams[key] === null) {
52
- continue;
53
- }
54
- queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
55
- }
56
- const requestUrl = '/actions/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
57
- const response = yield this.get(requestUrl.replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))).replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))));
58
- return new ApiResponse_1.ApiResponse(response);
59
- });
60
- }
61
- }
62
- exports.ActionsResourcesApiService = ActionsResourcesApiService;