taxtank-core 0.30.41 → 0.30.42
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/esm2020/lib/collections/bank-account.collection.mjs +9 -29
- package/esm2020/lib/collections/bank-transaction.collection.mjs +3 -5
- package/esm2020/lib/collections/chat/message.collection.mjs +2 -4
- package/esm2020/lib/collections/collection-dictionary.mjs +1 -1
- package/esm2020/lib/collections/collection.mjs +1 -1
- package/esm2020/lib/collections/depreciation.collection.mjs +7 -19
- package/esm2020/lib/collections/exportable.collection.mjs +1 -2
- package/esm2020/lib/collections/holding-type.collection.mjs +1 -1
- package/esm2020/lib/collections/holding.collection.mjs +1 -1
- package/esm2020/lib/collections/loan/loan-payment.collection.mjs +12 -16
- package/esm2020/lib/collections/property/property-category-movement.collection.mjs +2 -4
- package/esm2020/lib/collections/property/property-share.collection.mjs +2 -4
- package/esm2020/lib/collections/property/property.collection.mjs +3 -7
- package/esm2020/lib/collections/report/depreciation/depreciation-report-item.collection.mjs +2 -4
- package/esm2020/lib/collections/report/vehicle-expense/vehicle-expense.collection.mjs +2 -4
- package/esm2020/lib/collections/subscription/service-subscription.collection.mjs +3 -7
- package/esm2020/lib/collections/tax-review.collection.mjs +5 -7
- package/esm2020/lib/collections/tax-summary/report-item.collection.mjs +8 -8
- package/esm2020/lib/collections/transaction/transaction.collection.mjs +11 -21
- package/esm2020/lib/db/Enums/address-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/allocation-rule-condition-field.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/allocation-rule-condition-operator.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/allocation-rule-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/bank-account-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/bank-connection-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/bank-transaction-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/client-details-medicare-exemption.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/client-details-work-depreciation-calculation.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/client-details-working-holiday-maker.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/client-invite-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/depreciation-calculation-percent.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/depreciation-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/depreciation-write-off-amount.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/file-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/firm-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/index.mjs +1 -1
- package/esm2020/lib/db/Enums/invite-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/loan-bank-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/loan-frequency.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/loan-payout-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/loan-repayment-frequency.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/phone-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/property/property-depreciation-calculation.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/registration-invite-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/salary-forecast-frequency.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/service-notification-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/service-notification-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/spare-document-spare-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-payment-method-card-brand.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-payment-method-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-payment-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-price-recurring-interval.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-subscription-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/tax-calculation-medicare-exemption.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/tax-calculation-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/tax-summary-list.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/tax-summary-tax-summary.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/ticket-feedback.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/ticket-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/ticket-types.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/transaction-source.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/transaction-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-event-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-event-type-employee-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-event-type-frequency.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-event-type-user-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-medicare-exemption.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-work-depreciation-calculation.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-working-holiday-maker.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/vehicle-claim-details-method.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/vehicle-logbook-purpose.enum.mjs +1 -1
- package/esm2020/lib/db/Models/abstract-model.mjs +1 -1
- package/esm2020/lib/db/Models/bank/bank-account-property.mjs +1 -1
- package/esm2020/lib/db/Models/bank/bank-account.mjs +1 -1
- package/esm2020/lib/db/Models/chart-accounts/chart-accounts.mjs +1 -1
- package/esm2020/lib/db/Models/client/occupation.mjs +1 -1
- package/esm2020/lib/db/Models/country.mjs +1 -1
- package/esm2020/lib/db/Models/document/document-base.mjs +1 -1
- package/esm2020/lib/db/Models/firm/client-movement.mjs +1 -1
- package/esm2020/lib/db/Models/firm/employee-invite.mjs +1 -1
- package/esm2020/lib/db/Models/loan/borrowing-expense.mjs +1 -1
- package/esm2020/lib/db/Models/loan/loan-payout.mjs +1 -1
- package/esm2020/lib/db/Models/loan/loan.mjs +1 -1
- package/esm2020/lib/db/Models/observable-model.mjs +2 -2
- package/esm2020/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-sale/property-sale.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-sale/tax-exemption-meta-field.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-sale/tax-exemption.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-share.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-valuation.mjs +1 -1
- package/esm2020/lib/db/Models/property/property.mjs +1 -1
- package/esm2020/lib/db/Models/sole/bas-report.mjs +1 -1
- package/esm2020/lib/db/Models/sole/sole-business-activity.mjs +1 -1
- package/esm2020/lib/db/Models/sole/sole-business-allocation.mjs +1 -1
- package/esm2020/lib/db/Models/sole/sole-contact.mjs +1 -1
- package/esm2020/lib/db/Models/sole/sole-forecast.mjs +1 -1
- package/esm2020/lib/db/Models/spare/spare-document-category.mjs +1 -1
- package/esm2020/lib/db/Models/subscription/service-payment-method.mjs +1 -1
- package/esm2020/lib/db/Models/subscription/service-subscription.mjs +1 -1
- package/esm2020/lib/db/Models/transaction/transaction-base.mjs +3 -5
- package/esm2020/lib/db/Models/user/user-event-setting.mjs +1 -1
- package/esm2020/lib/db/Models/user/user-event-type-category.mjs +1 -1
- package/esm2020/lib/db/Models/user/user-event-type.mjs +1 -1
- package/esm2020/lib/db/Models/user/user-event.mjs +1 -1
- package/esm2020/lib/forms/abstract.form.mjs +1 -1
- package/esm2020/lib/forms/address/address.form.mjs +2 -2
- package/esm2020/lib/forms/bank/bank-account/bank-account-add-manual.form.mjs +1 -1
- package/esm2020/lib/forms/bank/bank-account/bank-account-allocation.form.mjs +1 -1
- package/esm2020/lib/forms/bank/bank-account/bank-account-properties.form.mjs +5 -7
- package/esm2020/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +2 -2
- package/esm2020/lib/forms/depreciation/depreciation.form.mjs +1 -1
- package/esm2020/lib/forms/holding/holding-type.form.mjs +4 -4
- package/esm2020/lib/forms/holding/holding.form.mjs +3 -3
- package/esm2020/lib/forms/holding/index.mjs +1 -1
- package/esm2020/lib/forms/index.mjs +1 -1
- package/esm2020/lib/forms/loan/loan.form.mjs +3 -3
- package/esm2020/lib/forms/property/property-sale/property-sale-cost-base.form.mjs +1 -1
- package/esm2020/lib/forms/property/property-sale/property-sale-exemptions.form.mjs +1 -1
- package/esm2020/lib/forms/sole/bas-report.form.mjs +1 -1
- package/esm2020/lib/forms/sole/sole-business-allocations.form.mjs +5 -7
- package/esm2020/lib/forms/sole/sole-invoice-item.form.mjs +1 -1
- package/esm2020/lib/forms/sole/sole-invoice.form.mjs +1 -1
- package/esm2020/lib/forms/transaction/allocation-rule-transaction.form.mjs +1 -1
- package/esm2020/lib/forms/transaction/transaction-base.form.mjs +1 -1
- package/esm2020/lib/forms/transaction/work/work-transaction.form.mjs +5 -7
- package/esm2020/lib/forms/user/user-invite.form.mjs +1 -1
- package/esm2020/lib/forms/vehicle/vehicle-logbook.form.mjs +1 -1
- package/esm2020/lib/forms/vehicle/vehicle.form.mjs +1 -1
- package/esm2020/lib/functions/array/replace.mjs +1 -1
- package/esm2020/lib/functions/array/sort-deep.mjs +1 -1
- package/esm2020/lib/functions/array/sort.mjs +1 -1
- package/esm2020/lib/functions/round-to.mjs +1 -1
- package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +1 -1
- package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +2 -4
- package/esm2020/lib/interceptors/corelogic-interceptor.mjs +2 -4
- package/esm2020/lib/interceptors/financial-year-interceptor.mjs +1 -1
- package/esm2020/lib/interceptors/jwt-interceptor.mjs +13 -15
- package/esm2020/lib/interceptors/preloader.interceptor.mjs +2 -2
- package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +1 -1
- package/esm2020/lib/interfaces/income-source-forecast.interface.mjs +1 -1
- package/esm2020/lib/messages/index.mjs +1 -1
- package/esm2020/lib/messages/messages.enum.mjs +1 -1
- package/esm2020/lib/models/address/address.mjs +1 -1
- package/esm2020/lib/models/badge/badge.mjs +1 -1
- package/esm2020/lib/models/bank/bank-account-chart-data.mjs +9 -13
- package/esm2020/lib/models/bank/bank-account-property.mjs +1 -1
- package/esm2020/lib/models/bank/bank-account.mjs +1 -1
- package/esm2020/lib/models/bank/bank-connection.mjs +1 -1
- package/esm2020/lib/models/bank/bank-transaction-chart-data.mjs +4 -10
- package/esm2020/lib/models/bank/bank-transaction.mjs +2 -2
- package/esm2020/lib/models/bank/bank.mjs +1 -1
- package/esm2020/lib/models/bank/basiq/basiq-config.mjs +1 -1
- package/esm2020/lib/models/bank/basiq/basiq-job-response.mjs +1 -1
- package/esm2020/lib/models/bank/basiq/basiq-token.mjs +2 -2
- package/esm2020/lib/models/chart/chart-data.mjs +1 -1
- package/esm2020/lib/models/chart-accounts/chart-accounts-depreciation.mjs +1 -1
- package/esm2020/lib/models/chart-accounts/chart-accounts.mjs +3 -3
- package/esm2020/lib/models/chat/chat.mjs +1 -1
- package/esm2020/lib/models/chat/message-document.mjs +1 -1
- package/esm2020/lib/models/chat/message.mjs +1 -1
- package/esm2020/lib/models/client/annual-client-details.mjs +1 -1
- package/esm2020/lib/models/client/client-invite.mjs +1 -1
- package/esm2020/lib/models/client/client-movement.mjs +1 -1
- package/esm2020/lib/models/client/client-portfolio-chart-data.mjs +5 -7
- package/esm2020/lib/models/depreciation/depreciation-capital-project.mjs +1 -1
- package/esm2020/lib/models/depreciation/depreciation-forecast.mjs +1 -1
- package/esm2020/lib/models/depreciation/depreciation.mjs +4 -8
- package/esm2020/lib/models/dictionary/dictionary.mjs +1 -1
- package/esm2020/lib/models/document/document-folder.mjs +1 -1
- package/esm2020/lib/models/employee/employee-details.mjs +1 -1
- package/esm2020/lib/models/employee/employee-invite.mjs +1 -1
- package/esm2020/lib/models/financial-year/financial-year.mjs +1 -1
- package/esm2020/lib/models/firm/firm.mjs +1 -1
- package/esm2020/lib/models/holding/holding-sale.mjs +2 -2
- package/esm2020/lib/models/holding/holding-type-exchange.mjs +1 -1
- package/esm2020/lib/models/holding/holding-type.mjs +1 -1
- package/esm2020/lib/models/holding/holding.mjs +2 -2
- package/esm2020/lib/models/income-position/income-position.mjs +1 -1
- package/esm2020/lib/models/income-source/income-source-forecast.mjs +1 -1
- package/esm2020/lib/models/income-source/income-source.mjs +1 -1
- package/esm2020/lib/models/income-source/salary-forecast.mjs +1 -1
- package/esm2020/lib/models/income-source/sole-forecast.mjs +3 -4
- package/esm2020/lib/models/loan/loan-payment.mjs +1 -1
- package/esm2020/lib/models/loan/loan.mjs +1 -1
- package/esm2020/lib/models/notification/notification.mjs +1 -1
- package/esm2020/lib/models/pdf/pdf-settings.mjs +1 -1
- package/esm2020/lib/models/phone/phone.mjs +1 -1
- package/esm2020/lib/models/property/property-category-movement.mjs +1 -1
- package/esm2020/lib/models/property/property-equity-chart-data.mjs +5 -13
- package/esm2020/lib/models/property/property-forecast.mjs +1 -1
- package/esm2020/lib/models/property/property-sale/property-sale.mjs +1 -1
- package/esm2020/lib/models/property/property-share.mjs +1 -1
- package/esm2020/lib/models/property/property-subscription.mjs +1 -1
- package/esm2020/lib/models/property/property-valuation.mjs +1 -1
- package/esm2020/lib/models/property/property.mjs +3 -7
- package/esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +1 -1
- package/esm2020/lib/models/report/property/property-report-item.mjs +1 -1
- package/esm2020/lib/models/report/sole/sole-business/sole-business-loss-report.mjs +1 -1
- package/esm2020/lib/models/service-subscription/service-payment.mjs +1 -1
- package/esm2020/lib/models/service-subscription/service-price.mjs +2 -2
- package/esm2020/lib/models/service-subscription/service-promo-code.mjs +1 -1
- package/esm2020/lib/models/service-subscription/service-subscription-item.mjs +1 -1
- package/esm2020/lib/models/service-subscription/service-subscription.mjs +4 -8
- package/esm2020/lib/models/sole/bas-report.mjs +2 -2
- package/esm2020/lib/models/sole/sole-business-activity.mjs +2 -2
- package/esm2020/lib/models/sole/sole-business-allocation.mjs +1 -1
- package/esm2020/lib/models/sole/sole-business-loss-offset-rule.mjs +1 -1
- package/esm2020/lib/models/sole/sole-business-loss.mjs +1 -1
- package/esm2020/lib/models/sole/sole-business.mjs +1 -1
- package/esm2020/lib/models/sole/sole-contact.mjs +1 -1
- package/esm2020/lib/models/sole/sole-details.mjs +1 -1
- package/esm2020/lib/models/sole/sole-invoice-item.mjs +1 -1
- package/esm2020/lib/models/sole/sole-invoice-template.mjs +1 -1
- package/esm2020/lib/models/sole/sole-invoice.mjs +2 -2
- package/esm2020/lib/models/tax-review/tax-review.mjs +1 -1
- package/esm2020/lib/models/tax-summary/report-item.mjs +1 -1
- package/esm2020/lib/models/tax-summary/tax-summary-section.mjs +1 -1
- package/esm2020/lib/models/tax-summary/tax-summary.mjs +1 -1
- package/esm2020/lib/models/toast/toast.mjs +1 -1
- package/esm2020/lib/models/transaction/allocation-rule-condition.mjs +1 -1
- package/esm2020/lib/models/transaction/allocation-rule-transaction.mjs +7 -17
- package/esm2020/lib/models/transaction/allocation-rule.mjs +5 -5
- package/esm2020/lib/models/transaction/transaction-allocation.mjs +2 -2
- package/esm2020/lib/models/transaction/transaction-meta-field.mjs +1 -1
- package/esm2020/lib/models/transaction/transaction.mjs +4 -6
- package/esm2020/lib/models/user/user.mjs +1 -1
- package/esm2020/lib/models/user-event/user-event-setting.mjs +1 -1
- package/esm2020/lib/models/user-event/user-event-type.mjs +2 -2
- package/esm2020/lib/models/vehicle/logbook-period.mjs +1 -1
- package/esm2020/lib/models/vehicle/vehicle-claim-details.mjs +1 -1
- package/esm2020/lib/models/vehicle/vehicle-claim.mjs +1 -1
- package/esm2020/lib/models/vehicle/vehicle-logbook.mjs +1 -1
- package/esm2020/lib/models/vehicle/vehicle.mjs +1 -1
- package/esm2020/lib/services/account-setup/account-setup.service.mjs +2 -2
- package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +1 -1
- package/esm2020/lib/services/auth/auth.service.mjs +2 -2
- package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -7
- package/esm2020/lib/services/event/sse.service.mjs +2 -4
- package/esm2020/lib/services/http/address/address.service.mjs +2 -4
- package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +1 -1
- package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +2 -5
- package/esm2020/lib/services/http/bank/bank.service.mjs +5 -6
- package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +1 -1
- package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +1 -1
- package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +1 -1
- package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +2 -2
- package/esm2020/lib/services/http/chat/chat.service.mjs +2 -2
- package/esm2020/lib/services/http/chat/message-document.service.mjs +3 -5
- package/esm2020/lib/services/http/chat/message.service.mjs +1 -1
- package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +1 -1
- package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +2 -4
- package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +2 -4
- package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +2 -4
- package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +1 -1
- package/esm2020/lib/services/http/document/document.service.mjs +1 -1
- package/esm2020/lib/services/http/facebook/facebook.service.mjs +1 -1
- package/esm2020/lib/services/http/file/file.service.mjs +1 -1
- package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +1 -1
- package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +2 -4
- package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +4 -10
- package/esm2020/lib/services/http/firm/employee/employee.service.mjs +1 -1
- package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +2 -4
- package/esm2020/lib/services/http/firm/firm.service.mjs +5 -13
- package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +1 -1
- package/esm2020/lib/services/http/google/google.service.mjs +1 -1
- package/esm2020/lib/services/http/holding/holding-sale.service.mjs +1 -1
- package/esm2020/lib/services/http/holding/holding-type.service.mjs +1 -1
- package/esm2020/lib/services/http/holding/holding.service.mjs +1 -1
- package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +1 -1
- package/esm2020/lib/services/http/income-source/income-source.service.mjs +3 -7
- package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +1 -1
- package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +1 -1
- package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +2 -4
- package/esm2020/lib/services/http/loan/loan.service.mjs +2 -4
- package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +1 -1
- package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +1 -1
- package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +1 -1
- package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +1 -1
- package/esm2020/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.mjs +1 -1
- package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +2 -2
- package/esm2020/lib/services/http/property/property.service.mjs +2 -2
- package/esm2020/lib/services/http/rest/rest-old.service.mjs +4 -8
- package/esm2020/lib/services/http/rest/rest.service.mjs +1 -3
- package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +1 -1
- package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +1 -1
- package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +2 -2
- package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +1 -1
- package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +1 -1
- package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +1 -1
- package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +1 -1
- package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +2 -2
- package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +1 -1
- package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +1 -1
- package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +1 -1
- package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +1 -1
- package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +1 -1
- package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +1 -1
- package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +2 -4
- package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +1 -1
- package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +1 -1
- package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +1 -1
- package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +1 -1
- package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +2 -4
- package/esm2020/lib/services/http/transaction/transaction.service.mjs +9 -19
- package/esm2020/lib/services/http/tutorial-video/tutorial-video-response.interface.mjs +1 -1
- package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +1 -1
- package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +1 -1
- package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +1 -1
- package/esm2020/lib/services/http/user/user.service.mjs +4 -6
- package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +1 -1
- package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +1 -1
- package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +1 -1
- package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +1 -1
- package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +1 -1
- package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +1 -1
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +1 -1
- package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -7
- package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +8 -14
- package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +10 -28
- package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +8 -14
- package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +2 -4
- package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +2 -2
- package/esm2020/lib/validators/at-least-one-enabled.validator.mjs +4 -6
- package/esm2020/lib/validators/at-least-one.validator.mjs +3 -5
- package/esm2020/lib/validators/autocomplete.validator.mjs +2 -4
- package/esm2020/lib/validators/fields-sum.validator.mjs +8 -10
- package/esm2020/lib/validators/file.validator.mjs +1 -1
- package/esm2020/lib/validators/phone-number.validator.mjs +2 -4
- package/esm2020/lib/validators/transactions-meta-fields.validator.mjs +2 -2
- package/esm2020/public-api.mjs +1 -1
- package/fesm2015/taxtank-core.mjs +208 -456
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +208 -451
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/subscription/service-subscription.collection.d.ts +1 -1
- package/lib/db/Models/chart-accounts/chart-accounts.d.ts +1 -1
- package/lib/db/Models/observable-model.d.ts +2 -2
- package/lib/db/Models/subscription/service-subscription.d.ts +1 -1
- package/lib/forms/holding/holding-type.form.d.ts +2 -2
- package/lib/forms/holding/holding.form.d.ts +2 -2
- package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts +1 -1
- package/lib/forms/sole/bas-report.form.d.ts +1 -1
- package/lib/interceptors/basiq-client-id.interceptor.d.ts +1 -1
- package/lib/interceptors/basiq-token.interceptor.d.ts +1 -1
- package/lib/interceptors/corelogic-interceptor.d.ts +1 -1
- package/lib/interceptors/financial-year-interceptor.d.ts +1 -1
- package/lib/interceptors/preloader.interceptor.d.ts +1 -1
- package/lib/interceptors/user-switcher-interceptor.d.ts +1 -1
- package/lib/interfaces/income-source-forecast.interface.d.ts +1 -1
- package/lib/models/bank/basiq/basiq-token.d.ts +1 -1
- package/lib/models/income-source/sole-forecast.d.ts +2 -2
- package/lib/models/property/property.d.ts +1 -1
- package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts +1 -1
- package/lib/models/service-subscription/service-promo-code.d.ts +1 -1
- package/lib/models/sole/bas-report.d.ts +1 -1
- package/lib/models/sole/sole-business-activity.d.ts +1 -1
- package/lib/services/auth/auth.service.d.ts +3 -3
- package/lib/services/http/bank/bank.service.d.ts +1 -1
- package/lib/services/http/chat/chat.service.d.ts +1 -1
- package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts +1 -1
- package/lib/services/http/facebook/facebook.service.d.ts +2 -2
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts +1 -1
- package/lib/services/http/google/google.service.d.ts +1 -1
- package/lib/services/http/holding/holding-sale.service.d.ts +1 -1
- package/lib/services/http/holding/holding-type.service.d.ts +1 -1
- package/lib/services/http/holding/holding.service.d.ts +1 -1
- package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts +1 -1
- package/lib/services/report/property/property-transaction-report.service.d.ts +1 -1
- package/lib/services/transaction/transaction-calculation.service.d.ts +1 -1
- package/lib/services/vehicle/logbook-best-period.service.d.ts +1 -1
- package/lib/validators/transactions-meta-fields.validator.d.ts +1 -1
- package/package.json +1 -1
- package/lib/collections/account-setup-item.collection.d.ts.map +0 -1
- package/lib/collections/allocation-group.collection.d.ts.map +0 -1
- package/lib/collections/allocation-rule.collection.d.ts.map +0 -1
- package/lib/collections/bank-account.collection.d.ts.map +0 -1
- package/lib/collections/bank-transaction.collection.d.ts.map +0 -1
- package/lib/collections/chart-accounts.collection.d.ts.map +0 -1
- package/lib/collections/chat/chat.collection.d.ts.map +0 -1
- package/lib/collections/chat/index.d.ts.map +0 -1
- package/lib/collections/chat/message-document.collection.d.ts.map +0 -1
- package/lib/collections/chat/message.collection.d.ts.map +0 -1
- package/lib/collections/client-invite.collection.d.ts.map +0 -1
- package/lib/collections/client-movement.collection.d.ts.map +0 -1
- package/lib/collections/client-portfolio-report.collection.d.ts.map +0 -1
- package/lib/collections/client.collection.d.ts.map +0 -1
- package/lib/collections/collection-dictionary.d.ts.map +0 -1
- package/lib/collections/collection.d.ts.map +0 -1
- package/lib/collections/depreciation-forecast.collection.d.ts.map +0 -1
- package/lib/collections/depreciation.collection.d.ts.map +0 -1
- package/lib/collections/employee.collection.d.ts.map +0 -1
- package/lib/collections/exportable.collection.d.ts.map +0 -1
- package/lib/collections/holding-type.collection.d.ts.map +0 -1
- package/lib/collections/holding.collection.d.ts.map +0 -1
- package/lib/collections/income-source.collection.d.ts.map +0 -1
- package/lib/collections/index.d.ts.map +0 -1
- package/lib/collections/loan/index.d.ts.map +0 -1
- package/lib/collections/loan/loan-payment.collection.d.ts.map +0 -1
- package/lib/collections/loan/loan.collection.d.ts.map +0 -1
- package/lib/collections/property/index.d.ts.map +0 -1
- package/lib/collections/property/property-category-movement.collection.d.ts.map +0 -1
- package/lib/collections/property/property-sale/index.d.ts.map +0 -1
- package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts.map +0 -1
- package/lib/collections/property/property-sale/property-sale.collection.d.ts.map +0 -1
- package/lib/collections/property/property-share.collection.d.ts.map +0 -1
- package/lib/collections/property/property.collection.d.ts.map +0 -1
- package/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.d.ts.map +0 -1
- package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +0 -1
- package/lib/collections/report/index.d.ts.map +0 -1
- package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +0 -1
- package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +0 -1
- package/lib/collections/report/property/property-report-item.collection.d.ts.map +0 -1
- package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +0 -1
- package/lib/collections/sole/index.d.ts.map +0 -1
- package/lib/collections/sole/sole-business-losses.collection.d.ts.map +0 -1
- package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +0 -1
- package/lib/collections/sole/sole-invoice.collection.d.ts.map +0 -1
- package/lib/collections/subscription/index.d.ts.map +0 -1
- package/lib/collections/subscription/service-price.collection.d.ts.map +0 -1
- package/lib/collections/subscription/service-product.collection.d.ts.map +0 -1
- package/lib/collections/subscription/service-subscription.collection.d.ts.map +0 -1
- package/lib/collections/subscription/subscription-item.collection.d.ts.map +0 -1
- package/lib/collections/tax-review.collection.d.ts.map +0 -1
- package/lib/collections/tax-summary/index.d.ts.map +0 -1
- package/lib/collections/tax-summary/report-item.collection.d.ts.map +0 -1
- package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +0 -1
- package/lib/collections/transaction/index.d.ts.map +0 -1
- package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +0 -1
- package/lib/collections/transaction/transaction.collection.d.ts.map +0 -1
- package/lib/collections/user-event-setting.collection.d.ts.map +0 -1
- package/lib/collections/user-event-type-collection.d.ts.map +0 -1
- package/lib/collections/vehicle/index.d.ts.map +0 -1
- package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +0 -1
- package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +0 -1
- package/lib/db/Enums/address-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.d.ts.map +0 -1
- package/lib/db/Enums/allocation-rule-condition-field.enum.d.ts.map +0 -1
- package/lib/db/Enums/allocation-rule-condition-operator.enum.d.ts.map +0 -1
- package/lib/db/Enums/allocation-rule-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/annual-frequency.enum.d.ts.map +0 -1
- package/lib/db/Enums/bank-account-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/bank-account-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/bank-connection-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/bank-popular.enum.d.ts.map +0 -1
- package/lib/db/Enums/bank-transaction-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-category.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-heading-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-heading-vehicle-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-keep-sign.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/chart-accounts-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/chart-accounts/index.d.ts.map +0 -1
- package/lib/db/Enums/chat-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts.map +0 -1
- package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts.map +0 -1
- package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts.map +0 -1
- package/lib/db/Enums/client-invite-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/client-invite-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts.map +0 -1
- package/lib/db/Enums/depreciation-calculation.enum.d.ts.map +0 -1
- package/lib/db/Enums/depreciation-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +0 -1
- package/lib/db/Enums/document-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/file-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/firm-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/holding/holding-type-category.enum.d.ts.map +0 -1
- package/lib/db/Enums/income-source-forecast-trust-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/income-source-type-list-other.enum.d.ts.map +0 -1
- package/lib/db/Enums/income-source-type-list-sole.enum.d.ts.map +0 -1
- package/lib/db/Enums/income-source-type-list-work.enum.d.ts.map +0 -1
- package/lib/db/Enums/income-source-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/index.d.ts.map +0 -1
- package/lib/db/Enums/invite-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/loan-bank-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/loan-frequency.enum.d.ts.map +0 -1
- package/lib/db/Enums/loan-interest-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/loan-payout-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/loan-repayment-frequency.enum.d.ts.map +0 -1
- package/lib/db/Enums/loan-repayment-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/loan-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/loan-vehicle-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/phone-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/property/property-category-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/property/property-depreciation-calculation.enum.d.ts.map +0 -1
- package/lib/db/Enums/property/property-sale/tax-exemption-meta-field.enum.d.ts.map +0 -1
- package/lib/db/Enums/property/property-sale/tax-exemption.enum.d.ts.map +0 -1
- package/lib/db/Enums/property/property-share-access.enum.d.ts.map +0 -1
- package/lib/db/Enums/property/property-share-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/registration-invite-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/salary-forecast-frequency.enum.d.ts.map +0 -1
- package/lib/db/Enums/service-notification-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/service-notification-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/sole-depreciation-method.enum.d.ts.map +0 -1
- package/lib/db/Enums/sole-invoice-statuses.enum.d.ts.map +0 -1
- package/lib/db/Enums/sole-invoice-tax-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/spare-document-spare-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts.map +0 -1
- package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/subscription/service-payment-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/subscription/service-price-recurring-interval.enum.d.ts.map +0 -1
- package/lib/db/Enums/subscription/service-price-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/subscription/service-product-id.enum.d.ts.map +0 -1
- package/lib/db/Enums/subscription/service-product-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/subscription/service-subscription-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/tank-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts.map +0 -1
- package/lib/db/Enums/tax-calculation-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/tax-return-category-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/tax-return-category-section.enum.d.ts.map +0 -1
- package/lib/db/Enums/tax-review-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/tax-summary-list.enum.d.ts.map +0 -1
- package/lib/db/Enums/tax-summary-section.enum.d.ts.map +0 -1
- package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +0 -1
- package/lib/db/Enums/ticket-feedback.enum.d.ts.map +0 -1
- package/lib/db/Enums/ticket-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/ticket-types.enum.d.ts.map +0 -1
- package/lib/db/Enums/transaction-operation.enum.d.ts.map +0 -1
- package/lib/db/Enums/transaction-source.enum.d.ts.map +0 -1
- package/lib/db/Enums/transaction-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-event-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-event-type-frequency.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-event-type-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-roles.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-status.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-title.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +0 -1
- package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +0 -1
- package/lib/db/Enums/vehicle-claim-details-method.enum.d.ts.map +0 -1
- package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts.map +0 -1
- package/lib/db/Models/abstract-model.d.ts.map +0 -1
- package/lib/db/Models/address.d.ts.map +0 -1
- package/lib/db/Models/bank/bank-account-balance.d.ts.map +0 -1
- package/lib/db/Models/bank/bank-account-property.d.ts.map +0 -1
- package/lib/db/Models/bank/bank-account.d.ts.map +0 -1
- package/lib/db/Models/bank/bank-connection.d.ts.map +0 -1
- package/lib/db/Models/bank/bank-transaction-import.d.ts.map +0 -1
- package/lib/db/Models/bank/bank-transaction.d.ts.map +0 -1
- package/lib/db/Models/bank/bank.d.ts.map +0 -1
- package/lib/db/Models/bank/basiq-job.d.ts.map +0 -1
- package/lib/db/Models/bank/financial-data-system.d.ts.map +0 -1
- package/lib/db/Models/chart-accounts/chart-accounts-depreciation.d.ts.map +0 -1
- package/lib/db/Models/chart-accounts/chart-accounts-heading.d.ts.map +0 -1
- package/lib/db/Models/chart-accounts/chart-accounts-meta-field.d.ts.map +0 -1
- package/lib/db/Models/chart-accounts/chart-accounts-value.d.ts.map +0 -1
- package/lib/db/Models/chart-accounts/chart-accounts.d.ts.map +0 -1
- package/lib/db/Models/client/annual-client-details.d.ts.map +0 -1
- package/lib/db/Models/client/client-details.d.ts.map +0 -1
- package/lib/db/Models/client/client-income-types.d.ts.map +0 -1
- package/lib/db/Models/client/index.d.ts.map +0 -1
- package/lib/db/Models/client/occupation.d.ts.map +0 -1
- package/lib/db/Models/country.d.ts.map +0 -1
- package/lib/db/Models/depreciation/depreciation-capital-project.d.ts.map +0 -1
- package/lib/db/Models/depreciation/depreciation-forecast.d.ts.map +0 -1
- package/lib/db/Models/depreciation/depreciation-receipt.d.ts.map +0 -1
- package/lib/db/Models/depreciation/depreciation.d.ts.map +0 -1
- package/lib/db/Models/document/document-base.d.ts.map +0 -1
- package/lib/db/Models/document/document-folder.d.ts.map +0 -1
- package/lib/db/Models/document/document.d.ts.map +0 -1
- package/lib/db/Models/document/property-document.d.ts.map +0 -1
- package/lib/db/Models/file.d.ts.map +0 -1
- package/lib/db/Models/firm/accountant/tax-review.d.ts.map +0 -1
- package/lib/db/Models/firm/accountant/ticket.d.ts.map +0 -1
- package/lib/db/Models/firm/chat.d.ts.map +0 -1
- package/lib/db/Models/firm/client-invite.d.ts.map +0 -1
- package/lib/db/Models/firm/client-movement.d.ts.map +0 -1
- package/lib/db/Models/firm/employee-invite.d.ts.map +0 -1
- package/lib/db/Models/firm/firm-invite.d.ts.map +0 -1
- package/lib/db/Models/firm/firm.d.ts.map +0 -1
- package/lib/db/Models/firm/message-document.d.ts.map +0 -1
- package/lib/db/Models/firm/message.d.ts.map +0 -1
- package/lib/db/Models/holding/holding-sale.d.ts.map +0 -1
- package/lib/db/Models/holding/holding-type-exchange.d.ts.map +0 -1
- package/lib/db/Models/holding/holding-type.d.ts.map +0 -1
- package/lib/db/Models/holding/holding.d.ts.map +0 -1
- package/lib/db/Models/holding/index.d.ts.map +0 -1
- package/lib/db/Models/incomeSource/income-source-forecast.d.ts.map +0 -1
- package/lib/db/Models/incomeSource/income-source-type.d.ts.map +0 -1
- package/lib/db/Models/incomeSource/income-source.d.ts.map +0 -1
- package/lib/db/Models/incomeSource/salary-forecast.d.ts.map +0 -1
- package/lib/db/Models/index.d.ts.map +0 -1
- package/lib/db/Models/loan/borrowing-expense-loan.d.ts.map +0 -1
- package/lib/db/Models/loan/borrowing-expense.d.ts.map +0 -1
- package/lib/db/Models/loan/loan-payout.d.ts.map +0 -1
- package/lib/db/Models/loan/loan.d.ts.map +0 -1
- package/lib/db/Models/observable-model.d.ts.map +0 -1
- package/lib/db/Models/phone.d.ts.map +0 -1
- package/lib/db/Models/property/property-category-movement.d.ts.map +0 -1
- package/lib/db/Models/property/property-category.d.ts.map +0 -1
- package/lib/db/Models/property/property-forecast.d.ts.map +0 -1
- package/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +0 -1
- package/lib/db/Models/property/property-sale/property-sale.d.ts.map +0 -1
- package/lib/db/Models/property/property-sale/tax-exemption-meta-field.d.ts.map +0 -1
- package/lib/db/Models/property/property-sale/tax-exemption.d.ts.map +0 -1
- package/lib/db/Models/property/property-share.d.ts.map +0 -1
- package/lib/db/Models/property/property-subscription.d.ts.map +0 -1
- package/lib/db/Models/property/property-valuation.d.ts.map +0 -1
- package/lib/db/Models/property/property.d.ts.map +0 -1
- package/lib/db/Models/service-notification.d.ts.map +0 -1
- package/lib/db/Models/sole/bas-report.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-business-activity.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-business-allocation.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-business-loss-offset-rule.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-business-loss.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-business.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-contact.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-depreciation-method.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-details.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-forecast.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-invoice-item.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-invoice-template.d.ts.map +0 -1
- package/lib/db/Models/sole/sole-invoice.d.ts.map +0 -1
- package/lib/db/Models/spare/spare-document-category.d.ts.map +0 -1
- package/lib/db/Models/spare/spare-document.d.ts.map +0 -1
- package/lib/db/Models/subscription/service-payment-method.d.ts.map +0 -1
- package/lib/db/Models/subscription/service-payment.d.ts.map +0 -1
- package/lib/db/Models/subscription/service-price.d.ts.map +0 -1
- package/lib/db/Models/subscription/service-product.d.ts.map +0 -1
- package/lib/db/Models/subscription/service-subscription-item.d.ts.map +0 -1
- package/lib/db/Models/subscription/service-subscription.d.ts.map +0 -1
- package/lib/db/Models/tax-calculation.d.ts.map +0 -1
- package/lib/db/Models/tax-return/tax-return-category.d.ts.map +0 -1
- package/lib/db/Models/tax-return/tax-return-item.d.ts.map +0 -1
- package/lib/db/Models/tax-return/tax-return.d.ts.map +0 -1
- package/lib/db/Models/transaction/allocation-rule-condition.d.ts.map +0 -1
- package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts.map +0 -1
- package/lib/db/Models/transaction/allocation-rule-transaction.d.ts.map +0 -1
- package/lib/db/Models/transaction/allocation-rule.d.ts.map +0 -1
- package/lib/db/Models/transaction/transaction-allocation.d.ts.map +0 -1
- package/lib/db/Models/transaction/transaction-base.d.ts.map +0 -1
- package/lib/db/Models/transaction/transaction-meta-field.d.ts.map +0 -1
- package/lib/db/Models/transaction/transaction-receipt.d.ts.map +0 -1
- package/lib/db/Models/transaction/transaction.d.ts.map +0 -1
- package/lib/db/Models/user/employee-details.d.ts.map +0 -1
- package/lib/db/Models/user/registration-invite.d.ts.map +0 -1
- package/lib/db/Models/user/user-event-setting.d.ts.map +0 -1
- package/lib/db/Models/user/user-event-type-category.d.ts.map +0 -1
- package/lib/db/Models/user/user-event-type.d.ts.map +0 -1
- package/lib/db/Models/user/user-event.d.ts.map +0 -1
- package/lib/db/Models/user/user.d.ts.map +0 -1
- package/lib/db/Models/vehicle/vehicle-claim-details.d.ts.map +0 -1
- package/lib/db/Models/vehicle/vehicle-claim.d.ts.map +0 -1
- package/lib/db/Models/vehicle/vehicle-logbook.d.ts.map +0 -1
- package/lib/db/Models/vehicle/vehicle.d.ts.map +0 -1
- package/lib/db-static/chart-accounts/chart-accounts-values.d.ts.map +0 -1
- package/lib/forms/abstract.form.d.ts.map +0 -1
- package/lib/forms/address/address.form.d.ts.map +0 -1
- package/lib/forms/address/index.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +0 -1
- package/lib/forms/bank/bank-login.form.d.ts.map +0 -1
- package/lib/forms/client/annual-client-details.form.d.ts.map +0 -1
- package/lib/forms/client/client-income-types.form.d.ts.map +0 -1
- package/lib/forms/client/index.d.ts.map +0 -1
- package/lib/forms/depreciation/depreciation.form.d.ts.map +0 -1
- package/lib/forms/depreciation/index.d.ts.map +0 -1
- package/lib/forms/form-validations.enum.d.ts.map +0 -1
- package/lib/forms/holding/holding-sale.form.d.ts.map +0 -1
- package/lib/forms/holding/holding-type.form.d.ts.map +0 -1
- package/lib/forms/holding/holding.form.d.ts.map +0 -1
- package/lib/forms/holding/index.d.ts.map +0 -1
- package/lib/forms/index.d.ts.map +0 -1
- package/lib/forms/loan/index.d.ts.map +0 -1
- package/lib/forms/loan/loan.form.d.ts.map +0 -1
- package/lib/forms/login/login.form.d.ts.map +0 -1
- package/lib/forms/phone/index.d.ts.map +0 -1
- package/lib/forms/phone/phone.form.d.ts.map +0 -1
- package/lib/forms/property/index.d.ts.map +0 -1
- package/lib/forms/property/property-sale/index.d.ts.map +0 -1
- package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +0 -1
- package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +0 -1
- package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +0 -1
- package/lib/forms/register/register-client.form.d.ts.map +0 -1
- package/lib/forms/register/register-firm.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/index.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +0 -1
- package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +0 -1
- package/lib/forms/sole/bas-report.form.d.ts.map +0 -1
- package/lib/forms/sole/index.d.ts.map +0 -1
- package/lib/forms/sole/sole-business-allocations.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-business-loss.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-business.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-contact.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-details.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-invoice-item.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-invoice-template.form.d.ts.map +0 -1
- package/lib/forms/sole/sole-invoice.form.d.ts.map +0 -1
- package/lib/forms/transaction/allocation-rule-condition.form.d.ts.map +0 -1
- package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts.map +0 -1
- package/lib/forms/transaction/allocation-rule-transaction.form.d.ts.map +0 -1
- package/lib/forms/transaction/allocation-rule.form.d.ts.map +0 -1
- package/lib/forms/transaction/index.d.ts.map +0 -1
- package/lib/forms/transaction/messages.enum.d.ts.map +0 -1
- package/lib/forms/transaction/transaction-base.form.d.ts.map +0 -1
- package/lib/forms/transaction/transaction.form.d.ts.map +0 -1
- package/lib/forms/transaction/work/work-expense.form.d.ts.map +0 -1
- package/lib/forms/transaction/work/work-income.form.d.ts.map +0 -1
- package/lib/forms/transaction/work/work-transaction.form.d.ts.map +0 -1
- package/lib/forms/user/index.d.ts.map +0 -1
- package/lib/forms/user/password.form.d.ts.map +0 -1
- package/lib/forms/user/reset-password.form.d.ts.map +0 -1
- package/lib/forms/user/user-invite.form.d.ts.map +0 -1
- package/lib/forms/vehicle/index.d.ts.map +0 -1
- package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +0 -1
- package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +0 -1
- package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +0 -1
- package/lib/forms/vehicle/vehicle.form.d.ts.map +0 -1
- package/lib/functions/array/index.d.ts.map +0 -1
- package/lib/functions/array/replace.d.ts.map +0 -1
- package/lib/functions/array/sort-deep.d.ts.map +0 -1
- package/lib/functions/array/sort.d.ts.map +0 -1
- package/lib/functions/array/to-array.d.ts.map +0 -1
- package/lib/functions/clone-deep.d.ts.map +0 -1
- package/lib/functions/create-date.d.ts.map +0 -1
- package/lib/functions/enum-to-list.d.ts.map +0 -1
- package/lib/functions/get-doc-icon.d.ts.map +0 -1
- package/lib/functions/mat-options-functions.d.ts.map +0 -1
- package/lib/functions/mat-sort-options.d.ts.map +0 -1
- package/lib/functions/round-to.d.ts.map +0 -1
- package/lib/functions/tax-review-filter-predicate.d.ts.map +0 -1
- package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +0 -1
- package/lib/interceptors/basiq-token.interceptor.d.ts.map +0 -1
- package/lib/interceptors/corelogic-interceptor.d.ts.map +0 -1
- package/lib/interceptors/financial-year-interceptor.d.ts.map +0 -1
- package/lib/interceptors/interceptors.module.d.ts.map +0 -1
- package/lib/interceptors/jwt-interceptor.d.ts.map +0 -1
- package/lib/interceptors/preloader.interceptor.d.ts.map +0 -1
- package/lib/interceptors/user-switcher-interceptor.d.ts.map +0 -1
- package/lib/interfaces/asset-entity-type.enum.d.ts.map +0 -1
- package/lib/interfaces/asset-type.enum.d.ts.map +0 -1
- package/lib/interfaces/asset.interface.d.ts.map +0 -1
- package/lib/interfaces/auth-tokens.interface.d.ts.map +0 -1
- package/lib/interfaces/chart-data.interface.d.ts.map +0 -1
- package/lib/interfaces/chart-serie.interface.d.ts.map +0 -1
- package/lib/interfaces/document.interface.d.ts.map +0 -1
- package/lib/interfaces/documentable.interface.d.ts.map +0 -1
- package/lib/interfaces/event-listener.interface.d.ts.map +0 -1
- package/lib/interfaces/expense.interface.d.ts.map +0 -1
- package/lib/interfaces/income-source-forecast.interface.d.ts.map +0 -1
- package/lib/interfaces/index.d.ts.map +0 -1
- package/lib/interfaces/option.interface.d.ts.map +0 -1
- package/lib/interfaces/photoable.d.ts.map +0 -1
- package/lib/interfaces/receipt.interface.d.ts.map +0 -1
- package/lib/interfaces/table-exportable.interface.d.ts.map +0 -1
- package/lib/interfaces/tank.interface.d.ts.map +0 -1
- package/lib/interfaces/updatable.interface.d.ts.map +0 -1
- package/lib/messages/index.d.ts.map +0 -1
- package/lib/messages/messages.enum.d.ts.map +0 -1
- package/lib/models/account-setup/account-setup-item.d.ts.map +0 -1
- package/lib/models/account-setup/account-setup-items.const.d.ts.map +0 -1
- package/lib/models/account-setup/account-setup-items.enum.d.ts.map +0 -1
- package/lib/models/address/address.d.ts.map +0 -1
- package/lib/models/address/country.d.ts.map +0 -1
- package/lib/models/address/index.d.ts.map +0 -1
- package/lib/models/address/states.enum.d.ts.map +0 -1
- package/lib/models/badge/badge-color.enum.d.ts.map +0 -1
- package/lib/models/badge/badge.d.ts.map +0 -1
- package/lib/models/bank/allocation-group.d.ts.map +0 -1
- package/lib/models/bank/bank-account-chart-data.d.ts.map +0 -1
- package/lib/models/bank/bank-account-property.d.ts.map +0 -1
- package/lib/models/bank/bank-account-types.const.d.ts.map +0 -1
- package/lib/models/bank/bank-account.d.ts.map +0 -1
- package/lib/models/bank/bank-connection.d.ts.map +0 -1
- package/lib/models/bank/bank-external-stats.d.ts.map +0 -1
- package/lib/models/bank/bank-login-data.d.ts.map +0 -1
- package/lib/models/bank/bank-transaction-chart-data.d.ts.map +0 -1
- package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +0 -1
- package/lib/models/bank/bank-transaction.d.ts.map +0 -1
- package/lib/models/bank/bank.d.ts.map +0 -1
- package/lib/models/bank/basiq/basiq-config.d.ts.map +0 -1
- package/lib/models/bank/basiq/basiq-connection-data.interface.d.ts.map +0 -1
- package/lib/models/bank/basiq/basiq-connections-response.interface.d.ts.map +0 -1
- package/lib/models/bank/basiq/basiq-job-response.d.ts.map +0 -1
- package/lib/models/bank/basiq/basiq-job-step.d.ts.map +0 -1
- package/lib/models/bank/basiq/basiq-job.d.ts.map +0 -1
- package/lib/models/bank/basiq/basiq-token-response.interface.d.ts.map +0 -1
- package/lib/models/bank/basiq/basiq-token.d.ts.map +0 -1
- package/lib/models/bank/basiq/index.d.ts.map +0 -1
- package/lib/models/bank/index.d.ts.map +0 -1
- package/lib/models/bank/type-loan.const.d.ts.map +0 -1
- package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +0 -1
- package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +0 -1
- package/lib/models/borrowing-expense/index.d.ts.map +0 -1
- package/lib/models/chart/chart-data.d.ts.map +0 -1
- package/lib/models/chart/chart-serie.d.ts.map +0 -1
- package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +0 -1
- package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +0 -1
- package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +0 -1
- package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +0 -1
- package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts.map +0 -1
- package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +0 -1
- package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +0 -1
- package/lib/models/chart-accounts/chart-accounts.d.ts.map +0 -1
- package/lib/models/chart-accounts/index.d.ts.map +0 -1
- package/lib/models/chat/chat-view-type.enum.d.ts.map +0 -1
- package/lib/models/chat/chat.d.ts.map +0 -1
- package/lib/models/chat/index.d.ts.map +0 -1
- package/lib/models/chat/message-document.d.ts.map +0 -1
- package/lib/models/chat/message.d.ts.map +0 -1
- package/lib/models/client/annual-client-details.d.ts.map +0 -1
- package/lib/models/client/client-details.d.ts.map +0 -1
- package/lib/models/client/client-income-types.d.ts.map +0 -1
- package/lib/models/client/client-invite.d.ts.map +0 -1
- package/lib/models/client/client-movement.d.ts.map +0 -1
- package/lib/models/client/client-portfolio-chart-data.d.ts.map +0 -1
- package/lib/models/client/client-portfolio-report.d.ts.map +0 -1
- package/lib/models/client/index.d.ts.map +0 -1
- package/lib/models/color/alphabet-colors.enum.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation-capital-project.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation-forecast.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation-group-item.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation-group.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation-group.enum.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation-groups.const.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation-receipt.d.ts.map +0 -1
- package/lib/models/depreciation/depreciation.d.ts.map +0 -1
- package/lib/models/depreciation/index.d.ts.map +0 -1
- package/lib/models/dictionary/dictionary.d.ts.map +0 -1
- package/lib/models/dictionary/index.d.ts.map +0 -1
- package/lib/models/document/document-api-url-prefix.enum.d.ts.map +0 -1
- package/lib/models/document/document-file-types.const.d.ts.map +0 -1
- package/lib/models/document/document-folder.d.ts.map +0 -1
- package/lib/models/document/document.d.ts.map +0 -1
- package/lib/models/document/index.d.ts.map +0 -1
- package/lib/models/employee/employee-details.d.ts.map +0 -1
- package/lib/models/employee/employee-invite.d.ts.map +0 -1
- package/lib/models/endpoint/endpoint.d.ts.map +0 -1
- package/lib/models/endpoint/endpoints.const.d.ts.map +0 -1
- package/lib/models/event/app-event-type.enum.d.ts.map +0 -1
- package/lib/models/event/app-event.d.ts.map +0 -1
- package/lib/models/event/index.d.ts.map +0 -1
- package/lib/models/export/export-cell-type.enum.d.ts.map +0 -1
- package/lib/models/export/export-cell.d.ts.map +0 -1
- package/lib/models/export/export-data-table.d.ts.map +0 -1
- package/lib/models/export/export-format.enum.d.ts.map +0 -1
- package/lib/models/export/export-row-data-type.enum.d.ts.map +0 -1
- package/lib/models/export/export-row.d.ts.map +0 -1
- package/lib/models/file/file.d.ts.map +0 -1
- package/lib/models/file/icons-file.enum.d.ts.map +0 -1
- package/lib/models/file/index.d.ts.map +0 -1
- package/lib/models/financial-year/financial-year.d.ts.map +0 -1
- package/lib/models/financial-year/index.d.ts.map +0 -1
- package/lib/models/financial-year/month-name-short.enum.d.ts.map +0 -1
- package/lib/models/financial-year/month-number.enum.d.ts.map +0 -1
- package/lib/models/financial-year/months.const.d.ts.map +0 -1
- package/lib/models/firm/firm.d.ts.map +0 -1
- package/lib/models/holding/holding-sale.d.ts.map +0 -1
- package/lib/models/holding/holding-type-exchange.d.ts.map +0 -1
- package/lib/models/holding/holding-type.d.ts.map +0 -1
- package/lib/models/holding/holding.d.ts.map +0 -1
- package/lib/models/holding/index.d.ts.map +0 -1
- package/lib/models/income-position/income-position.d.ts.map +0 -1
- package/lib/models/income-source/income-source-chart-data.d.ts.map +0 -1
- package/lib/models/income-source/income-source-forecast.d.ts.map +0 -1
- package/lib/models/income-source/income-source-type.d.ts.map +0 -1
- package/lib/models/income-source/income-source.d.ts.map +0 -1
- package/lib/models/income-source/salary-forecast.d.ts.map +0 -1
- package/lib/models/income-source/sole-forecast.d.ts.map +0 -1
- package/lib/models/index.d.ts.map +0 -1
- package/lib/models/loan/index.d.ts.map +0 -1
- package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +0 -1
- package/lib/models/loan/loan-payment.d.ts.map +0 -1
- package/lib/models/loan/loan-payout.d.ts.map +0 -1
- package/lib/models/loan/loan.d.ts.map +0 -1
- package/lib/models/notification/index.d.ts.map +0 -1
- package/lib/models/notification/notification.d.ts.map +0 -1
- package/lib/models/pdf/pdf-orientation.enum.d.ts.map +0 -1
- package/lib/models/pdf/pdf-settings.d.ts.map +0 -1
- package/lib/models/phone/phone.d.ts.map +0 -1
- package/lib/models/property/calculation-form-item.d.ts.map +0 -1
- package/lib/models/property/calculation-form-type.enum.d.ts.map +0 -1
- package/lib/models/property/capital-costs-itmes.const.d.ts.map +0 -1
- package/lib/models/property/corelogic-suggestion.d.ts.map +0 -1
- package/lib/models/property/index.d.ts.map +0 -1
- package/lib/models/property/property-category-movement.d.ts.map +0 -1
- package/lib/models/property/property-category.d.ts.map +0 -1
- package/lib/models/property/property-document.d.ts.map +0 -1
- package/lib/models/property/property-equity-chart-data.d.ts.map +0 -1
- package/lib/models/property/property-equity-chart-item.d.ts.map +0 -1
- package/lib/models/property/property-equity-chart-type.enum.d.ts.map +0 -1
- package/lib/models/property/property-forecast.d.ts.map +0 -1
- package/lib/models/property/property-sale/index.d.ts.map +0 -1
- package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +0 -1
- package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +0 -1
- package/lib/models/property/property-sale/property-sale.d.ts.map +0 -1
- package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts.map +0 -1
- package/lib/models/property/property-sale/tax-exemption.d.ts.map +0 -1
- package/lib/models/property/property-share.d.ts.map +0 -1
- package/lib/models/property/property-subscription.d.ts.map +0 -1
- package/lib/models/property/property-valuation.d.ts.map +0 -1
- package/lib/models/property/property.d.ts.map +0 -1
- package/lib/models/property/share-filter-options.enum.d.ts.map +0 -1
- package/lib/models/registration-invite/registration-invite.d.ts.map +0 -1
- package/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.d.ts.map +0 -1
- package/lib/models/report/depreciation/depreciation-lvp-report-item.d.ts.map +0 -1
- package/lib/models/report/depreciation/depreciation-report-item.d.ts.map +0 -1
- package/lib/models/report/depreciation/index.d.ts.map +0 -1
- package/lib/models/report/index.d.ts.map +0 -1
- package/lib/models/report/my-tax/ato-links.d.ts.map +0 -1
- package/lib/models/report/my-tax/index.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +0 -1
- package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +0 -1
- package/lib/models/report/property/index.d.ts.map +0 -1
- package/lib/models/report/property/property-report-item-depreciation.d.ts.map +0 -1
- package/lib/models/report/property/property-report-item-transaction.d.ts.map +0 -1
- package/lib/models/report/property/property-report-item.d.ts.map +0 -1
- package/lib/models/report/sole/index.d.ts.map +0 -1
- package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +0 -1
- package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +0 -1
- package/lib/models/service-subscription/index.d.ts.map +0 -1
- package/lib/models/service-subscription/module-url-list.const.d.ts.map +0 -1
- package/lib/models/service-subscription/payment-method-brand.enum.d.ts.map +0 -1
- package/lib/models/service-subscription/service-payment-method.d.ts.map +0 -1
- package/lib/models/service-subscription/service-payment.d.ts.map +0 -1
- package/lib/models/service-subscription/service-price.d.ts.map +0 -1
- package/lib/models/service-subscription/service-product.d.ts.map +0 -1
- package/lib/models/service-subscription/service-promo-code-duration.enum.d.ts.map +0 -1
- package/lib/models/service-subscription/service-promo-code.d.ts.map +0 -1
- package/lib/models/service-subscription/service-subscription-item.d.ts.map +0 -1
- package/lib/models/service-subscription/service-subscription.d.ts.map +0 -1
- package/lib/models/sole/bas-report.d.ts.map +0 -1
- package/lib/models/sole/index.d.ts.map +0 -1
- package/lib/models/sole/sole-business-activity.d.ts.map +0 -1
- package/lib/models/sole/sole-business-allocation.d.ts.map +0 -1
- package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +0 -1
- package/lib/models/sole/sole-business-loss.d.ts.map +0 -1
- package/lib/models/sole/sole-business.d.ts.map +0 -1
- package/lib/models/sole/sole-contact.d.ts.map +0 -1
- package/lib/models/sole/sole-depreciation-method.d.ts.map +0 -1
- package/lib/models/sole/sole-details.d.ts.map +0 -1
- package/lib/models/sole/sole-invoice-item.d.ts.map +0 -1
- package/lib/models/sole/sole-invoice-template.d.ts.map +0 -1
- package/lib/models/sole/sole-invoice.d.ts.map +0 -1
- package/lib/models/tax-review/tax-review.d.ts.map +0 -1
- package/lib/models/tax-summary/report-item-details.d.ts.map +0 -1
- package/lib/models/tax-summary/report-item.d.ts.map +0 -1
- package/lib/models/tax-summary/tax-summary-section.d.ts.map +0 -1
- package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +0 -1
- package/lib/models/tax-summary/tax-summary.d.ts.map +0 -1
- package/lib/models/toast/toast-type.enum.d.ts.map +0 -1
- package/lib/models/toast/toast.d.ts.map +0 -1
- package/lib/models/transaction/allocation-rule-condition.d.ts.map +0 -1
- package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts.map +0 -1
- package/lib/models/transaction/allocation-rule-transaction.d.ts.map +0 -1
- package/lib/models/transaction/allocation-rule.d.ts.map +0 -1
- package/lib/models/transaction/income-amount-type.enum.d.ts.map +0 -1
- package/lib/models/transaction/index.d.ts.map +0 -1
- package/lib/models/transaction/transaction-allocation.d.ts.map +0 -1
- package/lib/models/transaction/transaction-category.enum.d.ts.map +0 -1
- package/lib/models/transaction/transaction-meta-field.d.ts.map +0 -1
- package/lib/models/transaction/transaction-receipt.d.ts.map +0 -1
- package/lib/models/transaction/transaction.d.ts.map +0 -1
- package/lib/models/user/index.d.ts.map +0 -1
- package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +0 -1
- package/lib/models/user/my-account-history-status.enum.d.ts.map +0 -1
- package/lib/models/user/my-account-history-type.enum.d.ts.map +0 -1
- package/lib/models/user/my-account-history.d.ts.map +0 -1
- package/lib/models/user/occupation.d.ts.map +0 -1
- package/lib/models/user/user-roles.const.d.ts.map +0 -1
- package/lib/models/user/user-to-register.d.ts.map +0 -1
- package/lib/models/user/user-work-position.const.d.ts.map +0 -1
- package/lib/models/user/user.d.ts.map +0 -1
- package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +0 -1
- package/lib/models/user-event/user-event-setting.d.ts.map +0 -1
- package/lib/models/user-event/user-event-type-category.d.ts.map +0 -1
- package/lib/models/user-event/user-event-type.d.ts.map +0 -1
- package/lib/models/vehicle/index.d.ts.map +0 -1
- package/lib/models/vehicle/logbook-period.d.ts.map +0 -1
- package/lib/models/vehicle/vehicle-claim-details.d.ts.map +0 -1
- package/lib/models/vehicle/vehicle-claim.d.ts.map +0 -1
- package/lib/models/vehicle/vehicle-logbook.d.ts.map +0 -1
- package/lib/models/vehicle/vehicle.d.ts.map +0 -1
- package/lib/services/account-setup/account-setup.service.d.ts.map +0 -1
- package/lib/services/account-setup/index.d.ts.map +0 -1
- package/lib/services/affiliate/index.d.ts.map +0 -1
- package/lib/services/affiliate/rewardful/index.d.ts.map +0 -1
- package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +0 -1
- package/lib/services/asset/assets.service.d.ts.map +0 -1
- package/lib/services/asset/index.d.ts.map +0 -1
- package/lib/services/auth/auth.service.d.ts.map +0 -1
- package/lib/services/auth/index.d.ts.map +0 -1
- package/lib/services/auth/jwt.service.d.ts.map +0 -1
- package/lib/services/bank/bank-account-calculation.service.d.ts.map +0 -1
- package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +0 -1
- package/lib/services/bank/index.d.ts.map +0 -1
- package/lib/services/data.service.d.ts.map +0 -1
- package/lib/services/event/event-dispatcher.service.d.ts.map +0 -1
- package/lib/services/event/index.d.ts.map +0 -1
- package/lib/services/event/sse.service.d.ts.map +0 -1
- package/lib/services/export/export-formatter.service.d.ts.map +0 -1
- package/lib/services/export/index.d.ts.map +0 -1
- package/lib/services/header-title/header-title.service.d.ts.map +0 -1
- package/lib/services/header-title/index.d.ts.map +0 -1
- package/lib/services/http/address/address.service.d.ts.map +0 -1
- package/lib/services/http/address/index.d.ts.map +0 -1
- package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +0 -1
- package/lib/services/http/bank/bank-account/index.d.ts.map +0 -1
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts.map +0 -1
- package/lib/services/http/bank/bank-connection/index.d.ts.map +0 -1
- package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +0 -1
- package/lib/services/http/bank/bank-transaction/index.d.ts.map +0 -1
- package/lib/services/http/bank/bank.service.d.ts.map +0 -1
- package/lib/services/http/bank/basiq/basiq-token.service.d.ts.map +0 -1
- package/lib/services/http/bank/basiq/basiq.service.d.ts.map +0 -1
- package/lib/services/http/bank/basiq/index.d.ts.map +0 -1
- package/lib/services/http/bank/index.d.ts.map +0 -1
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +0 -1
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +0 -1
- package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +0 -1
- package/lib/services/http/chart-accounts/index.d.ts.map +0 -1
- package/lib/services/http/chat/chat.service.d.ts.map +0 -1
- package/lib/services/http/chat/index.d.ts.map +0 -1
- package/lib/services/http/chat/message-document.service.d.ts.map +0 -1
- package/lib/services/http/chat/message.service.d.ts.map +0 -1
- package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts.map +0 -1
- package/lib/services/http/client/index.d.ts.map +0 -1
- package/lib/services/http/client/occupation/occupation.service.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation-receipt/index.d.ts.map +0 -1
- package/lib/services/http/depreciation/depreciation.service.d.ts.map +0 -1
- package/lib/services/http/depreciation/index.d.ts.map +0 -1
- package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +0 -1
- package/lib/services/http/document/document.service.d.ts.map +0 -1
- package/lib/services/http/document/index.d.ts.map +0 -1
- package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +0 -1
- package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +0 -1
- package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +0 -1
- package/lib/services/http/facebook/facebook.service.d.ts.map +0 -1
- package/lib/services/http/facebook/index.d.ts.map +0 -1
- package/lib/services/http/file/file.service.d.ts.map +0 -1
- package/lib/services/http/file/index.d.ts.map +0 -1
- package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +0 -1
- package/lib/services/http/firm/client-income/index.d.ts.map +0 -1
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +0 -1
- package/lib/services/http/firm/client-invite/index.d.ts.map +0 -1
- package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +0 -1
- package/lib/services/http/firm/client-movement/index.d.ts.map +0 -1
- package/lib/services/http/firm/employee/employee.service.d.ts.map +0 -1
- package/lib/services/http/firm/employee/index.d.ts.map +0 -1
- package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +0 -1
- package/lib/services/http/firm/employee-invite/index.d.ts.map +0 -1
- package/lib/services/http/firm/firm.service.d.ts.map +0 -1
- package/lib/services/http/firm/index.d.ts.map +0 -1
- package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +0 -1
- package/lib/services/http/firm/portfolio-report/index.d.ts.map +0 -1
- package/lib/services/http/google/google.service.d.ts.map +0 -1
- package/lib/services/http/google/index.d.ts.map +0 -1
- package/lib/services/http/holding/holding-messages.enum.d.ts.map +0 -1
- package/lib/services/http/holding/holding-sale-messages.enum.d.ts.map +0 -1
- package/lib/services/http/holding/holding-sale.service.d.ts.map +0 -1
- package/lib/services/http/holding/holding-type-messages.enum.d.ts.map +0 -1
- package/lib/services/http/holding/holding-type.service.d.ts.map +0 -1
- package/lib/services/http/holding/holding.service.d.ts.map +0 -1
- package/lib/services/http/holding/index.d.ts.map +0 -1
- package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +0 -1
- package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +0 -1
- package/lib/services/http/income-source/income-source.service.d.ts.map +0 -1
- package/lib/services/http/income-source/index.d.ts.map +0 -1
- package/lib/services/http/income-source/salary-forecast/index.d.ts.map +0 -1
- package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +0 -1
- package/lib/services/http/income-source/sole-forecast/index.d.ts.map +0 -1
- package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +0 -1
- package/lib/services/http/index.d.ts.map +0 -1
- package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +0 -1
- package/lib/services/http/loan/borrowing-expense/index.d.ts.map +0 -1
- package/lib/services/http/loan/index.d.ts.map +0 -1
- package/lib/services/http/loan/loan.service.d.ts.map +0 -1
- package/lib/services/http/property/index.d.ts.map +0 -1
- package/lib/services/http/property/property-category/index.d.ts.map +0 -1
- package/lib/services/http/property/property-category/property-category.service.d.ts.map +0 -1
- package/lib/services/http/property/property-category-movement/index.d.ts.map +0 -1
- package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +0 -1
- package/lib/services/http/property/property-document/index.d.ts.map +0 -1
- package/lib/services/http/property/property-document/property-document.service.d.ts.map +0 -1
- package/lib/services/http/property/property-sale/index.d.ts.map +0 -1
- package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +0 -1
- package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts.map +0 -1
- package/lib/services/http/property/property-share/index.d.ts.map +0 -1
- package/lib/services/http/property/property-share/property-share.service.d.ts.map +0 -1
- package/lib/services/http/property/property.service.d.ts.map +0 -1
- package/lib/services/http/receipt/index.d.ts.map +0 -1
- package/lib/services/http/receipt/receipt.service.d.ts.map +0 -1
- package/lib/services/http/rest/http-method.type.d.ts.map +0 -1
- package/lib/services/http/rest/index.d.ts.map +0 -1
- package/lib/services/http/rest/rest-method.type.d.ts.map +0 -1
- package/lib/services/http/rest/rest-old.service.d.ts.map +0 -1
- package/lib/services/http/rest/rest.service.d.ts.map +0 -1
- package/lib/services/http/service-notification/index.d.ts.map +0 -1
- package/lib/services/http/service-notification/service-notification.service.d.ts.map +0 -1
- package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +0 -1
- package/lib/services/http/sole/index.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business/messages.enum.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +0 -1
- package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +0 -1
- package/lib/services/http/subscription/index.d.ts.map +0 -1
- package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +0 -1
- package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +0 -1
- package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +0 -1
- package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +0 -1
- package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +0 -1
- package/lib/services/http/tax-review/index.d.ts.map +0 -1
- package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +0 -1
- package/lib/services/http/tax-review/tax-review.service.d.ts.map +0 -1
- package/lib/services/http/tax-summary/index.d.ts.map +0 -1
- package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +0 -1
- package/lib/services/http/transaction/index.d.ts.map +0 -1
- package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts.map +0 -1
- package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +0 -1
- package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts.map +0 -1
- package/lib/services/http/transaction/transaction.service.d.ts.map +0 -1
- package/lib/services/http/tutorial-video/index.d.ts.map +0 -1
- package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +0 -1
- package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +0 -1
- package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +0 -1
- package/lib/services/http/user/index.d.ts.map +0 -1
- package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +0 -1
- package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +0 -1
- package/lib/services/http/user/user.service.d.ts.map +0 -1
- package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +0 -1
- package/lib/services/http/vehicle/index.d.ts.map +0 -1
- package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +0 -1
- package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +0 -1
- package/lib/services/http/vehicle/vehicle-logbook.service.d.ts.map +0 -1
- package/lib/services/http/vehicle/vehicle.service.d.ts.map +0 -1
- package/lib/services/index.d.ts.map +0 -1
- package/lib/services/intercom/index.d.ts.map +0 -1
- package/lib/services/intercom/intercom.service.d.ts.map +0 -1
- package/lib/services/json/holding/holding-type-exchange.service.d.ts.map +0 -1
- package/lib/services/pdf/index.d.ts.map +0 -1
- package/lib/services/pdf/js-pdf.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +0 -1
- package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +0 -1
- package/lib/services/preloader/index.d.ts.map +0 -1
- package/lib/services/preloader/preloader.service.d.ts.map +0 -1
- package/lib/services/property/corelogic/corelogic.service.d.ts.map +0 -1
- package/lib/services/property/corelogic/index.d.ts.map +0 -1
- package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +0 -1
- package/lib/services/property/equity-position-chart/index.d.ts.map +0 -1
- package/lib/services/property/index.d.ts.map +0 -1
- package/lib/services/property/property-calculation/index.d.ts.map +0 -1
- package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +0 -1
- package/lib/services/report/index.d.ts.map +0 -1
- package/lib/services/report/property/property-transaction-report.service.d.ts.map +0 -1
- package/lib/services/toast/index.d.ts.map +0 -1
- package/lib/services/toast/toast.service.d.ts.map +0 -1
- package/lib/services/transaction/index.d.ts.map +0 -1
- package/lib/services/transaction/transaction-calculation.service.d.ts.map +0 -1
- package/lib/services/user/index.d.ts.map +0 -1
- package/lib/services/user/user-switcher.service.d.ts.map +0 -1
- package/lib/services/vehicle/index.d.ts.map +0 -1
- package/lib/services/vehicle/logbook-best-period.service.d.ts.map +0 -1
- package/lib/services/xlsx/index.d.ts.map +0 -1
- package/lib/services/xlsx/xlsx.service.d.ts.map +0 -1
- package/lib/tt-core.module.d.ts.map +0 -1
- package/lib/validators/address-corelogic.validator.d.ts.map +0 -1
- package/lib/validators/at-least-one-enabled.validator.d.ts.map +0 -1
- package/lib/validators/at-least-one.validator.d.ts.map +0 -1
- package/lib/validators/autocomplete.validator.d.ts.map +0 -1
- package/lib/validators/conditional.validator.d.ts.map +0 -1
- package/lib/validators/current-fin-year.validator.d.ts.map +0 -1
- package/lib/validators/date-range.validator.d.ts.map +0 -1
- package/lib/validators/fields-sum.validator.d.ts.map +0 -1
- package/lib/validators/file.validator.d.ts.map +0 -1
- package/lib/validators/index.d.ts.map +0 -1
- package/lib/validators/min-date/messages.enum.d.ts.map +0 -1
- package/lib/validators/min-date/min-date.validator.d.ts.map +0 -1
- package/lib/validators/password-match.validator.d.ts.map +0 -1
- package/lib/validators/password.validator.d.ts.map +0 -1
- package/lib/validators/phone-number.validator.d.ts.map +0 -1
- package/lib/validators/required-length.validator.d.ts.map +0 -1
- package/lib/validators/transactions-meta-fields.validator.d.ts.map +0 -1
- package/public-api.d.ts.map +0 -1
- package/taxtank-core.d.ts.map +0 -1
|
@@ -25,7 +25,6 @@ import concat from 'lodash/concat';
|
|
|
25
25
|
import cloneDeep$1 from 'lodash/cloneDeep';
|
|
26
26
|
import clone from 'lodash/clone';
|
|
27
27
|
import { EventSourcePolyfill } from 'event-source-polyfill/src/eventsource.min.js';
|
|
28
|
-
import { throwError as throwError$1 } from 'rxjs/internal/observable/throwError';
|
|
29
28
|
import * as i4 from '@angular/router';
|
|
30
29
|
import { NavigationEnd } from '@angular/router';
|
|
31
30
|
import _ from 'lodash';
|
|
@@ -56,9 +55,7 @@ class CorelogicService {
|
|
|
56
55
|
getAccessToken(force = false) {
|
|
57
56
|
if (!this._accessToken || force) {
|
|
58
57
|
this.http.get(`${this.environment.coreLogicUrl}/access/oauth/token?grant_type=client_credentials&client_id=${this.environment.coreLogicId}&client_secret=${this.environment.coreLogicSecret}`)
|
|
59
|
-
.pipe(map((response) =>
|
|
60
|
-
return response.access_token;
|
|
61
|
-
}))
|
|
58
|
+
.pipe(map((response) => response.access_token))
|
|
62
59
|
.subscribe((token) => {
|
|
63
60
|
this._accessToken = token;
|
|
64
61
|
this.accessTokenSubject.next(this._accessToken);
|
|
@@ -69,9 +66,7 @@ class CorelogicService {
|
|
|
69
66
|
getSuggestions(query, country = 'au') {
|
|
70
67
|
// @TODO handle different countries in future
|
|
71
68
|
return this.http.get(`${this.environment.coreLogicUrl}/property/${country}/v2/suggest.json?q=${query}`)
|
|
72
|
-
.pipe(map((response) =>
|
|
73
|
-
return response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item));
|
|
74
|
-
}));
|
|
69
|
+
.pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))));
|
|
75
70
|
}
|
|
76
71
|
}
|
|
77
72
|
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -106,9 +101,7 @@ class CorelogicInterceptor {
|
|
|
106
101
|
return next.handle(request);
|
|
107
102
|
}
|
|
108
103
|
return this.corelogicService.getAccessToken()
|
|
109
|
-
.pipe(mergeMap((token) =>
|
|
110
|
-
return next.handle(this.addToken(request, token));
|
|
111
|
-
}));
|
|
104
|
+
.pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
|
|
112
105
|
}
|
|
113
106
|
addToken(request, token) {
|
|
114
107
|
return request.clone({
|
|
@@ -464,9 +457,7 @@ __decorate([
|
|
|
464
457
|
__decorate([
|
|
465
458
|
Exclude({ toPlainOnly: true }),
|
|
466
459
|
Type(() => Object),
|
|
467
|
-
Transform(({ obj }) =>
|
|
468
|
-
return obj.file;
|
|
469
|
-
})
|
|
460
|
+
Transform(({ obj }) => obj.file)
|
|
470
461
|
], TransactionBase.prototype, "file", void 0);
|
|
471
462
|
__decorate([
|
|
472
463
|
Exclude()
|
|
@@ -1291,7 +1282,6 @@ class ExportableCollection extends Collection {
|
|
|
1291
1282
|
getExportFooter(type) {
|
|
1292
1283
|
return [];
|
|
1293
1284
|
}
|
|
1294
|
-
;
|
|
1295
1285
|
export(type) {
|
|
1296
1286
|
return plainToClass(ExportDataTable, {
|
|
1297
1287
|
header: this.getExportHeader(type),
|
|
@@ -1330,26 +1320,22 @@ class LoanPaymentCollection extends ExportableCollection {
|
|
|
1330
1320
|
];
|
|
1331
1321
|
}
|
|
1332
1322
|
getExportBody() {
|
|
1333
|
-
return this.items.map((payment) =>
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
];
|
|
1343
|
-
});
|
|
1323
|
+
return this.items.map((payment) => [
|
|
1324
|
+
plainToClass(ExportCell, { value: payment.number, type: ExportCellTypeEnum.STRING }),
|
|
1325
|
+
plainToClass(ExportCell, { value: payment.date, type: ExportCellTypeEnum.DATE }),
|
|
1326
|
+
plainToClass(ExportCell, { value: payment.paymentDue, type: ExportCellTypeEnum.CURRENCY }),
|
|
1327
|
+
plainToClass(ExportCell, { value: payment.interestAccrued, type: ExportCellTypeEnum.CURRENCY }),
|
|
1328
|
+
plainToClass(ExportCell, { value: payment.principalPaid, type: ExportCellTypeEnum.CURRENCY }),
|
|
1329
|
+
plainToClass(ExportCell, { value: payment.principalBalance, type: ExportCellTypeEnum.CURRENCY }),
|
|
1330
|
+
plainToClass(ExportCell, { value: payment.payout, type: ExportCellTypeEnum.CURRENCY }),
|
|
1331
|
+
]);
|
|
1344
1332
|
}
|
|
1345
1333
|
get paymentDue() {
|
|
1346
1334
|
return this.sumBy('paymentDue');
|
|
1347
1335
|
}
|
|
1348
1336
|
getByFinYear(finYear = new FinancialYear()) {
|
|
1349
|
-
return this.filter((payment) =>
|
|
1350
|
-
|
|
1351
|
-
new Date(payment.date) <= finYear.endDate;
|
|
1352
|
-
});
|
|
1337
|
+
return this.filter((payment) => new Date(payment.date) >= finYear.startDate &&
|
|
1338
|
+
new Date(payment.date) <= finYear.endDate);
|
|
1353
1339
|
}
|
|
1354
1340
|
getForCurrentYear() {
|
|
1355
1341
|
return this.getByFinYear(new FinancialYear());
|
|
@@ -1588,9 +1574,7 @@ var ServiceSubscriptionStatusEnum;
|
|
|
1588
1574
|
|
|
1589
1575
|
class MessageCollection extends Collection {
|
|
1590
1576
|
getFirstUnreadMessage(user) {
|
|
1591
|
-
return this.items.find((message) =>
|
|
1592
|
-
return !message.isRead() && message.isFromEmployee() !== user.isEmployee();
|
|
1593
|
-
});
|
|
1577
|
+
return this.items.find((message) => !message.isRead() && message.isFromEmployee() !== user.isEmployee());
|
|
1594
1578
|
}
|
|
1595
1579
|
/**
|
|
1596
1580
|
* Get List of unread chats
|
|
@@ -1791,9 +1775,7 @@ class PropertyCollection extends Collection {
|
|
|
1791
1775
|
return new PropertyCollection(this.items.filter((property) => property.category.isOwnerOccupied()));
|
|
1792
1776
|
}
|
|
1793
1777
|
get earliestContractDate() {
|
|
1794
|
-
return this.items.reduce((min, property) =>
|
|
1795
|
-
return min < property.contractDate ? min : property.contractDate;
|
|
1796
|
-
}, new FinancialYear(new Date()).startDate);
|
|
1778
|
+
return this.items.reduce((min, property) => min < property.contractDate ? min : property.contractDate, new FinancialYear(new Date()).startDate);
|
|
1797
1779
|
}
|
|
1798
1780
|
/**
|
|
1799
1781
|
* Get list of unique property categories from collection
|
|
@@ -1805,9 +1787,7 @@ class PropertyCollection extends Collection {
|
|
|
1805
1787
|
* Get property with the highest growth percent
|
|
1806
1788
|
*/
|
|
1807
1789
|
getBestPerformanceGrowthProperty() {
|
|
1808
|
-
return this.items.reduce((max, current) =>
|
|
1809
|
-
return max.growthPercent < current.growthPercent ? current : max;
|
|
1810
|
-
}, this.first);
|
|
1790
|
+
return this.items.reduce((max, current) => max.growthPercent < current.growthPercent ? current : max, this.first);
|
|
1811
1791
|
}
|
|
1812
1792
|
/**
|
|
1813
1793
|
* Get property with the lowest tax position
|
|
@@ -1847,9 +1827,7 @@ class PropertyCategoryMovementCollection extends Collection {
|
|
|
1847
1827
|
*/
|
|
1848
1828
|
getByForecast(property, forecast) {
|
|
1849
1829
|
const financialYear = new FinancialYear(forecast.financialYear);
|
|
1850
|
-
return this.filterBy('property.id', property.id).filter((movement) =>
|
|
1851
|
-
return movement.fromDate <= financialYear.endDate && !movement.toDate || movement.toDate >= financialYear.startDate;
|
|
1852
|
-
});
|
|
1830
|
+
return this.filterBy('property.id', property.id).filter((movement) => movement.fromDate <= financialYear.endDate && !movement.toDate || movement.toDate >= financialYear.startDate);
|
|
1853
1831
|
}
|
|
1854
1832
|
hasCategory(categoryId) {
|
|
1855
1833
|
return !!this.findBy('propertyCategory.id', categoryId);
|
|
@@ -1863,10 +1841,7 @@ class PropertyShareCollection extends Collection {
|
|
|
1863
1841
|
* @TODO Alex: rename
|
|
1864
1842
|
*/
|
|
1865
1843
|
getIncoming() {
|
|
1866
|
-
return this.filter((propertyShare) => {
|
|
1867
|
-
var _a;
|
|
1868
|
-
return ((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId');
|
|
1869
|
-
});
|
|
1844
|
+
return this.filter((propertyShare) => { var _a; return ((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId'); });
|
|
1870
1845
|
}
|
|
1871
1846
|
/**
|
|
1872
1847
|
* Get list of outcoming property shares
|
|
@@ -3280,7 +3255,6 @@ class SoleForecast extends SoleForecast$1 {
|
|
|
3280
3255
|
get netPay() {
|
|
3281
3256
|
return this.amount;
|
|
3282
3257
|
}
|
|
3283
|
-
;
|
|
3284
3258
|
}
|
|
3285
3259
|
__decorate([
|
|
3286
3260
|
Type(() => IncomeSource)
|
|
@@ -3472,33 +3446,23 @@ __decorate([
|
|
|
3472
3446
|
Type(() => ChartAccounts)
|
|
3473
3447
|
// @TODO Alex: Create custom decorator for this transform
|
|
3474
3448
|
,
|
|
3475
|
-
Transform(({ value }) => {
|
|
3476
|
-
return { id: value.id };
|
|
3477
|
-
}, { toPlainOnly: true })
|
|
3449
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
3478
3450
|
], AllocationRuleTransaction.prototype, "chartAccounts", void 0);
|
|
3479
3451
|
__decorate([
|
|
3480
3452
|
Type(() => Property),
|
|
3481
|
-
Transform(({ value }) => {
|
|
3482
|
-
return value ? { id: value.id } : null;
|
|
3483
|
-
}, { toPlainOnly: true })
|
|
3453
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3484
3454
|
], AllocationRuleTransaction.prototype, "property", void 0);
|
|
3485
3455
|
__decorate([
|
|
3486
3456
|
Type(() => Loan),
|
|
3487
|
-
Transform(({ value }) => {
|
|
3488
|
-
return value ? { id: value.id } : null;
|
|
3489
|
-
}, { toPlainOnly: true })
|
|
3457
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3490
3458
|
], AllocationRuleTransaction.prototype, "loan", void 0);
|
|
3491
3459
|
__decorate([
|
|
3492
3460
|
Type(() => IncomeSource),
|
|
3493
|
-
Transform(({ value }) => {
|
|
3494
|
-
return value ? { id: value.id } : null;
|
|
3495
|
-
}, { toPlainOnly: true })
|
|
3461
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3496
3462
|
], AllocationRuleTransaction.prototype, "incomeSource", void 0);
|
|
3497
3463
|
__decorate([
|
|
3498
3464
|
Type(() => SoleBusiness),
|
|
3499
|
-
Transform(({ value }) => {
|
|
3500
|
-
return value ? { id: value.id } : null;
|
|
3501
|
-
}, { toPlainOnly: true })
|
|
3465
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3502
3466
|
], AllocationRuleTransaction.prototype, "business", void 0);
|
|
3503
3467
|
__decorate([
|
|
3504
3468
|
Type(() => AllocationRuleTransactionMetaField)
|
|
@@ -3575,7 +3539,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3575
3539
|
* Rule is matched when all conditions matched
|
|
3576
3540
|
*/
|
|
3577
3541
|
checkAnd(bankTransaction) {
|
|
3578
|
-
for (
|
|
3542
|
+
for (const condition of this.conditions) {
|
|
3579
3543
|
if (!condition.matchBankTransaction(bankTransaction)) {
|
|
3580
3544
|
return false;
|
|
3581
3545
|
}
|
|
@@ -3586,7 +3550,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3586
3550
|
* Rule is matched when at least one condition matched
|
|
3587
3551
|
*/
|
|
3588
3552
|
checkOr(bankTransaction) {
|
|
3589
|
-
for (
|
|
3553
|
+
for (const condition of this.conditions) {
|
|
3590
3554
|
if (condition.matchBankTransaction(bankTransaction)) {
|
|
3591
3555
|
return true;
|
|
3592
3556
|
}
|
|
@@ -3618,7 +3582,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3618
3582
|
}
|
|
3619
3583
|
__decorate([
|
|
3620
3584
|
Type(() => BankAccount),
|
|
3621
|
-
Transform(({ value }) => {
|
|
3585
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
3622
3586
|
], AllocationRule.prototype, "bankAccount", void 0);
|
|
3623
3587
|
__decorate([
|
|
3624
3588
|
Type(() => AllocationRuleCondition)
|
|
@@ -4012,12 +3976,8 @@ class PropertyEquityChartData {
|
|
|
4012
3976
|
const items = this.list.filter((item) => item.year <= this.currentYear);
|
|
4013
3977
|
items.forEach((item) => {
|
|
4014
3978
|
// increase item values with property actual forecasts for item year
|
|
4015
|
-
item.marketValue = this.properties.items.reduce((sum, property) =>
|
|
4016
|
-
|
|
4017
|
-
}, 0);
|
|
4018
|
-
item.loanBalance = Math.abs(this.properties.items.reduce((sum, property) => {
|
|
4019
|
-
return sum + this.getLoanBalanceForPropertyByYear(property, item.year);
|
|
4020
|
-
}, 0));
|
|
3979
|
+
item.marketValue = this.properties.items.reduce((sum, property) => sum + this.getMarketValueForPropertyByYear(property, item.year), 0);
|
|
3980
|
+
item.loanBalance = Math.abs(this.properties.items.reduce((sum, property) => sum + this.getLoanBalanceForPropertyByYear(property, item.year), 0));
|
|
4021
3981
|
});
|
|
4022
3982
|
}
|
|
4023
3983
|
/**
|
|
@@ -4027,9 +3987,7 @@ class PropertyEquityChartData {
|
|
|
4027
3987
|
buildActualItem() {
|
|
4028
3988
|
const item = this.list.find((i) => i.year === this.currentYear);
|
|
4029
3989
|
item.marketValue = this.properties.marketValue;
|
|
4030
|
-
item.loanBalance = this.properties.items.reduce((sum, property) =>
|
|
4031
|
-
return sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id));
|
|
4032
|
-
}, 0);
|
|
3990
|
+
item.loanBalance = this.properties.items.reduce((sum, property) => sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id)), 0);
|
|
4033
3991
|
}
|
|
4034
3992
|
/**
|
|
4035
3993
|
* collect equity position items with forecasted (future) calculated values
|
|
@@ -4061,10 +4019,7 @@ class PropertyEquityChartData {
|
|
|
4061
4019
|
* @private
|
|
4062
4020
|
*/
|
|
4063
4021
|
getLoanBalanceByYear(property, year, bankAccounts, loans) {
|
|
4064
|
-
return bankAccounts.items.reduce((totalSum, bankAccount) => {
|
|
4065
|
-
var _a, _b;
|
|
4066
|
-
return totalSum + (bankAccount.getPropertyPercentage(property.id) * (((_b = (_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.getLastPaymentByYear(year)) === null || _b === void 0 ? void 0 : _b.totalOwed) || 0));
|
|
4067
|
-
}, 0);
|
|
4022
|
+
return bankAccounts.items.reduce((totalSum, bankAccount) => { var _a, _b; return totalSum + (bankAccount.getPropertyPercentage(property.id) * (((_b = (_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.getLastPaymentByYear(year)) === null || _b === void 0 ? void 0 : _b.totalOwed) || 0)); }, 0);
|
|
4068
4023
|
}
|
|
4069
4024
|
getMarketValueForPropertyByYear(property, year) {
|
|
4070
4025
|
if (new FinancialYear(property.contractDate).year > year) {
|
|
@@ -5102,9 +5057,7 @@ class Transaction extends Transaction$1 {
|
|
|
5102
5057
|
*/
|
|
5103
5058
|
getMetaFieldValue(field) {
|
|
5104
5059
|
var _a;
|
|
5105
|
-
return +((_a = this.metaFields.find((transactionMetaField) =>
|
|
5106
|
-
return transactionMetaField.chartAccountsMetaField.id === field;
|
|
5107
|
-
})) === null || _a === void 0 ? void 0 : _a.value) || 0;
|
|
5060
|
+
return +((_a = this.metaFields.find((transactionMetaField) => transactionMetaField.chartAccountsMetaField.id === field)) === null || _a === void 0 ? void 0 : _a.value) || 0;
|
|
5108
5061
|
}
|
|
5109
5062
|
isCash() {
|
|
5110
5063
|
return this.source === TransactionSourceEnum.CASH;
|
|
@@ -5298,9 +5251,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
5298
5251
|
* @TODO Vik: Research a problem with depreciations without current year forecast
|
|
5299
5252
|
*/
|
|
5300
5253
|
get currentYearForecast() {
|
|
5301
|
-
return this.forecasts.find((forecast) => {
|
|
5302
|
-
return forecast.financialYear === new FinancialYear().year;
|
|
5303
|
-
}) || plainToClass(DepreciationForecast, {
|
|
5254
|
+
return this.forecasts.find((forecast) => forecast.financialYear === new FinancialYear().year) || plainToClass(DepreciationForecast, {
|
|
5304
5255
|
financialYear: new FinancialYear().year,
|
|
5305
5256
|
openBalance: 0,
|
|
5306
5257
|
closeBalance: 0,
|
|
@@ -5309,9 +5260,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
5309
5260
|
});
|
|
5310
5261
|
}
|
|
5311
5262
|
getForecastByYear(year) {
|
|
5312
|
-
return this.forecasts.find((forecast) =>
|
|
5313
|
-
return forecast.financialYear === year;
|
|
5314
|
-
});
|
|
5263
|
+
return this.forecasts.find((forecast) => forecast.financialYear === year);
|
|
5315
5264
|
}
|
|
5316
5265
|
getClaimAmountByYear(year) {
|
|
5317
5266
|
var _a;
|
|
@@ -5461,14 +5410,10 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5461
5410
|
return this.sumBy('amount');
|
|
5462
5411
|
}
|
|
5463
5412
|
getUnallocated(allocations) {
|
|
5464
|
-
return new TransactionCollection(this.items.filter((transaction) =>
|
|
5465
|
-
return !transaction.isAllocated(allocations);
|
|
5466
|
-
}));
|
|
5413
|
+
return new TransactionCollection(this.items.filter((transaction) => !transaction.isAllocated(allocations)));
|
|
5467
5414
|
}
|
|
5468
5415
|
getUnallocatedAmount(allocations) {
|
|
5469
|
-
return this.items.reduce((sum, transaction) =>
|
|
5470
|
-
return sum + transaction.getUnallocatedAmount(allocations.filterBy('transaction.id', transaction.id));
|
|
5471
|
-
}, 0);
|
|
5416
|
+
return this.items.reduce((sum, transaction) => sum + transaction.getUnallocatedAmount(allocations.filterBy('transaction.id', transaction.id)), 0);
|
|
5472
5417
|
}
|
|
5473
5418
|
/**
|
|
5474
5419
|
* get date of the last transaction
|
|
@@ -5528,10 +5473,7 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5528
5473
|
* @param ids Ids of properties for filter
|
|
5529
5474
|
*/
|
|
5530
5475
|
getByPropertiesIds(ids) {
|
|
5531
|
-
return new TransactionCollection(this.items.filter((transaction) => {
|
|
5532
|
-
var _a;
|
|
5533
|
-
return ids.includes((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id);
|
|
5534
|
-
}));
|
|
5476
|
+
return new TransactionCollection(this.items.filter((transaction) => { var _a; return ids.includes((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id); }));
|
|
5535
5477
|
}
|
|
5536
5478
|
/**
|
|
5537
5479
|
* Get new collection filtered by income source id
|
|
@@ -5566,9 +5508,7 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5566
5508
|
* Get transactions related to Vehicle category
|
|
5567
5509
|
*/
|
|
5568
5510
|
getVehicleTransactions() {
|
|
5569
|
-
return this.create(this.items.filter((transaction) =>
|
|
5570
|
-
return transaction.isVehicleTransaction();
|
|
5571
|
-
}));
|
|
5511
|
+
return this.create(this.items.filter((transaction) => transaction.isVehicleTransaction()));
|
|
5572
5512
|
}
|
|
5573
5513
|
/**
|
|
5574
5514
|
* Get new transaction collection filtered by tank type
|
|
@@ -5600,14 +5540,12 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5600
5540
|
];
|
|
5601
5541
|
}
|
|
5602
5542
|
getExportBody() {
|
|
5603
|
-
return this.items.map((transaction) =>
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
];
|
|
5610
|
-
});
|
|
5543
|
+
return this.items.map((transaction) => [
|
|
5544
|
+
plainToClass(ExportCell, { value: transaction.date, type: ExportCellTypeEnum.DATE }),
|
|
5545
|
+
plainToClass(ExportCell, { value: transaction.description, type: ExportCellTypeEnum.STRING }),
|
|
5546
|
+
plainToClass(ExportCell, { value: transaction.debit, type: ExportCellTypeEnum.CURRENCY }),
|
|
5547
|
+
plainToClass(ExportCell, { value: transaction.credit, type: ExportCellTypeEnum.CURRENCY })
|
|
5548
|
+
]);
|
|
5611
5549
|
}
|
|
5612
5550
|
/**
|
|
5613
5551
|
* Get list of vehicle transactions filtered by vehicle claim
|
|
@@ -5727,29 +5665,19 @@ class DepreciationCollection extends Collection {
|
|
|
5727
5665
|
return this.items.reduce((sum, depreciation) => sum + depreciation.amount, 0);
|
|
5728
5666
|
}
|
|
5729
5667
|
get claimAmount() {
|
|
5730
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5731
|
-
return sum + depreciation.currentYearForecast.claimAmount;
|
|
5732
|
-
}, 0);
|
|
5668
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.claimAmount, 0);
|
|
5733
5669
|
}
|
|
5734
5670
|
getClaimedAmountByYear(year = +localStorage.getItem('financialYear')) {
|
|
5735
|
-
return +Math.round(this.amount - this.items.reduce((sum, depreciation) =>
|
|
5736
|
-
return sum + depreciation.getCloseBalanceByYear(year);
|
|
5737
|
-
}, 0)).toFixed(2);
|
|
5671
|
+
return +Math.round(this.amount - this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0)).toFixed(2);
|
|
5738
5672
|
}
|
|
5739
5673
|
getClaimAmountByYear(year = +localStorage.getItem('financialYear')) {
|
|
5740
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5741
|
-
return sum + depreciation.getClaimAmountByYear(year);
|
|
5742
|
-
}, 0);
|
|
5674
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.getClaimAmountByYear(year), 0);
|
|
5743
5675
|
}
|
|
5744
5676
|
getCloseBalanceByYear(year = +localStorage.getItem('financialYear')) {
|
|
5745
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5746
|
-
return sum + depreciation.getCloseBalanceByYear(year);
|
|
5747
|
-
}, 0);
|
|
5677
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0);
|
|
5748
5678
|
}
|
|
5749
5679
|
getCurrentYearForecastAmount() {
|
|
5750
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5751
|
-
return sum + depreciation.currentYearForecast.amount;
|
|
5752
|
-
}, 0);
|
|
5680
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.amount, 0);
|
|
5753
5681
|
}
|
|
5754
5682
|
get closeBalance() {
|
|
5755
5683
|
return this.sumBy('currentYearForecast.closeBalance');
|
|
@@ -5791,9 +5719,7 @@ class DepreciationCollection extends Collection {
|
|
|
5791
5719
|
return this.filter((depreciation) => depreciation.isSBP());
|
|
5792
5720
|
}
|
|
5793
5721
|
getCapitalProjects() {
|
|
5794
|
-
return uniqBy(compact(this.items.map((depreciation) =>
|
|
5795
|
-
return depreciation.depreciationCapitalProject;
|
|
5796
|
-
})), 'id');
|
|
5722
|
+
return uniqBy(compact(this.items.map((depreciation) => depreciation.depreciationCapitalProject)), 'id');
|
|
5797
5723
|
}
|
|
5798
5724
|
/**
|
|
5799
5725
|
* Get a new collection of depreciations related to vehicles
|
|
@@ -5872,9 +5798,7 @@ class DepreciationReportItemCollection extends DepreciationCollection {
|
|
|
5872
5798
|
* Create new collection from provided depreciations list
|
|
5873
5799
|
*/
|
|
5874
5800
|
static fromDepreciations(deprectiations) {
|
|
5875
|
-
return new DepreciationReportItemCollection(deprectiations.map((depreciation) =>
|
|
5876
|
-
return plainToClass(DepreciationReportItem, depreciation);
|
|
5877
|
-
}));
|
|
5801
|
+
return new DepreciationReportItemCollection(deprectiations.map((depreciation) => plainToClass(DepreciationReportItem, depreciation)));
|
|
5878
5802
|
}
|
|
5879
5803
|
}
|
|
5880
5804
|
|
|
@@ -6007,9 +5931,7 @@ class VehicleExpenseCollection extends Collection {
|
|
|
6007
5931
|
setItems(transactions, depreciations, vehicleClaim) {
|
|
6008
5932
|
this.items = [];
|
|
6009
5933
|
const transactionsByChartAccounts = new CollectionDictionary(transactions, 'chartAccounts.name');
|
|
6010
|
-
const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) =>
|
|
6011
|
-
return new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName);
|
|
6012
|
-
});
|
|
5934
|
+
const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) => new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName));
|
|
6013
5935
|
// group all depreciations into one expense item
|
|
6014
5936
|
const depreciationExpense = new VehicleExpense(depreciations.getCurrentYearForecastAmount(), vehicleClaim.workUsage, 'Depreciation');
|
|
6015
5937
|
this.items.push(...[depreciationExpense, ...transactionExpenses]);
|
|
@@ -6225,14 +6147,10 @@ class ServiceSubscriptionCollection extends Collection {
|
|
|
6225
6147
|
return dictionary;
|
|
6226
6148
|
}
|
|
6227
6149
|
findByProduct(product) {
|
|
6228
|
-
return this.find((subscription) =>
|
|
6229
|
-
return !!subscription.items.find((item) => item.price.product.id === product.id);
|
|
6230
|
-
});
|
|
6150
|
+
return this.find((subscription) => !!subscription.items.find((item) => item.price.product.id === product.id));
|
|
6231
6151
|
}
|
|
6232
6152
|
filterByProduct(product) {
|
|
6233
|
-
return this.filter((subscription) =>
|
|
6234
|
-
return !!subscription.items.find((item) => item.price.product.id === product.id);
|
|
6235
|
-
});
|
|
6153
|
+
return this.filter((subscription) => !!subscription.items.find((item) => item.price.product.id === product.id));
|
|
6236
6154
|
}
|
|
6237
6155
|
hasPropertyTank() {
|
|
6238
6156
|
return !!this.getItems().propertiesItem;
|
|
@@ -6248,8 +6166,8 @@ class ReportItemCollection extends Collection {
|
|
|
6248
6166
|
* Search items which has details
|
|
6249
6167
|
*/
|
|
6250
6168
|
getBySection(section) {
|
|
6251
|
-
|
|
6252
|
-
for (
|
|
6169
|
+
const result = [];
|
|
6170
|
+
for (const reportItem of this.items) {
|
|
6253
6171
|
if ((reportItem.details.length || reportItem.amount) && reportItem.taxReturnCategory.section === section) {
|
|
6254
6172
|
result.push(reportItem);
|
|
6255
6173
|
}
|
|
@@ -6260,8 +6178,8 @@ class ReportItemCollection extends Collection {
|
|
|
6260
6178
|
return this.create(result);
|
|
6261
6179
|
}
|
|
6262
6180
|
getByCategory(categoryId) {
|
|
6263
|
-
|
|
6264
|
-
for (
|
|
6181
|
+
const result = [];
|
|
6182
|
+
for (const reportItem of this.items) {
|
|
6265
6183
|
if (reportItem.taxReturnCategory.id === categoryId) {
|
|
6266
6184
|
result.push(reportItem);
|
|
6267
6185
|
}
|
|
@@ -6276,7 +6194,7 @@ class ReportItemCollection extends Collection {
|
|
|
6276
6194
|
*/
|
|
6277
6195
|
findByCategory(categoryId) {
|
|
6278
6196
|
let result;
|
|
6279
|
-
for (
|
|
6197
|
+
for (const reportItem of this.items) {
|
|
6280
6198
|
if (result) {
|
|
6281
6199
|
break;
|
|
6282
6200
|
}
|
|
@@ -6325,8 +6243,8 @@ class ReportItemCollection extends Collection {
|
|
|
6325
6243
|
* @TODO Alex: consider to create and move to ReportItemDetailsCollection
|
|
6326
6244
|
*/
|
|
6327
6245
|
getDetailsByIncomeSource(incomeSource) {
|
|
6328
|
-
|
|
6329
|
-
for (
|
|
6246
|
+
const result = [];
|
|
6247
|
+
for (const reportItem of this.items) {
|
|
6330
6248
|
if (reportItem.details.length) {
|
|
6331
6249
|
result.push(...reportItem.details.filter((details) => details.name === incomeSource.name));
|
|
6332
6250
|
}
|
|
@@ -6684,46 +6602,32 @@ class BankAccountCollection extends Collection {
|
|
|
6684
6602
|
*/
|
|
6685
6603
|
getInitialLoanAmount() {
|
|
6686
6604
|
return this.getByType(TYPE_LOAN)
|
|
6687
|
-
.reduce((sum, bankAccount) =>
|
|
6688
|
-
return sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0;
|
|
6689
|
-
}, 0);
|
|
6605
|
+
.reduce((sum, bankAccount) => sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0, 0);
|
|
6690
6606
|
}
|
|
6691
6607
|
/**
|
|
6692
6608
|
* get amount of current loans
|
|
6693
6609
|
*/
|
|
6694
6610
|
getCurrentLoanAmount() {
|
|
6695
6611
|
return this.getByType(TYPE_LOAN)
|
|
6696
|
-
.reduce((sum, bankAccount) =>
|
|
6697
|
-
return sum += bankAccount.currentBalance;
|
|
6698
|
-
}, 0);
|
|
6612
|
+
.reduce((sum, bankAccount) => sum += bankAccount.currentBalance, 0);
|
|
6699
6613
|
}
|
|
6700
6614
|
/**
|
|
6701
6615
|
* get collection filtered by property id
|
|
6702
6616
|
*/
|
|
6703
6617
|
getByPropertyId(id) {
|
|
6704
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6705
|
-
return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
|
|
6706
|
-
return bankAccountProperty.property.id === id;
|
|
6707
|
-
});
|
|
6708
|
-
}));
|
|
6618
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.bankAccountProperties.find((bankAccountProperty) => bankAccountProperty.property.id === id)));
|
|
6709
6619
|
}
|
|
6710
6620
|
/**
|
|
6711
6621
|
* get collection filtered by properties ids
|
|
6712
6622
|
*/
|
|
6713
6623
|
getByPropertiesIds(ids) {
|
|
6714
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6715
|
-
return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
|
|
6716
|
-
return ids.includes(bankAccountProperty.property.id);
|
|
6717
|
-
});
|
|
6718
|
-
}));
|
|
6624
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.bankAccountProperties.find((bankAccountProperty) => ids.includes(bankAccountProperty.property.id))));
|
|
6719
6625
|
}
|
|
6720
6626
|
/**
|
|
6721
6627
|
* get collection of active bank accounts
|
|
6722
6628
|
*/
|
|
6723
6629
|
getActiveBankAccounts() {
|
|
6724
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6725
|
-
return bankAccount.isActive();
|
|
6726
|
-
}));
|
|
6630
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isActive()));
|
|
6727
6631
|
}
|
|
6728
6632
|
/**
|
|
6729
6633
|
* get reduction of loan (reduction of principle) percentage
|
|
@@ -6773,22 +6677,16 @@ class BankAccountCollection extends Collection {
|
|
|
6773
6677
|
* Get list of all bank account properties
|
|
6774
6678
|
*/
|
|
6775
6679
|
getBankAccountPropertiesList() {
|
|
6776
|
-
return flatten(this.items.map((bankAccount) =>
|
|
6777
|
-
return bankAccount.bankAccountProperties;
|
|
6778
|
-
}));
|
|
6680
|
+
return flatten(this.items.map((bankAccount) => bankAccount.bankAccountProperties));
|
|
6779
6681
|
}
|
|
6780
6682
|
/**
|
|
6781
6683
|
* Get lis of unique properties from all bank accounts properties
|
|
6782
6684
|
*/
|
|
6783
6685
|
getProperties() {
|
|
6784
|
-
return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) =>
|
|
6785
|
-
return bankAccountProperty.property;
|
|
6786
|
-
}), 'id');
|
|
6686
|
+
return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) => bankAccountProperty.property), 'id');
|
|
6787
6687
|
}
|
|
6788
6688
|
getPropertyBalanceAmount(propertyId) {
|
|
6789
|
-
return this.items.reduce((sum, bankAccount) =>
|
|
6790
|
-
return sum + bankAccount.getPropertyBalanceAmount(propertyId);
|
|
6791
|
-
}, 0);
|
|
6689
|
+
return this.items.reduce((sum, bankAccount) => sum + bankAccount.getPropertyBalanceAmount(propertyId), 0);
|
|
6792
6690
|
}
|
|
6793
6691
|
getOwn() {
|
|
6794
6692
|
// TODO Alex/Vik: maybe we should get it from jwtToken or think about some localStorageService?
|
|
@@ -6866,10 +6764,8 @@ class BankTransactionCollection extends Collection {
|
|
|
6866
6764
|
* Find Bank Transaction available for transfer
|
|
6867
6765
|
*/
|
|
6868
6766
|
findTransfer(bankTransaction) {
|
|
6869
|
-
return this.items.find((item) =>
|
|
6870
|
-
|
|
6871
|
-
Math.abs(bankTransaction.date.getTime() - item.date.getTime()) < TRANSACTION_TRANSFER_DELAY;
|
|
6872
|
-
});
|
|
6767
|
+
return this.items.find((item) => item.amount + bankTransaction.amount === 0 &&
|
|
6768
|
+
Math.abs(bankTransaction.date.getTime() - item.date.getTime()) < TRANSACTION_TRANSFER_DELAY);
|
|
6873
6769
|
}
|
|
6874
6770
|
/**
|
|
6875
6771
|
* Group bank transactions by transaction id.
|
|
@@ -7099,12 +6995,10 @@ class TaxReviewCollection extends Collection {
|
|
|
7099
6995
|
*/
|
|
7100
6996
|
getInWork() {
|
|
7101
6997
|
return this.items
|
|
7102
|
-
.filter((taxReview) =>
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
taxReview.isApproved();
|
|
7107
|
-
});
|
|
6998
|
+
.filter((taxReview) => taxReview.isInProgress() ||
|
|
6999
|
+
taxReview.isWaitingForClient() ||
|
|
7000
|
+
taxReview.isWaitingForApproval() ||
|
|
7001
|
+
taxReview.isApproved());
|
|
7108
7002
|
}
|
|
7109
7003
|
/**
|
|
7110
7004
|
* Get percentage of completed reviews of the total review amount
|
|
@@ -7202,7 +7096,7 @@ class ServiceSubscription extends ServiceSubscription$1 {
|
|
|
7202
7096
|
return !!this.stripeId;
|
|
7203
7097
|
}
|
|
7204
7098
|
get initialPrice() {
|
|
7205
|
-
|
|
7099
|
+
const price = this.items.reduce((sum, item) => sum + item.total, 0);
|
|
7206
7100
|
return price;
|
|
7207
7101
|
}
|
|
7208
7102
|
get discountAmount() {
|
|
@@ -7249,14 +7143,10 @@ class ServiceSubscription extends ServiceSubscription$1 {
|
|
|
7249
7143
|
return this.items.find((item) => item.price.product.isProperties());
|
|
7250
7144
|
}
|
|
7251
7145
|
hasPropertyTank() {
|
|
7252
|
-
return !!this.items.find((subscriptionItem) =>
|
|
7253
|
-
return subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK);
|
|
7254
|
-
});
|
|
7146
|
+
return !!this.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK));
|
|
7255
7147
|
}
|
|
7256
7148
|
hasWorkTank() {
|
|
7257
|
-
return !!this.items.find((subscriptionItem) =>
|
|
7258
|
-
return subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK);
|
|
7259
|
-
});
|
|
7149
|
+
return !!this.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK));
|
|
7260
7150
|
}
|
|
7261
7151
|
/**
|
|
7262
7152
|
* bought before price updates, active for some time to let customer select a new plan
|
|
@@ -7518,9 +7408,7 @@ class Property extends Property$1 {
|
|
|
7518
7408
|
return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.cashPosition) || 0;
|
|
7519
7409
|
}
|
|
7520
7410
|
get firstForecastYear() {
|
|
7521
|
-
return this.forecasts.reduce((min, forecast) =>
|
|
7522
|
-
return min > forecast.financialYear ? forecast.financialYear : min;
|
|
7523
|
-
}, new FinancialYear().year);
|
|
7411
|
+
return this.forecasts.reduce((min, forecast) => min > forecast.financialYear ? forecast.financialYear : min, new FinancialYear().year);
|
|
7524
7412
|
}
|
|
7525
7413
|
get marketValueGrowth() {
|
|
7526
7414
|
return (this.marketValue - this.purchasePrice) / this.marketValue;
|
|
@@ -7529,9 +7417,7 @@ class Property extends Property$1 {
|
|
|
7529
7417
|
return this.shares.find((share) => share.user.id === +localStorage.getItem('userId'));
|
|
7530
7418
|
}
|
|
7531
7419
|
get actualValuation() {
|
|
7532
|
-
return this.valuations.reduce((maxDateValuation, valuation) =>
|
|
7533
|
-
return maxDateValuation.date > valuation.date ? maxDateValuation : valuation;
|
|
7534
|
-
}, this.valuations[0]);
|
|
7420
|
+
return this.valuations.reduce((maxDateValuation, valuation) => maxDateValuation.date > valuation.date ? maxDateValuation : valuation, this.valuations[0]);
|
|
7535
7421
|
}
|
|
7536
7422
|
get claimPercent() {
|
|
7537
7423
|
return this.currentYearForecast.claimPercent;
|
|
@@ -7937,12 +7823,10 @@ class BankAccountChartData {
|
|
|
7937
7823
|
* set value of pie chart data
|
|
7938
7824
|
*/
|
|
7939
7825
|
getBalancePieChartData() {
|
|
7940
|
-
return this.bankAccounts.map((bankAccount) => {
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
};
|
|
7945
|
-
});
|
|
7826
|
+
return this.bankAccounts.map((bankAccount) => ({
|
|
7827
|
+
name: bankAccount.accountName,
|
|
7828
|
+
data: Math.abs(bankAccount.currentBalance)
|
|
7829
|
+
}));
|
|
7946
7830
|
}
|
|
7947
7831
|
/**
|
|
7948
7832
|
* set value of bar chart data
|
|
@@ -7950,12 +7834,10 @@ class BankAccountChartData {
|
|
|
7950
7834
|
getBalanceBarChartData() {
|
|
7951
7835
|
return [{
|
|
7952
7836
|
name: 'Balance',
|
|
7953
|
-
data: this.bankAccounts.map((bankAccount) => {
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
};
|
|
7958
|
-
})
|
|
7837
|
+
data: this.bankAccounts.map((bankAccount) => ({
|
|
7838
|
+
label: bankAccount.accountName,
|
|
7839
|
+
value: bankAccount.currentBalance
|
|
7840
|
+
}))
|
|
7959
7841
|
}];
|
|
7960
7842
|
}
|
|
7961
7843
|
}
|
|
@@ -8019,9 +7901,7 @@ class BankTransactionChartData {
|
|
|
8019
7901
|
}];
|
|
8020
7902
|
for (const key in MonthNameShortEnum) {
|
|
8021
7903
|
if (MonthNameShortEnum.hasOwnProperty(key)) {
|
|
8022
|
-
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) =>
|
|
8023
|
-
return +bankTransaction.date.getMonth() === +MonthNumberEnum[key];
|
|
8024
|
-
});
|
|
7904
|
+
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => +bankTransaction.date.getMonth() === +MonthNumberEnum[key]);
|
|
8025
7905
|
const cashInForMonth = bankTransactionsForMonth
|
|
8026
7906
|
.filter((bankTransaction) => bankTransaction.isCredit())
|
|
8027
7907
|
.reduce((sum, bankTransaction) => sum += bankTransaction.allocatedAmount, 0);
|
|
@@ -8050,16 +7930,12 @@ class BankTransactionChartData {
|
|
|
8050
7930
|
}];
|
|
8051
7931
|
for (const key in MonthNameShortEnum) {
|
|
8052
7932
|
if (MonthNameShortEnum.hasOwnProperty(key)) {
|
|
8053
|
-
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) =>
|
|
8054
|
-
return +bankTransaction.date.getMonth() === +MonthNumberEnum[key];
|
|
8055
|
-
});
|
|
7933
|
+
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => +bankTransaction.date.getMonth() === +MonthNumberEnum[key]);
|
|
8056
7934
|
const balanceForMonth = bankTransactionsForMonth.reduce((sum, bankTransaction) => {
|
|
8057
7935
|
if (bankTransaction.isCredit()) {
|
|
8058
7936
|
return sum += bankTransaction.allocatedAmount;
|
|
8059
7937
|
}
|
|
8060
|
-
|
|
8061
|
-
return sum -= bankTransaction.allocatedAmount;
|
|
8062
|
-
}
|
|
7938
|
+
return sum -= bankTransaction.allocatedAmount;
|
|
8063
7939
|
}, 0);
|
|
8064
7940
|
chartData[0].data.push({
|
|
8065
7941
|
label: MonthNameShortEnum[key],
|
|
@@ -8507,7 +8383,7 @@ __decorate([
|
|
|
8507
8383
|
class HoldingSale extends AbstractModel {
|
|
8508
8384
|
}
|
|
8509
8385
|
__decorate([
|
|
8510
|
-
Transform(({ value }) => {
|
|
8386
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
8511
8387
|
], HoldingSale.prototype, "holding", void 0);
|
|
8512
8388
|
__decorate([
|
|
8513
8389
|
Type(() => Date)
|
|
@@ -8684,12 +8560,10 @@ class ClientPortfolioChartData {
|
|
|
8684
8560
|
this.clientsPortfolioReportCollection = clientsPortfolioReportCollection;
|
|
8685
8561
|
}
|
|
8686
8562
|
getPieChartData() {
|
|
8687
|
-
return this.clientsPortfolioReportCollection.items.map((clientPortfolioReport) => {
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
});
|
|
8692
|
-
});
|
|
8563
|
+
return this.clientsPortfolioReportCollection.items.map((clientPortfolioReport) => plainToClass(ChartData, {
|
|
8564
|
+
name: clientPortfolioReport.category,
|
|
8565
|
+
data: clientPortfolioReport.count
|
|
8566
|
+
}));
|
|
8693
8567
|
}
|
|
8694
8568
|
getBarChartData() {
|
|
8695
8569
|
return [
|
|
@@ -8958,20 +8832,18 @@ class JwtInterceptor {
|
|
|
8958
8832
|
return this.tokenSubject.pipe(filter(token => token != null), take(1), switchMap(token => next.handle(this.addToken(req))));
|
|
8959
8833
|
// refresh token
|
|
8960
8834
|
}
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
}));
|
|
8974
|
-
}
|
|
8835
|
+
// subsequent requests should wait until refresh token is ready
|
|
8836
|
+
this.isRefreshingToken = true;
|
|
8837
|
+
this.tokenSubject.next(null);
|
|
8838
|
+
return this.authService.refresh(this.jwtService.getRefreshToken()).pipe(switchMap((tokens) => {
|
|
8839
|
+
this.tokenSubject.next(tokens.token);
|
|
8840
|
+
return next.handle(this.addToken(req));
|
|
8841
|
+
}), catchError(() => {
|
|
8842
|
+
this.authService.logoutFront();
|
|
8843
|
+
return throwError(err);
|
|
8844
|
+
}), finalize(() => {
|
|
8845
|
+
this.isRefreshingToken = false;
|
|
8846
|
+
}));
|
|
8975
8847
|
}
|
|
8976
8848
|
/**
|
|
8977
8849
|
* Handle error messages
|
|
@@ -9372,7 +9244,7 @@ class PreloaderInterceptor {
|
|
|
9372
9244
|
}
|
|
9373
9245
|
intercept(request, next) {
|
|
9374
9246
|
const endpoint = this.findEndpoint(`${request.method} ${request.url}`);
|
|
9375
|
-
if (
|
|
9247
|
+
if (endpoint) {
|
|
9376
9248
|
this.preloaderService.add(endpoint);
|
|
9377
9249
|
return next.handle(request).pipe(finalize(() => {
|
|
9378
9250
|
this.preloaderService.delete(endpoint);
|
|
@@ -9449,9 +9321,7 @@ class SseService {
|
|
|
9449
9321
|
this.zone.run(() => observer.next(event));
|
|
9450
9322
|
};
|
|
9451
9323
|
})
|
|
9452
|
-
.pipe(map((messageEvent) =>
|
|
9453
|
-
return JSON.parse(messageEvent.data);
|
|
9454
|
-
}));
|
|
9324
|
+
.pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
|
|
9455
9325
|
}
|
|
9456
9326
|
}
|
|
9457
9327
|
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -9504,7 +9374,6 @@ let RestService$1 = class RestService extends DataService {
|
|
|
9504
9374
|
}
|
|
9505
9375
|
return this.cacheSubject.asObservable();
|
|
9506
9376
|
}
|
|
9507
|
-
;
|
|
9508
9377
|
getSingle() {
|
|
9509
9378
|
this.handleAccessError('get');
|
|
9510
9379
|
return this.get().pipe(map((collection) => collection.first));
|
|
@@ -9597,7 +9466,6 @@ let RestService$1 = class RestService extends DataService {
|
|
|
9597
9466
|
return this.cache;
|
|
9598
9467
|
}));
|
|
9599
9468
|
}
|
|
9600
|
-
;
|
|
9601
9469
|
/**
|
|
9602
9470
|
* Handle response data - update cache and dispatch event if it is needed
|
|
9603
9471
|
*/
|
|
@@ -9843,7 +9711,7 @@ class BankConnectionService extends RestService$1 {
|
|
|
9843
9711
|
if (error.status === 400) {
|
|
9844
9712
|
this.toastService.error('Please enter the login you used before');
|
|
9845
9713
|
}
|
|
9846
|
-
return throwError
|
|
9714
|
+
return throwError(error);
|
|
9847
9715
|
}));
|
|
9848
9716
|
}
|
|
9849
9717
|
/**
|
|
@@ -10056,9 +9924,7 @@ class BasiqTokenInterceptor {
|
|
|
10056
9924
|
if (!request.url.includes(BasiqService.basiqApiUrl)) {
|
|
10057
9925
|
return next.handle(request);
|
|
10058
9926
|
}
|
|
10059
|
-
return this.basiqTokenService.getSingle().pipe(mergeMap((token) =>
|
|
10060
|
-
return next.handle(this.addToken(request, token));
|
|
10061
|
-
}));
|
|
9927
|
+
return this.basiqTokenService.getSingle().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
|
|
10062
9928
|
}
|
|
10063
9929
|
addToken(request, token) {
|
|
10064
9930
|
return request.clone({
|
|
@@ -10171,9 +10037,7 @@ class UserService {
|
|
|
10171
10037
|
*/
|
|
10172
10038
|
search(email) {
|
|
10173
10039
|
return this.http.get(`${this.environment.apiV2}/users/search?email=${email}`)
|
|
10174
|
-
.pipe(map((userBase) =>
|
|
10175
|
-
return plainToClass(User, userBase);
|
|
10176
|
-
}));
|
|
10040
|
+
.pipe(map((userBase) => plainToClass(User, userBase)));
|
|
10177
10041
|
}
|
|
10178
10042
|
/**
|
|
10179
10043
|
* Finish onboarding process
|
|
@@ -11990,9 +11854,7 @@ class AddressService {
|
|
|
11990
11854
|
getCountries() {
|
|
11991
11855
|
if (!this._countries) {
|
|
11992
11856
|
this.http.get(`${this.environment.apiV2}/countries`)
|
|
11993
|
-
.pipe(map((response) =>
|
|
11994
|
-
return response['hydra:member'].map((item) => plainToClass(Country, item));
|
|
11995
|
-
}))
|
|
11857
|
+
.pipe(map((response) => response['hydra:member'].map((item) => plainToClass(Country, item))))
|
|
11996
11858
|
.subscribe((countries) => {
|
|
11997
11859
|
this._countries = countries;
|
|
11998
11860
|
this.countriesSubject.next(countries);
|
|
@@ -12082,16 +11944,13 @@ class BankTransactionService extends RestService$1 {
|
|
|
12082
11944
|
listenEvents() {
|
|
12083
11945
|
this.listenBankTransactionsImport();
|
|
12084
11946
|
}
|
|
12085
|
-
;
|
|
12086
11947
|
/**
|
|
12087
11948
|
* Get list of bank transactions for provided financial year
|
|
12088
11949
|
* @TODO VIK/Alex: consider to use one endpoint to get bank transactions for 2 fin years
|
|
12089
11950
|
*/
|
|
12090
11951
|
getByYear(finYear) {
|
|
12091
11952
|
return this.http.get(`${this.environment.apiV2}/bank-transactions?financialYear=${finYear}`)
|
|
12092
|
-
.pipe(map((bankTransactionsBase) =>
|
|
12093
|
-
return bankTransactionsBase.map((bankTransaction) => plainToClass(BankTransaction, bankTransaction));
|
|
12094
|
-
}));
|
|
11953
|
+
.pipe(map((bankTransactionsBase) => bankTransactionsBase.map((bankTransaction) => plainToClass(BankTransaction, bankTransaction))));
|
|
12095
11954
|
}
|
|
12096
11955
|
/**
|
|
12097
11956
|
* import bank transactions from csv file
|
|
@@ -12149,11 +12008,10 @@ class BankService extends RestService$1 {
|
|
|
12149
12008
|
}
|
|
12150
12009
|
get() {
|
|
12151
12010
|
return super.get()
|
|
12152
|
-
.pipe(map((banks) =>
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
}));
|
|
12011
|
+
.pipe(map((banks) =>
|
|
12012
|
+
// exclude basiq banks without login fields (basiq may return broken banks without loginFields)
|
|
12013
|
+
// @TODO Vik/Nikita: do it on backend
|
|
12014
|
+
banks.filter((bank) => bank.isManual || (!!bank.externalId && !!bank.loginFields))));
|
|
12157
12015
|
}
|
|
12158
12016
|
}
|
|
12159
12017
|
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -12252,7 +12110,7 @@ class ChatService extends RestService$1 {
|
|
|
12252
12110
|
*/
|
|
12253
12111
|
listenChats() {
|
|
12254
12112
|
this.sseService.on(`chats`).subscribe((chatBase) => {
|
|
12255
|
-
|
|
12113
|
+
const array = this.cache.toArray();
|
|
12256
12114
|
// chat instance from event
|
|
12257
12115
|
const eventChat = plainToClass(Chat, chatBase);
|
|
12258
12116
|
// chat instance from cache
|
|
@@ -12423,9 +12281,7 @@ class MessageDocumentService extends RestService$1 {
|
|
|
12423
12281
|
* Upload multiple files to chat
|
|
12424
12282
|
*/
|
|
12425
12283
|
addBatch(chatId, files) {
|
|
12426
|
-
return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) =>
|
|
12427
|
-
return docsBase.map((docBase) => plainToClass(MessageDocument, docBase));
|
|
12428
|
-
}));
|
|
12284
|
+
return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
|
|
12429
12285
|
}
|
|
12430
12286
|
}
|
|
12431
12287
|
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -12490,9 +12346,7 @@ class DepreciationService extends RestService$1 {
|
|
|
12490
12346
|
}
|
|
12491
12347
|
getOpenBalance(depreciation) {
|
|
12492
12348
|
return this.http.post(`${this.apiUrl}/opening-balance?financialYear=${new FinancialYear().year}`, depreciation)
|
|
12493
|
-
.pipe(map((response) =>
|
|
12494
|
-
return response || 0;
|
|
12495
|
-
}));
|
|
12349
|
+
.pipe(map((response) => response || 0));
|
|
12496
12350
|
}
|
|
12497
12351
|
listenReceiptAdded() {
|
|
12498
12352
|
this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe((receipt) => {
|
|
@@ -12582,9 +12436,7 @@ class DepreciationCapitalProjectService {
|
|
|
12582
12436
|
this.cacheSubject.next([]);
|
|
12583
12437
|
this.http.get(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects`)
|
|
12584
12438
|
.subscribe((capitalProjectsBase) => {
|
|
12585
|
-
this.cache = capitalProjectsBase.map((capitalProjectBase) =>
|
|
12586
|
-
return plainToClass(DepreciationCapitalProject, capitalProjectBase);
|
|
12587
|
-
});
|
|
12439
|
+
this.cache = capitalProjectsBase.map((capitalProjectBase) => plainToClass(DepreciationCapitalProject, capitalProjectBase));
|
|
12588
12440
|
this.cacheSubject.next(this.cache);
|
|
12589
12441
|
});
|
|
12590
12442
|
return this.cacheSubject.asObservable();
|
|
@@ -12761,9 +12613,7 @@ class RestService {
|
|
|
12761
12613
|
*/
|
|
12762
12614
|
findById(id) {
|
|
12763
12615
|
return this.get()
|
|
12764
|
-
.pipe(map((items) =>
|
|
12765
|
-
return items.find((item) => item['id'] === id);
|
|
12766
|
-
}));
|
|
12616
|
+
.pipe(map((items) => items.find((item) => item['id'] === id)));
|
|
12767
12617
|
}
|
|
12768
12618
|
find(id) {
|
|
12769
12619
|
return this.cache.find((item) => item['id'] === id);
|
|
@@ -12800,7 +12650,7 @@ class RestService {
|
|
|
12800
12650
|
postForm(file, params = {}) {
|
|
12801
12651
|
const formData = new FormData();
|
|
12802
12652
|
formData.append('file', file);
|
|
12803
|
-
for (
|
|
12653
|
+
for (const key in params) {
|
|
12804
12654
|
formData.append(key, params[key]);
|
|
12805
12655
|
}
|
|
12806
12656
|
return this.create(formData);
|
|
@@ -12905,9 +12755,7 @@ class RestService {
|
|
|
12905
12755
|
return this.http.get(`${this.environment.apiV2}/${this.url}`)
|
|
12906
12756
|
.pipe(map((response) => {
|
|
12907
12757
|
const items = (this.isHydra ? response['hydra:member'] : response)
|
|
12908
|
-
.map((item) =>
|
|
12909
|
-
return this.createModelInstance(item);
|
|
12910
|
-
});
|
|
12758
|
+
.map((item) => this.createModelInstance(item));
|
|
12911
12759
|
this.cache = items;
|
|
12912
12760
|
this.updateCache();
|
|
12913
12761
|
return items;
|
|
@@ -13262,9 +13110,7 @@ class ClientInviteService extends RestService {
|
|
|
13262
13110
|
const formData = new FormData();
|
|
13263
13111
|
formData.append('file', file);
|
|
13264
13112
|
return this.http.post(`${this.environment.apiV2}/${this.url}/import`, formData)
|
|
13265
|
-
.pipe(map((clientInvite) =>
|
|
13266
|
-
return clientInvite;
|
|
13267
|
-
}));
|
|
13113
|
+
.pipe(map((clientInvite) => clientInvite));
|
|
13268
13114
|
}
|
|
13269
13115
|
/**
|
|
13270
13116
|
* Accept client invitation from firm to user
|
|
@@ -13365,19 +13211,13 @@ class ClientMovementService extends RestService {
|
|
|
13365
13211
|
* @TODO BaseRestService should return collection
|
|
13366
13212
|
*/
|
|
13367
13213
|
getAll() {
|
|
13368
|
-
return this.get().pipe(map((clientMovements) =>
|
|
13369
|
-
return new ClientMovementCollection(clientMovements);
|
|
13370
|
-
}));
|
|
13214
|
+
return this.get().pipe(map((clientMovements) => new ClientMovementCollection(clientMovements)));
|
|
13371
13215
|
}
|
|
13372
13216
|
getActive() {
|
|
13373
|
-
return this.getAll().pipe(map((clientMovements) =>
|
|
13374
|
-
return clientMovements.active;
|
|
13375
|
-
}));
|
|
13217
|
+
return this.getAll().pipe(map((clientMovements) => clientMovements.active));
|
|
13376
13218
|
}
|
|
13377
13219
|
getActiveByFirmType(type) {
|
|
13378
|
-
return this.getActive().pipe(map((clientMovements) =>
|
|
13379
|
-
return clientMovements.getByFirmType(type);
|
|
13380
|
-
}));
|
|
13220
|
+
return this.getActive().pipe(map((clientMovements) => clientMovements.getByFirmType(type)));
|
|
13381
13221
|
}
|
|
13382
13222
|
update(movement) {
|
|
13383
13223
|
// extend base 'add' method and pass into it movement without id
|
|
@@ -13476,9 +13316,7 @@ class EmployeeInviteService extends RestService {
|
|
|
13476
13316
|
const formData = new FormData();
|
|
13477
13317
|
formData.append('file', file);
|
|
13478
13318
|
return this.http.post(`${this.environment.apiV2}/${this.url}/import`, formData)
|
|
13479
|
-
.pipe(map((employeeInvite) =>
|
|
13480
|
-
return employeeInvite;
|
|
13481
|
-
}));
|
|
13319
|
+
.pipe(map((employeeInvite) => employeeInvite));
|
|
13482
13320
|
}
|
|
13483
13321
|
/**
|
|
13484
13322
|
* Resend invitation from firm to client
|
|
@@ -13552,16 +13390,12 @@ class FirmService {
|
|
|
13552
13390
|
*/
|
|
13553
13391
|
register(data) {
|
|
13554
13392
|
return this.http.post(`${this.environment.apiV2}/firms/registration`, data)
|
|
13555
|
-
.pipe(map((firm) =>
|
|
13556
|
-
return plainToClass(Firm, firm);
|
|
13557
|
-
}));
|
|
13393
|
+
.pipe(map((firm) => plainToClass(Firm, firm)));
|
|
13558
13394
|
}
|
|
13559
13395
|
get() {
|
|
13560
13396
|
if (!this.firm) {
|
|
13561
13397
|
this.http.get(`${this.environment.apiV2}/firms/current`)
|
|
13562
|
-
.pipe(map((firm) =>
|
|
13563
|
-
return plainToClass(Firm, firm);
|
|
13564
|
-
}))
|
|
13398
|
+
.pipe(map((firm) => plainToClass(Firm, firm)))
|
|
13565
13399
|
.subscribe((firm) => {
|
|
13566
13400
|
this.firm = firm;
|
|
13567
13401
|
this.firmSubject.next(this.firm);
|
|
@@ -13581,14 +13415,10 @@ class FirmService {
|
|
|
13581
13415
|
*/
|
|
13582
13416
|
getAll() {
|
|
13583
13417
|
return this.http.get(`${this.environment.apiV2}/firms`)
|
|
13584
|
-
.pipe(map((response) =>
|
|
13585
|
-
return response['hydra:member'].map((firmBase) => plainToClass(Firm, firmBase));
|
|
13586
|
-
}));
|
|
13418
|
+
.pipe(map((response) => response['hydra:member'].map((firmBase) => plainToClass(Firm, firmBase))));
|
|
13587
13419
|
}
|
|
13588
13420
|
getByType(type) {
|
|
13589
|
-
return this.getAll().pipe(map((firms) =>
|
|
13590
|
-
return firms.filter((firm) => firm.type === type);
|
|
13591
|
-
}));
|
|
13421
|
+
return this.getAll().pipe(map((firms) => firms.filter((firm) => firm.type === type)));
|
|
13592
13422
|
}
|
|
13593
13423
|
updatePhoto(firm, photo) {
|
|
13594
13424
|
return this.http.post(`${this.environment.apiV2}/firms/photo?_method=PUT`, photo)
|
|
@@ -13854,9 +13684,7 @@ class IncomeSourceService extends RestService {
|
|
|
13854
13684
|
*/
|
|
13855
13685
|
getTaxCalculation(salaryForecast) {
|
|
13856
13686
|
return this.http.post(`${this.environment.apiV2}/${this.url}/tax-calculation`, salaryForecast)
|
|
13857
|
-
.pipe(map((response) =>
|
|
13858
|
-
return plainToClass(SalaryForecast, response);
|
|
13859
|
-
}));
|
|
13687
|
+
.pipe(map((response) => plainToClass(SalaryForecast, response)));
|
|
13860
13688
|
}
|
|
13861
13689
|
/**
|
|
13862
13690
|
* Add batch of income sources
|
|
@@ -13907,9 +13735,7 @@ class IncomeSourceService extends RestService {
|
|
|
13907
13735
|
if (!this.incomeSourceTypes) {
|
|
13908
13736
|
this.incomeSourceTypes = [];
|
|
13909
13737
|
this.http.get(`${this.environment.apiV2}/income-source-types`)
|
|
13910
|
-
.pipe(map((response) =>
|
|
13911
|
-
return response.map((item) => plainToClass(IncomeSourceType, item));
|
|
13912
|
-
}))
|
|
13738
|
+
.pipe(map((response) => response.map((item) => plainToClass(IncomeSourceType, item))))
|
|
13913
13739
|
.subscribe((otherIncomesTypes) => {
|
|
13914
13740
|
this.incomeSourceTypes = otherIncomesTypes;
|
|
13915
13741
|
this.incomeSourceTypeSubject.next(this.incomeSourceTypes);
|
|
@@ -13951,9 +13777,7 @@ class BorrowingExpenseService {
|
|
|
13951
13777
|
get() {
|
|
13952
13778
|
if (!this._borrowingExpenses) {
|
|
13953
13779
|
this.http.get(`${this.environment.apiV2}/borrowing-expenses`)
|
|
13954
|
-
.pipe(map((response) =>
|
|
13955
|
-
return response.map((item) => plainToClass(BorrowingExpense, item));
|
|
13956
|
-
}))
|
|
13780
|
+
.pipe(map((response) => response.map((item) => plainToClass(BorrowingExpense, item))))
|
|
13957
13781
|
.subscribe((borrowingExpenses) => {
|
|
13958
13782
|
this._borrowingExpenses = borrowingExpenses;
|
|
13959
13783
|
this.borrowingExpensesSubject.next(this._borrowingExpenses);
|
|
@@ -14033,9 +13857,7 @@ class LoanService extends RestService$1 {
|
|
|
14033
13857
|
* Calculate loan payments
|
|
14034
13858
|
*/
|
|
14035
13859
|
calculateLoanPayments(loan) {
|
|
14036
|
-
return this.http.post(`${this.apiUrl}/calculation`, loan).pipe(map((response) =>
|
|
14037
|
-
return plainToClass(Loan, response);
|
|
14038
|
-
}));
|
|
13860
|
+
return this.http.post(`${this.apiUrl}/calculation`, loan).pipe(map((response) => plainToClass(Loan, response)));
|
|
14039
13861
|
}
|
|
14040
13862
|
/**
|
|
14041
13863
|
* Add new loan payout
|
|
@@ -14441,7 +14263,7 @@ class SoleBusinessService extends RestService {
|
|
|
14441
14263
|
if (error.status === 422) {
|
|
14442
14264
|
this.toastService.error(error.error.violations[0].message);
|
|
14443
14265
|
}
|
|
14444
|
-
return throwError
|
|
14266
|
+
return throwError(error);
|
|
14445
14267
|
}));
|
|
14446
14268
|
}
|
|
14447
14269
|
}
|
|
@@ -14574,7 +14396,7 @@ class SoleDepreciationMethodService {
|
|
|
14574
14396
|
return this.cache;
|
|
14575
14397
|
}), catchError((error) => {
|
|
14576
14398
|
this.toastService.error(error.error['hydra:description']);
|
|
14577
|
-
return throwError
|
|
14399
|
+
return throwError(error);
|
|
14578
14400
|
}));
|
|
14579
14401
|
}
|
|
14580
14402
|
listenSoleDetailsChanges() {
|
|
@@ -14939,9 +14761,7 @@ class SubscriptionService extends RestService$1 {
|
|
|
14939
14761
|
* Get difference between current subscription and selected new subscription
|
|
14940
14762
|
*/
|
|
14941
14763
|
getProrationCost(subscription) {
|
|
14942
|
-
return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/proration-cost`, subscription).pipe(map((prorationCost) =>
|
|
14943
|
-
return prorationCost;
|
|
14944
|
-
}));
|
|
14764
|
+
return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/proration-cost`, subscription).pipe(map((prorationCost) => prorationCost));
|
|
14945
14765
|
}
|
|
14946
14766
|
/**
|
|
14947
14767
|
* Change subscription plan
|
|
@@ -15262,9 +15082,7 @@ class TransactionAllocationService extends RestService {
|
|
|
15262
15082
|
getByTransactions(transactions) {
|
|
15263
15083
|
const ids = transactions.map((transaction) => transaction.id);
|
|
15264
15084
|
return this.get()
|
|
15265
|
-
.pipe(map((transactionAllocations) =>
|
|
15266
|
-
return transactionAllocations.filter((allocation) => ids.includes(allocation.transaction.id));
|
|
15267
|
-
}));
|
|
15085
|
+
.pipe(map((transactionAllocations) => transactionAllocations.filter((allocation) => ids.includes(allocation.transaction.id))));
|
|
15268
15086
|
}
|
|
15269
15087
|
listenEvents() {
|
|
15270
15088
|
this.onTransactionsCreated();
|
|
@@ -15416,42 +15234,31 @@ class TransactionService extends RestService {
|
|
|
15416
15234
|
*/
|
|
15417
15235
|
getByPropertyId(propertyId) {
|
|
15418
15236
|
return this.get()
|
|
15419
|
-
.pipe(map((transactions) => {
|
|
15420
|
-
return transactions.filter((transaction) => {
|
|
15421
|
-
var _a;
|
|
15422
|
-
return ((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id) === propertyId;
|
|
15423
|
-
});
|
|
15424
|
-
}));
|
|
15237
|
+
.pipe(map((transactions) => transactions.filter((transaction) => { var _a; return ((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id) === propertyId; })));
|
|
15425
15238
|
}
|
|
15426
15239
|
/**
|
|
15427
15240
|
* get list of transactions with tank type 'Work'
|
|
15428
15241
|
*/
|
|
15429
15242
|
getWorkTransactions() {
|
|
15430
15243
|
return this.get()
|
|
15431
|
-
.pipe(map((transactions) =>
|
|
15432
|
-
return transactions.filter((transaction) => transaction.isWorkTank());
|
|
15433
|
-
}));
|
|
15244
|
+
.pipe(map((transactions) => transactions.filter((transaction) => transaction.isWorkTank())));
|
|
15434
15245
|
}
|
|
15435
15246
|
/**
|
|
15436
15247
|
* Get list of property holding costs (transactions related to vacant land property)
|
|
15437
15248
|
*/
|
|
15438
15249
|
getPropertyHoldingCosts(propertyId) {
|
|
15439
15250
|
return this.get()
|
|
15440
|
-
.pipe(map((transactions) =>
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
.toArray();
|
|
15445
|
-
}));
|
|
15251
|
+
.pipe(map((transactions) => new TransactionCollection(transactions)
|
|
15252
|
+
.filterBy('property.id', propertyId)
|
|
15253
|
+
.filterBy('property.category.id', PropertyCategoryListEnum.VACANT_LAND)
|
|
15254
|
+
.toArray()));
|
|
15446
15255
|
}
|
|
15447
15256
|
/**
|
|
15448
15257
|
* get list of taxable transactions with tank type 'Work'
|
|
15449
15258
|
*/
|
|
15450
15259
|
getTaxableWorkTransactions() {
|
|
15451
15260
|
return this.getWorkTransactions()
|
|
15452
|
-
.pipe(map((transactions) =>
|
|
15453
|
-
return transactions.filter((transaction) => !!transaction.chartAccounts.taxReturnItem);
|
|
15454
|
-
}));
|
|
15261
|
+
.pipe(map((transactions) => transactions.filter((transaction) => !!transaction.chartAccounts.taxReturnItem)));
|
|
15455
15262
|
}
|
|
15456
15263
|
/**
|
|
15457
15264
|
* add multiple transactions
|
|
@@ -15933,9 +15740,7 @@ class OccupationService {
|
|
|
15933
15740
|
getOccupations() {
|
|
15934
15741
|
if (!this._occupations) {
|
|
15935
15742
|
this.http.get(`${this.environment.apiV2}/occupations`)
|
|
15936
|
-
.pipe(map((response) =>
|
|
15937
|
-
return response.map((item) => plainToClass(Occupation, item));
|
|
15938
|
-
}))
|
|
15743
|
+
.pipe(map((response) => response.map((item) => plainToClass(Occupation, item))))
|
|
15939
15744
|
.subscribe((occupations) => {
|
|
15940
15745
|
this._occupations = occupations;
|
|
15941
15746
|
this.occupationsSubject.next(occupations);
|
|
@@ -16533,18 +16338,14 @@ class BankTransactionCalculationService {
|
|
|
16533
16338
|
* @TODO Alex: consider to move to collection
|
|
16534
16339
|
*/
|
|
16535
16340
|
getAllocatedBankTransactions(bankTransactions, allocations) {
|
|
16536
|
-
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) =>
|
|
16537
|
-
return this.isAllocated(bankTransaction, allocations);
|
|
16538
|
-
}));
|
|
16341
|
+
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => this.isAllocated(bankTransaction, allocations)));
|
|
16539
16342
|
}
|
|
16540
16343
|
/**
|
|
16541
16344
|
* Get collection of unallocated bank transactions
|
|
16542
16345
|
* @TODO Alex: consider to move to collection
|
|
16543
16346
|
*/
|
|
16544
16347
|
getUnallocated(bankTransactions, allocations) {
|
|
16545
|
-
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) =>
|
|
16546
|
-
return !this.isAllocated(bankTransaction, allocations);
|
|
16547
|
-
}));
|
|
16348
|
+
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => !this.isAllocated(bankTransaction, allocations)));
|
|
16548
16349
|
}
|
|
16549
16350
|
/**
|
|
16550
16351
|
* Allocated sum of credit transactions
|
|
@@ -16920,19 +16721,13 @@ class EquityPositionChartService {
|
|
|
16920
16721
|
get() {
|
|
16921
16722
|
// @TODO refactor backend
|
|
16922
16723
|
return this.http.get(`${this.environment.apiV2}/properties/categories/equity`)
|
|
16923
|
-
.pipe(map((response) => {
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
value: serie.amount
|
|
16931
|
-
});
|
|
16932
|
-
})
|
|
16933
|
-
});
|
|
16934
|
-
});
|
|
16935
|
-
}));
|
|
16724
|
+
.pipe(map((response) => response.map((item) => plainToClass(ChartData, {
|
|
16725
|
+
name: item.category.name,
|
|
16726
|
+
data: item.equity.map((serie) => plainToClass(ChartSerie, {
|
|
16727
|
+
label: serie.date,
|
|
16728
|
+
value: serie.amount
|
|
16729
|
+
}))
|
|
16730
|
+
}))));
|
|
16936
16731
|
}
|
|
16937
16732
|
}
|
|
16938
16733
|
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -16962,9 +16757,7 @@ class PropertyCalculationService {
|
|
|
16962
16757
|
return combineLatest([
|
|
16963
16758
|
transactions$,
|
|
16964
16759
|
depreciations$
|
|
16965
|
-
]).pipe(map(([transactions, depreciations]) =>
|
|
16966
|
-
return this.getTaxPosition(transactions, depreciations);
|
|
16967
|
-
}));
|
|
16760
|
+
]).pipe(map(([transactions, depreciations]) => this.getTaxPosition(transactions, depreciations)));
|
|
16968
16761
|
}
|
|
16969
16762
|
taxPositionGrowth(properties, transactions, depreciations) {
|
|
16970
16763
|
const forecastedTaxPosition = properties.sumBy('forecastedTaxPosition');
|
|
@@ -16979,29 +16772,18 @@ class PropertyCalculationService {
|
|
|
16979
16772
|
properties$,
|
|
16980
16773
|
transactions$,
|
|
16981
16774
|
depreciations$
|
|
16982
|
-
]).pipe(map(([properties, transactions, depreciations]) =>
|
|
16983
|
-
return this.taxPositionGrowth(properties, transactions, depreciations);
|
|
16984
|
-
}));
|
|
16775
|
+
]).pipe(map(([properties, transactions, depreciations]) => this.taxPositionGrowth(properties, transactions, depreciations)));
|
|
16985
16776
|
}
|
|
16986
16777
|
getRentalReturn(properties, transactions) {
|
|
16987
16778
|
return transactions.claimIncome / properties.marketValue;
|
|
16988
16779
|
}
|
|
16989
16780
|
getLoanAmount(properties, bankAccounts, loans) {
|
|
16990
|
-
return properties.items.reduce((totalAmount, property) =>
|
|
16991
|
-
return
|
|
16992
|
-
.reduce((propertyAmount, bankAccount) => {
|
|
16993
|
-
var _a;
|
|
16994
|
-
return propertyAmount + bankAccount.getPropertyPercentage(property.id) * (((_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.amount) || 0);
|
|
16995
|
-
}, 0);
|
|
16996
|
-
}, 0);
|
|
16781
|
+
return properties.items.reduce((totalAmount, property) => totalAmount + bankAccounts.items
|
|
16782
|
+
.reduce((propertyAmount, bankAccount) => { var _a; return propertyAmount + bankAccount.getPropertyPercentage(property.id) * (((_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.amount) || 0); }, 0), 0);
|
|
16997
16783
|
}
|
|
16998
16784
|
getLoanValue(properties, bankAccounts) {
|
|
16999
|
-
return properties.items.reduce((totalAmount, property) =>
|
|
17000
|
-
|
|
17001
|
-
.reduce((propertyAmount, bankAccount) => {
|
|
17002
|
-
return propertyAmount + bankAccount.getPropertyBalanceAmount(property.id);
|
|
17003
|
-
}, 0);
|
|
17004
|
-
}, 0);
|
|
16785
|
+
return properties.items.reduce((totalAmount, property) => totalAmount + bankAccounts.items
|
|
16786
|
+
.reduce((propertyAmount, bankAccount) => propertyAmount + bankAccount.getPropertyBalanceAmount(property.id), 0), 0);
|
|
17005
16787
|
}
|
|
17006
16788
|
/**
|
|
17007
16789
|
* LVR
|
|
@@ -17014,9 +16796,7 @@ class PropertyCalculationService {
|
|
|
17014
16796
|
return combineLatest([
|
|
17015
16797
|
properties$,
|
|
17016
16798
|
bankAccounts$
|
|
17017
|
-
]).pipe(map(([properties, bankAccounts]) =>
|
|
17018
|
-
return this.getLvr(properties, bankAccounts);
|
|
17019
|
-
}));
|
|
16799
|
+
]).pipe(map(([properties, bankAccounts]) => this.getLvr(properties, bankAccounts)));
|
|
17020
16800
|
}
|
|
17021
16801
|
getLvrCommencement(properties, loans, bankAccounts) {
|
|
17022
16802
|
// Math abs is required for correct percentage calculation
|
|
@@ -17027,9 +16807,7 @@ class PropertyCalculationService {
|
|
|
17027
16807
|
properties$,
|
|
17028
16808
|
bankAccounts$,
|
|
17029
16809
|
loans$
|
|
17030
|
-
]).pipe(map(([properties, bankAccounts, loans]) =>
|
|
17031
|
-
return this.getLvrCommencement(properties, loans, bankAccounts);
|
|
17032
|
-
}));
|
|
16810
|
+
]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrCommencement(properties, loans, bankAccounts)));
|
|
17033
16811
|
}
|
|
17034
16812
|
getLvrGrowth(properties, bankAccounts, loans) {
|
|
17035
16813
|
const lvr = this.getLvr(properties, bankAccounts);
|
|
@@ -17045,9 +16823,7 @@ class PropertyCalculationService {
|
|
|
17045
16823
|
properties$,
|
|
17046
16824
|
bankAccounts$,
|
|
17047
16825
|
loans$
|
|
17048
|
-
]).pipe(map(([properties, bankAccounts, loans]) =>
|
|
17049
|
-
return this.getLvrGrowth(properties, bankAccounts, loans);
|
|
17050
|
-
}));
|
|
16826
|
+
]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrGrowth(properties, bankAccounts, loans)));
|
|
17051
16827
|
}
|
|
17052
16828
|
/**
|
|
17053
16829
|
* Equity position = Market value - current loan value
|
|
@@ -17139,9 +16915,7 @@ class PropertyTransactionReportService {
|
|
|
17139
16915
|
this.getTransactions(),
|
|
17140
16916
|
this.getDepreciations(),
|
|
17141
16917
|
this.chartAccountsService.get()
|
|
17142
|
-
]).pipe(map(([properties, transactions, depreciations, chartAccounts]) =>
|
|
17143
|
-
return new CollectionDictionary(this.create(transactions, depreciations, properties, chartAccounts), 'propertyId');
|
|
17144
|
-
}));
|
|
16918
|
+
]).pipe(map(([properties, transactions, depreciations, chartAccounts]) => new CollectionDictionary(this.create(transactions, depreciations, properties, chartAccounts), 'propertyId')));
|
|
17145
16919
|
}
|
|
17146
16920
|
create(transactions, depreciations, properties, chartAccounts) {
|
|
17147
16921
|
return new PropertyReportItemCollection([
|
|
@@ -17153,21 +16927,17 @@ class PropertyTransactionReportService {
|
|
|
17153
16927
|
* Get collection of property transactions
|
|
17154
16928
|
*/
|
|
17155
16929
|
getTransactions() {
|
|
17156
|
-
return this.transactionService.get().pipe(map((transactions) =>
|
|
17157
|
-
|
|
17158
|
-
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property);
|
|
17159
|
-
}));
|
|
16930
|
+
return this.transactionService.get().pipe(map((transactions) => new TransactionCollection(transactions)
|
|
16931
|
+
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)));
|
|
17160
16932
|
}
|
|
17161
16933
|
/**
|
|
17162
16934
|
* Get list of asset & capital property depreciations
|
|
17163
16935
|
*/
|
|
17164
16936
|
getDepreciations() {
|
|
17165
|
-
return this.depreciationService.get().pipe(map((depreciations) =>
|
|
17166
|
-
|
|
17167
|
-
|
|
17168
|
-
|
|
17169
|
-
.getWithoutBorrowingExpenses();
|
|
17170
|
-
}));
|
|
16937
|
+
return this.depreciationService.get().pipe(map((depreciations) => depreciations
|
|
16938
|
+
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)
|
|
16939
|
+
// we don't need borrowing expenses for this report
|
|
16940
|
+
.getWithoutBorrowingExpenses()));
|
|
17171
16941
|
}
|
|
17172
16942
|
}
|
|
17173
16943
|
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -17200,9 +16970,7 @@ class TransactionCalculationService {
|
|
|
17200
16970
|
* @TODO Alex: consider to move to collection
|
|
17201
16971
|
*/
|
|
17202
16972
|
getAllocatedTransactions(transactions, allocations) {
|
|
17203
|
-
return new TransactionCollection(transactions.items.filter((transaction) =>
|
|
17204
|
-
return transaction.isAllocated(allocations);
|
|
17205
|
-
}));
|
|
16973
|
+
return new TransactionCollection(transactions.items.filter((transaction) => transaction.isAllocated(allocations)));
|
|
17206
16974
|
}
|
|
17207
16975
|
getUnallocatedInvoices(invoices, allocations) {
|
|
17208
16976
|
return invoices.filter((invoice) => {
|
|
@@ -17745,7 +17513,7 @@ class LoanForm extends AbstractForm {
|
|
|
17745
17513
|
listenEvents() {
|
|
17746
17514
|
// We need to set term automatically only for bank loans.
|
|
17747
17515
|
// For vehicle loans user should fill it manually with validation depended of frequency
|
|
17748
|
-
if (
|
|
17516
|
+
if (this.loan.bankAccount) {
|
|
17749
17517
|
this.listenTypeChanges();
|
|
17750
17518
|
}
|
|
17751
17519
|
else {
|
|
@@ -17773,7 +17541,7 @@ class LoanForm extends AbstractForm {
|
|
|
17773
17541
|
*/
|
|
17774
17542
|
updateTermValidation() {
|
|
17775
17543
|
// no need terms for bank loans
|
|
17776
|
-
if (
|
|
17544
|
+
if (this.loan.bankAccount) {
|
|
17777
17545
|
return;
|
|
17778
17546
|
}
|
|
17779
17547
|
const currentRepaymentFrequency = this.get('repaymentFrequency').value;
|
|
@@ -17795,10 +17563,8 @@ LoanForm.mortgageLoanTypes = [LoanTypeEnum.MORTGAGE, LoanTypeEnum.HOME_EQUITY_LI
|
|
|
17795
17563
|
* Use with groups of boolean form controls (checkbox, toggle, etc.)
|
|
17796
17564
|
*/
|
|
17797
17565
|
function atLeastOneCheckedValidator() {
|
|
17798
|
-
return (formGroup) =>
|
|
17799
|
-
|
|
17800
|
-
.find((control) => control.value) ? null : { nothingChecked: true };
|
|
17801
|
-
};
|
|
17566
|
+
return (formGroup) => Object.values(formGroup.controls)
|
|
17567
|
+
.find((control) => control.value) ? null : { nothingChecked: true };
|
|
17802
17568
|
}
|
|
17803
17569
|
|
|
17804
17570
|
/**
|
|
@@ -17806,9 +17572,7 @@ function atLeastOneCheckedValidator() {
|
|
|
17806
17572
|
* @TODO Alex: create class AppValidators with static methods and move there all custom validators (line Angular Validators)
|
|
17807
17573
|
*/
|
|
17808
17574
|
function autocompleteValidator() {
|
|
17809
|
-
return (control) => {
|
|
17810
|
-
return (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
|
|
17811
|
-
};
|
|
17575
|
+
return (control) => (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
|
|
17812
17576
|
}
|
|
17813
17577
|
|
|
17814
17578
|
function conditionalValidator(condition, validator) {
|
|
@@ -17908,15 +17672,13 @@ function fieldsSumValidator(field, summary = 100, fieldAlias) {
|
|
|
17908
17672
|
if (fieldsSum <= summary) {
|
|
17909
17673
|
return null;
|
|
17910
17674
|
}
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17914
|
-
|
|
17915
|
-
|
|
17916
|
-
|
|
17917
|
-
|
|
17918
|
-
};
|
|
17919
|
-
}
|
|
17675
|
+
return {
|
|
17676
|
+
fieldsSum: {
|
|
17677
|
+
name: field,
|
|
17678
|
+
alias: fieldAlias,
|
|
17679
|
+
summary
|
|
17680
|
+
}
|
|
17681
|
+
};
|
|
17920
17682
|
};
|
|
17921
17683
|
}
|
|
17922
17684
|
|
|
@@ -17974,12 +17736,10 @@ class FileValidator {
|
|
|
17974
17736
|
class BankAccountPropertiesForm extends UntypedFormArray {
|
|
17975
17737
|
constructor(bankAccountProperties) {
|
|
17976
17738
|
super(((bankAccountProperties === null || bankAccountProperties === void 0 ? void 0 : bankAccountProperties.length) ? bankAccountProperties : [plainToClass(BankAccountProperty, {})])
|
|
17977
|
-
.map((bankAccountProperty) => {
|
|
17978
|
-
|
|
17979
|
-
|
|
17980
|
-
|
|
17981
|
-
});
|
|
17982
|
-
}), [
|
|
17739
|
+
.map((bankAccountProperty) => new UntypedFormGroup({
|
|
17740
|
+
property: new UntypedFormControl(bankAccountProperty === null || bankAccountProperty === void 0 ? void 0 : bankAccountProperty.property, Validators.required),
|
|
17741
|
+
percent: new UntypedFormControl(bankAccountProperty.percent, Validators.required)
|
|
17742
|
+
})), [
|
|
17983
17743
|
conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.PROPERTY, Validators.required),
|
|
17984
17744
|
fieldsSumValidator('percent', 100)
|
|
17985
17745
|
]);
|
|
@@ -18098,12 +17858,10 @@ class SoleBusinessForm extends AbstractForm {
|
|
|
18098
17858
|
class SoleBusinessAllocationsForm extends UntypedFormArray {
|
|
18099
17859
|
constructor(businessAllocations) {
|
|
18100
17860
|
super(((businessAllocations === null || businessAllocations === void 0 ? void 0 : businessAllocations.length) ? businessAllocations : [plainToClass(SoleBusinessAllocation, {})])
|
|
18101
|
-
.map((businessAllocation) => {
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
});
|
|
18106
|
-
}), [
|
|
17861
|
+
.map((businessAllocation) => new UntypedFormGroup({
|
|
17862
|
+
business: new UntypedFormControl(businessAllocation === null || businessAllocation === void 0 ? void 0 : businessAllocation.business, Validators.required),
|
|
17863
|
+
percent: new UntypedFormControl(businessAllocation.percent, Validators.required)
|
|
17864
|
+
})), [
|
|
18107
17865
|
conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.SOLE, Validators.required),
|
|
18108
17866
|
fieldsSumValidator('percent', 100)
|
|
18109
17867
|
]);
|
|
@@ -18582,11 +18340,9 @@ function dateRangeValidator(dateStart, dateEnd) {
|
|
|
18582
18340
|
* Validator check if at least one control in formArray is enabled
|
|
18583
18341
|
*/
|
|
18584
18342
|
function atLeastOneEnabledValidator(arrayName) {
|
|
18585
|
-
return (formGroup) =>
|
|
18586
|
-
|
|
18587
|
-
|
|
18588
|
-
: { arrayControlsDisabled: true };
|
|
18589
|
-
};
|
|
18343
|
+
return (formGroup) => formGroup.get(arrayName).controls.find((control) => control.enabled)
|
|
18344
|
+
? null
|
|
18345
|
+
: { arrayControlsDisabled: true };
|
|
18590
18346
|
}
|
|
18591
18347
|
|
|
18592
18348
|
/**
|
|
@@ -18610,7 +18366,7 @@ class BankAccountsImportForm extends AbstractForm {
|
|
|
18610
18366
|
}
|
|
18611
18367
|
const bankAccounts = [];
|
|
18612
18368
|
// form is valid when all selected bank accounts forms are valid
|
|
18613
|
-
for (
|
|
18369
|
+
for (const bankAccountImportForm of this.get('bankAccounts').controls) {
|
|
18614
18370
|
// skip disabled forms
|
|
18615
18371
|
if (bankAccountImportForm.disabled) {
|
|
18616
18372
|
continue;
|
|
@@ -18707,9 +18463,7 @@ const phonePattern = /^(((\s*)?([- ()]?\d[- ()]?){0,30}(\s*)?)|)$/;
|
|
|
18707
18463
|
* Allowed special symbols"-", "(", ")"
|
|
18708
18464
|
*/
|
|
18709
18465
|
function phoneNumberValidator() {
|
|
18710
|
-
return (control) => {
|
|
18711
|
-
return phonePattern.test(control.value) ? null : { phoneInvalid: true };
|
|
18712
|
-
};
|
|
18466
|
+
return (control) => phonePattern.test(control.value) ? null : { phoneInvalid: true };
|
|
18713
18467
|
}
|
|
18714
18468
|
|
|
18715
18469
|
class PhoneForm extends AbstractForm {
|
|
@@ -20135,7 +19889,7 @@ function checkDividends(metaFields, formGroup) {
|
|
|
20135
19889
|
const frankedAndUnfrankedControls = (formGroup.get('metaFields')).controls
|
|
20136
19890
|
.filter((control) => frankedAndUnfrankedIds.includes(control.get('chartAccountsMetaField').value.id));
|
|
20137
19891
|
const frankedAndUnfrankedAmount = frankedAndUnfrankedControls.reduce((sum, control) => sum + (+control.get('value').value), 0);
|
|
20138
|
-
for (
|
|
19892
|
+
for (const control of frankedAndUnfrankedControls) {
|
|
20139
19893
|
if (control.get('value').value !== null && frankedAndUnfrankedAmount !== amount) {
|
|
20140
19894
|
return { metaFields: `Field ${control.get('chartAccountsMetaField').value.label} is required` };
|
|
20141
19895
|
}
|
|
@@ -20147,12 +19901,10 @@ class WorkTransactionForm extends TransactionForm {
|
|
|
20147
19901
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
|
20148
19902
|
super(transaction, registeredForGst, allocations, Object.assign(controls, {
|
|
20149
19903
|
// additional data related to work (like tax instalments)
|
|
20150
|
-
metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => {
|
|
20151
|
-
|
|
20152
|
-
|
|
20153
|
-
|
|
20154
|
-
});
|
|
20155
|
-
}))
|
|
19904
|
+
metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => new FormGroup({
|
|
19905
|
+
value: new FormControl(transactionMetaField.value),
|
|
19906
|
+
chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
|
|
19907
|
+
})))
|
|
20156
19908
|
}));
|
|
20157
19909
|
this.setValidators(transactionsMetaFieldsValidator());
|
|
20158
19910
|
this.listenEvents();
|