@openfin/core 41.100.44 → 41.100.46
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/mock-alpha.d.ts +31 -0
- package/out/mock-beta.d.ts +31 -0
- package/out/mock-public.d.ts +31 -0
- package/out/mock.d.ts +31 -0
- package/out/mock.js +7 -25
- package/package.json +1 -1
package/out/mock-alpha.d.ts
CHANGED
|
@@ -192,6 +192,10 @@ declare type AppAssetRequest = {
|
|
|
192
192
|
alias: string;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
+
declare type AppAssetServeRequest = ServeRequest & {
|
|
196
|
+
alias: string;
|
|
197
|
+
};
|
|
198
|
+
|
|
195
199
|
/**
|
|
196
200
|
* An object representing an application. Allows the developer to create,
|
|
197
201
|
* execute, show/close an application as well as listen to {@link OpenFin.ApplicationEvents application events}.
|
|
@@ -9730,6 +9734,11 @@ declare namespace OpenFin_2 {
|
|
|
9730
9734
|
DownloadShelfOptions,
|
|
9731
9735
|
ViewShowAtOptions,
|
|
9732
9736
|
ExtensionInfo,
|
|
9737
|
+
ServeRequest,
|
|
9738
|
+
AppAssetServeRequest,
|
|
9739
|
+
PathServeRequest,
|
|
9740
|
+
ServeAssetOptions,
|
|
9741
|
+
ServedAssetInfo,
|
|
9733
9742
|
ApplicationEvents,
|
|
9734
9743
|
BaseEvents,
|
|
9735
9744
|
ExternalApplicationEvents,
|
|
@@ -9821,6 +9830,10 @@ declare type PastePermissions = {
|
|
|
9821
9830
|
behavior: 'non-protected-content' | 'all-content';
|
|
9822
9831
|
};
|
|
9823
9832
|
|
|
9833
|
+
declare type PathServeRequest = ServeRequest & {
|
|
9834
|
+
path: string;
|
|
9835
|
+
};
|
|
9836
|
+
|
|
9824
9837
|
declare type Payload<Success extends boolean = boolean, Data = any> = {
|
|
9825
9838
|
success: Success;
|
|
9826
9839
|
data: Success extends true ? Data : never;
|
|
@@ -12450,6 +12463,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12450
12463
|
options: OpenFin_2.ProcessLoggingOptions;
|
|
12451
12464
|
}, void>;
|
|
12452
12465
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
|
12466
|
+
'serve-asset': ApiCall<{
|
|
12467
|
+
options: OpenFin_2.ServeAssetOptions;
|
|
12468
|
+
}, OpenFin_2.ServedAssetInfo>;
|
|
12453
12469
|
'set-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity & {
|
|
12454
12470
|
domainSettings: OpenFin_2.DefaultDomainSettings;
|
|
12455
12471
|
}, void>;
|
|
@@ -13211,6 +13227,16 @@ declare type SentMessage<Value> = Promise<Value> & {
|
|
|
13211
13227
|
messageId: ReturnType<Environment['getNextMessageId']>;
|
|
13212
13228
|
};
|
|
13213
13229
|
|
|
13230
|
+
declare type ServeAssetOptions = AppAssetServeRequest | PathServeRequest;
|
|
13231
|
+
|
|
13232
|
+
declare type ServedAssetInfo = {
|
|
13233
|
+
baseUrl: string;
|
|
13234
|
+
};
|
|
13235
|
+
|
|
13236
|
+
declare type ServeRequest = {
|
|
13237
|
+
hostName: string;
|
|
13238
|
+
};
|
|
13239
|
+
|
|
13214
13240
|
/**
|
|
13215
13241
|
* @interface
|
|
13216
13242
|
*/
|
|
@@ -15132,6 +15158,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
15132
15158
|
* Gets the currently-installed
|
|
15133
15159
|
*/
|
|
15134
15160
|
getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
|
|
15161
|
+
/**
|
|
15162
|
+
* Used to serve an asset signed by OpenFin within the given runtime.
|
|
15163
|
+
* Not indended for general use, will be used by the `@openfin/workspace-platform` package.
|
|
15164
|
+
*/
|
|
15165
|
+
serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
|
|
15135
15166
|
}
|
|
15136
15167
|
|
|
15137
15168
|
/**
|
package/out/mock-beta.d.ts
CHANGED
|
@@ -192,6 +192,10 @@ declare type AppAssetRequest = {
|
|
|
192
192
|
alias: string;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
+
declare type AppAssetServeRequest = ServeRequest & {
|
|
196
|
+
alias: string;
|
|
197
|
+
};
|
|
198
|
+
|
|
195
199
|
/**
|
|
196
200
|
* An object representing an application. Allows the developer to create,
|
|
197
201
|
* execute, show/close an application as well as listen to {@link OpenFin.ApplicationEvents application events}.
|
|
@@ -9730,6 +9734,11 @@ declare namespace OpenFin_2 {
|
|
|
9730
9734
|
DownloadShelfOptions,
|
|
9731
9735
|
ViewShowAtOptions,
|
|
9732
9736
|
ExtensionInfo,
|
|
9737
|
+
ServeRequest,
|
|
9738
|
+
AppAssetServeRequest,
|
|
9739
|
+
PathServeRequest,
|
|
9740
|
+
ServeAssetOptions,
|
|
9741
|
+
ServedAssetInfo,
|
|
9733
9742
|
ApplicationEvents,
|
|
9734
9743
|
BaseEvents,
|
|
9735
9744
|
ExternalApplicationEvents,
|
|
@@ -9821,6 +9830,10 @@ declare type PastePermissions = {
|
|
|
9821
9830
|
behavior: 'non-protected-content' | 'all-content';
|
|
9822
9831
|
};
|
|
9823
9832
|
|
|
9833
|
+
declare type PathServeRequest = ServeRequest & {
|
|
9834
|
+
path: string;
|
|
9835
|
+
};
|
|
9836
|
+
|
|
9824
9837
|
declare type Payload<Success extends boolean = boolean, Data = any> = {
|
|
9825
9838
|
success: Success;
|
|
9826
9839
|
data: Success extends true ? Data : never;
|
|
@@ -12450,6 +12463,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12450
12463
|
options: OpenFin_2.ProcessLoggingOptions;
|
|
12451
12464
|
}, void>;
|
|
12452
12465
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
|
12466
|
+
'serve-asset': ApiCall<{
|
|
12467
|
+
options: OpenFin_2.ServeAssetOptions;
|
|
12468
|
+
}, OpenFin_2.ServedAssetInfo>;
|
|
12453
12469
|
'set-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity & {
|
|
12454
12470
|
domainSettings: OpenFin_2.DefaultDomainSettings;
|
|
12455
12471
|
}, void>;
|
|
@@ -13211,6 +13227,16 @@ declare type SentMessage<Value> = Promise<Value> & {
|
|
|
13211
13227
|
messageId: ReturnType<Environment['getNextMessageId']>;
|
|
13212
13228
|
};
|
|
13213
13229
|
|
|
13230
|
+
declare type ServeAssetOptions = AppAssetServeRequest | PathServeRequest;
|
|
13231
|
+
|
|
13232
|
+
declare type ServedAssetInfo = {
|
|
13233
|
+
baseUrl: string;
|
|
13234
|
+
};
|
|
13235
|
+
|
|
13236
|
+
declare type ServeRequest = {
|
|
13237
|
+
hostName: string;
|
|
13238
|
+
};
|
|
13239
|
+
|
|
13214
13240
|
/**
|
|
13215
13241
|
* @interface
|
|
13216
13242
|
*/
|
|
@@ -15132,6 +15158,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
15132
15158
|
* Gets the currently-installed
|
|
15133
15159
|
*/
|
|
15134
15160
|
getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
|
|
15161
|
+
/**
|
|
15162
|
+
* Used to serve an asset signed by OpenFin within the given runtime.
|
|
15163
|
+
* Not indended for general use, will be used by the `@openfin/workspace-platform` package.
|
|
15164
|
+
*/
|
|
15165
|
+
serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
|
|
15135
15166
|
}
|
|
15136
15167
|
|
|
15137
15168
|
/**
|
package/out/mock-public.d.ts
CHANGED
|
@@ -192,6 +192,10 @@ declare type AppAssetRequest = {
|
|
|
192
192
|
alias: string;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
+
declare type AppAssetServeRequest = ServeRequest & {
|
|
196
|
+
alias: string;
|
|
197
|
+
};
|
|
198
|
+
|
|
195
199
|
/**
|
|
196
200
|
* An object representing an application. Allows the developer to create,
|
|
197
201
|
* execute, show/close an application as well as listen to {@link OpenFin.ApplicationEvents application events}.
|
|
@@ -9730,6 +9734,11 @@ declare namespace OpenFin_2 {
|
|
|
9730
9734
|
DownloadShelfOptions,
|
|
9731
9735
|
ViewShowAtOptions,
|
|
9732
9736
|
ExtensionInfo,
|
|
9737
|
+
ServeRequest,
|
|
9738
|
+
AppAssetServeRequest,
|
|
9739
|
+
PathServeRequest,
|
|
9740
|
+
ServeAssetOptions,
|
|
9741
|
+
ServedAssetInfo,
|
|
9733
9742
|
ApplicationEvents,
|
|
9734
9743
|
BaseEvents,
|
|
9735
9744
|
ExternalApplicationEvents,
|
|
@@ -9821,6 +9830,10 @@ declare type PastePermissions = {
|
|
|
9821
9830
|
behavior: 'non-protected-content' | 'all-content';
|
|
9822
9831
|
};
|
|
9823
9832
|
|
|
9833
|
+
declare type PathServeRequest = ServeRequest & {
|
|
9834
|
+
path: string;
|
|
9835
|
+
};
|
|
9836
|
+
|
|
9824
9837
|
declare type Payload<Success extends boolean = boolean, Data = any> = {
|
|
9825
9838
|
success: Success;
|
|
9826
9839
|
data: Success extends true ? Data : never;
|
|
@@ -12450,6 +12463,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12450
12463
|
options: OpenFin_2.ProcessLoggingOptions;
|
|
12451
12464
|
}, void>;
|
|
12452
12465
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
|
12466
|
+
'serve-asset': ApiCall<{
|
|
12467
|
+
options: OpenFin_2.ServeAssetOptions;
|
|
12468
|
+
}, OpenFin_2.ServedAssetInfo>;
|
|
12453
12469
|
'set-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity & {
|
|
12454
12470
|
domainSettings: OpenFin_2.DefaultDomainSettings;
|
|
12455
12471
|
}, void>;
|
|
@@ -13211,6 +13227,16 @@ declare type SentMessage<Value> = Promise<Value> & {
|
|
|
13211
13227
|
messageId: ReturnType<Environment['getNextMessageId']>;
|
|
13212
13228
|
};
|
|
13213
13229
|
|
|
13230
|
+
declare type ServeAssetOptions = AppAssetServeRequest | PathServeRequest;
|
|
13231
|
+
|
|
13232
|
+
declare type ServedAssetInfo = {
|
|
13233
|
+
baseUrl: string;
|
|
13234
|
+
};
|
|
13235
|
+
|
|
13236
|
+
declare type ServeRequest = {
|
|
13237
|
+
hostName: string;
|
|
13238
|
+
};
|
|
13239
|
+
|
|
13214
13240
|
/**
|
|
13215
13241
|
* @interface
|
|
13216
13242
|
*/
|
|
@@ -15132,6 +15158,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
15132
15158
|
* Gets the currently-installed
|
|
15133
15159
|
*/
|
|
15134
15160
|
getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
|
|
15161
|
+
/**
|
|
15162
|
+
* Used to serve an asset signed by OpenFin within the given runtime.
|
|
15163
|
+
* Not indended for general use, will be used by the `@openfin/workspace-platform` package.
|
|
15164
|
+
*/
|
|
15165
|
+
serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
|
|
15135
15166
|
}
|
|
15136
15167
|
|
|
15137
15168
|
/**
|
package/out/mock.d.ts
CHANGED
|
@@ -192,6 +192,10 @@ declare type AppAssetRequest = {
|
|
|
192
192
|
alias: string;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
+
declare type AppAssetServeRequest = ServeRequest & {
|
|
196
|
+
alias: string;
|
|
197
|
+
};
|
|
198
|
+
|
|
195
199
|
/**
|
|
196
200
|
* An object representing an application. Allows the developer to create,
|
|
197
201
|
* execute, show/close an application as well as listen to {@link OpenFin.ApplicationEvents application events}.
|
|
@@ -10048,6 +10052,11 @@ declare namespace OpenFin_2 {
|
|
|
10048
10052
|
DownloadShelfOptions,
|
|
10049
10053
|
ViewShowAtOptions,
|
|
10050
10054
|
ExtensionInfo,
|
|
10055
|
+
ServeRequest,
|
|
10056
|
+
AppAssetServeRequest,
|
|
10057
|
+
PathServeRequest,
|
|
10058
|
+
ServeAssetOptions,
|
|
10059
|
+
ServedAssetInfo,
|
|
10051
10060
|
ApplicationEvents,
|
|
10052
10061
|
BaseEvents,
|
|
10053
10062
|
ExternalApplicationEvents,
|
|
@@ -10139,6 +10148,10 @@ declare type PastePermissions = {
|
|
|
10139
10148
|
behavior: 'non-protected-content' | 'all-content';
|
|
10140
10149
|
};
|
|
10141
10150
|
|
|
10151
|
+
declare type PathServeRequest = ServeRequest & {
|
|
10152
|
+
path: string;
|
|
10153
|
+
};
|
|
10154
|
+
|
|
10142
10155
|
declare type Payload<Success extends boolean = boolean, Data = any> = {
|
|
10143
10156
|
success: Success;
|
|
10144
10157
|
data: Success extends true ? Data : never;
|
|
@@ -12851,6 +12864,9 @@ declare interface ProtocolMap extends ProtocolMapBase {
|
|
|
12851
12864
|
options: OpenFin_2.ProcessLoggingOptions;
|
|
12852
12865
|
}, void>;
|
|
12853
12866
|
'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
|
|
12867
|
+
'serve-asset': ApiCall<{
|
|
12868
|
+
options: OpenFin_2.ServeAssetOptions;
|
|
12869
|
+
}, OpenFin_2.ServedAssetInfo>;
|
|
12854
12870
|
'set-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity & {
|
|
12855
12871
|
domainSettings: OpenFin_2.DefaultDomainSettings;
|
|
12856
12872
|
}, void>;
|
|
@@ -13612,6 +13628,16 @@ declare type SentMessage<Value> = Promise<Value> & {
|
|
|
13612
13628
|
messageId: ReturnType<Environment['getNextMessageId']>;
|
|
13613
13629
|
};
|
|
13614
13630
|
|
|
13631
|
+
declare type ServeAssetOptions = AppAssetServeRequest | PathServeRequest;
|
|
13632
|
+
|
|
13633
|
+
declare type ServedAssetInfo = {
|
|
13634
|
+
baseUrl: string;
|
|
13635
|
+
};
|
|
13636
|
+
|
|
13637
|
+
declare type ServeRequest = {
|
|
13638
|
+
hostName: string;
|
|
13639
|
+
};
|
|
13640
|
+
|
|
13615
13641
|
/**
|
|
13616
13642
|
* @interface
|
|
13617
13643
|
*/
|
|
@@ -15539,6 +15565,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
|
|
|
15539
15565
|
* Gets the currently-installed
|
|
15540
15566
|
*/
|
|
15541
15567
|
getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
|
|
15568
|
+
/**
|
|
15569
|
+
* Used to serve an asset signed by OpenFin within the given runtime.
|
|
15570
|
+
* Not indended for general use, will be used by the `@openfin/workspace-platform` package.
|
|
15571
|
+
*/
|
|
15572
|
+
serveAsset(options: OpenFin_2.ServeAssetOptions): Promise<OpenFin_2.ServedAssetInfo>;
|
|
15542
15573
|
}
|
|
15543
15574
|
|
|
15544
15575
|
/**
|
package/out/mock.js
CHANGED
|
@@ -7261,6 +7261,13 @@ class System extends base_1$l.EmitterBase {
|
|
|
7261
7261
|
const { payload } = await this.wire.sendAction('get-installed-extensions');
|
|
7262
7262
|
return payload.data;
|
|
7263
7263
|
}
|
|
7264
|
+
/**
|
|
7265
|
+
* Used to serve an asset signed by OpenFin within the given runtime.
|
|
7266
|
+
* Not indended for general use, will be used by the `@openfin/workspace-platform` package.
|
|
7267
|
+
*/
|
|
7268
|
+
async serveAsset(options) {
|
|
7269
|
+
return (await this.wire.sendAction('serve-asset', { options })).payload.data;
|
|
7270
|
+
}
|
|
7264
7271
|
}
|
|
7265
7272
|
system.System = System;
|
|
7266
7273
|
|
|
@@ -13235,31 +13242,6 @@ var utils$3 = {};
|
|
|
13235
13242
|
if (!context.type) {
|
|
13236
13243
|
return { isValid: false, reason: 'Context must have a type property' };
|
|
13237
13244
|
}
|
|
13238
|
-
if (context.id && typeof context.id !== 'object') {
|
|
13239
|
-
return {
|
|
13240
|
-
isValid: false,
|
|
13241
|
-
reason: 'Context id must be an Object populated with key-value identifiers (if set)'
|
|
13242
|
-
};
|
|
13243
|
-
}
|
|
13244
|
-
if (context.id) {
|
|
13245
|
-
const { id } = context;
|
|
13246
|
-
const keys = Object.keys(id);
|
|
13247
|
-
let foundBadIdentifier = false;
|
|
13248
|
-
if (!keys.length) {
|
|
13249
|
-
return { isValid: false, reason: 'Context id must have at least one key-value identifier' };
|
|
13250
|
-
}
|
|
13251
|
-
keys.forEach((key) => {
|
|
13252
|
-
if (typeof key !== 'string' || typeof id[key] !== 'string') {
|
|
13253
|
-
foundBadIdentifier = true;
|
|
13254
|
-
}
|
|
13255
|
-
});
|
|
13256
|
-
if (foundBadIdentifier) {
|
|
13257
|
-
return { isValid: false, reason: 'Context id key-value identifiers must be of type string' };
|
|
13258
|
-
}
|
|
13259
|
-
}
|
|
13260
|
-
if (context.name && typeof context.name !== 'string') {
|
|
13261
|
-
return { isValid: false, reason: 'Context name must be of string type (if set)' };
|
|
13262
|
-
}
|
|
13263
13245
|
return { isValid: true };
|
|
13264
13246
|
};
|
|
13265
13247
|
exports.checkContextIntegrity = checkContextIntegrity;
|