@openfin/core 40.100.7 → 40.101.1

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.
@@ -192,6 +192,10 @@ declare type AppAssetRequest = {
192
192
  alias: string;
193
193
  };
194
194
 
195
+ declare type AppAssetServeRequest = ServeRequest & {
196
+ alias: string;
197
+ };
198
+
195
199
  /**
196
200
  * An object representing an application. Allows the developer to create,
197
201
  * execute, show/close an application as well as listen to {@link OpenFin.ApplicationEvents application events}.
@@ -9617,6 +9621,11 @@ declare namespace OpenFin_2 {
9617
9621
  DownloadShelfOptions,
9618
9622
  ViewShowAtOptions,
9619
9623
  ExtensionInfo,
9624
+ ServeRequest,
9625
+ AppAssetServeRequest,
9626
+ PathServeRequest,
9627
+ ServeAssetOptions,
9628
+ ServedAssetInfo,
9620
9629
  ApplicationEvents,
9621
9630
  BaseEvents,
9622
9631
  ExternalApplicationEvents,
@@ -9685,6 +9694,10 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
9685
9694
  title: string;
9686
9695
  };
9687
9696
 
9697
+ declare type PathServeRequest = ServeRequest & {
9698
+ path: string;
9699
+ };
9700
+
9688
9701
  declare type Payload<Success extends boolean = boolean, Data = any> = {
9689
9702
  success: Success;
9690
9703
  data: Success extends true ? Data : never;
@@ -12304,6 +12317,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12304
12317
  options: OpenFin_2.ProcessLoggingOptions;
12305
12318
  }, void>;
12306
12319
  'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
12320
+ 'serve-asset': ApiCall<{
12321
+ options: OpenFin_2.ServeAssetOptions;
12322
+ }, OpenFin_2.ServedAssetInfo>;
12307
12323
  'set-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity & {
12308
12324
  domainSettings: OpenFin_2.DefaultDomainSettings;
12309
12325
  }, void>;
@@ -13036,6 +13052,16 @@ declare type SentMessage<Value> = Promise<Value> & {
13036
13052
  messageId: ReturnType<Environment['getNextMessageId']>;
13037
13053
  };
13038
13054
 
13055
+ declare type ServeAssetOptions = AppAssetServeRequest | PathServeRequest;
13056
+
13057
+ declare type ServedAssetInfo = {
13058
+ baseUrl: string;
13059
+ };
13060
+
13061
+ declare type ServeRequest = {
13062
+ hostName: string;
13063
+ };
13064
+
13039
13065
  /**
13040
13066
  * @interface
13041
13067
  */
@@ -14957,6 +14983,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14957
14983
  * Gets the currently-installed
14958
14984
  */
14959
14985
  getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
14986
+ /**
14987
+ * Used to serve an asset signed by OpenFin within the given runtime.
14988
+ * Not indended for general use, will be used by the `@openfin/workspace-platform` package.
14989
+ */
14990
+ serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
14960
14991
  }
14961
14992
 
14962
14993
  /**
@@ -192,6 +192,10 @@ declare type AppAssetRequest = {
192
192
  alias: string;
193
193
  };
194
194
 
195
+ declare type AppAssetServeRequest = ServeRequest & {
196
+ alias: string;
197
+ };
198
+
195
199
  /**
196
200
  * An object representing an application. Allows the developer to create,
197
201
  * execute, show/close an application as well as listen to {@link OpenFin.ApplicationEvents application events}.
@@ -9617,6 +9621,11 @@ declare namespace OpenFin_2 {
9617
9621
  DownloadShelfOptions,
9618
9622
  ViewShowAtOptions,
9619
9623
  ExtensionInfo,
9624
+ ServeRequest,
9625
+ AppAssetServeRequest,
9626
+ PathServeRequest,
9627
+ ServeAssetOptions,
9628
+ ServedAssetInfo,
9620
9629
  ApplicationEvents,
9621
9630
  BaseEvents,
9622
9631
  ExternalApplicationEvents,
@@ -9685,6 +9694,10 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
9685
9694
  title: string;
9686
9695
  };
9687
9696
 
9697
+ declare type PathServeRequest = ServeRequest & {
9698
+ path: string;
9699
+ };
9700
+
9688
9701
  declare type Payload<Success extends boolean = boolean, Data = any> = {
9689
9702
  success: Success;
9690
9703
  data: Success extends true ? Data : never;
@@ -12304,6 +12317,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12304
12317
  options: OpenFin_2.ProcessLoggingOptions;
12305
12318
  }, void>;
12306
12319
  'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
12320
+ 'serve-asset': ApiCall<{
12321
+ options: OpenFin_2.ServeAssetOptions;
12322
+ }, OpenFin_2.ServedAssetInfo>;
12307
12323
  'set-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity & {
12308
12324
  domainSettings: OpenFin_2.DefaultDomainSettings;
12309
12325
  }, void>;
@@ -13036,6 +13052,16 @@ declare type SentMessage<Value> = Promise<Value> & {
13036
13052
  messageId: ReturnType<Environment['getNextMessageId']>;
13037
13053
  };
13038
13054
 
13055
+ declare type ServeAssetOptions = AppAssetServeRequest | PathServeRequest;
13056
+
13057
+ declare type ServedAssetInfo = {
13058
+ baseUrl: string;
13059
+ };
13060
+
13061
+ declare type ServeRequest = {
13062
+ hostName: string;
13063
+ };
13064
+
13039
13065
  /**
13040
13066
  * @interface
13041
13067
  */
@@ -14957,6 +14983,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14957
14983
  * Gets the currently-installed
14958
14984
  */
14959
14985
  getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
14986
+ /**
14987
+ * Used to serve an asset signed by OpenFin within the given runtime.
14988
+ * Not indended for general use, will be used by the `@openfin/workspace-platform` package.
14989
+ */
14990
+ serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
14960
14991
  }
14961
14992
 
14962
14993
  /**
@@ -192,6 +192,10 @@ declare type AppAssetRequest = {
192
192
  alias: string;
193
193
  };
194
194
 
195
+ declare type AppAssetServeRequest = ServeRequest & {
196
+ alias: string;
197
+ };
198
+
195
199
  /**
196
200
  * An object representing an application. Allows the developer to create,
197
201
  * execute, show/close an application as well as listen to {@link OpenFin.ApplicationEvents application events}.
@@ -9617,6 +9621,11 @@ declare namespace OpenFin_2 {
9617
9621
  DownloadShelfOptions,
9618
9622
  ViewShowAtOptions,
9619
9623
  ExtensionInfo,
9624
+ ServeRequest,
9625
+ AppAssetServeRequest,
9626
+ PathServeRequest,
9627
+ ServeAssetOptions,
9628
+ ServedAssetInfo,
9620
9629
  ApplicationEvents,
9621
9630
  BaseEvents,
9622
9631
  ExternalApplicationEvents,
@@ -9685,6 +9694,10 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
9685
9694
  title: string;
9686
9695
  };
9687
9696
 
9697
+ declare type PathServeRequest = ServeRequest & {
9698
+ path: string;
9699
+ };
9700
+
9688
9701
  declare type Payload<Success extends boolean = boolean, Data = any> = {
9689
9702
  success: Success;
9690
9703
  data: Success extends true ? Data : never;
@@ -12304,6 +12317,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12304
12317
  options: OpenFin_2.ProcessLoggingOptions;
12305
12318
  }, void>;
12306
12319
  'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
12320
+ 'serve-asset': ApiCall<{
12321
+ options: OpenFin_2.ServeAssetOptions;
12322
+ }, OpenFin_2.ServedAssetInfo>;
12307
12323
  'set-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity & {
12308
12324
  domainSettings: OpenFin_2.DefaultDomainSettings;
12309
12325
  }, void>;
@@ -13036,6 +13052,16 @@ declare type SentMessage<Value> = Promise<Value> & {
13036
13052
  messageId: ReturnType<Environment['getNextMessageId']>;
13037
13053
  };
13038
13054
 
13055
+ declare type ServeAssetOptions = AppAssetServeRequest | PathServeRequest;
13056
+
13057
+ declare type ServedAssetInfo = {
13058
+ baseUrl: string;
13059
+ };
13060
+
13061
+ declare type ServeRequest = {
13062
+ hostName: string;
13063
+ };
13064
+
13039
13065
  /**
13040
13066
  * @interface
13041
13067
  */
@@ -14957,6 +14983,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14957
14983
  * Gets the currently-installed
14958
14984
  */
14959
14985
  getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
14986
+ /**
14987
+ * Used to serve an asset signed by OpenFin within the given runtime.
14988
+ * Not indended for general use, will be used by the `@openfin/workspace-platform` package.
14989
+ */
14990
+ serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
14960
14991
  }
14961
14992
 
14962
14993
  /**
package/out/mock.d.ts CHANGED
@@ -192,6 +192,10 @@ declare type AppAssetRequest = {
192
192
  alias: string;
193
193
  };
194
194
 
195
+ declare type AppAssetServeRequest = ServeRequest & {
196
+ alias: string;
197
+ };
198
+
195
199
  /**
196
200
  * An object representing an application. Allows the developer to create,
197
201
  * execute, show/close an application as well as listen to {@link OpenFin.ApplicationEvents application events}.
@@ -9935,6 +9939,11 @@ declare namespace OpenFin_2 {
9935
9939
  DownloadShelfOptions,
9936
9940
  ViewShowAtOptions,
9937
9941
  ExtensionInfo,
9942
+ ServeRequest,
9943
+ AppAssetServeRequest,
9944
+ PathServeRequest,
9945
+ ServeAssetOptions,
9946
+ ServedAssetInfo,
9938
9947
  ApplicationEvents,
9939
9948
  BaseEvents,
9940
9949
  ExternalApplicationEvents,
@@ -10003,6 +10012,10 @@ declare type PageTitleUpdatedEvent = NamedEvent & {
10003
10012
  title: string;
10004
10013
  };
10005
10014
 
10015
+ declare type PathServeRequest = ServeRequest & {
10016
+ path: string;
10017
+ };
10018
+
10006
10019
  declare type Payload<Success extends boolean = boolean, Data = any> = {
10007
10020
  success: Success;
10008
10021
  data: Success extends true ? Data : never;
@@ -12705,6 +12718,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
12705
12718
  options: OpenFin_2.ProcessLoggingOptions;
12706
12719
  }, void>;
12707
12720
  'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
12721
+ 'serve-asset': ApiCall<{
12722
+ options: OpenFin_2.ServeAssetOptions;
12723
+ }, OpenFin_2.ServedAssetInfo>;
12708
12724
  'set-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity & {
12709
12725
  domainSettings: OpenFin_2.DefaultDomainSettings;
12710
12726
  }, void>;
@@ -13437,6 +13453,16 @@ declare type SentMessage<Value> = Promise<Value> & {
13437
13453
  messageId: ReturnType<Environment['getNextMessageId']>;
13438
13454
  };
13439
13455
 
13456
+ declare type ServeAssetOptions = AppAssetServeRequest | PathServeRequest;
13457
+
13458
+ declare type ServedAssetInfo = {
13459
+ baseUrl: string;
13460
+ };
13461
+
13462
+ declare type ServeRequest = {
13463
+ hostName: string;
13464
+ };
13465
+
13440
13466
  /**
13441
13467
  * @interface
13442
13468
  */
@@ -15364,6 +15390,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
15364
15390
  * Gets the currently-installed
15365
15391
  */
15366
15392
  getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
15393
+ /**
15394
+ * Used to serve an asset signed by OpenFin within the given runtime.
15395
+ * Not indended for general use, will be used by the `@openfin/workspace-platform` package.
15396
+ */
15397
+ serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
15367
15398
  }
15368
15399
 
15369
15400
  /**
package/out/mock.js CHANGED
@@ -7246,6 +7246,13 @@ class System extends base_1$i.EmitterBase {
7246
7246
  const { payload } = await this.wire.sendAction('get-installed-extensions');
7247
7247
  return payload.data;
7248
7248
  }
7249
+ /**
7250
+ * Used to serve an asset signed by OpenFin within the given runtime.
7251
+ * Not indended for general use, will be used by the `@openfin/workspace-platform` package.
7252
+ */
7253
+ async serveAsset(options) {
7254
+ return (await this.wire.sendAction('serve-asset', { options })).payload.data;
7255
+ }
7249
7256
  }
7250
7257
  system.System = System;
7251
7258
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "40.100.7",
3
+ "version": "40.101.1",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",