attlaz-client 1.13.27 → 1.13.28

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.
@@ -14,5 +14,10 @@ export declare class CodeSource implements StateAware {
14
14
  runStrategyId: string;
15
15
  description: string;
16
16
  state: State;
17
+ usage: {
18
+ flows: number;
19
+ environments: number;
20
+ } | null;
21
+ deploys: number | null;
17
22
  static parse(rawCodeSource: any): CodeSource;
18
23
  }
@@ -9,6 +9,8 @@ export class CodeSource {
9
9
  runStrategyId;
10
10
  description;
11
11
  state = State.Active;
12
+ usage = null;
13
+ deploys = null;
12
14
  static parse(rawCodeSource) {
13
15
  const codeSource = new CodeSource();
14
16
  codeSource.id = rawCodeSource.id;
@@ -20,6 +22,12 @@ export class CodeSource {
20
22
  codeSource.runStrategyId = rawCodeSource.run_strategy;
21
23
  codeSource.description = rawCodeSource.description;
22
24
  codeSource.state = State.fromString(rawCodeSource.state);
25
+ if (Object.prototype.hasOwnProperty.call(rawCodeSource, 'usage')) {
26
+ codeSource.usage = rawCodeSource.usage;
27
+ }
28
+ if (Object.prototype.hasOwnProperty.call(rawCodeSource, 'deploys')) {
29
+ codeSource.deploys = rawCodeSource.deploys;
30
+ }
23
31
  return codeSource;
24
32
  }
25
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.13.27",
3
+ "version": "1.13.28",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",