@openfin/node-adapter 36.78.6 → 36.78.7

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.
@@ -111,6 +111,13 @@ declare type ApiClient<T extends Record<any, any>> = {
111
111
  [key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
112
112
  };
113
113
 
114
+ /**
115
+ * @interface
116
+ */
117
+ declare type ApiInjection = {
118
+ fin: InjectionType;
119
+ };
120
+
114
121
  /**
115
122
  * Generated when a new Platform's API becomes responsive.
116
123
  * @interface
@@ -1244,10 +1251,13 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1244
1251
  */
1245
1252
  apiDiagnostics: boolean;
1246
1253
  /**
1247
- * Define the file download rules.
1248
- * See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
1254
+ * @deprecated Please use {@link domainSettings} instead
1249
1255
  */
1250
1256
  defaultDomainSettings: DefaultDomainSettings;
1257
+ /**
1258
+ * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1259
+ */
1260
+ domainSettings: DomainSettings;
1251
1261
  /**
1252
1262
  * @defaultValue false
1253
1263
  *
@@ -4511,21 +4521,15 @@ declare type CustomRequestHeaders = {
4511
4521
  declare type DataChannelReadyState = RTCDataChannel['readyState'];
4512
4522
 
4513
4523
  /**
4524
+ * @deprecated Use {@link OpenFin.DomainSettings} instead.
4514
4525
  * @interface
4515
4526
  */
4516
- declare type DefaultDomainSettings = {
4517
- rules: DefaultDomainSettingsRule[];
4518
- };
4527
+ declare type DefaultDomainSettings = DomainSettings;
4519
4528
 
4520
4529
  /**
4521
- * @interface
4530
+ * @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
4522
4531
  */
4523
- declare type DefaultDomainSettingsRule = {
4524
- match: string[];
4525
- options: {
4526
- downloadSettings: FileDownloadSettings;
4527
- };
4528
- };
4532
+ declare type DefaultDomainSettingsRule = DomainSettingsRule;
4529
4533
 
4530
4534
  declare interface DesktopAgent {
4531
4535
  open(app: TargetApp, context?: Context): Promise<void>;
@@ -4770,6 +4774,25 @@ declare type DisplayMetadata_3 = {
4770
4774
  readonly glyph?: string;
4771
4775
  };
4772
4776
 
4777
+ /**
4778
+ * @interface
4779
+ * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
4780
+ */
4781
+ declare type DomainSettings = {
4782
+ rules: DomainSettingsRule[];
4783
+ };
4784
+
4785
+ /**
4786
+ * @interface
4787
+ */
4788
+ declare type DomainSettingsRule = {
4789
+ match: string[];
4790
+ options: {
4791
+ downloadSettings?: FileDownloadSettings;
4792
+ api?: ApiInjection;
4793
+ };
4794
+ };
4795
+
4773
4796
  /**
4774
4797
  * Metadata returned from a preload script download request.
4775
4798
  *
@@ -6654,6 +6677,11 @@ declare type InitPlatformOptions = {
6654
6677
  interopOverride?: OverrideCallback<InteropBroker> | ConstructorOverride<InteropBroker>[];
6655
6678
  };
6656
6679
 
6680
+ /**
6681
+ * * 'none': The `fin` API will be not available from within this context.
6682
+ * * 'global': The entire `fin` API will be available from within this context.
6683
+ * @defaultValue 'global'
6684
+ */
6657
6685
  declare type InjectionType = 'none' | 'global';
6658
6686
 
6659
6687
  /**
@@ -8909,7 +8937,7 @@ declare type LayoutOptions = {
8909
8937
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
8910
8938
 
8911
8939
  /**
8912
- * @interface
8940
+ * Layout preset type.
8913
8941
  */
8914
8942
  declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
8915
8943
 
@@ -9961,6 +9989,9 @@ declare namespace OpenFin {
9961
9989
  RuntimeInfo,
9962
9990
  DefaultDomainSettings,
9963
9991
  DefaultDomainSettingsRule,
9992
+ DomainSettings,
9993
+ ApiInjection,
9994
+ DomainSettingsRule,
9964
9995
  FileDownloadBehaviorNames,
9965
9996
  FileDownloadSettings,
9966
9997
  DownloadRule,
@@ -111,6 +111,13 @@ declare type ApiClient<T extends Record<any, any>> = {
111
111
  [key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
112
112
  };
113
113
 
114
+ /**
115
+ * @interface
116
+ */
117
+ declare type ApiInjection = {
118
+ fin: InjectionType;
119
+ };
120
+
114
121
  /**
115
122
  * Generated when a new Platform's API becomes responsive.
116
123
  * @interface
@@ -1244,10 +1251,13 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1244
1251
  */
1245
1252
  apiDiagnostics: boolean;
1246
1253
  /**
1247
- * Define the file download rules.
1248
- * See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
1254
+ * @deprecated Please use {@link domainSettings} instead
1249
1255
  */
1250
1256
  defaultDomainSettings: DefaultDomainSettings;
1257
+ /**
1258
+ * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1259
+ */
1260
+ domainSettings: DomainSettings;
1251
1261
  /**
1252
1262
  * @defaultValue false
1253
1263
  *
@@ -4511,21 +4521,15 @@ declare type CustomRequestHeaders = {
4511
4521
  declare type DataChannelReadyState = RTCDataChannel['readyState'];
4512
4522
 
4513
4523
  /**
4524
+ * @deprecated Use {@link OpenFin.DomainSettings} instead.
4514
4525
  * @interface
4515
4526
  */
4516
- declare type DefaultDomainSettings = {
4517
- rules: DefaultDomainSettingsRule[];
4518
- };
4527
+ declare type DefaultDomainSettings = DomainSettings;
4519
4528
 
4520
4529
  /**
4521
- * @interface
4530
+ * @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
4522
4531
  */
4523
- declare type DefaultDomainSettingsRule = {
4524
- match: string[];
4525
- options: {
4526
- downloadSettings: FileDownloadSettings;
4527
- };
4528
- };
4532
+ declare type DefaultDomainSettingsRule = DomainSettingsRule;
4529
4533
 
4530
4534
  declare interface DesktopAgent {
4531
4535
  open(app: TargetApp, context?: Context): Promise<void>;
@@ -4770,6 +4774,25 @@ declare type DisplayMetadata_3 = {
4770
4774
  readonly glyph?: string;
4771
4775
  };
4772
4776
 
4777
+ /**
4778
+ * @interface
4779
+ * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
4780
+ */
4781
+ declare type DomainSettings = {
4782
+ rules: DomainSettingsRule[];
4783
+ };
4784
+
4785
+ /**
4786
+ * @interface
4787
+ */
4788
+ declare type DomainSettingsRule = {
4789
+ match: string[];
4790
+ options: {
4791
+ downloadSettings?: FileDownloadSettings;
4792
+ api?: ApiInjection;
4793
+ };
4794
+ };
4795
+
4773
4796
  /**
4774
4797
  * Metadata returned from a preload script download request.
4775
4798
  *
@@ -6654,6 +6677,11 @@ declare type InitPlatformOptions = {
6654
6677
  interopOverride?: OverrideCallback<InteropBroker> | ConstructorOverride<InteropBroker>[];
6655
6678
  };
6656
6679
 
6680
+ /**
6681
+ * * 'none': The `fin` API will be not available from within this context.
6682
+ * * 'global': The entire `fin` API will be available from within this context.
6683
+ * @defaultValue 'global'
6684
+ */
6657
6685
  declare type InjectionType = 'none' | 'global';
6658
6686
 
6659
6687
  /**
@@ -8909,7 +8937,7 @@ declare type LayoutOptions = {
8909
8937
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
8910
8938
 
8911
8939
  /**
8912
- * @interface
8940
+ * Layout preset type.
8913
8941
  */
8914
8942
  declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
8915
8943
 
@@ -9961,6 +9989,9 @@ declare namespace OpenFin {
9961
9989
  RuntimeInfo,
9962
9990
  DefaultDomainSettings,
9963
9991
  DefaultDomainSettingsRule,
9992
+ DomainSettings,
9993
+ ApiInjection,
9994
+ DomainSettingsRule,
9964
9995
  FileDownloadBehaviorNames,
9965
9996
  FileDownloadSettings,
9966
9997
  DownloadRule,
@@ -111,6 +111,13 @@ declare type ApiClient<T extends Record<any, any>> = {
111
111
  [key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
112
112
  };
113
113
 
114
+ /**
115
+ * @interface
116
+ */
117
+ declare type ApiInjection = {
118
+ fin: InjectionType;
119
+ };
120
+
114
121
  /**
115
122
  * Generated when a new Platform's API becomes responsive.
116
123
  * @interface
@@ -1244,10 +1251,13 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1244
1251
  */
1245
1252
  apiDiagnostics: boolean;
1246
1253
  /**
1247
- * Define the file download rules.
1248
- * See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
1254
+ * @deprecated Please use {@link domainSettings} instead
1249
1255
  */
1250
1256
  defaultDomainSettings: DefaultDomainSettings;
1257
+ /**
1258
+ * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1259
+ */
1260
+ domainSettings: DomainSettings;
1251
1261
  /**
1252
1262
  * @defaultValue false
1253
1263
  *
@@ -4511,21 +4521,15 @@ declare type CustomRequestHeaders = {
4511
4521
  declare type DataChannelReadyState = RTCDataChannel['readyState'];
4512
4522
 
4513
4523
  /**
4524
+ * @deprecated Use {@link OpenFin.DomainSettings} instead.
4514
4525
  * @interface
4515
4526
  */
4516
- declare type DefaultDomainSettings = {
4517
- rules: DefaultDomainSettingsRule[];
4518
- };
4527
+ declare type DefaultDomainSettings = DomainSettings;
4519
4528
 
4520
4529
  /**
4521
- * @interface
4530
+ * @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
4522
4531
  */
4523
- declare type DefaultDomainSettingsRule = {
4524
- match: string[];
4525
- options: {
4526
- downloadSettings: FileDownloadSettings;
4527
- };
4528
- };
4532
+ declare type DefaultDomainSettingsRule = DomainSettingsRule;
4529
4533
 
4530
4534
  declare interface DesktopAgent {
4531
4535
  open(app: TargetApp, context?: Context): Promise<void>;
@@ -4770,6 +4774,25 @@ declare type DisplayMetadata_3 = {
4770
4774
  readonly glyph?: string;
4771
4775
  };
4772
4776
 
4777
+ /**
4778
+ * @interface
4779
+ * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
4780
+ */
4781
+ declare type DomainSettings = {
4782
+ rules: DomainSettingsRule[];
4783
+ };
4784
+
4785
+ /**
4786
+ * @interface
4787
+ */
4788
+ declare type DomainSettingsRule = {
4789
+ match: string[];
4790
+ options: {
4791
+ downloadSettings?: FileDownloadSettings;
4792
+ api?: ApiInjection;
4793
+ };
4794
+ };
4795
+
4773
4796
  /**
4774
4797
  * Metadata returned from a preload script download request.
4775
4798
  *
@@ -6654,6 +6677,11 @@ declare type InitPlatformOptions = {
6654
6677
  interopOverride?: OverrideCallback<InteropBroker> | ConstructorOverride<InteropBroker>[];
6655
6678
  };
6656
6679
 
6680
+ /**
6681
+ * * 'none': The `fin` API will be not available from within this context.
6682
+ * * 'global': The entire `fin` API will be available from within this context.
6683
+ * @defaultValue 'global'
6684
+ */
6657
6685
  declare type InjectionType = 'none' | 'global';
6658
6686
 
6659
6687
  /**
@@ -8909,7 +8937,7 @@ declare type LayoutOptions = {
8909
8937
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
8910
8938
 
8911
8939
  /**
8912
- * @interface
8940
+ * Layout preset type.
8913
8941
  */
8914
8942
  declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
8915
8943
 
@@ -9961,6 +9989,9 @@ declare namespace OpenFin {
9961
9989
  RuntimeInfo,
9962
9990
  DefaultDomainSettings,
9963
9991
  DefaultDomainSettingsRule,
9992
+ DomainSettings,
9993
+ ApiInjection,
9994
+ DomainSettingsRule,
9964
9995
  FileDownloadBehaviorNames,
9965
9996
  FileDownloadSettings,
9966
9997
  DownloadRule,
@@ -111,6 +111,13 @@ declare type ApiClient<T extends Record<any, any>> = {
111
111
  [key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
112
112
  };
113
113
 
114
+ /**
115
+ * @interface
116
+ */
117
+ declare type ApiInjection = {
118
+ fin: InjectionType;
119
+ };
120
+
114
121
  /**
115
122
  * Generated when a new Platform's API becomes responsive.
116
123
  * @interface
@@ -1250,10 +1257,13 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1250
1257
  */
1251
1258
  apiDiagnostics: boolean;
1252
1259
  /**
1253
- * Define the file download rules.
1254
- * See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
1260
+ * @deprecated Please use {@link domainSettings} instead
1255
1261
  */
1256
1262
  defaultDomainSettings: DefaultDomainSettings;
1263
+ /**
1264
+ * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
1265
+ */
1266
+ domainSettings: DomainSettings;
1257
1267
  /**
1258
1268
  * @defaultValue false
1259
1269
  *
@@ -4554,21 +4564,15 @@ declare type CustomRequestHeaders = {
4554
4564
  declare type DataChannelReadyState = RTCDataChannel['readyState'];
4555
4565
 
4556
4566
  /**
4567
+ * @deprecated Use {@link OpenFin.DomainSettings} instead.
4557
4568
  * @interface
4558
4569
  */
4559
- declare type DefaultDomainSettings = {
4560
- rules: DefaultDomainSettingsRule[];
4561
- };
4570
+ declare type DefaultDomainSettings = DomainSettings;
4562
4571
 
4563
4572
  /**
4564
- * @interface
4573
+ * @deprecated Use {@link OpenFin.DomainSettingsRule} instead.
4565
4574
  */
4566
- declare type DefaultDomainSettingsRule = {
4567
- match: string[];
4568
- options: {
4569
- downloadSettings: FileDownloadSettings;
4570
- };
4571
- };
4575
+ declare type DefaultDomainSettingsRule = DomainSettingsRule;
4572
4576
 
4573
4577
  declare interface DesktopAgent {
4574
4578
  open(app: TargetApp, context?: Context): Promise<void>;
@@ -4813,6 +4817,25 @@ declare type DisplayMetadata_3 = {
4813
4817
  readonly glyph?: string;
4814
4818
  };
4815
4819
 
4820
+ /**
4821
+ * @interface
4822
+ * Define the {@link https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads file download rules} and domain-based api injection rules.
4823
+ */
4824
+ declare type DomainSettings = {
4825
+ rules: DomainSettingsRule[];
4826
+ };
4827
+
4828
+ /**
4829
+ * @interface
4830
+ */
4831
+ declare type DomainSettingsRule = {
4832
+ match: string[];
4833
+ options: {
4834
+ downloadSettings?: FileDownloadSettings;
4835
+ api?: ApiInjection;
4836
+ };
4837
+ };
4838
+
4816
4839
  /**
4817
4840
  * Metadata returned from a preload script download request.
4818
4841
  *
@@ -6754,6 +6777,11 @@ declare type InitPlatformOptions = {
6754
6777
  interopOverride?: OverrideCallback<InteropBroker> | ConstructorOverride<InteropBroker>[];
6755
6778
  };
6756
6779
 
6780
+ /**
6781
+ * * 'none': The `fin` API will be not available from within this context.
6782
+ * * 'global': The entire `fin` API will be available from within this context.
6783
+ * @defaultValue 'global'
6784
+ */
6757
6785
  declare type InjectionType = 'none' | 'global';
6758
6786
 
6759
6787
  /**
@@ -9208,7 +9236,7 @@ declare type LayoutOptions = {
9208
9236
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
9209
9237
 
9210
9238
  /**
9211
- * @interface
9239
+ * Layout preset type.
9212
9240
  */
9213
9241
  declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
9214
9242
 
@@ -10278,6 +10306,9 @@ declare namespace OpenFin {
10278
10306
  RuntimeInfo,
10279
10307
  DefaultDomainSettings,
10280
10308
  DefaultDomainSettingsRule,
10309
+ DomainSettings,
10310
+ ApiInjection,
10311
+ DomainSettingsRule,
10281
10312
  FileDownloadBehaviorNames,
10282
10313
  FileDownloadSettings,
10283
10314
  DownloadRule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/node-adapter",
3
- "version": "36.78.6",
3
+ "version": "36.78.7",
4
4
  "description": "See README.md",
5
5
  "main": "out/node-adapter.js",
6
6
  "types": "out/node-adapter.d.ts",