attlaz-client 1.50.1 → 1.52.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.
@@ -6,12 +6,20 @@ export declare class RunnerPool {
6
6
  queueIdentifier: string;
7
7
  deploymentIdentifier: string;
8
8
  type: QueueSpecificationType;
9
- effectiveMinRunners: number | null;
10
- effectiveMaxRunners: number | null;
11
- effectiveCpuLimit: number | null;
12
- effectiveMemoryLimit: number | null;
13
- effectiveImageId: string | null;
9
+ configuration: RunnerPoolConfiguration;
14
10
  state: State;
15
11
  static parse(raw: any): RunnerPool;
16
12
  }
17
13
  export type QueueSpecificationType = 'flow_run';
14
+ export type ConfigurationSource = 'RunnerPool' | 'ProjectEnvironment' | 'Workspace' | 'Zone';
15
+ export interface ResolvedValue<T> {
16
+ value: T;
17
+ source: ConfigurationSource | null;
18
+ }
19
+ export interface RunnerPoolConfiguration {
20
+ minRunners: ResolvedValue<number>;
21
+ maxRunners: ResolvedValue<number>;
22
+ cpuLimit: ResolvedValue<number | null>;
23
+ memoryLimit: ResolvedValue<number | null>;
24
+ imageId: ResolvedValue<string | null>;
25
+ }
@@ -6,12 +6,16 @@ export class RunnerPool {
6
6
  queueIdentifier;
7
7
  deploymentIdentifier;
8
8
  type = 'flow_run';
9
- // Effective values resolved server-side via the configuration chain (pool → env → workspace → zone fallback).
10
- effectiveMinRunners = null;
11
- effectiveMaxRunners = null;
12
- effectiveCpuLimit = null;
13
- effectiveMemoryLimit = null;
14
- effectiveImageId = null;
9
+ // Resolved server-side via the configuration chain (pool → env → workspace → zone fallback).
10
+ // Each field reports the resolved value plus the scope it came from. source === null means
11
+ // the value is a baked-in default (nothing was found anywhere in the chain).
12
+ configuration = {
13
+ minRunners: { value: 0, source: null },
14
+ maxRunners: { value: 0, source: null },
15
+ cpuLimit: { value: null, source: null },
16
+ memoryLimit: { value: null, source: null },
17
+ imageId: { value: null, source: null },
18
+ };
15
19
  state = State.Active;
16
20
  static parse(raw) {
17
21
  const queueSpecification = new RunnerPool();
@@ -21,11 +25,13 @@ export class RunnerPool {
21
25
  queueSpecification.queueIdentifier = raw.queue_identifier;
22
26
  queueSpecification.deploymentIdentifier = raw.deployment_identifier;
23
27
  queueSpecification.type = raw.type;
24
- queueSpecification.effectiveMinRunners = raw.effective_min_runners ?? null;
25
- queueSpecification.effectiveMaxRunners = raw.effective_max_runners ?? null;
26
- queueSpecification.effectiveCpuLimit = raw.effective_cpu_limit ?? null;
27
- queueSpecification.effectiveMemoryLimit = raw.effective_memory_limit ?? null;
28
- queueSpecification.effectiveImageId = raw.effective_image_id ?? null;
28
+ queueSpecification.configuration = {
29
+ minRunners: raw.configuration.min_runners,
30
+ maxRunners: raw.configuration.max_runners,
31
+ cpuLimit: raw.configuration.cpu_limit,
32
+ memoryLimit: raw.configuration.memory_limit,
33
+ imageId: raw.configuration.image_id,
34
+ };
29
35
  queueSpecification.state = State.fromString(raw.state);
30
36
  return queueSpecification;
31
37
  }
@@ -7,5 +7,5 @@ export declare class QueueStatus {
7
7
  message_publish_rate: number;
8
8
  message_handling_rate: number;
9
9
  consumers: number;
10
- updated: Date;
10
+ date: Date;
11
11
  }
@@ -7,5 +7,5 @@ export class QueueStatus {
7
7
  message_publish_rate = 0;
8
8
  message_handling_rate = 0;
9
9
  consumers = 0;
10
- updated;
10
+ date;
11
11
  }
@@ -5,5 +5,5 @@ export declare class RunnersStatus {
5
5
  down: number;
6
6
  memory_limit: number | null;
7
7
  cpu_limit: number | null;
8
- updated: Date;
8
+ date: Date;
9
9
  }
@@ -5,5 +5,5 @@ export class RunnersStatus {
5
5
  down;
6
6
  memory_limit;
7
7
  cpu_limit;
8
- updated;
8
+ date;
9
9
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.50.1";
1
+ export declare const VERSION = "1.51.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.50.1";
1
+ export const VERSION = "1.51.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.50.1",
3
+ "version": "1.52.0",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",