taxtank-core 0.33.46 → 0.33.48
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/lib/collections/chart-accounts/chart-accounts-value.collection.mjs +20 -0
- package/esm2022/src/lib/collections/chart-accounts/index.mjs +2 -0
- package/esm2022/src/lib/collections/chart-accounts.collection.mjs +2 -2
- package/esm2022/src/lib/collections/collection.mjs +2 -2
- package/esm2022/src/lib/collections/home-office/home-office-claim.collection.mjs +7 -0
- package/esm2022/src/lib/collections/home-office/index.mjs +2 -0
- package/esm2022/src/lib/collections/index.mjs +3 -1
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +3 -3
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-field.enum.mjs → bank/allocation-rule/allocation-rule-condition-field.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/{allocation-rule-condition-operator.enum.mjs → bank/allocation-rule/allocation-rule-condition-operator.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/bank/allocation-rule/allocation-rule-type.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/bank/allocation-rule/index.mjs +5 -0
- package/esm2022/src/lib/db/Enums/bank/index.mjs +2 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.mjs +48 -0
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs +25 -66
- package/esm2022/src/lib/db/Enums/chart-accounts/index.mjs +2 -3
- package/esm2022/src/lib/db/Enums/home-office/home-office-claim-method.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/home-office/index.mjs +2 -0
- package/esm2022/src/lib/db/Enums/index.mjs +2 -6
- package/esm2022/src/lib/db/Models/bank/bank-transaction.mjs +2 -2
- package/esm2022/src/lib/db/Models/depreciation/depreciation.mjs +1 -2
- package/esm2022/src/lib/db/Models/sole/sole-business.mjs +2 -1
- package/esm2022/src/lib/db/Models/sole/sole-details.mjs +2 -1
- package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
- package/esm2022/src/lib/db/Models/vehicle/vehicle-claim.mjs +2 -1
- package/esm2022/src/lib/forms/abstract.form.mjs +36 -4
- package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
- package/esm2022/src/lib/forms/home-office/home-office-calculator.form.mjs +25 -0
- package/esm2022/src/lib/forms/home-office/home-office-claim.form.mjs +47 -0
- package/esm2022/src/lib/forms/home-office/home-office-log.form.mjs +15 -0
- package/esm2022/src/lib/forms/home-office/index.mjs +4 -0
- package/esm2022/src/lib/forms/index.mjs +2 -1
- package/esm2022/src/lib/forms/transaction/work/work-expense.form.mjs +15 -2
- package/esm2022/src/lib/models/bank/bank-transaction-chart-data.mjs +2 -3
- package/esm2022/src/lib/models/chart-accounts/chart-accounts.mjs +36 -11
- package/esm2022/src/lib/models/dictionary/dictionary.mjs +3 -2
- package/esm2022/src/lib/models/endpoint/endpoint.mjs +1 -1
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +8 -1
- package/esm2022/src/lib/models/home-office/home-office-claim.interface.mjs +2 -0
- package/esm2022/src/lib/models/home-office/home-office-claim.mjs +46 -0
- package/esm2022/src/lib/models/home-office/home-office-log.interface.mjs +2 -0
- package/esm2022/src/lib/models/home-office/home-office-log.mjs +14 -0
- package/esm2022/src/lib/models/home-office/index.mjs +5 -0
- package/esm2022/src/lib/models/index.mjs +2 -1
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.mjs +14 -14
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs +18 -18
- package/esm2022/src/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +12 -12
- package/esm2022/src/lib/models/sole/sole-invoice-item.mjs +25 -2
- package/esm2022/src/lib/models/transaction/transaction.mjs +10 -4
- package/esm2022/src/lib/services/data.service.mjs +2 -2
- package/esm2022/src/lib/services/http/home-office/home-office-claim-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/home-office/home-office-claim.service.mjs +23 -0
- package/esm2022/src/lib/services/http/home-office/home-office-log-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/home-office/home-office-log.service.mjs +23 -0
- package/esm2022/src/lib/services/http/home-office/index.mjs +5 -0
- package/esm2022/src/lib/services/http/index.mjs +3 -1
- package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +8 -1
- package/esm2022/src/lib/services/http/rest/rest.service.mjs +24 -5
- package/esm2022/src/lib/services/http/rest-messages.enum.mjs +7 -0
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +9 -5
- package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -12
- package/esm2022/src/lib/validators/current-fin-year.validator.mjs +3 -2
- package/fesm2022/taxtank-core.mjs +485 -170
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/chart-accounts/chart-accounts-value.collection.d.ts +12 -0
- package/src/lib/collections/chart-accounts/index.d.ts +1 -0
- package/src/lib/collections/collection.d.ts +1 -1
- package/src/lib/collections/home-office/home-office-claim.collection.d.ts +5 -0
- package/src/lib/collections/home-office/index.d.ts +1 -0
- package/src/lib/collections/index.d.ts +2 -0
- package/src/lib/db/Enums/bank/allocation-rule/index.d.ts +4 -0
- package/src/lib/db/Enums/bank/index.d.ts +1 -0
- package/src/lib/db/Enums/chart-accounts/business-chart-accounts.enum.d.ts +46 -0
- package/src/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts +24 -65
- package/src/lib/db/Enums/chart-accounts/index.d.ts +1 -2
- package/src/lib/db/Enums/home-office/home-office-claim-method.enum.d.ts +5 -0
- package/src/lib/db/Enums/home-office/index.d.ts +1 -0
- package/src/lib/db/Enums/index.d.ts +1 -4
- package/src/lib/db/Models/depreciation/depreciation.d.ts +0 -1
- package/src/lib/db/Models/sole/sole-business.d.ts +1 -0
- package/src/lib/db/Models/sole/sole-details.d.ts +1 -0
- package/src/lib/db/Models/user/user.d.ts +1 -1
- package/src/lib/db/Models/vehicle/vehicle-claim.d.ts +1 -0
- package/src/lib/forms/abstract.form.d.ts +11 -1
- package/src/lib/forms/home-office/home-office-calculator.form.d.ts +8 -0
- package/src/lib/forms/home-office/home-office-claim.form.d.ts +12 -0
- package/src/lib/forms/home-office/home-office-log.form.d.ts +5 -0
- package/src/lib/forms/home-office/index.d.ts +3 -0
- package/src/lib/forms/index.d.ts +1 -0
- package/src/lib/forms/transaction/work/work-expense.form.d.ts +4 -2
- package/src/lib/models/bank/bank-transaction-chart-data.d.ts +2 -2
- package/src/lib/models/chart-accounts/chart-accounts.d.ts +5 -1
- package/src/lib/models/dictionary/dictionary.d.ts +2 -2
- package/src/lib/models/home-office/home-office-claim.d.ts +26 -0
- package/src/lib/models/home-office/home-office-claim.interface.d.ts +20 -0
- package/src/lib/models/home-office/home-office-log.d.ts +11 -0
- package/src/lib/models/home-office/home-office-log.interface.d.ts +9 -0
- package/src/lib/models/home-office/index.d.ts +4 -0
- package/src/lib/models/index.d.ts +1 -0
- package/src/lib/models/sole/sole-invoice-item.d.ts +2 -1
- package/src/lib/models/transaction/transaction.d.ts +3 -1
- package/src/lib/services/http/home-office/home-office-claim-messages.enum.d.ts +6 -0
- package/src/lib/services/http/home-office/home-office-claim.service.d.ts +12 -0
- package/src/lib/services/http/home-office/home-office-log-messages.enum.d.ts +6 -0
- package/src/lib/services/http/home-office/home-office-log.service.d.ts +12 -0
- package/src/lib/services/http/home-office/index.d.ts +4 -0
- package/src/lib/services/http/index.d.ts +2 -0
- package/src/lib/services/http/rest/rest-old.service.d.ts +4 -0
- package/src/lib/services/http/rest/rest.service.d.ts +1 -0
- package/src/lib/services/http/rest-messages.enum.d.ts +5 -0
- package/src/lib/services/http/transaction/transaction.service.d.ts +1 -0
- package/src/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts +3 -7
- package/esm2022/src/lib/db/Enums/allocation-rule-type.enum.mjs +0 -7
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.mjs +0 -25
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.mjs +0 -6
- package/esm2022/src/lib/validators/address-corelogic.validator.mjs +0 -19
- package/src/lib/db/Enums/chart-accounts/chart-accounts-invoice.enum.d.ts +0 -23
- package/src/lib/db/Enums/chart-accounts/chart-accounts-unallocatable-list.enum.d.ts +0 -4
- package/src/lib/validators/address-corelogic.validator.d.ts +0 -6
- /package/src/lib/db/Enums/{allocation-rule-condition-comparison-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-comparison-operator.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-condition-field.enum.d.ts → bank/allocation-rule/allocation-rule-condition-field.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-condition-operator.enum.d.ts → bank/allocation-rule/allocation-rule-condition-operator.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{allocation-rule-type.enum.d.ts → bank/allocation-rule/allocation-rule-type.enum.d.ts} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TAX_RETURN_CATEGORIES } from '../../../../../collections';
|
2
|
-
import { ChartAccountsCategoryEnum, ChartAccountsHeadingListEnum,
|
2
|
+
import { BusinessChartAccountsEnum, ChartAccountsCategoryEnum, ChartAccountsHeadingListEnum, TaxReturnCategoryListEnum, TaxReturnItemEnum, } from '../../../../../db/Enums';
|
3
3
|
import { TaxSummarySectionEnum } from '../../../../../db/Enums/tax-summary-section.enum';
|
4
4
|
/**
|
5
5
|
* Sole business information related to expense transactions (losses)
|
@@ -9,34 +9,34 @@ export class MyTaxBusinessLosses {
|
|
9
9
|
constructor(transactions, depreciations, businessLosses, currentLoss, taxSummary) {
|
10
10
|
this.currentLoss = currentLoss;
|
11
11
|
this.purchasesAndOtherCostsAmount = Math.abs(transactions.getExpenseTransactions()
|
12
|
-
.filterBy('chartAccounts.id',
|
12
|
+
.filterBy('chartAccounts.id', BusinessChartAccountsEnum.PURCHASES_STOCK_INVENTORY)
|
13
13
|
.sumBy('claimAmount'));
|
14
14
|
this.contractorsAndCommissionAmount = Math.abs(transactions.getExpenseTransactions()
|
15
|
-
.filterBy('chartAccounts.id',
|
15
|
+
.filterBy('chartAccounts.id', BusinessChartAccountsEnum.CONTRACTORS_AND_COMMISSION)
|
16
16
|
.sumBy('claimAmount'));
|
17
17
|
this.superannuationAmount = Math.abs(transactions.getExpenseTransactions()
|
18
|
-
.filterBy('chartAccounts.id',
|
18
|
+
.filterBy('chartAccounts.id', BusinessChartAccountsEnum.SUPERANNUATION)
|
19
19
|
.sumBy('claimAmount'));
|
20
20
|
this.badDebtAmount = Math.abs(transactions.getExpenseTransactions()
|
21
|
-
.filterBy('chartAccounts.id',
|
21
|
+
.filterBy('chartAccounts.id', BusinessChartAccountsEnum.BAD_DEBT)
|
22
22
|
.sumBy('claimAmount'));
|
23
23
|
this.leaseExpensesCommercialAmount = Math.abs(transactions.getExpenseTransactions()
|
24
|
-
.filterBy('chartAccounts.id',
|
24
|
+
.filterBy('chartAccounts.id', BusinessChartAccountsEnum.LEASE_EXPENSES_COMMERCIAL)
|
25
25
|
.sumBy('claimAmount'));
|
26
26
|
this.rentExpensesCommercialPremisesAmount = Math.abs(transactions.getExpenseTransactions()
|
27
|
-
.filterBy('chartAccounts.id',
|
27
|
+
.filterBy('chartAccounts.id', BusinessChartAccountsEnum.RENT_EXPENSES_COMMERCIAL_PREMISES)
|
28
28
|
.sumBy('claimAmount'));
|
29
29
|
this.interestExpensesAustraliaAmount = Math.abs(transactions.getExpenseTransactions()
|
30
|
-
.filterBy('chartAccounts.id',
|
30
|
+
.filterBy('chartAccounts.id', BusinessChartAccountsEnum.INTEREST_EXPENSES_AUSTRALIA)
|
31
31
|
.sumBy('claimAmount'));
|
32
32
|
this.interestExpensesOverseasAmount = Math.abs(transactions.getExpenseTransactions()
|
33
|
-
.filterBy('chartAccounts.id',
|
33
|
+
.filterBy('chartAccounts.id', BusinessChartAccountsEnum.INTEREST_EXPENSES_OVERSEAS)
|
34
34
|
.sumBy('claimAmount'));
|
35
35
|
this.kmsTravelledExpensesAmount = Math.abs(transactions
|
36
|
-
.filterBy('chartAccounts.category', [
|
36
|
+
.filterBy('chartAccounts.category', [BusinessChartAccountsEnum.KMS_TRAVELLED])
|
37
37
|
.sumBy('claimAmount') +
|
38
38
|
depreciations
|
39
|
-
.filterBy('chartAccounts.category', [
|
39
|
+
.filterBy('chartAccounts.category', [BusinessChartAccountsEnum.KMS_TRAVELLED])
|
40
40
|
.sumBy('claimAmount'));
|
41
41
|
this.logbookExpensesAmount = Math.abs(transactions.getVehicleTransactions().sumBy('claimAmount')) +
|
42
42
|
depreciations.getVehicleDepreciations().sumBy('claimAmount');
|
@@ -66,4 +66,4 @@ export class MyTaxBusinessLosses {
|
|
66
66
|
this.deferredLossesAmount = taxSummary.sole.items.sumByCategoriesAndSection(TAX_RETURN_CATEGORIES.sole.lossCurrent, TaxSummarySectionEnum.SOLE_TANK);
|
67
67
|
}
|
68
68
|
}
|
69
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXktdGF4LWJ1c2luZXNzLWxvc3Nlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9tb2RlbHMvcmVwb3J0L215LXRheC9teS10YXgtYnVzaW5lc3MtaW5jb21lLW9yLWxvc3Nlcy9teS10YXgtYnVzaW5lc3MtbG9zc2VzL215LXRheC1idXNpbmVzcy1sb3NzZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUdMLHFCQUFxQixFQUV0QixNQUFNLDRCQUE0QixDQUFDO0FBQ3BDLE9BQU8sRUF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VjdGlvbihcbiAgICAgIFRBWF9SRVRVUk5fQ0FURUdPUklFUy5zb2xlLmxvc3NDdXJyZW50LFxuICAgICAgVGF4U3VtbWFyeVNlY3Rpb25FbnVtLlNPTEVfVEFOS1xuICAgIClcbiAgfVxufVxuIl19
|
@@ -6,12 +6,35 @@ import { Type, plainToClass } from 'class-transformer';
|
|
6
6
|
import { Transaction } from '../transaction';
|
7
7
|
import { TransactionSourceEnum } from '../../db/Enums/transaction-source.enum';
|
8
8
|
import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
|
9
|
-
import { SoleInvoiceTaxTypeEnum } from '../../db/Enums';
|
9
|
+
import { BusinessChartAccountsEnum, SoleInvoiceTaxTypeEnum } from '../../db/Enums';
|
10
10
|
export class SoleInvoiceItem extends SoleInvoiceItemBase {
|
11
11
|
constructor() {
|
12
12
|
super(...arguments);
|
13
13
|
this.isGST = false;
|
14
14
|
}
|
15
|
+
static { this.chartAccounts = [
|
16
|
+
BusinessChartAccountsEnum.PSI_ABN_NOT_QUOTED,
|
17
|
+
BusinessChartAccountsEnum.PSI_LABOUR_HIRE_OR_OTHER,
|
18
|
+
BusinessChartAccountsEnum.PSI_VOLUNTARY_AGREEMENT,
|
19
|
+
BusinessChartAccountsEnum.SALES,
|
20
|
+
BusinessChartAccountsEnum.LABOUR,
|
21
|
+
BusinessChartAccountsEnum.UBER_INCOME,
|
22
|
+
BusinessChartAccountsEnum.COMMISSION,
|
23
|
+
BusinessChartAccountsEnum.PARTS_CONSUMABLES,
|
24
|
+
BusinessChartAccountsEnum.OTHER_BUSINESS_INCOME,
|
25
|
+
BusinessChartAccountsEnum.ASSESSIBLE_GOVERNMENT_PAYMENTS,
|
26
|
+
BusinessChartAccountsEnum.GROSS_PAYMENTS_NO_ABN_GIVEN,
|
27
|
+
BusinessChartAccountsEnum.GROSS_PAYMENTS_VOLUNTARY_AGREEMENT,
|
28
|
+
BusinessChartAccountsEnum.GROSS_PAYMENTS_LABOUR_HIRE_OR_OTHER_SPECIFIED_PAYMENTS,
|
29
|
+
BusinessChartAccountsEnum.CONTRACTORS_AND_COMMISSION,
|
30
|
+
BusinessChartAccountsEnum.SUPERANNUATION,
|
31
|
+
BusinessChartAccountsEnum.PSI_OTHER,
|
32
|
+
BusinessChartAccountsEnum.OTHER_ASSESSABLE_PAYMENTS,
|
33
|
+
BusinessChartAccountsEnum.JOBKEEPER,
|
34
|
+
BusinessChartAccountsEnum.GST_REFUND,
|
35
|
+
BusinessChartAccountsEnum.PAYG_INSTALLMENTS,
|
36
|
+
BusinessChartAccountsEnum.INTEREST_EARNED
|
37
|
+
]; }
|
15
38
|
get totalPrice() {
|
16
39
|
return this.price * this.quantity;
|
17
40
|
}
|
@@ -44,4 +67,4 @@ __decorate([
|
|
44
67
|
__decorate([
|
45
68
|
Type(() => Transaction)
|
46
69
|
], SoleInvoiceItem.prototype, "transactions", void 0);
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvbW9kZWxzL3NvbGUvc29sZS1pbnZvaWNlLWl0ZW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxlQUFlLElBQUksbUJBQW1CLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUNoRyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxJQUFJLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDdkQsT0FBTyxFQUFFLFdBQVcsRUFB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0QWNjb3VudHMuR1NUQ29lZmZpY2llbnQgOiAxO1xuICAgICAgcmV0dXJuIHRvdGFsUHJpY2UgKiBjb2VmZmljaWVudDtcbiAgICB9XG5cbiAgICBjb25zdCBjb2VmZmljaWVudCA9IHRoaXMuaXNHU1QgJiYgdGF4VHlwZSA9PT0gU29sZUludm9pY2VUYXhUeXBlRW51bS5UQVhfSU5DTFVTSVZFID8gQ2hhcnRBY2NvdW50cy5HU1RDb2VmZmljaWVudCA6IDE7XG4gICAgcmV0dXJuIHRvdGFsUHJpY2UgLyBjb2VmZmljaWVudDtcbiAgfVxuXG4gIHRvVHJhbnNhY3Rpb24oKTogVHJhbnNhY3Rpb24ge1xuICAgIHJldHVybiBwbGFpblRvQ2xhc3MoVHJhbnNhY3Rpb24sIHtcbiAgICAgIGNoYXJ0QWNjb3VudHM6IHRoaXMuY2hhcnRBY2NvdW50cyxcbiAgICAgIGRlc2NyaXB0aW9uOiB0aGlzLmRlc2NyaXB0aW9uLFxuICAgICAgc291cmNlOiBUcmFuc2FjdGlvblNvdXJjZUVudW0uQkFOS19UUkFOU0FDVElPTixcbiAgICAgIGlzR1NUOiB0aGlzLmlzR1NULFxuICAgICAgb3BlcmF0aW9uOiBUcmFuc2FjdGlvbk9wZXJhdGlvbkVudW0uQUxMT0NBVEVfSU5WT0lDRSxcbiAgICAgIGludm9pY2VJdGVtOiB0aGlzXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { Transaction as TransactionBase } from '../../db/Models/transaction/transaction';
|
3
3
|
import { TransactionTypeEnum } from '../../db/Enums/transaction-type.enum';
|
4
|
-
import { ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaFieldListEnum,
|
4
|
+
import { ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaFieldListEnum, } from '../../db/Enums';
|
5
5
|
import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
|
6
6
|
import { TransactionSourceEnum } from '../../db/Enums/transaction-source.enum';
|
7
7
|
import { DepreciationTypeEnum } from '../../db/Enums/depreciation-type.enum';
|
@@ -15,7 +15,7 @@ import { Loan } from '../loan';
|
|
15
15
|
import { TransactionAllocation } from './transaction-allocation';
|
16
16
|
import { Collection } from '../../collections';
|
17
17
|
import { Depreciation } from '../depreciation';
|
18
|
-
import { SoleInvoiceItem } from '../sole';
|
18
|
+
import { SoleBusiness, SoleInvoiceItem } from '../sole';
|
19
19
|
// @TODO Alex: refactor: move here allocations methods, netAmount = amount, grossAmount calculation, remove unused methods, etc.
|
20
20
|
export class Transaction extends TransactionBase {
|
21
21
|
constructor() {
|
@@ -116,7 +116,7 @@ export class Transaction extends TransactionBase {
|
|
116
116
|
return !this.parentTransaction
|
117
117
|
&& !this.isCash()
|
118
118
|
&& !(this.isSoleTank() && this.isIncome())
|
119
|
-
&&
|
119
|
+
&& this.isEditable()
|
120
120
|
&& !this.isAllocated(allocations);
|
121
121
|
}
|
122
122
|
/**
|
@@ -200,6 +200,9 @@ export class Transaction extends TransactionBase {
|
|
200
200
|
this.incomeSource = transaction.incomeSource;
|
201
201
|
this.business = transaction.business;
|
202
202
|
}
|
203
|
+
isEditable() {
|
204
|
+
return !ChartAccounts.systemList.includes(this.chartAccounts.id);
|
205
|
+
}
|
203
206
|
}
|
204
207
|
__decorate([
|
205
208
|
Type(() => Transaction)
|
@@ -231,7 +234,10 @@ __decorate([
|
|
231
234
|
__decorate([
|
232
235
|
Type(() => SoleInvoiceItem)
|
233
236
|
], Transaction.prototype, "invoiceItem", void 0);
|
237
|
+
__decorate([
|
238
|
+
Type(() => SoleBusiness)
|
239
|
+
], Transaction.prototype, "business", void 0);
|
234
240
|
__decorate([
|
235
241
|
Transform(({ value }) => +value)
|
236
242
|
], Transaction.prototype, "tax", void 0);
|
237
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24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pdGFibGUoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuICFDaGFydEFjY291bnRzLnN5c3RlbUxpc3QuaW5jbHVkZXModGhpcy5jaGFydEFjY291bnRzLmlkKTtcbiAgfVxufVxuIl19
|
@@ -24,7 +24,7 @@ export class DataService {
|
|
24
24
|
* never return cache directly to prevent update
|
25
25
|
*/
|
26
26
|
getCacheFirst() {
|
27
|
-
return
|
27
|
+
return this.getCache()?.first;
|
28
28
|
}
|
29
29
|
/**
|
30
30
|
* @TODO vik any[] because of problems with base models extending abstractModel
|
@@ -41,4 +41,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
41
41
|
providedIn: 'root'
|
42
42
|
}]
|
43
43
|
}] });
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL3NlcnZpY2VzL2RhdGEuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUVqRCxPQUFPLEtBQUssTUFBTSxjQUFjLENBQUM7O0FBS2pDLE1BQU0sT0FBZ0IsV0FBVztJQWtCL0I7Ozs7T0FJRztJQUNPLG1CQUFtQixDQUFDLEtBQWE7UUFDekMsT0FBTyxZQUFZLENBQUMsSUFBSSxDQUFDLFVBQVUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUM5QyxDQUFDO0lBRVMsd0JBQXdCLENBQUMsZUFBd0QsRUFBRSxLQUFjO1FBQ3pHLE9B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aW9uQ2xhc3M6IG5ldyAoaXRlbXM6IE1vZGVsW10pID0+IENvbGxlY3Rpb25Nb2RlbCwgaXRlbXM6IE1vZGVsW10pOiBDb2xsZWN0aW9uTW9kZWwge1xuICAgIHJldHVybiBuZXcgY29sbGVjdGlvbkNsYXNzKGl0ZW1zKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBuZXZlciByZXR1cm4gY2FjaGUgZGlyZWN0bHkgdG8gcHJldmVudCB1cGRhdGVcbiAgICovXG4gIGdldENhY2hlKCk6IENvbGxlY3Rpb25Nb2RlbCB7XG4gICAgcmV0dXJuIGNsb25lKHRoaXMuY2FjaGUpO1xuICB9XG5cbiAgLyoqXG4gICAqIG5ldmVyIHJldHVybiBjYWNoZSBkaXJlY3RseSB0byBwcmV2ZW50IHVwZGF0ZVxuICAgKi9cbiAgZ2V0Q2FjaGVGaXJzdCgpOiBNb2RlbCB7XG4gICAgcmV0dXJuIHRoaXMuZ2V0Q2FjaGUoKT8uZmlyc3Q7XG4gIH1cblxuICAvKipcbiAgICogQFRPRE8gdmlrIGFueVtdIGJlY2F1c2Ugb2YgcHJvYmxlbXMgd2l0aCBiYXNlIG1vZGVscyBleHRlbmRpbmcgYWJzdHJhY3RNb2RlbFxuICAgKi9cbiAgc2V0Q2FjaGUoZGF0YTogYW55W10pOiB2b2lkIHtcbiAgICB0aGlzLmNhY2hlID0gdGhpcy5jcmVhdGVDb2xsZWN0aW9uSW5zdGFuY2UoXG4gICAgICB0aGlzLmNvbGxlY3Rpb25DbGFzcyxcbiAgICAgIGRhdGEubWFwKChpdGVtKSA9PiB0aGlzLmNyZWF0ZU1vZGVsSW5zdGFuY2UoaXRlbSkpXG4gICAgKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export var HomeOfficeClaimMessagesEnum;
|
2
|
+
(function (HomeOfficeClaimMessagesEnum) {
|
3
|
+
HomeOfficeClaimMessagesEnum["CREATED"] = "Claim created";
|
4
|
+
HomeOfficeClaimMessagesEnum["UPDATED"] = "Claim updated";
|
5
|
+
HomeOfficeClaimMessagesEnum["DELETED"] = "Claim deleted";
|
6
|
+
HomeOfficeClaimMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete this claim?";
|
7
|
+
})(HomeOfficeClaimMessagesEnum || (HomeOfficeClaimMessagesEnum = {}));
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0tbWVzc2FnZXMuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL2hvbWUtb2ZmaWNlL2hvbWUtb2ZmaWNlLWNsYWltLW1lc3NhZ2VzLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksMkJBS1g7QUFMRCxXQUFZLDJCQUEyQjtJQUNyQyx3REFBeUIsQ0FBQTtJQUN6Qix3REFBeUIsQ0FBQTtJQUN6Qix3REFBeUIsQ0FBQTtJQUN6Qiw2RkFBOEQsQ0FBQTtBQUNoRSxDQUFDLEVBTFcsMkJBQTJCLEtBQTNCLDJCQUEyQixRQUt0QyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEhvbWVPZmZpY2VDbGFpbU1lc3NhZ2VzRW51bSB7XG4gIENSRUFURUQgPSAnQ2xhaW0gY3JlYXRlZCcsXG4gIFVQREFURUQgPSAnQ2xhaW0gdXBkYXRlZCcsXG4gIERFTEVURUQgPSAnQ2xhaW0gZGVsZXRlZCcsXG4gIENPTkZJUk1fREVMRVRFID0gJ0FyZSB5b3Ugc3VyZSB5b3Ugd2FudCB0byBkZWxldGUgdGhpcyBjbGFpbT8nLFxufVxuIl19
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Injectable } from '@angular/core';
|
2
|
+
import { RestService } from '../rest';
|
3
|
+
import { HomeOfficeClaimCollection } from '../../../collections';
|
4
|
+
import { HomeOfficeClaim } from '../../../models';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export class HomeOfficeClaimService extends RestService {
|
7
|
+
constructor() {
|
8
|
+
super(...arguments);
|
9
|
+
this.endpointUri = 'home-office-claims';
|
10
|
+
this.modelClass = HomeOfficeClaim;
|
11
|
+
this.collectionClass = HomeOfficeClaimCollection;
|
12
|
+
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
13
|
+
}
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeClaimService, providedIn: 'root' }); }
|
16
|
+
}
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeClaimService, decorators: [{
|
18
|
+
type: Injectable,
|
19
|
+
args: [{
|
20
|
+
providedIn: 'root'
|
21
|
+
}]
|
22
|
+
}] });
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtY2xhaW0uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL2hvbWUtb2ZmaWNlL2hvbWUtb2ZmaWNlLWNsYWltLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0F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b21lT2ZmaWNlQ2xhaW1JbnRlcmZhY2UsIEhvbWVPZmZpY2VDbGFpbSwgSG9tZU9mZmljZUNsYWltQ29sbGVjdGlvbj4ge1xuICBwcm90ZWN0ZWQgZW5kcG9pbnRVcmkgPSAnaG9tZS1vZmZpY2UtY2xhaW1zJztcbiAgbW9kZWxDbGFzczogdHlwZW9mIEhvbWVPZmZpY2VDbGFpbSA9IEhvbWVPZmZpY2VDbGFpbTtcbiAgY29sbGVjdGlvbkNsYXNzOiB0eXBlb2YgSG9tZU9mZmljZUNsYWltQ29sbGVjdGlvbiA9IEhvbWVPZmZpY2VDbGFpbUNvbGxlY3Rpb247XG4gIGRpc2FibGVkTWV0aG9kczogUmVzdE1ldGhvZFtdID0gWydwb3N0QmF0Y2gnLCAncHV0QmF0Y2gnLCAnZGVsZXRlQmF0Y2gnXTtcbn1cbiJdfQ==
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export var HomeOfficeLogMessagesEnum;
|
2
|
+
(function (HomeOfficeLogMessagesEnum) {
|
3
|
+
HomeOfficeLogMessagesEnum["CREATED"] = "Log created";
|
4
|
+
HomeOfficeLogMessagesEnum["UPDATED"] = "Log updated";
|
5
|
+
HomeOfficeLogMessagesEnum["DELETED"] = "Log deleted";
|
6
|
+
HomeOfficeLogMessagesEnum["CONFIRM_DELETE"] = "Are you sure you want to delete this Log?";
|
7
|
+
})(HomeOfficeLogMessagesEnum || (HomeOfficeLogMessagesEnum = {}));
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtbG9nLW1lc3NhZ2VzLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9ob21lLW9mZmljZS9ob21lLW9mZmljZS1sb2ctbWVzc2FnZXMuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSx5QkFLWDtBQUxELFdBQVkseUJBQXlCO0lBQ25DLG9EQUF1QixDQUFBO0lBQ3ZCLG9EQUF1QixDQUFBO0lBQ3ZCLG9EQUF1QixDQUFBO0lBQ3ZCLHlGQUE0RCxDQUFBO0FBQzlELENBQUMsRUFMVyx5QkFBeUIsS0FBekIseUJBQXlCLFFBS3BDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gSG9tZU9mZmljZUxvZ01lc3NhZ2VzRW51bSB7XG4gIENSRUFURUQgPSAnTG9nIGNyZWF0ZWQnLFxuICBVUERBVEVEID0gJ0xvZyB1cGRhdGVkJyxcbiAgREVMRVRFRCA9ICdMb2cgZGVsZXRlZCcsXG4gIENPTkZJUk1fREVMRVRFID0gJ0FyZSB5b3Ugc3VyZSB5b3Ugd2FudCB0byBkZWxldGUgdGhpcyBMb2c/Jyxcbn1cbiJdfQ==
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Injectable } from '@angular/core';
|
2
|
+
import { RestService } from '../rest';
|
3
|
+
import { Collection } from '../../../collections';
|
4
|
+
import { HomeOfficeClaim } from '../../../models';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export class HomeOfficeLogService extends RestService {
|
7
|
+
constructor() {
|
8
|
+
super(...arguments);
|
9
|
+
this.endpointUri = 'home-office-logs';
|
10
|
+
this.modelClass = HomeOfficeClaim;
|
11
|
+
this.collectionClass = (Collection);
|
12
|
+
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
13
|
+
}
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, providedIn: 'root' }); }
|
16
|
+
}
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HomeOfficeLogService, decorators: [{
|
18
|
+
type: Injectable,
|
19
|
+
args: [{
|
20
|
+
providedIn: 'root'
|
21
|
+
}]
|
22
|
+
}] });
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtbG9nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9ob21lLW9mZmljZS9ob21lLW9mZmljZS1sb2cuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBYyxXQUFXLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFDbEQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ2xELE9BQU8sRUFDTCxlQUFlLEVBR2hCLE1BQU0saUJBQWlCLENBQUM7O0FBS3pCLE1BQU0sT0FBTyxvQkFBcUIsU0FBUSxXQUE2RTtJQUh2SDs7UUFJWSxnQkFBVyxHQUFHLGtCQUFrQixDQUFDO1FBQzNDLGVBQVUsR0FBMkIsZUFBZSxDQUFDO1FBQ3JELG9CQUFlLEdBQXVDLENBQUEsVUFBMkIsQ0FBQSxDQUFDO1FBQ2xGLG9CQUFlLEdBQWlCLENBQUMsV0FBVyxFQUFFLFVBQVUsRUFBRSxhQUFhLENBQUMsQ0FBQztLQUMxRTsrR0FMWSxvQkFBb0I7bUhBQXBCLG9CQUFvQixjQUZuQixNQUFNOzs0RkFFUCxvQkFBb0I7a0JBSGhDLFVBQVU7b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ages.enum';
|
3
|
+
export * from './home-office-log.service';
|
4
|
+
export * from './home-office-log-messages.enum';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9ob21lLW9mZmljZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsbUNBQW1DLENBQUM7QUFDbEQsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLGlDQUFpQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9ob21lLW9mZmljZS1jbGFpbS5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UtY2xhaW0tbWVzc2FnZXMuZW51bSc7XG5leHBvcnQgKiBmcm9tICcuL2hvbWUtb2ZmaWNlLWxvZy5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vaG9tZS1vZmZpY2UtbG9nLW1lc3NhZ2VzLmVudW0nO1xuIl19
|
@@ -26,4 +26,6 @@ export * from './client';
|
|
26
26
|
export * from './user';
|
27
27
|
export * from './document';
|
28
28
|
export * from './holding';
|
29
|
-
|
29
|
+
export * from './home-office';
|
30
|
+
export * from './rest-messages.enum';
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvc2VydmljZXMvaHR0cC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQ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|
import { EventDispatcherService } from '../../event';
|
7
7
|
import { classToPlain, plainToClass } from 'class-transformer';
|
8
8
|
import { ToastService } from '../../toast';
|
9
|
+
import clone from 'lodash/clone';
|
9
10
|
import * as i0 from "@angular/core";
|
10
11
|
/**
|
11
12
|
* Abstract base service that implements common services functionality
|
@@ -225,6 +226,12 @@ export class RestService {
|
|
225
226
|
createModelInstance(model) {
|
226
227
|
return plainToClass(this.modelClass, model);
|
227
228
|
}
|
229
|
+
/**
|
230
|
+
* never return cache directly to prevent update
|
231
|
+
*/
|
232
|
+
getCache() {
|
233
|
+
return clone(this.cache);
|
234
|
+
}
|
228
235
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RestService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
229
236
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RestService, providedIn: 'root' }); }
|
230
237
|
}
|
@@ -237,4 +244,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
237
244
|
type: Inject,
|
238
245
|
args: ['environment']
|
239
246
|
}] }] });
|
240
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdC1vbGQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9zZXJ2aWNlcy9odHRwL3Jlc3QvcmVzdC1vbGQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0QsT0FBTyxFQUFjLGFBQWEsRUFBRSxNQUF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