@devopness/sdk-js 3.6.2 → 3.6.4

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.
@@ -30,7 +30,7 @@ export declare class ActionsApiService extends ApiBaseService {
30
30
  * @summary Return a list of all actions belonging to current user
31
31
  * @param {number} [page] Number of the page to be retrieved
32
32
  * @param {number} [perPage] Number of items returned per page
33
- * @param {ListActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: `?filter[resource_type]=application&filter[status]=active`
33
+ * @param {ListActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: `?filter[organization_id]=123&filter[project_id]=456`
34
34
  */
35
35
  listActions(page?: number, perPage?: number, filter?: ListActionsFilterParameter): Promise<ApiResponse<Array<ActionRelation>>>;
36
36
  /**
@@ -50,7 +50,7 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
50
50
  * @summary Return a list of all actions belonging to current user
51
51
  * @param {number} [page] Number of the page to be retrieved
52
52
  * @param {number} [perPage] Number of items returned per page
53
- * @param {ListActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_type]&#x3D;application&amp;filter[status]&#x3D;active&#x60;
53
+ * @param {ListActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[organization_id]&#x3D;123&amp;filter[project_id]&#x3D;456&#x60;
54
54
  */
55
55
  listActions(page, perPage, filter) {
56
56
  return __awaiter(this, void 0, void 0, function* () {
@@ -18,6 +18,7 @@ import { ApplicationEnvironmentCreate } from '../../generated/models';
18
18
  import { ApplicationRelation } from '../../generated/models';
19
19
  import { ApplicationUpdate } from '../../generated/models';
20
20
  import { DeploymentApplicationCreate } from '../../generated/models';
21
+ import { ListEnvironmentApplicationsFilterParameter } from '../../generated/models';
21
22
  /**
22
23
  * ApplicationsApiService - Auto-generated
23
24
  */
@@ -61,8 +62,9 @@ export declare class ApplicationsApiService extends ApiBaseService {
61
62
  * @param {number} environmentId The ID of the environment.
62
63
  * @param {number} [page] Number of the page to be retrieved
63
64
  * @param {number} [perPage] Number of items returned per page
65
+ * @param {ListEnvironmentApplicationsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[name]&#x3D;app&#x60;
64
66
  */
65
- listEnvironmentApplications(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ApplicationRelation>>>;
67
+ listEnvironmentApplications(environmentId: number, page?: number, perPage?: number, filter?: ListEnvironmentApplicationsFilterParameter): Promise<ApiResponse<Array<ApplicationRelation>>>;
66
68
  /**
67
69
  *
68
70
  * @summary Update an existing application
@@ -123,8 +123,9 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
123
123
  * @param {number} environmentId The ID of the environment.
124
124
  * @param {number} [page] Number of the page to be retrieved
125
125
  * @param {number} [perPage] Number of items returned per page
126
+ * @param {ListEnvironmentApplicationsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[name]&#x3D;app&#x60;
126
127
  */
127
- listEnvironmentApplications(environmentId, page, perPage) {
128
+ listEnvironmentApplications(environmentId, page, perPage, filter) {
128
129
  return __awaiter(this, void 0, void 0, function* () {
129
130
  if (environmentId === null || environmentId === undefined) {
130
131
  throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentApplications');
@@ -132,6 +133,7 @@ class ApplicationsApiService extends ApiBaseService_1.ApiBaseService {
132
133
  let queryString = (0, utils_1.parseQueryString)({
133
134
  'page': page,
134
135
  'per_page': perPage,
136
+ 'filter': filter,
135
137
  });
136
138
  const requestUrl = '/environments/{environment_id}/applications' + (queryString ? `?${queryString}` : '');
137
139
  const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
@@ -24,7 +24,7 @@ export declare class EnvironmentsActionsApiService extends ApiBaseService {
24
24
  * @param {number} environmentId The ID of the environment.
25
25
  * @param {number} [page] Number of the page to be retrieved
26
26
  * @param {number} [perPage] Number of items returned per page
27
- * @param {ListEnvironmentActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_type]&#x3D;application&amp;filter[status]&#x3D;active&#x60;
27
+ * @param {ListEnvironmentActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_type]&#x3D;application&amp;filter[resource_id]&#x3D;321&#x60;
28
28
  */
29
29
  listEnvironmentActions(environmentId: number, page?: number, perPage?: number, filter?: ListEnvironmentActionsFilterParameter): Promise<ApiResponse<Array<ActionRelation>>>;
30
30
  /**
@@ -34,7 +34,7 @@ export declare class EnvironmentsActionsApiService extends ApiBaseService {
34
34
  * @param {string} resourceType The resource type to get related actions.
35
35
  * @param {number} [page] Number of the page to be retrieved
36
36
  * @param {number} [perPage] Number of items returned per page
37
- * @param {ListEnvironmentActionsByResourceTypeFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_type]&#x3D;application&amp;filter[status]&#x3D;active&#x60;
37
+ * @param {ListEnvironmentActionsByResourceTypeFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_id]&#x3D;321&amp;filter[status]&#x3D;queued&#x60;
38
38
  */
39
39
  listEnvironmentActionsByResourceType(environmentId: number, resourceType: string, page?: number, perPage?: number, filter?: ListEnvironmentActionsByResourceTypeFilterParameter): Promise<ApiResponse<Array<ActionRelation>>>;
40
40
  }
@@ -36,7 +36,7 @@ class EnvironmentsActionsApiService extends ApiBaseService_1.ApiBaseService {
36
36
  * @param {number} environmentId The ID of the environment.
37
37
  * @param {number} [page] Number of the page to be retrieved
38
38
  * @param {number} [perPage] Number of items returned per page
39
- * @param {ListEnvironmentActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_type]&#x3D;application&amp;filter[status]&#x3D;active&#x60;
39
+ * @param {ListEnvironmentActionsFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_type]&#x3D;application&amp;filter[resource_id]&#x3D;321&#x60;
40
40
  */
41
41
  listEnvironmentActions(environmentId, page, perPage, filter) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
@@ -60,7 +60,7 @@ class EnvironmentsActionsApiService extends ApiBaseService_1.ApiBaseService {
60
60
  * @param {string} resourceType The resource type to get related actions.
61
61
  * @param {number} [page] Number of the page to be retrieved
62
62
  * @param {number} [perPage] Number of items returned per page
63
- * @param {ListEnvironmentActionsByResourceTypeFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_type]&#x3D;application&amp;filter[status]&#x3D;active&#x60;
63
+ * @param {ListEnvironmentActionsByResourceTypeFilterParameter} [filter] Filter the results using the available fields. Multiple filters can be combined. Example: &#x60;?filter[resource_id]&#x3D;321&amp;filter[status]&#x3D;queued&#x60;
64
64
  */
65
65
  listEnvironmentActionsByResourceType(environmentId, resourceType, page, perPage, filter) {
66
66
  return __awaiter(this, void 0, void 0, function* () {
@@ -143,6 +143,7 @@ export * from './linked-resource-summary-field';
143
143
  export * from './list-actions-filter-parameter';
144
144
  export * from './list-environment-actions-by-resource-type-filter-parameter';
145
145
  export * from './list-environment-actions-filter-parameter';
146
+ export * from './list-environment-applications-filter-parameter';
146
147
  export * from './log';
147
148
  export * from './member';
148
149
  export * from './member-relation';
@@ -159,6 +159,7 @@ __exportStar(require("./linked-resource-summary-field"), exports);
159
159
  __exportStar(require("./list-actions-filter-parameter"), exports);
160
160
  __exportStar(require("./list-environment-actions-by-resource-type-filter-parameter"), exports);
161
161
  __exportStar(require("./list-environment-actions-filter-parameter"), exports);
162
+ __exportStar(require("./list-environment-applications-filter-parameter"), exports);
162
163
  __exportStar(require("./log"), exports);
163
164
  __exportStar(require("./member"), exports);
164
165
  __exportStar(require("./member-relation"), exports);
@@ -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 ListEnvironmentApplicationsFilterParameter
16
+ */
17
+ export interface ListEnvironmentApplicationsFilterParameter {
18
+ /**
19
+ * Search applications by name. Case insensitive. Example: `?filter[name]=app`
20
+ * @type {string}
21
+ * @memberof ListEnvironmentApplicationsFilterParameter
22
+ */
23
+ name?: string;
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 });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@devopness/sdk-js",
4
- "version": "3.6.2",
4
+ "version": "3.6.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -64,7 +64,7 @@
64
64
  "@openapitools/openapi-generator-cli": "^2.41.0",
65
65
  "axios-mock-adapter": "^2.1.0",
66
66
  "husky": "9.1.7",
67
- "vite-plus": "0.3.0",
67
+ "vite-plus": "0.3.2",
68
68
  "typescript": "^7.0.2",
69
69
  "typedoc": "^0.28.20"
70
70
  },