@openfin/fdc3-api 42.100.90 → 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.
@@ -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.
@@ -9534,6 +9535,7 @@ declare type MutableWindowOptions = {
9534
9535
  customData: any;
9535
9536
  /**
9536
9537
  * @defaultValue true
9538
+ * @deprecated Will be removed in runtime version 45
9537
9539
  *
9538
9540
  * Show the window's frame.
9539
9541
  */
@@ -9800,6 +9802,29 @@ declare type NonPropagatedWindowEvent = never;
9800
9802
 
9801
9803
  /* Excluded from this release type: NotCloseRequested */
9802
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
+
9803
9828
  /* Excluded from this release type: NotRequested */
9804
9829
 
9805
9830
  /**
@@ -9972,6 +9997,7 @@ declare namespace OpenFin {
9972
9997
  ApplicationPermissions,
9973
9998
  LaunchExternalProcessRule,
9974
9999
  SystemPermissions,
10000
+ NotificationManagerPermissions,
9975
10001
  DevicePermissionName,
9976
10002
  WebPermissionName,
9977
10003
  WebPermission,
@@ -10208,6 +10234,11 @@ declare namespace OpenFin {
10208
10234
  RoutingInfo,
10209
10235
  DownloadShelfOptions,
10210
10236
  ViewShowAtOptions,
10237
+ NotificationEvent,
10238
+ NotificationManagerInstance,
10239
+ NotificationManagerModule,
10240
+ WebNotificationInfo,
10241
+ WebNotificationProperties,
10211
10242
  ExtensionInfo,
10212
10243
  ServeRequest,
10213
10244
  AppAssetServeRequest,
@@ -10502,6 +10533,7 @@ declare type Permissions_2 = {
10502
10533
  Clipboard?: Partial<ClipboardApiPermissions>;
10503
10534
  webAPIs?: WebPermission[];
10504
10535
  devices?: DeviceInfo[];
10536
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10505
10537
  };
10506
10538
 
10507
10539
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -12670,6 +12702,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12670
12702
  transitions: OpenFin.Transition;
12671
12703
  options: OpenFin.TransitionOptions;
12672
12704
  }>;
12705
+ 'activate-window-and-focus': ApiCall<{
12706
+ winIdentity: OpenFin.Identity;
12707
+ focusIdentity: OpenFin.Identity;
12708
+ }, boolean>;
12673
12709
  'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
12674
12710
  'get-window-bounds': IdentityCall<{
12675
12711
  options?: OpenFin.GetBoundsOptions;
@@ -13292,6 +13328,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13292
13328
  };
13293
13329
  response: void;
13294
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
+ };
13295
13353
  };
13296
13354
 
13297
13355
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -18266,6 +18324,19 @@ declare namespace WebContentsEvents {
18266
18324
  }
18267
18325
  }
18268
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
+
18269
18340
  /**
18270
18341
  * Defines the type of requested web APIs permission.
18271
18342
  *
@@ -18408,6 +18479,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18408
18479
  * ```
18409
18480
  */
18410
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>;
18411
18506
  /**
18412
18507
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18413
18508
  *
@@ -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.
@@ -9534,6 +9535,7 @@ declare type MutableWindowOptions = {
9534
9535
  customData: any;
9535
9536
  /**
9536
9537
  * @defaultValue true
9538
+ * @deprecated Will be removed in runtime version 45
9537
9539
  *
9538
9540
  * Show the window's frame.
9539
9541
  */
@@ -9800,6 +9802,29 @@ declare type NonPropagatedWindowEvent = never;
9800
9802
 
9801
9803
  /* Excluded from this release type: NotCloseRequested */
9802
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
+
9803
9828
  /* Excluded from this release type: NotRequested */
9804
9829
 
9805
9830
  /**
@@ -9972,6 +9997,7 @@ declare namespace OpenFin {
9972
9997
  ApplicationPermissions,
9973
9998
  LaunchExternalProcessRule,
9974
9999
  SystemPermissions,
10000
+ NotificationManagerPermissions,
9975
10001
  DevicePermissionName,
9976
10002
  WebPermissionName,
9977
10003
  WebPermission,
@@ -10208,6 +10234,11 @@ declare namespace OpenFin {
10208
10234
  RoutingInfo,
10209
10235
  DownloadShelfOptions,
10210
10236
  ViewShowAtOptions,
10237
+ NotificationEvent,
10238
+ NotificationManagerInstance,
10239
+ NotificationManagerModule,
10240
+ WebNotificationInfo,
10241
+ WebNotificationProperties,
10211
10242
  ExtensionInfo,
10212
10243
  ServeRequest,
10213
10244
  AppAssetServeRequest,
@@ -10502,6 +10533,7 @@ declare type Permissions_2 = {
10502
10533
  Clipboard?: Partial<ClipboardApiPermissions>;
10503
10534
  webAPIs?: WebPermission[];
10504
10535
  devices?: DeviceInfo[];
10536
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10505
10537
  };
10506
10538
 
10507
10539
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -12670,6 +12702,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12670
12702
  transitions: OpenFin.Transition;
12671
12703
  options: OpenFin.TransitionOptions;
12672
12704
  }>;
12705
+ 'activate-window-and-focus': ApiCall<{
12706
+ winIdentity: OpenFin.Identity;
12707
+ focusIdentity: OpenFin.Identity;
12708
+ }, boolean>;
12673
12709
  'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
12674
12710
  'get-window-bounds': IdentityCall<{
12675
12711
  options?: OpenFin.GetBoundsOptions;
@@ -13292,6 +13328,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13292
13328
  };
13293
13329
  response: void;
13294
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
+ };
13295
13353
  };
13296
13354
 
13297
13355
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -18266,6 +18324,19 @@ declare namespace WebContentsEvents {
18266
18324
  }
18267
18325
  }
18268
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
+
18269
18340
  /**
18270
18341
  * Defines the type of requested web APIs permission.
18271
18342
  *
@@ -18408,6 +18479,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18408
18479
  * ```
18409
18480
  */
18410
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>;
18411
18506
  /**
18412
18507
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18413
18508
  *
@@ -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.
@@ -9534,6 +9535,7 @@ declare type MutableWindowOptions = {
9534
9535
  customData: any;
9535
9536
  /**
9536
9537
  * @defaultValue true
9538
+ * @deprecated Will be removed in runtime version 45
9537
9539
  *
9538
9540
  * Show the window's frame.
9539
9541
  */
@@ -9800,6 +9802,29 @@ declare type NonPropagatedWindowEvent = never;
9800
9802
 
9801
9803
  /* Excluded from this release type: NotCloseRequested */
9802
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
+
9803
9828
  /* Excluded from this release type: NotRequested */
9804
9829
 
9805
9830
  /**
@@ -9972,6 +9997,7 @@ declare namespace OpenFin {
9972
9997
  ApplicationPermissions,
9973
9998
  LaunchExternalProcessRule,
9974
9999
  SystemPermissions,
10000
+ NotificationManagerPermissions,
9975
10001
  DevicePermissionName,
9976
10002
  WebPermissionName,
9977
10003
  WebPermission,
@@ -10208,6 +10234,11 @@ declare namespace OpenFin {
10208
10234
  RoutingInfo,
10209
10235
  DownloadShelfOptions,
10210
10236
  ViewShowAtOptions,
10237
+ NotificationEvent,
10238
+ NotificationManagerInstance,
10239
+ NotificationManagerModule,
10240
+ WebNotificationInfo,
10241
+ WebNotificationProperties,
10211
10242
  ExtensionInfo,
10212
10243
  ServeRequest,
10213
10244
  AppAssetServeRequest,
@@ -10502,6 +10533,7 @@ declare type Permissions_2 = {
10502
10533
  Clipboard?: Partial<ClipboardApiPermissions>;
10503
10534
  webAPIs?: WebPermission[];
10504
10535
  devices?: DeviceInfo[];
10536
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10505
10537
  };
10506
10538
 
10507
10539
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -12670,6 +12702,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12670
12702
  transitions: OpenFin.Transition;
12671
12703
  options: OpenFin.TransitionOptions;
12672
12704
  }>;
12705
+ 'activate-window-and-focus': ApiCall<{
12706
+ winIdentity: OpenFin.Identity;
12707
+ focusIdentity: OpenFin.Identity;
12708
+ }, boolean>;
12673
12709
  'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
12674
12710
  'get-window-bounds': IdentityCall<{
12675
12711
  options?: OpenFin.GetBoundsOptions;
@@ -13292,6 +13328,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13292
13328
  };
13293
13329
  response: void;
13294
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
+ };
13295
13353
  };
13296
13354
 
13297
13355
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -18266,6 +18324,19 @@ declare namespace WebContentsEvents {
18266
18324
  }
18267
18325
  }
18268
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
+
18269
18340
  /**
18270
18341
  * Defines the type of requested web APIs permission.
18271
18342
  *
@@ -18408,6 +18479,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18408
18479
  * ```
18409
18480
  */
18410
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>;
18411
18506
  /**
18412
18507
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18413
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.
@@ -9834,6 +9835,7 @@ declare type MutableWindowOptions = {
9834
9835
  customData: any;
9835
9836
  /**
9836
9837
  * @defaultValue true
9838
+ * @deprecated Will be removed in runtime version 45
9837
9839
  *
9838
9840
  * Show the window's frame.
9839
9841
  */
@@ -10113,6 +10115,29 @@ declare type NonPropagatedWindowEvent = never;
10113
10115
  */
10114
10116
  declare type NotCloseRequested<EventType extends string> = Exclude<EventType, 'close-requested'>;
10115
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
+
10116
10141
  /**
10117
10142
  * @internal
10118
10143
  *
@@ -10290,6 +10315,7 @@ declare namespace OpenFin {
10290
10315
  ApplicationPermissions,
10291
10316
  LaunchExternalProcessRule,
10292
10317
  SystemPermissions,
10318
+ NotificationManagerPermissions,
10293
10319
  DevicePermissionName,
10294
10320
  WebPermissionName,
10295
10321
  WebPermission,
@@ -10526,6 +10552,11 @@ declare namespace OpenFin {
10526
10552
  RoutingInfo,
10527
10553
  DownloadShelfOptions,
10528
10554
  ViewShowAtOptions,
10555
+ NotificationEvent,
10556
+ NotificationManagerInstance,
10557
+ NotificationManagerModule,
10558
+ WebNotificationInfo,
10559
+ WebNotificationProperties,
10529
10560
  ExtensionInfo,
10530
10561
  ServeRequest,
10531
10562
  AppAssetServeRequest,
@@ -10820,6 +10851,7 @@ declare type Permissions_2 = {
10820
10851
  Clipboard?: Partial<ClipboardApiPermissions>;
10821
10852
  webAPIs?: WebPermission[];
10822
10853
  devices?: DeviceInfo[];
10854
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10823
10855
  };
10824
10856
 
10825
10857
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -13071,6 +13103,10 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13071
13103
  transitions: OpenFin.Transition;
13072
13104
  options: OpenFin.TransitionOptions;
13073
13105
  }>;
13106
+ 'activate-window-and-focus': ApiCall<{
13107
+ winIdentity: OpenFin.Identity;
13108
+ focusIdentity: OpenFin.Identity;
13109
+ }, boolean>;
13074
13110
  'get-all-frames': IdentityCall<{}, OpenFin.FrameInfo[]>;
13075
13111
  'get-window-bounds': IdentityCall<{
13076
13112
  options?: OpenFin.GetBoundsOptions;
@@ -13693,6 +13729,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13693
13729
  };
13694
13730
  response: void;
13695
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
+ };
13696
13754
  };
13697
13755
 
13698
13756
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -18717,6 +18775,19 @@ declare namespace WebContentsEvents {
18717
18775
  }
18718
18776
  }
18719
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
+
18720
18791
  /**
18721
18792
  * Defines the type of requested web APIs permission.
18722
18793
  *
@@ -18862,6 +18933,30 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
18862
18933
  * ```
18863
18934
  */
18864
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>;
18865
18960
  /**
18866
18961
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
18867
18962
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "42.100.90",
3
+ "version": "42.100.93",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,