attlaz-client 1.55.0 → 1.57.0
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/Model/InfrastructureStatus/StorageStatus.d.ts +1 -1
- package/dist/Model/Storage/StorageInformation.d.ts +1 -1
- package/dist/Model/Storage/StorageInformation.js +1 -0
- package/dist/Service/ConfigurationEndpoint.d.ts +11 -0
- package/dist/Service/ConfigurationEndpoint.js +13 -0
- package/dist/Service/HealthAlertEndpoint.d.ts +7 -1
- package/dist/Service/HealthAlertEndpoint.js +19 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { Configuration } from '../Model/Configuration/Configuration.js';
|
|
2
2
|
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
3
3
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
4
|
+
import { ObjectResult } from '../Model/Result/ObjectResult.js';
|
|
4
5
|
import { Endpoint } from './Endpoint.js';
|
|
5
6
|
export declare class ConfigurationEndpoint extends Endpoint {
|
|
6
7
|
getByPath(scopeId: string, path: string): Promise<Configuration | null>;
|
|
7
8
|
getByPathQuery(scopeId: string, pathQuery: string, pagination: CursorPagination): Promise<CollectionResult<Configuration>>;
|
|
8
9
|
save(scopeId: string, path: string, value: unknown): Promise<CollectionResult<Configuration>>;
|
|
10
|
+
/**
|
|
11
|
+
* Remove a configuration row so resolution falls back to the parent scope.
|
|
12
|
+
* Use this for the "Clear field" / "Inherit from parent" UX action.
|
|
13
|
+
*
|
|
14
|
+
* Distinct from `save(scopeId, path, null)` which keeps an explicit "no value"
|
|
15
|
+
* override at this scope (e.g. for limit fields meaning "no limit").
|
|
16
|
+
*/
|
|
17
|
+
delete(scopeId: string, path: string): Promise<ObjectResult<{
|
|
18
|
+
removed: boolean;
|
|
19
|
+
}>>;
|
|
9
20
|
}
|
|
@@ -37,4 +37,17 @@ export class ConfigurationEndpoint extends Endpoint {
|
|
|
37
37
|
const result = await this.requestCollection(qs, Configuration.parse, { value: value }, 'POST');
|
|
38
38
|
return result;
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Remove a configuration row so resolution falls back to the parent scope.
|
|
42
|
+
* Use this for the "Clear field" / "Inherit from parent" UX action.
|
|
43
|
+
*
|
|
44
|
+
* Distinct from `save(scopeId, path, null)` which keeps an explicit "no value"
|
|
45
|
+
* override at this scope (e.g. for limit fields meaning "no limit").
|
|
46
|
+
*/
|
|
47
|
+
async delete(scopeId, path) {
|
|
48
|
+
const qs = new QueryString('/configurations/' + scopeId);
|
|
49
|
+
qs.set('path', path);
|
|
50
|
+
const result = await this.requestObject(qs, null, (raw) => raw, 'DELETE');
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
40
53
|
}
|
|
@@ -3,5 +3,11 @@ import { HealthAlert } from '../Model/HealthAlert/HealthAlert.js';
|
|
|
3
3
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
4
4
|
import { Endpoint } from './Endpoint.js';
|
|
5
5
|
export declare class HealthAlertEndpoint extends Endpoint {
|
|
6
|
-
getCurrentAlertsByScope(scopeType: EntityType, scopeId: string
|
|
6
|
+
getCurrentAlertsByScope(scopeType: EntityType, scopeId: string): Promise<CollectionResult<HealthAlert>>;
|
|
7
|
+
/**
|
|
8
|
+
* Fetch all current alerts under a parent scope (today: only ProjectEnvironment).
|
|
9
|
+
* One query returns env-direct, pool-direct, and flow-direct alerts in a single round-trip
|
|
10
|
+
* — replaces the old N-call multi-scope loop on env-overview pages.
|
|
11
|
+
*/
|
|
12
|
+
getCurrentAlertsByParentScope(parentScopeType: EntityType, parentScopeId: string): Promise<CollectionResult<HealthAlert>>;
|
|
7
13
|
}
|
|
@@ -2,12 +2,9 @@ import { QueryString } from '../Http/Data/QueryString.js';
|
|
|
2
2
|
import { HealthAlert } from '../Model/HealthAlert/HealthAlert.js';
|
|
3
3
|
import { Endpoint } from './Endpoint.js';
|
|
4
4
|
export class HealthAlertEndpoint extends Endpoint {
|
|
5
|
-
async getCurrentAlertsByScope(scopeType, scopeId
|
|
5
|
+
async getCurrentAlertsByScope(scopeType, scopeId) {
|
|
6
6
|
try {
|
|
7
7
|
const q = new QueryString('/health/' + scopeType + '/' + scopeId);
|
|
8
|
-
if (parentScopeId !== null) {
|
|
9
|
-
q.set('parentScopeId', parentScopeId);
|
|
10
|
-
}
|
|
11
8
|
const result = await this.requestCollection(q, HealthAlert.parse);
|
|
12
9
|
return result;
|
|
13
10
|
}
|
|
@@ -18,4 +15,22 @@ export class HealthAlertEndpoint extends Endpoint {
|
|
|
18
15
|
throw error;
|
|
19
16
|
}
|
|
20
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Fetch all current alerts under a parent scope (today: only ProjectEnvironment).
|
|
20
|
+
* One query returns env-direct, pool-direct, and flow-direct alerts in a single round-trip
|
|
21
|
+
* — replaces the old N-call multi-scope loop on env-overview pages.
|
|
22
|
+
*/
|
|
23
|
+
async getCurrentAlertsByParentScope(parentScopeType, parentScopeId) {
|
|
24
|
+
try {
|
|
25
|
+
const q = new QueryString('/health/by-parent/' + parentScopeType + '/' + parentScopeId);
|
|
26
|
+
const result = await this.requestCollection(q, HealthAlert.parse);
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
if (this.httpClient.isDebugEnabled()) {
|
|
31
|
+
console.error('Failed to load health alerts by parent scope: ', error);
|
|
32
|
+
}
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
21
36
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.56.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.56.0";
|