@openfin/core 32.75.19 → 32.75.21
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/package.json
CHANGED
|
@@ -433,7 +433,9 @@ class Application extends base_1.EmitterBase {
|
|
|
433
433
|
* @tutorial Application.setFileDownloadLocation
|
|
434
434
|
*/
|
|
435
435
|
async setFileDownloadLocation(downloadLocation) {
|
|
436
|
-
|
|
436
|
+
const { name } = this.wire.me;
|
|
437
|
+
const entityIdentity = { uuid: this.identity.uuid, name };
|
|
438
|
+
await this.wire.sendAction('set-file-download-location', { ...entityIdentity, downloadLocation });
|
|
437
439
|
}
|
|
438
440
|
/**
|
|
439
441
|
* Gets file auto download location. It's only allowed in the same application. If file auto download location is not set, it will return the default location.
|
|
@@ -11,6 +11,9 @@ export type CrashedEvent = NamedEvent & {
|
|
|
11
11
|
exitCode: number;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
export type FileDownloadLocationChangedEvent = NamedEvent & {
|
|
15
|
+
type: 'file-download-location-changed';
|
|
16
|
+
};
|
|
14
17
|
export type RunRequestedEvent = IdentityEvent & {
|
|
15
18
|
type: 'run-requested';
|
|
16
19
|
userAppConfigArgs: Record<string, any>;
|
|
@@ -70,7 +73,7 @@ export type StartedEvent = IdentityEvent & {
|
|
|
70
73
|
/**
|
|
71
74
|
* An Application event that does propagate to (republish on) parent topics.
|
|
72
75
|
*/
|
|
73
|
-
export type WillPropagateApplicationEvent = ClosedEvent | ApplicationConnectedEvent | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent | StartedEvent | TrayIconClickedEvent;
|
|
76
|
+
export type WillPropagateApplicationEvent = ClosedEvent | ApplicationConnectedEvent | CrashedEvent | InitializedEvent | ManifestChangedEvent | NotRespondingEvent | RespondingEvent | RunRequestedEvent | StartedEvent | TrayIconClickedEvent | FileDownloadLocationChangedEvent;
|
|
74
77
|
export type ApplicationEvent = {
|
|
75
78
|
topic: 'application';
|
|
76
79
|
} & (PropagatedViewEvent | PropagatedWindowEvent | ApplicationWindowEvent | WillPropagateApplicationEvent);
|
package/src/shapes/protocol.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface ProtocolMap extends ProtocolMapBase {
|
|
|
85
85
|
'get-permissions': GetterCall<any>;
|
|
86
86
|
'get-all-channels': GetterCall<OpenFin.ProviderIdentity[]>;
|
|
87
87
|
'set-file-download-location': {
|
|
88
|
-
request: OpenFin.
|
|
88
|
+
request: OpenFin.Identity & {
|
|
89
89
|
downloadLocation: string;
|
|
90
90
|
};
|
|
91
91
|
response: void;
|