@devopness/sdk-js 2.164.3 → 2.164.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.
|
@@ -46,8 +46,10 @@ export declare class VariablesApiService extends ApiBaseService {
|
|
|
46
46
|
* @param {string} resourceType The resource type to get variables from.
|
|
47
47
|
* @param {number} [page] Number of the page to be retrieved
|
|
48
48
|
* @param {number} [perPage] Number of items returned per page
|
|
49
|
+
* @param {boolean} [includeVirtualVariables] If true, include all `virtual variables` in the list. Defaults to true.
|
|
50
|
+
* @param {string} [variableTarget] Filter by variable\'s target.
|
|
49
51
|
*/
|
|
50
|
-
listVariablesByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<VariableRelation>>>;
|
|
52
|
+
listVariablesByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number, includeVirtualVariables?: boolean, variableTarget?: string): Promise<ApiResponse<Array<VariableRelation>>>;
|
|
51
53
|
/**
|
|
52
54
|
*
|
|
53
55
|
* @summary Update an existing variable
|
|
@@ -92,8 +92,10 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
92
92
|
* @param {string} resourceType The resource type to get variables from.
|
|
93
93
|
* @param {number} [page] Number of the page to be retrieved
|
|
94
94
|
* @param {number} [perPage] Number of items returned per page
|
|
95
|
+
* @param {boolean} [includeVirtualVariables] If true, include all `virtual variables` in the list. Defaults to true.
|
|
96
|
+
* @param {string} [variableTarget] Filter by variable\'s target.
|
|
95
97
|
*/
|
|
96
|
-
listVariablesByResourceType(resourceId, resourceType, page, perPage) {
|
|
98
|
+
listVariablesByResourceType(resourceId, resourceType, page, perPage, includeVirtualVariables, variableTarget) {
|
|
97
99
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
100
|
if (resourceId === null || resourceId === undefined) {
|
|
99
101
|
throw new Exceptions_1.ArgumentNullException('resourceId', 'listVariablesByResourceType');
|
|
@@ -102,7 +104,7 @@ class VariablesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
102
104
|
throw new Exceptions_1.ArgumentNullException('resourceType', 'listVariablesByResourceType');
|
|
103
105
|
}
|
|
104
106
|
let queryString = '';
|
|
105
|
-
const queryParams = { page: page, per_page: perPage, };
|
|
107
|
+
const queryParams = { page: page, per_page: perPage, include_virtual_variables: includeVirtualVariables, variable_target: variableTarget, };
|
|
106
108
|
for (const key in queryParams) {
|
|
107
109
|
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
108
110
|
continue;
|
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": "2.164.
|
|
4
|
+
"version": "2.164.4",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/devopness/devopness#readme",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@eslint/js": "^9.
|
|
55
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
56
|
-
"@types/jest": "^
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
54
|
+
"@eslint/js": "^9.30.0",
|
|
55
|
+
"@openapitools/openapi-generator-cli": "^2.21.0",
|
|
56
|
+
"@types/jest": "^30.0.0",
|
|
57
|
+
"@typescript-eslint/parser": "^8.35.1",
|
|
58
58
|
"axios-mock-adapter": "^2.1.0",
|
|
59
|
-
"eslint": "^9.
|
|
60
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
59
|
+
"eslint": "^9.30.1",
|
|
60
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
61
61
|
"eslint-plugin-import": "^2.32.0",
|
|
62
62
|
"eslint-plugin-n": "^17.20.0",
|
|
63
63
|
"eslint-plugin-promise": "^7.2.1",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
|
-
"jest": "^30.0.
|
|
65
|
+
"jest": "^30.0.4",
|
|
66
66
|
"ts-jest": "^29.4.0",
|
|
67
|
-
"typedoc": "^0.28.
|
|
67
|
+
"typedoc": "^0.28.7",
|
|
68
68
|
"typescript": "^5.8.3",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"typescript-eslint": "^8.35.1"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/parse-link-header": "^2.0.3",
|