@openfin/fdc3-api 37.80.21 → 37.80.23
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 +8 -101
- package/out/fdc3-api-beta.d.ts +8 -101
- package/out/fdc3-api-public.d.ts +8 -101
- package/out/fdc3-api.d.ts +9 -102
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
|
74
74
|
|
|
75
75
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
76
76
|
|
|
77
|
-
declare type AnyStrategy =
|
|
77
|
+
declare type AnyStrategy = ChannelStrategy<any>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Configurations for API injection.
|
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
2383
2383
|
|
|
2384
2384
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
2385
2385
|
|
|
2386
|
-
declare type ChannelAction_2 = (payload: unknown, id:
|
|
2386
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
2387
2387
|
|
|
2388
2388
|
declare class ChannelBase {
|
|
2389
2389
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2;
|
|
|
2797
2797
|
|
|
2798
2798
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2799
2799
|
|
|
2800
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:
|
|
2800
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2801
2801
|
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2994
2994
|
private static clientIsMultiRuntime;
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
|
-
declare type ChannelProviderDisconnectionListener = (identity:
|
|
2997
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
|
|
2998
2998
|
|
|
2999
2999
|
declare interface ChannelStrategy<T extends unknown> {
|
|
3000
3000
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
@@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
|
3056
3056
|
type: 'classic';
|
|
3057
3057
|
}
|
|
3058
3058
|
|
|
3059
|
-
declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
3060
|
-
#private;
|
|
3061
|
-
private messageReceiver;
|
|
3062
|
-
private endpointId;
|
|
3063
|
-
private providerIdentity;
|
|
3064
|
-
constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
|
|
3065
|
-
providerIdentity: ProviderIdentity_4);
|
|
3066
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3067
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
|
|
3068
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
3069
|
-
close: () => Promise<void>;
|
|
3070
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3071
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
3072
|
-
addEndpoint(endpointId: string, payload: EndpointPayload): void;
|
|
3073
|
-
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
3059
|
/**
|
|
3077
3060
|
* @interface
|
|
3078
3061
|
*/
|
|
@@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode {
|
|
|
3428
3411
|
getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
|
|
3429
3412
|
}
|
|
3430
3413
|
|
|
3431
|
-
declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
|
|
3432
|
-
private primary;
|
|
3433
|
-
private secondary;
|
|
3434
|
-
static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
|
|
3435
|
-
private constructor();
|
|
3436
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3437
|
-
isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
|
|
3438
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3439
|
-
isEndpointConnected(endpoint: string): boolean;
|
|
3440
|
-
addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
|
|
3441
|
-
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
3442
|
-
send(endpointId: string, action: string, payload: any): Promise<any>;
|
|
3443
|
-
close(): Promise<void>;
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
3414
|
declare interface ComponentConfig extends ItemConfig {
|
|
3447
3415
|
/**
|
|
3448
3416
|
* The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
|
|
@@ -5122,12 +5090,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
|
5122
5090
|
isMain: boolean;
|
|
5123
5091
|
};
|
|
5124
5092
|
|
|
5125
|
-
declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
|
|
5126
|
-
|
|
5127
|
-
declare type EndpointPayload = {
|
|
5128
|
-
endpointIdentity: EndpointIdentity;
|
|
5129
|
-
};
|
|
5130
|
-
|
|
5131
5093
|
/**
|
|
5132
5094
|
* Generated at the end of a user-driven change to a window's size or position.
|
|
5133
5095
|
* @interface
|
|
@@ -5229,7 +5191,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
|
5229
5191
|
|
|
5230
5192
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
5231
5193
|
|
|
5232
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
|
5194
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
5233
5195
|
|
|
5234
5196
|
/**
|
|
5235
5197
|
* This function converts JS errors into plain objects
|
|
@@ -9705,17 +9667,6 @@ declare interface MessageReceiver {
|
|
|
9705
9667
|
readyState: FlexReadyState;
|
|
9706
9668
|
}
|
|
9707
9669
|
|
|
9708
|
-
declare class MessageReceiver_2 extends Base {
|
|
9709
|
-
private endpointMap;
|
|
9710
|
-
private latestEndpointIdByChannelId;
|
|
9711
|
-
constructor(wire: Transport);
|
|
9712
|
-
private processChannelMessage;
|
|
9713
|
-
private onmessage;
|
|
9714
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
|
9715
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
|
9716
|
-
checkForPreviousClientConnection(channelId: string): void;
|
|
9717
|
-
}
|
|
9718
|
-
|
|
9719
9670
|
/**
|
|
9720
9671
|
* Protocol values for determining channel messaging strategy.
|
|
9721
9672
|
*/
|
|
@@ -10221,8 +10172,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
|
10221
10172
|
type: 'not-responding';
|
|
10222
10173
|
};
|
|
10223
10174
|
|
|
10224
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
|
10225
|
-
|
|
10226
10175
|
/**
|
|
10227
10176
|
* @interface
|
|
10228
10177
|
*/
|
|
@@ -10500,7 +10449,7 @@ declare namespace OpenFin {
|
|
|
10500
10449
|
ContextForIntent,
|
|
10501
10450
|
InfoForIntentOptions,
|
|
10502
10451
|
FindIntentsByContextOptions,
|
|
10503
|
-
|
|
10452
|
+
ProviderIdentity_4 as ProviderIdentity,
|
|
10504
10453
|
RegisterUsageData,
|
|
10505
10454
|
ViewsPreventingUnloadPayload,
|
|
10506
10455
|
BeforeUnloadUserDecision,
|
|
@@ -10601,10 +10550,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10601
10550
|
diff: OpenFin.WindowOptionDiff;
|
|
10602
10551
|
};
|
|
10603
10552
|
|
|
10604
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
|
10605
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
|
10606
|
-
};
|
|
10607
|
-
|
|
10608
10553
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10609
10554
|
|
|
10610
10555
|
/**
|
|
@@ -10705,8 +10650,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
|
10705
10650
|
type: Type;
|
|
10706
10651
|
}>;
|
|
10707
10652
|
|
|
10708
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
|
10709
|
-
|
|
10710
10653
|
/**
|
|
10711
10654
|
* Generated when window finishes loading. Provides performance and navigation data.
|
|
10712
10655
|
* @interface
|
|
@@ -12853,17 +12796,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity;
|
|
|
12853
12796
|
|
|
12854
12797
|
declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
|
|
12855
12798
|
|
|
12856
|
-
declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
|
|
12857
|
-
|
|
12858
|
-
declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
|
|
12859
|
-
|
|
12860
|
-
declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
|
|
12861
|
-
|
|
12862
12799
|
/**
|
|
12863
12800
|
* Identity of a channel provider.
|
|
12864
12801
|
* @interface
|
|
12865
12802
|
*/
|
|
12866
|
-
declare type
|
|
12803
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
|
12867
12804
|
/**
|
|
12868
12805
|
* Identifier of the channel.
|
|
12869
12806
|
*/
|
|
@@ -13195,21 +13132,10 @@ declare type RGB = {
|
|
|
13195
13132
|
/**
|
|
13196
13133
|
* @interface
|
|
13197
13134
|
*/
|
|
13198
|
-
declare type RoutingInfo =
|
|
13135
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
|
13199
13136
|
endpointId: string;
|
|
13200
13137
|
};
|
|
13201
13138
|
|
|
13202
|
-
declare interface RTCEndpointChannels {
|
|
13203
|
-
request: RTCDataChannel;
|
|
13204
|
-
response: RTCDataChannel;
|
|
13205
|
-
}
|
|
13206
|
-
|
|
13207
|
-
declare interface RTCPacket {
|
|
13208
|
-
rtcClient: RTCPeerConnection;
|
|
13209
|
-
channels: RTCEndpointChannels;
|
|
13210
|
-
channelsOpened: Promise<void>;
|
|
13211
|
-
}
|
|
13212
|
-
|
|
13213
13139
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
13214
13140
|
type: 'rtc';
|
|
13215
13141
|
payload: {
|
|
@@ -13218,25 +13144,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
|
13218
13144
|
};
|
|
13219
13145
|
}
|
|
13220
13146
|
|
|
13221
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
|
13222
|
-
#private;
|
|
13223
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
13224
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
|
13225
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
13226
|
-
close: () => Promise<void>;
|
|
13227
|
-
private getEndpointById;
|
|
13228
|
-
get connected(): boolean;
|
|
13229
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
13230
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
|
13231
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
13232
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
|
13233
|
-
}
|
|
13234
|
-
|
|
13235
|
-
declare interface RTCStrategyEndpointPayload {
|
|
13236
|
-
endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
|
|
13237
|
-
rtc: RTCPacket;
|
|
13238
|
-
}
|
|
13239
|
-
|
|
13240
13147
|
declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
13241
13148
|
|
|
13242
13149
|
/**
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
|
74
74
|
|
|
75
75
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
76
76
|
|
|
77
|
-
declare type AnyStrategy =
|
|
77
|
+
declare type AnyStrategy = ChannelStrategy<any>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Configurations for API injection.
|
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
2383
2383
|
|
|
2384
2384
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
2385
2385
|
|
|
2386
|
-
declare type ChannelAction_2 = (payload: unknown, id:
|
|
2386
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
2387
2387
|
|
|
2388
2388
|
declare class ChannelBase {
|
|
2389
2389
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2;
|
|
|
2797
2797
|
|
|
2798
2798
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2799
2799
|
|
|
2800
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:
|
|
2800
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2801
2801
|
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2994
2994
|
private static clientIsMultiRuntime;
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
|
-
declare type ChannelProviderDisconnectionListener = (identity:
|
|
2997
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
|
|
2998
2998
|
|
|
2999
2999
|
declare interface ChannelStrategy<T extends unknown> {
|
|
3000
3000
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
@@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
|
3056
3056
|
type: 'classic';
|
|
3057
3057
|
}
|
|
3058
3058
|
|
|
3059
|
-
declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
3060
|
-
#private;
|
|
3061
|
-
private messageReceiver;
|
|
3062
|
-
private endpointId;
|
|
3063
|
-
private providerIdentity;
|
|
3064
|
-
constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
|
|
3065
|
-
providerIdentity: ProviderIdentity_4);
|
|
3066
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3067
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
|
|
3068
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
3069
|
-
close: () => Promise<void>;
|
|
3070
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3071
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
3072
|
-
addEndpoint(endpointId: string, payload: EndpointPayload): void;
|
|
3073
|
-
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
3059
|
/**
|
|
3077
3060
|
* @interface
|
|
3078
3061
|
*/
|
|
@@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode {
|
|
|
3428
3411
|
getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
|
|
3429
3412
|
}
|
|
3430
3413
|
|
|
3431
|
-
declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
|
|
3432
|
-
private primary;
|
|
3433
|
-
private secondary;
|
|
3434
|
-
static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
|
|
3435
|
-
private constructor();
|
|
3436
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3437
|
-
isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
|
|
3438
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3439
|
-
isEndpointConnected(endpoint: string): boolean;
|
|
3440
|
-
addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
|
|
3441
|
-
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
3442
|
-
send(endpointId: string, action: string, payload: any): Promise<any>;
|
|
3443
|
-
close(): Promise<void>;
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
3414
|
declare interface ComponentConfig extends ItemConfig {
|
|
3447
3415
|
/**
|
|
3448
3416
|
* The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
|
|
@@ -5122,12 +5090,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
|
5122
5090
|
isMain: boolean;
|
|
5123
5091
|
};
|
|
5124
5092
|
|
|
5125
|
-
declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
|
|
5126
|
-
|
|
5127
|
-
declare type EndpointPayload = {
|
|
5128
|
-
endpointIdentity: EndpointIdentity;
|
|
5129
|
-
};
|
|
5130
|
-
|
|
5131
5093
|
/**
|
|
5132
5094
|
* Generated at the end of a user-driven change to a window's size or position.
|
|
5133
5095
|
* @interface
|
|
@@ -5229,7 +5191,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
|
5229
5191
|
|
|
5230
5192
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
5231
5193
|
|
|
5232
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
|
5194
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
5233
5195
|
|
|
5234
5196
|
/**
|
|
5235
5197
|
* This function converts JS errors into plain objects
|
|
@@ -9705,17 +9667,6 @@ declare interface MessageReceiver {
|
|
|
9705
9667
|
readyState: FlexReadyState;
|
|
9706
9668
|
}
|
|
9707
9669
|
|
|
9708
|
-
declare class MessageReceiver_2 extends Base {
|
|
9709
|
-
private endpointMap;
|
|
9710
|
-
private latestEndpointIdByChannelId;
|
|
9711
|
-
constructor(wire: Transport);
|
|
9712
|
-
private processChannelMessage;
|
|
9713
|
-
private onmessage;
|
|
9714
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
|
9715
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
|
9716
|
-
checkForPreviousClientConnection(channelId: string): void;
|
|
9717
|
-
}
|
|
9718
|
-
|
|
9719
9670
|
/**
|
|
9720
9671
|
* Protocol values for determining channel messaging strategy.
|
|
9721
9672
|
*/
|
|
@@ -10221,8 +10172,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
|
10221
10172
|
type: 'not-responding';
|
|
10222
10173
|
};
|
|
10223
10174
|
|
|
10224
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
|
10225
|
-
|
|
10226
10175
|
/**
|
|
10227
10176
|
* @interface
|
|
10228
10177
|
*/
|
|
@@ -10500,7 +10449,7 @@ declare namespace OpenFin {
|
|
|
10500
10449
|
ContextForIntent,
|
|
10501
10450
|
InfoForIntentOptions,
|
|
10502
10451
|
FindIntentsByContextOptions,
|
|
10503
|
-
|
|
10452
|
+
ProviderIdentity_4 as ProviderIdentity,
|
|
10504
10453
|
RegisterUsageData,
|
|
10505
10454
|
ViewsPreventingUnloadPayload,
|
|
10506
10455
|
BeforeUnloadUserDecision,
|
|
@@ -10601,10 +10550,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10601
10550
|
diff: OpenFin.WindowOptionDiff;
|
|
10602
10551
|
};
|
|
10603
10552
|
|
|
10604
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
|
10605
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
|
10606
|
-
};
|
|
10607
|
-
|
|
10608
10553
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10609
10554
|
|
|
10610
10555
|
/**
|
|
@@ -10705,8 +10650,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
|
10705
10650
|
type: Type;
|
|
10706
10651
|
}>;
|
|
10707
10652
|
|
|
10708
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
|
10709
|
-
|
|
10710
10653
|
/**
|
|
10711
10654
|
* Generated when window finishes loading. Provides performance and navigation data.
|
|
10712
10655
|
* @interface
|
|
@@ -12853,17 +12796,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity;
|
|
|
12853
12796
|
|
|
12854
12797
|
declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
|
|
12855
12798
|
|
|
12856
|
-
declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
|
|
12857
|
-
|
|
12858
|
-
declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
|
|
12859
|
-
|
|
12860
|
-
declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
|
|
12861
|
-
|
|
12862
12799
|
/**
|
|
12863
12800
|
* Identity of a channel provider.
|
|
12864
12801
|
* @interface
|
|
12865
12802
|
*/
|
|
12866
|
-
declare type
|
|
12803
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
|
12867
12804
|
/**
|
|
12868
12805
|
* Identifier of the channel.
|
|
12869
12806
|
*/
|
|
@@ -13195,21 +13132,10 @@ declare type RGB = {
|
|
|
13195
13132
|
/**
|
|
13196
13133
|
* @interface
|
|
13197
13134
|
*/
|
|
13198
|
-
declare type RoutingInfo =
|
|
13135
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
|
13199
13136
|
endpointId: string;
|
|
13200
13137
|
};
|
|
13201
13138
|
|
|
13202
|
-
declare interface RTCEndpointChannels {
|
|
13203
|
-
request: RTCDataChannel;
|
|
13204
|
-
response: RTCDataChannel;
|
|
13205
|
-
}
|
|
13206
|
-
|
|
13207
|
-
declare interface RTCPacket {
|
|
13208
|
-
rtcClient: RTCPeerConnection;
|
|
13209
|
-
channels: RTCEndpointChannels;
|
|
13210
|
-
channelsOpened: Promise<void>;
|
|
13211
|
-
}
|
|
13212
|
-
|
|
13213
13139
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
13214
13140
|
type: 'rtc';
|
|
13215
13141
|
payload: {
|
|
@@ -13218,25 +13144,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
|
13218
13144
|
};
|
|
13219
13145
|
}
|
|
13220
13146
|
|
|
13221
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
|
13222
|
-
#private;
|
|
13223
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
13224
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
|
13225
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
13226
|
-
close: () => Promise<void>;
|
|
13227
|
-
private getEndpointById;
|
|
13228
|
-
get connected(): boolean;
|
|
13229
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
13230
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
|
13231
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
13232
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
|
13233
|
-
}
|
|
13234
|
-
|
|
13235
|
-
declare interface RTCStrategyEndpointPayload {
|
|
13236
|
-
endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
|
|
13237
|
-
rtc: RTCPacket;
|
|
13238
|
-
}
|
|
13239
|
-
|
|
13240
13147
|
declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
13241
13148
|
|
|
13242
13149
|
/**
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
|
74
74
|
|
|
75
75
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
76
76
|
|
|
77
|
-
declare type AnyStrategy =
|
|
77
|
+
declare type AnyStrategy = ChannelStrategy<any>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Configurations for API injection.
|
|
@@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
2383
2383
|
|
|
2384
2384
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
2385
2385
|
|
|
2386
|
-
declare type ChannelAction_2 = (payload: unknown, id:
|
|
2386
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
2387
2387
|
|
|
2388
2388
|
declare class ChannelBase {
|
|
2389
2389
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2;
|
|
|
2797
2797
|
|
|
2798
2798
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2799
2799
|
|
|
2800
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:
|
|
2800
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2801
2801
|
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2994
2994
|
private static clientIsMultiRuntime;
|
|
2995
2995
|
}
|
|
2996
2996
|
|
|
2997
|
-
declare type ChannelProviderDisconnectionListener = (identity:
|
|
2997
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
|
|
2998
2998
|
|
|
2999
2999
|
declare interface ChannelStrategy<T extends unknown> {
|
|
3000
3000
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
@@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
|
3056
3056
|
type: 'classic';
|
|
3057
3057
|
}
|
|
3058
3058
|
|
|
3059
|
-
declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
3060
|
-
#private;
|
|
3061
|
-
private messageReceiver;
|
|
3062
|
-
private endpointId;
|
|
3063
|
-
private providerIdentity;
|
|
3064
|
-
constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
|
|
3065
|
-
providerIdentity: ProviderIdentity_4);
|
|
3066
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3067
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
|
|
3068
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
3069
|
-
close: () => Promise<void>;
|
|
3070
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3071
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
3072
|
-
addEndpoint(endpointId: string, payload: EndpointPayload): void;
|
|
3073
|
-
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
3059
|
/**
|
|
3077
3060
|
* @interface
|
|
3078
3061
|
*/
|
|
@@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode {
|
|
|
3428
3411
|
getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
|
|
3429
3412
|
}
|
|
3430
3413
|
|
|
3431
|
-
declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
|
|
3432
|
-
private primary;
|
|
3433
|
-
private secondary;
|
|
3434
|
-
static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
|
|
3435
|
-
private constructor();
|
|
3436
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3437
|
-
isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
|
|
3438
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3439
|
-
isEndpointConnected(endpoint: string): boolean;
|
|
3440
|
-
addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
|
|
3441
|
-
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
3442
|
-
send(endpointId: string, action: string, payload: any): Promise<any>;
|
|
3443
|
-
close(): Promise<void>;
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
3414
|
declare interface ComponentConfig extends ItemConfig {
|
|
3447
3415
|
/**
|
|
3448
3416
|
* The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
|
|
@@ -5122,12 +5090,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
|
5122
5090
|
isMain: boolean;
|
|
5123
5091
|
};
|
|
5124
5092
|
|
|
5125
|
-
declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
|
|
5126
|
-
|
|
5127
|
-
declare type EndpointPayload = {
|
|
5128
|
-
endpointIdentity: EndpointIdentity;
|
|
5129
|
-
};
|
|
5130
|
-
|
|
5131
5093
|
/**
|
|
5132
5094
|
* Generated at the end of a user-driven change to a window's size or position.
|
|
5133
5095
|
* @interface
|
|
@@ -5229,7 +5191,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
|
5229
5191
|
|
|
5230
5192
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
5231
5193
|
|
|
5232
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
|
5194
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
5233
5195
|
|
|
5234
5196
|
/**
|
|
5235
5197
|
* This function converts JS errors into plain objects
|
|
@@ -9705,17 +9667,6 @@ declare interface MessageReceiver {
|
|
|
9705
9667
|
readyState: FlexReadyState;
|
|
9706
9668
|
}
|
|
9707
9669
|
|
|
9708
|
-
declare class MessageReceiver_2 extends Base {
|
|
9709
|
-
private endpointMap;
|
|
9710
|
-
private latestEndpointIdByChannelId;
|
|
9711
|
-
constructor(wire: Transport);
|
|
9712
|
-
private processChannelMessage;
|
|
9713
|
-
private onmessage;
|
|
9714
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
|
9715
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
|
9716
|
-
checkForPreviousClientConnection(channelId: string): void;
|
|
9717
|
-
}
|
|
9718
|
-
|
|
9719
9670
|
/**
|
|
9720
9671
|
* Protocol values for determining channel messaging strategy.
|
|
9721
9672
|
*/
|
|
@@ -10221,8 +10172,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
|
10221
10172
|
type: 'not-responding';
|
|
10222
10173
|
};
|
|
10223
10174
|
|
|
10224
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
|
10225
|
-
|
|
10226
10175
|
/**
|
|
10227
10176
|
* @interface
|
|
10228
10177
|
*/
|
|
@@ -10500,7 +10449,7 @@ declare namespace OpenFin {
|
|
|
10500
10449
|
ContextForIntent,
|
|
10501
10450
|
InfoForIntentOptions,
|
|
10502
10451
|
FindIntentsByContextOptions,
|
|
10503
|
-
|
|
10452
|
+
ProviderIdentity_4 as ProviderIdentity,
|
|
10504
10453
|
RegisterUsageData,
|
|
10505
10454
|
ViewsPreventingUnloadPayload,
|
|
10506
10455
|
BeforeUnloadUserDecision,
|
|
@@ -10601,10 +10550,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10601
10550
|
diff: OpenFin.WindowOptionDiff;
|
|
10602
10551
|
};
|
|
10603
10552
|
|
|
10604
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
|
10605
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
|
10606
|
-
};
|
|
10607
|
-
|
|
10608
10553
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10609
10554
|
|
|
10610
10555
|
/**
|
|
@@ -10705,8 +10650,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
|
10705
10650
|
type: Type;
|
|
10706
10651
|
}>;
|
|
10707
10652
|
|
|
10708
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
|
10709
|
-
|
|
10710
10653
|
/**
|
|
10711
10654
|
* Generated when window finishes loading. Provides performance and navigation data.
|
|
10712
10655
|
* @interface
|
|
@@ -12853,17 +12796,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity;
|
|
|
12853
12796
|
|
|
12854
12797
|
declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
|
|
12855
12798
|
|
|
12856
|
-
declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
|
|
12857
|
-
|
|
12858
|
-
declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
|
|
12859
|
-
|
|
12860
|
-
declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
|
|
12861
|
-
|
|
12862
12799
|
/**
|
|
12863
12800
|
* Identity of a channel provider.
|
|
12864
12801
|
* @interface
|
|
12865
12802
|
*/
|
|
12866
|
-
declare type
|
|
12803
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
|
12867
12804
|
/**
|
|
12868
12805
|
* Identifier of the channel.
|
|
12869
12806
|
*/
|
|
@@ -13195,21 +13132,10 @@ declare type RGB = {
|
|
|
13195
13132
|
/**
|
|
13196
13133
|
* @interface
|
|
13197
13134
|
*/
|
|
13198
|
-
declare type RoutingInfo =
|
|
13135
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
|
13199
13136
|
endpointId: string;
|
|
13200
13137
|
};
|
|
13201
13138
|
|
|
13202
|
-
declare interface RTCEndpointChannels {
|
|
13203
|
-
request: RTCDataChannel;
|
|
13204
|
-
response: RTCDataChannel;
|
|
13205
|
-
}
|
|
13206
|
-
|
|
13207
|
-
declare interface RTCPacket {
|
|
13208
|
-
rtcClient: RTCPeerConnection;
|
|
13209
|
-
channels: RTCEndpointChannels;
|
|
13210
|
-
channelsOpened: Promise<void>;
|
|
13211
|
-
}
|
|
13212
|
-
|
|
13213
13139
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
13214
13140
|
type: 'rtc';
|
|
13215
13141
|
payload: {
|
|
@@ -13218,25 +13144,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
|
13218
13144
|
};
|
|
13219
13145
|
}
|
|
13220
13146
|
|
|
13221
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
|
13222
|
-
#private;
|
|
13223
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
13224
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
|
13225
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
13226
|
-
close: () => Promise<void>;
|
|
13227
|
-
private getEndpointById;
|
|
13228
|
-
get connected(): boolean;
|
|
13229
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
13230
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
|
13231
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
13232
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
|
13233
|
-
}
|
|
13234
|
-
|
|
13235
|
-
declare interface RTCStrategyEndpointPayload {
|
|
13236
|
-
endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
|
|
13237
|
-
rtc: RTCPacket;
|
|
13238
|
-
}
|
|
13239
|
-
|
|
13240
13147
|
declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
13241
13148
|
|
|
13242
13149
|
/**
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
|
|
|
74
74
|
|
|
75
75
|
declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
76
76
|
|
|
77
|
-
declare type AnyStrategy =
|
|
77
|
+
declare type AnyStrategy = ChannelStrategy<any>;
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Configurations for API injection.
|
|
@@ -2422,7 +2422,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel'];
|
|
|
2422
2422
|
|
|
2423
2423
|
declare type ChannelAction = OpenFin.ChannelAction;
|
|
2424
2424
|
|
|
2425
|
-
declare type ChannelAction_2 = (payload: unknown, id:
|
|
2425
|
+
declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
2426
2426
|
|
|
2427
2427
|
declare class ChannelBase {
|
|
2428
2428
|
protected subscriptions: Map<string, ChannelAction>;
|
|
@@ -2846,7 +2846,7 @@ declare type ChannelEvent = Event_2;
|
|
|
2846
2846
|
|
|
2847
2847
|
declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
|
|
2848
2848
|
|
|
2849
|
-
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:
|
|
2849
|
+
declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
|
|
2850
2850
|
|
|
2851
2851
|
/**
|
|
2852
2852
|
* Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
|
|
@@ -2888,7 +2888,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
2888
2888
|
/**
|
|
2889
2889
|
* @internal
|
|
2890
2890
|
*/
|
|
2891
|
-
constructor(providerIdentity:
|
|
2891
|
+
constructor(providerIdentity: ProviderIdentity_3, wire: Transport, strategy: AnyStrategy);
|
|
2892
2892
|
/**
|
|
2893
2893
|
* Dispatch an action to a specified client. Returns a promise for the result of executing that action on the client side.
|
|
2894
2894
|
*
|
|
@@ -3046,7 +3046,7 @@ declare class ChannelProvider extends ChannelBase {
|
|
|
3046
3046
|
private static clientIsMultiRuntime;
|
|
3047
3047
|
}
|
|
3048
3048
|
|
|
3049
|
-
declare type ChannelProviderDisconnectionListener = (identity:
|
|
3049
|
+
declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
|
|
3050
3050
|
|
|
3051
3051
|
declare interface ChannelStrategy<T extends unknown> {
|
|
3052
3052
|
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
@@ -3108,23 +3108,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase {
|
|
|
3108
3108
|
type: 'classic';
|
|
3109
3109
|
}
|
|
3110
3110
|
|
|
3111
|
-
declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
|
|
3112
|
-
#private;
|
|
3113
|
-
private messageReceiver;
|
|
3114
|
-
private endpointId;
|
|
3115
|
-
private providerIdentity;
|
|
3116
|
-
constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
|
|
3117
|
-
providerIdentity: ProviderIdentity_4);
|
|
3118
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3119
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
|
|
3120
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
3121
|
-
close: () => Promise<void>;
|
|
3122
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3123
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
3124
|
-
addEndpoint(endpointId: string, payload: EndpointPayload): void;
|
|
3125
|
-
isValidEndpointPayload(payload: any): payload is EndpointPayload;
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
3111
|
/**
|
|
3129
3112
|
* @interface
|
|
3130
3113
|
*/
|
|
@@ -3483,21 +3466,6 @@ declare class ColumnOrRow extends LayoutNode {
|
|
|
3483
3466
|
getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
|
|
3484
3467
|
}
|
|
3485
3468
|
|
|
3486
|
-
declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
|
|
3487
|
-
private primary;
|
|
3488
|
-
private secondary;
|
|
3489
|
-
static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
|
|
3490
|
-
private constructor();
|
|
3491
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
3492
|
-
isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
|
|
3493
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
3494
|
-
isEndpointConnected(endpoint: string): boolean;
|
|
3495
|
-
addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
|
|
3496
|
-
receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
|
|
3497
|
-
send(endpointId: string, action: string, payload: any): Promise<any>;
|
|
3498
|
-
close(): Promise<void>;
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
3469
|
declare interface ComponentConfig extends ItemConfig {
|
|
3502
3470
|
/**
|
|
3503
3471
|
* The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
|
|
@@ -5182,12 +5150,6 @@ declare type EndLoadEvent = BaseEvent_5 & {
|
|
|
5182
5150
|
isMain: boolean;
|
|
5183
5151
|
};
|
|
5184
5152
|
|
|
5185
|
-
declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
|
|
5186
|
-
|
|
5187
|
-
declare type EndpointPayload = {
|
|
5188
|
-
endpointIdentity: EndpointIdentity;
|
|
5189
|
-
};
|
|
5190
|
-
|
|
5191
5153
|
/**
|
|
5192
5154
|
* Generated at the end of a user-driven change to a window's size or position.
|
|
5193
5155
|
* @interface
|
|
@@ -5289,7 +5251,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other';
|
|
|
5289
5251
|
|
|
5290
5252
|
declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
|
|
5291
5253
|
|
|
5292
|
-
declare type ErrorMiddleware_2 = (topic: string, error: Error, id:
|
|
5254
|
+
declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
|
|
5293
5255
|
|
|
5294
5256
|
/**
|
|
5295
5257
|
* This function converts JS errors into plain objects
|
|
@@ -9994,17 +9956,6 @@ declare interface MessageReceiver {
|
|
|
9994
9956
|
readyState: FlexReadyState;
|
|
9995
9957
|
}
|
|
9996
9958
|
|
|
9997
|
-
declare class MessageReceiver_2 extends Base {
|
|
9998
|
-
private endpointMap;
|
|
9999
|
-
private latestEndpointIdByChannelId;
|
|
10000
|
-
constructor(wire: Transport);
|
|
10001
|
-
private processChannelMessage;
|
|
10002
|
-
private onmessage;
|
|
10003
|
-
addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
|
|
10004
|
-
removeEndpoint(channelId: string, endpointId: string): void;
|
|
10005
|
-
checkForPreviousClientConnection(channelId: string): void;
|
|
10006
|
-
}
|
|
10007
|
-
|
|
10008
9959
|
/**
|
|
10009
9960
|
* Protocol values for determining channel messaging strategy.
|
|
10010
9961
|
*/
|
|
@@ -10532,8 +10483,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & {
|
|
|
10532
10483
|
type: 'not-responding';
|
|
10533
10484
|
};
|
|
10534
10485
|
|
|
10535
|
-
declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
|
|
10536
|
-
|
|
10537
10486
|
/**
|
|
10538
10487
|
* @interface
|
|
10539
10488
|
*/
|
|
@@ -10811,7 +10760,7 @@ declare namespace OpenFin {
|
|
|
10811
10760
|
ContextForIntent,
|
|
10812
10761
|
InfoForIntentOptions,
|
|
10813
10762
|
FindIntentsByContextOptions,
|
|
10814
|
-
|
|
10763
|
+
ProviderIdentity_4 as ProviderIdentity,
|
|
10815
10764
|
RegisterUsageData,
|
|
10816
10765
|
ViewsPreventingUnloadPayload,
|
|
10817
10766
|
BeforeUnloadUserDecision,
|
|
@@ -10912,10 +10861,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
|
|
|
10912
10861
|
diff: OpenFin.WindowOptionDiff;
|
|
10913
10862
|
};
|
|
10914
10863
|
|
|
10915
|
-
declare type OverlapsOnlyIfMatching<T, U> = {
|
|
10916
|
-
[K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
|
|
10917
|
-
};
|
|
10918
|
-
|
|
10919
10864
|
declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
|
|
10920
10865
|
|
|
10921
10866
|
/**
|
|
@@ -11016,8 +10961,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
|
|
|
11016
10961
|
type: Type;
|
|
11017
10962
|
}>;
|
|
11018
10963
|
|
|
11019
|
-
declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
|
|
11020
|
-
|
|
11021
10964
|
/**
|
|
11022
10965
|
* Generated when window finishes loading. Provides performance and navigation data.
|
|
11023
10966
|
* @interface
|
|
@@ -13242,17 +13185,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity;
|
|
|
13242
13185
|
|
|
13243
13186
|
declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
|
|
13244
13187
|
|
|
13245
|
-
declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
|
|
13246
|
-
|
|
13247
|
-
declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
|
|
13248
|
-
|
|
13249
|
-
declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
|
|
13250
|
-
|
|
13251
13188
|
/**
|
|
13252
13189
|
* Identity of a channel provider.
|
|
13253
13190
|
* @interface
|
|
13254
13191
|
*/
|
|
13255
|
-
declare type
|
|
13192
|
+
declare type ProviderIdentity_4 = Identity_5 & {
|
|
13256
13193
|
/**
|
|
13257
13194
|
* Identifier of the channel.
|
|
13258
13195
|
*/
|
|
@@ -13584,21 +13521,10 @@ declare type RGB = {
|
|
|
13584
13521
|
/**
|
|
13585
13522
|
* @interface
|
|
13586
13523
|
*/
|
|
13587
|
-
declare type RoutingInfo =
|
|
13524
|
+
declare type RoutingInfo = ProviderIdentity_4 & {
|
|
13588
13525
|
endpointId: string;
|
|
13589
13526
|
};
|
|
13590
13527
|
|
|
13591
|
-
declare interface RTCEndpointChannels {
|
|
13592
|
-
request: RTCDataChannel;
|
|
13593
|
-
response: RTCDataChannel;
|
|
13594
|
-
}
|
|
13595
|
-
|
|
13596
|
-
declare interface RTCPacket {
|
|
13597
|
-
rtcClient: RTCPeerConnection;
|
|
13598
|
-
channels: RTCEndpointChannels;
|
|
13599
|
-
channelsOpened: Promise<void>;
|
|
13600
|
-
}
|
|
13601
|
-
|
|
13602
13528
|
declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
13603
13529
|
type: 'rtc';
|
|
13604
13530
|
payload: {
|
|
@@ -13607,25 +13533,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase {
|
|
|
13607
13533
|
};
|
|
13608
13534
|
}
|
|
13609
13535
|
|
|
13610
|
-
declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
|
|
13611
|
-
#private;
|
|
13612
|
-
onEndpointDisconnect(endpointId: string, listener: () => void): void;
|
|
13613
|
-
receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
|
|
13614
|
-
send: (endpointId: string, action: string, payload: any) => Promise<any>;
|
|
13615
|
-
close: () => Promise<void>;
|
|
13616
|
-
private getEndpointById;
|
|
13617
|
-
get connected(): boolean;
|
|
13618
|
-
isEndpointConnected(endpointId: string): boolean;
|
|
13619
|
-
addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
|
|
13620
|
-
closeEndpoint(endpointId: string): Promise<void>;
|
|
13621
|
-
isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
|
|
13622
|
-
}
|
|
13623
|
-
|
|
13624
|
-
declare interface RTCStrategyEndpointPayload {
|
|
13625
|
-
endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
|
|
13626
|
-
rtc: RTCPacket;
|
|
13627
|
-
}
|
|
13628
|
-
|
|
13629
13536
|
declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
|
|
13630
13537
|
|
|
13631
13538
|
/**
|