attlaz-client 1.21.12 → 1.21.14
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/DataValueCollection.d.ts +1 -1
- package/dist/Model/DataValueCollection.js +1 -1
- package/dist/Model/EntityType.d.ts +8 -1
- package/dist/Model/EntityType.js +7 -0
- package/dist/Model/Messaging/Channel/Channel.d.ts +3 -3
- package/dist/Model/Messaging/Channel/Channel.js +4 -4
- package/dist/Model/Search/SearchResult.d.ts +4 -1
- package/dist/Model/Search/SearchResult.js +24 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare class DataValueCollection extends JsonSerializable implements Ite
|
|
|
6
6
|
static fromObject(rawValues: {
|
|
7
7
|
key: string;
|
|
8
8
|
value: DataValueValue;
|
|
9
|
-
}[]): DataValueCollection;
|
|
9
|
+
}[] | null): DataValueCollection;
|
|
10
10
|
set(key: string, value: DataValueValue): void;
|
|
11
11
|
has(key: string): boolean;
|
|
12
12
|
get(key: string): DataValueValue | null;
|
|
@@ -7,7 +7,7 @@ export class DataValueCollection extends JsonSerializable {
|
|
|
7
7
|
return this._values.length;
|
|
8
8
|
}
|
|
9
9
|
static fromObject(rawValues) {
|
|
10
|
-
if (
|
|
10
|
+
if (rawValues === null || rawValues === undefined) {
|
|
11
11
|
return new DataValueCollection();
|
|
12
12
|
}
|
|
13
13
|
if (!Utils.isIterable(rawValues)) {
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
export declare enum EntityType {
|
|
2
|
+
Organisation = "organisation",
|
|
2
3
|
Workspace = "workspace",
|
|
3
4
|
Project = "project",
|
|
4
5
|
ProjectEnvironment = "project-environment",
|
|
5
6
|
Flow = "flow",
|
|
6
7
|
FlowRun = "flow-run",
|
|
7
8
|
User = "user",
|
|
9
|
+
UserAuthProvider = "user-auth-provider",
|
|
8
10
|
WorkspaceMember = "workspace-member",
|
|
9
11
|
Adapter = "adapter",
|
|
10
12
|
AdapterConnection = "adapter-connection",
|
|
11
13
|
Trigger = "trigger",
|
|
12
14
|
Channel = "channel",
|
|
13
|
-
ChannelSubscriber = "channel-subscriber"
|
|
15
|
+
ChannelSubscriber = "channel-subscriber",
|
|
16
|
+
CodeSourceAccount = "code-source-account",
|
|
17
|
+
CodeSource = "code-source",
|
|
18
|
+
CodeSourceDeploy = "code-source-deploy",
|
|
19
|
+
StorageBucket = "storage-bucket",
|
|
20
|
+
LogStream = "log-stream"
|
|
14
21
|
}
|
|
15
22
|
export declare namespace EntityType {
|
|
16
23
|
const fromString: (input: string) => EntityType;
|
package/dist/Model/EntityType.js
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { Utils } from '../Utils.js';
|
|
2
2
|
export var EntityType;
|
|
3
3
|
(function (EntityType) {
|
|
4
|
+
EntityType["Organisation"] = "organisation";
|
|
4
5
|
EntityType["Workspace"] = "workspace";
|
|
5
6
|
EntityType["Project"] = "project";
|
|
6
7
|
EntityType["ProjectEnvironment"] = "project-environment";
|
|
7
8
|
EntityType["Flow"] = "flow";
|
|
8
9
|
EntityType["FlowRun"] = "flow-run";
|
|
9
10
|
EntityType["User"] = "user";
|
|
11
|
+
EntityType["UserAuthProvider"] = "user-auth-provider";
|
|
10
12
|
EntityType["WorkspaceMember"] = "workspace-member";
|
|
11
13
|
EntityType["Adapter"] = "adapter";
|
|
12
14
|
EntityType["AdapterConnection"] = "adapter-connection";
|
|
13
15
|
EntityType["Trigger"] = "trigger";
|
|
14
16
|
EntityType["Channel"] = "channel";
|
|
15
17
|
EntityType["ChannelSubscriber"] = "channel-subscriber";
|
|
18
|
+
EntityType["CodeSourceAccount"] = "code-source-account";
|
|
19
|
+
EntityType["CodeSource"] = "code-source";
|
|
20
|
+
EntityType["CodeSourceDeploy"] = "code-source-deploy";
|
|
21
|
+
EntityType["StorageBucket"] = "storage-bucket";
|
|
22
|
+
EntityType["LogStream"] = "log-stream";
|
|
16
23
|
})(EntityType || (EntityType = {}));
|
|
17
24
|
(function (EntityType) {
|
|
18
25
|
EntityType.fromString = (input) => {
|
|
@@ -5,13 +5,13 @@ import { ChannelType } from './ChannelType.js';
|
|
|
5
5
|
export declare class Channel extends MetaDataAware implements StateAware {
|
|
6
6
|
id: string;
|
|
7
7
|
ownerId: string;
|
|
8
|
-
|
|
8
|
+
name: string;
|
|
9
9
|
type: ChannelType;
|
|
10
10
|
data: any;
|
|
11
11
|
state: State;
|
|
12
12
|
workspaces: string[];
|
|
13
13
|
isPrivate: boolean;
|
|
14
14
|
singleUse: boolean;
|
|
15
|
-
constructor(id: string, ownerId: string,
|
|
16
|
-
static parse(rawChannel:
|
|
15
|
+
constructor(id: string, ownerId: string, name: string, type: ChannelType, data: any);
|
|
16
|
+
static parse(rawChannel: Record<string, unknown>): Channel;
|
|
17
17
|
}
|
|
@@ -6,24 +6,24 @@ import { ChannelType } from './ChannelType.js';
|
|
|
6
6
|
export class Channel extends MetaDataAware {
|
|
7
7
|
id;
|
|
8
8
|
ownerId;
|
|
9
|
-
|
|
9
|
+
name;
|
|
10
10
|
type;
|
|
11
11
|
data;
|
|
12
12
|
state = State.Active;
|
|
13
13
|
workspaces = [];
|
|
14
14
|
isPrivate = false;
|
|
15
15
|
singleUse = false;
|
|
16
|
-
constructor(id, ownerId,
|
|
16
|
+
constructor(id, ownerId, name, type, data) {
|
|
17
17
|
super();
|
|
18
18
|
this.id = id;
|
|
19
19
|
this.ownerId = ownerId;
|
|
20
|
-
this.
|
|
20
|
+
this.name = name;
|
|
21
21
|
this.type = type;
|
|
22
22
|
this.data = data;
|
|
23
23
|
}
|
|
24
24
|
static parse(rawChannel) {
|
|
25
25
|
const type = ChannelType.fromString(rawChannel.type);
|
|
26
|
-
const channel = new Channel(rawChannel.id, rawChannel.owner, rawChannel.
|
|
26
|
+
const channel = new Channel(rawChannel.id, rawChannel.owner, rawChannel.name, type, rawChannel.data);
|
|
27
27
|
channel.state = State.fromString(rawChannel.state);
|
|
28
28
|
channel.isPrivate = Utils.isTrue(rawChannel.is_private);
|
|
29
29
|
channel.singleUse = Utils.isTrue(rawChannel.single_use);
|
|
@@ -10,11 +10,14 @@ import { EntityType } from '../EntityType.js';
|
|
|
10
10
|
import { WorkspaceMember } from '../Workspace/WorkspaceMember.js';
|
|
11
11
|
import { Trigger } from '../Trigger/Trigger.js';
|
|
12
12
|
import { Subscriber } from '../Messaging/Subscriber.js';
|
|
13
|
+
import { CodeSourceAccount } from '../Deployment/CodeSourceAccount.js';
|
|
14
|
+
import { CodeSource } from '../Deployment/CodeSource.js';
|
|
15
|
+
import { CodeDeploy } from '../Project/CodeDeploy.js';
|
|
13
16
|
export declare class SearchResult {
|
|
14
17
|
type: EntityType;
|
|
15
18
|
label: string;
|
|
16
19
|
description: string;
|
|
17
|
-
entity: Workspace | WorkspaceMember | Project | ProjectEnvironment | Flow | FlowRun | Trigger | Channel | Subscriber | Adapter | AdapterConnection;
|
|
20
|
+
entity: Workspace | WorkspaceMember | Project | ProjectEnvironment | Flow | FlowRun | Trigger | Channel | Subscriber | Adapter | AdapterConnection | CodeSourceAccount | CodeSource | CodeDeploy;
|
|
18
21
|
score: number;
|
|
19
22
|
static parse(rawResult: Record<string, unknown>): SearchResult;
|
|
20
23
|
}
|
|
@@ -10,6 +10,9 @@ import { EntityType } from '../EntityType.js';
|
|
|
10
10
|
import { WorkspaceMember } from '../Workspace/WorkspaceMember.js';
|
|
11
11
|
import { Trigger } from '../Trigger/Trigger.js';
|
|
12
12
|
import { Subscriber } from '../Messaging/Subscriber.js';
|
|
13
|
+
import { CodeSourceAccount } from '../Deployment/CodeSourceAccount.js';
|
|
14
|
+
import { CodeSource } from '../Deployment/CodeSource.js';
|
|
15
|
+
import { CodeDeploy } from '../Project/CodeDeploy.js';
|
|
13
16
|
export class SearchResult {
|
|
14
17
|
type;
|
|
15
18
|
label;
|
|
@@ -25,6 +28,10 @@ export class SearchResult {
|
|
|
25
28
|
searchResult.score = rawResult.score;
|
|
26
29
|
const rawEntity = rawResult.entity;
|
|
27
30
|
switch (searchResult.type) {
|
|
31
|
+
case EntityType.Organisation:
|
|
32
|
+
// TODO: implement
|
|
33
|
+
searchResult.entity = rawEntity;
|
|
34
|
+
break;
|
|
28
35
|
case EntityType.Workspace:
|
|
29
36
|
searchResult.entity = Workspace.parse(rawEntity);
|
|
30
37
|
break;
|
|
@@ -58,6 +65,23 @@ export class SearchResult {
|
|
|
58
65
|
case EntityType.Trigger:
|
|
59
66
|
searchResult.entity = Trigger.parse(rawEntity);
|
|
60
67
|
break;
|
|
68
|
+
case EntityType.CodeSourceAccount:
|
|
69
|
+
searchResult.entity = CodeSourceAccount.parse(rawEntity);
|
|
70
|
+
break;
|
|
71
|
+
case EntityType.CodeSource:
|
|
72
|
+
searchResult.entity = CodeSource.parse(rawEntity);
|
|
73
|
+
break;
|
|
74
|
+
case EntityType.CodeSourceDeploy:
|
|
75
|
+
searchResult.entity = CodeDeploy.parse(rawEntity);
|
|
76
|
+
break;
|
|
77
|
+
case EntityType.StorageBucket:
|
|
78
|
+
// TODO: implement
|
|
79
|
+
searchResult.entity = rawEntity;
|
|
80
|
+
break;
|
|
81
|
+
case EntityType.LogStream:
|
|
82
|
+
// TODO: implement
|
|
83
|
+
searchResult.entity = rawEntity;
|
|
84
|
+
break;
|
|
61
85
|
default:
|
|
62
86
|
throw new Error('Unknown search result type "' + searchResult.type + '"');
|
|
63
87
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.21.
|
|
1
|
+
export declare const VERSION = "1.21.13";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.21.
|
|
1
|
+
export const VERSION = "1.21.13";
|