@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.
- package/dist/api/generated/apis/resource-links-api.d.ts +6 -5
- package/dist/api/generated/apis/resource-links-api.js +7 -6
- package/dist/api/generated/models/organization-create.d.ts +1 -1
- package/dist/api/generated/models/organization-update.d.ts +1 -1
- package/dist/api/generated/models/subnet-relation.d.ts +1 -1
- package/package.json +10 -10
|
@@ -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
|
|
40
|
-
* @param {string} linkType The link type
|
|
41
|
-
* @param {number} resourceId The resource
|
|
42
|
-
* @param {string} resourceType The resource type
|
|
39
|
+
* @summary List resources linked to a base resource.
|
|
40
|
+
* @param {string} linkType The link type of resources to be retrieved: `child` or `parent`.
|
|
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
|
|
92
|
-
* @param {string} linkType The link type
|
|
93
|
-
* @param {number} resourceId The resource
|
|
94
|
-
* @param {string} resourceType The resource type
|
|
91
|
+
* @summary List resources linked to a base resource.
|
|
92
|
+
* @param {string} linkType The link type of resources to be retrieved: `child` or `parent`.
|
|
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
|
|
25
|
+
* The URL Slug of the organization. Must not be greater than 30 characters.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof OrganizationCreate
|
|
28
28
|
*/
|
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.
|
|
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.
|
|
55
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
56
56
|
"@types/jest": "^30.0.0",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/parser": "^8.58.1",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
|
-
"eslint": "^10.
|
|
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.
|
|
63
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
|
-
"jest": "^30.
|
|
66
|
-
"ts-jest": "^29.4.
|
|
67
|
-
"typedoc": "^0.28.
|
|
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.
|
|
69
|
+
"typescript-eslint": "^8.59.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|
|
73
|
-
"axios": "^1.
|
|
73
|
+
"axios": "^1.15.2",
|
|
74
74
|
"parse-link-header": "^2.0.0"
|
|
75
75
|
}
|
|
76
76
|
}
|