@devopness/sdk-js 2.56.0 → 2.57.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,26 @@
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 { ResourceTypeRelation } from '../../generated/models';
15
+ /**
16
+ * StaticDataResourceTypesApiService - Auto-generated
17
+ */
18
+ export declare class StaticDataResourceTypesApiService extends ApiBaseService {
19
+ /**
20
+ *
21
+ * @summary List available resource types
22
+ * @param {number} [page] Number of the page to be retrieved
23
+ * @param {number} [perPage] Number of items returned per page
24
+ */
25
+ listStaticResourceTypes(page?: number, perPage?: number): Promise<ApiResponse<Array<ResourceTypeRelation>>>;
26
+ }
@@ -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.StaticDataResourceTypesApiService = void 0;
25
+ const ApiBaseService_1 = require("../../../services/ApiBaseService");
26
+ const ApiResponse_1 = require("../../../common/ApiResponse");
27
+ /**
28
+ * StaticDataResourceTypesApiService - Auto-generated
29
+ */
30
+ class StaticDataResourceTypesApiService extends ApiBaseService_1.ApiBaseService {
31
+ /**
32
+ *
33
+ * @summary List available resource types
34
+ * @param {number} [page] Number of the page to be retrieved
35
+ * @param {number} [perPage] Number of items returned per page
36
+ */
37
+ listStaticResourceTypes(page, perPage) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ let queryString = '';
40
+ const queryParams = { page: page, per_page: perPage, };
41
+ for (const key in queryParams) {
42
+ if (queryParams[key] === undefined || queryParams[key] === null) {
43
+ continue;
44
+ }
45
+ queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
46
+ }
47
+ const requestUrl = '/static/resource-types' + (queryString ? `?${queryString}` : '');
48
+ const response = yield this.get(requestUrl);
49
+ return new ApiResponse_1.ApiResponse(response);
50
+ });
51
+ }
52
+ }
53
+ exports.StaticDataResourceTypesApiService = StaticDataResourceTypesApiService;
@@ -114,6 +114,9 @@ export * from './permission-relation';
114
114
  export * from './pipeline';
115
115
  export * from './pipeline-create';
116
116
  export * from './pipeline-relation';
117
+ export * from './pipeline-settings';
118
+ export * from './pipeline-settings-stage';
119
+ export * from './pipeline-settings-variable';
117
120
  export * from './pipeline-step-runner-name';
118
121
  export * from './pipeline-update';
119
122
  export * from './project';
@@ -129,6 +132,7 @@ export * from './resource-event';
129
132
  export * from './resource-event-relation';
130
133
  export * from './resource-link-relation';
131
134
  export * from './resource-type';
135
+ export * from './resource-type-relation';
132
136
  export * from './role';
133
137
  export * from './role-project-create';
134
138
  export * from './role-relation';
@@ -130,6 +130,9 @@ __exportStar(require("./permission-relation"), exports);
130
130
  __exportStar(require("./pipeline"), exports);
131
131
  __exportStar(require("./pipeline-create"), exports);
132
132
  __exportStar(require("./pipeline-relation"), exports);
133
+ __exportStar(require("./pipeline-settings"), exports);
134
+ __exportStar(require("./pipeline-settings-stage"), exports);
135
+ __exportStar(require("./pipeline-settings-variable"), exports);
133
136
  __exportStar(require("./pipeline-step-runner-name"), exports);
134
137
  __exportStar(require("./pipeline-update"), exports);
135
138
  __exportStar(require("./project"), exports);
@@ -145,6 +148,7 @@ __exportStar(require("./resource-event"), exports);
145
148
  __exportStar(require("./resource-event-relation"), exports);
146
149
  __exportStar(require("./resource-link-relation"), exports);
147
150
  __exportStar(require("./resource-type"), exports);
151
+ __exportStar(require("./resource-type-relation"), exports);
148
152
  __exportStar(require("./role"), exports);
149
153
  __exportStar(require("./role-project-create"), exports);
150
154
  __exportStar(require("./role-relation"), exports);
@@ -0,0 +1,36 @@
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
+ * Step to be performed in the pipeline
14
+ * @export
15
+ * @interface PipelineSettingsStage
16
+ */
17
+ export interface PipelineSettingsStage {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PipelineSettingsStage
22
+ */
23
+ value?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PipelineSettingsStage
28
+ */
29
+ human_readable?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PipelineSettingsStage
34
+ */
35
+ hint?: string;
36
+ }
@@ -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 });
@@ -0,0 +1,48 @@
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
+ * Variables used in pipeline
14
+ * @export
15
+ * @interface PipelineSettingsVariable
16
+ */
17
+ export interface PipelineSettingsVariable {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PipelineSettingsVariable
22
+ */
23
+ name?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PipelineSettingsVariable
28
+ */
29
+ human_readable?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PipelineSettingsVariable
34
+ */
35
+ hint?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PipelineSettingsVariable
40
+ */
41
+ type?: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof PipelineSettingsVariable
46
+ */
47
+ required?: boolean;
48
+ }
@@ -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 });
@@ -0,0 +1,32 @@
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 { PipelineSettingsStage } from './pipeline-settings-stage';
13
+ import { PipelineSettingsVariable } from './pipeline-settings-variable';
14
+ /**
15
+ * Settings that can be customized for a pipeline
16
+ * @export
17
+ * @interface PipelineSettings
18
+ */
19
+ export interface PipelineSettings {
20
+ /**
21
+ * The list of pipeline setting stage
22
+ * @type {Array<PipelineSettingsStage>}
23
+ * @memberof PipelineSettings
24
+ */
25
+ stages?: Array<PipelineSettingsStage>;
26
+ /**
27
+ * The list of pipeline setting variable
28
+ * @type {Array<PipelineSettingsVariable>}
29
+ * @memberof PipelineSettings
30
+ */
31
+ variables?: Array<PipelineSettingsVariable>;
32
+ }
@@ -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 });
@@ -0,0 +1,42 @@
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 ResourceTypeRelation
16
+ */
17
+ export interface ResourceTypeRelation {
18
+ /**
19
+ * The type of resource this resourceType affects
20
+ * @type {string}
21
+ * @memberof ResourceTypeRelation
22
+ */
23
+ resource_type: string;
24
+ /**
25
+ * Human readable resource name
26
+ * @type {string}
27
+ * @memberof ResourceTypeRelation
28
+ */
29
+ resource_type_human_readable: string;
30
+ /**
31
+ * Human readable plural resource name
32
+ * @type {string}
33
+ * @memberof ResourceTypeRelation
34
+ */
35
+ resource_type_human_readable_plural: string;
36
+ /**
37
+ * An operation supported by this resource type and can have pipelines associated to it.
38
+ * @type {object}
39
+ * @memberof ResourceTypeRelation
40
+ */
41
+ supported_operations: object | null;
42
+ }
@@ -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 });
@@ -5,6 +5,7 @@ import { StaticDataCloudProviderServicesApiService } from "../api/generated/apis
5
5
  import { StaticDataCronJobOptionsApiService } from "../api/generated/apis/static-data-cron-job-options-api";
6
6
  import { StaticDataEnvironmentOptionsApiService } from "../api/generated/apis/static-data-environment-options-api";
7
7
  import { StaticDataPermissionsApiService } from "../api/generated/apis/static-data-permissions-api";
8
+ import { StaticDataResourceTypesApiService } from "../api/generated/apis/static-data-resource-types-api";
8
9
  import { StaticDataServiceOptionsApiService } from "../api/generated/apis/static-data-service-options-api";
9
10
  import { StaticDataUserProfileOptionsApiService } from "../api/generated/apis/static-data-user-profile-options-api";
10
11
  export declare class StaticService {
@@ -15,6 +16,7 @@ export declare class StaticService {
15
16
  cronJobOptions: StaticDataCronJobOptionsApiService;
16
17
  environmentOptions: StaticDataEnvironmentOptionsApiService;
17
18
  permissions: StaticDataPermissionsApiService;
19
+ resourceTypes: StaticDataResourceTypesApiService;
18
20
  serviceOptions: StaticDataServiceOptionsApiService;
19
21
  userProfileOptions: StaticDataUserProfileOptionsApiService;
20
22
  }
@@ -8,6 +8,7 @@ const static_data_cloud_provider_services_api_1 = require("../api/generated/apis
8
8
  const static_data_cron_job_options_api_1 = require("../api/generated/apis/static-data-cron-job-options-api");
9
9
  const static_data_environment_options_api_1 = require("../api/generated/apis/static-data-environment-options-api");
10
10
  const static_data_permissions_api_1 = require("../api/generated/apis/static-data-permissions-api");
11
+ const static_data_resource_types_api_1 = require("../api/generated/apis/static-data-resource-types-api");
11
12
  const static_data_service_options_api_1 = require("../api/generated/apis/static-data-service-options-api");
12
13
  const static_data_user_profile_options_api_1 = require("../api/generated/apis/static-data-user-profile-options-api");
13
14
  class StaticService {
@@ -19,6 +20,7 @@ class StaticService {
19
20
  this.cronJobOptions = new static_data_cron_job_options_api_1.StaticDataCronJobOptionsApiService();
20
21
  this.environmentOptions = new static_data_environment_options_api_1.StaticDataEnvironmentOptionsApiService();
21
22
  this.permissions = new static_data_permissions_api_1.StaticDataPermissionsApiService();
23
+ this.resourceTypes = new static_data_resource_types_api_1.StaticDataResourceTypesApiService();
22
24
  this.serviceOptions = new static_data_service_options_api_1.StaticDataServiceOptionsApiService();
23
25
  this.userProfileOptions = new static_data_user_profile_options_api_1.StaticDataUserProfileOptionsApiService();
24
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.56.0",
3
+ "version": "2.57.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },