attlaz-client 1.56.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.
@@ -1,7 +1,7 @@
1
1
  type StorageTypeStatus = {
2
2
  exists: boolean;
3
3
  used: number;
4
- limit: number;
4
+ limit: number | null;
5
5
  };
6
6
  export declare class StorageStatus {
7
7
  persistent: StorageTypeStatus;
@@ -1,6 +1,6 @@
1
1
  export declare class StorageInformation {
2
2
  bytes: number;
3
- bytes_limit: number;
3
+ bytes_limit: number | null;
4
4
  items: number;
5
5
  pools: {
6
6
  name: string;
@@ -1,5 +1,6 @@
1
1
  export class StorageInformation {
2
2
  bytes;
3
+ // null = explicitly unlimited at some scope in the configuration chain.
3
4
  bytes_limit;
4
5
  items;
5
6
  pools;
@@ -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
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.55.0";
1
+ export declare const VERSION = "1.56.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.55.0";
1
+ export const VERSION = "1.56.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.56.0",
3
+ "version": "1.57.0",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",