@devopness/sdk-js 3.3.0 → 3.3.2

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;
@@ -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
  */
@@ -47,7 +47,7 @@ export interface SubnetRelation {
47
47
  * @type {NetworkRelation}
48
48
  * @memberof SubnetRelation
49
49
  */
50
- network: NetworkRelation | null;
50
+ network?: NetworkRelation | null;
51
51
  /**
52
52
  * The subnet\'s name
53
53
  * @type {string}
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.0",
4
+ "version": "3.3.2",
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.0",
55
+ "@openapitools/openapi-generator-cli": "^2.31.1",
56
56
  "@types/jest": "^30.0.0",
57
- "@typescript-eslint/parser": "^8.56.0",
57
+ "@typescript-eslint/parser": "^8.58.1",
58
58
  "axios-mock-adapter": "^2.1.0",
59
- "eslint": "^10.0.2",
59
+ "eslint": "^10.2.1",
60
60
  "eslint-import-resolver-typescript": "^4.4.4",
61
61
  "eslint-plugin-import": "^2.32.0",
62
62
  "eslint-plugin-n": "^17.24.0",
63
- "eslint-plugin-promise": "^7.2.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.3.0",
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.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "@types/parse-link-header": "^2.0.3",
73
- "axios": "^1.13.6",
73
+ "axios": "^1.15.2",
74
74
  "parse-link-header": "^2.0.0"
75
75
  }
76
76
  }