@devopness/sdk-js 2.62.0 → 2.64.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.
@@ -23,12 +23,6 @@ export declare class EnvironmentsApiService extends ApiBaseService {
23
23
  * @param {number} environmentId The ID of the environment.
24
24
  */
25
25
  archiveEnvironment(environmentId: number): Promise<ApiResponse<void>>;
26
- /**
27
- *
28
- * @summary Delete a given environment
29
- * @param {number} environmentId The ID of the environment.
30
- */
31
- deleteEnvironment(environmentId: number): Promise<ApiResponse<void>>;
32
26
  /**
33
27
  *
34
28
  * @summary Get an environment by ID
@@ -45,22 +45,6 @@ class EnvironmentsApiService extends ApiBaseService_1.ApiBaseService {
45
45
  return new ApiResponse_1.ApiResponse(response);
46
46
  });
47
47
  }
48
- /**
49
- *
50
- * @summary Delete a given environment
51
- * @param {number} environmentId The ID of the environment.
52
- */
53
- deleteEnvironment(environmentId) {
54
- return __awaiter(this, void 0, void 0, function* () {
55
- if (environmentId === null || environmentId === undefined) {
56
- throw new Exceptions_1.ArgumentNullException('environmentId', 'deleteEnvironment');
57
- }
58
- let queryString = '';
59
- const requestUrl = '/environments/{environment_id}' + (queryString ? `?${queryString}` : '');
60
- const response = yield this.delete(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
61
- return new ApiResponse_1.ApiResponse(response);
62
- });
63
- }
64
48
  /**
65
49
  *
66
50
  * @summary Get an environment by ID
@@ -0,0 +1,27 @@
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 { Action } from '../../generated/models';
15
+ import { ActionPipelineCreate } from '../../generated/models';
16
+ /**
17
+ * PipelinesActionsApiService - Auto-generated
18
+ */
19
+ export declare class PipelinesActionsApiService extends ApiBaseService {
20
+ /**
21
+ *
22
+ * @summary Create an action to run a Pipeline
23
+ * @param {number} pipelineId The ID of the pipeline that will be executed by the created action
24
+ * @param {ActionPipelineCreate} actionPipelineCreate A JSON object containing the resource data
25
+ */
26
+ addPipelineAction(pipelineId: number, actionPipelineCreate: ActionPipelineCreate): Promise<ApiResponse<Action>>;
27
+ }
@@ -0,0 +1,53 @@
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.PipelinesActionsApiService = 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
+ * PipelinesActionsApiService - Auto-generated
30
+ */
31
+ class PipelinesActionsApiService extends ApiBaseService_1.ApiBaseService {
32
+ /**
33
+ *
34
+ * @summary Create an action to run a Pipeline
35
+ * @param {number} pipelineId The ID of the pipeline that will be executed by the created action
36
+ * @param {ActionPipelineCreate} actionPipelineCreate A JSON object containing the resource data
37
+ */
38
+ addPipelineAction(pipelineId, actionPipelineCreate) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ if (pipelineId === null || pipelineId === undefined) {
41
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'addPipelineAction');
42
+ }
43
+ if (actionPipelineCreate === null || actionPipelineCreate === undefined) {
44
+ throw new Exceptions_1.ArgumentNullException('actionPipelineCreate', 'addPipelineAction');
45
+ }
46
+ let queryString = '';
47
+ const requestUrl = '/pipelines/{pipeline_id}/actions' + (queryString ? `?${queryString}` : '');
48
+ const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))), actionPipelineCreate);
49
+ return new ApiResponse_1.ApiResponse(response);
50
+ });
51
+ }
52
+ }
53
+ exports.PipelinesActionsApiService = PipelinesActionsApiService;
@@ -0,0 +1,24 @@
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 ActionPipelineCreate
16
+ */
17
+ export interface ActionPipelineCreate {
18
+ /**
19
+ * List of valid resource IDs
20
+ * @type {Array<number>}
21
+ * @memberof ActionPipelineCreate
22
+ */
23
+ servers: Array<number>;
24
+ }
@@ -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 });
@@ -33,6 +33,12 @@ export interface ActionRetryResponse {
33
33
  * @memberof ActionRetryResponse
34
34
  */
35
35
  id: number;
36
+ /**
37
+ * The ID of the pipeline executed by this action
38
+ * @type {number}
39
+ * @memberof ActionRetryResponse
40
+ */
41
+ pipeline_id: number | null;
36
42
  /**
37
43
  * The Id of the parent action that this action is a retry of
38
44
  * @type {number}
@@ -33,6 +33,12 @@ export interface Action {
33
33
  * @memberof Action
34
34
  */
35
35
  id: number;
36
+ /**
37
+ * The ID of the pipeline executed by this action
38
+ * @type {number}
39
+ * @memberof Action
40
+ */
41
+ pipeline_id: number | null;
36
42
  /**
37
43
  * The Id of the parent action that this action is a retry of
38
44
  * @type {number}
@@ -45,10 +45,4 @@ export interface CronJobEnvironmentCreate {
45
45
  * @memberof CronJobEnvironmentCreate
46
46
  */
47
47
  application_id?: number;
48
- /**
49
- * List of valid resource IDs
50
- * @type {Array<number>}
51
- * @memberof CronJobEnvironmentCreate
52
- */
53
- servers: Array<number>;
54
48
  }
@@ -51,10 +51,4 @@ export interface CronJobUpdate {
51
51
  * @memberof CronJobUpdate
52
52
  */
53
53
  application_id?: number;
54
- /**
55
- * List of valid resource IDs
56
- * @type {Array<number>}
57
- * @memberof CronJobUpdate
58
- */
59
- servers: Array<number>;
60
54
  }
@@ -49,6 +49,12 @@ export interface Environment {
49
49
  * @memberof Environment
50
50
  */
51
51
  type_human_readable: string;
52
+ /**
53
+ * Indicates whether the record was archived
54
+ * @type {boolean}
55
+ * @memberof Environment
56
+ */
57
+ is_archived: boolean;
52
58
  /**
53
59
  *
54
60
  * @type {Array<ServerRelation>}
@@ -4,6 +4,7 @@ export * from './action-deployment-commit';
4
4
  export * from './action-deployment-content';
5
5
  export * from './action-deployment-data';
6
6
  export * from './action-hook-request';
7
+ export * from './action-pipeline-create';
7
8
  export * from './action-relation';
8
9
  export * from './action-resource';
9
10
  export * from './action-retry-response';
@@ -20,6 +20,7 @@ __exportStar(require("./action-deployment-commit"), exports);
20
20
  __exportStar(require("./action-deployment-content"), exports);
21
21
  __exportStar(require("./action-deployment-data"), exports);
22
22
  __exportStar(require("./action-hook-request"), exports);
23
+ __exportStar(require("./action-pipeline-create"), exports);
23
24
  __exportStar(require("./action-relation"), exports);
24
25
  __exportStar(require("./action-resource"), exports);
25
26
  __exportStar(require("./action-retry-response"), exports);
@@ -38,7 +38,13 @@ export interface RoleRelation {
38
38
  * @type {number}
39
39
  * @memberof RoleRelation
40
40
  */
41
- project_id: number;
41
+ project_id: number | null;
42
+ /**
43
+ * Defines if the role is predefined or a custom role for specific project
44
+ * @type {boolean}
45
+ * @memberof RoleRelation
46
+ */
47
+ is_predefined: boolean;
42
48
  /**
43
49
  * The list of permissions granted for this role
44
50
  * @type {Array<string>}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { RoleRelation } from './role-relation';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -38,13 +39,25 @@ export interface Role {
38
39
  * @type {number}
39
40
  * @memberof Role
40
41
  */
41
- project_id: number;
42
+ project_id: number | null;
43
+ /**
44
+ * Defines if the role is predefined or custom
45
+ * @type {boolean}
46
+ * @memberof Role
47
+ */
48
+ is_predefined: boolean;
42
49
  /**
43
50
  * The list of permissions granted for this role
44
51
  * @type {Array<string>}
45
52
  * @memberof Role
46
53
  */
47
54
  permissions: Array<string>;
55
+ /**
56
+ *
57
+ * @type {RoleRelation}
58
+ * @memberof Role
59
+ */
60
+ parent: RoleRelation | null;
48
61
  /**
49
62
  * The date and time when the record was created
50
63
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.62.0",
3
+ "version": "2.64.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },