taxtank-core 0.28.62 → 0.28.64
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.
- package/bundles/taxtank-core.umd.js +24 -22
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/account-setup/account-setup-items.const.js +8 -8
- package/esm2015/lib/models/account-setup/account-setup-items.enum.js +3 -3
- package/esm2015/lib/models/sole/sole-business-allocation.js +6 -2
- package/esm2015/lib/services/account-setup/account-setup.service.js +10 -14
- package/fesm2015/taxtank-core.js +21 -22
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/account-setup/account-setup-items.enum.d.ts +2 -2
- package/lib/models/sole/sole-business-allocation.d.ts +1 -0
- package/lib/services/account-setup/account-setup.service.d.ts +3 -1
- package/package.json +1 -1
|
@@ -3106,6 +3106,13 @@
|
|
|
3106
3106
|
__decorate([
|
|
3107
3107
|
classTransformer.Type(function () { return SoleBusiness; })
|
|
3108
3108
|
], SoleBusinessAllocation.prototype, "business", void 0);
|
|
3109
|
+
__decorate([
|
|
3110
|
+
classTransformer.Transform(function (_a) {
|
|
3111
|
+
var value = _a.value;
|
|
3112
|
+
return value || 100;
|
|
3113
|
+
}),
|
|
3114
|
+
classTransformer.Expose()
|
|
3115
|
+
], SoleBusinessAllocation.prototype, "percent", void 0);
|
|
3109
3116
|
|
|
3110
3117
|
var SoleBusinessLoss$1 = /** @class */ (function (_super) {
|
|
3111
3118
|
__extends(SoleBusinessLoss, _super);
|
|
@@ -13325,8 +13332,8 @@
|
|
|
13325
13332
|
AccountSetupItemsEnum[AccountSetupItemsEnum["PROPERTY"] = 2] = "PROPERTY";
|
|
13326
13333
|
AccountSetupItemsEnum[AccountSetupItemsEnum["BANK_FEEDS"] = 3] = "BANK_FEEDS";
|
|
13327
13334
|
AccountSetupItemsEnum[AccountSetupItemsEnum["WORK_LOGBOOK"] = 4] = "WORK_LOGBOOK";
|
|
13328
|
-
AccountSetupItemsEnum[AccountSetupItemsEnum["
|
|
13329
|
-
AccountSetupItemsEnum[AccountSetupItemsEnum["
|
|
13335
|
+
AccountSetupItemsEnum[AccountSetupItemsEnum["TRANSACTION"] = 5] = "TRANSACTION";
|
|
13336
|
+
AccountSetupItemsEnum[AccountSetupItemsEnum["SOLE_BUSINESS"] = 6] = "SOLE_BUSINESS";
|
|
13330
13337
|
})(AccountSetupItemsEnum || (AccountSetupItemsEnum = {}));
|
|
13331
13338
|
|
|
13332
13339
|
var _a;
|
|
@@ -13367,19 +13374,19 @@
|
|
|
13367
13374
|
url: '/client/work-tank/logbook',
|
|
13368
13375
|
urlFragment: 'productTour'
|
|
13369
13376
|
}),
|
|
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
13377
|
_a[AccountSetupItemsEnum.TRANSACTION] = classTransformer.plainToClass(AccountSetupItem, {
|
|
13378
13378
|
title: 'Allocate transactions',
|
|
13379
13379
|
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
13380
|
url: '/client/bank-feeds',
|
|
13381
13381
|
urlFragment: 'allocationProductTour',
|
|
13382
13382
|
}),
|
|
13383
|
+
_a[AccountSetupItemsEnum.SOLE_BUSINESS] = classTransformer.plainToClass(AccountSetupItem, {
|
|
13384
|
+
title: 'Add your Sole Trader business',
|
|
13385
|
+
description: 'Add up to 6 sole trader businesses to seamlessly manage invoicing, payments, BAS and prior even losses for every hustle without the hassle!',
|
|
13386
|
+
url: '/client/sole-tank',
|
|
13387
|
+
urlFragment: 'productTour',
|
|
13388
|
+
clientIncomeTypes: ['sole']
|
|
13389
|
+
}),
|
|
13383
13390
|
_a);
|
|
13384
13391
|
|
|
13385
13392
|
/**
|
|
@@ -14375,7 +14382,7 @@
|
|
|
14375
14382
|
* Checks required steps and their completion
|
|
14376
14383
|
*/
|
|
14377
14384
|
var AccountSetupService = /** @class */ (function () {
|
|
14378
|
-
function AccountSetupService(clientIncomeTypesService, propertyService, incomeSourceService, bankAccountsService, transactionAllocationService, vehicleClaimService, transactionService) {
|
|
14385
|
+
function AccountSetupService(clientIncomeTypesService, propertyService, incomeSourceService, bankAccountsService, transactionAllocationService, vehicleClaimService, transactionService, soleBusinessService) {
|
|
14379
14386
|
this.clientIncomeTypesService = clientIncomeTypesService;
|
|
14380
14387
|
this.propertyService = propertyService;
|
|
14381
14388
|
this.incomeSourceService = incomeSourceService;
|
|
@@ -14383,6 +14390,7 @@
|
|
|
14383
14390
|
this.transactionAllocationService = transactionAllocationService;
|
|
14384
14391
|
this.vehicleClaimService = vehicleClaimService;
|
|
14385
14392
|
this.transactionService = transactionService;
|
|
14393
|
+
this.soleBusinessService = soleBusinessService;
|
|
14386
14394
|
this.cacheSubject = new rxjs.ReplaySubject(1);
|
|
14387
14395
|
}
|
|
14388
14396
|
/**
|
|
@@ -14450,20 +14458,14 @@
|
|
|
14450
14458
|
if (incomeTypes.property) {
|
|
14451
14459
|
batch.push(this.create(AccountSetupItemsEnum.PROPERTY, this.propertyService.get()));
|
|
14452
14460
|
}
|
|
14461
|
+
// Sole business item is completed when user added at least one business
|
|
14462
|
+
if (incomeTypes.sole) {
|
|
14463
|
+
batch.push(this.create(AccountSetupItemsEnum.SOLE_BUSINESS, this.soleBusinessService.get()));
|
|
14464
|
+
}
|
|
14453
14465
|
// Bank feeds item is completed when user added at least one bank account (basiq or manual)
|
|
14454
14466
|
batch.push(this.create(AccountSetupItemsEnum.BANK_FEEDS, this.bankAccountsService.get()));
|
|
14455
14467
|
// Logbook item is completed when user has at least one vehicle claim with any method (kms or logbook)
|
|
14456
14468
|
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
14469
|
// Allocation item is completed when user added at least one transaction allocation
|
|
14468
14470
|
batch.push(this.create(AccountSetupItemsEnum.TRANSACTION, this.transactionAllocationService.get()));
|
|
14469
14471
|
return rxjs.combineLatest(batch).pipe(operators.map(function (items) { return new AccountSetupItemCollection(items); }));
|
|
@@ -14499,14 +14501,14 @@
|
|
|
14499
14501
|
};
|
|
14500
14502
|
return AccountSetupService;
|
|
14501
14503
|
}());
|
|
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 });
|
|
14504
|
+
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
14505
|
AccountSetupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, providedIn: 'root' });
|
|
14504
14506
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AccountSetupService, decorators: [{
|
|
14505
14507
|
type: i0.Injectable,
|
|
14506
14508
|
args: [{
|
|
14507
14509
|
providedIn: 'root'
|
|
14508
14510
|
}]
|
|
14509
|
-
}], ctorParameters: function () { return [{ type: ClientIncomeTypesService }, { type: PropertyService }, { type: IncomeSourceService }, { type: BankAccountService }, { type: TransactionAllocationService }, { type: VehicleClaimService }, { type: TransactionService }]; } });
|
|
14511
|
+
}], ctorParameters: function () { return [{ type: ClientIncomeTypesService }, { type: PropertyService }, { type: IncomeSourceService }, { type: BankAccountService }, { type: TransactionAllocationService }, { type: VehicleClaimService }, { type: TransactionService }, { type: SoleBusinessService }]; } });
|
|
14510
14512
|
|
|
14511
14513
|
var AddressService = /** @class */ (function () {
|
|
14512
14514
|
function AddressService(http, environment) {
|