@devopness/sdk-js 3.3.1 → 3.3.3

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.
@@ -36,14 +36,15 @@ export declare class ResourceLinksApiService extends ApiBaseService {
36
36
  listResourceLinksByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ResourceLinkRelation>>>;
37
37
  /**
38
38
  *
39
- * @summary List linked resources of specified link type
40
- * @param {string} linkType The link type (&#x60;child&#x60; or &#x60;parent&#x60;).
41
- * @param {number} resourceId The resource ID.
42
- * @param {string} resourceType The resource type to get linked resources.
39
+ * @summary List resources linked to a base resource.
40
+ * @param {string} linkType The link type of resources to be retrieved: &#x60;child&#x60; or &#x60;parent&#x60;.
41
+ * @param {number} resourceId The ID of the base resource
42
+ * @param {string} resourceType The base resource type used from which linked resources will be retrieved.
43
43
  * @param {number} [page] Number of the page to be retrieved
44
44
  * @param {number} [perPage] Number of items returned per page
45
+ * @param {string} [linkedResourceType] Filter only linked resources of this resource type.
45
46
  */
46
- listResourceLinksByResourceTypeAndLinkType(linkType: string, resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ResourceLinkRelation>>>;
47
+ listResourceLinksByResourceTypeAndLinkType(linkType: string, resourceId: number, resourceType: string, page?: number, perPage?: number, linkedResourceType?: string): Promise<ApiResponse<Array<ResourceLinkRelation>>>;
47
48
  /**
48
49
  *
49
50
  * @summary Delete a given resource link
@@ -88,14 +88,15 @@ class ResourceLinksApiService extends ApiBaseService_1.ApiBaseService {
88
88
  }
89
89
  /**
90
90
  *
91
- * @summary List linked resources of specified link type
92
- * @param {string} linkType The link type (&#x60;child&#x60; or &#x60;parent&#x60;).
93
- * @param {number} resourceId The resource ID.
94
- * @param {string} resourceType The resource type to get linked resources.
91
+ * @summary List resources linked to a base resource.
92
+ * @param {string} linkType The link type of resources to be retrieved: &#x60;child&#x60; or &#x60;parent&#x60;.
93
+ * @param {number} resourceId The ID of the base resource
94
+ * @param {string} resourceType The base resource type used from which linked resources will be retrieved.
95
95
  * @param {number} [page] Number of the page to be retrieved
96
96
  * @param {number} [perPage] Number of items returned per page
97
+ * @param {string} [linkedResourceType] Filter only linked resources of this resource type.
97
98
  */
98
- listResourceLinksByResourceTypeAndLinkType(linkType, resourceId, resourceType, page, perPage) {
99
+ listResourceLinksByResourceTypeAndLinkType(linkType, resourceId, resourceType, page, perPage, linkedResourceType) {
99
100
  return __awaiter(this, void 0, void 0, function* () {
100
101
  if (linkType === null || linkType === undefined) {
101
102
  throw new Exceptions_1.ArgumentNullException('linkType', 'listResourceLinksByResourceTypeAndLinkType');
@@ -107,7 +108,7 @@ class ResourceLinksApiService extends ApiBaseService_1.ApiBaseService {
107
108
  throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceLinksByResourceTypeAndLinkType');
108
109
  }
109
110
  let queryString = '';
110
- const queryParams = { page: page, per_page: perPage, };
111
+ const queryParams = { page: page, per_page: perPage, linked_resource_type: linkedResourceType, };
111
112
  for (const key in queryParams) {
112
113
  if (queryParams[key] === undefined || queryParams[key] === null) {
113
114
  continue;
@@ -19,6 +19,7 @@ import { ActionTarget } from './action-target';
19
19
  import { ActionTriggeredFrom } from './action-triggered-from';
20
20
  import { ActionType } from './action-type';
21
21
  import { EnvironmentRelation } from './environment-relation';
22
+ import { OrganizationRelation } from './organization-relation';
22
23
  import { ProjectRelation } from './project-relation';
23
24
  import { RelatedAction } from './related-action';
24
25
  import { UserRelation } from './user-relation';
@@ -142,6 +143,12 @@ export interface ActionRetryResponse {
142
143
  * @memberof ActionRetryResponse
143
144
  */
144
145
  project: ProjectRelation | null;
146
+ /**
147
+ *
148
+ * @type {OrganizationRelation}
149
+ * @memberof ActionRetryResponse
150
+ */
151
+ organization: OrganizationRelation | null;
145
152
  /**
146
153
  * List of actions dispatched to cloud resource targets
147
154
  * @type {Array<ActionTarget>}
@@ -19,6 +19,7 @@ import { ActionTarget } from './action-target';
19
19
  import { ActionTriggeredFrom } from './action-triggered-from';
20
20
  import { ActionType } from './action-type';
21
21
  import { EnvironmentRelation } from './environment-relation';
22
+ import { OrganizationRelation } from './organization-relation';
22
23
  import { ProjectRelation } from './project-relation';
23
24
  import { RelatedAction } from './related-action';
24
25
  import { UserRelation } from './user-relation';
@@ -142,6 +143,12 @@ export interface Action {
142
143
  * @memberof Action
143
144
  */
144
145
  project: ProjectRelation | null;
146
+ /**
147
+ *
148
+ * @type {OrganizationRelation}
149
+ * @memberof Action
150
+ */
151
+ organization: OrganizationRelation | null;
145
152
  /**
146
153
  * List of actions dispatched to cloud resource targets
147
154
  * @type {Array<ActionTarget>}
@@ -22,7 +22,7 @@ export interface OrganizationCreate {
22
22
  */
23
23
  name: string;
24
24
  /**
25
- * The URL Slug of the organization. Must not be greater than 255 characters.
25
+ * The URL Slug of the organization. Must not be greater than 30 characters.
26
26
  * @type {string}
27
27
  * @memberof OrganizationCreate
28
28
  */
@@ -28,7 +28,7 @@ export interface OrganizationUpdate {
28
28
  */
29
29
  name: string;
30
30
  /**
31
- * The URL Slug of the organization.
31
+ * The URL Slug of the organization. Must not be greater than 30 characters.
32
32
  * @type {string}
33
33
  * @memberof OrganizationUpdate
34
34
  */
@@ -41,6 +41,12 @@ export interface PipelineRelation {
41
41
  * @memberof PipelineRelation
42
42
  */
43
43
  project_id: number;
44
+ /**
45
+ * ID of the organization this pipeline belongs to
46
+ * @type {number}
47
+ * @memberof PipelineRelation
48
+ */
49
+ organization_id: number;
44
50
  /**
45
51
  * The pipeline\'s resource type
46
52
  * @type {string}
@@ -43,6 +43,12 @@ export interface Pipeline {
43
43
  * @memberof Pipeline
44
44
  */
45
45
  project_id: number;
46
+ /**
47
+ * ID of the organization this pipeline belongs to
48
+ * @type {number}
49
+ * @memberof Pipeline
50
+ */
51
+ organization_id: number;
46
52
  /**
47
53
  *
48
54
  * @type {ResourceType}
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.3.1",
4
+ "version": "3.3.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -52,25 +52,25 @@
52
52
  "homepage": "https://github.com/devopness/devopness#readme",
53
53
  "devDependencies": {
54
54
  "@eslint/js": "^10.0.1",
55
- "@openapitools/openapi-generator-cli": "^2.30.1",
55
+ "@openapitools/openapi-generator-cli": "^2.32.0",
56
56
  "@types/jest": "^30.0.0",
57
- "@typescript-eslint/parser": "^8.56.0",
57
+ "@typescript-eslint/parser": "^8.59.2",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^10.0.2",
59
+ "eslint": "^10.3.0",
60
60
  "eslint-import-resolver-typescript": "^4.4.4",
61
61
  "eslint-plugin-import": "^2.32.0",
62
- "eslint-plugin-n": "^17.24.0",
63
- "eslint-plugin-promise": "^7.2.1",
62
+ "eslint-plugin-n": "^18.0.1",
63
+ "eslint-plugin-promise": "^7.3.0",
64
64
  "husky": "9.1.7",
65
- "jest": "^30.2.0",
66
- "ts-jest": "^29.4.5",
67
- "typedoc": "^0.28.17",
65
+ "jest": "^30.4.1",
66
+ "ts-jest": "^29.4.9",
67
+ "typedoc": "^0.28.19",
68
68
  "typescript": "^5.9.3",
69
- "typescript-eslint": "^8.56.1"
69
+ "typescript-eslint": "^8.59.2"
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",
73
- "axios": "^1.13.6",
73
+ "axios": "^1.16.0",
74
74
  "parse-link-header": "^2.0.0"
75
75
  }
76
76
  }