@openfin/fdc3-api 37.81.21 → 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/fdc3-api-alpha.d.ts +1 -0
- package/out/fdc3-api-beta.d.ts +1 -0
- package/out/fdc3-api-public.d.ts +1 -0
- package/out/fdc3-api.d.ts +1 -0
- package/out/fdc3-api.js +10 -7
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -5279,6 +5279,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
|
|
|
5279
5279
|
* @tutorial fdc3.open
|
|
5280
5280
|
*/
|
|
5281
5281
|
protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
|
|
5282
|
+
protected _getChannels(): Promise<ChannelType[]>;
|
|
5282
5283
|
/**
|
|
5283
5284
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
5284
5285
|
* @param channelId
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -5279,6 +5279,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
|
|
|
5279
5279
|
* @tutorial fdc3.open
|
|
5280
5280
|
*/
|
|
5281
5281
|
protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
|
|
5282
|
+
protected _getChannels(): Promise<ChannelType[]>;
|
|
5282
5283
|
/**
|
|
5283
5284
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
5284
5285
|
* @param channelId
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -5279,6 +5279,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
|
|
|
5279
5279
|
* @tutorial fdc3.open
|
|
5280
5280
|
*/
|
|
5281
5281
|
protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
|
|
5282
|
+
protected _getChannels(): Promise<ChannelType[]>;
|
|
5282
5283
|
/**
|
|
5283
5284
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
5284
5285
|
* @param channelId
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -5364,6 +5364,7 @@ declare class FDC3ModuleBase<ChannelType extends v1_2.Channel | v2_0.Channel> {
|
|
|
5364
5364
|
* @tutorial fdc3.open
|
|
5365
5365
|
*/
|
|
5366
5366
|
protected _open(app: v1_2.TargetApp, context?: v1_2.Context): Promise<v2_0.AppIdentifier>;
|
|
5367
|
+
protected _getChannels(): Promise<ChannelType[]>;
|
|
5367
5368
|
/**
|
|
5368
5369
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
5369
5370
|
* @param channelId
|
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`.
|