taxtank-core 1.0.12 → 1.0.15

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.
@@ -10827,7 +10827,7 @@ class Holding extends AbstractModel {
10827
10827
 
10828
10828
  var SharesightDetailsMessagesEnum;
10829
10829
  (function (SharesightDetailsMessagesEnum) {
10830
- SharesightDetailsMessagesEnum["HOLDING_CONNECTED"] = "We're syncing your ShareSight trades, which might take a few minutes.";
10830
+ SharesightDetailsMessagesEnum["HOLDING_CONNECTED"] = "We're retrieving your Sharesight portfolio details. To choose which ones to share with TaxTank, head to the Integrations tab and click the 'Manage Portfolios' button.";
10831
10831
  SharesightDetailsMessagesEnum["PROPERTY_CONNECTED"] = "We're syncing your properties, which might take a few minutes.";
10832
10832
  SharesightDetailsMessagesEnum["DISCONNECTED"] = "Sharesight disconnected";
10833
10833
  SharesightDetailsMessagesEnum["DISCONNECT_CONFIRM"] = "Disconnecting ShareSight means we can no longer sync data. Any trades already imported will become editable in TaxTank.";
@@ -10852,7 +10852,12 @@ __decorate([
10852
10852
  Type(() => Date)
10853
10853
  ], SharesightDetails.prototype, "sharesightLastExportDate", void 0);
10854
10854
 
10855
- class SharesightPortfolio extends AbstractModel {
10855
+ class SharesightPortfolio extends ObservableModel {
10856
+ constructor() {
10857
+ super(...arguments);
10858
+ this.isTaxFree = false;
10859
+ }
10860
+ static { this.className = 'SharesightPortfolio'; }
10856
10861
  }
10857
10862
  __decorate([
10858
10863
  Type(() => SharesightDetails)
@@ -10860,7 +10865,7 @@ __decorate([
10860
10865
 
10861
10866
  var SharesightPortfolioMessages;
10862
10867
  (function (SharesightPortfolioMessages) {
10863
- SharesightPortfolioMessages["PUT"] = "Portfolios updated";
10868
+ SharesightPortfolioMessages["PUT"] = "We\u2019re syncing your Sharesight trades, which might take a few minutes. We\u2019ll let you know when they\u2019re ready.";
10864
10869
  })(SharesightPortfolioMessages || (SharesightPortfolioMessages = {}));
10865
10870
 
10866
10871
  class BudgetRule extends BudgetRule$1 {
@@ -16607,6 +16612,7 @@ class HoldingTradeService extends RestService$1 {
16607
16612
  }
16608
16613
  listenEvents() {
16609
16614
  this.listenCSE(HoldingTradeImport, this.refreshCache, ['post', 'delete']);
16615
+ this.listenCSE(SharesightPortfolio, this.refreshCache, ['put', 'delete']);
16610
16616
  }
16611
16617
  listenNotifications() {
16612
16618
  this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
@@ -16973,7 +16979,7 @@ class SharesightPortfolioService extends RestService$1 {
16973
16979
  this.modelClass = SharesightPortfolio;
16974
16980
  this.collectionClass = Collection;
16975
16981
  this.endpointUri = 'sharesight-portfolios';
16976
- this.disabledMethods = ['put', 'putBatch'];
16982
+ this.disabledMethods = ['putBatch'];
16977
16983
  }
16978
16984
  getExternal() {
16979
16985
  return this.fetch(`${this.apiUrl}/external`, false);
@@ -20573,7 +20579,8 @@ const ENDPOINTS = {
20573
20579
  SHARESIGHT_RECONNECT: new Endpoint('PUT', '\\/sharesight-details/\\d+\\/reconnect'),
20574
20580
  SHARESIGHT_PORTFOLIO_GET: new Endpoint('GET', '\\/sharesight-portfolios'),
20575
20581
  SHARESIGHT_PORTFOLIO_EXTERNAL_GET: new Endpoint('GET', '\\/sharesight-portfolios/external'),
20576
- SHARESIGHT_PORTFOLIO_POST: new Endpoint('POST', '\\/sharesight-portfolios'),
20582
+ SHARESIGHT_PORTFOLIO_PUT: new Endpoint('PUT', '\\/sharesight-portfolios/\\d+'),
20583
+ SHARESIGHT_PORTFOLIO_BATCH_POST: new Endpoint('POST', '\\/sharesight-portfolios'),
20577
20584
  SHARESIGHT_PORTFOLIO_BATCH_DELETE: new Endpoint('DELETE', '\\/sharesight-portfolios'),
20578
20585
  VEHICLES_GET: new Endpoint('GET', '\\/vehicles'),
20579
20586
  VEHICLES_POST: new Endpoint('POST', '\\/vehicles'),