attlaz-client 1.44.1 → 1.45.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.
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +4 -4
- package/dist/Model/Infrastructure/RunnerPool.d.ts +12 -0
- package/dist/Model/Infrastructure/{QueueSpecification.js → RunnerPool.js} +8 -6
- package/dist/Service/RunnerPoolEndpoint.d.ts +8 -0
- package/dist/Service/{QueueSpecificationEndpoint.js → RunnerPoolEndpoint.js} +6 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Model/Infrastructure/QueueSpecification.d.ts +0 -11
- package/dist/Service/QueueSpecificationEndpoint.d.ts +0 -8
package/dist/Client.d.ts
CHANGED
|
@@ -21,8 +21,8 @@ import { PlatformEndpoint } from './Service/PlatformEndpoint.js';
|
|
|
21
21
|
import { PlatformLanguageEndpoint } from './Service/PlatformLanguageEndpoint.js';
|
|
22
22
|
import { ProjectEndpoint } from './Service/ProjectEndpoint.js';
|
|
23
23
|
import { ProjectEnvironmentEndpoint } from './Service/ProjectEnvironmentEndpoint.js';
|
|
24
|
-
import { QueueSpecificationEndpoint } from './Service/QueueSpecificationEndpoint.js';
|
|
25
24
|
import { RunnerEndpoint } from './Service/RunnerEndpoint.js';
|
|
25
|
+
import { RunnerPoolEndpoint } from './Service/RunnerPoolEndpoint.js';
|
|
26
26
|
import { SearchEndpoint } from './Service/SearchEndpoint.js';
|
|
27
27
|
import { SourcesAccountEndpoint } from './Service/SourcesAccountEndpoint.js';
|
|
28
28
|
import { StorageEndpoint } from './Service/StorageEndpoint.js';
|
|
@@ -83,7 +83,7 @@ export declare class Client {
|
|
|
83
83
|
getUserActionEndpoint(): UserActionEndpoint;
|
|
84
84
|
getAccessTokenEndpoint(): AccessTokenEndpoint;
|
|
85
85
|
getCollectionsEndpoint(): CollectionsEndpoint;
|
|
86
|
-
|
|
86
|
+
getRunnerPoolEndpoint(): RunnerPoolEndpoint;
|
|
87
87
|
getFirewallEndpoint(): FirewallEndpoint;
|
|
88
88
|
private getEndpoint;
|
|
89
89
|
getVersion(): string;
|
package/dist/Client.js
CHANGED
|
@@ -22,8 +22,8 @@ import { PlatformEndpoint } from './Service/PlatformEndpoint.js';
|
|
|
22
22
|
import { PlatformLanguageEndpoint } from './Service/PlatformLanguageEndpoint.js';
|
|
23
23
|
import { ProjectEndpoint } from './Service/ProjectEndpoint.js';
|
|
24
24
|
import { ProjectEnvironmentEndpoint } from './Service/ProjectEnvironmentEndpoint.js';
|
|
25
|
-
import { QueueSpecificationEndpoint } from './Service/QueueSpecificationEndpoint.js';
|
|
26
25
|
import { RunnerEndpoint } from './Service/RunnerEndpoint.js';
|
|
26
|
+
import { RunnerPoolEndpoint } from './Service/RunnerPoolEndpoint.js';
|
|
27
27
|
import { SearchEndpoint } from './Service/SearchEndpoint.js';
|
|
28
28
|
import { SourcesAccountEndpoint } from './Service/SourcesAccountEndpoint.js';
|
|
29
29
|
import { StorageEndpoint } from './Service/StorageEndpoint.js';
|
|
@@ -69,7 +69,7 @@ export class Client {
|
|
|
69
69
|
WorkspaceEndpoint,
|
|
70
70
|
WorkspaceMemberEndpoint,
|
|
71
71
|
CollectionsEndpoint,
|
|
72
|
-
QueueSpecificationEndpoint,
|
|
72
|
+
QueueSpecificationEndpoint: RunnerPoolEndpoint,
|
|
73
73
|
};
|
|
74
74
|
apiEndpoint = 'https://api.attlaz.com';
|
|
75
75
|
parseConfig(config) {
|
|
@@ -219,8 +219,8 @@ export class Client {
|
|
|
219
219
|
getCollectionsEndpoint() {
|
|
220
220
|
return this.getEndpoint('collections', this.Store.CollectionsEndpoint);
|
|
221
221
|
}
|
|
222
|
-
|
|
223
|
-
return this.getEndpoint('
|
|
222
|
+
getRunnerPoolEndpoint() {
|
|
223
|
+
return this.getEndpoint('runner_pool', this.Store.QueueSpecificationEndpoint);
|
|
224
224
|
}
|
|
225
225
|
// TODO: this should be in a separate API?
|
|
226
226
|
getFirewallEndpoint() {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
export declare class RunnerPool {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
environment: string;
|
|
6
|
+
queueIdentifier: string;
|
|
7
|
+
type: string;
|
|
8
|
+
minRunners: number;
|
|
9
|
+
maxRunners: number;
|
|
10
|
+
state: State;
|
|
11
|
+
static parse(raw: any): RunnerPool;
|
|
12
|
+
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { State } from '../State.js';
|
|
2
|
-
export class
|
|
2
|
+
export class RunnerPool {
|
|
3
3
|
id;
|
|
4
4
|
name;
|
|
5
5
|
environment;
|
|
6
|
-
|
|
6
|
+
queueIdentifier;
|
|
7
7
|
type = 'flow_run';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
minRunners;
|
|
9
|
+
maxRunners;
|
|
10
10
|
state = State.Active;
|
|
11
11
|
static parse(raw) {
|
|
12
|
-
const queueSpecification = new
|
|
12
|
+
const queueSpecification = new RunnerPool();
|
|
13
13
|
queueSpecification.id = raw.id;
|
|
14
14
|
queueSpecification.name = raw.name;
|
|
15
15
|
queueSpecification.environment = raw.environment;
|
|
16
|
-
queueSpecification.
|
|
16
|
+
queueSpecification.queueIdentifier = raw.queue_identifier;
|
|
17
17
|
queueSpecification.type = raw.type;
|
|
18
|
+
queueSpecification.minRunners = raw.min_runners;
|
|
19
|
+
queueSpecification.maxRunners = raw.max_runners;
|
|
18
20
|
// codeDeployStrategy.languageId = raw.language;
|
|
19
21
|
queueSpecification.state = State.fromString(raw.state);
|
|
20
22
|
return queueSpecification;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RunnerPool } from '../Model/Infrastructure/RunnerPool.js';
|
|
2
|
+
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
3
|
+
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
4
|
+
import { Endpoint } from './Endpoint.js';
|
|
5
|
+
export declare class RunnerPoolEndpoint extends Endpoint {
|
|
6
|
+
getByProjectEnvironment(projectEnvironmentId: string, pagination?: CursorPagination | null): Promise<CollectionResult<RunnerPool>>;
|
|
7
|
+
getById(queueSpecificationId: string): Promise<RunnerPool | null>;
|
|
8
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { QueryString } from '../Http/Data/QueryString.js';
|
|
2
|
-
import {
|
|
2
|
+
import { RunnerPool } from '../Model/Infrastructure/RunnerPool.js';
|
|
3
3
|
import { Endpoint } from './Endpoint.js';
|
|
4
|
-
export class
|
|
4
|
+
export class RunnerPoolEndpoint extends Endpoint {
|
|
5
5
|
async getByProjectEnvironment(projectEnvironmentId, pagination = null) {
|
|
6
|
-
const queryString = new QueryString('/
|
|
6
|
+
const queryString = new QueryString('/runner-pools/project-environments/' + projectEnvironmentId + '');
|
|
7
7
|
queryString.addPagination(pagination);
|
|
8
|
-
const result = await this.requestCollection(queryString,
|
|
8
|
+
const result = await this.requestCollection(queryString, RunnerPool.parse);
|
|
9
9
|
return result;
|
|
10
10
|
}
|
|
11
11
|
async getById(queueSpecificationId) {
|
|
12
|
-
const queryString = new QueryString('/
|
|
13
|
-
const result = await this.requestObject(queryString, null,
|
|
12
|
+
const queryString = new QueryString('/runner-pools/' + queueSpecificationId);
|
|
13
|
+
const result = await this.requestObject(queryString, null, RunnerPool.parse);
|
|
14
14
|
return result.getData();
|
|
15
15
|
}
|
|
16
16
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.45.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.45.0";
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { State } from '../State.js';
|
|
2
|
-
export declare class QueueSpecification {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
environment: string;
|
|
6
|
-
identifier: string;
|
|
7
|
-
type: string;
|
|
8
|
-
consumerCount: number;
|
|
9
|
-
state: State;
|
|
10
|
-
static parse(raw: any): QueueSpecification;
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { QueueSpecification } from '../Model/Infrastructure/QueueSpecification.js';
|
|
2
|
-
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
3
|
-
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
4
|
-
import { Endpoint } from './Endpoint.js';
|
|
5
|
-
export declare class QueueSpecificationEndpoint extends Endpoint {
|
|
6
|
-
getByProjectEnvironment(projectEnvironmentId: string, pagination?: CursorPagination | null): Promise<CollectionResult<QueueSpecification>>;
|
|
7
|
-
getById(queueSpecificationId: string): Promise<QueueSpecification | null>;
|
|
8
|
-
}
|