attlaz-client 1.50.1 → 1.51.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,15 @@ 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 interface RunnerPoolConfiguration {
15
+ minRunners: number | null;
16
+ maxRunners: number | null;
17
+ cpuLimit: number | null;
18
+ memoryLimit: number | null;
19
+ imageId: string | null;
20
+ }
@@ -6,12 +6,14 @@ 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). null = unset anywhere in the chain.
10
+ configuration = {
11
+ minRunners: null,
12
+ maxRunners: null,
13
+ cpuLimit: null,
14
+ memoryLimit: null,
15
+ imageId: null,
16
+ };
15
17
  state = State.Active;
16
18
  static parse(raw) {
17
19
  const queueSpecification = new RunnerPool();
@@ -21,11 +23,14 @@ export class RunnerPool {
21
23
  queueSpecification.queueIdentifier = raw.queue_identifier;
22
24
  queueSpecification.deploymentIdentifier = raw.deployment_identifier;
23
25
  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;
26
+ const rawConfiguration = raw.configuration ?? {};
27
+ queueSpecification.configuration = {
28
+ minRunners: rawConfiguration.min_runners ?? null,
29
+ maxRunners: rawConfiguration.max_runners ?? null,
30
+ cpuLimit: rawConfiguration.cpu_limit ?? null,
31
+ memoryLimit: rawConfiguration.memory_limit ?? null,
32
+ imageId: rawConfiguration.image_id ?? null,
33
+ };
29
34
  queueSpecification.state = State.fromString(raw.state);
30
35
  return queueSpecification;
31
36
  }
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.50.1",
3
+ "version": "1.51.0",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",