@morgan-stanley/composeui-fdc3 0.1.0-alpha.5
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/LICENSE +201 -0
- package/README.md +6 -0
- package/jest.config.ts +23 -0
- package/package.json +49 -0
- package/rollup.config.js +16 -0
- package/src/ComposeUIChannel.spec.ts +242 -0
- package/src/ComposeUIContextListener.spec.ts +109 -0
- package/src/ComposeUIDesktopAgent.spec.ts +197 -0
- package/src/ComposeUIDesktopAgent.ts +252 -0
- package/src/ComposeUIIntentHandling.spec.ts +369 -0
- package/src/ComposeUIMessageRouterChannelFactory.spec.ts +200 -0
- package/src/ComposeUIMessageRouterMetadataClient.spec.ts +240 -0
- package/src/ComposeUIMessageRouterOpenClient.spec.ts +239 -0
- package/src/index.ts +66 -0
- package/src/infrastructure/ChannelFactory.ts +25 -0
- package/src/infrastructure/ChannelItem.ts +20 -0
- package/src/infrastructure/ChannelType.ts +14 -0
- package/src/infrastructure/ComposeUIChannel.ts +87 -0
- package/src/infrastructure/ComposeUIContextListener.ts +154 -0
- package/src/infrastructure/ComposeUIErrors.ts +21 -0
- package/src/infrastructure/ComposeUIIntentListener.ts +105 -0
- package/src/infrastructure/ComposeUIIntentResolution.ts +58 -0
- package/src/infrastructure/ComposeUIPrivateChannel.ts +197 -0
- package/src/infrastructure/ComposeUITopic.ts +155 -0
- package/src/infrastructure/IntentsClient.ts +22 -0
- package/src/infrastructure/MessageRouterChannelFactory.ts +182 -0
- package/src/infrastructure/MessageRouterIntentsClient.ts +125 -0
- package/src/infrastructure/MessageRouterMetadataClient.ts +75 -0
- package/src/infrastructure/MessageRouterOpenClient.ts +106 -0
- package/src/infrastructure/MetadataClient.ts +19 -0
- package/src/infrastructure/OpenAppIdentifier.ts +18 -0
- package/src/infrastructure/OpenClient.ts +18 -0
- package/src/infrastructure/PrivateChannelContextListenerEventListener.ts +45 -0
- package/src/infrastructure/PrivateChannelDisconnectEventListener.ts +45 -0
- package/src/infrastructure/messages/Fdc3AddContextListenerRequest.ts +22 -0
- package/src/infrastructure/messages/Fdc3AddContextListenerResponse.ts +17 -0
- package/src/infrastructure/messages/Fdc3CreateAppChannelRequest.ts +17 -0
- package/src/infrastructure/messages/Fdc3CreateAppChannelResponse.ts +17 -0
- package/src/infrastructure/messages/Fdc3CreatePrivateChannelRequest.ts +16 -0
- package/src/infrastructure/messages/Fdc3CreatePrivateChannelResponse.ts +17 -0
- package/src/infrastructure/messages/Fdc3FindChannelRequest.ts +24 -0
- package/src/infrastructure/messages/Fdc3FindChannelResponse.ts +17 -0
- package/src/infrastructure/messages/Fdc3FindInstancesRequest.ts +17 -0
- package/src/infrastructure/messages/Fdc3FindInstancesResponse.ts +18 -0
- package/src/infrastructure/messages/Fdc3FindIntentRequest.ts +24 -0
- package/src/infrastructure/messages/Fdc3FindIntentResponse.ts +19 -0
- package/src/infrastructure/messages/Fdc3FindIntentsByContextRequest.ts +23 -0
- package/src/infrastructure/messages/Fdc3FindIntentsByContextResponse.ts +19 -0
- package/src/infrastructure/messages/Fdc3GetAppMetadataRequest.ts +17 -0
- package/src/infrastructure/messages/Fdc3GetAppMetadataResponse.ts +18 -0
- package/src/infrastructure/messages/Fdc3GetCurrentContextRequest.ts +18 -0
- package/src/infrastructure/messages/Fdc3GetInfoRequest.ts +17 -0
- package/src/infrastructure/messages/Fdc3GetInfoResponse.ts +18 -0
- package/src/infrastructure/messages/Fdc3GetIntentResultRequest.ts +23 -0
- package/src/infrastructure/messages/Fdc3GetIntentResultResponse.ts +23 -0
- package/src/infrastructure/messages/Fdc3GetOpenedAppContextRequest.ts +15 -0
- package/src/infrastructure/messages/Fdc3GetOpenedAppContextResponse.ts +18 -0
- package/src/infrastructure/messages/Fdc3GetUserChannelsRequest.ts +15 -0
- package/src/infrastructure/messages/Fdc3GetUserChannelsResponse.ts +18 -0
- package/src/infrastructure/messages/Fdc3IntentListenerRequest.ts +22 -0
- package/src/infrastructure/messages/Fdc3IntentListenerResponse.ts +17 -0
- package/src/infrastructure/messages/Fdc3JoinUserChannelRequest.ts +15 -0
- package/src/infrastructure/messages/Fdc3JoinUserChannelResponse.ts +20 -0
- package/src/infrastructure/messages/Fdc3OpenRequest.ts +21 -0
- package/src/infrastructure/messages/Fdc3OpenResponse.ts +18 -0
- package/src/infrastructure/messages/Fdc3PrivateChannelInternalEvent.ts +26 -0
- package/src/infrastructure/messages/Fdc3RaiseIntentForContextRequest.ts +20 -0
- package/src/infrastructure/messages/Fdc3RaiseIntentRequest.ts +24 -0
- package/src/infrastructure/messages/Fdc3RaiseIntentResolutionRequest.ts +20 -0
- package/src/infrastructure/messages/Fdc3RaiseIntentResponse.ts +21 -0
- package/src/infrastructure/messages/Fdc3RemoveContextListenerRequest.ts +19 -0
- package/src/infrastructure/messages/Fdc3RemoveContextListenerResponse.ts +17 -0
- package/src/infrastructure/messages/Fdc3StoreIntentResultRequest.ts +29 -0
- package/src/infrastructure/messages/Fdc3StoreIntentResultResponse.ts +17 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AppIdentifier, AppMetadata, ImplementationMetadata } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export interface MetadataClient {
|
|
16
|
+
getInfo(): Promise<ImplementationMetadata>;
|
|
17
|
+
findInstances(app: AppIdentifier): Promise<Array<AppIdentifier>>;
|
|
18
|
+
getAppMetadata(app: AppIdentifier): Promise<AppMetadata>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* This type stores the app's context id (given by the backend) which was opened via the `fdc3.open()` call.
|
|
15
|
+
*/
|
|
16
|
+
export interface OpenAppIdentifier {
|
|
17
|
+
openedAppContextId?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AppIdentifier, Context } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export interface OpenClient {
|
|
16
|
+
open(app?: string | AppIdentifier, context?: Context): Promise<AppIdentifier>;
|
|
17
|
+
getOpenedAppContext(): Promise<Context>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { Listener } from "@finos/fdc3";
|
|
15
|
+
|
|
16
|
+
export class PrivateChannelContextListenerEventListener implements Listener {
|
|
17
|
+
|
|
18
|
+
private readonly handler: ((contextType?: string) => void);
|
|
19
|
+
private readonly unsubscribeCallback: (x: PrivateChannelContextListenerEventListener) => void;
|
|
20
|
+
private subscribed: boolean;
|
|
21
|
+
|
|
22
|
+
constructor(handler: ((contextType?: string) => void), onUnsubscribe: (x: PrivateChannelContextListenerEventListener) => void) {
|
|
23
|
+
this.handler = handler;
|
|
24
|
+
this.subscribed = true;
|
|
25
|
+
this.unsubscribeCallback = onUnsubscribe;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public execute(contextType?: string) {
|
|
29
|
+
if (!this.subscribed) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.handler(contextType);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public unsubscribe(): void {
|
|
36
|
+
this.unsubscribeInternal(true);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public unsubscribeInternal(doCallback: boolean): void {
|
|
40
|
+
this.subscribed = false;
|
|
41
|
+
if (doCallback) {
|
|
42
|
+
this.unsubscribeCallback(this);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { Listener } from "@finos/fdc3";
|
|
15
|
+
|
|
16
|
+
export class PrivateChannelDisconnectEventListener implements Listener {
|
|
17
|
+
|
|
18
|
+
private readonly handler: (() => void);
|
|
19
|
+
private readonly unsubscribeCallback: (x: PrivateChannelDisconnectEventListener) => void;
|
|
20
|
+
private subscribed: boolean;
|
|
21
|
+
|
|
22
|
+
constructor(handler: (() => void), onUnsubscribe: (x:PrivateChannelDisconnectEventListener) => void) {
|
|
23
|
+
this.handler = handler;
|
|
24
|
+
this.subscribed = true;
|
|
25
|
+
this.unsubscribeCallback = onUnsubscribe;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public execute() {
|
|
29
|
+
if (!this.subscribed) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.handler();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public unsubscribe(): void {
|
|
36
|
+
this.unsubscribeInternal(true);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public unsubscribeInternal(doCallback: boolean): void {
|
|
40
|
+
this.subscribed = false;
|
|
41
|
+
if (doCallback) {
|
|
42
|
+
this.unsubscribeCallback(this);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { ChannelType } from "../ChannelType";
|
|
14
|
+
|
|
15
|
+
export class Fdc3AddContextListenerRequest {
|
|
16
|
+
constructor(
|
|
17
|
+
public readonly fdc3InstanceId: string,
|
|
18
|
+
public readonly contextType?: string | null,
|
|
19
|
+
public readonly channelId?: string,
|
|
20
|
+
public readonly channelType?: ChannelType
|
|
21
|
+
) {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export interface Fdc3AddContextListenerResponse {
|
|
14
|
+
id?: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
success: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export class Fdc3CreateAppChannelRequest {
|
|
15
|
+
constructor(public readonly channelId: string, public readonly instanceId: string) {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export class Fdc3CreateAppChannelResponse {
|
|
15
|
+
public error?: string;
|
|
16
|
+
public success: boolean = false;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export class Fdc3CreatePrivateChannelRequest {
|
|
15
|
+
constructor(public readonly instanceId: string) {}
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export interface Fdc3CreatePrivateChannelResponse {
|
|
15
|
+
error?: string;
|
|
16
|
+
channelId?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { ChannelType } from "../ChannelType";
|
|
15
|
+
|
|
16
|
+
export class Fdc3FindChannelRequest {
|
|
17
|
+
public readonly channelId: string;
|
|
18
|
+
public readonly channelType: ChannelType;
|
|
19
|
+
|
|
20
|
+
constructor(channelId: string, channelType: ChannelType) {
|
|
21
|
+
this.channelId = channelId;
|
|
22
|
+
this.channelType = channelType;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export interface Fdc3FindChannelResponse {
|
|
15
|
+
error?: string;
|
|
16
|
+
found: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AppIdentifier } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export class Fdc3FindInstancesRequest {
|
|
16
|
+
constructor(public readonly fdc3InstanceId: string, public readonly appIdentifier: AppIdentifier) { }
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AppIdentifier } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export interface Fdc3FindInstancesResponse {
|
|
16
|
+
error?: string;
|
|
17
|
+
instances?: AppIdentifier[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { Context, Channel } from "@finos/fdc3";
|
|
15
|
+
|
|
16
|
+
export class Fdc3FindIntentRequest {
|
|
17
|
+
constructor(
|
|
18
|
+
public readonly fdc3InstanceId: string,
|
|
19
|
+
public readonly intent: string,
|
|
20
|
+
public readonly context?: Context,
|
|
21
|
+
public readonly resultType?: string) {
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { AppIntent } from "@finos/fdc3";
|
|
15
|
+
|
|
16
|
+
export interface Fdc3FindIntentResponse {
|
|
17
|
+
appIntent?: AppIntent;
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { Context } from "@finos/fdc3";
|
|
15
|
+
|
|
16
|
+
export class Fdc3FindIntentsByContextRequest {
|
|
17
|
+
constructor(
|
|
18
|
+
public readonly fdc3InstanceId: string,
|
|
19
|
+
public readonly context?: Context,
|
|
20
|
+
public readonly resultType?: string) {
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { AppIntent } from "@finos/fdc3";
|
|
15
|
+
|
|
16
|
+
export interface Fdc3FindIntentsByContextResponse {
|
|
17
|
+
appIntents?: AppIntent[];
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AppIdentifier } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export class Fdc3GetAppMetadataRequest {
|
|
16
|
+
constructor(public readonly fdc3InstanceId: string, public readonly appIdentifier: AppIdentifier) { }
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AppMetadata } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export interface Fdc3GetAppMetadataResponse {
|
|
16
|
+
error?: string;
|
|
17
|
+
appMetadata?: AppMetadata;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export class Fdc3GetCurrentContextRequest {
|
|
15
|
+
constructor(public readonly contextType?: string) {
|
|
16
|
+
this.contextType = contextType;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AppIdentifier } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export class Fdc3GetInfoRequest {
|
|
16
|
+
constructor(public readonly appIdentifier: AppIdentifier) {}
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { ImplementationMetadata } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export interface Fdc3GetInfoResponse {
|
|
16
|
+
implementationMetadata?: ImplementationMetadata;
|
|
17
|
+
error?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { AppIdentifier } from "@finos/fdc3";
|
|
15
|
+
|
|
16
|
+
export class Fdc3GetIntentResultRequest {
|
|
17
|
+
constructor(
|
|
18
|
+
public readonly messageId: string,
|
|
19
|
+
public readonly intent: string,
|
|
20
|
+
public readonly targetAppIdentifier: AppIdentifier,
|
|
21
|
+
public readonly version?: string) {
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { Context } from "@finos/fdc3";
|
|
15
|
+
import { ChannelType } from "../ChannelType";
|
|
16
|
+
|
|
17
|
+
export class Fdc3GetIntentResultResponse {
|
|
18
|
+
public channelId?: string;
|
|
19
|
+
public channelType?: ChannelType;
|
|
20
|
+
public context?: Context;
|
|
21
|
+
public error?: string;
|
|
22
|
+
public voidResult: boolean = false;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export class Fdc3GetOpenedAppContextRequest {
|
|
14
|
+
constructor(public readonly contextId: string) {}
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { Context } from "@finos/fdc3";
|
|
14
|
+
|
|
15
|
+
export interface Fdc3GetOpenedAppContextResponse {
|
|
16
|
+
error?: string;
|
|
17
|
+
context?: Context;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Morgan Stanley makes this available to you under the Apache License,
|
|
3
|
+
* Version 2.0 (the "License"). You may obtain a copy of the License at
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
5
|
+
* See the NOTICE file distributed with this work for additional information
|
|
6
|
+
* regarding copyright ownership. Unless required by applicable law or agreed
|
|
7
|
+
* to in writing, software distributed under the License is distributed on an
|
|
8
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
9
|
+
* or implied. See the License for the specific language governing permissions
|
|
10
|
+
* and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export class Fdc3GetUserChannelsRequest {
|
|
14
|
+
constructor(public readonly instanceId: string) {}
|
|
15
|
+
}
|