From 4bdcc2d058377478f1d3252be717ac6f01fbdb74 Mon Sep 17 00:00:00 2001
From: Li Cui
Date: Wed, 8 May 2019 20:30:38 -0400
Subject: [PATCH] RUN-5260 release 41 version for openfin (#35269)
* create v39 folder
* Update to v41
* delete unused file
* delete unused file
* delete unused file
* delete unused file
* delete unused file
* add path mapping for v39
---
.../_v2/api/application/application.d.ts | 30 +-
types/openfin/_v2/api/events/window.d.ts | 6 +
.../_v2/api/interappbus/interappbus.d.ts | 2 +-
types/openfin/_v2/api/window/window.d.ts | 21 +-
.../openfin/_v2/api/window/windowOption.d.ts | 6 +
.../openfin/_v2/environment/environment.d.ts | 2 +
types/openfin/_v2/environment/node-env.d.ts | 2 +
.../openfin/_v2/environment/openfin-env.d.ts | 2 +
types/openfin/_v2/launcher/util.d.ts | 2 -
types/openfin/_v2/launcher/win-launch.d.ts | 2 +-
types/openfin/_v2/transport/wire.d.ts | 5 +
types/openfin/index.d.ts | 4 +-
.../v39/_v2/api/application/application.d.ts | 396 +++++
.../api/application/applicationOption.d.ts | 50 +
types/openfin/v39/_v2/api/base.d.ts | 45 +
.../v39/_v2/api/clipboard/clipboard.d.ts | 70 +
.../v39/_v2/api/clipboard/write-request.d.ts | 12 +
.../v39/_v2/api/events/application.d.ts | 56 +
types/openfin/v39/_v2/api/events/base.d.ts | 18 +
types/openfin/v39/_v2/api/events/channel.d.ts | 10 +
.../v39/_v2/api/events/emitterMap.d.ts | 15 +
.../v39/_v2/api/events/eventAggregator.d.ts | 5 +
.../_v2/api/events/externalApplication.d.ts | 5 +
types/openfin/v39/_v2/api/events/frame.d.ts | 9 +
.../v39/_v2/api/events/globalHotkey.d.ts | 11 +
.../v39/_v2/api/events/notifications.d.ts | 8 +
types/openfin/v39/_v2/api/events/system.d.ts | 22 +
types/openfin/v39/_v2/api/events/window.d.ts | 176 +++
.../external-application.d.ts | 122 ++
types/openfin/v39/_v2/api/fin.d.ts | 27 +
types/openfin/v39/_v2/api/frame/frame.d.ts | 147 ++
.../v39/_v2/api/global-hotkey/index.d.ts | 38 +
.../_v2/api/interappbus/channel/channel.d.ts | 33 +
.../_v2/api/interappbus/channel/client.d.ts | 11 +
.../_v2/api/interappbus/channel/index.d.ts | 33 +
.../_v2/api/interappbus/channel/provider.d.ts | 17 +
.../v39/_v2/api/interappbus/interappbus.d.ts | 80 +
.../_v2/api/notification/notification.d.ts | 81 +
.../v39/_v2/api/system/application.d.ts | 5 +
.../v39/_v2/api/system/clearCacheOption.d.ts | 6 +
types/openfin/v39/_v2/api/system/cookie.d.ts | 8 +
.../_v2/api/system/crashReporterOption.d.ts | 4 +
.../v39/_v2/api/system/download-asset.d.ts | 18 +
.../v39/_v2/api/system/download-preload.d.ts | 8 +
types/openfin/v39/_v2/api/system/entity.d.ts | 11 +
.../v39/_v2/api/system/external-process.d.ts | 36 +
.../v39/_v2/api/system/host-specs.d.ts | 24 +
types/openfin/v39/_v2/api/system/log.d.ts | 11 +
types/openfin/v39/_v2/api/system/monitor.d.ts | 39 +
types/openfin/v39/_v2/api/system/point.d.ts | 8 +
types/openfin/v39/_v2/api/system/process.d.ts | 15 +
types/openfin/v39/_v2/api/system/proxy.d.ts | 15 +
.../v39/_v2/api/system/registry-info.d.ts | 7 +
.../v39/_v2/api/system/runtime-info.d.ts | 7 +
types/openfin/v39/_v2/api/system/rvm.d.ts | 8 +
types/openfin/v39/_v2/api/system/system.d.ts | 764 +++++++++
types/openfin/v39/_v2/api/system/window.d.ts | 16 +
.../v39/_v2/api/window/anchor-type.d.ts | 1 +
.../v39/_v2/api/window/bounds-changed.d.ts | 14 +
types/openfin/v39/_v2/api/window/bounds.d.ts | 9 +
.../v39/_v2/api/window/transition.d.ts | 24 +
types/openfin/v39/_v2/api/window/window.d.ts | 745 +++++++++
.../v39/_v2/api/window/windowOption.d.ts | 46 +
.../v39/_v2/environment/environment.d.ts | 10 +
.../openfin/v39/_v2/environment/node-env.d.ts | 11 +
.../v39/_v2/environment/openfin-env.d.ts | 11 +
.../_v2/environment/openfin-renderer-api.d.ts | 6 +
types/openfin/v39/_v2/identity.d.ts | 4 +
types/openfin/v39/_v2/launcher/launcher.d.ts | 15 +
.../openfin/v39/_v2/launcher/nix-launch.d.ts | 14 +
types/openfin/v39/_v2/launcher/util.d.ts | 8 +
.../openfin/v39/_v2/launcher/win-launch.d.ts | 4 +
types/openfin/v39/_v2/main.d.ts | 11 +
types/openfin/v39/_v2/of-main.d.ts | 1 +
types/openfin/v39/_v2/transport/elipc.d.ts | 13 +
.../v39/_v2/transport/port-discovery.d.ts | 17 +
.../v39/_v2/transport/transport-errors.d.ts | 17 +
.../openfin/v39/_v2/transport/transport.d.ts | 65 +
.../openfin/v39/_v2/transport/websocket.d.ts | 14 +
types/openfin/v39/_v2/transport/wire.d.ts | 71 +
.../v39/_v2/util/normalize-config.d.ts | 3 +
types/openfin/v39/_v2/util/promises.d.ts | 5 +
types/openfin/v39/_v2/util/ref-counter.d.ts | 7 +
types/openfin/v39/index.d.ts | 1368 +++++++++++++++++
types/openfin/v39/openfin-tests.ts | 913 +++++++++++
types/openfin/v39/tsconfig.json | 89 ++
types/openfin/v39/tslint.json | 18 +
87 files changed, 6105 insertions(+), 20 deletions(-)
create mode 100644 types/openfin/v39/_v2/api/application/application.d.ts
create mode 100644 types/openfin/v39/_v2/api/application/applicationOption.d.ts
create mode 100644 types/openfin/v39/_v2/api/base.d.ts
create mode 100644 types/openfin/v39/_v2/api/clipboard/clipboard.d.ts
create mode 100644 types/openfin/v39/_v2/api/clipboard/write-request.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/application.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/base.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/channel.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/emitterMap.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/eventAggregator.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/externalApplication.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/frame.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/globalHotkey.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/notifications.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/system.d.ts
create mode 100644 types/openfin/v39/_v2/api/events/window.d.ts
create mode 100644 types/openfin/v39/_v2/api/external-application/external-application.d.ts
create mode 100644 types/openfin/v39/_v2/api/fin.d.ts
create mode 100644 types/openfin/v39/_v2/api/frame/frame.d.ts
create mode 100644 types/openfin/v39/_v2/api/global-hotkey/index.d.ts
create mode 100644 types/openfin/v39/_v2/api/interappbus/channel/channel.d.ts
create mode 100644 types/openfin/v39/_v2/api/interappbus/channel/client.d.ts
create mode 100644 types/openfin/v39/_v2/api/interappbus/channel/index.d.ts
create mode 100644 types/openfin/v39/_v2/api/interappbus/channel/provider.d.ts
create mode 100644 types/openfin/v39/_v2/api/interappbus/interappbus.d.ts
create mode 100644 types/openfin/v39/_v2/api/notification/notification.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/application.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/clearCacheOption.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/cookie.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/crashReporterOption.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/download-asset.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/download-preload.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/entity.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/external-process.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/host-specs.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/log.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/monitor.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/point.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/process.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/proxy.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/registry-info.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/runtime-info.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/rvm.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/system.d.ts
create mode 100644 types/openfin/v39/_v2/api/system/window.d.ts
create mode 100644 types/openfin/v39/_v2/api/window/anchor-type.d.ts
create mode 100644 types/openfin/v39/_v2/api/window/bounds-changed.d.ts
create mode 100644 types/openfin/v39/_v2/api/window/bounds.d.ts
create mode 100644 types/openfin/v39/_v2/api/window/transition.d.ts
create mode 100644 types/openfin/v39/_v2/api/window/window.d.ts
create mode 100644 types/openfin/v39/_v2/api/window/windowOption.d.ts
create mode 100644 types/openfin/v39/_v2/environment/environment.d.ts
create mode 100644 types/openfin/v39/_v2/environment/node-env.d.ts
create mode 100644 types/openfin/v39/_v2/environment/openfin-env.d.ts
create mode 100644 types/openfin/v39/_v2/environment/openfin-renderer-api.d.ts
create mode 100644 types/openfin/v39/_v2/identity.d.ts
create mode 100644 types/openfin/v39/_v2/launcher/launcher.d.ts
create mode 100644 types/openfin/v39/_v2/launcher/nix-launch.d.ts
create mode 100644 types/openfin/v39/_v2/launcher/util.d.ts
create mode 100644 types/openfin/v39/_v2/launcher/win-launch.d.ts
create mode 100644 types/openfin/v39/_v2/main.d.ts
create mode 100644 types/openfin/v39/_v2/of-main.d.ts
create mode 100644 types/openfin/v39/_v2/transport/elipc.d.ts
create mode 100644 types/openfin/v39/_v2/transport/port-discovery.d.ts
create mode 100644 types/openfin/v39/_v2/transport/transport-errors.d.ts
create mode 100644 types/openfin/v39/_v2/transport/transport.d.ts
create mode 100644 types/openfin/v39/_v2/transport/websocket.d.ts
create mode 100644 types/openfin/v39/_v2/transport/wire.d.ts
create mode 100644 types/openfin/v39/_v2/util/normalize-config.d.ts
create mode 100644 types/openfin/v39/_v2/util/promises.d.ts
create mode 100644 types/openfin/v39/_v2/util/ref-counter.d.ts
create mode 100644 types/openfin/v39/index.d.ts
create mode 100644 types/openfin/v39/openfin-tests.ts
create mode 100644 types/openfin/v39/tsconfig.json
create mode 100644 types/openfin/v39/tslint.json
diff --git a/types/openfin/_v2/api/application/application.d.ts b/types/openfin/_v2/api/application/application.d.ts
index 677e1cd992..cbe622531d 100644
--- a/types/openfin/_v2/api/application/application.d.ts
+++ b/types/openfin/_v2/api/application/application.d.ts
@@ -38,17 +38,17 @@ export interface TrayInfo {
y: number;
}
/**
- * @typedef {object} Application~options
+ * @typedef {object} ApplicationOption
* @summary Application creation options.
- * @desc This is the options object required by {@link Application.create Application.create}.
+ * @desc This is the options object required by {@link Application.start Application.start}.
*
* The following options are required:
- * * `uuid` is required in the app manifest as well as by {@link Application.create Application.create}
- * * `name` is optional in the app manifest but required by {@link Application.create Application.create}
- * * `url` is optional in both the app manifest {@link Application.create Application.create} and but is usually given
+ * * `uuid` is required in the app manifest as well as by {@link Application.start Application.start}
+ * * `name` is optional in the app manifest but required by {@link Application.start Application.start}
+ * * `url` is optional in both the app manifest {@link Application.start Application.start} and but is usually given
* (defaults to `"about:blank"` when omitted).
*
- * _This jsdoc typedef mirrors the `ApplicationOptions` TypeScript interface in `@types/openfin`._
+ * _This jsdoc typedef mirrors the `ApplicationOption` TypeScript interface in `@types/openfin`._
*
* **IMPORTANT NOTE:**
* This object inherits all the properties of the window creation {@link Window~options options} object,
@@ -116,6 +116,13 @@ export default class ApplicationModule extends Base {
*/
wrapSync(identity: Identity): Application;
private _create;
+ /**
+ * DEPRECATED method to create a new Application. Use {@link Application.start} instead.
+ * @param { ApplicationOption } appOptions
+ * @return {Promise.}
+ * @tutorial Application.create
+ * @ignore
+ */
create(appOptions: ApplicationOption): Promise;
/**
* Creates and starts a new Application.
@@ -148,6 +155,7 @@ export default class ApplicationModule extends Base {
*/
startFromManifest(manifestUrl: string): Promise;
createFromManifest(manifestUrl: string): Promise;
+ private _createFromManifest;
}
/**
* @classdesc An object representing an application. Allows the developer to create,
@@ -320,7 +328,15 @@ export declare class Application extends EmitterBase {
* @tutorial Application.restart
*/
restart(): Promise;
+ /**
+ * DEPRECATED method to run the application.
+ * Needed when starting application via {@link Application.create}, but NOT needed when starting via {@link Application.start}.
+ * @return {Promise.}
+ * @tutorial Application.run
+ * @ignore
+ */
run(): Promise;
+ private _run;
/**
* Instructs the RVM to schedule one restart of the application.
* @return {Promise.}
@@ -342,7 +358,7 @@ export declare class Application extends EmitterBase {
*/
setTrayIcon(iconUrl: string): Promise;
/**
- * Sets new application's shortcut configuration.
+ * Sets new application's shortcut configuration. Windows only.
* @param { ShortCutConfig } config New application's shortcut configuration.
* @param { boolean } [config.desktop] - Enable/disable desktop shortcut.
* @param { boolean } [config.startMenu] - Enable/disable start menu shortcut.
diff --git a/types/openfin/_v2/api/events/window.d.ts b/types/openfin/_v2/api/events/window.d.ts
index 8899ae0c5a..45d59b0f41 100644
--- a/types/openfin/_v2/api/events/window.d.ts
+++ b/types/openfin/_v2/api/events/window.d.ts
@@ -1,5 +1,6 @@
import { CrashedEvent } from './application';
import { WindowEvent, BaseEventMap } from './base';
+import { WindowOptionDiff } from '../window/windowOption';
export declare type SpecificWindowEvent = WindowEvent<'window', Type>;
export interface WindowAlertRequestedEvent extends WindowEvent {
message: string;
@@ -25,6 +26,9 @@ export interface WindowNavigationRejectedEvent extends WindowEvent<
export interface WindowReloadedEvent extends WindowEvent {
url: string;
}
+export interface WindowOptionsChangedEvent extends WindowEvent {
+ diff: WindowOptionDiff;
+}
export interface WindowExternalProcessExitedEvent extends WindowEvent {
processUuid: string;
exitCode: number;
@@ -126,6 +130,7 @@ export interface WindowEventMapping extends BaseE
'maximized': WindowEvent;
'minimized': WindowEvent;
'navigation-rejected': WindowNavigationRejectedEvent;
+ 'options-changed': WindowOptionsChangedEvent;
'preload-scripts-state-changed': WindowPreloadScriptsStateChangeEvent;
'preload-scripts-state-changing': WindowPreloadScriptsStateChangeEvent;
'resource-load-failed': WindowResourceLoadFailedEvent;
@@ -158,6 +163,7 @@ export interface PropagatedWindowEventMapping ext
'window-maximized': WindowEvent;
'window-minimized': WindowEvent;
'window-navigation-rejected': WindowNavigationRejectedEvent;
+ 'window-options-changed': WindowOptionsChangedEvent;
'window-preload-scripts-state-changed': WindowPreloadScriptsStateChangeEvent;
'window-preload-scripts-state-changing': WindowPreloadScriptsStateChangedEvent;
'window-resource-load-failed': WindowResourceLoadFailedEvent;
diff --git a/types/openfin/_v2/api/interappbus/interappbus.d.ts b/types/openfin/_v2/api/interappbus/interappbus.d.ts
index 12fa146fe4..3c5c280191 100644
--- a/types/openfin/_v2/api/interappbus/interappbus.d.ts
+++ b/types/openfin/_v2/api/interappbus/interappbus.d.ts
@@ -32,7 +32,7 @@ export default class InterApplicationBus extends Base {
publish(topic: string, message: any): Promise;
/**
* Sends a message to a specific application on a specific topic.
- * @param { Identity } destination The uuid of the application to which the message is sent
+ * @param { Identity } destination The identity of the application to which the message is sent
* @param { string } topic The topic on which the message is sent
* @param { any } message The message to be sent. Can be either a primitive data
* type (string, number, or boolean) or composite data type (object, array) that
diff --git a/types/openfin/_v2/api/window/window.d.ts b/types/openfin/_v2/api/window/window.d.ts
index 14ac2bf320..9dfd7df9a7 100644
--- a/types/openfin/_v2/api/window/window.d.ts
+++ b/types/openfin/_v2/api/window/window.d.ts
@@ -257,7 +257,7 @@ export interface Area {
*
* @property {string} [taskbarIconGroup=] - _Windows_.
* Specify a taskbar group for the window.
- * _If omitted, defaults to app's uuid (`fin.desktop.Application.getCurrent().uuid`)._
+ * _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
*
* @property {string} [url="about:blank"]
* The URL of the window.
@@ -423,7 +423,7 @@ export declare class _Window extends EmitterBase {
*/
getAllFrames(): Promise>;
/**
- * Gets the current bounds (top, left, width, height) of the window.
+ * Gets the current bounds (top, bottom, right, left, width, height) of the window.
* @return {Promise.}
* @tutorial Window.getBounds
*/
@@ -499,7 +499,7 @@ export declare class _Window extends EmitterBase {
*/
executeJavaScript(code: string): Promise;
/**
- * Flashes the window’s frame and taskbar icon until stopFlashing is called.
+ * Flashes the window’s frame and taskbar icon until stopFlashing is called or until a focus event is fired.
* @return {Promise.}
* @tutorial Window.flash
*/
@@ -511,8 +511,8 @@ export declare class _Window extends EmitterBase {
*/
stopFlashing(): Promise;
/**
- * Retrieves an array containing wrapped fin.desktop.Windows that are grouped with this
- * window. If a window is not in a group an empty array is returned. Please note that
+ * Retrieves an array containing wrapped fin.Windows that are grouped with this window.
+ * If a window is not in a group an empty array is returned. Please note that
* calling window is included in the result array.
* @return {Promise.>}
* @tutorial Window.getGroup
@@ -556,6 +556,12 @@ export declare class _Window extends EmitterBase {
* @tutorial Window.getState
*/
getState(): Promise;
+ /**
+ * Gets the [Window Object](https://developer.mozilla.org/en-US/docs/Web/API/Window) previously getNativeWindow
+ * @return {object}
+ * @tutorial Window.getWebWindow
+ */
+ getWebWindow(): Window;
/**
* Determines if the window is a main window.
* @return {boolean}
@@ -690,7 +696,8 @@ export declare class _Window extends EmitterBase {
*/
showDeveloperTools(): Promise;
/**
- * Updates the window using the passed options
+ * Updates the window using the passed options.
+ * Values that are objects are deep-merged, overwriting only the values that are provided.
* @param {*} options Changes a window's options that were defined upon creation. See tutorial
* @return {Promise.}
* @tutorial Window.updateOptions
@@ -718,7 +725,7 @@ export declare class _Window extends EmitterBase {
*/
setZoomLevel(level: number): Promise;
/**
- * Navigates the window to a specified URL.
+ * Navigates the window to a specified URL. The url must contain the protocol prefix such as http:// or https://.
* @param {string} url - The URL to navigate the window to.
* @return {Promise.}
* @tutorial Window.navigate
diff --git a/types/openfin/_v2/api/window/windowOption.d.ts b/types/openfin/_v2/api/window/windowOption.d.ts
index faab275187..832b51ef19 100644
--- a/types/openfin/_v2/api/window/windowOption.d.ts
+++ b/types/openfin/_v2/api/window/windowOption.d.ts
@@ -44,3 +44,9 @@ export interface CustomRequestHeaders {
urlPatterns: Array;
headers: Array