@barchart/events-api-common
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -21,7 +21,7 @@ const Enum = require('@barchart/common-js/lang/Enum'); | ||
* Returns the {@link CustomerType} which corresponds to the code supplied. | ||
* If matching {@link CustomerType} exists, a null value is returned. | ||
* If no matching {@link CustomerType} exists, a null value is returned. | ||
* | ||
* @public | ||
* @param {String} code | ||
* @return {CustomerType/|null} | ||
* @returns {CustomerType|null} | ||
*/ | ||
@@ -28,0 +28,0 @@ static parse(code) { |
@@ -51,2 +51,14 @@ const assert = require('@barchart/common-js/lang/assert'), | ||
/** | ||
* Returns the {@link EventType} which corresponds to the code supplied. | ||
* If no matching {@link EventType} exists, a null value is returned. | ||
* | ||
* @public | ||
* @param {String} code | ||
* @returns {EventType|null} | ||
*/ | ||
static parse(code) { | ||
return Enum.fromCode(EventType, code); | ||
} | ||
static get WATCHLIST_APPLICATION_LOADED() { | ||
@@ -53,0 +65,0 @@ return watchlistApplicationLoaded; |
@@ -20,2 +20,14 @@ const Enum = require('@barchart/common-js/lang/Enum'); | ||
/** | ||
* Returns the {@link ProductType} which corresponds to the code supplied. | ||
* If no matching {@link ProductType} exists, a null value is returned. | ||
* | ||
* @public | ||
* @param {String} code | ||
* @returns {ProductType|null} | ||
*/ | ||
static parse(code) { | ||
return Enum.fromCode(ProductType, code); | ||
} | ||
/** | ||
* The portfolio system. | ||
@@ -22,0 +34,0 @@ * |
{ | ||
"name": "@barchart/events-api-common", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"description": "Common classes used by the Barchart Event Tracking System", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31563
15
760