@openfin/fdc3-api 42.100.80 → 42.100.82

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/fdc3-api.d.ts CHANGED
@@ -85,6 +85,12 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
85
85
  url: string;
86
86
  };
87
87
 
88
+ declare type AnalyticsOnlyCalls = 'window-get-web-window' | 'layout-get-by-view-identity' | 'layout-get-stack-by-view' | 'layout-add-view' | 'layout-close-view' | 'view-get-parent-layout' | 'view-get-current-stack' | 'window-is-main-window' | 'window-get-parent-application' | 'window-get-parent-window' | 'window-create-window' | 'window-get-layout' | 'window-dispatch-popup-result' | `layout-controller-${string}`;
89
+
90
+ declare type AnalyticsProtocolMap = {
91
+ [k in AnalyticsOnlyCalls]: VoidCall;
92
+ };
93
+
88
94
  declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
89
95
 
90
96
  declare type AnyStrategy = ChannelStrategy<any>;
@@ -3306,6 +3312,7 @@ declare type ClipboardApiPermissions = {
3306
3312
  writeRtf: boolean;
3307
3313
  readRtf: boolean;
3308
3314
  write: boolean;
3315
+ setClipboard: boolean;
3309
3316
  };
3310
3317
 
3311
3318
  /**
@@ -5294,6 +5301,19 @@ declare type ExtensionsInstallFailedEvent = ExtensionsEvent & {
5294
5301
  type: 'extensions-install-failed';
5295
5302
  };
5296
5303
 
5304
+ /**
5305
+ * these api calls are not implemented in the javscript api, only in the external adapter
5306
+ * If they don't exist in the external adapter they should be removed.
5307
+ */
5308
+ declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'create-proxy-socket' | 'authenticate-proxy-socket' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5309
+
5310
+ declare type ExternalAdapterOnlyCallsMap = {
5311
+ [k in ExternalAdapterOnlyCalls]: {
5312
+ request: any;
5313
+ response: any;
5314
+ };
5315
+ };
5316
+
5297
5317
  /**
5298
5318
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
5299
5319
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -10147,6 +10167,8 @@ declare namespace OpenFin {
10147
10167
  TabStack,
10148
10168
  _Window as Window,
10149
10169
  _WindowModule,
10170
+ Clipboard_2 as Clipboard,
10171
+ InterApplicationBus,
10150
10172
  InteropClient,
10151
10173
  InteropBroker,
10152
10174
  InteropModule,
@@ -12256,6 +12278,10 @@ declare interface PlatformProvider {
12256
12278
  * @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
12257
12279
  */
12258
12280
  shouldWindowPreventQuit(windowIdentity: OpenFin.Identity): Promise<boolean>;
12281
+ /**
12282
+ * Method that is called every time an error occurs when processing an action in the Platform Provider. It is meant to be overriden, as a means to debug Platform applications
12283
+ */
12284
+ onError(action: string, error: Error, callerIdentity: OpenFin.Identity): void;
12259
12285
  }
12260
12286
 
12261
12287
  /**
@@ -12822,7 +12848,7 @@ declare type PropagatedWindowEvent<TargetTopic extends string> = PropagatedEvent
12822
12848
  */
12823
12849
  declare type PropagatedWindowEventType = PropagatedEvent_3<string>['type'];
12824
12850
 
12825
- declare interface ProtocolMap extends ProtocolMapBase {
12851
+ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap & {
12826
12852
  'is-application-running': ApplicationIdentityCall<{}, boolean>;
12827
12853
  'destroy-application': ApplicationIdentityCall<{
12828
12854
  force: boolean;
@@ -12889,8 +12915,15 @@ declare interface ProtocolMap extends ProtocolMapBase {
12889
12915
  downloadLocation: string;
12890
12916
  };
12891
12917
  response: void;
12918
+ secure: true;
12919
+ namespace: 'Application';
12920
+ apiPath: '.setFileDownloadLocation';
12921
+ };
12922
+ 'get-file-download-location': ApplicationIdentityCall<{}, string> & {
12923
+ secure: true;
12924
+ namespace: 'Application';
12925
+ apiPath: '.getFileDownloadLocation';
12892
12926
  };
12893
- 'get-file-download-location': ApplicationIdentityCall<{}, string>;
12894
12927
  'show-tray-icon-popup-menu': {
12895
12928
  request: OpenFin.Identity & {
12896
12929
  options: OpenFin.ShowTrayIconPopupMenuOptions;
@@ -12930,44 +12963,79 @@ declare interface ProtocolMap extends ProtocolMapBase {
12930
12963
  'clipboard-read-image': {
12931
12964
  request: OpenFin.ReadImageClipboardRequest;
12932
12965
  response: string;
12966
+ secure: true;
12967
+ apiPath: '.readImage';
12968
+ namespace: 'Clipboard';
12933
12969
  };
12934
12970
  'clipboard-read-text': {
12935
12971
  request: {
12936
12972
  type?: OpenFin.ClipboardSelectionType;
12937
12973
  };
12938
12974
  response: string;
12975
+ secure: true;
12976
+ apiPath: '.readText';
12977
+ namespace: 'Clipboard';
12939
12978
  };
12940
12979
  'clipboard-read-html': {
12941
12980
  request: {
12942
12981
  type?: OpenFin.ClipboardSelectionType;
12943
12982
  };
12944
12983
  response: string;
12984
+ secure: true;
12985
+ apiPath: '.readHtml';
12986
+ namespace: 'Clipboard';
12945
12987
  };
12946
12988
  'clipboard-read-rtf': {
12947
12989
  request: {
12948
12990
  type?: OpenFin.ClipboardSelectionType;
12949
12991
  };
12950
12992
  response: string;
12993
+ secure: true;
12994
+ apiPath: '.readRtf';
12995
+ namespace: 'Clipboard';
12951
12996
  };
12952
12997
  'clipboard-write-image': {
12953
12998
  request: OpenFin.WriteImageClipboardRequest;
12954
12999
  response: void;
13000
+ secure: true;
13001
+ apiPath: '.writeImage';
13002
+ namespace: 'Clipboard';
12955
13003
  };
12956
13004
  'clipboard-write': {
12957
13005
  request: OpenFin.WriteAnyRequestType;
12958
13006
  response: void;
13007
+ secure: true;
13008
+ apiPath: '.write';
13009
+ namespace: 'Clipboard';
12959
13010
  };
12960
13011
  'clipboard-write-text': {
12961
13012
  request: OpenFin.WriteClipboardRequest;
12962
13013
  response: void;
13014
+ secure: true;
13015
+ apiPath: '.writeText';
13016
+ namespace: 'Clipboard';
13017
+ foo: '';
13018
+ };
13019
+ 'set-clipboard': {
13020
+ request: OpenFin.WriteClipboardRequest;
13021
+ response: void;
13022
+ secure: true;
13023
+ apiPath: '.setClipboard';
13024
+ namespace: 'Clipboard';
12963
13025
  };
12964
13026
  'clipboard-write-html': {
12965
13027
  request: OpenFin.WriteClipboardRequest;
12966
13028
  response: void;
13029
+ secure: true;
13030
+ apiPath: '.writeHtml';
13031
+ namespace: 'Clipboard';
12967
13032
  };
12968
13033
  'clipboard-write-rtf': {
12969
13034
  request: OpenFin.WriteClipboardRequest;
12970
13035
  response: void;
13036
+ secure: true;
13037
+ apiPath: '.writeRtf';
13038
+ namespace: 'Clipboard';
12971
13039
  };
12972
13040
  'get-view-window': IdentityCall<{}, OpenFin.Identity>;
12973
13041
  'create-view': IdentityCall<OpenFin.ViewCreationOptions & {
@@ -13182,6 +13250,10 @@ declare interface ProtocolMap extends ProtocolMapBase {
13182
13250
  request: any;
13183
13251
  response: any;
13184
13252
  };
13253
+ 'send-channel-result': {
13254
+ request: any;
13255
+ response: any;
13256
+ };
13185
13257
  'get-version': GetterCall<string>;
13186
13258
  'clear-cache': ApiCall<OpenFin.ClearCacheOption, void>;
13187
13259
  'delete-cache-request': VoidCall;
@@ -13231,7 +13303,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
13231
13303
  action: string;
13232
13304
  runtimes: string[];
13233
13305
  }>;
13234
- 'get-installed-apps': GetterCall<OpenFin.InstalledApps>;
13306
+ 'get-installed-apps': GetterCall<OpenFin.InstalledApps> & {
13307
+ secure: true;
13308
+ apiPath: '.getInstalledApps';
13309
+ namespace: 'System';
13310
+ };
13235
13311
  'view-log': ApiCall<OpenFin.GetLogRequestType, string>;
13236
13312
  'get-machine-id': GetterCall<string>;
13237
13313
  'get-min-log-level': GetterCall<OpenFin.LogLevel>;
@@ -13244,8 +13320,16 @@ declare interface ProtocolMap extends ProtocolMapBase {
13244
13320
  'get-runtime-info': GetterCall<OpenFin.RuntimeInfo>;
13245
13321
  'get-rvm-info': GetterCall<OpenFin.RVMInfo>;
13246
13322
  'get-host-specs': GetterCall<OpenFin.HostSpecs>;
13247
- 'get-os-info': GetterCall<OpenFin.OSInfo>;
13248
- 'launch-external-process': ApiCall<OpenFin.ExternalProcessRequestType, OpenFin.Identity>;
13323
+ 'get-os-info': GetterCall<OpenFin.OSInfo> & {
13324
+ secure: true;
13325
+ apiPath: '.getOSInfo';
13326
+ namespace: 'System';
13327
+ };
13328
+ 'launch-external-process': ApiCall<OpenFin.ExternalProcessRequestType, OpenFin.Identity> & {
13329
+ secure: true;
13330
+ apiPath: '.launchExternalProcess';
13331
+ namespace: 'System';
13332
+ };
13249
13333
  'monitor-external-process': ApiCall<OpenFin.ExternalProcessInfo, OpenFin.Identity>;
13250
13334
  'write-to-log': ApiCall<{
13251
13335
  level: string;
@@ -13253,25 +13337,48 @@ declare interface ProtocolMap extends ProtocolMapBase {
13253
13337
  }, void>;
13254
13338
  'open-url-with-browser': ApiCall<{
13255
13339
  url: string;
13256
- }, void>;
13257
- 'register-custom-protocol': ApiCall<OpenFin.CustomProtocolOptions, void>;
13340
+ }, void> & {
13341
+ secure: true;
13342
+ apiPath: '.openUrlWithBrowser';
13343
+ namespace: 'System';
13344
+ };
13345
+ 'register-custom-protocol': ApiCall<OpenFin.CustomProtocolOptions, void> & {
13346
+ secure: true;
13347
+ apiPath: '.registerCustomProtocol';
13348
+ namespace: 'System';
13349
+ };
13258
13350
  'unregister-custom-protocol': ApiCall<{
13259
13351
  protocolName: string;
13260
- }, void>;
13352
+ }, void> & {
13353
+ secure: true;
13354
+ apiPath: '.unregisterCustomProtocol';
13355
+ namespace: 'System';
13356
+ };
13261
13357
  'get-custom-protocol-state': ApiCall<{
13262
13358
  protocolName: string;
13263
- }, OpenFin.CustomProtocolState>;
13359
+ }, OpenFin.CustomProtocolState> & {
13360
+ secure: true;
13361
+ apiPath: '.getCustomProtocolState';
13362
+ namespace: 'System';
13363
+ };
13264
13364
  'release-external-process': ApiCall<{
13265
13365
  uuid: string;
13266
13366
  }, void>;
13267
13367
  'show-developer-tools': ApiCall<OpenFin.Identity, void>;
13268
- 'terminate-external-process': ApiCall<OpenFin.TerminateExternalRequestType, void>;
13368
+ 'terminate-external-process': ApiCall<OpenFin.TerminateExternalRequestType, void> & {
13369
+ secure: true;
13370
+ apiPath: '.terminateExternalProcess';
13371
+ namespace: 'System';
13372
+ };
13269
13373
  'update-proxy': ApiCall<OpenFin.ProxyConfig, void>;
13270
13374
  'download-asset': {
13271
13375
  request: OpenFin.AppAssetInfo & {
13272
13376
  downloadId: string;
13273
13377
  };
13274
13378
  response: void;
13379
+ secure: true;
13380
+ apiPath: '.downloadAsset';
13381
+ namespace: 'System';
13275
13382
  };
13276
13383
  'download-runtime': {
13277
13384
  request: OpenFin.RuntimeDownloadOptions & {
@@ -13300,7 +13407,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
13300
13407
  rootKey: string;
13301
13408
  subkey: string;
13302
13409
  value: string;
13303
- }, OpenFin.RegistryInfo>;
13410
+ }, OpenFin.RegistryInfo> & {
13411
+ secure: true;
13412
+ apiPath: '.readRegistryValue';
13413
+ namespace: 'System';
13414
+ };
13304
13415
  'register-external-connection': ApiCall<{
13305
13416
  uuid: string;
13306
13417
  }, OpenFin.ExternalConnection>;
@@ -13334,25 +13445,48 @@ declare interface ProtocolMap extends ProtocolMapBase {
13334
13445
  permissions: any;
13335
13446
  };
13336
13447
  response: OpenFin.NativeWindowIntegrationProviderAuthorization;
13448
+ secure: true;
13449
+ apiPath: '.enableNativeWindowIntegrationProvider';
13450
+ namespace: 'System';
13337
13451
  };
13338
13452
  'register-usage': ApiCall<OpenFin.RegisterUsageData, void>;
13339
13453
  'system-get-printers': GetterCall<OpenFin.PrinterInfo[]>;
13340
13454
  'system-update-process-logging-options': ApiCall<{
13341
13455
  options: OpenFin.ProcessLoggingOptions;
13342
13456
  }, void>;
13343
- 'get-domain-settings': ApiCall<void, OpenFin.DomainSettings>;
13457
+ 'get-domain-settings': ApiCall<void, OpenFin.DomainSettings> & {
13458
+ secure: true;
13459
+ apiPath: '.getDomainSettings';
13460
+ namespace: 'System';
13461
+ };
13344
13462
  'serve-asset': ApiCall<{
13345
13463
  options: OpenFin.ServeAssetOptions;
13346
- }, OpenFin.ServedAssetInfo>;
13464
+ }, OpenFin.ServedAssetInfo> & {
13465
+ secure: true;
13466
+ apiPath: '.serveAsset';
13467
+ namespace: 'System';
13468
+ };
13347
13469
  'set-domain-settings': ApiCall<{
13348
13470
  domainSettings: OpenFin.DomainSettings;
13349
- }, void>;
13471
+ }, void> & {
13472
+ secure: true;
13473
+ apiPath: '.setDomainSettings';
13474
+ namespace: 'System';
13475
+ };
13350
13476
  'get-current-domain-settings': ApiCall<{
13351
13477
  identity: OpenFin.Identity;
13352
- }, OpenFin.ResolvedDomainSettings>;
13478
+ }, OpenFin.ResolvedDomainSettings> & {
13479
+ secure: true;
13480
+ apiPath: '.getCurrentDomainSettings';
13481
+ namespace: 'System';
13482
+ };
13353
13483
  'resolve-domain-settings': ApiCall<{
13354
13484
  url: string;
13355
- }, OpenFin.ResolvedDomainSettings>;
13485
+ }, OpenFin.ResolvedDomainSettings> & {
13486
+ secure: true;
13487
+ apiPath: '.resolveDomainSettings';
13488
+ namespace: 'System';
13489
+ };
13356
13490
  'system-register-shutdown-handler': VoidCall;
13357
13491
  'get-permissions': GetterCall<any>;
13358
13492
  'refresh-extensions': {
@@ -13538,15 +13672,27 @@ declare interface ProtocolMap extends ProtocolMapBase {
13538
13672
  };
13539
13673
  response: void;
13540
13674
  };
13541
- }
13542
-
13543
- declare interface ProtocolMapBase {
13544
- [action: string]: {
13545
- request: any;
13546
- response: any;
13547
- specialResponse?: any;
13675
+ 'subscribe-to-desktop-event': {
13676
+ request: {
13677
+ topic: string;
13678
+ type: string;
13679
+ uuid?: string;
13680
+ name?: string;
13681
+ timestamp?: number;
13682
+ };
13683
+ response: void;
13548
13684
  };
13549
- }
13685
+ 'unsubscribe-to-desktop-event': {
13686
+ request: {
13687
+ topic: string;
13688
+ type: string;
13689
+ uuid?: string;
13690
+ name?: string;
13691
+ timestamp?: number;
13692
+ };
13693
+ response: void;
13694
+ };
13695
+ };
13550
13696
 
13551
13697
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
13552
13698
 
@@ -14112,7 +14258,9 @@ declare type SecurityRealmEvent = BaseEvent_9 & {
14112
14258
 
14113
14259
  declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
14114
14260
  data: ProtocolMap[T]['response'];
14115
- } & ProtocolMap[T]['specialResponse']>;
14261
+ } & (ProtocolMap[T] extends {
14262
+ specialResponse: infer U;
14263
+ } ? U : {})>;
14116
14264
 
14117
14265
  /**
14118
14266
  * @interface
@@ -16131,7 +16279,6 @@ declare type SystemEventType = EventType_8;
16131
16279
  */
16132
16280
  declare type SystemPermissions = {
16133
16281
  getOSInfo: boolean;
16134
- getAllExternalWindows: boolean;
16135
16282
  setDomainSettings: boolean;
16136
16283
  getDomainSettings: boolean;
16137
16284
  getCurrentDomainSettings: boolean;
@@ -16171,6 +16318,10 @@ declare type SystemPermissions = {
16171
16318
  enabled: boolean;
16172
16319
  protocols: string[];
16173
16320
  };
16321
+ getInstalledApps: boolean;
16322
+ downloadAsset: boolean;
16323
+ serveAsset: boolean;
16324
+ enableNativeWindowIntegrationProvider: boolean;
16174
16325
  };
16175
16326
 
16176
16327
  /**
@@ -16489,7 +16640,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
16489
16640
  private connectRemote;
16490
16641
  connectByPort(config: ExistingConnectConfig): Promise<void>;
16491
16642
  private authorize;
16492
- sendAction<T extends keyof ProtocolMap = string>(action: T, payload?: ProtocolMap[T]['request'], uncorrelated?: boolean): SentMessage<SendActionResponse<T>>;
16643
+ sendAction<T extends keyof ProtocolMap>(action: T, payload?: ProtocolMap[T]['request'], uncorrelated?: boolean): SentMessage<SendActionResponse<T>>;
16493
16644
  protected nackHandler(payloadOrMessage: RuntimeErrorPayload | string, reject: Function, callSites?: NodeJS.CallSite[]): void;
16494
16645
  ferryAction(origData: any): Promise<Message<any>>;
16495
16646
  registerMessageHandler(handler: MessageHandler): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/fdc3-api",
3
- "version": "42.100.80",
3
+ "version": "42.100.82",
4
4
  "description": "OpenFin fdc3 module utilities and types.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "private": false,