@barchart/portfolio-api-common 1.11.8 → 1.12.0
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.
|
@@ -382,6 +382,17 @@ module.exports = (() => {
|
|
|
382
382
|
static get TRANSACTION_SWITCH_FAILED_INVALID_REINVEST() {
|
|
383
383
|
return transactionSwitchFailedInvalidReinvest;
|
|
384
384
|
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Unable to generate analytics report. The portfolio does not exist.
|
|
388
|
+
*
|
|
389
|
+
* @public
|
|
390
|
+
* @static
|
|
391
|
+
* @returns {FailureType}
|
|
392
|
+
*/
|
|
393
|
+
static get WEALTHSCOPE_TOKEN_CREATE_FAIL_NO_PORTFOLIO() {
|
|
394
|
+
return wealthscopeTokenCreateFailNoPortfolio;
|
|
395
|
+
}
|
|
385
396
|
|
|
386
397
|
toString() {
|
|
387
398
|
return '[PortfolioFailureType]';
|
|
@@ -428,5 +439,7 @@ module.exports = (() => {
|
|
|
428
439
|
const transactionSwitchFailedInvalidConversion = new FailureType('TRANSACTION_SWITCH_FAILED_INVALID_CONVERSION', 'Unable to convert transaction from {U|existing.description} to {U|desired.description}. This conversion is not supported.');
|
|
429
440
|
const transactionSwitchFailedInvalidReinvest = new FailureType('TRANSACTION_SWITCH_FAILED_INVALID_REINVEST', 'Unable to convert transaction from {U|existing.description} to {U|desired.description}. Reinvestment is not supported for short positions.');
|
|
430
441
|
|
|
442
|
+
const wealthscopeTokenCreateFailNoPortfolio = new FailureType('WEALTHSCOPE_TOKEN_CREATE_FAIL_NO_PORTFOLIO', 'Unable to generate analytics report. The portfolio does not exist, has it been deleted?', false);
|
|
443
|
+
|
|
431
444
|
return PortfolioFailureType;
|
|
432
445
|
})();
|