@openfin/fdc3-api 42.100.91 → 42.100.93
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 +94 -0
- package/out/fdc3-api-beta.d.ts +94 -0
- package/out/fdc3-api-public.d.ts +94 -0
- package/out/fdc3-api.d.ts +94 -0
- package/package.json +1 -1
package/out/fdc3-api-alpha.d.ts
CHANGED
|
@@ -5912,6 +5912,7 @@ declare interface FinApi<MeType extends OpenFin.EntityType> {
|
|
|
5912
5912
|
readonly Platform: PlatformModule;
|
|
5913
5913
|
readonly Interop: InteropModule;
|
|
5914
5914
|
readonly SnapshotSource: SnapshotSourceModule;
|
|
5915
|
+
readonly NotificationManager: NotificationManagerModule;
|
|
5915
5916
|
/**
|
|
5916
5917
|
* Provides access to the OpenFin representation of the current code context (usually an entity
|
|
5917
5918
|
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
|
@@ -9801,6 +9802,29 @@ declare type NonPropagatedWindowEvent = never;
|
|
|
9801
9802
|
|
|
9802
9803
|
/* Excluded from this release type: NotCloseRequested */
|
|
9803
9804
|
|
|
9805
|
+
declare type NotificationEvent = {
|
|
9806
|
+
type: 'close' | 'click' | 'show';
|
|
9807
|
+
notificationId: string;
|
|
9808
|
+
};
|
|
9809
|
+
|
|
9810
|
+
declare class NotificationManagerInstance {
|
|
9811
|
+
#private;
|
|
9812
|
+
constructor(wire: Transport, id: string);
|
|
9813
|
+
setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
|
|
9814
|
+
destroy: () => Promise<void>;
|
|
9815
|
+
dispatch: (event: NotificationEvent) => Promise<void>;
|
|
9816
|
+
}
|
|
9817
|
+
|
|
9818
|
+
declare class NotificationManagerModule extends Base {
|
|
9819
|
+
init: () => Promise<NotificationManagerInstance>;
|
|
9820
|
+
}
|
|
9821
|
+
|
|
9822
|
+
declare type NotificationManagerPermissions = {
|
|
9823
|
+
init: boolean;
|
|
9824
|
+
};
|
|
9825
|
+
|
|
9826
|
+
declare type NotificiationHandler = (event: WebNotificationInfo) => void;
|
|
9827
|
+
|
|
9804
9828
|
/* Excluded from this release type: NotRequested */
|
|
9805
9829
|
|
|
9806
9830
|
/**
|
|
@@ -9973,6 +9997,7 @@ declare namespace OpenFin {
|
|
|
9973
9997
|
ApplicationPermissions,
|
|
9974
9998
|
LaunchExternalProcessRule,
|
|
9975
9999
|
SystemPermissions,
|
|
10000
|
+
NotificationManagerPermissions,
|
|
9976
10001
|
DevicePermissionName,
|
|
9977
10002
|
WebPermissionName,
|
|
9978
10003
|
WebPermission,
|
|
@@ -10209,6 +10234,11 @@ declare namespace OpenFin {
|
|
|
10209
10234
|
RoutingInfo,
|
|
10210
10235
|
DownloadShelfOptions,
|
|
10211
10236
|
ViewShowAtOptions,
|
|
10237
|
+
NotificationEvent,
|
|
10238
|
+
NotificationManagerInstance,
|
|
10239
|
+
NotificationManagerModule,
|
|
10240
|
+
WebNotificationInfo,
|
|
10241
|
+
WebNotificationProperties,
|
|
10212
10242
|
ExtensionInfo,
|
|
10213
10243
|
ServeRequest,
|
|
10214
10244
|
AppAssetServeRequest,
|
|
@@ -10503,6 +10533,7 @@ declare type Permissions_2 = {
|
|
|
10503
10533
|
Clipboard?: Partial<ClipboardApiPermissions>;
|
|
10504
10534
|
webAPIs?: WebPermission[];
|
|
10505
10535
|
devices?: DeviceInfo[];
|
|
10536
|
+
NotificationManager?: Partial<NotificationManagerPermissions>;
|
|
10506
10537
|
};
|
|
10507
10538
|
|
|
10508
10539
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
|
@@ -12671,6 +12702,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
12671
12702
|
transitions: OpenFin.Transition;
|
|
12672
12703
|
options: OpenFin.TransitionOptions;
|
|
12673
12704
|
}>;
|
|
12705
|
+
'activate-window-and-focus': ApiCall<{
|
|
12706
|
+
winIdentity: OpenFin.Identity;
|
|
12707
|
+
focusIdentity: OpenFin.Identity;
|
|
12708
|
+
}, boolean>;
|
|
12674
12709
|
'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
|
|
12675
12710
|
'get-window-bounds': IdentityCall<{
|
|
12676
12711
|
options?: OpenFin.GetBoundsOptions;
|
|
@@ -13293,6 +13328,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
13293
13328
|
};
|
|
13294
13329
|
response: void;
|
|
13295
13330
|
};
|
|
13331
|
+
'dispatch-notification-event': {
|
|
13332
|
+
request: {
|
|
13333
|
+
notificationId: string;
|
|
13334
|
+
type: 'close' | 'show' | 'click';
|
|
13335
|
+
};
|
|
13336
|
+
response: void;
|
|
13337
|
+
};
|
|
13338
|
+
'init-notification-manager': {
|
|
13339
|
+
request: {};
|
|
13340
|
+
response: {
|
|
13341
|
+
managerId: string;
|
|
13342
|
+
};
|
|
13343
|
+
apiPath: '.init';
|
|
13344
|
+
secure: true;
|
|
13345
|
+
namespace: 'NotificationManager';
|
|
13346
|
+
};
|
|
13347
|
+
'destroy-notification-manager': {
|
|
13348
|
+
request: {
|
|
13349
|
+
managerId: string;
|
|
13350
|
+
};
|
|
13351
|
+
response: void;
|
|
13352
|
+
};
|
|
13296
13353
|
};
|
|
13297
13354
|
|
|
13298
13355
|
declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
|
|
@@ -18267,6 +18324,19 @@ declare namespace WebContentsEvents {
|
|
|
18267
18324
|
}
|
|
18268
18325
|
}
|
|
18269
18326
|
|
|
18327
|
+
declare type WebNotificationInfo = {
|
|
18328
|
+
notificationId: string;
|
|
18329
|
+
properties: WebNotificationProperties;
|
|
18330
|
+
url: string;
|
|
18331
|
+
images: {
|
|
18332
|
+
icon?: string;
|
|
18333
|
+
badge?: string;
|
|
18334
|
+
image?: string;
|
|
18335
|
+
};
|
|
18336
|
+
};
|
|
18337
|
+
|
|
18338
|
+
declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
|
|
18339
|
+
|
|
18270
18340
|
/**
|
|
18271
18341
|
* Defines the type of requested web APIs permission.
|
|
18272
18342
|
*
|
|
@@ -18409,6 +18479,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
18409
18479
|
* ```
|
|
18410
18480
|
*/
|
|
18411
18481
|
getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
|
|
18482
|
+
/**
|
|
18483
|
+
* Activates the current window and focuses the child entity if it exists. If this does
|
|
18484
|
+
* not succeed - say the child does not belong to this window, or the identity does not exist -
|
|
18485
|
+
* it will return false.
|
|
18486
|
+
*
|
|
18487
|
+
* @example
|
|
18488
|
+
* ```js
|
|
18489
|
+
* const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
|
|
18490
|
+
*
|
|
18491
|
+
* win.getCurrentViews()
|
|
18492
|
+
* .then(([view1]) => {
|
|
18493
|
+
* return win.activateAndFocus(view1.identity);
|
|
18494
|
+
* })
|
|
18495
|
+
* .then(success => {
|
|
18496
|
+
* if (success) {
|
|
18497
|
+
* console.log('Window activated and child focused');
|
|
18498
|
+
* } else {
|
|
18499
|
+
* console.log('Window activation failed, focus state unchanged');
|
|
18500
|
+
* }
|
|
18501
|
+
* })
|
|
18502
|
+
* .catch(console.error);
|
|
18503
|
+
* ```
|
|
18504
|
+
*/
|
|
18505
|
+
activateAndFocus(childIdentityToFocus: OpenFin.Identity): Promise<boolean>;
|
|
18412
18506
|
/**
|
|
18413
18507
|
* Gets the current bounds (top, bottom, right, left, width, height) of the window.
|
|
18414
18508
|
*
|
package/out/fdc3-api-beta.d.ts
CHANGED
|
@@ -5912,6 +5912,7 @@ declare interface FinApi<MeType extends OpenFin.EntityType> {
|
|
|
5912
5912
|
readonly Platform: PlatformModule;
|
|
5913
5913
|
readonly Interop: InteropModule;
|
|
5914
5914
|
readonly SnapshotSource: SnapshotSourceModule;
|
|
5915
|
+
readonly NotificationManager: NotificationManagerModule;
|
|
5915
5916
|
/**
|
|
5916
5917
|
* Provides access to the OpenFin representation of the current code context (usually an entity
|
|
5917
5918
|
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
|
@@ -9801,6 +9802,29 @@ declare type NonPropagatedWindowEvent = never;
|
|
|
9801
9802
|
|
|
9802
9803
|
/* Excluded from this release type: NotCloseRequested */
|
|
9803
9804
|
|
|
9805
|
+
declare type NotificationEvent = {
|
|
9806
|
+
type: 'close' | 'click' | 'show';
|
|
9807
|
+
notificationId: string;
|
|
9808
|
+
};
|
|
9809
|
+
|
|
9810
|
+
declare class NotificationManagerInstance {
|
|
9811
|
+
#private;
|
|
9812
|
+
constructor(wire: Transport, id: string);
|
|
9813
|
+
setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
|
|
9814
|
+
destroy: () => Promise<void>;
|
|
9815
|
+
dispatch: (event: NotificationEvent) => Promise<void>;
|
|
9816
|
+
}
|
|
9817
|
+
|
|
9818
|
+
declare class NotificationManagerModule extends Base {
|
|
9819
|
+
init: () => Promise<NotificationManagerInstance>;
|
|
9820
|
+
}
|
|
9821
|
+
|
|
9822
|
+
declare type NotificationManagerPermissions = {
|
|
9823
|
+
init: boolean;
|
|
9824
|
+
};
|
|
9825
|
+
|
|
9826
|
+
declare type NotificiationHandler = (event: WebNotificationInfo) => void;
|
|
9827
|
+
|
|
9804
9828
|
/* Excluded from this release type: NotRequested */
|
|
9805
9829
|
|
|
9806
9830
|
/**
|
|
@@ -9973,6 +9997,7 @@ declare namespace OpenFin {
|
|
|
9973
9997
|
ApplicationPermissions,
|
|
9974
9998
|
LaunchExternalProcessRule,
|
|
9975
9999
|
SystemPermissions,
|
|
10000
|
+
NotificationManagerPermissions,
|
|
9976
10001
|
DevicePermissionName,
|
|
9977
10002
|
WebPermissionName,
|
|
9978
10003
|
WebPermission,
|
|
@@ -10209,6 +10234,11 @@ declare namespace OpenFin {
|
|
|
10209
10234
|
RoutingInfo,
|
|
10210
10235
|
DownloadShelfOptions,
|
|
10211
10236
|
ViewShowAtOptions,
|
|
10237
|
+
NotificationEvent,
|
|
10238
|
+
NotificationManagerInstance,
|
|
10239
|
+
NotificationManagerModule,
|
|
10240
|
+
WebNotificationInfo,
|
|
10241
|
+
WebNotificationProperties,
|
|
10212
10242
|
ExtensionInfo,
|
|
10213
10243
|
ServeRequest,
|
|
10214
10244
|
AppAssetServeRequest,
|
|
@@ -10503,6 +10533,7 @@ declare type Permissions_2 = {
|
|
|
10503
10533
|
Clipboard?: Partial<ClipboardApiPermissions>;
|
|
10504
10534
|
webAPIs?: WebPermission[];
|
|
10505
10535
|
devices?: DeviceInfo[];
|
|
10536
|
+
NotificationManager?: Partial<NotificationManagerPermissions>;
|
|
10506
10537
|
};
|
|
10507
10538
|
|
|
10508
10539
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
|
@@ -12671,6 +12702,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
12671
12702
|
transitions: OpenFin.Transition;
|
|
12672
12703
|
options: OpenFin.TransitionOptions;
|
|
12673
12704
|
}>;
|
|
12705
|
+
'activate-window-and-focus': ApiCall<{
|
|
12706
|
+
winIdentity: OpenFin.Identity;
|
|
12707
|
+
focusIdentity: OpenFin.Identity;
|
|
12708
|
+
}, boolean>;
|
|
12674
12709
|
'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
|
|
12675
12710
|
'get-window-bounds': IdentityCall<{
|
|
12676
12711
|
options?: OpenFin.GetBoundsOptions;
|
|
@@ -13293,6 +13328,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
13293
13328
|
};
|
|
13294
13329
|
response: void;
|
|
13295
13330
|
};
|
|
13331
|
+
'dispatch-notification-event': {
|
|
13332
|
+
request: {
|
|
13333
|
+
notificationId: string;
|
|
13334
|
+
type: 'close' | 'show' | 'click';
|
|
13335
|
+
};
|
|
13336
|
+
response: void;
|
|
13337
|
+
};
|
|
13338
|
+
'init-notification-manager': {
|
|
13339
|
+
request: {};
|
|
13340
|
+
response: {
|
|
13341
|
+
managerId: string;
|
|
13342
|
+
};
|
|
13343
|
+
apiPath: '.init';
|
|
13344
|
+
secure: true;
|
|
13345
|
+
namespace: 'NotificationManager';
|
|
13346
|
+
};
|
|
13347
|
+
'destroy-notification-manager': {
|
|
13348
|
+
request: {
|
|
13349
|
+
managerId: string;
|
|
13350
|
+
};
|
|
13351
|
+
response: void;
|
|
13352
|
+
};
|
|
13296
13353
|
};
|
|
13297
13354
|
|
|
13298
13355
|
declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
|
|
@@ -18267,6 +18324,19 @@ declare namespace WebContentsEvents {
|
|
|
18267
18324
|
}
|
|
18268
18325
|
}
|
|
18269
18326
|
|
|
18327
|
+
declare type WebNotificationInfo = {
|
|
18328
|
+
notificationId: string;
|
|
18329
|
+
properties: WebNotificationProperties;
|
|
18330
|
+
url: string;
|
|
18331
|
+
images: {
|
|
18332
|
+
icon?: string;
|
|
18333
|
+
badge?: string;
|
|
18334
|
+
image?: string;
|
|
18335
|
+
};
|
|
18336
|
+
};
|
|
18337
|
+
|
|
18338
|
+
declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
|
|
18339
|
+
|
|
18270
18340
|
/**
|
|
18271
18341
|
* Defines the type of requested web APIs permission.
|
|
18272
18342
|
*
|
|
@@ -18409,6 +18479,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
18409
18479
|
* ```
|
|
18410
18480
|
*/
|
|
18411
18481
|
getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
|
|
18482
|
+
/**
|
|
18483
|
+
* Activates the current window and focuses the child entity if it exists. If this does
|
|
18484
|
+
* not succeed - say the child does not belong to this window, or the identity does not exist -
|
|
18485
|
+
* it will return false.
|
|
18486
|
+
*
|
|
18487
|
+
* @example
|
|
18488
|
+
* ```js
|
|
18489
|
+
* const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
|
|
18490
|
+
*
|
|
18491
|
+
* win.getCurrentViews()
|
|
18492
|
+
* .then(([view1]) => {
|
|
18493
|
+
* return win.activateAndFocus(view1.identity);
|
|
18494
|
+
* })
|
|
18495
|
+
* .then(success => {
|
|
18496
|
+
* if (success) {
|
|
18497
|
+
* console.log('Window activated and child focused');
|
|
18498
|
+
* } else {
|
|
18499
|
+
* console.log('Window activation failed, focus state unchanged');
|
|
18500
|
+
* }
|
|
18501
|
+
* })
|
|
18502
|
+
* .catch(console.error);
|
|
18503
|
+
* ```
|
|
18504
|
+
*/
|
|
18505
|
+
activateAndFocus(childIdentityToFocus: OpenFin.Identity): Promise<boolean>;
|
|
18412
18506
|
/**
|
|
18413
18507
|
* Gets the current bounds (top, bottom, right, left, width, height) of the window.
|
|
18414
18508
|
*
|
package/out/fdc3-api-public.d.ts
CHANGED
|
@@ -5912,6 +5912,7 @@ declare interface FinApi<MeType extends OpenFin.EntityType> {
|
|
|
5912
5912
|
readonly Platform: PlatformModule;
|
|
5913
5913
|
readonly Interop: InteropModule;
|
|
5914
5914
|
readonly SnapshotSource: SnapshotSourceModule;
|
|
5915
|
+
readonly NotificationManager: NotificationManagerModule;
|
|
5915
5916
|
/**
|
|
5916
5917
|
* Provides access to the OpenFin representation of the current code context (usually an entity
|
|
5917
5918
|
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
|
@@ -9801,6 +9802,29 @@ declare type NonPropagatedWindowEvent = never;
|
|
|
9801
9802
|
|
|
9802
9803
|
/* Excluded from this release type: NotCloseRequested */
|
|
9803
9804
|
|
|
9805
|
+
declare type NotificationEvent = {
|
|
9806
|
+
type: 'close' | 'click' | 'show';
|
|
9807
|
+
notificationId: string;
|
|
9808
|
+
};
|
|
9809
|
+
|
|
9810
|
+
declare class NotificationManagerInstance {
|
|
9811
|
+
#private;
|
|
9812
|
+
constructor(wire: Transport, id: string);
|
|
9813
|
+
setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
|
|
9814
|
+
destroy: () => Promise<void>;
|
|
9815
|
+
dispatch: (event: NotificationEvent) => Promise<void>;
|
|
9816
|
+
}
|
|
9817
|
+
|
|
9818
|
+
declare class NotificationManagerModule extends Base {
|
|
9819
|
+
init: () => Promise<NotificationManagerInstance>;
|
|
9820
|
+
}
|
|
9821
|
+
|
|
9822
|
+
declare type NotificationManagerPermissions = {
|
|
9823
|
+
init: boolean;
|
|
9824
|
+
};
|
|
9825
|
+
|
|
9826
|
+
declare type NotificiationHandler = (event: WebNotificationInfo) => void;
|
|
9827
|
+
|
|
9804
9828
|
/* Excluded from this release type: NotRequested */
|
|
9805
9829
|
|
|
9806
9830
|
/**
|
|
@@ -9973,6 +9997,7 @@ declare namespace OpenFin {
|
|
|
9973
9997
|
ApplicationPermissions,
|
|
9974
9998
|
LaunchExternalProcessRule,
|
|
9975
9999
|
SystemPermissions,
|
|
10000
|
+
NotificationManagerPermissions,
|
|
9976
10001
|
DevicePermissionName,
|
|
9977
10002
|
WebPermissionName,
|
|
9978
10003
|
WebPermission,
|
|
@@ -10209,6 +10234,11 @@ declare namespace OpenFin {
|
|
|
10209
10234
|
RoutingInfo,
|
|
10210
10235
|
DownloadShelfOptions,
|
|
10211
10236
|
ViewShowAtOptions,
|
|
10237
|
+
NotificationEvent,
|
|
10238
|
+
NotificationManagerInstance,
|
|
10239
|
+
NotificationManagerModule,
|
|
10240
|
+
WebNotificationInfo,
|
|
10241
|
+
WebNotificationProperties,
|
|
10212
10242
|
ExtensionInfo,
|
|
10213
10243
|
ServeRequest,
|
|
10214
10244
|
AppAssetServeRequest,
|
|
@@ -10503,6 +10533,7 @@ declare type Permissions_2 = {
|
|
|
10503
10533
|
Clipboard?: Partial<ClipboardApiPermissions>;
|
|
10504
10534
|
webAPIs?: WebPermission[];
|
|
10505
10535
|
devices?: DeviceInfo[];
|
|
10536
|
+
NotificationManager?: Partial<NotificationManagerPermissions>;
|
|
10506
10537
|
};
|
|
10507
10538
|
|
|
10508
10539
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
|
@@ -12671,6 +12702,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
12671
12702
|
transitions: OpenFin.Transition;
|
|
12672
12703
|
options: OpenFin.TransitionOptions;
|
|
12673
12704
|
}>;
|
|
12705
|
+
'activate-window-and-focus': ApiCall<{
|
|
12706
|
+
winIdentity: OpenFin.Identity;
|
|
12707
|
+
focusIdentity: OpenFin.Identity;
|
|
12708
|
+
}, boolean>;
|
|
12674
12709
|
'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
|
|
12675
12710
|
'get-window-bounds': IdentityCall<{
|
|
12676
12711
|
options?: OpenFin.GetBoundsOptions;
|
|
@@ -13293,6 +13328,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
13293
13328
|
};
|
|
13294
13329
|
response: void;
|
|
13295
13330
|
};
|
|
13331
|
+
'dispatch-notification-event': {
|
|
13332
|
+
request: {
|
|
13333
|
+
notificationId: string;
|
|
13334
|
+
type: 'close' | 'show' | 'click';
|
|
13335
|
+
};
|
|
13336
|
+
response: void;
|
|
13337
|
+
};
|
|
13338
|
+
'init-notification-manager': {
|
|
13339
|
+
request: {};
|
|
13340
|
+
response: {
|
|
13341
|
+
managerId: string;
|
|
13342
|
+
};
|
|
13343
|
+
apiPath: '.init';
|
|
13344
|
+
secure: true;
|
|
13345
|
+
namespace: 'NotificationManager';
|
|
13346
|
+
};
|
|
13347
|
+
'destroy-notification-manager': {
|
|
13348
|
+
request: {
|
|
13349
|
+
managerId: string;
|
|
13350
|
+
};
|
|
13351
|
+
response: void;
|
|
13352
|
+
};
|
|
13296
13353
|
};
|
|
13297
13354
|
|
|
13298
13355
|
declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
|
|
@@ -18267,6 +18324,19 @@ declare namespace WebContentsEvents {
|
|
|
18267
18324
|
}
|
|
18268
18325
|
}
|
|
18269
18326
|
|
|
18327
|
+
declare type WebNotificationInfo = {
|
|
18328
|
+
notificationId: string;
|
|
18329
|
+
properties: WebNotificationProperties;
|
|
18330
|
+
url: string;
|
|
18331
|
+
images: {
|
|
18332
|
+
icon?: string;
|
|
18333
|
+
badge?: string;
|
|
18334
|
+
image?: string;
|
|
18335
|
+
};
|
|
18336
|
+
};
|
|
18337
|
+
|
|
18338
|
+
declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
|
|
18339
|
+
|
|
18270
18340
|
/**
|
|
18271
18341
|
* Defines the type of requested web APIs permission.
|
|
18272
18342
|
*
|
|
@@ -18409,6 +18479,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
18409
18479
|
* ```
|
|
18410
18480
|
*/
|
|
18411
18481
|
getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
|
|
18482
|
+
/**
|
|
18483
|
+
* Activates the current window and focuses the child entity if it exists. If this does
|
|
18484
|
+
* not succeed - say the child does not belong to this window, or the identity does not exist -
|
|
18485
|
+
* it will return false.
|
|
18486
|
+
*
|
|
18487
|
+
* @example
|
|
18488
|
+
* ```js
|
|
18489
|
+
* const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
|
|
18490
|
+
*
|
|
18491
|
+
* win.getCurrentViews()
|
|
18492
|
+
* .then(([view1]) => {
|
|
18493
|
+
* return win.activateAndFocus(view1.identity);
|
|
18494
|
+
* })
|
|
18495
|
+
* .then(success => {
|
|
18496
|
+
* if (success) {
|
|
18497
|
+
* console.log('Window activated and child focused');
|
|
18498
|
+
* } else {
|
|
18499
|
+
* console.log('Window activation failed, focus state unchanged');
|
|
18500
|
+
* }
|
|
18501
|
+
* })
|
|
18502
|
+
* .catch(console.error);
|
|
18503
|
+
* ```
|
|
18504
|
+
*/
|
|
18505
|
+
activateAndFocus(childIdentityToFocus: OpenFin.Identity): Promise<boolean>;
|
|
18412
18506
|
/**
|
|
18413
18507
|
* Gets the current bounds (top, bottom, right, left, width, height) of the window.
|
|
18414
18508
|
*
|
package/out/fdc3-api.d.ts
CHANGED
|
@@ -5997,6 +5997,7 @@ declare interface FinApi<MeType extends OpenFin.EntityType> {
|
|
|
5997
5997
|
readonly Platform: PlatformModule;
|
|
5998
5998
|
readonly Interop: InteropModule;
|
|
5999
5999
|
readonly SnapshotSource: SnapshotSourceModule;
|
|
6000
|
+
readonly NotificationManager: NotificationManagerModule;
|
|
6000
6001
|
/**
|
|
6001
6002
|
* Provides access to the OpenFin representation of the current code context (usually an entity
|
|
6002
6003
|
* such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
|
|
@@ -10114,6 +10115,29 @@ declare type NonPropagatedWindowEvent = never;
|
|
|
10114
10115
|
*/
|
|
10115
10116
|
declare type NotCloseRequested<EventType extends string> = Exclude<EventType, 'close-requested'>;
|
|
10116
10117
|
|
|
10118
|
+
declare type NotificationEvent = {
|
|
10119
|
+
type: 'close' | 'click' | 'show';
|
|
10120
|
+
notificationId: string;
|
|
10121
|
+
};
|
|
10122
|
+
|
|
10123
|
+
declare class NotificationManagerInstance {
|
|
10124
|
+
#private;
|
|
10125
|
+
constructor(wire: Transport, id: string);
|
|
10126
|
+
setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
|
|
10127
|
+
destroy: () => Promise<void>;
|
|
10128
|
+
dispatch: (event: NotificationEvent) => Promise<void>;
|
|
10129
|
+
}
|
|
10130
|
+
|
|
10131
|
+
declare class NotificationManagerModule extends Base {
|
|
10132
|
+
init: () => Promise<NotificationManagerInstance>;
|
|
10133
|
+
}
|
|
10134
|
+
|
|
10135
|
+
declare type NotificationManagerPermissions = {
|
|
10136
|
+
init: boolean;
|
|
10137
|
+
};
|
|
10138
|
+
|
|
10139
|
+
declare type NotificiationHandler = (event: WebNotificationInfo) => void;
|
|
10140
|
+
|
|
10117
10141
|
/**
|
|
10118
10142
|
* @internal
|
|
10119
10143
|
*
|
|
@@ -10291,6 +10315,7 @@ declare namespace OpenFin {
|
|
|
10291
10315
|
ApplicationPermissions,
|
|
10292
10316
|
LaunchExternalProcessRule,
|
|
10293
10317
|
SystemPermissions,
|
|
10318
|
+
NotificationManagerPermissions,
|
|
10294
10319
|
DevicePermissionName,
|
|
10295
10320
|
WebPermissionName,
|
|
10296
10321
|
WebPermission,
|
|
@@ -10527,6 +10552,11 @@ declare namespace OpenFin {
|
|
|
10527
10552
|
RoutingInfo,
|
|
10528
10553
|
DownloadShelfOptions,
|
|
10529
10554
|
ViewShowAtOptions,
|
|
10555
|
+
NotificationEvent,
|
|
10556
|
+
NotificationManagerInstance,
|
|
10557
|
+
NotificationManagerModule,
|
|
10558
|
+
WebNotificationInfo,
|
|
10559
|
+
WebNotificationProperties,
|
|
10530
10560
|
ExtensionInfo,
|
|
10531
10561
|
ServeRequest,
|
|
10532
10562
|
AppAssetServeRequest,
|
|
@@ -10821,6 +10851,7 @@ declare type Permissions_2 = {
|
|
|
10821
10851
|
Clipboard?: Partial<ClipboardApiPermissions>;
|
|
10822
10852
|
webAPIs?: WebPermission[];
|
|
10823
10853
|
devices?: DeviceInfo[];
|
|
10854
|
+
NotificationManager?: Partial<NotificationManagerPermissions>;
|
|
10824
10855
|
};
|
|
10825
10856
|
|
|
10826
10857
|
declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
|
|
@@ -13072,6 +13103,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
13072
13103
|
transitions: OpenFin.Transition;
|
|
13073
13104
|
options: OpenFin.TransitionOptions;
|
|
13074
13105
|
}>;
|
|
13106
|
+
'activate-window-and-focus': ApiCall<{
|
|
13107
|
+
winIdentity: OpenFin.Identity;
|
|
13108
|
+
focusIdentity: OpenFin.Identity;
|
|
13109
|
+
}, boolean>;
|
|
13075
13110
|
'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
|
|
13076
13111
|
'get-window-bounds': IdentityCall<{
|
|
13077
13112
|
options?: OpenFin.GetBoundsOptions;
|
|
@@ -13694,6 +13729,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
|
|
|
13694
13729
|
};
|
|
13695
13730
|
response: void;
|
|
13696
13731
|
};
|
|
13732
|
+
'dispatch-notification-event': {
|
|
13733
|
+
request: {
|
|
13734
|
+
notificationId: string;
|
|
13735
|
+
type: 'close' | 'show' | 'click';
|
|
13736
|
+
};
|
|
13737
|
+
response: void;
|
|
13738
|
+
};
|
|
13739
|
+
'init-notification-manager': {
|
|
13740
|
+
request: {};
|
|
13741
|
+
response: {
|
|
13742
|
+
managerId: string;
|
|
13743
|
+
};
|
|
13744
|
+
apiPath: '.init';
|
|
13745
|
+
secure: true;
|
|
13746
|
+
namespace: 'NotificationManager';
|
|
13747
|
+
};
|
|
13748
|
+
'destroy-notification-manager': {
|
|
13749
|
+
request: {
|
|
13750
|
+
managerId: string;
|
|
13751
|
+
};
|
|
13752
|
+
response: void;
|
|
13753
|
+
};
|
|
13697
13754
|
};
|
|
13698
13755
|
|
|
13699
13756
|
declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
|
|
@@ -18718,6 +18775,19 @@ declare namespace WebContentsEvents {
|
|
|
18718
18775
|
}
|
|
18719
18776
|
}
|
|
18720
18777
|
|
|
18778
|
+
declare type WebNotificationInfo = {
|
|
18779
|
+
notificationId: string;
|
|
18780
|
+
properties: WebNotificationProperties;
|
|
18781
|
+
url: string;
|
|
18782
|
+
images: {
|
|
18783
|
+
icon?: string;
|
|
18784
|
+
badge?: string;
|
|
18785
|
+
image?: string;
|
|
18786
|
+
};
|
|
18787
|
+
};
|
|
18788
|
+
|
|
18789
|
+
declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
|
|
18790
|
+
|
|
18721
18791
|
/**
|
|
18722
18792
|
* Defines the type of requested web APIs permission.
|
|
18723
18793
|
*
|
|
@@ -18863,6 +18933,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
|
18863
18933
|
* ```
|
|
18864
18934
|
*/
|
|
18865
18935
|
getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
|
|
18936
|
+
/**
|
|
18937
|
+
* Activates the current window and focuses the child entity if it exists. If this does
|
|
18938
|
+
* not succeed - say the child does not belong to this window, or the identity does not exist -
|
|
18939
|
+
* it will return false.
|
|
18940
|
+
*
|
|
18941
|
+
* @example
|
|
18942
|
+
* ```js
|
|
18943
|
+
* const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
|
|
18944
|
+
*
|
|
18945
|
+
* win.getCurrentViews()
|
|
18946
|
+
* .then(([view1]) => {
|
|
18947
|
+
* return win.activateAndFocus(view1.identity);
|
|
18948
|
+
* })
|
|
18949
|
+
* .then(success => {
|
|
18950
|
+
* if (success) {
|
|
18951
|
+
* console.log('Window activated and child focused');
|
|
18952
|
+
* } else {
|
|
18953
|
+
* console.log('Window activation failed, focus state unchanged');
|
|
18954
|
+
* }
|
|
18955
|
+
* })
|
|
18956
|
+
* .catch(console.error);
|
|
18957
|
+
* ```
|
|
18958
|
+
*/
|
|
18959
|
+
activateAndFocus(childIdentityToFocus: OpenFin.Identity): Promise<boolean>;
|
|
18866
18960
|
/**
|
|
18867
18961
|
* Gets the current bounds (top, bottom, right, left, width, height) of the window.
|
|
18868
18962
|
*
|