Socket
Socket
Sign inDemoInstall

@finos/fdc3

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@finos/fdc3 - npm Package Compare versions

Comparing version 1.2.0-beta to 1.2.0

145

CHANGELOG.md

@@ -9,40 +9,57 @@ # Changelog

## [npm v1.2.0] - 2021-04-19
### Added
* [API] New raiseIntentForContext method (#268)
* [API] Add fdc3Ready event to API specification (#269, #327)
* [API] Add optional appId and version properties to AppMetadata (#273)
* [API] Define new TargetApp type for use with open and raiseIntent (#279, #315)
* [API] New getInfo method with method data about implementation (#324)
* [Package] Build and publish an npm package for FDC3 (#252)
* [Package] Add enums for intents and context types (#264)
* [Package] Add ES6 module support to FDC3 API package (#266)
* ES6 functions for `getInfo()` and `raiseIntentForContext()` ([#268](https://github.com/finos/FDC3/pull/268), [#324](https://github.com/finos/FDC3/pull/324))
* `fdc3Ready()` utility function that wraps checks for the window.fdc3 global object and new `fdc3Ready` event ([#360](https://github.com/finos/FDC3/pull/360))
* `compareVersionNumbers()` and `versionIsAtLeast()` utility functions to complement `getInfo()` ([#324](https://github.com/finos/FDC3/pull/324))
### Changed
* [API] Allow AppMetadata to be passed in as a target argument (#272)
* [API] Reject/throw as appropriate in ES6 exported methods if window.fdc3 is not available (#277)
* [API] API specification clarifications around intents/context and loops when broadcasting (#285, #307, 310)
* [API] `addContextListener(type, handler)` now accepts null for type, deprecate `addContextListener(handler)` (#329)
* [API] Deprecate 'global' channel and `IntentResolution.data` (#341)
* [Website] Add/update participant logos (#209, #225, #320, #335)
* [Website] Update "Get Involved" with standards governance info (#228, #249, #300, #286)
* [Docs] Add standard version number to specification files (#331)
* `addContextListener(contextType, handler)` now supports passing `null` as the context type ([#329](https://github.com/finos/FDC3/pull/329))
* All other API type changes and additions from the [FDC3 Standard 1.2](https://github.com/finos/FDC3/releases/tag/v1.2) release
### Deprecated
* `addContextListener(handler)` ([#329](https://github.com/finos/FDC3/pull/329))
* `IntentResolution.data` ([#341](https://github.com/finos/FDC3/pull/341))
## [FDC3 Standard 1.2] - 2021-04-19
### Added
* New `raiseIntentForContext()` method ([#268](https://github.com/finos/FDC3/pull/268))
* New `fdc3Ready` event ([#269](https://github.com/finos/FDC3/pull/269))
* New `getInfo()` method that returns implementation metadata ([#324](https://github.com/finos/FDC3/pull/324))
### Changed
* `fdc3.open()` and `fdc3.raiseIntent()` now takes `TargetApp`, which resolves to `string | AppMetadata` ([#272](https://github.com/finos/FDC3/pull/272))
* `AppMetadata` return type can now optionally include `appId` and `version` ([#273](https://github.com/finos/FDC3/pull/273))
* `addContextListener(contextType, handler)` now supports passing `null` as the context type ([#329](https://github.com/finos/FDC3/pull/329))
* Simplify API reference documentation and add info about supported platforms, including npm package ([#349](https://github.com/finos/FDC3/pull/349))
### Deprecated
* `addContextListener(handler)` ([#329](https://github.com/finos/FDC3/pull/329))
* `IntentResolution.data` and `'global'` channel concept ([#341](https://github.com/finos/FDC3/pull/341))
### Fixed
* [API] Missing/wrong type signature for getCurrentChannel (#222)
* [API] Support nullable return type for getCurrentChannel (#282)
* [API] Implement missing leaveCurrentChannel method (#283)
* [Schemas] Correct invalid schema references (#224)
* [Docs] Fix raiseIntent examples (#211)
* [Docs] Fix Portfolio context data example (#251)
* Return type of `getCurrentChannel()` should be `Promise<Channel | null>` ([#282](https://github.com/finos/FDC3/pull/282))
* `leaveCurrentChannel()` is missing from `DesktopAgent` interface ([#283](https://github.com/finos/FDC3/pull/283))
### Technical
* [Readme] Fix AppDirectory Readme (#274)
* [Readme] Update main Readme (#275, #318, #338)
* [GitHub] Remove FINOS SVG from project root (#204)
* [GitHub] Switch builds from Travis to GitHub workflows (#239, #252, #253, #254)
* [GitHub] Meeting workflows and templates (#292, #293)
* [Security] Upgrade dependencies to address security vulnerabilities (#207, #226, #232, #235, #238, #258, #259, #260, #289, #290, #295, #297, #330, #333, #334, #339, #340)
## [npm v1.1.1] - 2021-04-15
### Fixed
* `Intents` enum should contain `StartChat` not `StartChart` ([#364](https://github.com/finos/FDC3/pull/364))
## [1.1] - 2020-04-09
### Fixed
* Return type of `getCurrentChannel()` should be `Promise<Channel | null>` ([#282](https://github.com/finos/FDC3/pull/282))
* Missing `leaveCurrentChannel()` export ([#283](https://github.com/finos/FDC3/pull/283))
## [npm v1.1.0] - 2021-04-14
### Added
* Build an npm package with exported TypeScript typings for API, Context Data and `window.fdc3` global ([#252](https://github.com/finos/FDC3/pull/252))
* Export helper enums for names of standardised `Intents` and `ContextTypes` ([#264](https://github.com/finos/FDC3/pull/264))
* Export API operations as ES6 functions that can be directly imported ([#266](https://github.com/finos/FDC3/pull/266))
* Check for the existence of `window.fdc3` in ES6 functions, and reject or throw if not defined ([#356](https://github.com/finos/FDC3/pull/356))
### Fixed
* Return type of `getCurrentChannel()` should be `Promise<Channel>` ([#222](https://github.com/finos/FDC3/pull/222))
## [FDC3 Standard 1.1] - 2020-04-09
### Added
* JSON Schema definitions for agreed context types ([#119](https://github.com/finos/FDC3/pull/119)):

@@ -71,52 +88,48 @@ - `fdc3.context`

* Publish versioned JSON schemas to FDC3 website ([#170](https://github.com/finos/FDC3/pull/170))
* Intent Reference and Context Data Reference documentation ([#172](https://github.com/finos/FDC3/pull/172))
### Changed
* Remove FactSet-specific examples from docs ([#88](https://github.com/finos/FDC3/pull/88))
* Apply FINOS branding, styles and logos to the website ([#96](https://github.com/finos/FDC3/pull/96))
* Include ChartIQ in "Who is using FDC3?" section on website ([#100](https://github.com/finos/FDC3/pull/100))
* Expand `AppMetadata` interface with more application properties ([#157](https://github.com/finos/FDC3/pull/157))
* Restructure some docs ([#190](https://github.com/finos/FDC3/pull/190))
### Fixed
* Upgrade dependencies to address security vulnerabilities
* Several typos and broken links in docs
* Various security vulnerabilities
### Docs
* Remove FactSet-specific examples ([#88](https://github.com/finos/FDC3/pull/88))
* Add Intent Reference and Context Data Reference ([#172](https://github.com/finos/FDC3/pull/172))
* Restructure some docs ([#190](https://github.com/finos/FDC3/pull/190))
* Fix several typos and broken links
### Website
* Apply FINOS branding, styles and logos to the website ([#96](https://github.com/finos/FDC3/pull/96))
* Add ChartIQ to "Who is using FDC3?" section on website ([#100](https://github.com/finos/FDC3/pull/100))
## [1.0] - 2019-03-28
## [FDC3 Standard 1.0] - 2019-03-28
### Added
* Documentation website (generated with [Docusaurus]) and content from old separate FDC3 repos:
- [FDC3/API](https://github.com/FDC3/API)
- [FDC3/ContextData](https://github.com/FDC3/ContextData)
- [FDC3/Intents](https://github.com/FDC3/Intents)
- [FDC3/appd-api](https://github.com/FDC3/appd-api)
- [FDC3/use-cases](https://github.com/FDC3/use-cases)
* Use Case 15 ([#49](https://github.com/finos/FDC3/pull/49))
* FDC3 Roadmap ([#55](https://github.com/finos/FDC3/pull/55))
* User showcase on website ([#67](https://github.com/finos/FDC3/pull/67))
* FDC3 feature icons on website landing page ([#57](https://github.com/finos/FDC3/pull/57))
* Participant showcase on website landing page ([#67](https://github.com/finos/FDC3/pull/67))
[Docusaurus]: https://docusaurus.io
### Changed
* Use case text on front page of website ([#54](https://github.com/finos/FDC3/pull/54))
* Feature icons on website ([#57](https://github.com/finos/FDC3/pull/57))
* General cleanup of spelling, grammar and punctuation ([#34](https://github.com/finos/FDC3/pull/34))
* Use cases callout on website landing page ([#54](https://github.com/finos/FDC3/pull/54))
* Proofreading of docs ([#62](https://github.com/finos/FDC3/pull/62))
### Fixed
* General cleanup of spelling, grammar and punctuation ([#34](https://github.com/finos/FDC3/pull/34))
* Remove unnecessary dates from use case file names ([#41](https://github.com/finos/FDC3/pull/41))
* Fix header colouring on responsive website ([#56](https://github.com/finos/FDC3/pull/56))
* Fix workflow numbers in Use Case 1 ([#60](https://github.com/finos/FDC3/pull/60))
* More proofreading changes to existing docs ([62](https://github.com/finos/FDC3/pull/62))
* Fix examples in Intent Overview doc ([#65](https://github.com/finos/FDC3/pull/65))
* Fix errors in DesktopAgent API doc ([#66](https://github.com/finos/FDC3/pull/66))
* Add hyperlink to FDC3 Intro doc ([#69](https://github.com/finos/FDC3/pull/69))
* Header colouring on responsive website ([#56](https://github.com/finos/FDC3/pull/56))
* Workflow numbers in Use Case 1 ([#60](https://github.com/finos/FDC3/pull/60))
* Examples in Intent Overview ([#65](https://github.com/finos/FDC3/pull/65))
* Errors in DesktopAgent API Reference ([#66](https://github.com/finos/FDC3/pull/66))
## [1.0.0-beta] - 2019-03-05
## Added
* API content from [FDC3/API](https://github.com/FDC3/API).
* Intent content from [FDC3/Intents](https://github.com/FDC3/Intents).
* Context Data content from [FDC3/ContextData](https://github.com/FDC3/ContextData).
* App Directory content from [FDC3/appd-api](https://github.com/FDC3/appd-api).
* Use Case content from [FDC3/use-cases](https://github.com/FDC3/use-cases).
* Documentation website generated with [Docusaurus](https://docusaurus.io).
[Unreleased]: https://github.com/finos/FDC3/compare/v1.1..HEAD
[1.1]: https://github.com/finos/FDC3/compare/v1.1..v1.0
[1.0]: https://github.com/finos/FDC3/compare/v1.0..v1.0.0-beta
[1.0.0-beta]: https://github.com/finos/FDC3/releases/tag/v1.0.0-beta
[Unreleased]: https://github.com/finos/FDC3/compare/v1.2..HEAD
[npm v1.2.0]: https://github.com/finos/FDC3/compare/v1.1.0..v1.2.0
[FDC3 Standard 1.2]: https://github.com/finos/FDC3/compare/v1.2..v1.1
[npm v1.1.1]: https://github.com/finos/FDC3/compare/v1.1.0..v1.1.1
[npm v1.1.0]: https://github.com/finos/FDC3/compare/v1.1..v1.1.0
[FDC3 Standard 1.1]: https://github.com/finos/FDC3/compare/v1.1..v1.0
[FDC3 Standard 1.0]: https://github.com/finos/FDC3/v1.0

@@ -1497,3 +1497,3 @@ 'use strict';

Intents["StartCall"] = "StartCall";
Intents["StartChart"] = "StartChart";
Intents["StartChat"] = "StartChat";
Intents["ViewChart"] = "ViewChart";

@@ -1500,0 +1500,0 @@ Intents["ViewContact"] = "ViewContact";

@@ -1,2 +0,2 @@

"use strict";var t,n,r;function e(t,n,r,e,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?n(u):Promise.resolve(u).then(e,o)}function o(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function s(t){e(a,o,i,s,u,"next",t)}function u(t){e(a,o,i,s,u,"throw",t)}s(void 0)}))}}Object.defineProperty(exports,"__esModule",{value:!0}),(t=exports.OpenError||(exports.OpenError={})).AppNotFound="AppNotFound",t.ErrorOnLaunch="ErrorOnLaunch",t.AppTimeout="AppTimeout",t.ResolverUnavailable="ResolverUnavailable",(n=exports.ResolveError||(exports.ResolveError={})).NoAppsFound="NoAppsFound",n.ResolverUnavailable="ResolverUnavailable",n.ResolverTimeout="ResolverTimeout",(r=exports.ChannelError||(exports.ChannelError={})).NoChannelFound="NoChannelFound",r.AccessDenied="AccessDenied",r.CreationFailed="CreationFailed";var i,a=(function(t){var n=function(t){var n=Object.prototype,r=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",a=e.toStringTag||"@@toStringTag";function s(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,r){return t[n]=r}}function u(t,n,r,e){var o=Object.create((n&&n.prototype instanceof p?n:p).prototype),i=new O(e||[]);return o._invoke=function(t,n,r){var e="suspendedStart";return function(o,i){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=g(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var u=c(t,n,r);if("normal"===u.type){if(e=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(e="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),o}function c(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function l(){}var y={};y[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(C([])));v&&v!==n&&r.call(v,o)&&(y=v);var j=l.prototype=p.prototype=Object.create(y);function m(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function w(t,n){var e;this._invoke=function(o,i){function a(){return new n((function(e,a){!function e(o,i,a,s){var u=c(t[o],t,i);if("throw"!==u.type){var f=u.arg,p=f.value;return p&&"object"==typeof p&&r.call(p,"__await")?n.resolve(p.__await).then((function(t){e("next",t,a,s)}),(function(t){e("throw",t,a,s)})):n.resolve(p).then((function(t){f.value=t,a(f)}),(function(t){return e("throw",t,a,s)}))}s(u.arg)}(o,i,e,a)}))}return e=e?e.then(a,a):a()}}function g(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,g(t,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var e=c(r,t.iterator,n.arg);if("throw"===e.type)return n.method="throw",n.arg=e.arg,n.delegate=null,f;var o=e.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function x(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function I(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,i=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=j.constructor=l,l.constructor=d,d.displayName=s(l,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===d||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,s(t,a,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},m(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(n,r,e,o,i){void 0===i&&(i=Promise);var a=new w(u(n,r,e,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(j),s(j,a,"Generator"),j[o]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(r,e){return a.type="throw",a.arg=t,n.next=r,e&&(n.method="next",n.arg=void 0),!!e}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),f},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}(i={exports:{}}),i.exports),s=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),u=new Error("Timed out waiting for `fdc3Ready` event."),c=new Error("`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.");function f(t){return window.fdc3?t():Promise.reject(s)}function p(t){if(!window.fdc3)throw s;return t()}var d,l=function(){var t=o(a.mark((function t(n){return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===n&&(n=5e3),t.abrupt("return",new Promise((function(t,r){if(window.fdc3)t();else{var e=setTimeout((function(){return window.fdc3?t():r(u)}),n);window.addEventListener("fdc3Ready",(function(){clearTimeout(e),window.fdc3?t():r(c)}),{once:!0})}})));case 2:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),y=function(t,n){try{for(var r=t.split(".").map(Number),e=n.split(".").map(Number),o=0;o<Math.max(r.length,e.length);o++){if(o===r.length||r[o]<e[o])return-1;if(o===e.length||r[o]>e[o])return 1}return 0}catch(t){return console.error("Failed to compare version strings",t),null}};(d=exports.ContextTypes||(exports.ContextTypes={})).Contact="fdc3.contact",d.ContactList="fdc3.contactList",d.Country="fdc3.country",d.Instrument="fdc3.instrument",d.Organization="fdc3.organization",d.Portfolio="fdc3.portfolio",d.Position="fdc3.position";var h=function(){function t(){}return t.toContext=function(t){return g(JSON.parse(t),S("Context"))},t.contextToJson=function(t){return JSON.stringify(x(t,S("Context")),null,2)},t.toContact=function(t){return g(JSON.parse(t),S("Contact"))},t.contactToJson=function(t){return JSON.stringify(x(t,S("Contact")),null,2)},t.toContactList=function(t){return g(JSON.parse(t),S("ContactList"))},t.contactListToJson=function(t){return JSON.stringify(x(t,S("ContactList")),null,2)},t.toInstrument=function(t){return g(JSON.parse(t),S("Instrument"))},t.instrumentToJson=function(t){return JSON.stringify(x(t,S("Instrument")),null,2)},t.toInstrumentList=function(t){return g(JSON.parse(t),S("InstrumentList"))},t.instrumentListToJson=function(t){return JSON.stringify(x(t,S("InstrumentList")),null,2)},t.toCountry=function(t){return g(JSON.parse(t),S("Country"))},t.countryToJson=function(t){return JSON.stringify(x(t,S("Country")),null,2)},t.toOrganization=function(t){return g(JSON.parse(t),S("Organization"))},t.organizationToJson=function(t){return JSON.stringify(x(t,S("Organization")),null,2)},t.toPortfolio=function(t){return g(JSON.parse(t),S("Portfolio"))},t.portfolioToJson=function(t){return JSON.stringify(x(t,S("Portfolio")),null,2)},t.toPosition=function(t){return g(JSON.parse(t),S("Position"))},t.positionToJson=function(t){return JSON.stringify(x(t,S("Position")),null,2)},t}();function v(t,n,r){if(void 0===r&&(r=""),r)throw Error('Invalid value for key "'+r+'". Expected type '+JSON.stringify(t)+" but got "+JSON.stringify(n));throw Error("Invalid value "+JSON.stringify(n)+" for type "+JSON.stringify(t))}function j(t){if(void 0===t.jsonToJS){var n={};t.props.forEach((function(t){return n[t.json]={key:t.js,typ:t.typ}})),t.jsonToJS=n}return t.jsonToJS}function m(t){if(void 0===t.jsToJSON){var n={};t.props.forEach((function(t){return n[t.js]={key:t.json,typ:t.typ}})),t.jsToJSON=n}return t.jsToJSON}function w(t,n,r,e){if(void 0===e&&(e=""),"any"===n)return t;if(null===n)return null===t?t:v(n,t);if(!1===n)return v(n,t);for(;"object"==typeof n&&void 0!==n.ref;)n=E[n.ref];return Array.isArray(n)?function(t,n){return-1!==t.indexOf(n)?n:v(t,n)}(n,t):"object"==typeof n?n.hasOwnProperty("unionMembers")?function(t,n){for(var e=t.length,o=0;o<e;o++){var i=t[o];try{return w(n,i,r)}catch(t){}}return v(t,n)}(n.unionMembers,t):n.hasOwnProperty("arrayItems")?function(t,n){return Array.isArray(n)?n.map((function(n){return w(n,t,r)})):v("array",n)}(n.arrayItems,t):n.hasOwnProperty("props")?function(t,n,e){if(null===e||"object"!=typeof e||Array.isArray(e))return v("object",e);var o={};return Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n],a=Object.prototype.hasOwnProperty.call(e,n)?e[n]:void 0;o[i.key]=w(a,i.typ,r,i.key)})),Object.getOwnPropertyNames(e).forEach((function(i){Object.prototype.hasOwnProperty.call(t,i)||(o[i]=w(e[i],n,r,i))})),o}(r(n),n.additional,t):v(n,t):n===Date&&"number"!=typeof t?function(t){if(null===t)return null;var n=new Date(t);return isNaN(n.valueOf())?v("Date",t):n}(t):function(t,n){return typeof t==typeof n?n:v(t,n,e)}(n,t)}function g(t,n){return w(t,n,j)}function x(t,n){return w(t,n,m)}function I(t){return{arrayItems:t}}function O(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{unionMembers:n}}function C(t,n){return{props:t,additional:n}}function L(t){return{props:[],additional:t}}function S(t){return{ref:t}}var N,E={Context:C([{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")},{json:"type",js:"type",typ:""}],"any"),ContactList:C([{json:"contacts",js:"contacts",typ:I(S("Contact"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")}],"any"),Contact:C([{json:"id",js:"id",typ:S("ContactID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:O(void 0,"")}],"any"),ContactID:C([{json:"email",js:"email",typ:O(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:O(void 0,"")}],""),InstrumentList:C([{json:"instruments",js:"instruments",typ:I(S("Instrument"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")}],"any"),Instrument:C([{json:"id",js:"id",typ:S("InstrumentID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:O(void 0,"")}],"any"),InstrumentID:C([{json:"BBG",js:"BBG",typ:O(void 0,"")},{json:"CUSIP",js:"CUSIP",typ:O(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:O(void 0,"")},{json:"FIGI",js:"FIGI",typ:O(void 0,"")},{json:"ISIN",js:"ISIN",typ:O(void 0,"")},{json:"PERMID",js:"PERMID",typ:O(void 0,"")},{json:"RIC",js:"RIC",typ:O(void 0,"")},{json:"SEDOL",js:"SEDOL",typ:O(void 0,"")},{json:"ticker",js:"ticker",typ:O(void 0,"")}],""),Country:C([{json:"id",js:"id",typ:S("CountryID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:O(void 0,"")}],"any"),CountryID:C([{json:"ISOALPHA2",js:"ISOALPHA2",typ:O(void 0,"")},{json:"ISOALPHA3",js:"ISOALPHA3",typ:O(void 0,"")}],""),Organization:C([{json:"id",js:"id",typ:S("OrganizationID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:O(void 0,"")}],"any"),OrganizationID:C([{json:"FDS_ID",js:"FDS_ID",typ:O(void 0,"")},{json:"LEI",js:"LEI",typ:O(void 0,"")},{json:"PERMID",js:"PERMID",typ:O(void 0,"")}],""),Portfolio:C([{json:"positions",js:"positions",typ:I(S("Position"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")}],"any"),Position:C([{json:"holding",js:"holding",typ:3.14},{json:"instrument",js:"instrument",typ:S("Instrument")},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")}],"any")};(N=exports.Intents||(exports.Intents={})).StartCall="StartCall",N.StartChart="StartChart",N.ViewChart="ViewChart",N.ViewContact="ViewContact",N.ViewQuote="ViewQuote",N.ViewNews="ViewNews",N.ViewInstrument="ViewInstrument",N.ViewAnalysis="ViewAnalysis",exports.Convert=h,exports.addContextListener=function(t,n){return p("function"!=typeof t?function(){return window.fdc3.addContextListener(t,n)}:function(){return window.fdc3.addContextListener(t)})},exports.addIntentListener=function(t,n){return p((function(){return window.fdc3.addIntentListener(t,n)}))},exports.broadcast=function(t){p((function(){return window.fdc3.broadcast(t)}))},exports.compareVersionNumbers=y,exports.fdc3Ready=l,exports.findIntent=function(t,n){return f((function(){return window.fdc3.findIntent(t,n)}))},exports.findIntentsByContext=function(t){return f((function(){return window.fdc3.findIntentsByContext(t)}))},exports.getCurrentChannel=function(){return f((function(){return window.fdc3.getCurrentChannel()}))},exports.getInfo=function(){return p((function(){return window.fdc3.getInfo()}))},exports.getOrCreateChannel=function(t){return f((function(){return window.fdc3.getOrCreateChannel(t)}))},exports.getSystemChannels=function(){return f((function(){return window.fdc3.getSystemChannels()}))},exports.joinChannel=function(t){return f((function(){return window.fdc3.joinChannel(t)}))},exports.leaveCurrentChannel=function(){return f((function(){return window.fdc3.leaveCurrentChannel()}))},exports.open=function(t,n){return f((function(){return window.fdc3.open(t,n)}))},exports.raiseIntent=function(t,n,r){return f((function(){return window.fdc3.raiseIntent(t,n,r)}))},exports.raiseIntentForContext=function(t,n){return f((function(){return window.fdc3.raiseIntentForContext(t,n)}))},exports.versionIsAtLeast=function(t,n){var r=y(t.fdc3Version,n);return null===r?null:r>=0};
"use strict";var t,n,r;function e(t,n,r,e,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?n(u):Promise.resolve(u).then(e,o)}function o(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function s(t){e(a,o,i,s,u,"next",t)}function u(t){e(a,o,i,s,u,"throw",t)}s(void 0)}))}}Object.defineProperty(exports,"__esModule",{value:!0}),(t=exports.OpenError||(exports.OpenError={})).AppNotFound="AppNotFound",t.ErrorOnLaunch="ErrorOnLaunch",t.AppTimeout="AppTimeout",t.ResolverUnavailable="ResolverUnavailable",(n=exports.ResolveError||(exports.ResolveError={})).NoAppsFound="NoAppsFound",n.ResolverUnavailable="ResolverUnavailable",n.ResolverTimeout="ResolverTimeout",(r=exports.ChannelError||(exports.ChannelError={})).NoChannelFound="NoChannelFound",r.AccessDenied="AccessDenied",r.CreationFailed="CreationFailed";var i,a=(function(t){var n=function(t){var n=Object.prototype,r=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",a=e.toStringTag||"@@toStringTag";function s(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,r){return t[n]=r}}function u(t,n,r,e){var o=Object.create((n&&n.prototype instanceof p?n:p).prototype),i=new O(e||[]);return o._invoke=function(t,n,r){var e="suspendedStart";return function(o,i){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=g(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var u=c(t,n,r);if("normal"===u.type){if(e=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(e="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),o}function c(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function d(){}function l(){}var y={};y[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(C([])));v&&v!==n&&r.call(v,o)&&(y=v);var j=l.prototype=p.prototype=Object.create(y);function m(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function w(t,n){var e;this._invoke=function(o,i){function a(){return new n((function(e,a){!function e(o,i,a,s){var u=c(t[o],t,i);if("throw"!==u.type){var f=u.arg,p=f.value;return p&&"object"==typeof p&&r.call(p,"__await")?n.resolve(p.__await).then((function(t){e("next",t,a,s)}),(function(t){e("throw",t,a,s)})):n.resolve(p).then((function(t){f.value=t,a(f)}),(function(t){return e("throw",t,a,s)}))}s(u.arg)}(o,i,e,a)}))}return e=e?e.then(a,a):a()}}function g(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,g(t,n),"throw"===n.method))return f;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var e=c(r,t.iterator,n.arg);if("throw"===e.type)return n.method="throw",n.arg=e.arg,n.delegate=null,f;var o=e.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function x(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function I(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,i=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=j.constructor=l,l.constructor=d,d.displayName=s(l,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===d||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,s(t,a,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},m(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(n,r,e,o,i){void 0===i&&(i=Promise);var a=new w(u(n,r,e,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(j),s(j,a,"Generator"),j[o]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(r,e){return a.type="throw",a.arg=t,n.next=r,e&&(n.method="next",n.arg=void 0),!!e}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),f},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}(i={exports:{}}),i.exports),s=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),u=new Error("Timed out waiting for `fdc3Ready` event."),c=new Error("`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.");function f(t){return window.fdc3?t():Promise.reject(s)}function p(t){if(!window.fdc3)throw s;return t()}var d,l=function(){var t=o(a.mark((function t(n){return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===n&&(n=5e3),t.abrupt("return",new Promise((function(t,r){if(window.fdc3)t();else{var e=setTimeout((function(){return window.fdc3?t():r(u)}),n);window.addEventListener("fdc3Ready",(function(){clearTimeout(e),window.fdc3?t():r(c)}),{once:!0})}})));case 2:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),y=function(t,n){try{for(var r=t.split(".").map(Number),e=n.split(".").map(Number),o=0;o<Math.max(r.length,e.length);o++){if(o===r.length||r[o]<e[o])return-1;if(o===e.length||r[o]>e[o])return 1}return 0}catch(t){return console.error("Failed to compare version strings",t),null}};(d=exports.ContextTypes||(exports.ContextTypes={})).Contact="fdc3.contact",d.ContactList="fdc3.contactList",d.Country="fdc3.country",d.Instrument="fdc3.instrument",d.Organization="fdc3.organization",d.Portfolio="fdc3.portfolio",d.Position="fdc3.position";var h=function(){function t(){}return t.toContext=function(t){return g(JSON.parse(t),S("Context"))},t.contextToJson=function(t){return JSON.stringify(x(t,S("Context")),null,2)},t.toContact=function(t){return g(JSON.parse(t),S("Contact"))},t.contactToJson=function(t){return JSON.stringify(x(t,S("Contact")),null,2)},t.toContactList=function(t){return g(JSON.parse(t),S("ContactList"))},t.contactListToJson=function(t){return JSON.stringify(x(t,S("ContactList")),null,2)},t.toInstrument=function(t){return g(JSON.parse(t),S("Instrument"))},t.instrumentToJson=function(t){return JSON.stringify(x(t,S("Instrument")),null,2)},t.toInstrumentList=function(t){return g(JSON.parse(t),S("InstrumentList"))},t.instrumentListToJson=function(t){return JSON.stringify(x(t,S("InstrumentList")),null,2)},t.toCountry=function(t){return g(JSON.parse(t),S("Country"))},t.countryToJson=function(t){return JSON.stringify(x(t,S("Country")),null,2)},t.toOrganization=function(t){return g(JSON.parse(t),S("Organization"))},t.organizationToJson=function(t){return JSON.stringify(x(t,S("Organization")),null,2)},t.toPortfolio=function(t){return g(JSON.parse(t),S("Portfolio"))},t.portfolioToJson=function(t){return JSON.stringify(x(t,S("Portfolio")),null,2)},t.toPosition=function(t){return g(JSON.parse(t),S("Position"))},t.positionToJson=function(t){return JSON.stringify(x(t,S("Position")),null,2)},t}();function v(t,n,r){if(void 0===r&&(r=""),r)throw Error('Invalid value for key "'+r+'". Expected type '+JSON.stringify(t)+" but got "+JSON.stringify(n));throw Error("Invalid value "+JSON.stringify(n)+" for type "+JSON.stringify(t))}function j(t){if(void 0===t.jsonToJS){var n={};t.props.forEach((function(t){return n[t.json]={key:t.js,typ:t.typ}})),t.jsonToJS=n}return t.jsonToJS}function m(t){if(void 0===t.jsToJSON){var n={};t.props.forEach((function(t){return n[t.js]={key:t.json,typ:t.typ}})),t.jsToJSON=n}return t.jsToJSON}function w(t,n,r,e){if(void 0===e&&(e=""),"any"===n)return t;if(null===n)return null===t?t:v(n,t);if(!1===n)return v(n,t);for(;"object"==typeof n&&void 0!==n.ref;)n=E[n.ref];return Array.isArray(n)?function(t,n){return-1!==t.indexOf(n)?n:v(t,n)}(n,t):"object"==typeof n?n.hasOwnProperty("unionMembers")?function(t,n){for(var e=t.length,o=0;o<e;o++){var i=t[o];try{return w(n,i,r)}catch(t){}}return v(t,n)}(n.unionMembers,t):n.hasOwnProperty("arrayItems")?function(t,n){return Array.isArray(n)?n.map((function(n){return w(n,t,r)})):v("array",n)}(n.arrayItems,t):n.hasOwnProperty("props")?function(t,n,e){if(null===e||"object"!=typeof e||Array.isArray(e))return v("object",e);var o={};return Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n],a=Object.prototype.hasOwnProperty.call(e,n)?e[n]:void 0;o[i.key]=w(a,i.typ,r,i.key)})),Object.getOwnPropertyNames(e).forEach((function(i){Object.prototype.hasOwnProperty.call(t,i)||(o[i]=w(e[i],n,r,i))})),o}(r(n),n.additional,t):v(n,t):n===Date&&"number"!=typeof t?function(t){if(null===t)return null;var n=new Date(t);return isNaN(n.valueOf())?v("Date",t):n}(t):function(t,n){return typeof t==typeof n?n:v(t,n,e)}(n,t)}function g(t,n){return w(t,n,j)}function x(t,n){return w(t,n,m)}function I(t){return{arrayItems:t}}function O(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{unionMembers:n}}function C(t,n){return{props:t,additional:n}}function L(t){return{props:[],additional:t}}function S(t){return{ref:t}}var N,E={Context:C([{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")},{json:"type",js:"type",typ:""}],"any"),ContactList:C([{json:"contacts",js:"contacts",typ:I(S("Contact"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")}],"any"),Contact:C([{json:"id",js:"id",typ:S("ContactID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:O(void 0,"")}],"any"),ContactID:C([{json:"email",js:"email",typ:O(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:O(void 0,"")}],""),InstrumentList:C([{json:"instruments",js:"instruments",typ:I(S("Instrument"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")}],"any"),Instrument:C([{json:"id",js:"id",typ:S("InstrumentID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:O(void 0,"")}],"any"),InstrumentID:C([{json:"BBG",js:"BBG",typ:O(void 0,"")},{json:"CUSIP",js:"CUSIP",typ:O(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:O(void 0,"")},{json:"FIGI",js:"FIGI",typ:O(void 0,"")},{json:"ISIN",js:"ISIN",typ:O(void 0,"")},{json:"PERMID",js:"PERMID",typ:O(void 0,"")},{json:"RIC",js:"RIC",typ:O(void 0,"")},{json:"SEDOL",js:"SEDOL",typ:O(void 0,"")},{json:"ticker",js:"ticker",typ:O(void 0,"")}],""),Country:C([{json:"id",js:"id",typ:S("CountryID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:O(void 0,"")}],"any"),CountryID:C([{json:"ISOALPHA2",js:"ISOALPHA2",typ:O(void 0,"")},{json:"ISOALPHA3",js:"ISOALPHA3",typ:O(void 0,"")}],""),Organization:C([{json:"id",js:"id",typ:S("OrganizationID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:O(void 0,"")}],"any"),OrganizationID:C([{json:"FDS_ID",js:"FDS_ID",typ:O(void 0,"")},{json:"LEI",js:"LEI",typ:O(void 0,"")},{json:"PERMID",js:"PERMID",typ:O(void 0,"")}],""),Portfolio:C([{json:"positions",js:"positions",typ:I(S("Position"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")}],"any"),Position:C([{json:"holding",js:"holding",typ:3.14},{json:"instrument",js:"instrument",typ:S("Instrument")},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:O(void 0,L(""))},{json:"name",js:"name",typ:O(void 0,"")}],"any")};(N=exports.Intents||(exports.Intents={})).StartCall="StartCall",N.StartChat="StartChat",N.ViewChart="ViewChart",N.ViewContact="ViewContact",N.ViewQuote="ViewQuote",N.ViewNews="ViewNews",N.ViewInstrument="ViewInstrument",N.ViewAnalysis="ViewAnalysis",exports.Convert=h,exports.addContextListener=function(t,n){return p("function"!=typeof t?function(){return window.fdc3.addContextListener(t,n)}:function(){return window.fdc3.addContextListener(t)})},exports.addIntentListener=function(t,n){return p((function(){return window.fdc3.addIntentListener(t,n)}))},exports.broadcast=function(t){p((function(){return window.fdc3.broadcast(t)}))},exports.compareVersionNumbers=y,exports.fdc3Ready=l,exports.findIntent=function(t,n){return f((function(){return window.fdc3.findIntent(t,n)}))},exports.findIntentsByContext=function(t){return f((function(){return window.fdc3.findIntentsByContext(t)}))},exports.getCurrentChannel=function(){return f((function(){return window.fdc3.getCurrentChannel()}))},exports.getInfo=function(){return p((function(){return window.fdc3.getInfo()}))},exports.getOrCreateChannel=function(t){return f((function(){return window.fdc3.getOrCreateChannel(t)}))},exports.getSystemChannels=function(){return f((function(){return window.fdc3.getSystemChannels()}))},exports.joinChannel=function(t){return f((function(){return window.fdc3.joinChannel(t)}))},exports.leaveCurrentChannel=function(){return f((function(){return window.fdc3.leaveCurrentChannel()}))},exports.open=function(t,n){return f((function(){return window.fdc3.open(t,n)}))},exports.raiseIntent=function(t,n,r){return f((function(){return window.fdc3.raiseIntent(t,n,r)}))},exports.raiseIntentForContext=function(t,n){return f((function(){return window.fdc3.raiseIntentForContext(t,n)}))},exports.versionIsAtLeast=function(t,n){var r=y(t.fdc3Version,n);return null===r?null:r>=0};
//# sourceMappingURL=fdc3.cjs.production.min.js.map

@@ -1502,3 +1502,3 @@ /**

Intents["StartCall"] = "StartCall";
Intents["StartChart"] = "StartChart";
Intents["StartChat"] = "StartChat";
Intents["ViewChart"] = "ViewChart";

@@ -1505,0 +1505,0 @@ Intents["ViewContact"] = "ViewContact";

export declare enum Intents {
StartCall = "StartCall",
StartChart = "StartChart",
StartChat = "StartChat",
ViewChart = "ViewChart",

@@ -5,0 +5,0 @@ ViewContact = "ViewContact",

{
"name": "@finos/fdc3",
"version": "1.2.0-beta",
"version": "1.2.0",
"author": "Fintech Open Source Foundation (FINOS)",

@@ -10,2 +10,5 @@ "homepage": "https://fdc3.finos.org",

},
"publishConfig": {
"tag": "latest"
},
"license": "Apache-2.0",

@@ -12,0 +15,0 @@ "main": "dist/index.js",

# <a href='http://fdc3.finos.org'><img src='./website/static/img/fdc3-logo-2019-color.png' height='150' alt='FDC3 Logo' aria-label='fdc3.finos.org' /></a>
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/finos/fdc3)](https://github.com/finos/fdc3/releases/latest)
[![Latest Standard](https://img.shields.io/badge/release-1.2-blue)](https://github.com/finos/fdc3/releases/v1.2)
[![npm](https://img.shields.io/npm/v/@finos/fdc3)](https://www.npmjs.com/package/@finos/fdc3)

@@ -103,3 +103,3 @@ [![FINOS - Released](https://cdn.jsdelivr.net/gh/finos/contrib-toolbox@master/images/badge-released.svg)](https://finosfoundation.atlassian.net/wiki/display/FINOS/Released)

## Native
The FDC3 standard does not define wire formats for communication. Hence, for native applications to be FDC3-enabled, they need to make use of a library (e.g. a DLL in .Net or Jar file in Java) that provides them with an implementation of the FDC3 API. FDC3-enabled native applications are therefore specific to particular desktop container frameworks (or other suitable environments) that provide the necessary libraries.
The FDC3 standard does not define wire formats for communication. Hence, for native applications to be FDC3-enabled, they need to make use of a library (e.g. a DLL in .Net or Jar file in Java) that provides them with an implementation of the FDC3 API. FDC3-enabled native applications are therefore specific to particular desktop container frameworks (or other suitable environments) that provide the necessary libraries.

@@ -111,5 +111,5 @@ Despite this limitation, implementing support for FDC3 in a native application can allow it to interact with a wide variety of FDC3-enabled web applications.

- [ ] Publish versioned NPM packages to ease adoption and implementation of FDC3 APIs.
- [x] Publish versioned NPM packages to ease adoption and implementation of FDC3 APIs.
- [x] Release version 1.2 of the standard with expanded API capabilities.
- [ ] Establish a process to accelerate community-contributed context data definitions.
- [ ] Release version 1.2 of the standard with expanded API capabilities.
- [ ] Release version 2.0 of the standard with support for app instances, two-way data flow and joining multiple channels.

@@ -124,5 +124,5 @@ - [ ] Improve the app directory specification, with support for container-agnostic app manifests, and more type metadata around channels and launching apps.

The fastest and more interactive way to connect and ask questions to the FDC3 community is to join the [#fdc3 channel on the FINOS slack](https://finos-lf.slack.com/messages/fdc3/).
The fastest and more interactive way to connect and ask questions to the FDC3 community is to join the [#fdc3 channel on the FINOS slack](https://finos-lf.slack.com/messages/fdc3/).
If you'd like to receive official updates, and/or you don't have access to Slack, please send an email to [fdc3@finos.org]. You can join the list by sending an email to [fdc3+subscribe@finos.org].
If you'd like to receive official updates, and/or you don't have access to Slack, please send an email to [fdc3@finos.org]. You can join the list by sending an email to [fdc3+subscribe@finos.org].

@@ -170,3 +170,3 @@ Finally, another great way to interact with the community, is to attend the quarterly [FDC3 General Meeting]: you will receive an invite by signing up to the mailing list, or you can find the meeting in the [FINOS Project Meetings Calendar].

### Meetings
The PMC meets every second Friday at 9:30am ET / 2:30pm GMT. Find the next meeting, including meeting details, on the [FINOS Project Meetings Calendar].
The PMC meets every second Friday at 9am ET / 2pm GMT. Find the next meeting, including meeting details, on the [FINOS Project Meetings Calendar].

@@ -190,3 +190,3 @@ ### Mailing list

_NOTE:_ Commits and pull requests to FINOS repositories will only be accepted from those contributors with an active, executed Individual Contributor License Agreement (ICLA) with FINOS OR who are covered under an existing and active Corporate Contribution License Agreement (CCLA) executed with FINOS. Commits from individuals not covered under an ICLA or CCLA will be flagged and blocked by the FINOS Clabot tool. Please note that some CCLAs require individuals/employees to be explicitly named on the CCLA.
_NOTE:_ Commits and pull requests to FINOS repositories will only be accepted from those contributors with an active, executed Individual Contributor License Agreement (ICLA) with FINOS, _OR_ who are covered under an existing and active Corporate Contribution License Agreement (CCLA) executed with FINOS. Commits from individuals not covered under an ICLA or CCLA will be flagged and blocked by the FINOS `cla-bot` tool. Please note that some CCLAs require individuals/employees to be explicitly named on the CCLA.

@@ -193,0 +193,0 @@ *Need an ICLA? Unsure if you are covered under an existing CCLA? Email [help@finos.org](mailto:help@finos.org).*

export enum Intents {
StartCall = 'StartCall',
StartChart = 'StartChart',
StartChat = 'StartChat',
ViewChart = 'ViewChart',

@@ -5,0 +5,0 @@ ViewContact = 'ViewContact',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc