attlaz-client 1.45.1 → 1.46.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/Model/Adapter/Adapter.d.ts +1 -0
- package/dist/Model/Adapter/Adapter.js +7 -1
- package/dist/Model/EntityType.d.ts +2 -1
- package/dist/Model/EntityType.js +1 -0
- package/dist/Model/Infrastructure/RunnerPool.d.ts +3 -1
- package/dist/Model/Infrastructure/RunnerPool.js +2 -1
- package/dist/Model/Search/SearchResult.d.ts +10 -10
- package/dist/Model/Search/SearchResult.js +14 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +7 -7
|
@@ -18,11 +18,17 @@ export class Adapter extends MetaDataWithIconAware {
|
|
|
18
18
|
adapter.longDescription = rawAdapter.long_description;
|
|
19
19
|
adapter.capabilities = rawAdapter.capabilities;
|
|
20
20
|
// adapter.icon = rawAdapter.icon as string;
|
|
21
|
-
adapter.logo = rawAdapter.logo;
|
|
21
|
+
adapter.logo = Adapter.parseIcon(rawAdapter.logo);
|
|
22
22
|
adapter.type = rawAdapter.type;
|
|
23
23
|
adapter.categoryIds = rawAdapter.categories;
|
|
24
24
|
adapter.docs = rawAdapter.docs;
|
|
25
25
|
adapter.website = rawAdapter.website;
|
|
26
26
|
return adapter;
|
|
27
27
|
}
|
|
28
|
+
static parseIcon(icon) {
|
|
29
|
+
if (typeof icon === 'object' && 'url' in icon) {
|
|
30
|
+
return icon.url;
|
|
31
|
+
}
|
|
32
|
+
return icon;
|
|
33
|
+
}
|
|
28
34
|
}
|
|
@@ -17,7 +17,8 @@ export declare enum EntityType {
|
|
|
17
17
|
CodeSource = "code-source",
|
|
18
18
|
CodeSourceDeploy = "code-source-deploy",
|
|
19
19
|
StorageBucket = "storage-bucket",
|
|
20
|
-
LogStream = "log-stream"
|
|
20
|
+
LogStream = "log-stream",
|
|
21
|
+
RunnerPool = "runner-pool"
|
|
21
22
|
}
|
|
22
23
|
export declare namespace EntityType {
|
|
23
24
|
const fromString: (input: string) => EntityType;
|
package/dist/Model/EntityType.js
CHANGED
|
@@ -20,6 +20,7 @@ export var EntityType;
|
|
|
20
20
|
EntityType["CodeSourceDeploy"] = "code-source-deploy";
|
|
21
21
|
EntityType["StorageBucket"] = "storage-bucket";
|
|
22
22
|
EntityType["LogStream"] = "log-stream";
|
|
23
|
+
EntityType["RunnerPool"] = "runner-pool";
|
|
23
24
|
})(EntityType || (EntityType = {}));
|
|
24
25
|
(function (EntityType) {
|
|
25
26
|
EntityType.fromString = (input) => {
|
|
@@ -4,9 +4,11 @@ export declare class RunnerPool {
|
|
|
4
4
|
name: string;
|
|
5
5
|
environment: string;
|
|
6
6
|
queueIdentifier: string;
|
|
7
|
-
|
|
7
|
+
deploymentIdentifier: string;
|
|
8
|
+
type: QueueSpecificationType;
|
|
8
9
|
minRunners: number;
|
|
9
10
|
maxRunners: number;
|
|
10
11
|
state: State;
|
|
11
12
|
static parse(raw: any): RunnerPool;
|
|
12
13
|
}
|
|
14
|
+
export type QueueSpecificationType = 'flow_run';
|
|
@@ -4,6 +4,7 @@ export class RunnerPool {
|
|
|
4
4
|
name;
|
|
5
5
|
environment;
|
|
6
6
|
queueIdentifier;
|
|
7
|
+
deploymentIdentifier;
|
|
7
8
|
type = 'flow_run';
|
|
8
9
|
minRunners;
|
|
9
10
|
maxRunners;
|
|
@@ -14,10 +15,10 @@ export class RunnerPool {
|
|
|
14
15
|
queueSpecification.name = raw.name;
|
|
15
16
|
queueSpecification.environment = raw.environment;
|
|
16
17
|
queueSpecification.queueIdentifier = raw.queue_identifier;
|
|
18
|
+
queueSpecification.deploymentIdentifier = raw.deployment_identifier;
|
|
17
19
|
queueSpecification.type = raw.type;
|
|
18
20
|
queueSpecification.minRunners = raw.min_runners;
|
|
19
21
|
queueSpecification.maxRunners = raw.max_runners;
|
|
20
|
-
// codeDeployStrategy.languageId = raw.language;
|
|
21
22
|
queueSpecification.state = State.fromString(raw.state);
|
|
22
23
|
return queueSpecification;
|
|
23
24
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Workspace } from '../Workspace/Workspace.js';
|
|
2
|
-
import { Project } from '../Project/Project.js';
|
|
3
|
-
import { ProjectEnvironment } from '../Project/ProjectEnvironment.js';
|
|
4
|
-
import { Flow } from '../Flow/Flow.js';
|
|
5
|
-
import { FlowRun } from '../Flow/FlowRun.js';
|
|
6
|
-
import { Channel } from '../Messaging/Channel/Channel.js';
|
|
7
1
|
import { Adapter } from '../Adapter/Adapter.js';
|
|
8
2
|
import { AdapterConnection } from '../Adapter/AdapterConnection.js';
|
|
3
|
+
import { CodeSource } from '../Deployment/CodeSource.js';
|
|
4
|
+
import { CodeSourceAccount } from '../Deployment/CodeSourceAccount.js';
|
|
9
5
|
import { EntityType } from '../EntityType.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { Flow } from '../Flow/Flow.js';
|
|
7
|
+
import { FlowRun } from '../Flow/FlowRun.js';
|
|
8
|
+
import { Channel } from '../Messaging/Channel/Channel.js';
|
|
12
9
|
import { Subscriber } from '../Messaging/Subscriber.js';
|
|
13
|
-
import { CodeSourceAccount } from '../Deployment/CodeSourceAccount.js';
|
|
14
|
-
import { CodeSource } from '../Deployment/CodeSource.js';
|
|
15
10
|
import { CodeDeploy } from '../Project/CodeDeploy.js';
|
|
11
|
+
import { Project } from '../Project/Project.js';
|
|
12
|
+
import { ProjectEnvironment } from '../Project/ProjectEnvironment.js';
|
|
13
|
+
import { Trigger } from '../Trigger/Trigger.js';
|
|
14
|
+
import { Workspace } from '../Workspace/Workspace.js';
|
|
15
|
+
import { WorkspaceMember } from '../Workspace/WorkspaceMember.js';
|
|
16
16
|
export declare class SearchResult {
|
|
17
17
|
type: EntityType;
|
|
18
18
|
label: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Workspace } from '../Workspace/Workspace.js';
|
|
2
|
-
import { Project } from '../Project/Project.js';
|
|
3
|
-
import { ProjectEnvironment } from '../Project/ProjectEnvironment.js';
|
|
4
|
-
import { Flow } from '../Flow/Flow.js';
|
|
5
|
-
import { FlowRun } from '../Flow/FlowRun.js';
|
|
6
|
-
import { Channel } from '../Messaging/Channel/Channel.js';
|
|
7
1
|
import { Adapter } from '../Adapter/Adapter.js';
|
|
8
2
|
import { AdapterConnection } from '../Adapter/AdapterConnection.js';
|
|
3
|
+
import { CodeSource } from '../Deployment/CodeSource.js';
|
|
4
|
+
import { CodeSourceAccount } from '../Deployment/CodeSourceAccount.js';
|
|
9
5
|
import { EntityType } from '../EntityType.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { Flow } from '../Flow/Flow.js';
|
|
7
|
+
import { FlowRun } from '../Flow/FlowRun.js';
|
|
8
|
+
import { Channel } from '../Messaging/Channel/Channel.js';
|
|
12
9
|
import { Subscriber } from '../Messaging/Subscriber.js';
|
|
13
|
-
import { CodeSourceAccount } from '../Deployment/CodeSourceAccount.js';
|
|
14
|
-
import { CodeSource } from '../Deployment/CodeSource.js';
|
|
15
10
|
import { CodeDeploy } from '../Project/CodeDeploy.js';
|
|
11
|
+
import { Project } from '../Project/Project.js';
|
|
12
|
+
import { ProjectEnvironment } from '../Project/ProjectEnvironment.js';
|
|
13
|
+
import { Trigger } from '../Trigger/Trigger.js';
|
|
14
|
+
import { Workspace } from '../Workspace/Workspace.js';
|
|
15
|
+
import { WorkspaceMember } from '../Workspace/WorkspaceMember.js';
|
|
16
16
|
export class SearchResult {
|
|
17
17
|
type;
|
|
18
18
|
label;
|
|
@@ -82,6 +82,10 @@ export class SearchResult {
|
|
|
82
82
|
// TODO: implement
|
|
83
83
|
searchResult.entity = rawEntity;
|
|
84
84
|
break;
|
|
85
|
+
case EntityType.RunnerPool:
|
|
86
|
+
// TODO: implement
|
|
87
|
+
searchResult.entity = rawEntity;
|
|
88
|
+
break;
|
|
85
89
|
default:
|
|
86
90
|
throw new Error('Unknown search result type "' + searchResult.type + '"');
|
|
87
91
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.46.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.46.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.1",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,24 +49,24 @@
|
|
|
49
49
|
"registry": "https://registry.npmjs.org"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"axios": "^1.13.
|
|
52
|
+
"axios": "^1.13.6",
|
|
53
53
|
"axios-oauth-client": "^2.2.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^30.0.0",
|
|
57
|
-
"@types/node": "^24.10.
|
|
57
|
+
"@types/node": "^24.10.15",
|
|
58
58
|
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
59
59
|
"@typescript-eslint/parser": "^8.1.0",
|
|
60
|
-
"dotenv": "^17.
|
|
61
|
-
"eslint": "^9.39.
|
|
62
|
-
"eslint-config-attlaz-base": "^1.5.
|
|
60
|
+
"dotenv": "^17.3.1",
|
|
61
|
+
"eslint": "^9.39.3",
|
|
62
|
+
"eslint-config-attlaz-base": "^1.5.2",
|
|
63
63
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
64
64
|
"eslint-plugin-import": "^2.32.0",
|
|
65
65
|
"eslint-plugin-jsdoc": "^51.4.1",
|
|
66
66
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
67
67
|
"eslint-plugin-promise": "^7.2.1",
|
|
68
68
|
"jest": "^30.2.0",
|
|
69
|
-
"rimraf": "^6.1.
|
|
69
|
+
"rimraf": "^6.1.3",
|
|
70
70
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
71
71
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
72
72
|
"rollup-plugin-typescript": "^1.0.1",
|