@types/openfin
Advanced tools
Comparing version
@@ -22,3 +22,3 @@ // Type definitions for OpenFin API 17.0 | ||
* without the need to include additional source files. You can treat the "fin" namespace as you would the "window", "navigator" or "document" objects. | ||
**/ | ||
*/ | ||
declare namespace fin { | ||
@@ -42,3 +42,5 @@ const desktop: OpenFinDesktop; | ||
*/ | ||
new (options: ApplicationOptions, callback?: (successObj: { httpResponseCode: number }) => void, | ||
new ( | ||
options: ApplicationOptions, | ||
callback?: (successObj: { httpResponseCode: number }) => void, | ||
errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): OpenFinApplication; | ||
@@ -67,3 +69,4 @@ /** | ||
*/ | ||
addEventListener(type: OpenFinApplicationEventType, | ||
addEventListener( | ||
type: OpenFinApplicationEventType, | ||
listener: (event: ApplicationBaseEvent | ||
@@ -76,3 +79,4 @@ | TrayIconClickedEvent | ||
| WindowEndLoadEvent) => void, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
callback?: () => void, | ||
errorCallback?: (reason: string) => void): void; | ||
/** | ||
@@ -117,3 +121,4 @@ * Closes the application and any child windows created by the application. | ||
*/ | ||
removeEventListener(type: OpenFinApplicationEventType, | ||
removeEventListener( | ||
type: OpenFinApplicationEventType, | ||
previouslyRegisteredListener: (event: ApplicationBaseEvent | ||
@@ -126,3 +131,4 @@ | TrayIconClickedEvent | ||
| WindowEndLoadEvent) => any, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
callback?: () => void, | ||
errorCallback?: (reason: string) => void): void; | ||
/** | ||
@@ -432,3 +438,6 @@ * Removes the application's icon from the tray. | ||
*/ | ||
addEventListener(type: OpenFinExternalApplicationEventType, listener: () => void, callback?: () => void, | ||
addEventListener( | ||
type: OpenFinExternalApplicationEventType, | ||
listener: () => void, | ||
callback?: () => void, | ||
errorCallback?: (reason: string, error: ErrorInfo) => void): void; | ||
@@ -438,3 +447,6 @@ /** | ||
*/ | ||
removeEventListener(type: OpenFinExternalApplicationEventType, listener: () => void, callback?: () => void, | ||
removeEventListener( | ||
type: OpenFinExternalApplicationEventType, | ||
listener: () => void, | ||
callback?: () => void, | ||
errorCallback?: (reason: string, error: ErrorInfo) => void): void; | ||
@@ -477,13 +489,31 @@ } | ||
*/ | ||
subscribe(senderUuid: string, name: string, topic: string, listener: (message: any, uuid: string, name: string) => void, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
subscribe(senderUuid: string, topic: string, listener: (message: any, uuid: string, name: string) => void, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
subscribe( | ||
senderUuid: string, | ||
name: string, | ||
topic: string, | ||
listener: (message: any, uuid: string, name: string) => void, | ||
callback?: () => void, | ||
errorCallback?: (reason: string) => void): void; | ||
subscribe( | ||
senderUuid: string, | ||
topic: string, | ||
listener: (message: any, uuid: string, name: string) => void, | ||
callback?: () => void, | ||
errorCallback?: (reason: string) => void): void; | ||
/** | ||
* Unsubscribes to messages from the specified application on the specified topic. | ||
*/ | ||
unsubscribe(senderUuid: string, name: string, topic: string, listener: (message: any, uuid: string, name: string) => void, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
unsubscribe(senderUuid: string, topic: string, listener: (message: any, uuid: string, name: string) => void, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
unsubscribe( | ||
senderUuid: string, | ||
name: string, | ||
topic: string, | ||
listener: (message: any, uuid: string, name: string) => void, | ||
callback?: () => void, | ||
errorCallback?: (reason: string) => void): void; | ||
unsubscribe( | ||
senderUuid: string, | ||
topic: string, | ||
listener: (message: any, uuid: string, name: string) => void, | ||
callback?: () => void, | ||
errorCallback?: (reason: string) => void): void; | ||
} | ||
@@ -582,5 +612,7 @@ | ||
*/ | ||
addEventListener(type: OpenFinSystemEventType, | ||
addEventListener( | ||
type: OpenFinSystemEventType, | ||
listener: (event: SystemBaseEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent) => void, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
callback?: () => void, | ||
errorCallback?: (reason: string) => void): void; | ||
/** | ||
@@ -598,4 +630,7 @@ * Clears cached data containing window state/positions, | ||
*/ | ||
downloadAsset(assetObj: AppAssetInfo, progressListener?: (progress: { downloadedBytes: number, totalBytes: number }) => void, | ||
callback?: (successObj: { path: string }) => void, errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): void; | ||
downloadAsset( | ||
assetObj: AppAssetInfo, | ||
progressListener?: (progress: { downloadedBytes: number, totalBytes: number }) => void, | ||
callback?: (successObj: { path: string }) => void, | ||
errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): void; | ||
/** | ||
@@ -685,12 +720,15 @@ * Exits the Runtime. | ||
*/ | ||
registerExternalConnection(uuid: string, callback?: (detail: { | ||
/** | ||
* this will be unique each time | ||
*/ | ||
token: string; | ||
/** | ||
* "remote-connection-uuid" | ||
*/ | ||
uuid: string; | ||
}) => void, errorCallback?: (reason: string) => void): void; | ||
registerExternalConnection( | ||
uuid: string, | ||
callback?: (detail: { | ||
/** | ||
* this will be unique each time | ||
*/ | ||
token: string; | ||
/** | ||
* "remote-connection-uuid" | ||
*/ | ||
uuid: string; | ||
}) => void, | ||
errorCallback?: (reason: string) => void): void; | ||
/** | ||
@@ -703,3 +741,4 @@ * Removes the process entry for the passed UUID obtained from a prior call of fin.desktop.System.launchExternalProcess(). | ||
*/ | ||
removeEventListener(type: OpenFinSystemEventType, | ||
removeEventListener( | ||
type: OpenFinSystemEventType, | ||
listener: (event: SystemBaseEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent) => void, | ||
@@ -714,5 +753,12 @@ callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
*/ | ||
terminateExternalProcess(processUuid: string, timeout: number, killTree: boolean, callback?: (info: { result: "clean" | "terminated" | "failed" }) => void, | ||
terminateExternalProcess( | ||
processUuid: string, | ||
timeout: number, | ||
killTree: boolean, | ||
callback?: (info: { result: "clean" | "terminated" | "failed" }) => void, | ||
errorCallback?: (reason: string) => void): void; | ||
terminateExternalProcess(processUuid: string, timeout: number, callback?: (info: { result: "clean" | "terminated" | "failed" }) => void, | ||
terminateExternalProcess( | ||
processUuid: string, | ||
timeout: number, | ||
callback?: (info: { result: "clean" | "terminated" | "failed" }) => void, | ||
errorCallback?: (reason: string) => void): void; | ||
@@ -949,3 +995,3 @@ /** | ||
arguments?: string; | ||
listener?: (result: { | ||
listener?(result: { | ||
/** | ||
@@ -963,3 +1009,3 @@ * "Exited" Or "released" on a call to releaseExternalProcess | ||
exitCode?: number; | ||
}) => void; | ||
}): void; | ||
certificate?: CertificationInfo; | ||
@@ -993,3 +1039,3 @@ } | ||
pid?: number; | ||
listener?: (result: { | ||
listener?(result: { | ||
/** | ||
@@ -1004,6 +1050,6 @@ * "Exited" Or "released" on a call to releaseExternalProcess | ||
/* | ||
* Process exit code | ||
*/ | ||
* Process exit code | ||
*/ | ||
exitCode?: number; | ||
}) => void; | ||
}): void; | ||
} | ||
@@ -1026,3 +1072,5 @@ | ||
*/ | ||
new (options: WindowOptions, callback?: (successObj: { httpResponseCode: number }) => void, | ||
new ( | ||
options: WindowOptions, | ||
callback?: (successObj: { httpResponseCode: number }) => void, | ||
errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): OpenFinWindow; | ||
@@ -1071,10 +1119,12 @@ /** | ||
*/ | ||
addEventListener(type: OpenFinWindowEventType, listener: (event: WindowBaseEvent | ||
| WindowAuthRequestedEvent | ||
| WindowBoundsEvent | ||
| WindowExternalProcessStartedEvent | ||
| WindowExternalProcessExited | ||
| WindowGroupChangedEvent | ||
| WindowHiddenEvent | ||
| Window_NavigationRejectedEvent) => void, | ||
addEventListener( | ||
type: OpenFinWindowEventType, | ||
listener: (event: WindowBaseEvent | ||
| WindowAuthRequestedEvent | ||
| WindowBoundsEvent | ||
| WindowExternalProcessStartedEvent | ||
| WindowExternalProcessExited | ||
| WindowGroupChangedEvent | ||
| WindowHiddenEvent | ||
| Window_NavigationRejectedEvent) => void, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
@@ -1190,3 +1240,4 @@ /** | ||
*/ | ||
removeEventListener(type: OpenFinWindowEventType, | ||
removeEventListener( | ||
type: OpenFinWindowEventType, | ||
listener: (event: WindowBaseEvent | ||
@@ -1200,3 +1251,4 @@ | WindowAuthRequestedEvent | ||
| Window_NavigationRejectedEvent) => void, | ||
callback?: () => void, errorCallback?: (reason: string) => void): void; | ||
callback?: () => void, | ||
errorCallback?: (reason: string) => void): void; | ||
/** | ||
@@ -1203,0 +1255,0 @@ * Resizes the window by a specified amount. |
{ | ||
"name": "@types/openfin", | ||
"version": "17.0.1", | ||
"version": "17.0.2", | ||
"description": "TypeScript definitions for OpenFin API", | ||
@@ -20,4 +20,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "c4e31ea33625b34a0d991cb11956cba0f85ec3a9d9512855c2e34c06b6199731", | ||
"typesPublisherContentHash": "5c935a3b7555fddb1abb64e84b9d4f77d0d9240844e1c715bba23ee1d2eb0395", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/openfin | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/openfin | ||
Additional Details | ||
* Last updated: Mon, 27 Mar 2017 18:28:37 GMT | ||
* Last updated: Fri, 31 Mar 2017 18:05:14 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: fin |
58775
0.41%1671
3.21%