@openfin/node-adapter 37.81.20 → 37.81.22
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/out/node-adapter-alpha.d.ts +9 -990
- package/out/node-adapter-beta.d.ts +9 -990
- package/out/node-adapter-public.d.ts +9 -990
- package/out/node-adapter.d.ts +9 -990
- package/out/node-adapter.js +10 -7
- package/package.json +1 -1
package/out/node-adapter.js
CHANGED
@@ -14790,6 +14790,14 @@ function requireFdc3Common () {
|
|
14790
14790
|
throw new Error(errorToThrow);
|
14791
14791
|
}
|
14792
14792
|
}
|
14793
|
+
async _getChannels() {
|
14794
|
+
const channels = await this.client.getContextGroups();
|
14795
|
+
// fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
|
14796
|
+
// this so people know that these APIs are not supported
|
14797
|
+
return channels.map((channel) => {
|
14798
|
+
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
14799
|
+
});
|
14800
|
+
}
|
14793
14801
|
/**
|
14794
14802
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
14795
14803
|
* @param channelId
|
@@ -14800,7 +14808,7 @@ function requireFdc3Common () {
|
|
14800
14808
|
this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
|
14801
14809
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
14802
14810
|
});
|
14803
|
-
const systemChannels = await this.
|
14811
|
+
const systemChannels = await this._getChannels();
|
14804
14812
|
const userChannel = systemChannels.find((channel) => channel.id === channelId);
|
14805
14813
|
if (userChannel) {
|
14806
14814
|
return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
@@ -14824,12 +14832,7 @@ function requireFdc3Common () {
|
|
14824
14832
|
this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
|
14825
14833
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
14826
14834
|
});
|
14827
|
-
|
14828
|
-
// fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
|
14829
|
-
// this so people know that these APIs are not supported
|
14830
|
-
return channels.map((channel) => {
|
14831
|
-
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
14832
|
-
});
|
14835
|
+
return this._getChannels();
|
14833
14836
|
}
|
14834
14837
|
/**
|
14835
14838
|
* Join all Interop Clients at the given identity to context group `contextGroupId`.
|