attlaz-client 1.32.2 → 1.33.1

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,5 +1,8 @@
1
1
  import { Configuration } from '../Model/Configuration/Configuration.js';
2
+ import { CollectionResult } from '../Model/Result/CollectionResult.js';
2
3
  import { Endpoint } from './Endpoint.js';
4
+ import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
3
5
  export declare class ConfigurationEndpoint extends Endpoint {
4
- getConfiguration(scopeId: string, path: string): Promise<Configuration | null>;
6
+ getByPath(scopeId: string, path: string): Promise<Configuration | null>;
7
+ getByPathQuery(scopeId: string, pathQuery: string, pagination: CursorPagination): Promise<CollectionResult<Configuration>>;
5
8
  }
@@ -2,7 +2,7 @@ import { QueryString } from '../Http/Data/QueryString.js';
2
2
  import { Configuration } from '../Model/Configuration/Configuration.js';
3
3
  import { Endpoint } from './Endpoint.js';
4
4
  export class ConfigurationEndpoint extends Endpoint {
5
- async getConfiguration(scopeId, path) {
5
+ async getByPath(scopeId, path) {
6
6
  try {
7
7
  const qs = new QueryString('/configurations/' + scopeId);
8
8
  qs.set('path', path);
@@ -11,7 +11,22 @@ export class ConfigurationEndpoint extends Endpoint {
11
11
  }
12
12
  catch (error) {
13
13
  if (this.httpClient.isDebugEnabled()) {
14
- console.error('Unable to load flow configuration', error);
14
+ console.error('Unable to load configuration', error);
15
+ }
16
+ throw error;
17
+ }
18
+ }
19
+ async getByPathQuery(scopeId, pathQuery, pagination) {
20
+ try {
21
+ const qs = new QueryString('/configurations/query/' + scopeId);
22
+ qs.set('query', pathQuery);
23
+ qs.addPagination(pagination);
24
+ const result = await this.requestCollection(qs, Configuration.parse);
25
+ return result;
26
+ }
27
+ catch (error) {
28
+ if (this.httpClient.isDebugEnabled()) {
29
+ console.error('Unable to load configuration', error);
15
30
  }
16
31
  throw error;
17
32
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.32.1";
1
+ export declare const VERSION = "1.33.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.32.1";
1
+ export const VERSION = "1.33.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.32.2",
3
+ "version": "1.33.1",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",