@openfin/core 37.81.21 → 37.81.24

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.
@@ -1,6 +1,9 @@
1
1
  /// <reference types="node" />
2
2
 
3
3
  import { EventEmitter } from 'events';
4
+ import { v1_2 } from '@openfin/fdc3';
5
+ import { v2_0 } from '@openfin/fdc3';
6
+ import { Version } from '@openfin/fdc3';
4
7
 
5
8
  /**
6
9
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -14289,117 +14292,11 @@ declare type UserMovementEnabledEvent = BaseEvent_5 & {
14289
14292
  type: 'user-movement-enabled';
14290
14293
  };
14291
14294
 
14292
- declare namespace v1_2 {
14293
- {
14294
- AppIntent,
14295
- AppMetadata,
14296
- DisplayMetadata,
14297
- OpenError,
14298
- ResolveError,
14299
- ChannelError,
14300
- ImplementationMetadata,
14301
- IntentMetadata,
14302
- Listener,
14303
- ContextTypes,
14304
- ContextType,
14305
- Context,
14306
- ContactList,
14307
- Contact,
14308
- ContactID,
14309
- InstrumentList,
14310
- Instrument,
14311
- InstrumentID,
14312
- Country,
14313
- CountryID,
14314
- Organization,
14315
- OrganizationID,
14316
- Portfolio,
14317
- Position,
14318
- Convert,
14319
- Intents,
14320
- Channel,
14321
- DesktopAgent,
14322
- IntentResolution,
14323
- TargetApp,
14324
- ContextHandler
14325
- }
14326
- }
14327
-
14328
- declare namespace v2_0 {
14329
- {
14330
- AppIdentifier,
14331
- AppIntent_2 as AppIntent,
14332
- AppMetadata_2 as AppMetadata,
14333
- ContextMetadata,
14334
- DisplayMetadata_2 as DisplayMetadata,
14335
- OpenError_2 as OpenError,
14336
- ResolveError_2 as ResolveError,
14337
- ResultError,
14338
- ChannelError_2 as ChannelError,
14339
- Icon,
14340
- Image_2 as Image,
14341
- ImplementationMetadata_2 as ImplementationMetadata,
14342
- IntentMetadata_2 as IntentMetadata,
14343
- Listener_2 as Listener,
14344
- ContextTypes_2 as ContextTypes,
14345
- ContextType_2 as ContextType,
14346
- Chart,
14347
- InstrumentElement,
14348
- PurpleID,
14349
- PurpleMarket,
14350
- TimeRangeObject,
14351
- Style,
14352
- ChatInitSettings,
14353
- ContactListObject,
14354
- ContactElement,
14355
- FluffyID,
14356
- Contact_2 as Contact,
14357
- TentacledID,
14358
- ContactList_2 as ContactList,
14359
- Context_2 as Context,
14360
- Country_2 as Country,
14361
- CountryID_2 as CountryID,
14362
- Currency,
14363
- CurrencyID,
14364
- Email,
14365
- RecipientsObject,
14366
- RecipientsID,
14367
- Instrument_2 as Instrument,
14368
- StickyID,
14369
- FluffyMarket,
14370
- InstrumentList_2 as InstrumentList,
14371
- Nothing,
14372
- Organization_2 as Organization,
14373
- OrganizationID_2 as OrganizationID,
14374
- Portfolio_2 as Portfolio,
14375
- PositionElement,
14376
- Position_2 as Position,
14377
- TimeRange,
14378
- Valuation,
14379
- Convert_2 as Convert,
14380
- Intents_2 as Intents,
14381
- Channel_2 as Channel,
14382
- DesktopAgent_2 as DesktopAgent,
14383
- IntentResolution_2 as IntentResolution,
14384
- PrivateChannel,
14385
- ContextHandler_2 as ContextHandler,
14386
- IntentResult,
14387
- IntentHandler
14388
- }
14389
- }
14390
-
14391
14295
  declare type VerboseWebPermission = {
14392
14296
  api: string;
14393
14297
  enabled: boolean;
14394
14298
  };
14395
14299
 
14396
- declare type Version = (typeof versions)[keyof typeof versions];
14397
-
14398
- declare const versions: {
14399
- readonly v1_2: "1.2";
14400
- readonly v2_0: "2.0";
14401
- };
14402
-
14403
14300
  declare type View = OpenFin_2.View;
14404
14301
 
14405
14302
  /**
@@ -1,6 +1,9 @@
1
1
  /// <reference types="node" />
2
2
 
3
3
  import { EventEmitter } from 'events';
4
+ import { v1_2 } from '@openfin/fdc3';
5
+ import { v2_0 } from '@openfin/fdc3';
6
+ import { Version } from '@openfin/fdc3';
4
7
 
5
8
  /**
6
9
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -14289,117 +14292,11 @@ declare type UserMovementEnabledEvent = BaseEvent_5 & {
14289
14292
  type: 'user-movement-enabled';
14290
14293
  };
14291
14294
 
14292
- declare namespace v1_2 {
14293
- {
14294
- AppIntent,
14295
- AppMetadata,
14296
- DisplayMetadata,
14297
- OpenError,
14298
- ResolveError,
14299
- ChannelError,
14300
- ImplementationMetadata,
14301
- IntentMetadata,
14302
- Listener,
14303
- ContextTypes,
14304
- ContextType,
14305
- Context,
14306
- ContactList,
14307
- Contact,
14308
- ContactID,
14309
- InstrumentList,
14310
- Instrument,
14311
- InstrumentID,
14312
- Country,
14313
- CountryID,
14314
- Organization,
14315
- OrganizationID,
14316
- Portfolio,
14317
- Position,
14318
- Convert,
14319
- Intents,
14320
- Channel,
14321
- DesktopAgent,
14322
- IntentResolution,
14323
- TargetApp,
14324
- ContextHandler
14325
- }
14326
- }
14327
-
14328
- declare namespace v2_0 {
14329
- {
14330
- AppIdentifier,
14331
- AppIntent_2 as AppIntent,
14332
- AppMetadata_2 as AppMetadata,
14333
- ContextMetadata,
14334
- DisplayMetadata_2 as DisplayMetadata,
14335
- OpenError_2 as OpenError,
14336
- ResolveError_2 as ResolveError,
14337
- ResultError,
14338
- ChannelError_2 as ChannelError,
14339
- Icon,
14340
- Image_2 as Image,
14341
- ImplementationMetadata_2 as ImplementationMetadata,
14342
- IntentMetadata_2 as IntentMetadata,
14343
- Listener_2 as Listener,
14344
- ContextTypes_2 as ContextTypes,
14345
- ContextType_2 as ContextType,
14346
- Chart,
14347
- InstrumentElement,
14348
- PurpleID,
14349
- PurpleMarket,
14350
- TimeRangeObject,
14351
- Style,
14352
- ChatInitSettings,
14353
- ContactListObject,
14354
- ContactElement,
14355
- FluffyID,
14356
- Contact_2 as Contact,
14357
- TentacledID,
14358
- ContactList_2 as ContactList,
14359
- Context_2 as Context,
14360
- Country_2 as Country,
14361
- CountryID_2 as CountryID,
14362
- Currency,
14363
- CurrencyID,
14364
- Email,
14365
- RecipientsObject,
14366
- RecipientsID,
14367
- Instrument_2 as Instrument,
14368
- StickyID,
14369
- FluffyMarket,
14370
- InstrumentList_2 as InstrumentList,
14371
- Nothing,
14372
- Organization_2 as Organization,
14373
- OrganizationID_2 as OrganizationID,
14374
- Portfolio_2 as Portfolio,
14375
- PositionElement,
14376
- Position_2 as Position,
14377
- TimeRange,
14378
- Valuation,
14379
- Convert_2 as Convert,
14380
- Intents_2 as Intents,
14381
- Channel_2 as Channel,
14382
- DesktopAgent_2 as DesktopAgent,
14383
- IntentResolution_2 as IntentResolution,
14384
- PrivateChannel,
14385
- ContextHandler_2 as ContextHandler,
14386
- IntentResult,
14387
- IntentHandler
14388
- }
14389
- }
14390
-
14391
14295
  declare type VerboseWebPermission = {
14392
14296
  api: string;
14393
14297
  enabled: boolean;
14394
14298
  };
14395
14299
 
14396
- declare type Version = (typeof versions)[keyof typeof versions];
14397
-
14398
- declare const versions: {
14399
- readonly v1_2: "1.2";
14400
- readonly v2_0: "2.0";
14401
- };
14402
-
14403
14300
  declare type View = OpenFin_2.View;
14404
14301
 
14405
14302
  /**
@@ -1,6 +1,9 @@
1
1
  /// <reference types="node" />
2
2
 
3
3
  import { EventEmitter } from 'events';
4
+ import { v1_2 } from '@openfin/fdc3';
5
+ import { v2_0 } from '@openfin/fdc3';
6
+ import { Version } from '@openfin/fdc3';
4
7
 
5
8
  /**
6
9
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -14289,117 +14292,11 @@ declare type UserMovementEnabledEvent = BaseEvent_5 & {
14289
14292
  type: 'user-movement-enabled';
14290
14293
  };
14291
14294
 
14292
- declare namespace v1_2 {
14293
- {
14294
- AppIntent,
14295
- AppMetadata,
14296
- DisplayMetadata,
14297
- OpenError,
14298
- ResolveError,
14299
- ChannelError,
14300
- ImplementationMetadata,
14301
- IntentMetadata,
14302
- Listener,
14303
- ContextTypes,
14304
- ContextType,
14305
- Context,
14306
- ContactList,
14307
- Contact,
14308
- ContactID,
14309
- InstrumentList,
14310
- Instrument,
14311
- InstrumentID,
14312
- Country,
14313
- CountryID,
14314
- Organization,
14315
- OrganizationID,
14316
- Portfolio,
14317
- Position,
14318
- Convert,
14319
- Intents,
14320
- Channel,
14321
- DesktopAgent,
14322
- IntentResolution,
14323
- TargetApp,
14324
- ContextHandler
14325
- }
14326
- }
14327
-
14328
- declare namespace v2_0 {
14329
- {
14330
- AppIdentifier,
14331
- AppIntent_2 as AppIntent,
14332
- AppMetadata_2 as AppMetadata,
14333
- ContextMetadata,
14334
- DisplayMetadata_2 as DisplayMetadata,
14335
- OpenError_2 as OpenError,
14336
- ResolveError_2 as ResolveError,
14337
- ResultError,
14338
- ChannelError_2 as ChannelError,
14339
- Icon,
14340
- Image_2 as Image,
14341
- ImplementationMetadata_2 as ImplementationMetadata,
14342
- IntentMetadata_2 as IntentMetadata,
14343
- Listener_2 as Listener,
14344
- ContextTypes_2 as ContextTypes,
14345
- ContextType_2 as ContextType,
14346
- Chart,
14347
- InstrumentElement,
14348
- PurpleID,
14349
- PurpleMarket,
14350
- TimeRangeObject,
14351
- Style,
14352
- ChatInitSettings,
14353
- ContactListObject,
14354
- ContactElement,
14355
- FluffyID,
14356
- Contact_2 as Contact,
14357
- TentacledID,
14358
- ContactList_2 as ContactList,
14359
- Context_2 as Context,
14360
- Country_2 as Country,
14361
- CountryID_2 as CountryID,
14362
- Currency,
14363
- CurrencyID,
14364
- Email,
14365
- RecipientsObject,
14366
- RecipientsID,
14367
- Instrument_2 as Instrument,
14368
- StickyID,
14369
- FluffyMarket,
14370
- InstrumentList_2 as InstrumentList,
14371
- Nothing,
14372
- Organization_2 as Organization,
14373
- OrganizationID_2 as OrganizationID,
14374
- Portfolio_2 as Portfolio,
14375
- PositionElement,
14376
- Position_2 as Position,
14377
- TimeRange,
14378
- Valuation,
14379
- Convert_2 as Convert,
14380
- Intents_2 as Intents,
14381
- Channel_2 as Channel,
14382
- DesktopAgent_2 as DesktopAgent,
14383
- IntentResolution_2 as IntentResolution,
14384
- PrivateChannel,
14385
- ContextHandler_2 as ContextHandler,
14386
- IntentResult,
14387
- IntentHandler
14388
- }
14389
- }
14390
-
14391
14295
  declare type VerboseWebPermission = {
14392
14296
  api: string;
14393
14297
  enabled: boolean;
14394
14298
  };
14395
14299
 
14396
- declare type Version = (typeof versions)[keyof typeof versions];
14397
-
14398
- declare const versions: {
14399
- readonly v1_2: "1.2";
14400
- readonly v2_0: "2.0";
14401
- };
14402
-
14403
14300
  declare type View = OpenFin_2.View;
14404
14301
 
14405
14302
  /**
package/out/mock.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  /// <reference types="node" />
2
2
 
3
3
  import { EventEmitter } from 'events';
4
+ import { v1_2 } from './fdc3';
5
+ import { v2_0 } from './fdc3';
6
+ import { Version } from './fdc3';
4
7
 
5
8
  /**
6
9
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -14695,117 +14698,11 @@ declare type UserMovementEnabledEvent = BaseEvent_5 & {
14695
14698
  type: 'user-movement-enabled';
14696
14699
  };
14697
14700
 
14698
- declare namespace v1_2 {
14699
- {
14700
- AppIntent,
14701
- AppMetadata,
14702
- DisplayMetadata,
14703
- OpenError,
14704
- ResolveError,
14705
- ChannelError,
14706
- ImplementationMetadata,
14707
- IntentMetadata,
14708
- Listener,
14709
- ContextTypes,
14710
- ContextType,
14711
- Context,
14712
- ContactList,
14713
- Contact,
14714
- ContactID,
14715
- InstrumentList,
14716
- Instrument,
14717
- InstrumentID,
14718
- Country,
14719
- CountryID,
14720
- Organization,
14721
- OrganizationID,
14722
- Portfolio,
14723
- Position,
14724
- Convert,
14725
- Intents,
14726
- Channel,
14727
- DesktopAgent,
14728
- IntentResolution,
14729
- TargetApp,
14730
- ContextHandler
14731
- }
14732
- }
14733
-
14734
- declare namespace v2_0 {
14735
- {
14736
- AppIdentifier,
14737
- AppIntent_2 as AppIntent,
14738
- AppMetadata_2 as AppMetadata,
14739
- ContextMetadata,
14740
- DisplayMetadata_2 as DisplayMetadata,
14741
- OpenError_2 as OpenError,
14742
- ResolveError_2 as ResolveError,
14743
- ResultError,
14744
- ChannelError_2 as ChannelError,
14745
- Icon,
14746
- Image_2 as Image,
14747
- ImplementationMetadata_2 as ImplementationMetadata,
14748
- IntentMetadata_2 as IntentMetadata,
14749
- Listener_2 as Listener,
14750
- ContextTypes_2 as ContextTypes,
14751
- ContextType_2 as ContextType,
14752
- Chart,
14753
- InstrumentElement,
14754
- PurpleID,
14755
- PurpleMarket,
14756
- TimeRangeObject,
14757
- Style,
14758
- ChatInitSettings,
14759
- ContactListObject,
14760
- ContactElement,
14761
- FluffyID,
14762
- Contact_2 as Contact,
14763
- TentacledID,
14764
- ContactList_2 as ContactList,
14765
- Context_2 as Context,
14766
- Country_2 as Country,
14767
- CountryID_2 as CountryID,
14768
- Currency,
14769
- CurrencyID,
14770
- Email,
14771
- RecipientsObject,
14772
- RecipientsID,
14773
- Instrument_2 as Instrument,
14774
- StickyID,
14775
- FluffyMarket,
14776
- InstrumentList_2 as InstrumentList,
14777
- Nothing,
14778
- Organization_2 as Organization,
14779
- OrganizationID_2 as OrganizationID,
14780
- Portfolio_2 as Portfolio,
14781
- PositionElement,
14782
- Position_2 as Position,
14783
- TimeRange,
14784
- Valuation,
14785
- Convert_2 as Convert,
14786
- Intents_2 as Intents,
14787
- Channel_2 as Channel,
14788
- DesktopAgent_2 as DesktopAgent,
14789
- IntentResolution_2 as IntentResolution,
14790
- PrivateChannel,
14791
- ContextHandler_2 as ContextHandler,
14792
- IntentResult,
14793
- IntentHandler
14794
- }
14795
- }
14796
-
14797
14701
  declare type VerboseWebPermission = {
14798
14702
  api: string;
14799
14703
  enabled: boolean;
14800
14704
  };
14801
14705
 
14802
- declare type Version = (typeof versions)[keyof typeof versions];
14803
-
14804
- declare const versions: {
14805
- readonly v1_2: "1.2";
14806
- readonly v2_0: "2.0";
14807
- };
14808
-
14809
14706
  declare type View = OpenFin_2.View;
14810
14707
 
14811
14708
  /**
package/out/mock.js CHANGED
@@ -15017,6 +15017,14 @@ function requireFdc3Common () {
15017
15017
  throw new Error(errorToThrow);
15018
15018
  }
15019
15019
  }
15020
+ async _getChannels() {
15021
+ const channels = await this.client.getContextGroups();
15022
+ // fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
15023
+ // this so people know that these APIs are not supported
15024
+ return channels.map((channel) => {
15025
+ return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
15026
+ });
15027
+ }
15020
15028
  /**
15021
15029
  * Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
15022
15030
  * @param channelId
@@ -15027,7 +15035,7 @@ function requireFdc3Common () {
15027
15035
  this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
15028
15036
  // we do not want to expose this error, just continue if this analytics-only call fails
15029
15037
  });
15030
- const systemChannels = await this.getSystemChannels();
15038
+ const systemChannels = await this._getChannels();
15031
15039
  const userChannel = systemChannels.find((channel) => channel.id === channelId);
15032
15040
  if (userChannel) {
15033
15041
  return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
@@ -15051,12 +15059,7 @@ function requireFdc3Common () {
15051
15059
  this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
15052
15060
  // we do not want to expose this error, just continue if this analytics-only call fails
15053
15061
  });
15054
- const channels = await this.client.getContextGroups();
15055
- // fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
15056
- // this so people know that these APIs are not supported
15057
- return channels.map((channel) => {
15058
- return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
15059
- });
15062
+ return this._getChannels();
15060
15063
  }
15061
15064
  /**
15062
15065
  * Join all Interop Clients at the given identity to context group `contextGroupId`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "37.81.21",
3
+ "version": "37.81.24",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",
@@ -10,7 +10,8 @@
10
10
  "prebuild": "rimraf ./out",
11
11
  "build:rollup": "rollup --config",
12
12
  "build:copy": "cpy src/GlobalOpenFin.d.ts out --flat",
13
- "build": "run-p build:*",
13
+ "build:fdc3": "ts-node scripts/fdc3",
14
+ "build": "run-s build:*",
14
15
  "dev:rollup": "npm run build:rollup -- --environment MODE:development",
15
16
  "dev:copy": "npm run build:copy",
16
17
  "dev": "run-p dev:*",
@@ -19,7 +20,10 @@
19
20
  "watch:copy": "npm run dev:copy",
20
21
  "ci:prepublish": "of-npm prepublish",
21
22
  "ci:postpublish": "of-npm postpublish",
22
- "ci:publish": "npm publish"
23
+ "ci:publish": "npm publish",
24
+ "test": "run-p test:*",
25
+ "test:sample": "tsc -p test/tsconfig.json",
26
+ "test:imports": "ts-node scripts/verify-imports"
23
27
  },
24
28
  "files": [
25
29
  "out/*",