taxtank-core 0.28.62 → 0.28.63

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.
@@ -13325,8 +13325,8 @@
13325
13325
  AccountSetupItemsEnum[AccountSetupItemsEnum["PROPERTY"] = 2] = "PROPERTY";
13326
13326
  AccountSetupItemsEnum[AccountSetupItemsEnum["BANK_FEEDS"] = 3] = "BANK_FEEDS";
13327
13327
  AccountSetupItemsEnum[AccountSetupItemsEnum["WORK_LOGBOOK"] = 4] = "WORK_LOGBOOK";
13328
- AccountSetupItemsEnum[AccountSetupItemsEnum["SOLE_INCOME"] = 5] = "SOLE_INCOME";
13329
- AccountSetupItemsEnum[AccountSetupItemsEnum["TRANSACTION"] = 6] = "TRANSACTION";
13328
+ AccountSetupItemsEnum[AccountSetupItemsEnum["TRANSACTION"] = 5] = "TRANSACTION";
13329
+ AccountSetupItemsEnum[AccountSetupItemsEnum["SOLE_BUSINESS"] = 6] = "SOLE_BUSINESS";
13330
13330
  })(AccountSetupItemsEnum || (AccountSetupItemsEnum = {}));
13331
13331
 
13332
13332
  var _a;
@@ -13367,19 +13367,19 @@
13367
13367
  url: '/client/work-tank/logbook',
13368
13368
  urlFragment: 'productTour'
13369
13369
  }),
13370
- _a[AccountSetupItemsEnum.SOLE_INCOME] = classTransformer.plainToClass(AccountSetupItem, {
13371
- title: 'Add your business details',
13372
- description: 'Add your business details, logo and payment terms to create invoice templates in minutes.',
13373
- url: '/client/sole-tank/forecasting',
13374
- urlFragment: 'productTour',
13375
- clientIncomeTypes: ['sole']
13376
- }),
13377
13370
  _a[AccountSetupItemsEnum.TRANSACTION] = classTransformer.plainToClass(AccountSetupItem, {
13378
13371
  title: 'Allocate transactions',
13379
13372
  description: 'Select one or multiple transactions, the category from the dropdown and attach your receipt. It’s that simple to capture every possible deduction, and keep organised all throughout the year.',
13380
13373
  url: '/client/bank-feeds',
13381
13374
  urlFragment: 'allocationProductTour',
13382
13375
  }),
13376
+ _a[AccountSetupItemsEnum.SOLE_BUSINESS] = classTransformer.plainToClass(AccountSetupItem, {
13377
+ title: 'Add your Sole Trader business',
13378
+ description: 'Add up to 6 sole trader businesses to seamlessly manage invoicing, payments, BAS and prior even losses for every hustle without the hassle!',
13379
+ url: '/client/sole-tank',
13380
+ urlFragment: 'productTour',
13381
+ clientIncomeTypes: ['sole']
13382
+ }),
13383
13383
  _a);
13384
13384
 
13385
13385
  /**
@@ -14375,7 +14375,7 @@
14375
14375
  * Checks required steps and their completion
14376
14376
  */
14377
14377
  var AccountSetupService = /** @class */ (function () {
14378
- function AccountSetupService(clientIncomeTypesService, propertyService, incomeSourceService, bankAccountsService, transactionAllocationService, vehicleClaimService, transactionService) {
14378
+ function AccountSetupService(clientIncomeTypesService, propertyService, incomeSourceService, bankAccountsService, transactionAllocationService, vehicleClaimService, transactionService, soleBusinessService) {
14379
14379
  this.clientIncomeTypesService = clientIncomeTypesService;
14380
14380
  this.propertyService = propertyService;
14381
14381
  this.incomeSourceService = incomeSourceService;
@@ -14383,6 +14383,7 @@
14383
14383
  this.transactionAllocationService = transactionAllocationService;
14384
14384
  this.vehicleClaimService = vehicleClaimService;
14385
14385
  this.transactionService = transactionService;
14386
+ this.soleBusinessService = soleBusinessService;
14386
14387
  this.cacheSubject = new rxjs.ReplaySubject(1);
14387
14388
  }
14388
14389
  /**
@@ -14450,20 +14451,14 @@
14450
14451
  if (incomeTypes.property) {
14451
14452
  batch.push(this.create(AccountSetupItemsEnum.PROPERTY, this.propertyService.get()));
14452
14453
  }
14454
+ // Sole business item is completed when user added at least one business
14455
+ if (incomeTypes.sole) {
14456
+ batch.push(this.create(AccountSetupItemsEnum.SOLE_BUSINESS, this.soleBusinessService.get()));
14457
+ }
14453
14458
  // Bank feeds item is completed when user added at least one bank account (basiq or manual)
14454
14459
  batch.push(this.create(AccountSetupItemsEnum.BANK_FEEDS, this.bankAccountsService.get()));
14455
14460
  // Logbook item is completed when user has at least one vehicle claim with any method (kms or logbook)
14456
14461
  batch.push(this.getLogbookItem());
14457
- // @TODO waiting for sole tank forecast page
14458
- // Sole item is completed when user added at least one sole income source
14459
- // if (incomeTypes.soleTrader) {
14460
- // batch.push(
14461
- // this.prepareItem(
14462
- // AccountSetupItemsEnum.SOLE_INCOME,
14463
- // this.getIncomeSourcesByType(IncomeSourceTypeEnum.SOLE)
14464
- // )
14465
- // );
14466
- // }
14467
14462
  // Allocation item is completed when user added at least one transaction allocation
14468
14463
  batch.push(this.create(AccountSetupItemsEnum.TRANSACTION, this.transactionAllocationService.get()));
14469
14464
  return rxjs.combineLatest(batch).pipe(operators.map(function (items) { return new AccountSetupItemCollection(items); }));
@@ -14499,14 +14494,14 @@
14499
14494
  };
14500
14495
  return AccountSetupService;
14501
14496
  }());
14502
- AccountSetupService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14497
+ AccountSetupService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
14503
14498
  AccountSetupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, providedIn: 'root' });
14504
14499
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, decorators: [{
14505
14500
  type: i0.Injectable,
14506
14501
  args: [{
14507
14502
  providedIn: 'root'
14508
14503
  }]
14509
- }], ctorParameters: function () { return [{ type: ClientIncomeTypesService }, { type: PropertyService }, { type: IncomeSourceService }, { type: BankAccountService }, { type: TransactionAllocationService }, { type: VehicleClaimService }, { type: TransactionService }]; } });
14504
+ }], ctorParameters: function () { return [{ type: ClientIncomeTypesService }, { type: PropertyService }, { type: IncomeSourceService }, { type: BankAccountService }, { type: TransactionAllocationService }, { type: VehicleClaimService }, { type: TransactionService }, { type: SoleBusinessService }]; } });
14510
14505
 
14511
14506
  var AddressService = /** @class */ (function () {
14512
14507
  function AddressService(http, environment) {