@equitysim/trkd-client
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "@equitysim/trkd-client", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "REST Client for TRKD API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
export default { | ||
RIC: { | ||
type: String, | ||
name: 'id', | ||
}, | ||
CURRENCY: { | ||
@@ -79,3 +75,3 @@ type: String, | ||
DIVIDENDTP: { | ||
type: Number, | ||
type: String, | ||
name: 'dividendFrequency', | ||
@@ -82,0 +78,0 @@ }, |
@@ -43,7 +43,7 @@ export default { | ||
CouponFrequency: { | ||
type: String, | ||
type: Number, | ||
name: 'couponFrequency', | ||
}, | ||
CouponRate: { | ||
type: String, | ||
type: Number, | ||
name: 'couponRate', | ||
@@ -50,0 +50,0 @@ }, |
import quoteFields from './field-maps/quote-fields' | ||
import recordTypes from './field-maps/record-types' | ||
import dividendFrequencies from './field-maps/dividend-frequencies' | ||
/** | ||
@@ -26,6 +27,10 @@ * Used to construct TRKD models from the RetrieveItem3 response | ||
if (mapResult.type === String) { | ||
if (mapResult.type === String && typeof data === 'string') { | ||
data = data.trim() | ||
} | ||
if (mapResult.name === 'dividendFrequency') { | ||
data = dividendFrequencies[data] || 4 | ||
} | ||
if (mapResult.name === 'recordType') { | ||
@@ -32,0 +37,0 @@ data = recordTypes[data] |
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
40411
26
1243