@openfin/core 43.100.32 → 43.100.36

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/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.
@@ -8957,19 +8958,74 @@ declare type LogInfo = {
8957
8958
  */
8958
8959
  declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
8959
8960
 
8961
+ /**
8962
+ * Options for the Log Uploader.
8963
+ */
8964
+ declare type LogUploaderOptions = LogUploadOptions & {
8965
+ ui?: LogUploaderUIOptions & {
8966
+ /**
8967
+ * Whether the Log Uploader UI should be shown.
8968
+ * @defaultValue true
8969
+ */
8970
+ show?: boolean;
8971
+ };
8972
+ };
8973
+
8974
+ /**
8975
+ * Options for the Log Uploader UI.
8976
+ * @interface
8977
+ */
8960
8978
  declare type LogUploaderUIOptions = {
8979
+ /**
8980
+ * Title for the Log Uploader window.
8981
+ * @defaultValue 'Here Log Uploader'
8982
+ */
8961
8983
  title?: string;
8984
+ /**
8985
+ * URL of an icon to use for the Log Uploader tool. The default is the Here logo.
8986
+ */
8962
8987
  icon?: string;
8988
+ /**
8989
+ * Name of the organization displayed in the Uploader window.
8990
+ * @defaultValue 'Here'
8991
+ */
8963
8992
  header?: string;
8993
+ /**
8994
+ * An explanation for the user of the purpose of the tool.
8995
+ * @defaultValue 'The following logs are being requested'
8996
+ */
8964
8997
  description?: string;
8998
+ /**
8999
+ * An email address that the user can contact with questions.
9000
+ * @defaultValue 'support@here.io'
9001
+ */
8965
9002
  email?: string;
9003
+ /**
9004
+ * URL of a webpage where the user can find more information about log uploading.
9005
+ * @defaultValue 'https://resources.here.io/docs/core/manage/security/'
9006
+ */
8966
9007
  website?: string;
9008
+ /**
9009
+ * Description of the webpage where the user can find more information.
9010
+ * @defaultValue 'Here Security'
9011
+ */
8967
9012
  websiteDescription?: string;
8968
9013
  };
8969
9014
 
8970
9015
  declare type LogUploadOptions = {
9016
+ /**
9017
+ * The URL where log files are to be uploaded.
9018
+ */
8971
9019
  endpoint: string;
9020
+ /**
9021
+ * An array of URL match patterns to define the manifests of the programs that the Log Uploader should upload logs for.
9022
+ * @defaultValue []
9023
+ */
8972
9024
  manifests?: string[];
9025
+ /**
9026
+ * An array of strings that specifies which logs should be uploaded.
9027
+ * @defaultValue ['app', 'rvm', 'debug']
9028
+ */
8973
9029
  logs?: string[];
8974
9030
  ui?: LogUploaderUIOptions;
8975
9031
  };
@@ -9772,6 +9828,29 @@ declare type NonPropagatedWindowEvent = never;
9772
9828
  */
9773
9829
  declare type NotCloseRequested<EventType extends string> = Exclude<EventType, 'close-requested'>;
9774
9830
 
9831
+ declare type NotificationEvent = {
9832
+ type: 'close' | 'click' | 'show';
9833
+ notificationId: string;
9834
+ };
9835
+
9836
+ declare class NotificationManagerInstance {
9837
+ #private;
9838
+ constructor(wire: Transport, id: string);
9839
+ setNotificationHandler: (handler: NotificiationHandler) => Promise<void>;
9840
+ destroy: () => Promise<void>;
9841
+ dispatch: (event: NotificationEvent) => Promise<void>;
9842
+ }
9843
+
9844
+ declare class NotificationManagerModule extends Base {
9845
+ init: () => Promise<NotificationManagerInstance>;
9846
+ }
9847
+
9848
+ declare type NotificationManagerPermissions = {
9849
+ init: boolean;
9850
+ };
9851
+
9852
+ declare type NotificiationHandler = (event: WebNotificationInfo) => void;
9853
+
9775
9854
  /**
9776
9855
  * @internal
9777
9856
  *
@@ -9949,6 +10028,7 @@ declare namespace OpenFin_2 {
9949
10028
  ApplicationPermissions,
9950
10029
  LaunchExternalProcessRule,
9951
10030
  SystemPermissions,
10031
+ NotificationManagerPermissions,
9952
10032
  DevicePermissionName,
9953
10033
  WebPermissionName,
9954
10034
  WebPermission,
@@ -9962,6 +10042,7 @@ declare namespace OpenFin_2 {
9962
10042
  PlatformViewCreationOptions,
9963
10043
  ProcessAffinityStrategy,
9964
10044
  PlatformOptions,
10045
+ LogUploaderOptions,
9965
10046
  LogUploaderUIOptions,
9966
10047
  LogUploadOptions,
9967
10048
  Manifest,
@@ -10185,6 +10266,11 @@ declare namespace OpenFin_2 {
10185
10266
  RoutingInfo,
10186
10267
  DownloadShelfOptions,
10187
10268
  ViewShowAtOptions,
10269
+ NotificationEvent,
10270
+ NotificationManagerInstance,
10271
+ NotificationManagerModule,
10272
+ WebNotificationInfo,
10273
+ WebNotificationProperties,
10188
10274
  ExtensionInfo,
10189
10275
  ServeRequest,
10190
10276
  AppAssetServeRequest,
@@ -10481,6 +10567,7 @@ declare type Permissions_2 = {
10481
10567
  Clipboard?: Partial<ClipboardApiPermissions>;
10482
10568
  webAPIs?: WebPermission[];
10483
10569
  devices?: DeviceInfo[];
10570
+ NotificationManager?: Partial<NotificationManagerPermissions>;
10484
10571
  };
10485
10572
 
10486
10573
  declare type PermissionState_2 = 'granted' | 'denied' | 'unavailable';
@@ -13358,6 +13445,34 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13358
13445
  };
13359
13446
  response: void;
13360
13447
  };
13448
+ 'launch-log-uploader': ApiCall<{
13449
+ options: OpenFin_2.LogUploaderOptions;
13450
+ }, void> & {
13451
+ apiPath: '.launchLogUploader';
13452
+ namespace: 'System';
13453
+ };
13454
+ 'dispatch-notification-event': {
13455
+ request: {
13456
+ notificationId: string;
13457
+ type: 'close' | 'show' | 'click';
13458
+ };
13459
+ response: void;
13460
+ };
13461
+ 'init-notification-manager': {
13462
+ request: {};
13463
+ response: {
13464
+ managerId: string;
13465
+ };
13466
+ apiPath: '.init';
13467
+ secure: true;
13468
+ namespace: 'NotificationManager';
13469
+ };
13470
+ 'destroy-notification-manager': {
13471
+ request: {
13472
+ managerId: string;
13473
+ };
13474
+ response: void;
13475
+ };
13361
13476
  };
13362
13477
 
13363
13478
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
@@ -15888,6 +16003,10 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
15888
16003
  * Not indended for general use, will be used by the `@openfin/workspace-platform` package.
15889
16004
  */
15890
16005
  serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
16006
+ /**
16007
+ * Launches the Log Uploader. Full documentation can be found [here](https://resources.here.io/docs/core/develop/debug/log-uploader/).
16008
+ */
16009
+ launchLogUploader(options: OpenFin_2.LogUploaderOptions): Promise<void>;
15891
16010
  }
15892
16011
 
15893
16012
  /**
@@ -18276,6 +18395,19 @@ declare namespace WebContentsEvents {
18276
18395
  }
18277
18396
  }
18278
18397
 
18398
+ declare type WebNotificationInfo = {
18399
+ notificationId: string;
18400
+ properties: WebNotificationProperties;
18401
+ url: string;
18402
+ images: {
18403
+ icon?: string;
18404
+ badge?: string;
18405
+ image?: string;
18406
+ };
18407
+ };
18408
+
18409
+ declare type WebNotificationProperties = Pick<Notification, 'tag' | 'body' | 'data' | 'dir' | 'icon' | 'lang' | 'title'>;
18410
+
18279
18411
  /**
18280
18412
  * Defines the type of requested web APIs permission.
18281
18413
  *