@openfin/fdc3-api 38.81.32 → 38.81.37
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/fdc3-api-alpha.d.ts +21 -986
- package/out/fdc3-api-beta.d.ts +21 -986
- package/out/fdc3-api-public.d.ts +21 -986
- package/out/fdc3-api.d.ts +21 -986
- package/out/fdc3-api.js +10 -7
- package/package.json +1 -1
package/out/fdc3-api.js
CHANGED
|
@@ -1819,6 +1819,14 @@ function requireFdc3Common () {
|
|
|
1819
1819
|
throw new Error(errorToThrow);
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
+
async _getChannels() {
|
|
1823
|
+
const channels = await this.client.getContextGroups();
|
|
1824
|
+
// fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
|
|
1825
|
+
// this so people know that these APIs are not supported
|
|
1826
|
+
return channels.map((channel) => {
|
|
1827
|
+
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
1828
|
+
});
|
|
1829
|
+
}
|
|
1822
1830
|
/**
|
|
1823
1831
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
1824
1832
|
* @param channelId
|
|
@@ -1829,7 +1837,7 @@ function requireFdc3Common () {
|
|
|
1829
1837
|
this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
|
|
1830
1838
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
1831
1839
|
});
|
|
1832
|
-
const systemChannels = await this.
|
|
1840
|
+
const systemChannels = await this._getChannels();
|
|
1833
1841
|
const userChannel = systemChannels.find((channel) => channel.id === channelId);
|
|
1834
1842
|
if (userChannel) {
|
|
1835
1843
|
return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
@@ -1853,12 +1861,7 @@ function requireFdc3Common () {
|
|
|
1853
1861
|
this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
|
|
1854
1862
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
1855
1863
|
});
|
|
1856
|
-
|
|
1857
|
-
// fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
|
|
1858
|
-
// this so people know that these APIs are not supported
|
|
1859
|
-
return channels.map((channel) => {
|
|
1860
|
-
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
1861
|
-
});
|
|
1864
|
+
return this._getChannels();
|
|
1862
1865
|
}
|
|
1863
1866
|
/**
|
|
1864
1867
|
* Join all Interop Clients at the given identity to context group `contextGroupId`.
|