@genesislcap/foundation-fdc3 14.170.0-genxgit.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/MODULE_FEDERATION.md +11 -0
- package/README.md +33 -0
- package/dist/dts/fdc3.d.ts +117 -0
- package/dist/dts/fdc3.d.ts.map +1 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/utils.d.ts +6 -0
- package/dist/dts/utils.d.ts.map +1 -0
- package/dist/esm/fdc3.js +79 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/utils.js +6 -0
- package/dist/foundation-fdc3.api.json +356 -0
- package/dist/foundation-fdc3.d.ts +135 -0
- package/docs/.gitattributes +2 -0
- package/docs/api/foundation-fdc3.fdc3appintent.md +14 -0
- package/docs/api/foundation-fdc3.fdc3channel.md +14 -0
- package/docs/api/foundation-fdc3.fdc3context.md +14 -0
- package/docs/api/foundation-fdc3.fdc3contexthandler.md +12 -0
- package/docs/api/foundation-fdc3.fdc3intentresolution.md +14 -0
- package/docs/api/foundation-fdc3.fdc3intents.md +12 -0
- package/docs/api/foundation-fdc3.md +22 -0
- package/docs/api/index.md +12 -0
- package/docs/api-report.md +68 -0
- package/license.txt +46 -0
- package/package.json +80 -0
- package/test/README.md +3 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Genesis Foundation FDC3
|
|
2
|
+
|
|
3
|
+
## [Module Federation](https://webpack.js.org/concepts/module-federation)
|
|
4
|
+
|
|
5
|
+
This package is federated locally during development by running the webpack part of the build.
|
|
6
|
+
|
|
7
|
+
| Remote Name | Port |
|
|
8
|
+
|-----------------| ----- |
|
|
9
|
+
| foundationFdc3 | 4000 |
|
|
10
|
+
|
|
11
|
+
Default production enablement remains dependent on [pending architectural decisions](https://bit.ly/3LLHUhK).
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Genesis Foundation FDC3
|
|
2
|
+
|
|
3
|
+
[](https://lerna.js.org/)
|
|
4
|
+
[](https://www.typescriptlang.org/)
|
|
5
|
+
|
|
6
|
+
`foundation-fdc3` provides a collection of FDC3 services and utilities. See the API docs linked below for more information.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
To enable this module in your application, follow the steps below.
|
|
11
|
+
|
|
12
|
+
1. Add `@genesislcap/foundation-fdc3` as a dependency in your `package.json` file. Whenever you change the dependencies of your project, ensure you run the `$ npm run bootstrap` command again. You can find more information in the [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) page.
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
...
|
|
17
|
+
"dependencies": {
|
|
18
|
+
...
|
|
19
|
+
"@genesislcap/foundation-fdc3": "latest"
|
|
20
|
+
...
|
|
21
|
+
},
|
|
22
|
+
...
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## [API Docs](./docs/api/index.md)
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
|
31
|
+
|
|
32
|
+
### Licensed components
|
|
33
|
+
Genesis low-code platform
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* See https://fdc3.finos.org/docs/fdc3-intro, and https://github.com/finos/FDC3/tree/master/src/api
|
|
3
|
+
*/
|
|
4
|
+
import { AppIntent, Channel, Context, ContextHandler, Intents, IntentResolution } from '@finos/fdc3';
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type FDC3Intents = Intents;
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type FDC3ContextHandler = ContextHandler;
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export interface FDC3AppIntent extends AppIntent {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export interface FDC3Context extends Context {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface FDC3IntentResolution extends IntentResolution {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface FDC3Channel extends Channel {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The FDC3 API interface.
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
interface FDC3 {
|
|
38
|
+
/**
|
|
39
|
+
* Whether the FDC3 API is ready.
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
isReady: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Adds intent listeners for the specified intents.
|
|
45
|
+
* @public
|
|
46
|
+
* @param listeners - The intent listeners to add.
|
|
47
|
+
*/
|
|
48
|
+
addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
|
|
49
|
+
/**
|
|
50
|
+
* Finds an app that supports the specified intent.
|
|
51
|
+
* @public
|
|
52
|
+
* @param intent - The intent to find an app for.
|
|
53
|
+
* @param context - The context to use.
|
|
54
|
+
* @returns A promise that resolves with the app and its metadata.
|
|
55
|
+
*/
|
|
56
|
+
findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
|
|
57
|
+
/**
|
|
58
|
+
* Finds all the intents supported by the specified context.
|
|
59
|
+
* @public
|
|
60
|
+
* @param context - The context to use.
|
|
61
|
+
* @returns A promise that resolves with an array of all matching intents and their metadata.
|
|
62
|
+
*/
|
|
63
|
+
findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
|
|
64
|
+
/**
|
|
65
|
+
* Raises the specified intent with the specified context.
|
|
66
|
+
* @public
|
|
67
|
+
* @param context - The context to use.
|
|
68
|
+
* @param intent - The intent to raise.
|
|
69
|
+
* @returns A promise that resolves with the result of the intent resolution.
|
|
70
|
+
*/
|
|
71
|
+
raiseIntent(context: FDC3Context, intent?: FDC3Intents): Promise<FDC3IntentResolution>;
|
|
72
|
+
/**
|
|
73
|
+
* Joins the specified channel.
|
|
74
|
+
* @public
|
|
75
|
+
* @param channelId - The ID of the channel to join.
|
|
76
|
+
* @returns A promise that resolves when the join is successful.
|
|
77
|
+
*/
|
|
78
|
+
joinChannel(channelId: string): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Gets or creates the specified channel.
|
|
81
|
+
* @public
|
|
82
|
+
* @param channelId - The ID of the channel to get or create.
|
|
83
|
+
* @returns A promise that resolves with the channel object.
|
|
84
|
+
*/
|
|
85
|
+
getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
|
|
86
|
+
/**
|
|
87
|
+
* Broadcasts the specified context on the specified channel.
|
|
88
|
+
* @public
|
|
89
|
+
* @param channelId - The ID of the channel to broadcast on.
|
|
90
|
+
* @param context - The context to broadcast.
|
|
91
|
+
* @returns A promise that resolves when the broadcast is successful.
|
|
92
|
+
*/
|
|
93
|
+
broadcastOnChannel(channelId: string, context: FDC3Context): Promise<void>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The FDC3 implementation.
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
export declare class DefaultFDC3 implements FDC3 {
|
|
100
|
+
isReady: boolean;
|
|
101
|
+
constructor();
|
|
102
|
+
private connect;
|
|
103
|
+
addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
|
|
104
|
+
findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
|
|
105
|
+
findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
|
|
106
|
+
raiseIntent(context: FDC3Context, intent?: FDC3Intents): Promise<FDC3IntentResolution>;
|
|
107
|
+
joinChannel(channelId: string): Promise<void>;
|
|
108
|
+
getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
|
|
109
|
+
broadcastOnChannel(channelId: string, context: FDC3Context): Promise<void>;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The DI token for the FDC3 interface.
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
export declare const FDC3: import("@microsoft/fast-foundation").InterfaceSymbol<FDC3>;
|
|
116
|
+
export {};
|
|
117
|
+
//# sourceMappingURL=fdc3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fdc3.d.ts","sourceRoot":"","sources":["../../src/fdc3.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,SAAS,EACT,OAAO,EACP,OAAO,EACP,cAAc,EAMd,OAAO,EACP,gBAAgB,EAKjB,MAAM,aAAa,CAAC;AAKrB;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,SAAS;CAAG;AAEnD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;CAAG;AAEjE;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,OAAO;CAAG;AAE/C;;;GAGG;AACH,UAAU,IAAI;IACZ;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,kBAAkB,CAAC,SAAS,EAAE,GAAG,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAE1E;;;;;;OAMG;IACH,UAAU,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAE/E;;;;;OAKG;IACH,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAErE;;;;;;OAMG;IACH,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEvF;;;;;OAKG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;;;;OAKG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE5D;;;;;;OAMG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5E;AAED;;;GAGG;AACH,qBAAa,WAAY,YAAW,IAAI;IAE/B,OAAO,UAAS;;YAMT,OAAO;IAWd,kBAAkB,CAAC,SAAS,EAAE,GAAG,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAAG,IAAI;IAOzE,UAAU,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAK9E,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAKpE,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC;IActF,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK7C,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAKrD,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAKxF;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,4DAA4D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.34.9"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,MAAM,iDAAkC,CAAC"}
|
package/dist/esm/fdc3.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
|
+
/**
|
|
3
|
+
* See https://fdc3.finos.org/docs/fdc3-intro, and https://github.com/finos/FDC3/tree/master/src/api
|
|
4
|
+
*/
|
|
5
|
+
import { addIntentListener, fdc3Ready, findIntent, findIntentsByContext, getOrCreateChannel, getInfo, joinChannel, raiseIntent, raiseIntentForContext, versionIsAtLeast, } from '@finos/fdc3';
|
|
6
|
+
import { observable } from '@microsoft/fast-element';
|
|
7
|
+
import { DI } from '@microsoft/fast-foundation';
|
|
8
|
+
import { logger } from './utils';
|
|
9
|
+
/**
|
|
10
|
+
* The FDC3 implementation.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export class DefaultFDC3 {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.isReady = false;
|
|
16
|
+
this.connect();
|
|
17
|
+
}
|
|
18
|
+
connect() {
|
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
try {
|
|
21
|
+
this.isReady = false;
|
|
22
|
+
yield fdc3Ready();
|
|
23
|
+
logger.debug('fdc3 connection success');
|
|
24
|
+
}
|
|
25
|
+
catch (err) {
|
|
26
|
+
logger.error('fdc3 connection error', err);
|
|
27
|
+
throw err;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
addIntentListeners(listeners) {
|
|
32
|
+
listeners.forEach((handler, intent) => {
|
|
33
|
+
const listener = addIntentListener(intent, handler);
|
|
34
|
+
logger.debug(`fdc3 addIntentListener for '${intent}', ${listener}`);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
findIntent(intent, context) {
|
|
38
|
+
logger.debug(`fdc3 findIntent '${intent}' '${context}'`);
|
|
39
|
+
return findIntent(intent, context);
|
|
40
|
+
}
|
|
41
|
+
findIntentsByContext(context) {
|
|
42
|
+
logger.debug(`fdc3 findIntentsByContext '${context}'`);
|
|
43
|
+
return findIntentsByContext(context);
|
|
44
|
+
}
|
|
45
|
+
raiseIntent(context, intent) {
|
|
46
|
+
if (getInfo && versionIsAtLeast(getInfo(), '1.2')) {
|
|
47
|
+
logger.debug(`fdc3 raiseIntentForContext '${context}'`);
|
|
48
|
+
return raiseIntentForContext(context);
|
|
49
|
+
}
|
|
50
|
+
if (intent) {
|
|
51
|
+
logger.debug(`fdc3 raiseIntent '${intent}' '${context}'`);
|
|
52
|
+
return raiseIntent(intent, context);
|
|
53
|
+
}
|
|
54
|
+
logger.error(`fdc3 unable to raiseIntent using context '${context}' and intent '${intent}'.`);
|
|
55
|
+
}
|
|
56
|
+
joinChannel(channelId) {
|
|
57
|
+
logger.debug(`fdc3 joinChannel '${channelId}'`);
|
|
58
|
+
return joinChannel(channelId);
|
|
59
|
+
}
|
|
60
|
+
getOrCreateChannel(channelId) {
|
|
61
|
+
logger.debug(`fdc3 getOrCreateChannel '${channelId}'`);
|
|
62
|
+
return getOrCreateChannel(channelId);
|
|
63
|
+
}
|
|
64
|
+
broadcastOnChannel(channelId, context) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const channel = yield this.getOrCreateChannel(channelId);
|
|
67
|
+
logger.debug(`fdc3 broadcast '${channelId}' '${context}'`);
|
|
68
|
+
channel.broadcast(context);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
__decorate([
|
|
73
|
+
observable
|
|
74
|
+
], DefaultFDC3.prototype, "isReady", void 0);
|
|
75
|
+
/**
|
|
76
|
+
* The DI token for the FDC3 interface.
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
export const FDC3 = DI.createInterface((x) => x.singleton(DefaultFDC3));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './fdc3';
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
+
"toolVersion": "7.34.9",
|
|
5
|
+
"schemaVersion": 1011,
|
|
6
|
+
"oldestForwardsCompatibleVersion": 1001,
|
|
7
|
+
"tsdocConfig": {
|
|
8
|
+
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
9
|
+
"noStandardTags": true,
|
|
10
|
+
"tagDefinitions": [
|
|
11
|
+
{
|
|
12
|
+
"tagName": "@alpha",
|
|
13
|
+
"syntaxKind": "modifier"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"tagName": "@beta",
|
|
17
|
+
"syntaxKind": "modifier"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"tagName": "@defaultValue",
|
|
21
|
+
"syntaxKind": "block"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"tagName": "@decorator",
|
|
25
|
+
"syntaxKind": "block",
|
|
26
|
+
"allowMultiple": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"tagName": "@deprecated",
|
|
30
|
+
"syntaxKind": "block"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"tagName": "@eventProperty",
|
|
34
|
+
"syntaxKind": "modifier"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"tagName": "@example",
|
|
38
|
+
"syntaxKind": "block",
|
|
39
|
+
"allowMultiple": true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"tagName": "@experimental",
|
|
43
|
+
"syntaxKind": "modifier"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"tagName": "@inheritDoc",
|
|
47
|
+
"syntaxKind": "inline"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"tagName": "@internal",
|
|
51
|
+
"syntaxKind": "modifier"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"tagName": "@label",
|
|
55
|
+
"syntaxKind": "inline"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"tagName": "@link",
|
|
59
|
+
"syntaxKind": "inline",
|
|
60
|
+
"allowMultiple": true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"tagName": "@override",
|
|
64
|
+
"syntaxKind": "modifier"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"tagName": "@packageDocumentation",
|
|
68
|
+
"syntaxKind": "modifier"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"tagName": "@param",
|
|
72
|
+
"syntaxKind": "block",
|
|
73
|
+
"allowMultiple": true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"tagName": "@privateRemarks",
|
|
77
|
+
"syntaxKind": "block"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"tagName": "@public",
|
|
81
|
+
"syntaxKind": "modifier"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"tagName": "@readonly",
|
|
85
|
+
"syntaxKind": "modifier"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"tagName": "@remarks",
|
|
89
|
+
"syntaxKind": "block"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"tagName": "@returns",
|
|
93
|
+
"syntaxKind": "block"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"tagName": "@sealed",
|
|
97
|
+
"syntaxKind": "modifier"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"tagName": "@see",
|
|
101
|
+
"syntaxKind": "block"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"tagName": "@throws",
|
|
105
|
+
"syntaxKind": "block",
|
|
106
|
+
"allowMultiple": true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"tagName": "@typeParam",
|
|
110
|
+
"syntaxKind": "block",
|
|
111
|
+
"allowMultiple": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"tagName": "@virtual",
|
|
115
|
+
"syntaxKind": "modifier"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"tagName": "@betaDocumentation",
|
|
119
|
+
"syntaxKind": "modifier"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"tagName": "@internalRemarks",
|
|
123
|
+
"syntaxKind": "block"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"tagName": "@preapproved",
|
|
127
|
+
"syntaxKind": "modifier"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"supportForTags": {
|
|
131
|
+
"@alpha": true,
|
|
132
|
+
"@beta": true,
|
|
133
|
+
"@defaultValue": true,
|
|
134
|
+
"@decorator": true,
|
|
135
|
+
"@deprecated": true,
|
|
136
|
+
"@eventProperty": true,
|
|
137
|
+
"@example": true,
|
|
138
|
+
"@experimental": true,
|
|
139
|
+
"@inheritDoc": true,
|
|
140
|
+
"@internal": true,
|
|
141
|
+
"@label": true,
|
|
142
|
+
"@link": true,
|
|
143
|
+
"@override": true,
|
|
144
|
+
"@packageDocumentation": true,
|
|
145
|
+
"@param": true,
|
|
146
|
+
"@privateRemarks": true,
|
|
147
|
+
"@public": true,
|
|
148
|
+
"@readonly": true,
|
|
149
|
+
"@remarks": true,
|
|
150
|
+
"@returns": true,
|
|
151
|
+
"@sealed": true,
|
|
152
|
+
"@see": true,
|
|
153
|
+
"@throws": true,
|
|
154
|
+
"@typeParam": true,
|
|
155
|
+
"@virtual": true,
|
|
156
|
+
"@betaDocumentation": true,
|
|
157
|
+
"@internalRemarks": true,
|
|
158
|
+
"@preapproved": true
|
|
159
|
+
},
|
|
160
|
+
"reportUnsupportedHtmlElements": false
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"kind": "Package",
|
|
164
|
+
"canonicalReference": "@genesislcap/foundation-fdc3!",
|
|
165
|
+
"docComment": "",
|
|
166
|
+
"name": "@genesislcap/foundation-fdc3",
|
|
167
|
+
"preserveMemberOrder": false,
|
|
168
|
+
"members": [
|
|
169
|
+
{
|
|
170
|
+
"kind": "EntryPoint",
|
|
171
|
+
"canonicalReference": "@genesislcap/foundation-fdc3!",
|
|
172
|
+
"name": "",
|
|
173
|
+
"preserveMemberOrder": false,
|
|
174
|
+
"members": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "Interface",
|
|
177
|
+
"canonicalReference": "@genesislcap/foundation-fdc3!FDC3AppIntent:interface",
|
|
178
|
+
"docComment": "/**\n * @public\n */\n",
|
|
179
|
+
"excerptTokens": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "Content",
|
|
182
|
+
"text": "export interface FDC3AppIntent extends "
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "Reference",
|
|
186
|
+
"text": "AppIntent",
|
|
187
|
+
"canonicalReference": "@finos/fdc3!AppIntent:interface"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "Content",
|
|
191
|
+
"text": " "
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"fileUrlPath": "src/fdc3.ts",
|
|
195
|
+
"releaseTag": "Public",
|
|
196
|
+
"name": "FDC3AppIntent",
|
|
197
|
+
"preserveMemberOrder": false,
|
|
198
|
+
"members": [],
|
|
199
|
+
"extendsTokenRanges": [
|
|
200
|
+
{
|
|
201
|
+
"startIndex": 1,
|
|
202
|
+
"endIndex": 2
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"kind": "Interface",
|
|
208
|
+
"canonicalReference": "@genesislcap/foundation-fdc3!FDC3Channel:interface",
|
|
209
|
+
"docComment": "/**\n * @public\n */\n",
|
|
210
|
+
"excerptTokens": [
|
|
211
|
+
{
|
|
212
|
+
"kind": "Content",
|
|
213
|
+
"text": "export interface FDC3Channel extends "
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "Reference",
|
|
217
|
+
"text": "Channel",
|
|
218
|
+
"canonicalReference": "@finos/fdc3!Channel:interface"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"kind": "Content",
|
|
222
|
+
"text": " "
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"fileUrlPath": "src/fdc3.ts",
|
|
226
|
+
"releaseTag": "Public",
|
|
227
|
+
"name": "FDC3Channel",
|
|
228
|
+
"preserveMemberOrder": false,
|
|
229
|
+
"members": [],
|
|
230
|
+
"extendsTokenRanges": [
|
|
231
|
+
{
|
|
232
|
+
"startIndex": 1,
|
|
233
|
+
"endIndex": 2
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"kind": "Interface",
|
|
239
|
+
"canonicalReference": "@genesislcap/foundation-fdc3!FDC3Context:interface",
|
|
240
|
+
"docComment": "/**\n * @public\n */\n",
|
|
241
|
+
"excerptTokens": [
|
|
242
|
+
{
|
|
243
|
+
"kind": "Content",
|
|
244
|
+
"text": "export interface FDC3Context extends "
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"kind": "Reference",
|
|
248
|
+
"text": "Context",
|
|
249
|
+
"canonicalReference": "@finos/fdc3!Context:interface"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"kind": "Content",
|
|
253
|
+
"text": " "
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"fileUrlPath": "src/fdc3.ts",
|
|
257
|
+
"releaseTag": "Public",
|
|
258
|
+
"name": "FDC3Context",
|
|
259
|
+
"preserveMemberOrder": false,
|
|
260
|
+
"members": [],
|
|
261
|
+
"extendsTokenRanges": [
|
|
262
|
+
{
|
|
263
|
+
"startIndex": 1,
|
|
264
|
+
"endIndex": 2
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"kind": "TypeAlias",
|
|
270
|
+
"canonicalReference": "@genesislcap/foundation-fdc3!FDC3ContextHandler:type",
|
|
271
|
+
"docComment": "/**\n * @public\n */\n",
|
|
272
|
+
"excerptTokens": [
|
|
273
|
+
{
|
|
274
|
+
"kind": "Content",
|
|
275
|
+
"text": "export type FDC3ContextHandler = "
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"kind": "Reference",
|
|
279
|
+
"text": "ContextHandler",
|
|
280
|
+
"canonicalReference": "@finos/fdc3!ContextHandler:type"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"kind": "Content",
|
|
284
|
+
"text": ";"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"fileUrlPath": "src/fdc3.ts",
|
|
288
|
+
"releaseTag": "Public",
|
|
289
|
+
"name": "FDC3ContextHandler",
|
|
290
|
+
"typeTokenRange": {
|
|
291
|
+
"startIndex": 1,
|
|
292
|
+
"endIndex": 2
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"kind": "Interface",
|
|
297
|
+
"canonicalReference": "@genesislcap/foundation-fdc3!FDC3IntentResolution:interface",
|
|
298
|
+
"docComment": "/**\n * @public\n */\n",
|
|
299
|
+
"excerptTokens": [
|
|
300
|
+
{
|
|
301
|
+
"kind": "Content",
|
|
302
|
+
"text": "export interface FDC3IntentResolution extends "
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"kind": "Reference",
|
|
306
|
+
"text": "IntentResolution",
|
|
307
|
+
"canonicalReference": "@finos/fdc3!IntentResolution:interface"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"kind": "Content",
|
|
311
|
+
"text": " "
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"fileUrlPath": "src/fdc3.ts",
|
|
315
|
+
"releaseTag": "Public",
|
|
316
|
+
"name": "FDC3IntentResolution",
|
|
317
|
+
"preserveMemberOrder": false,
|
|
318
|
+
"members": [],
|
|
319
|
+
"extendsTokenRanges": [
|
|
320
|
+
{
|
|
321
|
+
"startIndex": 1,
|
|
322
|
+
"endIndex": 2
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"kind": "TypeAlias",
|
|
328
|
+
"canonicalReference": "@genesislcap/foundation-fdc3!FDC3Intents:type",
|
|
329
|
+
"docComment": "/**\n * @public\n */\n",
|
|
330
|
+
"excerptTokens": [
|
|
331
|
+
{
|
|
332
|
+
"kind": "Content",
|
|
333
|
+
"text": "export type FDC3Intents = "
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"kind": "Reference",
|
|
337
|
+
"text": "Intents",
|
|
338
|
+
"canonicalReference": "@finos/fdc3!Intents:enum"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "Content",
|
|
342
|
+
"text": ";"
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"fileUrlPath": "src/fdc3.ts",
|
|
346
|
+
"releaseTag": "Public",
|
|
347
|
+
"name": "FDC3Intents",
|
|
348
|
+
"typeTokenRange": {
|
|
349
|
+
"startIndex": 1,
|
|
350
|
+
"endIndex": 2
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { AppIntent } from '@finos/fdc3';
|
|
2
|
+
import { Channel } from '@finos/fdc3';
|
|
3
|
+
import { Context } from '@finos/fdc3';
|
|
4
|
+
import { ContextHandler } from '@finos/fdc3';
|
|
5
|
+
import { IntentResolution } from '@finos/fdc3';
|
|
6
|
+
import { Intents } from '@finos/fdc3';
|
|
7
|
+
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The FDC3 implementation.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class DefaultFDC3 implements FDC3_2 {
|
|
14
|
+
isReady: boolean;
|
|
15
|
+
constructor();
|
|
16
|
+
private connect;
|
|
17
|
+
addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
|
|
18
|
+
findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
|
|
19
|
+
findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
|
|
20
|
+
raiseIntent(context: FDC3Context, intent?: FDC3Intents): Promise<FDC3IntentResolution>;
|
|
21
|
+
joinChannel(channelId: string): Promise<void>;
|
|
22
|
+
getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
|
|
23
|
+
broadcastOnChannel(channelId: string, context: FDC3Context): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The DI token for the FDC3 interface.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare const FDC3: InterfaceSymbol<FDC3_2>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The FDC3 API interface.
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
declare interface FDC3_2 {
|
|
37
|
+
/**
|
|
38
|
+
* Whether the FDC3 API is ready.
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
isReady: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Adds intent listeners for the specified intents.
|
|
44
|
+
* @public
|
|
45
|
+
* @param listeners - The intent listeners to add.
|
|
46
|
+
*/
|
|
47
|
+
addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
|
|
48
|
+
/**
|
|
49
|
+
* Finds an app that supports the specified intent.
|
|
50
|
+
* @public
|
|
51
|
+
* @param intent - The intent to find an app for.
|
|
52
|
+
* @param context - The context to use.
|
|
53
|
+
* @returns A promise that resolves with the app and its metadata.
|
|
54
|
+
*/
|
|
55
|
+
findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
|
|
56
|
+
/**
|
|
57
|
+
* Finds all the intents supported by the specified context.
|
|
58
|
+
* @public
|
|
59
|
+
* @param context - The context to use.
|
|
60
|
+
* @returns A promise that resolves with an array of all matching intents and their metadata.
|
|
61
|
+
*/
|
|
62
|
+
findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Raises the specified intent with the specified context.
|
|
65
|
+
* @public
|
|
66
|
+
* @param context - The context to use.
|
|
67
|
+
* @param intent - The intent to raise.
|
|
68
|
+
* @returns A promise that resolves with the result of the intent resolution.
|
|
69
|
+
*/
|
|
70
|
+
raiseIntent(context: FDC3Context, intent?: FDC3Intents): Promise<FDC3IntentResolution>;
|
|
71
|
+
/**
|
|
72
|
+
* Joins the specified channel.
|
|
73
|
+
* @public
|
|
74
|
+
* @param channelId - The ID of the channel to join.
|
|
75
|
+
* @returns A promise that resolves when the join is successful.
|
|
76
|
+
*/
|
|
77
|
+
joinChannel(channelId: string): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Gets or creates the specified channel.
|
|
80
|
+
* @public
|
|
81
|
+
* @param channelId - The ID of the channel to get or create.
|
|
82
|
+
* @returns A promise that resolves with the channel object.
|
|
83
|
+
*/
|
|
84
|
+
getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
|
|
85
|
+
/**
|
|
86
|
+
* Broadcasts the specified context on the specified channel.
|
|
87
|
+
* @public
|
|
88
|
+
* @param channelId - The ID of the channel to broadcast on.
|
|
89
|
+
* @param context - The context to broadcast.
|
|
90
|
+
* @returns A promise that resolves when the broadcast is successful.
|
|
91
|
+
*/
|
|
92
|
+
broadcastOnChannel(channelId: string, context: FDC3Context): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The DI token for the FDC3 interface.
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
declare const FDC3: InterfaceSymbol<FDC3_2>;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare interface FDC3AppIntent extends AppIntent {
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare interface FDC3Channel extends Channel {
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
export declare interface FDC3Context extends Context {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
export declare type FDC3ContextHandler = ContextHandler;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export declare interface FDC3IntentResolution extends IntentResolution {
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export declare type FDC3Intents = Intents;
|
|
134
|
+
|
|
135
|
+
export { }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3AppIntent](./foundation-fdc3.fdc3appintent.md)
|
|
4
|
+
|
|
5
|
+
## FDC3AppIntent interface
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export interface FDC3AppIntent extends AppIntent
|
|
12
|
+
```
|
|
13
|
+
**Extends:** AppIntent
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3Channel](./foundation-fdc3.fdc3channel.md)
|
|
4
|
+
|
|
5
|
+
## FDC3Channel interface
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export interface FDC3Channel extends Channel
|
|
12
|
+
```
|
|
13
|
+
**Extends:** Channel
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3Context](./foundation-fdc3.fdc3context.md)
|
|
4
|
+
|
|
5
|
+
## FDC3Context interface
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export interface FDC3Context extends Context
|
|
12
|
+
```
|
|
13
|
+
**Extends:** Context
|
|
14
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3ContextHandler](./foundation-fdc3.fdc3contexthandler.md)
|
|
4
|
+
|
|
5
|
+
## FDC3ContextHandler type
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export type FDC3ContextHandler = ContextHandler;
|
|
12
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3IntentResolution](./foundation-fdc3.fdc3intentresolution.md)
|
|
4
|
+
|
|
5
|
+
## FDC3IntentResolution interface
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export interface FDC3IntentResolution extends IntentResolution
|
|
12
|
+
```
|
|
13
|
+
**Extends:** IntentResolution
|
|
14
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md) > [FDC3Intents](./foundation-fdc3.fdc3intents.md)
|
|
4
|
+
|
|
5
|
+
## FDC3Intents type
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export type FDC3Intents = Intents;
|
|
12
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-fdc3](./foundation-fdc3.md)
|
|
4
|
+
|
|
5
|
+
## foundation-fdc3 package
|
|
6
|
+
|
|
7
|
+
## Interfaces
|
|
8
|
+
|
|
9
|
+
| Interface | Description |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| [FDC3AppIntent](./foundation-fdc3.fdc3appintent.md) | |
|
|
12
|
+
| [FDC3Channel](./foundation-fdc3.fdc3channel.md) | |
|
|
13
|
+
| [FDC3Context](./foundation-fdc3.fdc3context.md) | |
|
|
14
|
+
| [FDC3IntentResolution](./foundation-fdc3.fdc3intentresolution.md) | |
|
|
15
|
+
|
|
16
|
+
## Type Aliases
|
|
17
|
+
|
|
18
|
+
| Type Alias | Description |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| [FDC3ContextHandler](./foundation-fdc3.fdc3contexthandler.md) | |
|
|
21
|
+
| [FDC3Intents](./foundation-fdc3.fdc3intents.md) | |
|
|
22
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
## API Report File for "@genesislcap/foundation-fdc3"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { AppIntent } from '@finos/fdc3';
|
|
8
|
+
import { Channel } from '@finos/fdc3';
|
|
9
|
+
import { Context } from '@finos/fdc3';
|
|
10
|
+
import { ContextHandler } from '@finos/fdc3';
|
|
11
|
+
import { IntentResolution } from '@finos/fdc3';
|
|
12
|
+
import { Intents } from '@finos/fdc3';
|
|
13
|
+
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
14
|
+
|
|
15
|
+
// Warning: (ae-forgotten-export) The symbol "FDC3_2" needs to be exported by the entry point index.d.ts
|
|
16
|
+
// Warning: (ae-internal-missing-underscore) The name "DefaultFDC3" should be prefixed with an underscore because the declaration is marked as @internal
|
|
17
|
+
//
|
|
18
|
+
// @internal
|
|
19
|
+
export class DefaultFDC3 implements FDC3_2 {
|
|
20
|
+
constructor();
|
|
21
|
+
// (undocumented)
|
|
22
|
+
addIntentListeners(listeners: Map<FDC3Intents, FDC3ContextHandler>): void;
|
|
23
|
+
// (undocumented)
|
|
24
|
+
broadcastOnChannel(channelId: string, context: FDC3Context): Promise<void>;
|
|
25
|
+
// (undocumented)
|
|
26
|
+
findIntent(intent: FDC3Intents, context?: FDC3Context): Promise<FDC3AppIntent>;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
findIntentsByContext(context: FDC3Context): Promise<FDC3AppIntent[]>;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
getOrCreateChannel(channelId: string): Promise<FDC3Channel>;
|
|
31
|
+
// (undocumented)
|
|
32
|
+
isReady: boolean;
|
|
33
|
+
// (undocumented)
|
|
34
|
+
joinChannel(channelId: string): Promise<void>;
|
|
35
|
+
// (undocumented)
|
|
36
|
+
raiseIntent(context: FDC3Context, intent?: FDC3Intents): Promise<FDC3IntentResolution>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Warning: (ae-internal-missing-underscore) The name "FDC3" should be prefixed with an underscore because the declaration is marked as @internal
|
|
40
|
+
//
|
|
41
|
+
// @internal
|
|
42
|
+
export const FDC3: InterfaceSymbol<FDC3_2>;
|
|
43
|
+
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
export interface FDC3AppIntent extends AppIntent {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// @public (undocumented)
|
|
49
|
+
export interface FDC3Channel extends Channel {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// @public (undocumented)
|
|
53
|
+
export interface FDC3Context extends Context {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// @public (undocumented)
|
|
57
|
+
export type FDC3ContextHandler = ContextHandler;
|
|
58
|
+
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
export interface FDC3IntentResolution extends IntentResolution {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// @public (undocumented)
|
|
64
|
+
export type FDC3Intents = Intents;
|
|
65
|
+
|
|
66
|
+
// (No @packageDocumentation comment for this package)
|
|
67
|
+
|
|
68
|
+
```
|
package/license.txt
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Developer License Agreement
|
|
2
|
+
|
|
3
|
+
This Developer License Agreement (the “Agreement”) is entered into by and between Genesis, Global FinTech Inc.(“Genesis”) and you and/or the entity on whose behalf you are downloading the Software (as defined below) (“you”). This Agreement forms a legally binding contract between you and Genesis in relation to your use of the software libraries, reference implementations, and other related demonstration code (collectively, the “Genesis Software”). [a]
|
|
4
|
+
|
|
5
|
+
To use the Software, you must first agree to this Agreement. You may not use the Software if you do not agree to be bound by the terms of this Agreement. Accordingly, you and Genesis acknowledge and agree as follows:
|
|
6
|
+
|
|
7
|
+
1. LIMITED LICENSE.
|
|
8
|
+
Subject to your complete and ongoing compliance with all the terms and conditions set forth in this Agreement, including without limitation all license limitations and restrictions set forth herein, Genesis grants you the following limited, non-exclusive, non-transferable, non-sublicensable, revocable licenses to use, and (where applicable) authorize your employees to use, the Software internally solely in connection with building, developing and testing your own applications that interoperate with or incorporate the Software (“Applications”) for the purposes of evaluation.
|
|
9
|
+
|
|
10
|
+
2. RESTRICTIONS.
|
|
11
|
+
A. By accessing or using the Software, you represent, warrant, and covenant that (a) you are a person or business entity engaged in the development of software applications, and (b) in the case of a business entity, you have the full power and authority to bind such entity to the terms of this Agreement.
|
|
12
|
+
B. You acknowledge that the foregoing license does not include any right to:
|
|
13
|
+
(i) redistribute, sell, lease, license, modify or otherwise create any derivative works of any portion of the Software, or;
|
|
14
|
+
(ii) distribute, deploy, or otherwise utilize Applications on a public, production, commercial, or other similar purpose other than internal use for evaluation and the development of non-public, experimental Applications (any other public, production, commercial, or similar use requires a separate agreement with Genesis), or
|
|
15
|
+
(iii) use or implement any undocumented feature or API or use any documented feature or API other than in accordance with applicable documentation. You agree to not to do any of the foregoing.
|
|
16
|
+
C. Except as expressly provided herein, you may not:
|
|
17
|
+
(a) reproduce, distribute, publicly display, or publicly perform any part of the Software;
|
|
18
|
+
(b) decompile, reverse engineer, or otherwise access or attempt to access the source code for the Software not made available to you in source code form;
|
|
19
|
+
(c) make or attempt to make any modification to, or otherwise create derivative works of the Software; or
|
|
20
|
+
(d) remove, obscure, interfere with or circumvent any feature of the Software, including without limitation any copyright or other intellectual property notices, security, or access control mechanism;
|
|
21
|
+
(f) use the Software to do anything illegal, including facilitating, promoting, or otherwise encouraging any illegal activities.
|
|
22
|
+
|
|
23
|
+
3. RESERVATION OF RIGHTS.
|
|
24
|
+
A. The Software is owned by Genesis and licensed, not sold, to you. The Software, content, visual interfaces, interactive features, information, graphics, design, compilation, computer code, products, services, and all other elements of the Software and related documentation (the “Materials“), are protected by copyright, trade dress, patent, and trademark laws of the United States and other jurisdictions, international conventions, and all other relevant intellectual property and proprietary rights, and applicable laws (collectively, the “Intellectual Property Rights“).
|
|
25
|
+
B. You agree that Genesis or its subsidiaries or affiliated companies and/or its third-party licensors own all legal right, title and interest in and to the Software and Materials, including any and all Intellectual Property Rights. Genesis reserves all rights not expressly granted in this Agreement. You do not acquire any right, interest or title to the Materials, whether by implication, estoppel, or otherwise, except for the limited rights set forth in this Agreement.
|
|
26
|
+
C. You agree that the form and nature of the Software that Genesis provides may change without prior notice to you and that future versions of the Software may be incompatible with applications developed on previous of the Software. You agree that Genesis may stop (permanently or temporarily) providing the Software (or any features within the Software) to you or to users generally at Genesis’s sole discretion, without prior notice to you. Nothing in this Agreement gives you a right to use any of Genesis’s trade names, trademarks, service marks, logos, domain names, or other distinctive brand features.
|
|
27
|
+
|
|
28
|
+
4. TERMINATION.
|
|
29
|
+
At Genesis’s sole discretion, Genesis may terminate your Developer License and cease provision of the Genesis Software with or without notice, effective immediately, for any reason or no reason at all. Upon the expiration or termination of this Agreement all rights and licenses granted under this Agreement will immediately terminate.
|
|
30
|
+
|
|
31
|
+
5. THIRD PARTY SOFTWARE.
|
|
32
|
+
The Software consists of a package of components and may include references to certain third-party software (“Third Party Software”) that are provided by their authors under separate license terms (the “Third Party Terms”). Your use of any such Third-Party Software in conjunction with the Software in a manner consistent with this Agreement is permitted, however, you may have broader rights and/or restrictions under the applicable Third-Party Terms. Genesis cannot accept any responsibility for the Third-Party Software or your use thereof.
|
|
33
|
+
|
|
34
|
+
6. DISCLAIMER OF WARRANTIES.
|
|
35
|
+
YOU EXPRESSLY UNDERSTAND AND AGREE THAT YOUR USE OF THE SOFTWARE IS AT YOUR SOLE RISK AND THAT THE SOFTWARE IS PROVIDED “AS IS” AND “AS AVAILABLE” WITHOUT WARRANTY OF ANY KIND FROM GENESIS. YOUR USE OF THE SOFTWARE AND ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE USE OF THE SOFTWARE IS AT YOUR OWN DISCRETION AND RISK AND YOU ARE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR OTHER DEVICE OR LOSS OF DATA THAT RESULTS FROM SUCH USE. GENESIS FURTHER EXPRESSLY DISCLAIMS ALL WARRANTIES AND CONDITIONS OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. GENESIS EXPRESSLY DISCLAIMS ANY WARRANTIES OF ANY KIND WITH RESPECT TO THE ACCURACY OR FUNCTIONALITY OF THE SOFTWARE, AND WITH RESPECT TO THE ACCURACY, VALIDITY, OR COMPLETENESS OF ANY INFORMATION OR FEATURES AVAILABLE THROUGH THE SOFTWARE, OR THE QUALITY OR CONSISTENCY OF THE SOFTWARE OR RESULTS OBTAINED THROUGH ITS USE.
|
|
36
|
+
|
|
37
|
+
7. INDEMNIFICATION. To the maximum extent permitted by law, you agree to defend, indemnify, and hold harmless Genesis, its affiliates, and their respective directors, officers, employees, and agents, from and against any and all third-party claims, actions, suits, or proceedings, as well as any and all losses, liabilities, damages, costs, and expenses (including reasonable attorneys’ fees) arising out of or accruing from (a) your breach of this Developer License; (b) your use or misuse of the Genesis Software; (c) your negligence or willful misconduct; and/or (d) your use of the Genesis Software that actually or allegedly infringes any Intellectual Property Rights or privacy rights of any third party in any jurisdiction.
|
|
38
|
+
|
|
39
|
+
8. MISCELLANEOUS.
|
|
40
|
+
(a) If you are agreeing to be bound by this Agreement on behalf of your employer or other entity, you represent and warrant that you have full legal authority to bind your employer or such entity to this Agreement. If you do not have the requisite authority, you may not accept this Agreement on behalf of your employer or other entity.
|
|
41
|
+
(b) This Developer License shall be governed by, and construed in accordance with, the laws of the State of New York without regard to conflict of law principles. For all purposes of this Developer License, the parties’ consent to exclusive jurisdiction and venue in the state and federal courts located in New York County, New York.
|
|
42
|
+
(c) Nothing in this Agreement, or in the nature of your access and use of the Genesis Software, shall create or is intended to create a joint-venture, partnership, or agency relationship between you and Genesis.
|
|
43
|
+
(d) You may not assign or transfer this Agreement or any of your rights or obligations hereunder, absent the prior written consent of Genesis.
|
|
44
|
+
(e) You agree that if Genesis does not exercise or enforce any legal right or remedy contained in this Agreement, this will not be taken to be a formal waiver of Genesis’s rights and that those rights or remedies will still be available to Genesis.
|
|
45
|
+
(f) This Agreement constitutes the complete understanding between you and Genesis with respect to the subject matter contained herein, and supersedes all prior written or oral communications, understandings, and agreements.
|
|
46
|
+
(g) If any provision of this Agreement is deemed to be illegal, invalid, or unenforceable, then that provision shall be removed, and the remaining terms will continue to be valid and enforceable.
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@genesislcap/foundation-fdc3",
|
|
3
|
+
"description": "Genesis Foundation FDC3",
|
|
4
|
+
"version": "14.170.0-genxgit.1",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"license": "SEE LICENSE IN license.txt",
|
|
7
|
+
"main": "dist/esm/index.js",
|
|
8
|
+
"types": "dist/dts/index.d.ts",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=20.0.0"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/dts/index.d.ts",
|
|
15
|
+
"default": "./dist/esm/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./testing": {
|
|
18
|
+
"types": "./dist/dts/testing/index.d.ts",
|
|
19
|
+
"default": "./dist/esm/testing/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"typesVersions": {
|
|
24
|
+
"*": {
|
|
25
|
+
"testing": [
|
|
26
|
+
"./dist/dts/testing/index.d.ts"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"config": {
|
|
31
|
+
"PORT": 4000
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "genx build -b ts",
|
|
35
|
+
"build:rollup": "genx build -b rollup",
|
|
36
|
+
"build:rollup:stats": "genx analyze -b rollup",
|
|
37
|
+
"build:webpack": "genx build",
|
|
38
|
+
"build:webpack:stats": "genx analyze",
|
|
39
|
+
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
40
|
+
"dev": "npm run dev:tsc",
|
|
41
|
+
"dev:rollup": "genx dev -b rollup",
|
|
42
|
+
"dev:tsc": "genx dev -b ts",
|
|
43
|
+
"dev:webpack": "genx dev -b webpack",
|
|
44
|
+
"serve": "genx serve",
|
|
45
|
+
"test": "genx test",
|
|
46
|
+
"test:coverage": "genx test --coverage",
|
|
47
|
+
"test:coverage:browser": "genx test --coverage --browser",
|
|
48
|
+
"test:unit:browser": "genx test --browser",
|
|
49
|
+
"test:unit:browser:watch": "genx test --browser --watch",
|
|
50
|
+
"test:unit:watch": "genx test --watch",
|
|
51
|
+
"test:debug": "genx test --debug"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@genesislcap/foundation-testing": "14.170.0-genxgit.1",
|
|
55
|
+
"@genesislcap/genx": "14.170.0-genxgit.1",
|
|
56
|
+
"@genesislcap/rollup-builder": "14.170.0-genxgit.1",
|
|
57
|
+
"@genesislcap/ts-builder": "14.170.0-genxgit.1",
|
|
58
|
+
"@genesislcap/uvu-playwright-builder": "14.170.0-genxgit.1",
|
|
59
|
+
"@genesislcap/vite-builder": "14.170.0-genxgit.1",
|
|
60
|
+
"@genesislcap/webpack-builder": "14.170.0-genxgit.1",
|
|
61
|
+
"rimraf": "^3.0.2"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@finos/fdc3": "^1.2.0",
|
|
65
|
+
"@genesislcap/foundation-logger": "14.170.0-genxgit.1",
|
|
66
|
+
"@genesislcap/foundation-utils": "14.170.0-genxgit.1",
|
|
67
|
+
"@microsoft/fast-element": "^1.12.0",
|
|
68
|
+
"@microsoft/fast-foundation": "^2.49.4",
|
|
69
|
+
"tslib": "^2.3.1"
|
|
70
|
+
},
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "git+https://github.com/genesislcap/foundation-ui.git",
|
|
74
|
+
"directory": "packages/foundation/foundation-fdc3"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public"
|
|
78
|
+
},
|
|
79
|
+
"gitHead": "63c42feb1ea6f7bc16d8bd50ae4d90af80b7a9e5"
|
|
80
|
+
}
|
package/test/README.md
ADDED