@openfin/core 43.100.32 → 43.100.35

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.
@@ -5570,6 +5570,7 @@ declare interface FinApi<MeType extends OpenFin_2.EntityType> {
5570
5570
  readonly Platform: PlatformModule;
5571
5571
  readonly Interop: InteropModule;
5572
5572
  readonly SnapshotSource: SnapshotSourceModule;
5573
+ readonly NotificationManager: NotificationManagerModule;
5573
5574
  /**
5574
5575
  * Provides access to the OpenFin representation of the current code context (usually an entity
5575
5576
  * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
@@ -9459,6 +9460,29 @@ declare type NonPropagatedWindowEvent = never;
9459
9460
 
9460
9461
  /* Excluded from this release type: NotCloseRequested */
9461
9462
 
9463
+ declare type NotificationEvent = {
9464
+ type: 'close' | 'click' | 'show';
9465
+ notificationId: string;
9466
+ };
9467
+
9468
+ declare class NotificationManagerInstance {
9469
+ #private;
9470
+ constructor(wire: Transport, id: string);
9471
+ setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
9472
+ destroy: () => Promise<void>;
9473
+ dispatch: (event: NotificationEvent) => Promise<void>;
9474
+ }
9475
+
9476
+ declare class NotificationManagerModule extends Base {
9477
+ init: () => Promise<NotificationManagerInstance>;
9478
+ }
9479
+
9480
+ declare type NotificationManagerPermissions = {
9481
+ init: boolean;
9482
+ };
9483
+
9484
+ declare type NotificiationHandler = (event: WebNotificationInfo) => void;
9485
+
9462
9486
  /* Excluded from this release type: NotRequested */
9463
9487
 
9464
9488
  /**
@@ -9631,6 +9655,7 @@ declare namespace OpenFin_2 {
9631
9655
  ApplicationPermissions,
9632
9656
  LaunchExternalProcessRule,
9633
9657
  SystemPermissions,
9658
+ NotificationManagerPermissions,
9634
9659
  DevicePermissionName,
9635
9660
  WebPermissionName,
9636
9661
  WebPermission,
@@ -9867,6 +9892,11 @@ declare namespace OpenFin_2 {
9867
9892
  RoutingInfo,
9868
9893
  DownloadShelfOptions,
9869
9894
  ViewShowAtOptions,
9895
+ NotificationEvent,
9896
+ NotificationManagerInstance,
9897
+ NotificationManagerModule,
9898
+ WebNotificationInfo,
9899
+ WebNotificationProperties,
9870
9900
  ExtensionInfo,
9871
9901
  ServeRequest,
9872
9902
  AppAssetServeRequest,
@@ -10163,6 +10193,7 @@ declare type Permissions_2 = {
10163
10193
  Clipboard?: Partial<ClipboardApiPermissions>;
10164
10194
  webAPIs?: WebPermission[];
10165
10195
  devices?: DeviceInfo[];
10196
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10166
10197
  };
10167
10198
 
10168
10199
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -12957,6 +12988,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12957
12988
  };
12958
12989
  response: void;
12959
12990
  };
12991
+ 'dispatch-notification-event': {
12992
+ request: {
12993
+ notificationId: string;
12994
+ type: 'close' | 'show' | 'click';
12995
+ };
12996
+ response: void;
12997
+ };
12998
+ 'init-notification-manager': {
12999
+ request: {};
13000
+ response: {
13001
+ managerId: string;
13002
+ };
13003
+ apiPath: '.init';
13004
+ secure: true;
13005
+ namespace: 'NotificationManager';
13006
+ };
13007
+ 'destroy-notification-manager': {
13008
+ request: {
13009
+ managerId: string;
13010
+ };
13011
+ response: void;
13012
+ };
12960
13013
  };
12961
13014
 
12962
13015
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -17825,6 +17878,19 @@ declare namespace WebContentsEvents {
17825
17878
  }
17826
17879
  }
17827
17880
 
17881
+ declare type WebNotificationInfo = {
17882
+ notificationId: string;
17883
+ properties: WebNotificationProperties;
17884
+ url: string;
17885
+ images: {
17886
+ icon?: string;
17887
+ badge?: string;
17888
+ image?: string;
17889
+ };
17890
+ };
17891
+
17892
+ declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
17893
+
17828
17894
  /**
17829
17895
  * Defines the type of requested web APIs permission.
17830
17896
  *
@@ -5570,6 +5570,7 @@ declare interface FinApi<MeType extends OpenFin_2.EntityType> {
5570
5570
  readonly Platform: PlatformModule;
5571
5571
  readonly Interop: InteropModule;
5572
5572
  readonly SnapshotSource: SnapshotSourceModule;
5573
+ readonly NotificationManager: NotificationManagerModule;
5573
5574
  /**
5574
5575
  * Provides access to the OpenFin representation of the current code context (usually an entity
5575
5576
  * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
@@ -9459,6 +9460,29 @@ declare type NonPropagatedWindowEvent = never;
9459
9460
 
9460
9461
  /* Excluded from this release type: NotCloseRequested */
9461
9462
 
9463
+ declare type NotificationEvent = {
9464
+ type: 'close' | 'click' | 'show';
9465
+ notificationId: string;
9466
+ };
9467
+
9468
+ declare class NotificationManagerInstance {
9469
+ #private;
9470
+ constructor(wire: Transport, id: string);
9471
+ setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
9472
+ destroy: () => Promise<void>;
9473
+ dispatch: (event: NotificationEvent) => Promise<void>;
9474
+ }
9475
+
9476
+ declare class NotificationManagerModule extends Base {
9477
+ init: () => Promise<NotificationManagerInstance>;
9478
+ }
9479
+
9480
+ declare type NotificationManagerPermissions = {
9481
+ init: boolean;
9482
+ };
9483
+
9484
+ declare type NotificiationHandler = (event: WebNotificationInfo) => void;
9485
+
9462
9486
  /* Excluded from this release type: NotRequested */
9463
9487
 
9464
9488
  /**
@@ -9631,6 +9655,7 @@ declare namespace OpenFin_2 {
9631
9655
  ApplicationPermissions,
9632
9656
  LaunchExternalProcessRule,
9633
9657
  SystemPermissions,
9658
+ NotificationManagerPermissions,
9634
9659
  DevicePermissionName,
9635
9660
  WebPermissionName,
9636
9661
  WebPermission,
@@ -9867,6 +9892,11 @@ declare namespace OpenFin_2 {
9867
9892
  RoutingInfo,
9868
9893
  DownloadShelfOptions,
9869
9894
  ViewShowAtOptions,
9895
+ NotificationEvent,
9896
+ NotificationManagerInstance,
9897
+ NotificationManagerModule,
9898
+ WebNotificationInfo,
9899
+ WebNotificationProperties,
9870
9900
  ExtensionInfo,
9871
9901
  ServeRequest,
9872
9902
  AppAssetServeRequest,
@@ -10163,6 +10193,7 @@ declare type Permissions_2 = {
10163
10193
  Clipboard?: Partial<ClipboardApiPermissions>;
10164
10194
  webAPIs?: WebPermission[];
10165
10195
  devices?: DeviceInfo[];
10196
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10166
10197
  };
10167
10198
 
10168
10199
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -12957,6 +12988,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12957
12988
  };
12958
12989
  response: void;
12959
12990
  };
12991
+ 'dispatch-notification-event': {
12992
+ request: {
12993
+ notificationId: string;
12994
+ type: 'close' | 'show' | 'click';
12995
+ };
12996
+ response: void;
12997
+ };
12998
+ 'init-notification-manager': {
12999
+ request: {};
13000
+ response: {
13001
+ managerId: string;
13002
+ };
13003
+ apiPath: '.init';
13004
+ secure: true;
13005
+ namespace: 'NotificationManager';
13006
+ };
13007
+ 'destroy-notification-manager': {
13008
+ request: {
13009
+ managerId: string;
13010
+ };
13011
+ response: void;
13012
+ };
12960
13013
  };
12961
13014
 
12962
13015
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -17825,6 +17878,19 @@ declare namespace WebContentsEvents {
17825
17878
  }
17826
17879
  }
17827
17880
 
17881
+ declare type WebNotificationInfo = {
17882
+ notificationId: string;
17883
+ properties: WebNotificationProperties;
17884
+ url: string;
17885
+ images: {
17886
+ icon?: string;
17887
+ badge?: string;
17888
+ image?: string;
17889
+ };
17890
+ };
17891
+
17892
+ declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
17893
+
17828
17894
  /**
17829
17895
  * Defines the type of requested web APIs permission.
17830
17896
  *
@@ -5570,6 +5570,7 @@ declare interface FinApi<MeType extends OpenFin_2.EntityType> {
5570
5570
  readonly Platform: PlatformModule;
5571
5571
  readonly Interop: InteropModule;
5572
5572
  readonly SnapshotSource: SnapshotSourceModule;
5573
+ readonly NotificationManager: NotificationManagerModule;
5573
5574
  /**
5574
5575
  * Provides access to the OpenFin representation of the current code context (usually an entity
5575
5576
  * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
@@ -9459,6 +9460,29 @@ declare type NonPropagatedWindowEvent = never;
9459
9460
 
9460
9461
  /* Excluded from this release type: NotCloseRequested */
9461
9462
 
9463
+ declare type NotificationEvent = {
9464
+ type: 'close' | 'click' | 'show';
9465
+ notificationId: string;
9466
+ };
9467
+
9468
+ declare class NotificationManagerInstance {
9469
+ #private;
9470
+ constructor(wire: Transport, id: string);
9471
+ setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
9472
+ destroy: () => Promise<void>;
9473
+ dispatch: (event: NotificationEvent) => Promise<void>;
9474
+ }
9475
+
9476
+ declare class NotificationManagerModule extends Base {
9477
+ init: () => Promise<NotificationManagerInstance>;
9478
+ }
9479
+
9480
+ declare type NotificationManagerPermissions = {
9481
+ init: boolean;
9482
+ };
9483
+
9484
+ declare type NotificiationHandler = (event: WebNotificationInfo) => void;
9485
+
9462
9486
  /* Excluded from this release type: NotRequested */
9463
9487
 
9464
9488
  /**
@@ -9631,6 +9655,7 @@ declare namespace OpenFin_2 {
9631
9655
  ApplicationPermissions,
9632
9656
  LaunchExternalProcessRule,
9633
9657
  SystemPermissions,
9658
+ NotificationManagerPermissions,
9634
9659
  DevicePermissionName,
9635
9660
  WebPermissionName,
9636
9661
  WebPermission,
@@ -9867,6 +9892,11 @@ declare namespace OpenFin_2 {
9867
9892
  RoutingInfo,
9868
9893
  DownloadShelfOptions,
9869
9894
  ViewShowAtOptions,
9895
+ NotificationEvent,
9896
+ NotificationManagerInstance,
9897
+ NotificationManagerModule,
9898
+ WebNotificationInfo,
9899
+ WebNotificationProperties,
9870
9900
  ExtensionInfo,
9871
9901
  ServeRequest,
9872
9902
  AppAssetServeRequest,
@@ -10163,6 +10193,7 @@ declare type Permissions_2 = {
10163
10193
  Clipboard?: Partial<ClipboardApiPermissions>;
10164
10194
  webAPIs?: WebPermission[];
10165
10195
  devices?: DeviceInfo[];
10196
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10166
10197
  };
10167
10198
 
10168
10199
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -12957,6 +12988,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12957
12988
  };
12958
12989
  response: void;
12959
12990
  };
12991
+ 'dispatch-notification-event': {
12992
+ request: {
12993
+ notificationId: string;
12994
+ type: 'close' | 'show' | 'click';
12995
+ };
12996
+ response: void;
12997
+ };
12998
+ 'init-notification-manager': {
12999
+ request: {};
13000
+ response: {
13001
+ managerId: string;
13002
+ };
13003
+ apiPath: '.init';
13004
+ secure: true;
13005
+ namespace: 'NotificationManager';
13006
+ };
13007
+ 'destroy-notification-manager': {
13008
+ request: {
13009
+ managerId: string;
13010
+ };
13011
+ response: void;
13012
+ };
12960
13013
  };
12961
13014
 
12962
13015
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -17825,6 +17878,19 @@ declare namespace WebContentsEvents {
17825
17878
  }
17826
17879
  }
17827
17880
 
17881
+ declare type WebNotificationInfo = {
17882
+ notificationId: string;
17883
+ properties: WebNotificationProperties;
17884
+ url: string;
17885
+ images: {
17886
+ icon?: string;
17887
+ badge?: string;
17888
+ image?: string;
17889
+ };
17890
+ };
17891
+
17892
+ declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
17893
+
17828
17894
  /**
17829
17895
  * Defines the type of requested web APIs permission.
17830
17896
  *
package/out/stub.d.ts CHANGED
@@ -5655,6 +5655,7 @@ declare interface FinApi<MeType extends OpenFin_2.EntityType> {
5655
5655
  readonly Platform: PlatformModule;
5656
5656
  readonly Interop: InteropModule;
5657
5657
  readonly SnapshotSource: SnapshotSourceModule;
5658
+ readonly NotificationManager: NotificationManagerModule;
5658
5659
  /**
5659
5660
  * Provides access to the OpenFin representation of the current code context (usually an entity
5660
5661
  * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
@@ -9772,6 +9773,29 @@ declare type NonPropagatedWindowEvent = never;
9772
9773
  */
9773
9774
  declare type NotCloseRequested<EventType extends string> = Exclude<EventType, 'close-requested'>;
9774
9775
 
9776
+ declare type NotificationEvent = {
9777
+ type: 'close' | 'click' | 'show';
9778
+ notificationId: string;
9779
+ };
9780
+
9781
+ declare class NotificationManagerInstance {
9782
+ #private;
9783
+ constructor(wire: Transport, id: string);
9784
+ setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
9785
+ destroy: () => Promise<void>;
9786
+ dispatch: (event: NotificationEvent) => Promise<void>;
9787
+ }
9788
+
9789
+ declare class NotificationManagerModule extends Base {
9790
+ init: () => Promise<NotificationManagerInstance>;
9791
+ }
9792
+
9793
+ declare type NotificationManagerPermissions = {
9794
+ init: boolean;
9795
+ };
9796
+
9797
+ declare type NotificiationHandler = (event: WebNotificationInfo) => void;
9798
+
9775
9799
  /**
9776
9800
  * @internal
9777
9801
  *
@@ -9949,6 +9973,7 @@ declare namespace OpenFin_2 {
9949
9973
  ApplicationPermissions,
9950
9974
  LaunchExternalProcessRule,
9951
9975
  SystemPermissions,
9976
+ NotificationManagerPermissions,
9952
9977
  DevicePermissionName,
9953
9978
  WebPermissionName,
9954
9979
  WebPermission,
@@ -10185,6 +10210,11 @@ declare namespace OpenFin_2 {
10185
10210
  RoutingInfo,
10186
10211
  DownloadShelfOptions,
10187
10212
  ViewShowAtOptions,
10213
+ NotificationEvent,
10214
+ NotificationManagerInstance,
10215
+ NotificationManagerModule,
10216
+ WebNotificationInfo,
10217
+ WebNotificationProperties,
10188
10218
  ExtensionInfo,
10189
10219
  ServeRequest,
10190
10220
  AppAssetServeRequest,
@@ -10481,6 +10511,7 @@ declare type Permissions_2 = {
10481
10511
  Clipboard?: Partial<ClipboardApiPermissions>;
10482
10512
  webAPIs?: WebPermission[];
10483
10513
  devices?: DeviceInfo[];
10514
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10484
10515
  };
10485
10516
 
10486
10517
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -13358,6 +13389,28 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13358
13389
  };
13359
13390
  response: void;
13360
13391
  };
13392
+ 'dispatch-notification-event': {
13393
+ request: {
13394
+ notificationId: string;
13395
+ type: 'close' | 'show' | 'click';
13396
+ };
13397
+ response: void;
13398
+ };
13399
+ 'init-notification-manager': {
13400
+ request: {};
13401
+ response: {
13402
+ managerId: string;
13403
+ };
13404
+ apiPath: '.init';
13405
+ secure: true;
13406
+ namespace: 'NotificationManager';
13407
+ };
13408
+ 'destroy-notification-manager': {
13409
+ request: {
13410
+ managerId: string;
13411
+ };
13412
+ response: void;
13413
+ };
13361
13414
  };
13362
13415
 
13363
13416
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -18276,6 +18329,19 @@ declare namespace WebContentsEvents {
18276
18329
  }
18277
18330
  }
18278
18331
 
18332
+ declare type WebNotificationInfo = {
18333
+ notificationId: string;
18334
+ properties: WebNotificationProperties;
18335
+ url: string;
18336
+ images: {
18337
+ icon?: string;
18338
+ badge?: string;
18339
+ image?: string;
18340
+ };
18341
+ };
18342
+
18343
+ declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
18344
+
18279
18345
  /**
18280
18346
  * Defines the type of requested web APIs permission.
18281
18347
  *