@devopness/sdk-js 2.62.0 → 2.63.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.
@@ -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}
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.62.0",
3
+ "version": "2.63.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },