taxtank-core 0.29.37 → 0.30.1
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/{esm2015/lib/collections/account-setup-item.collection.js → esm2020/lib/collections/account-setup-item.collection.mjs} +0 -0
- package/{esm2015/lib/collections/allocation-group.collection.js → esm2020/lib/collections/allocation-group.collection.mjs} +0 -0
- package/{esm2015/lib/collections/bank-account.collection.js → esm2020/lib/collections/bank-account.collection.mjs} +0 -0
- package/esm2020/lib/collections/bank-transaction.collection.mjs +119 -0
- package/{esm2015/lib/collections/chart-accounts.collection.js → esm2020/lib/collections/chart-accounts.collection.mjs} +0 -0
- package/{esm2015/lib/collections/chat/chat.collection.js → esm2020/lib/collections/chat/chat.collection.mjs} +0 -0
- package/{esm2015/lib/collections/chat/index.js → esm2020/lib/collections/chat/index.mjs} +0 -0
- package/{esm2015/lib/collections/chat/message-document.collection.js → esm2020/lib/collections/chat/message-document.collection.mjs} +0 -0
- package/{esm2015/lib/collections/chat/message.collection.js → esm2020/lib/collections/chat/message.collection.mjs} +0 -0
- package/{esm2015/lib/collections/client-invite.collection.js → esm2020/lib/collections/client-invite.collection.mjs} +0 -0
- package/esm2020/lib/collections/client-movement.collection.mjs +30 -0
- package/{esm2015/lib/collections/client-portfolio-report.collection.js → esm2020/lib/collections/client-portfolio-report.collection.mjs} +0 -0
- package/{esm2015/lib/collections/client.collection.js → esm2020/lib/collections/client.collection.mjs} +0 -0
- package/{esm2015/lib/collections/collection-dictionary.js → esm2020/lib/collections/collection-dictionary.mjs} +0 -0
- package/esm2020/lib/collections/collection.mjs +147 -0
- package/{esm2015/lib/collections/depreciation-forecast.collection.js → esm2020/lib/collections/depreciation-forecast.collection.mjs} +0 -0
- package/esm2020/lib/collections/depreciation.collection.mjs +126 -0
- package/esm2020/lib/collections/employee.collection.mjs +11 -0
- package/{esm2015/lib/collections/exportable.collection.js → esm2020/lib/collections/exportable.collection.mjs} +0 -0
- package/{esm2015/lib/collections/income-source.collection.js → esm2020/lib/collections/income-source.collection.mjs} +0 -0
- package/{esm2015/lib/collections/index.js → esm2020/lib/collections/index.mjs} +0 -0
- package/{esm2015/lib/collections/loan/index.js → esm2020/lib/collections/loan/index.mjs} +0 -0
- package/{esm2015/lib/collections/loan/loan-payment.collection.js → esm2020/lib/collections/loan/loan-payment.collection.mjs} +0 -0
- package/esm2020/lib/collections/loan/loan.collection.mjs +34 -0
- package/{esm2015/lib/collections/property/index.js → esm2020/lib/collections/property/index.mjs} +0 -0
- package/{esm2015/lib/collections/property/property-category-movement.collection.js → esm2020/lib/collections/property/property-category-movement.collection.mjs} +0 -0
- package/{esm2015/lib/collections/property/property-sale/index.js → esm2020/lib/collections/property/property-sale/index.mjs} +0 -0
- package/esm2020/lib/collections/property/property-sale/property-sale-tax-exemption-metadata.collection.mjs +17 -0
- package/{esm2015/lib/collections/property/property-sale/property-sale.collection.js → esm2020/lib/collections/property/property-sale/property-sale.collection.mjs} +0 -0
- package/esm2020/lib/collections/property/property-share.collection.mjs +22 -0
- package/{esm2015/lib/collections/property/property.collection.js → esm2020/lib/collections/property/property.collection.mjs} +0 -0
- package/{esm2015/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.js → esm2020/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.mjs} +0 -0
- package/{esm2015/lib/collections/report/depreciation/depreciation-report-item.collection.js → esm2020/lib/collections/report/depreciation/depreciation-report-item.collection.mjs} +0 -0
- package/{esm2015/lib/collections/report/index.js → esm2020/lib/collections/report/index.mjs} +0 -0
- package/{esm2015/lib/collections/report/property/property-report-item-depreciation.collection.js → esm2020/lib/collections/report/property/property-report-item-depreciation.collection.mjs} +0 -0
- package/{esm2015/lib/collections/report/property/property-report-item-transaction.collection.js → esm2020/lib/collections/report/property/property-report-item-transaction.collection.mjs} +0 -0
- package/{esm2015/lib/collections/report/property/property-report-item.collection.js → esm2020/lib/collections/report/property/property-report-item.collection.mjs} +0 -0
- package/{esm2015/lib/collections/report/vehicle-expense/vehicle-expense.collection.js → esm2020/lib/collections/report/vehicle-expense/vehicle-expense.collection.mjs} +0 -0
- package/{esm2015/lib/collections/sole/index.js → esm2020/lib/collections/sole/index.mjs} +0 -0
- package/esm2020/lib/collections/sole/sole-business-losses.collection.mjs +42 -0
- package/{esm2015/lib/collections/sole/sole-invoice-item.collection.js → esm2020/lib/collections/sole/sole-invoice-item.collection.mjs} +0 -0
- package/{esm2015/lib/collections/sole/sole-invoice.collection.js → esm2020/lib/collections/sole/sole-invoice.collection.mjs} +0 -0
- package/{esm2015/lib/collections/subscription/index.js → esm2020/lib/collections/subscription/index.mjs} +0 -0
- package/{esm2015/lib/collections/subscription/service-price.collection.js → esm2020/lib/collections/subscription/service-price.collection.mjs} +0 -0
- package/{esm2015/lib/collections/subscription/service-product.collection.js → esm2020/lib/collections/subscription/service-product.collection.mjs} +0 -0
- package/{esm2015/lib/collections/subscription/service-subscription.collection.js → esm2020/lib/collections/subscription/service-subscription.collection.mjs} +0 -0
- package/{esm2015/lib/collections/subscription/subscription-item.collection.js → esm2020/lib/collections/subscription/subscription-item.collection.mjs} +0 -0
- package/{esm2015/lib/collections/tax-review.collection.js → esm2020/lib/collections/tax-review.collection.mjs} +0 -0
- package/{esm2015/lib/collections/tax-summary/index.js → esm2020/lib/collections/tax-summary/index.mjs} +0 -0
- package/{esm2015/lib/collections/tax-summary/report-item.collection.js → esm2020/lib/collections/tax-summary/report-item.collection.mjs} +0 -0
- package/{esm2015/lib/collections/tax-summary/tax-return-categories.const.js → esm2020/lib/collections/tax-summary/tax-return-categories.const.mjs} +0 -0
- package/{esm2015/lib/collections/transaction/index.js → esm2020/lib/collections/transaction/index.mjs} +0 -0
- package/{esm2015/lib/collections/transaction/transaction-allocation.collection.js → esm2020/lib/collections/transaction/transaction-allocation.collection.mjs} +0 -0
- package/esm2020/lib/collections/transaction/transaction.collection.mjs +241 -0
- package/{esm2015/lib/collections/user-event-setting.collection.js → esm2020/lib/collections/user-event-setting.collection.mjs} +0 -0
- package/{esm2015/lib/collections/user-event-type-collection.js → esm2020/lib/collections/user-event-type-collection.mjs} +0 -0
- package/{esm2015/lib/collections/vehicle/index.js → esm2020/lib/collections/vehicle/index.mjs} +0 -0
- package/{esm2015/lib/collections/vehicle/vehicle-claim.collection.js → esm2020/lib/collections/vehicle/vehicle-claim.collection.mjs} +0 -0
- package/{esm2015/lib/collections/vehicle/vehicle-logbook.collection.js → esm2020/lib/collections/vehicle/vehicle-logbook.collection.mjs} +0 -0
- package/{esm2015/lib/db/Enums/address-type.enum.js → esm2020/lib/db/Enums/address-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/annual-frequency.enum.js → esm2020/lib/db/Enums/annual-frequency.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/bank-account-status.enum.js → esm2020/lib/db/Enums/bank-account-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/bank-account-type.enum.js → esm2020/lib/db/Enums/bank-account-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/bank-connection-status.enum.js → esm2020/lib/db/Enums/bank-connection-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/bank-popular.enum.js → esm2020/lib/db/Enums/bank-popular.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/bank-transaction-type.enum.js → esm2020/lib/db/Enums/bank-transaction-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-category.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-category.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-heading-list.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-heading-vehicle-list.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-vehicle-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-keep-sign.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-keep-sign.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-list.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-metadata-list.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-metadata-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-metadata-type.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-metadata-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/chart-accounts-type.enum.js → esm2020/lib/db/Enums/chart-accounts/chart-accounts-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chart-accounts/index.js → esm2020/lib/db/Enums/chart-accounts/index.mjs} +0 -0
- package/{esm2015/lib/db/Enums/chat-status.enum.js → esm2020/lib/db/Enums/chat-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/client-details-medicare-exemption.enum.js → esm2020/lib/db/Enums/client-details-medicare-exemption.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/client-details-work-depreciation-calculation.enum.js → esm2020/lib/db/Enums/client-details-work-depreciation-calculation.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/client-details-working-holiday-maker.enum.js → esm2020/lib/db/Enums/client-details-working-holiday-maker.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/client-invite-status.enum.js → esm2020/lib/db/Enums/client-invite-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/client-invite-type.enum.js → esm2020/lib/db/Enums/client-invite-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/depreciation-calculation-percent.enum.js → esm2020/lib/db/Enums/depreciation-calculation-percent.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/depreciation-calculation.enum.js → esm2020/lib/db/Enums/depreciation-calculation.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/depreciation-type.enum.js → esm2020/lib/db/Enums/depreciation-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/depreciation-write-off-amount.enum.js → esm2020/lib/db/Enums/depreciation-write-off-amount.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/document-type.enum.js → esm2020/lib/db/Enums/document-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/file-type.enum.js → esm2020/lib/db/Enums/file-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/firm-type.enum.js → esm2020/lib/db/Enums/firm-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/income-source-forecast-trust-type.enum.js → esm2020/lib/db/Enums/income-source-forecast-trust-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/income-source-type-list-other.enum.js → esm2020/lib/db/Enums/income-source-type-list-other.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/income-source-type-list-sole.enum.js → esm2020/lib/db/Enums/income-source-type-list-sole.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/income-source-type-list-work.enum.js → esm2020/lib/db/Enums/income-source-type-list-work.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/income-source-type.enum.js → esm2020/lib/db/Enums/income-source-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/index.js → esm2020/lib/db/Enums/index.mjs} +0 -0
- package/{esm2015/lib/db/Enums/invite-status.enum.js → esm2020/lib/db/Enums/invite-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/loan-bank-type.enum.js → esm2020/lib/db/Enums/loan-bank-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/loan-frequency.enum.js → esm2020/lib/db/Enums/loan-frequency.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/loan-interest-type.enum.js → esm2020/lib/db/Enums/loan-interest-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/loan-payout-type.enum.js → esm2020/lib/db/Enums/loan-payout-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/loan-repayment-frequency.enum.js → esm2020/lib/db/Enums/loan-repayment-frequency.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/loan-repayment-type.enum.js → esm2020/lib/db/Enums/loan-repayment-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/loan-type.enum.js → esm2020/lib/db/Enums/loan-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/loan-vehicle-type.enum.js → esm2020/lib/db/Enums/loan-vehicle-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/phone-type.enum.js → esm2020/lib/db/Enums/phone-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/property/property-category-list.enum.js → esm2020/lib/db/Enums/property/property-category-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/property/property-depreciation-calculation.enum.js → esm2020/lib/db/Enums/property/property-depreciation-calculation.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/property/property-sale/tax-exemption-metadata.enum.js → esm2020/lib/db/Enums/property/property-sale/tax-exemption-metadata.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/property/property-sale/tax-exemption.enum.js → esm2020/lib/db/Enums/property/property-sale/tax-exemption.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/property/property-share-access.enum.js → esm2020/lib/db/Enums/property/property-share-access.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/property/property-share-status.enum.js → esm2020/lib/db/Enums/property/property-share-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/registration-invite-status.enum.js → esm2020/lib/db/Enums/registration-invite-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/salary-forecast-frequency.enum.js → esm2020/lib/db/Enums/salary-forecast-frequency.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/service-notification-status.enum.js → esm2020/lib/db/Enums/service-notification-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/service-notification-type.enum.js → esm2020/lib/db/Enums/service-notification-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/sole-depreciation-method.enum.js → esm2020/lib/db/Enums/sole-depreciation-method.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/sole-invoice-statuses.enum.js → esm2020/lib/db/Enums/sole-invoice-statuses.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/sole-invoice-tax-type.enum.js → esm2020/lib/db/Enums/sole-invoice-tax-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/sole-invoice-template-tax-type.enum.js → esm2020/lib/db/Enums/sole-invoice-template-tax-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/spare-document-spare-type.enum.js → esm2020/lib/db/Enums/spare-document-spare-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/subscription/service-payment-status.enum.js → esm2020/lib/db/Enums/subscription/service-payment-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/subscription/service-price-recurring-interval.enum.js → esm2020/lib/db/Enums/subscription/service-price-recurring-interval.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/subscription/service-price-type.enum.js → esm2020/lib/db/Enums/subscription/service-price-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/subscription/service-product-id.enum.js → esm2020/lib/db/Enums/subscription/service-product-id.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/subscription/service-product-status.enum.js → esm2020/lib/db/Enums/subscription/service-product-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/subscription/service-subscription-status.enum.js → esm2020/lib/db/Enums/subscription/service-subscription-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tank-type.enum.js → esm2020/lib/db/Enums/tank-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tax-calculation-medicare-exemption.enum.js → esm2020/lib/db/Enums/tax-calculation-medicare-exemption.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tax-calculation-type.enum.js → esm2020/lib/db/Enums/tax-calculation-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tax-return-category-list.enum.js → esm2020/lib/db/Enums/tax-return-category-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tax-return-category-section.enum.js → esm2020/lib/db/Enums/tax-return-category-section.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tax-review-status.enum.js → esm2020/lib/db/Enums/tax-review-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tax-summary-list.enum.js → esm2020/lib/db/Enums/tax-summary-list.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tax-summary-section.enum.js → esm2020/lib/db/Enums/tax-summary-section.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/tax-summary-tax-summary.enum.js → esm2020/lib/db/Enums/tax-summary-tax-summary.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/ticket-feedback.enum.js → esm2020/lib/db/Enums/ticket-feedback.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/ticket-status.enum.js → esm2020/lib/db/Enums/ticket-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/ticket-types.enum.js → esm2020/lib/db/Enums/ticket-types.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/transaction-operation.enum.js → esm2020/lib/db/Enums/transaction-operation.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/transaction-source.enum.js → esm2020/lib/db/Enums/transaction-source.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/transaction-type.enum.js → esm2020/lib/db/Enums/transaction-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-event-status.enum.js → esm2020/lib/db/Enums/user-event-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-event-type-client-type.enum.js → esm2020/lib/db/Enums/user-event-type-client-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-event-type-employee-type.enum.js → esm2020/lib/db/Enums/user-event-type-employee-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-event-type-frequency.enum.js → esm2020/lib/db/Enums/user-event-type-frequency.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-event-type-type.enum.js → esm2020/lib/db/Enums/user-event-type-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-event-type-user-type.enum.js → esm2020/lib/db/Enums/user-event-type-user-type.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-medicare-exemption.enum.js → esm2020/lib/db/Enums/user-medicare-exemption.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-roles.enum.js → esm2020/lib/db/Enums/user-roles.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-status.enum.js → esm2020/lib/db/Enums/user-status.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-title.enum.js → esm2020/lib/db/Enums/user-title.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-work-depreciation-calculation.enum.js → esm2020/lib/db/Enums/user-work-depreciation-calculation.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/user-working-holiday-maker.enum.js → esm2020/lib/db/Enums/user-working-holiday-maker.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/vehicle-claim-details-method.enum.js → esm2020/lib/db/Enums/vehicle-claim-details-method.enum.mjs} +0 -0
- package/{esm2015/lib/db/Enums/vehicle-logbook-purpose.enum.js → esm2020/lib/db/Enums/vehicle-logbook-purpose.enum.mjs} +0 -0
- package/{esm2015/lib/db/Models/abstract-model.js → esm2020/lib/db/Models/abstract-model.mjs} +0 -0
- package/{esm2015/lib/db/Models/address.js → esm2020/lib/db/Models/address.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/bank-account-balance.js → esm2020/lib/db/Models/bank/bank-account-balance.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/bank-account-property.js → esm2020/lib/db/Models/bank/bank-account-property.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/bank-account.js → esm2020/lib/db/Models/bank/bank-account.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/bank-connection.js → esm2020/lib/db/Models/bank/bank-connection.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/bank-transaction-import.js → esm2020/lib/db/Models/bank/bank-transaction-import.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/bank-transaction-rule.js → esm2020/lib/db/Models/bank/bank-transaction-rule.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/bank-transaction.js → esm2020/lib/db/Models/bank/bank-transaction.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/bank.js → esm2020/lib/db/Models/bank/bank.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/basiq-job.js → esm2020/lib/db/Models/bank/basiq-job.mjs} +0 -0
- package/{esm2015/lib/db/Models/bank/financial-data-system.js → esm2020/lib/db/Models/bank/financial-data-system.mjs} +0 -0
- package/{esm2015/lib/db/Models/chart-accounts/chart-accounts-depreciation.js → esm2020/lib/db/Models/chart-accounts/chart-accounts-depreciation.mjs} +0 -0
- package/{esm2015/lib/db/Models/chart-accounts/chart-accounts-heading.js → esm2020/lib/db/Models/chart-accounts/chart-accounts-heading.mjs} +0 -0
- package/{esm2015/lib/db/Models/chart-accounts/chart-accounts-metadata.js → esm2020/lib/db/Models/chart-accounts/chart-accounts-metadata.mjs} +0 -0
- package/{esm2015/lib/db/Models/chart-accounts/chart-accounts-value.js → esm2020/lib/db/Models/chart-accounts/chart-accounts-value.mjs} +0 -0
- package/{esm2015/lib/db/Models/chart-accounts/chart-accounts.js → esm2020/lib/db/Models/chart-accounts/chart-accounts.mjs} +0 -0
- package/{esm2015/lib/db/Models/country.js → esm2020/lib/db/Models/country.mjs} +0 -0
- package/{esm2015/lib/db/Models/depreciation/depreciation-capital-project.js → esm2020/lib/db/Models/depreciation/depreciation-capital-project.mjs} +0 -0
- package/{esm2015/lib/db/Models/depreciation/depreciation-forecast.js → esm2020/lib/db/Models/depreciation/depreciation-forecast.mjs} +0 -0
- package/{esm2015/lib/db/Models/depreciation/depreciation-receipt.js → esm2020/lib/db/Models/depreciation/depreciation-receipt.mjs} +0 -0
- package/{esm2015/lib/db/Models/depreciation/depreciation.js → esm2020/lib/db/Models/depreciation/depreciation.mjs} +0 -0
- package/{esm2015/lib/db/Models/document/document-base.js → esm2020/lib/db/Models/document/document-base.mjs} +0 -0
- package/{esm2015/lib/db/Models/document/document-folder.js → esm2020/lib/db/Models/document/document-folder.mjs} +0 -0
- package/{esm2015/lib/db/Models/document/document.js → esm2020/lib/db/Models/document/document.mjs} +0 -0
- package/{esm2015/lib/db/Models/document/property-document.js → esm2020/lib/db/Models/document/property-document.mjs} +0 -0
- package/{esm2015/lib/db/Models/file.js → esm2020/lib/db/Models/file.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/accountant/tax-review.js → esm2020/lib/db/Models/firm/accountant/tax-review.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/accountant/ticket.js → esm2020/lib/db/Models/firm/accountant/ticket.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/chat.js → esm2020/lib/db/Models/firm/chat.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/client-invite.js → esm2020/lib/db/Models/firm/client-invite.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/client-movement.js → esm2020/lib/db/Models/firm/client-movement.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/employee-invite.js → esm2020/lib/db/Models/firm/employee-invite.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/firm-invite.js → esm2020/lib/db/Models/firm/firm-invite.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/firm.js → esm2020/lib/db/Models/firm/firm.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/message-document.js → esm2020/lib/db/Models/firm/message-document.mjs} +0 -0
- package/{esm2015/lib/db/Models/firm/message.js → esm2020/lib/db/Models/firm/message.mjs} +0 -0
- package/{esm2015/lib/db/Models/incomeSource/income-source-forecast.js → esm2020/lib/db/Models/incomeSource/income-source-forecast.mjs} +0 -0
- package/{esm2015/lib/db/Models/incomeSource/income-source-type.js → esm2020/lib/db/Models/incomeSource/income-source-type.mjs} +0 -0
- package/{esm2015/lib/db/Models/incomeSource/income-source.js → esm2020/lib/db/Models/incomeSource/income-source.mjs} +0 -0
- package/{esm2015/lib/db/Models/incomeSource/salary-forecast.js → esm2020/lib/db/Models/incomeSource/salary-forecast.mjs} +0 -0
- package/{esm2015/lib/db/Models/index.js → esm2020/lib/db/Models/index.mjs} +0 -0
- package/{esm2015/lib/db/Models/loan/borrowing-expense-loan.js → esm2020/lib/db/Models/loan/borrowing-expense-loan.mjs} +0 -0
- package/{esm2015/lib/db/Models/loan/borrowing-expense.js → esm2020/lib/db/Models/loan/borrowing-expense.mjs} +0 -0
- package/{esm2015/lib/db/Models/loan/loan-payout.js → esm2020/lib/db/Models/loan/loan-payout.mjs} +0 -0
- package/{esm2015/lib/db/Models/loan/loan.js → esm2020/lib/db/Models/loan/loan.mjs} +0 -0
- package/{esm2015/lib/db/Models/observable-model.js → esm2020/lib/db/Models/observable-model.mjs} +0 -0
- package/{esm2015/lib/db/Models/phone.js → esm2020/lib/db/Models/phone.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-category-movement.js → esm2020/lib/db/Models/property/property-category-movement.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-category.js → esm2020/lib/db/Models/property/property-category.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-forecast.js → esm2020/lib/db/Models/property/property-forecast.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.js → esm2020/lib/db/Models/property/property-sale/property-sale-tax-exemption-metadata.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-sale/property-sale.js → esm2020/lib/db/Models/property/property-sale/property-sale.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-sale/tax-exemption-metadata.js → esm2020/lib/db/Models/property/property-sale/tax-exemption-metadata.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-sale/tax-exemption.js → esm2020/lib/db/Models/property/property-sale/tax-exemption.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-share.js → esm2020/lib/db/Models/property/property-share.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-subscription.js → esm2020/lib/db/Models/property/property-subscription.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property-valuation.js → esm2020/lib/db/Models/property/property-valuation.mjs} +0 -0
- package/{esm2015/lib/db/Models/property/property.js → esm2020/lib/db/Models/property/property.mjs} +0 -0
- package/{esm2015/lib/db/Models/service-notification.js → esm2020/lib/db/Models/service-notification.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/bas-report.js → esm2020/lib/db/Models/sole/bas-report.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-business-activity.js → esm2020/lib/db/Models/sole/sole-business-activity.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-business-allocation.js → esm2020/lib/db/Models/sole/sole-business-allocation.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-business-loss-offset-rule.js → esm2020/lib/db/Models/sole/sole-business-loss-offset-rule.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-business-loss.js → esm2020/lib/db/Models/sole/sole-business-loss.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-business.js → esm2020/lib/db/Models/sole/sole-business.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-contact.js → esm2020/lib/db/Models/sole/sole-contact.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-depreciation-method.js → esm2020/lib/db/Models/sole/sole-depreciation-method.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-details.js → esm2020/lib/db/Models/sole/sole-details.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-forecast.js → esm2020/lib/db/Models/sole/sole-forecast.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-invoice-item.js → esm2020/lib/db/Models/sole/sole-invoice-item.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-invoice-template.js → esm2020/lib/db/Models/sole/sole-invoice-template.mjs} +0 -0
- package/{esm2015/lib/db/Models/sole/sole-invoice.js → esm2020/lib/db/Models/sole/sole-invoice.mjs} +0 -0
- package/{esm2015/lib/db/Models/spare/spare-document-category.js → esm2020/lib/db/Models/spare/spare-document-category.mjs} +0 -0
- package/{esm2015/lib/db/Models/spare/spare-document.js → esm2020/lib/db/Models/spare/spare-document.mjs} +0 -0
- package/{esm2015/lib/db/Models/subscription/service-payment.js → esm2020/lib/db/Models/subscription/service-payment.mjs} +0 -0
- package/{esm2015/lib/db/Models/subscription/service-price.js → esm2020/lib/db/Models/subscription/service-price.mjs} +0 -0
- package/{esm2015/lib/db/Models/subscription/service-product.js → esm2020/lib/db/Models/subscription/service-product.mjs} +0 -0
- package/{esm2015/lib/db/Models/subscription/service-subscription-item.js → esm2020/lib/db/Models/subscription/service-subscription-item.mjs} +0 -0
- package/{esm2015/lib/db/Models/subscription/service-subscription.js → esm2020/lib/db/Models/subscription/service-subscription.mjs} +0 -0
- package/{esm2015/lib/db/Models/tax-calculation.js → esm2020/lib/db/Models/tax-calculation.mjs} +0 -0
- package/{esm2015/lib/db/Models/tax-return/tax-return-category.js → esm2020/lib/db/Models/tax-return/tax-return-category.mjs} +0 -0
- package/{esm2015/lib/db/Models/tax-return/tax-return-item.js → esm2020/lib/db/Models/tax-return/tax-return-item.mjs} +0 -0
- package/{esm2015/lib/db/Models/tax-return/tax-return.js → esm2020/lib/db/Models/tax-return/tax-return.mjs} +0 -0
- package/{esm2015/lib/db/Models/transaction/transaction-allocation.js → esm2020/lib/db/Models/transaction/transaction-allocation.mjs} +0 -0
- package/esm2020/lib/db/Models/transaction/transaction-base.mjs +87 -0
- package/{esm2015/lib/db/Models/transaction/transaction-metadata.js → esm2020/lib/db/Models/transaction/transaction-metadata.mjs} +0 -0
- package/{esm2015/lib/db/Models/transaction/transaction-receipt.js → esm2020/lib/db/Models/transaction/transaction-receipt.mjs} +0 -0
- package/{esm2015/lib/db/Models/transaction/transaction.js → esm2020/lib/db/Models/transaction/transaction.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/client-details.js → esm2020/lib/db/Models/user/client-details.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/client-income-types.js → esm2020/lib/db/Models/user/client-income-types.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/employee-details.js → esm2020/lib/db/Models/user/employee-details.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/occupation.js → esm2020/lib/db/Models/user/occupation.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/registration-invite.js → esm2020/lib/db/Models/user/registration-invite.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/user-event-setting.js → esm2020/lib/db/Models/user/user-event-setting.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/user-event-type-category.js → esm2020/lib/db/Models/user/user-event-type-category.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/user-event-type.js → esm2020/lib/db/Models/user/user-event-type.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/user-event.js → esm2020/lib/db/Models/user/user-event.mjs} +0 -0
- package/{esm2015/lib/db/Models/user/user.js → esm2020/lib/db/Models/user/user.mjs} +0 -0
- package/{esm2015/lib/db/Models/vehicle/vehicle-claim-details.js → esm2020/lib/db/Models/vehicle/vehicle-claim-details.mjs} +0 -0
- package/{esm2015/lib/db/Models/vehicle/vehicle-claim.js → esm2020/lib/db/Models/vehicle/vehicle-claim.mjs} +0 -0
- package/{esm2015/lib/db/Models/vehicle/vehicle-logbook.js → esm2020/lib/db/Models/vehicle/vehicle-logbook.mjs} +0 -0
- package/{esm2015/lib/db/Models/vehicle/vehicle.js → esm2020/lib/db/Models/vehicle/vehicle.mjs} +0 -0
- package/esm2020/lib/forms/abstract.form.mjs +69 -0
- package/esm2020/lib/forms/address/address.form.mjs +188 -0
- package/{esm2015/lib/forms/address/index.js → esm2020/lib/forms/address/index.mjs} +0 -0
- package/esm2020/lib/forms/bank/bank-account/bank-account-add-manual.form.mjs +46 -0
- package/esm2020/lib/forms/bank/bank-account/bank-account-allocation.form.mjs +45 -0
- package/{esm2015/lib/forms/bank/bank-account/bank-account-import.form.js → esm2020/lib/forms/bank/bank-account/bank-account-import.form.mjs} +0 -0
- package/esm2020/lib/forms/bank/bank-account/bank-account-properties.form.mjs +66 -0
- package/esm2020/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +50 -0
- package/esm2020/lib/forms/bank/bank-login.form.mjs +19 -0
- package/esm2020/lib/forms/client/client-income-types.form.mjs +17 -0
- package/esm2020/lib/forms/depreciation/depreciation.form.mjs +38 -0
- package/{esm2015/lib/forms/depreciation/index.js → esm2020/lib/forms/depreciation/index.mjs} +0 -0
- package/{esm2015/lib/forms/form-validations.enum.js → esm2020/lib/forms/form-validations.enum.mjs} +0 -0
- package/{esm2015/lib/forms/index.js → esm2020/lib/forms/index.mjs} +0 -0
- package/{esm2015/lib/forms/loan/index.js → esm2020/lib/forms/loan/index.mjs} +0 -0
- package/esm2020/lib/forms/loan/loan.form.mjs +90 -0
- package/esm2020/lib/forms/login/login.form.mjs +11 -0
- package/{esm2015/lib/forms/phone/index.js → esm2020/lib/forms/phone/index.mjs} +0 -0
- package/esm2020/lib/forms/phone/phone.form.mjs +18 -0
- package/{esm2015/lib/forms/property/index.js → esm2020/lib/forms/property/index.mjs} +0 -0
- package/{esm2015/lib/forms/property/property-sale/index.js → esm2020/lib/forms/property/property-sale/index.mjs} +0 -0
- package/esm2020/lib/forms/property/property-sale/property-sale-cost-base.form.mjs +39 -0
- package/esm2020/lib/forms/property/property-sale/property-sale-cost-sale.form.mjs +80 -0
- package/esm2020/lib/forms/property/property-sale/property-sale-exemptions.form.mjs +74 -0
- package/esm2020/lib/forms/register/register-client.form.mjs +19 -0
- package/esm2020/lib/forms/register/register-firm.form.mjs +22 -0
- package/{esm2015/lib/forms/report/my-tax/index.js → esm2020/lib/forms/report/my-tax/index.mjs} +0 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.mjs +31 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.mjs +81 -0
- package/{esm2015/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.js → esm2020/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.mjs} +0 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.mjs +79 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-cgt.form.mjs +25 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-deductions.form.mjs +85 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-dividends.form.mjs +23 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-income-statements.form.mjs +92 -0
- package/{esm2015/lib/forms/report/my-tax/my-tax-income-tests.form.js → esm2020/lib/forms/report/my-tax/my-tax-income-tests.form.mjs} +0 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-interest.form.mjs +12 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-losses.form.mjs +11 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-medicare.form.mjs +33 -0
- package/{esm2015/lib/forms/report/my-tax/my-tax-offsets.form.js → esm2020/lib/forms/report/my-tax/my-tax-offsets.form.mjs} +0 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-other-income.form.mjs +43 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.mjs +37 -0
- package/esm2020/lib/forms/report/my-tax/my-tax-rent.form.mjs +13 -0
- package/esm2020/lib/forms/sole/bas-report.form.mjs +58 -0
- package/{esm2015/lib/forms/sole/index.js → esm2020/lib/forms/sole/index.mjs} +0 -0
- package/esm2020/lib/forms/sole/sole-business-allocations.form.mjs +66 -0
- package/esm2020/lib/forms/sole/sole-business-loss.form.mjs +24 -0
- package/esm2020/lib/forms/sole/sole-business.form.mjs +69 -0
- package/esm2020/lib/forms/sole/sole-contact.form.mjs +18 -0
- package/esm2020/lib/forms/sole/sole-depreciation-method.form.mjs +10 -0
- package/esm2020/lib/forms/sole/sole-details.form.mjs +12 -0
- package/esm2020/lib/forms/sole/sole-invoice-item.form.mjs +15 -0
- package/esm2020/lib/forms/sole/sole-invoice-template.form.mjs +15 -0
- package/esm2020/lib/forms/sole/sole-invoice.form.mjs +158 -0
- package/{esm2015/lib/forms/transaction/index.js → esm2020/lib/forms/transaction/index.mjs} +0 -0
- package/{esm2015/lib/forms/transaction/messages.enum.js → esm2020/lib/forms/transaction/messages.enum.mjs} +0 -0
- package/esm2020/lib/forms/transaction/transaction-base.form.mjs +98 -0
- package/esm2020/lib/forms/transaction/transaction.form.mjs +64 -0
- package/{esm2015/lib/forms/transaction/work/work-expense.form.js → esm2020/lib/forms/transaction/work/work-expense.form.mjs} +0 -0
- package/esm2020/lib/forms/transaction/work/work-income.form.mjs +86 -0
- package/{esm2015/lib/forms/transaction/work/work-transaction.form.js → esm2020/lib/forms/transaction/work/work-transaction.form.mjs} +0 -0
- package/{esm2015/lib/forms/user/index.js → esm2020/lib/forms/user/index.mjs} +0 -0
- package/esm2020/lib/forms/user/password.form.mjs +14 -0
- package/esm2020/lib/forms/user/reset-password.form.mjs +11 -0
- package/esm2020/lib/forms/user/user-invite.form.mjs +16 -0
- package/{esm2015/lib/forms/vehicle/index.js → esm2020/lib/forms/vehicle/index.mjs} +0 -0
- package/esm2020/lib/forms/vehicle/vehicle-claim-details.form.mjs +17 -0
- package/esm2020/lib/forms/vehicle/vehicle-claim.form.mjs +30 -0
- package/esm2020/lib/forms/vehicle/vehicle-logbook.form.mjs +63 -0
- package/esm2020/lib/forms/vehicle/vehicle.form.mjs +17 -0
- package/{esm2015/lib/functions/array/index.js → esm2020/lib/functions/array/index.mjs} +0 -0
- package/{esm2015/lib/functions/array/replace.js → esm2020/lib/functions/array/replace.mjs} +0 -0
- package/{esm2015/lib/functions/array/sort-deep.js → esm2020/lib/functions/array/sort-deep.mjs} +0 -0
- package/{esm2015/lib/functions/array/sort.js → esm2020/lib/functions/array/sort.mjs} +0 -0
- package/{esm2015/lib/functions/array/to-array.js → esm2020/lib/functions/array/to-array.mjs} +0 -0
- package/{esm2015/lib/functions/clone-deep.js → esm2020/lib/functions/clone-deep.mjs} +0 -0
- package/{esm2015/lib/functions/create-date.js → esm2020/lib/functions/create-date.mjs} +0 -0
- package/{esm2015/lib/functions/enum-to-list.js → esm2020/lib/functions/enum-to-list.mjs} +0 -0
- package/{esm2015/lib/functions/get-doc-icon.js → esm2020/lib/functions/get-doc-icon.mjs} +0 -0
- package/{esm2015/lib/functions/mat-options-functions.js → esm2020/lib/functions/mat-options-functions.mjs} +0 -0
- package/{esm2015/lib/functions/mat-sort-options.js → esm2020/lib/functions/mat-sort-options.mjs} +0 -0
- package/{esm2015/lib/functions/round-to.js → esm2020/lib/functions/round-to.mjs} +0 -0
- package/{esm2015/lib/functions/tax-review-filter-predicate.js → esm2020/lib/functions/tax-review-filter-predicate.mjs} +0 -0
- package/{esm2015/lib/interceptors/basiq-client-id.interceptor.js → esm2020/lib/interceptors/basiq-client-id.interceptor.mjs} +4 -4
- package/{esm2015/lib/interceptors/basiq-token.interceptor.js → esm2020/lib/interceptors/basiq-token.interceptor.mjs} +4 -4
- package/{esm2015/lib/interceptors/corelogic-interceptor.js → esm2020/lib/interceptors/corelogic-interceptor.mjs} +4 -4
- package/{esm2015/lib/interceptors/financial-year-interceptor.js → esm2020/lib/interceptors/financial-year-interceptor.mjs} +4 -4
- package/{esm2015/lib/interceptors/interceptors.module.js → esm2020/lib/interceptors/interceptors.module.mjs} +5 -5
- package/esm2020/lib/interceptors/jwt-interceptor.mjs +141 -0
- package/{esm2015/lib/interceptors/preloader.interceptor.js → esm2020/lib/interceptors/preloader.interceptor.mjs} +4 -4
- package/{esm2015/lib/interceptors/user-switcher-interceptor.js → esm2020/lib/interceptors/user-switcher-interceptor.mjs} +4 -4
- package/{esm2015/lib/interfaces/asset-entity-type.enum.js → esm2020/lib/interfaces/asset-entity-type.enum.mjs} +0 -0
- package/{esm2015/lib/interfaces/asset-type.enum.js → esm2020/lib/interfaces/asset-type.enum.mjs} +0 -0
- package/{esm2015/lib/interfaces/asset.interface.js → esm2020/lib/interfaces/asset.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/auth-tokens.interface.js → esm2020/lib/interfaces/auth-tokens.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/chart-data.interface.js → esm2020/lib/interfaces/chart-data.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/chart-serie.interface.js → esm2020/lib/interfaces/chart-serie.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/document.interface.js → esm2020/lib/interfaces/document.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/documentable.interface.js → esm2020/lib/interfaces/documentable.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/event-listener.interface.js → esm2020/lib/interfaces/event-listener.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/expense.interface.js → esm2020/lib/interfaces/expense.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/income-source-forecast.interface.js → esm2020/lib/interfaces/income-source-forecast.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/index.js → esm2020/lib/interfaces/index.mjs} +0 -0
- package/{esm2015/lib/interfaces/option.interface.js → esm2020/lib/interfaces/option.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/photoable.js → esm2020/lib/interfaces/photoable.mjs} +0 -0
- package/{esm2015/lib/interfaces/receipt.interface.js → esm2020/lib/interfaces/receipt.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/table-exportable.interface.js → esm2020/lib/interfaces/table-exportable.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/tank.interface.js → esm2020/lib/interfaces/tank.interface.mjs} +0 -0
- package/{esm2015/lib/interfaces/updatable.interface.js → esm2020/lib/interfaces/updatable.interface.mjs} +0 -0
- package/{esm2015/lib/models/account-setup/account-setup-item.js → esm2020/lib/models/account-setup/account-setup-item.mjs} +0 -0
- package/{esm2015/lib/models/account-setup/account-setup-items.const.js → esm2020/lib/models/account-setup/account-setup-items.const.mjs} +0 -0
- package/{esm2015/lib/models/account-setup/account-setup-items.enum.js → esm2020/lib/models/account-setup/account-setup-items.enum.mjs} +0 -0
- package/{esm2015/lib/models/address/address.js → esm2020/lib/models/address/address.mjs} +0 -0
- package/{esm2015/lib/models/address/country.js → esm2020/lib/models/address/country.mjs} +0 -0
- package/{esm2015/lib/models/address/index.js → esm2020/lib/models/address/index.mjs} +0 -0
- package/{esm2015/lib/models/address/states.enum.js → esm2020/lib/models/address/states.enum.mjs} +0 -0
- package/{esm2015/lib/models/badge/badge-color.enum.js → esm2020/lib/models/badge/badge-color.enum.mjs} +0 -0
- package/{esm2015/lib/models/badge/badge.js → esm2020/lib/models/badge/badge.mjs} +0 -0
- package/{esm2015/lib/models/bank/allocation-group.js → esm2020/lib/models/bank/allocation-group.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank-account-chart-data.js → esm2020/lib/models/bank/bank-account-chart-data.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank-account-property.js → esm2020/lib/models/bank/bank-account-property.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank-account-types.const.js → esm2020/lib/models/bank/bank-account-types.const.mjs} +0 -0
- package/esm2020/lib/models/bank/bank-account.mjs +170 -0
- package/{esm2015/lib/models/bank/bank-connection.js → esm2020/lib/models/bank/bank-connection.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank-external-stats.js → esm2020/lib/models/bank/bank-external-stats.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank-login-data.js → esm2020/lib/models/bank/bank-login-data.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank-transaction-chart-data.js → esm2020/lib/models/bank/bank-transaction-chart-data.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank-transaction-summary-fields.enum.js → esm2020/lib/models/bank/bank-transaction-summary-fields.enum.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank-transaction.js → esm2020/lib/models/bank/bank-transaction.mjs} +0 -0
- package/{esm2015/lib/models/bank/bank.js → esm2020/lib/models/bank/bank.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/basiq-config.js → esm2020/lib/models/bank/basiq/basiq-config.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/basiq-connection-data.interface.js → esm2020/lib/models/bank/basiq/basiq-connection-data.interface.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/basiq-connections-response.interface.js → esm2020/lib/models/bank/basiq/basiq-connections-response.interface.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/basiq-job-response.js → esm2020/lib/models/bank/basiq/basiq-job-response.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/basiq-job-step.js → esm2020/lib/models/bank/basiq/basiq-job-step.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/basiq-job.js → esm2020/lib/models/bank/basiq/basiq-job.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/basiq-token-response.interface.js → esm2020/lib/models/bank/basiq/basiq-token-response.interface.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/basiq-token.js → esm2020/lib/models/bank/basiq/basiq-token.mjs} +0 -0
- package/{esm2015/lib/models/bank/basiq/index.js → esm2020/lib/models/bank/basiq/index.mjs} +0 -0
- package/{esm2015/lib/models/bank/index.js → esm2020/lib/models/bank/index.mjs} +0 -0
- package/{esm2015/lib/models/bank/type-loan.const.js → esm2020/lib/models/bank/type-loan.const.mjs} +0 -0
- package/{esm2015/lib/models/borrowing-expense/borrowing-expense-loan.js → esm2020/lib/models/borrowing-expense/borrowing-expense-loan.mjs} +0 -0
- package/{esm2015/lib/models/borrowing-expense/borrowing-expense.js → esm2020/lib/models/borrowing-expense/borrowing-expense.mjs} +0 -0
- package/{esm2015/lib/models/borrowing-expense/index.js → esm2020/lib/models/borrowing-expense/index.mjs} +0 -0
- package/{esm2015/lib/models/chart/chart-data.js → esm2020/lib/models/chart/chart-data.mjs} +0 -0
- package/{esm2015/lib/models/chart/chart-serie.js → esm2020/lib/models/chart/chart-serie.mjs} +0 -0
- package/{esm2015/lib/models/chart-accounts/chart-accounts-categories.const.js → esm2020/lib/models/chart-accounts/chart-accounts-categories.const.mjs} +0 -0
- package/{esm2015/lib/models/chart-accounts/chart-accounts-category.e-collection.js → esm2020/lib/models/chart-accounts/chart-accounts-category.e-collection.mjs} +0 -0
- package/{esm2015/lib/models/chart-accounts/chart-accounts-depreciation.js → esm2020/lib/models/chart-accounts/chart-accounts-depreciation.mjs} +0 -0
- package/{esm2015/lib/models/chart-accounts/chart-accounts-heading.js → esm2020/lib/models/chart-accounts/chart-accounts-heading.mjs} +0 -0
- package/{esm2015/lib/models/chart-accounts/chart-accounts-metadata.js → esm2020/lib/models/chart-accounts/chart-accounts-metadata.mjs} +0 -0
- package/{esm2015/lib/models/chart-accounts/chart-accounts-tax-labels.enum.js → esm2020/lib/models/chart-accounts/chart-accounts-tax-labels.enum.mjs} +0 -0
- package/{esm2015/lib/models/chart-accounts/chart-accounts-value.js → esm2020/lib/models/chart-accounts/chart-accounts-value.mjs} +0 -0
- package/esm2020/lib/models/chart-accounts/chart-accounts.mjs +213 -0
- package/{esm2015/lib/models/chart-accounts/index.js → esm2020/lib/models/chart-accounts/index.mjs} +0 -0
- package/{esm2015/lib/models/chat/chat-view-type.enum.js → esm2020/lib/models/chat/chat-view-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/chat/chat.js → esm2020/lib/models/chat/chat.mjs} +0 -0
- package/{esm2015/lib/models/chat/index.js → esm2020/lib/models/chat/index.mjs} +0 -0
- package/{esm2015/lib/models/chat/message-document.js → esm2020/lib/models/chat/message-document.mjs} +0 -0
- package/{esm2015/lib/models/chat/message.js → esm2020/lib/models/chat/message.mjs} +0 -0
- package/{esm2015/lib/models/client/client-details.js → esm2020/lib/models/client/client-details.mjs} +0 -0
- package/{esm2015/lib/models/client/client-income-types.js → esm2020/lib/models/client/client-income-types.mjs} +0 -0
- package/esm2020/lib/models/client/client-invite.mjs +65 -0
- package/{esm2015/lib/models/client/client-movement.js → esm2020/lib/models/client/client-movement.mjs} +0 -0
- package/{esm2015/lib/models/client/client-portfolio-chart-data.js → esm2020/lib/models/client/client-portfolio-chart-data.mjs} +0 -0
- package/{esm2015/lib/models/client/client-portfolio-report.js → esm2020/lib/models/client/client-portfolio-report.mjs} +0 -0
- package/{esm2015/lib/models/color/alphabet-colors.enum.js → esm2020/lib/models/color/alphabet-colors.enum.mjs} +0 -0
- package/{esm2015/lib/models/depreciation/depreciation-capital-project.js → esm2020/lib/models/depreciation/depreciation-capital-project.mjs} +0 -0
- package/{esm2015/lib/models/depreciation/depreciation-forecast.js → esm2020/lib/models/depreciation/depreciation-forecast.mjs} +0 -0
- package/{esm2015/lib/models/depreciation/depreciation-group-item.js → esm2020/lib/models/depreciation/depreciation-group-item.mjs} +0 -0
- package/{esm2015/lib/models/depreciation/depreciation-group.enum.js → esm2020/lib/models/depreciation/depreciation-group.enum.mjs} +0 -0
- package/{esm2015/lib/models/depreciation/depreciation-group.js → esm2020/lib/models/depreciation/depreciation-group.mjs} +0 -0
- package/{esm2015/lib/models/depreciation/depreciation-groups.const.js → esm2020/lib/models/depreciation/depreciation-groups.const.mjs} +0 -0
- package/{esm2015/lib/models/depreciation/depreciation-lvp-rate.enum.js → esm2020/lib/models/depreciation/depreciation-lvp-rate.enum.mjs} +0 -0
- package/{esm2015/lib/models/depreciation/depreciation-receipt.js → esm2020/lib/models/depreciation/depreciation-receipt.mjs} +0 -0
- package/esm2020/lib/models/depreciation/depreciation.mjs +191 -0
- package/{esm2015/lib/models/depreciation/index.js → esm2020/lib/models/depreciation/index.mjs} +0 -0
- package/{esm2015/lib/models/dictionary/dictionary.js → esm2020/lib/models/dictionary/dictionary.mjs} +0 -0
- package/{esm2015/lib/models/dictionary/index.js → esm2020/lib/models/dictionary/index.mjs} +0 -0
- package/{esm2015/lib/models/document/document-api-url-prefix.enum.js → esm2020/lib/models/document/document-api-url-prefix.enum.mjs} +0 -0
- package/{esm2015/lib/models/document/document-file-types.const.js → esm2020/lib/models/document/document-file-types.const.mjs} +0 -0
- package/{esm2015/lib/models/document/document-folder.js → esm2020/lib/models/document/document-folder.mjs} +0 -0
- package/{esm2015/lib/models/document/document.js → esm2020/lib/models/document/document.mjs} +0 -0
- package/{esm2015/lib/models/document/index.js → esm2020/lib/models/document/index.mjs} +0 -0
- package/{esm2015/lib/models/employee/employee-details.js → esm2020/lib/models/employee/employee-details.mjs} +0 -0
- package/{esm2015/lib/models/employee/employee-invite.js → esm2020/lib/models/employee/employee-invite.mjs} +0 -0
- package/{esm2015/lib/models/endpoint/endpoint.js → esm2020/lib/models/endpoint/endpoint.mjs} +0 -0
- package/{esm2015/lib/models/endpoint/endpoints.const.js → esm2020/lib/models/endpoint/endpoints.const.mjs} +0 -0
- package/{esm2015/lib/models/event/app-event-type.enum.js → esm2020/lib/models/event/app-event-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/event/app-event.js → esm2020/lib/models/event/app-event.mjs} +0 -0
- package/{esm2015/lib/models/event/index.js → esm2020/lib/models/event/index.mjs} +0 -0
- package/{esm2015/lib/models/export/export-cell-type.enum.js → esm2020/lib/models/export/export-cell-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/export/export-cell.js → esm2020/lib/models/export/export-cell.mjs} +0 -0
- package/{esm2015/lib/models/export/export-data-table.js → esm2020/lib/models/export/export-data-table.mjs} +0 -0
- package/{esm2015/lib/models/export/export-format.enum.js → esm2020/lib/models/export/export-format.enum.mjs} +0 -0
- package/{esm2015/lib/models/export/export-row-data-type.enum.js → esm2020/lib/models/export/export-row-data-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/export/export-row.js → esm2020/lib/models/export/export-row.mjs} +0 -0
- package/{esm2015/lib/models/file/file.js → esm2020/lib/models/file/file.mjs} +0 -0
- package/{esm2015/lib/models/file/icons-file.enum.js → esm2020/lib/models/file/icons-file.enum.mjs} +0 -0
- package/{esm2015/lib/models/file/index.js → esm2020/lib/models/file/index.mjs} +0 -0
- package/{esm2015/lib/models/financial-year/financial-year.js → esm2020/lib/models/financial-year/financial-year.mjs} +0 -0
- package/{esm2015/lib/models/financial-year/index.js → esm2020/lib/models/financial-year/index.mjs} +0 -0
- package/{esm2015/lib/models/financial-year/month-name-short.enum.js → esm2020/lib/models/financial-year/month-name-short.enum.mjs} +0 -0
- package/{esm2015/lib/models/financial-year/month-number.enum.js → esm2020/lib/models/financial-year/month-number.enum.mjs} +0 -0
- package/{esm2015/lib/models/financial-year/months.const.js → esm2020/lib/models/financial-year/months.const.mjs} +0 -0
- package/{esm2015/lib/models/firm/firm.js → esm2020/lib/models/firm/firm.mjs} +0 -0
- package/{esm2015/lib/models/income-position/income-position.js → esm2020/lib/models/income-position/income-position.mjs} +0 -0
- package/{esm2015/lib/models/income-source/income-source-chart-data.js → esm2020/lib/models/income-source/income-source-chart-data.mjs} +0 -0
- package/{esm2015/lib/models/income-source/income-source-forecast.js → esm2020/lib/models/income-source/income-source-forecast.mjs} +0 -0
- package/{esm2015/lib/models/income-source/income-source-type.js → esm2020/lib/models/income-source/income-source-type.mjs} +0 -0
- package/{esm2015/lib/models/income-source/income-source.js → esm2020/lib/models/income-source/income-source.mjs} +0 -0
- package/{esm2015/lib/models/income-source/salary-forecast.js → esm2020/lib/models/income-source/salary-forecast.mjs} +0 -0
- package/{esm2015/lib/models/income-source/sole-forecast.js → esm2020/lib/models/income-source/sole-forecast.mjs} +0 -0
- package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +0 -0
- package/{esm2015/lib/models/loan/index.js → esm2020/lib/models/loan/index.mjs} +0 -0
- package/{esm2015/lib/models/loan/loan-max-number-of-payments.enum.js → esm2020/lib/models/loan/loan-max-number-of-payments.enum.mjs} +0 -0
- package/{esm2015/lib/models/loan/loan-payment.js → esm2020/lib/models/loan/loan-payment.mjs} +0 -0
- package/{esm2015/lib/models/loan/loan-payout.js → esm2020/lib/models/loan/loan-payout.mjs} +0 -0
- package/{esm2015/lib/models/loan/loan.js → esm2020/lib/models/loan/loan.mjs} +0 -0
- package/{esm2015/lib/models/notification/index.js → esm2020/lib/models/notification/index.mjs} +0 -0
- package/{esm2015/lib/models/notification/notification.js → esm2020/lib/models/notification/notification.mjs} +0 -0
- package/{esm2015/lib/models/pdf/pdf-orientation.enum.js → esm2020/lib/models/pdf/pdf-orientation.enum.mjs} +0 -0
- package/{esm2015/lib/models/pdf/pdf-settings.js → esm2020/lib/models/pdf/pdf-settings.mjs} +0 -0
- package/{esm2015/lib/models/phone/phone.js → esm2020/lib/models/phone/phone.mjs} +0 -0
- package/{esm2015/lib/models/property/calculation-form-item.js → esm2020/lib/models/property/calculation-form-item.mjs} +0 -0
- package/{esm2015/lib/models/property/calculation-form-type.enum.js → esm2020/lib/models/property/calculation-form-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/property/capital-costs-itmes.const.js → esm2020/lib/models/property/capital-costs-itmes.const.mjs} +0 -0
- package/{esm2015/lib/models/property/corelogic-suggestion.js → esm2020/lib/models/property/corelogic-suggestion.mjs} +0 -0
- package/{esm2015/lib/models/property/index.js → esm2020/lib/models/property/index.mjs} +0 -0
- package/{esm2015/lib/models/property/property-category-movement.js → esm2020/lib/models/property/property-category-movement.mjs} +0 -0
- package/{esm2015/lib/models/property/property-category.js → esm2020/lib/models/property/property-category.mjs} +0 -0
- package/{esm2015/lib/models/property/property-document.js → esm2020/lib/models/property/property-document.mjs} +0 -0
- package/esm2020/lib/models/property/property-equity-chart-data.mjs +164 -0
- package/{esm2015/lib/models/property/property-equity-chart-item.js → esm2020/lib/models/property/property-equity-chart-item.mjs} +0 -0
- package/{esm2015/lib/models/property/property-equity-chart-type.enum.js → esm2020/lib/models/property/property-equity-chart-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/property/property-forecast.js → esm2020/lib/models/property/property-forecast.mjs} +0 -0
- package/{esm2015/lib/models/property/property-sale/index.js → esm2020/lib/models/property/property-sale/index.mjs} +0 -0
- package/esm2020/lib/models/property/property-sale/property-sale-cost-base.mjs +19 -0
- package/{esm2015/lib/models/property/property-sale/property-sale-tax-exemption-metadata.js → esm2020/lib/models/property/property-sale/property-sale-tax-exemption-metadata.mjs} +0 -0
- package/esm2020/lib/models/property/property-sale/property-sale.mjs +42 -0
- package/{esm2015/lib/models/property/property-sale/tax-exemption-metadata.js → esm2020/lib/models/property/property-sale/tax-exemption-metadata.mjs} +0 -0
- package/{esm2015/lib/models/property/property-sale/tax-exemption.js → esm2020/lib/models/property/property-sale/tax-exemption.mjs} +0 -0
- package/esm2020/lib/models/property/property-share.mjs +47 -0
- package/{esm2015/lib/models/property/property-subscription.js → esm2020/lib/models/property/property-subscription.mjs} +0 -0
- package/{esm2015/lib/models/property/property-valuation.js → esm2020/lib/models/property/property-valuation.mjs} +0 -0
- package/esm2020/lib/models/property/property.mjs +242 -0
- package/{esm2015/lib/models/property/share-filter-options.enum.js → esm2020/lib/models/property/share-filter-options.enum.mjs} +0 -0
- package/{esm2015/lib/models/registration-invite/registration-invite.js → esm2020/lib/models/registration-invite/registration-invite.mjs} +0 -0
- package/{esm2015/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.js → esm2020/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/report/depreciation/depreciation-lvp-report-item.js → esm2020/lib/models/report/depreciation/depreciation-lvp-report-item.mjs} +0 -0
- package/{esm2015/lib/models/report/depreciation/depreciation-report-item.js → esm2020/lib/models/report/depreciation/depreciation-report-item.mjs} +0 -0
- package/{esm2015/lib/models/report/depreciation/index.js → esm2020/lib/models/report/depreciation/index.mjs} +0 -0
- package/{esm2015/lib/models/report/index.js → esm2020/lib/models/report/index.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/ato-links.js → esm2020/lib/models/report/my-tax/ato-links.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/index.js → esm2020/lib/models/report/my-tax/index.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.js → esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.js → esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.js → esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.mjs} +0 -0
- package/esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.mjs +15 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.js → esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.js → esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.js → esm2020/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.js → esm2020/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.js → esm2020/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.js → esm2020/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.js → esm2020/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js → esm2020/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.js → esm2020/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.js → esm2020/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.js → esm2020/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.js → esm2020/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-interest/my-tax-interest.js → esm2020/lib/models/report/my-tax/my-tax-interest/my-tax-interest.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-losses/my-tax-losses.js → esm2020/lib/models/report/my-tax/my-tax-losses/my-tax-losses.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.js → esm2020/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.js → esm2020/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.mjs} +0 -0
- package/{esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js → esm2020/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.mjs} +0 -0
- package/esm2020/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +47 -0
- package/{esm2015/lib/models/report/property/index.js → esm2020/lib/models/report/property/index.mjs} +0 -0
- package/{esm2015/lib/models/report/property/property-report-item-depreciation.js → esm2020/lib/models/report/property/property-report-item-depreciation.mjs} +0 -0
- package/{esm2015/lib/models/report/property/property-report-item-transaction.js → esm2020/lib/models/report/property/property-report-item-transaction.mjs} +0 -0
- package/{esm2015/lib/models/report/property/property-report-item.js → esm2020/lib/models/report/property/property-report-item.mjs} +0 -0
- package/{esm2015/lib/models/report/sole/index.js → esm2020/lib/models/report/sole/index.mjs} +0 -0
- package/{esm2015/lib/models/report/sole/sole-business/sole-business-loss-report.js → esm2020/lib/models/report/sole/sole-business/sole-business-loss-report.mjs} +0 -0
- package/{esm2015/lib/models/report/vehicle-expense/vehicle-expense.js → esm2020/lib/models/report/vehicle-expense/vehicle-expense.mjs} +0 -0
- package/{esm2015/lib/models/service-subscription/index.js → esm2020/lib/models/service-subscription/index.mjs} +0 -0
- package/{esm2015/lib/models/service-subscription/module-url-list.const.js → esm2020/lib/models/service-subscription/module-url-list.const.mjs} +0 -0
- package/{esm2015/lib/models/service-subscription/service-payment.js → esm2020/lib/models/service-subscription/service-payment.mjs} +0 -0
- package/{esm2015/lib/models/service-subscription/service-price.js → esm2020/lib/models/service-subscription/service-price.mjs} +0 -0
- package/{esm2015/lib/models/service-subscription/service-product.js → esm2020/lib/models/service-subscription/service-product.mjs} +0 -0
- package/{esm2015/lib/models/service-subscription/service-subscription-item.js → esm2020/lib/models/service-subscription/service-subscription-item.mjs} +0 -0
- package/{esm2015/lib/models/service-subscription/service-subscription.js → esm2020/lib/models/service-subscription/service-subscription.mjs} +0 -0
- package/{esm2015/lib/models/sole/bas-report.js → esm2020/lib/models/sole/bas-report.mjs} +0 -0
- package/{esm2015/lib/models/sole/index.js → esm2020/lib/models/sole/index.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-business-activity.js → esm2020/lib/models/sole/sole-business-activity.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-business-allocation.js → esm2020/lib/models/sole/sole-business-allocation.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-business-loss-offset-rule.js → esm2020/lib/models/sole/sole-business-loss-offset-rule.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-business-loss.js → esm2020/lib/models/sole/sole-business-loss.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-business.js → esm2020/lib/models/sole/sole-business.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-contact.js → esm2020/lib/models/sole/sole-contact.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-depreciation-method.js → esm2020/lib/models/sole/sole-depreciation-method.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-details.js → esm2020/lib/models/sole/sole-details.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-invoice-item.js → esm2020/lib/models/sole/sole-invoice-item.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-invoice-template.js → esm2020/lib/models/sole/sole-invoice-template.mjs} +0 -0
- package/{esm2015/lib/models/sole/sole-invoice.js → esm2020/lib/models/sole/sole-invoice.mjs} +0 -0
- package/{esm2015/lib/models/tax-review/tax-review.js → esm2020/lib/models/tax-review/tax-review.mjs} +0 -0
- package/{esm2015/lib/models/tax-summary/report-item-details.js → esm2020/lib/models/tax-summary/report-item-details.mjs} +0 -0
- package/esm2020/lib/models/tax-summary/report-item.mjs +29 -0
- package/{esm2015/lib/models/tax-summary/tax-summary-section.js → esm2020/lib/models/tax-summary/tax-summary-section.mjs} +0 -0
- package/{esm2015/lib/models/tax-summary/tax-summary-type.enum.js → esm2020/lib/models/tax-summary/tax-summary-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/tax-summary/tax-summary.js → esm2020/lib/models/tax-summary/tax-summary.mjs} +5 -7
- package/{esm2015/lib/models/toast/toast-type.enum.js → esm2020/lib/models/toast/toast-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/toast/toast.js → esm2020/lib/models/toast/toast.mjs} +0 -0
- package/{esm2015/lib/models/transaction/income-amount-type.enum.js → esm2020/lib/models/transaction/income-amount-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/transaction/index.js → esm2020/lib/models/transaction/index.mjs} +0 -0
- package/{esm2015/lib/models/transaction/transaction-allocation.js → esm2020/lib/models/transaction/transaction-allocation.mjs} +0 -0
- package/{esm2015/lib/models/transaction/transaction-category.enum.js → esm2020/lib/models/transaction/transaction-category.enum.mjs} +0 -0
- package/{esm2015/lib/models/transaction/transaction-metadata.js → esm2020/lib/models/transaction/transaction-metadata.mjs} +0 -0
- package/{esm2015/lib/models/transaction/transaction-receipt.js → esm2020/lib/models/transaction/transaction-receipt.mjs} +0 -0
- package/esm2020/lib/models/transaction/transaction.mjs +238 -0
- package/{esm2015/lib/models/user/index.js → esm2020/lib/models/user/index.mjs} +0 -0
- package/{esm2015/lib/models/user/my-account-history-initiated-by.enum.js → esm2020/lib/models/user/my-account-history-initiated-by.enum.mjs} +0 -0
- package/{esm2015/lib/models/user/my-account-history-status.enum.js → esm2020/lib/models/user/my-account-history-status.enum.mjs} +0 -0
- package/{esm2015/lib/models/user/my-account-history-type.enum.js → esm2020/lib/models/user/my-account-history-type.enum.mjs} +0 -0
- package/{esm2015/lib/models/user/my-account-history.js → esm2020/lib/models/user/my-account-history.mjs} +0 -0
- package/{esm2015/lib/models/user/occupation.js → esm2020/lib/models/user/occupation.mjs} +0 -0
- package/{esm2015/lib/models/user/user-roles.const.js → esm2020/lib/models/user/user-roles.const.mjs} +0 -0
- package/{esm2015/lib/models/user/user-to-register.js → esm2020/lib/models/user/user-to-register.mjs} +0 -0
- package/{esm2015/lib/models/user/user-work-position.const.js → esm2020/lib/models/user/user-work-position.const.mjs} +0 -0
- package/{esm2015/lib/models/user/user.js → esm2020/lib/models/user/user.mjs} +3 -3
- package/{esm2015/lib/models/user-event/user-event-setting-field.enum.js → esm2020/lib/models/user-event/user-event-setting-field.enum.mjs} +0 -0
- package/{esm2015/lib/models/user-event/user-event-setting.js → esm2020/lib/models/user-event/user-event-setting.mjs} +0 -0
- package/{esm2015/lib/models/user-event/user-event-type-category.js → esm2020/lib/models/user-event/user-event-type-category.mjs} +0 -0
- package/{esm2015/lib/models/user-event/user-event-type.js → esm2020/lib/models/user-event/user-event-type.mjs} +0 -0
- package/{esm2015/lib/models/vehicle/index.js → esm2020/lib/models/vehicle/index.mjs} +0 -0
- package/{esm2015/lib/models/vehicle/logbook-period.js → esm2020/lib/models/vehicle/logbook-period.mjs} +0 -0
- package/{esm2015/lib/models/vehicle/vehicle-claim-details.js → esm2020/lib/models/vehicle/vehicle-claim-details.mjs} +0 -0
- package/{esm2015/lib/models/vehicle/vehicle-claim.js → esm2020/lib/models/vehicle/vehicle-claim.mjs} +0 -0
- package/esm2020/lib/models/vehicle/vehicle-logbook.mjs +53 -0
- package/{esm2015/lib/models/vehicle/vehicle.js → esm2020/lib/models/vehicle/vehicle.mjs} +0 -0
- package/{esm2015/lib/services/account-setup/account-setup.service.js → esm2020/lib/services/account-setup/account-setup.service.mjs} +4 -4
- package/{esm2015/lib/services/account-setup/index.js → esm2020/lib/services/account-setup/index.mjs} +0 -0
- package/{esm2015/lib/services/affiliate/index.js → esm2020/lib/services/affiliate/index.mjs} +0 -0
- package/{esm2015/lib/services/affiliate/rewardful/index.js → esm2020/lib/services/affiliate/rewardful/index.mjs} +0 -0
- package/{esm2015/lib/services/affiliate/rewardful/rewardful.service.js → esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs} +4 -4
- package/{esm2015/lib/services/asset/assets.service.js → esm2020/lib/services/asset/assets.service.mjs} +4 -4
- package/{esm2015/lib/services/asset/index.js → esm2020/lib/services/asset/index.mjs} +0 -0
- package/{esm2015/lib/services/auth/auth.service.js → esm2020/lib/services/auth/auth.service.mjs} +4 -4
- package/{esm2015/lib/services/auth/index.js → esm2020/lib/services/auth/index.mjs} +0 -0
- package/{esm2015/lib/services/auth/jwt.service.js → esm2020/lib/services/auth/jwt.service.mjs} +4 -4
- package/{esm2015/lib/services/bank/bank-account-calculation.service.js → esm2020/lib/services/bank/bank-account-calculation.service.mjs} +4 -4
- package/{esm2015/lib/services/bank/bank-transaction-calculation.service.js → esm2020/lib/services/bank/bank-transaction-calculation.service.mjs} +4 -4
- package/{esm2015/lib/services/bank/index.js → esm2020/lib/services/bank/index.mjs} +0 -0
- package/{esm2015/lib/services/event/event-dispatcher.service.js → esm2020/lib/services/event/event-dispatcher.service.mjs} +4 -4
- package/{esm2015/lib/services/event/index.js → esm2020/lib/services/event/index.mjs} +0 -0
- package/{esm2015/lib/services/event/sse.service.js → esm2020/lib/services/event/sse.service.mjs} +4 -4
- package/{esm2015/lib/services/export/export-formatter.service.js → esm2020/lib/services/export/export-formatter.service.mjs} +4 -4
- package/{esm2015/lib/services/export/index.js → esm2020/lib/services/export/index.mjs} +0 -0
- package/{esm2015/lib/services/header-title/header-title.service.js → esm2020/lib/services/header-title/header-title.service.mjs} +4 -4
- package/{esm2015/lib/services/header-title/index.js → esm2020/lib/services/header-title/index.mjs} +0 -0
- package/{esm2015/lib/services/http/address/address.service.js → esm2020/lib/services/http/address/address.service.mjs} +4 -4
- package/{esm2015/lib/services/http/address/index.js → esm2020/lib/services/http/address/index.mjs} +0 -0
- package/{esm2015/lib/services/http/bank/bank-account/bank-account.service.js → esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs} +4 -4
- package/{esm2015/lib/services/http/bank/bank-account/index.js → esm2020/lib/services/http/bank/bank-account/index.mjs} +0 -0
- package/{esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js → esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs} +4 -4
- package/{esm2015/lib/services/http/bank/bank-connection/index.js → esm2020/lib/services/http/bank/bank-connection/index.mjs} +0 -0
- package/{esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js → esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs} +4 -4
- package/{esm2015/lib/services/http/bank/bank-transaction/index.js → esm2020/lib/services/http/bank/bank-transaction/index.mjs} +0 -0
- package/{esm2015/lib/services/http/bank/bank.service.js → esm2020/lib/services/http/bank/bank.service.mjs} +4 -4
- package/{esm2015/lib/services/http/bank/basiq/basiq-token.service.js → esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs} +4 -4
- package/{esm2015/lib/services/http/bank/basiq/basiq.service.js → esm2020/lib/services/http/bank/basiq/basiq.service.mjs} +4 -4
- package/{esm2015/lib/services/http/bank/basiq/index.js → esm2020/lib/services/http/bank/basiq/index.mjs} +0 -0
- package/{esm2015/lib/services/http/bank/index.js → esm2020/lib/services/http/bank/index.mjs} +0 -0
- package/{esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js → esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs} +4 -4
- package/{esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/index.js → esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/index.mjs} +0 -0
- package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +49 -0
- package/{esm2015/lib/services/http/chart-accounts/index.js → esm2020/lib/services/http/chart-accounts/index.mjs} +0 -0
- package/{esm2015/lib/services/http/chat/chat.service.js → esm2020/lib/services/http/chat/chat.service.mjs} +6 -6
- package/{esm2015/lib/services/http/chat/index.js → esm2020/lib/services/http/chat/index.mjs} +0 -0
- package/esm2020/lib/services/http/chat/message-document.service.mjs +78 -0
- package/{esm2015/lib/services/http/chat/message.service.js → esm2020/lib/services/http/chat/message.service.mjs} +4 -4
- package/{esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js → esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs} +4 -4
- package/{esm2015/lib/services/http/depreciation/depreciation-capital-project/index.js → esm2020/lib/services/http/depreciation/depreciation-capital-project/index.mjs} +0 -0
- package/{esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js → esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs} +4 -4
- package/{esm2015/lib/services/http/depreciation/depreciation-receipt/index.js → esm2020/lib/services/http/depreciation/depreciation-receipt/index.mjs} +0 -0
- package/{esm2015/lib/services/http/depreciation/depreciation.service.js → esm2020/lib/services/http/depreciation/depreciation.service.mjs} +4 -4
- package/{esm2015/lib/services/http/depreciation/index.js → esm2020/lib/services/http/depreciation/index.mjs} +0 -0
- package/{esm2015/lib/services/http/document/document-folder/document-folder.service.js → esm2020/lib/services/http/document/document-folder/document-folder.service.mjs} +4 -4
- package/{esm2015/lib/services/http/document/document.service.js → esm2020/lib/services/http/document/document.service.mjs} +4 -4
- package/{esm2015/lib/services/http/document/index.js → esm2020/lib/services/http/document/index.mjs} +0 -0
- package/{esm2015/lib/services/http/facebook/facebook-auth-options.interface.js → esm2020/lib/services/http/facebook/facebook-auth-options.interface.mjs} +0 -0
- package/{esm2015/lib/services/http/facebook/facebook-auth-response.interface.js → esm2020/lib/services/http/facebook/facebook-auth-response.interface.mjs} +0 -0
- package/{esm2015/lib/services/http/facebook/facebook-status-response.interface.js → esm2020/lib/services/http/facebook/facebook-status-response.interface.mjs} +0 -0
- package/esm2020/lib/services/http/facebook/facebook.service.mjs +87 -0
- package/{esm2015/lib/services/http/facebook/index.js → esm2020/lib/services/http/facebook/index.mjs} +0 -0
- package/{esm2015/lib/services/http/file/file.service.js → esm2020/lib/services/http/file/file.service.mjs} +4 -4
- package/{esm2015/lib/services/http/file/index.js → esm2020/lib/services/http/file/index.mjs} +0 -0
- package/{esm2015/lib/services/http/firm/client-income/client-income-types.service.js → esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs} +4 -4
- package/{esm2015/lib/services/http/firm/client-income/index.js → esm2020/lib/services/http/firm/client-income/index.mjs} +0 -0
- package/{esm2015/lib/services/http/firm/client-invite/client-invite.service.js → esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs} +4 -4
- package/{esm2015/lib/services/http/firm/client-invite/index.js → esm2020/lib/services/http/firm/client-invite/index.mjs} +0 -0
- package/{esm2015/lib/services/http/firm/client-movement/client-movement.service.js → esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs} +4 -4
- package/{esm2015/lib/services/http/firm/client-movement/index.js → esm2020/lib/services/http/firm/client-movement/index.mjs} +0 -0
- package/{esm2015/lib/services/http/firm/employee/employee.service.js → esm2020/lib/services/http/firm/employee/employee.service.mjs} +4 -4
- package/{esm2015/lib/services/http/firm/employee/index.js → esm2020/lib/services/http/firm/employee/index.mjs} +0 -0
- package/{esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js → esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs} +4 -4
- package/{esm2015/lib/services/http/firm/employee-invite/index.js → esm2020/lib/services/http/firm/employee-invite/index.mjs} +0 -0
- package/{esm2015/lib/services/http/firm/firm.service.js → esm2020/lib/services/http/firm/firm.service.mjs} +4 -4
- package/{esm2015/lib/services/http/firm/index.js → esm2020/lib/services/http/firm/index.mjs} +0 -0
- package/{esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js → esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs} +4 -4
- package/{esm2015/lib/services/http/firm/portfolio-report/index.js → esm2020/lib/services/http/firm/portfolio-report/index.mjs} +0 -0
- package/{esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js → esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs} +4 -4
- package/{esm2015/lib/services/http/income-source/income-source-forecast/index.js → esm2020/lib/services/http/income-source/income-source-forecast/index.mjs} +0 -0
- package/{esm2015/lib/services/http/income-source/income-source.service.js → esm2020/lib/services/http/income-source/income-source.service.mjs} +4 -4
- package/{esm2015/lib/services/http/income-source/index.js → esm2020/lib/services/http/income-source/index.mjs} +0 -0
- package/{esm2015/lib/services/http/income-source/salary-forecast/index.js → esm2020/lib/services/http/income-source/salary-forecast/index.mjs} +0 -0
- package/{esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js → esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs} +4 -4
- package/{esm2015/lib/services/http/income-source/sole-forecast/index.js → esm2020/lib/services/http/income-source/sole-forecast/index.mjs} +0 -0
- package/{esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js → esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs} +4 -4
- package/{esm2015/lib/services/http/index.js → esm2020/lib/services/http/index.mjs} +0 -0
- package/{esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js → esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs} +4 -4
- package/{esm2015/lib/services/http/loan/borrowing-expense/index.js → esm2020/lib/services/http/loan/borrowing-expense/index.mjs} +0 -0
- package/{esm2015/lib/services/http/loan/index.js → esm2020/lib/services/http/loan/index.mjs} +0 -0
- package/{esm2015/lib/services/http/loan/loan.service.js → esm2020/lib/services/http/loan/loan.service.mjs} +4 -4
- package/{esm2015/lib/services/http/property/index.js → esm2020/lib/services/http/property/index.mjs} +0 -0
- package/{esm2015/lib/services/http/property/property-category/index.js → esm2020/lib/services/http/property/property-category/index.mjs} +0 -0
- package/{esm2015/lib/services/http/property/property-category/property-category.service.js → esm2020/lib/services/http/property/property-category/property-category.service.mjs} +4 -4
- package/{esm2015/lib/services/http/property/property-category-movement/index.js → esm2020/lib/services/http/property/property-category-movement/index.mjs} +0 -0
- package/{esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js → esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs} +4 -4
- package/{esm2015/lib/services/http/property/property-document/index.js → esm2020/lib/services/http/property/property-document/index.mjs} +0 -0
- package/{esm2015/lib/services/http/property/property-document/property-document.service.js → esm2020/lib/services/http/property/property-document/property-document.service.mjs} +4 -4
- package/{esm2015/lib/services/http/property/property-sale/index.js → esm2020/lib/services/http/property/property-sale/index.mjs} +0 -0
- package/{esm2015/lib/services/http/property/property-sale/property-sale.service.js → esm2020/lib/services/http/property/property-sale/property-sale.service.mjs} +4 -4
- package/{esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js → esm2020/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.mjs} +4 -4
- package/{esm2015/lib/services/http/property/property-share/index.js → esm2020/lib/services/http/property/property-share/index.mjs} +0 -0
- package/{esm2015/lib/services/http/property/property-share/property-share.service.js → esm2020/lib/services/http/property/property-share/property-share.service.mjs} +4 -4
- package/{esm2015/lib/services/http/property/property.service.js → esm2020/lib/services/http/property/property.service.mjs} +4 -4
- package/{esm2015/lib/services/http/receipt/index.js → esm2020/lib/services/http/receipt/index.mjs} +0 -0
- package/{esm2015/lib/services/http/receipt/receipt.service.js → esm2020/lib/services/http/receipt/receipt.service.mjs} +4 -4
- package/{esm2015/lib/services/http/rest/http-method.type.js → esm2020/lib/services/http/rest/http-method.type.mjs} +0 -0
- package/{esm2015/lib/services/http/rest/index.js → esm2020/lib/services/http/rest/index.mjs} +0 -0
- package/{esm2015/lib/services/http/rest/rest-method.type.js → esm2020/lib/services/http/rest/rest-method.type.mjs} +0 -0
- package/{esm2015/lib/services/http/rest/rest-old.service.js → esm2020/lib/services/http/rest/rest-old.service.mjs} +4 -4
- package/{esm2015/lib/services/http/rest/rest.service.js → esm2020/lib/services/http/rest/rest.service.mjs} +4 -4
- package/{esm2015/lib/services/http/service-notification/index.js → esm2020/lib/services/http/service-notification/index.mjs} +0 -0
- package/{esm2015/lib/services/http/service-notification/service-notification.service.js → esm2020/lib/services/http/service-notification/service-notification.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/bas-report/bas-report.service.js → esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/index.js → esm2020/lib/services/http/sole/index.mjs} +0 -0
- package/{esm2015/lib/services/http/sole/sole-business/messages.enum.js → esm2020/lib/services/http/sole/sole-business/messages.enum.mjs} +0 -0
- package/{esm2015/lib/services/http/sole/sole-business/sole-business.service.js → esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js → esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js → esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js → esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js → esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js → esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/sole-details/sole-details.service.js → esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs} +4 -4
- package/{esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js → esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs} +5 -6
- package/{esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js → esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs} +4 -4
- package/{esm2015/lib/services/http/subscription/index.js → esm2020/lib/services/http/subscription/index.mjs} +0 -0
- package/{esm2015/lib/services/http/subscription/service-payment/service-payment.service.js → esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs} +4 -4
- package/{esm2015/lib/services/http/subscription/service-price/service-price.service.js → esm2020/lib/services/http/subscription/service-price/service-price.service.mjs} +4 -4
- package/{esm2015/lib/services/http/subscription/service-product/service-product.service.js → esm2020/lib/services/http/subscription/service-product/service-product.service.mjs} +4 -4
- package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +128 -0
- package/{esm2015/lib/services/http/tax-review/index.js → esm2020/lib/services/http/tax-review/index.mjs} +0 -0
- package/{esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js → esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs} +4 -4
- package/{esm2015/lib/services/http/tax-review/tax-review.service.js → esm2020/lib/services/http/tax-review/tax-review.service.mjs} +4 -4
- package/{esm2015/lib/services/http/tax-summary/index.js → esm2020/lib/services/http/tax-summary/index.mjs} +0 -0
- package/{esm2015/lib/services/http/tax-summary/tax-summary.service.js → esm2020/lib/services/http/tax-summary/tax-summary.service.mjs} +4 -4
- package/{esm2015/lib/services/http/transaction/index.js → esm2020/lib/services/http/transaction/index.mjs} +0 -0
- package/{esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js → esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs} +4 -4
- package/{esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js → esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs} +4 -4
- package/esm2020/lib/services/http/transaction/transaction.service.mjs +337 -0
- package/{esm2015/lib/services/http/tutorial-video/index.js → esm2020/lib/services/http/tutorial-video/index.mjs} +0 -0
- package/{esm2015/lib/services/http/tutorial-video/tutorial-video-response.interface.js → esm2020/lib/services/http/tutorial-video/tutorial-video-response.interface.mjs} +0 -0
- package/{esm2015/lib/services/http/tutorial-video/tutorial-video.service.js → esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs} +4 -4
- package/{esm2015/lib/services/http/tutorial-video/video-source.interface.js → esm2020/lib/services/http/tutorial-video/video-source.interface.mjs} +0 -0
- package/{esm2015/lib/services/http/user/index.js → esm2020/lib/services/http/user/index.mjs} +0 -0
- package/{esm2015/lib/services/http/user/occupation/occupation.service.js → esm2020/lib/services/http/user/occupation/occupation.service.mjs} +4 -4
- package/{esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js → esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs} +4 -4
- package/{esm2015/lib/services/http/user/user-event-type/user-event-type.service.js → esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs} +4 -4
- package/{esm2015/lib/services/http/user/user.service.js → esm2020/lib/services/http/user/user.service.mjs} +5 -6
- package/{esm2015/lib/services/http/user/users-invite/users-invite.service.js → esm2020/lib/services/http/user/users-invite/users-invite.service.mjs} +4 -4
- package/{esm2015/lib/services/http/vehicle/index.js → esm2020/lib/services/http/vehicle/index.mjs} +0 -0
- package/{esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js → esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs} +4 -4
- package/{esm2015/lib/services/http/vehicle/vehicle-claim.service.js → esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs} +5 -5
- package/{esm2015/lib/services/http/vehicle/vehicle-logbook.service.js → esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs} +4 -4
- package/{esm2015/lib/services/http/vehicle/vehicle.service.js → esm2020/lib/services/http/vehicle/vehicle.service.mjs} +4 -4
- package/{esm2015/lib/services/index.js → esm2020/lib/services/index.mjs} +0 -0
- package/{esm2015/lib/services/intercom/index.js → esm2020/lib/services/intercom/index.mjs} +0 -0
- package/{esm2015/lib/services/intercom/intercom.service.js → esm2020/lib/services/intercom/intercom.service.mjs} +4 -4
- package/{esm2015/lib/services/pdf/index.js → esm2020/lib/services/pdf/index.mjs} +0 -0
- package/{esm2015/lib/services/pdf/pdf-from-dom-element/file-settings.js → esm2020/lib/services/pdf/pdf-from-dom-element/file-settings.mjs} +0 -0
- package/{esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js → esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs} +4 -4
- package/{esm2015/lib/services/pdf/pdf-from-table/file-settings.js → esm2020/lib/services/pdf/pdf-from-table/file-settings.mjs} +0 -0
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +45 -0
- package/{esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js → esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs} +8 -5
- package/{esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js → esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs} +4 -4
- package/{esm2015/lib/services/preloader/index.js → esm2020/lib/services/preloader/index.mjs} +0 -0
- package/{esm2015/lib/services/preloader/preloader.service.js → esm2020/lib/services/preloader/preloader.service.mjs} +4 -4
- package/{esm2015/lib/services/property/corelogic/corelogic.service.js → esm2020/lib/services/property/corelogic/corelogic.service.mjs} +4 -4
- package/{esm2015/lib/services/property/corelogic/index.js → esm2020/lib/services/property/corelogic/index.mjs} +0 -0
- package/{esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js → esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs} +4 -4
- package/{esm2015/lib/services/property/equity-position-chart/index.js → esm2020/lib/services/property/equity-position-chart/index.mjs} +0 -0
- package/{esm2015/lib/services/property/index.js → esm2020/lib/services/property/index.mjs} +0 -0
- package/{esm2015/lib/services/property/property-calculation/index.js → esm2020/lib/services/property/property-calculation/index.mjs} +0 -0
- package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +177 -0
- package/{esm2015/lib/services/report/index.js → esm2020/lib/services/report/index.mjs} +0 -0
- package/{esm2015/lib/services/report/property/property-transaction-report.service.js → esm2020/lib/services/report/property/property-transaction-report.service.mjs} +4 -4
- package/{esm2015/lib/services/toast/index.js → esm2020/lib/services/toast/index.mjs} +0 -0
- package/{esm2015/lib/services/toast/toast.service.js → esm2020/lib/services/toast/toast.service.mjs} +4 -4
- package/{esm2015/lib/services/transaction/index.js → esm2020/lib/services/transaction/index.mjs} +0 -0
- package/{esm2015/lib/services/transaction/transaction-calculation.service.js → esm2020/lib/services/transaction/transaction-calculation.service.mjs} +4 -4
- package/{esm2015/lib/services/user/index.js → esm2020/lib/services/user/index.mjs} +0 -0
- package/{esm2015/lib/services/user/user-switcher.service.js → esm2020/lib/services/user/user-switcher.service.mjs} +4 -4
- package/{esm2015/lib/services/vehicle/index.js → esm2020/lib/services/vehicle/index.mjs} +0 -0
- package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +72 -0
- package/{esm2015/lib/services/xlsx/index.js → esm2020/lib/services/xlsx/index.mjs} +0 -0
- package/{esm2015/lib/services/xlsx/xlsx.service.js → esm2020/lib/services/xlsx/xlsx.service.mjs} +4 -4
- package/{esm2015/lib/tt-core.module.js → esm2020/lib/tt-core.module.mjs} +6 -8
- package/esm2020/lib/validators/address-corelogic.validator.mjs +18 -0
- package/esm2020/lib/validators/at-least-one-enabled.validator.mjs +11 -0
- package/esm2020/lib/validators/at-least-one.validator.mjs +11 -0
- package/{esm2015/lib/validators/autocomplete.validator.js → esm2020/lib/validators/autocomplete.validator.mjs} +1 -1
- package/{esm2015/lib/validators/conditional.validator.js → esm2020/lib/validators/conditional.validator.mjs} +0 -0
- package/{esm2015/lib/validators/current-fin-year.validator.js → esm2020/lib/validators/current-fin-year.validator.mjs} +0 -0
- package/{esm2015/lib/validators/date-range.validator.js → esm2020/lib/validators/date-range.validator.mjs} +1 -1
- package/{esm2015/lib/validators/fields-sum.validator.js → esm2020/lib/validators/fields-sum.validator.mjs} +0 -0
- package/{esm2015/lib/validators/file.validator.js → esm2020/lib/validators/file.validator.mjs} +1 -1
- package/{esm2015/lib/validators/index.js → esm2020/lib/validators/index.mjs} +0 -0
- package/{esm2015/lib/validators/min-date/messages.enum.js → esm2020/lib/validators/min-date/messages.enum.mjs} +0 -0
- package/{esm2015/lib/validators/min-date/min-date.validator.js → esm2020/lib/validators/min-date/min-date.validator.mjs} +0 -0
- package/{esm2015/lib/validators/password-match.validator.js → esm2020/lib/validators/password-match.validator.mjs} +1 -1
- package/{esm2015/lib/validators/password.validator.js → esm2020/lib/validators/password.validator.mjs} +1 -1
- package/{esm2015/lib/validators/phone-number.validator.js → esm2020/lib/validators/phone-number.validator.mjs} +1 -1
- package/{esm2015/lib/validators/required-length.validator.js → esm2020/lib/validators/required-length.validator.mjs} +1 -1
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/{esm2015/taxtank-core.js → esm2020/taxtank-core.mjs} +0 -0
- package/fesm2015/taxtank-core.mjs +18320 -0
- package/fesm2015/taxtank-core.mjs.map +1 -0
- package/{fesm2015/taxtank-core.js → fesm2020/taxtank-core.mjs} +1202 -1237
- package/fesm2020/taxtank-core.mjs.map +1 -0
- package/{taxtank-core.d.ts → index.d.ts} +0 -0
- package/lib/forms/abstract.form.d.ts +2 -2
- package/lib/forms/address/address.form.d.ts +13 -10
- package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts +2 -2
- package/lib/forms/sole/sole-business-allocations.form.d.ts +2 -2
- package/lib/forms/sole/sole-business.form.d.ts +3 -3
- package/lib/forms/sole/sole-invoice.form.d.ts +3 -3
- package/lib/models/vehicle/vehicle-logbook.d.ts +7 -0
- package/package.json +32 -14
- package/bundles/taxtank-core.umd.js +0 -21961
- package/bundles/taxtank-core.umd.js.map +0 -1
- package/esm2015/lib/collections/bank-transaction.collection.js +0 -119
- package/esm2015/lib/collections/client-movement.collection.js +0 -31
- package/esm2015/lib/collections/collection.js +0 -148
- package/esm2015/lib/collections/depreciation.collection.js +0 -126
- package/esm2015/lib/collections/employee.collection.js +0 -12
- package/esm2015/lib/collections/loan/loan.collection.js +0 -34
- package/esm2015/lib/collections/property/property-sale/property-sale-tax-exemption-metadata.collection.js +0 -20
- package/esm2015/lib/collections/property/property-share.collection.js +0 -23
- package/esm2015/lib/collections/sole/sole-business-losses.collection.js +0 -43
- package/esm2015/lib/collections/transaction/transaction.collection.js +0 -242
- package/esm2015/lib/db/Models/transaction/transaction-base.js +0 -89
- package/esm2015/lib/forms/abstract.form.js +0 -69
- package/esm2015/lib/forms/address/address.form.js +0 -170
- package/esm2015/lib/forms/bank/bank-account/bank-account-add-manual.form.js +0 -46
- package/esm2015/lib/forms/bank/bank-account/bank-account-allocation.form.js +0 -46
- package/esm2015/lib/forms/bank/bank-account/bank-account-properties.form.js +0 -66
- package/esm2015/lib/forms/bank/bank-account/bank-accounts-import.form.js +0 -50
- package/esm2015/lib/forms/bank/bank-login.form.js +0 -19
- package/esm2015/lib/forms/client/client-income-types.form.js +0 -17
- package/esm2015/lib/forms/depreciation/depreciation.form.js +0 -38
- package/esm2015/lib/forms/loan/loan.form.js +0 -90
- package/esm2015/lib/forms/login/login.form.js +0 -11
- package/esm2015/lib/forms/phone/phone.form.js +0 -17
- package/esm2015/lib/forms/property/property-sale/property-sale-cost-base.form.js +0 -39
- package/esm2015/lib/forms/property/property-sale/property-sale-cost-sale.form.js +0 -80
- package/esm2015/lib/forms/property/property-sale/property-sale-exemptions.form.js +0 -75
- package/esm2015/lib/forms/register/register-client.form.js +0 -20
- package/esm2015/lib/forms/register/register-firm.form.js +0 -22
- package/esm2015/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.js +0 -32
- package/esm2015/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.js +0 -81
- package/esm2015/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.js +0 -80
- package/esm2015/lib/forms/report/my-tax/my-tax-cgt.form.js +0 -25
- package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +0 -86
- package/esm2015/lib/forms/report/my-tax/my-tax-dividends.form.js +0 -23
- package/esm2015/lib/forms/report/my-tax/my-tax-income-statements.form.js +0 -92
- package/esm2015/lib/forms/report/my-tax/my-tax-interest.form.js +0 -12
- package/esm2015/lib/forms/report/my-tax/my-tax-losses.form.js +0 -11
- package/esm2015/lib/forms/report/my-tax/my-tax-medicare.form.js +0 -33
- package/esm2015/lib/forms/report/my-tax/my-tax-other-income.form.js +0 -43
- package/esm2015/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.js +0 -37
- package/esm2015/lib/forms/report/my-tax/my-tax-rent.form.js +0 -13
- package/esm2015/lib/forms/sole/bas-report.form.js +0 -58
- package/esm2015/lib/forms/sole/sole-business-allocations.form.js +0 -66
- package/esm2015/lib/forms/sole/sole-business-loss.form.js +0 -25
- package/esm2015/lib/forms/sole/sole-business.form.js +0 -69
- package/esm2015/lib/forms/sole/sole-contact.form.js +0 -20
- package/esm2015/lib/forms/sole/sole-depreciation-method.form.js +0 -10
- package/esm2015/lib/forms/sole/sole-details.form.js +0 -12
- package/esm2015/lib/forms/sole/sole-invoice-item.form.js +0 -16
- package/esm2015/lib/forms/sole/sole-invoice-template.form.js +0 -15
- package/esm2015/lib/forms/sole/sole-invoice.form.js +0 -158
- package/esm2015/lib/forms/transaction/transaction-base.form.js +0 -100
- package/esm2015/lib/forms/transaction/transaction.form.js +0 -67
- package/esm2015/lib/forms/transaction/work/work-income.form.js +0 -87
- package/esm2015/lib/forms/user/password.form.js +0 -14
- package/esm2015/lib/forms/user/reset-password.form.js +0 -11
- package/esm2015/lib/forms/user/user-invite.form.js +0 -16
- package/esm2015/lib/forms/vehicle/vehicle-claim-details.form.js +0 -17
- package/esm2015/lib/forms/vehicle/vehicle-claim.form.js +0 -30
- package/esm2015/lib/forms/vehicle/vehicle-logbook.form.js +0 -63
- package/esm2015/lib/forms/vehicle/vehicle.form.js +0 -17
- package/esm2015/lib/interceptors/jwt-interceptor.js +0 -142
- package/esm2015/lib/models/bank/bank-account.js +0 -171
- package/esm2015/lib/models/chart-accounts/chart-accounts.js +0 -215
- package/esm2015/lib/models/client/client-invite.js +0 -67
- package/esm2015/lib/models/depreciation/depreciation.js +0 -198
- package/esm2015/lib/models/property/property-equity-chart-data.js +0 -166
- package/esm2015/lib/models/property/property-sale/property-sale-cost-base.js +0 -20
- package/esm2015/lib/models/property/property-sale/property-sale.js +0 -43
- package/esm2015/lib/models/property/property-share.js +0 -48
- package/esm2015/lib/models/property/property.js +0 -249
- package/esm2015/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.js +0 -16
- package/esm2015/lib/models/report/my-tax/my-tax-rent/my-tax-rent.js +0 -48
- package/esm2015/lib/models/tax-summary/report-item.js +0 -30
- package/esm2015/lib/models/transaction/transaction.js +0 -241
- package/esm2015/lib/models/vehicle/vehicle-logbook.js +0 -46
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +0 -49
- package/esm2015/lib/services/http/chat/message-document.service.js +0 -79
- package/esm2015/lib/services/http/facebook/facebook.service.js +0 -90
- package/esm2015/lib/services/http/subscription/service-subscription/subscription.service.js +0 -131
- package/esm2015/lib/services/http/transaction/transaction.service.js +0 -339
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +0 -40
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +0 -178
- package/esm2015/lib/services/vehicle/logbook-best-period.service.js +0 -72
- package/esm2015/lib/validators/address-corelogic.validator.js +0 -17
- package/esm2015/lib/validators/at-least-one-enabled.validator.js +0 -11
- package/esm2015/lib/validators/at-least-one.validator.js +0 -11
- package/fesm2015/taxtank-core.js.map +0 -1
|
@@ -4,11 +4,11 @@ import * as i1$2 from '@angular/common';
|
|
|
4
4
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
6
|
import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
7
|
-
import { map, mergeMap, filter, catchError, take, switchMap, finalize, first as first$1, skip,
|
|
7
|
+
import { map, mergeMap, filter, catchError, take, switchMap, finalize, first as first$1, skip, debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
|
8
8
|
import { ReplaySubject, Subject, BehaviorSubject, throwError, Observable, of, combineLatest, forkJoin, from, merge as merge$1 } from 'rxjs';
|
|
9
9
|
import { plainToClass, Type, Exclude, Transform, Expose, classToPlain } from 'class-transformer';
|
|
10
10
|
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
11
|
-
import { __decorate
|
|
11
|
+
import { __decorate } from 'tslib';
|
|
12
12
|
import get from 'lodash/get';
|
|
13
13
|
import last from 'lodash/last';
|
|
14
14
|
import flatten from 'lodash/flatten';
|
|
@@ -16,13 +16,13 @@ import hasIn from 'lodash/hasIn';
|
|
|
16
16
|
import first from 'lodash/first';
|
|
17
17
|
import uniqBy from 'lodash/uniqBy';
|
|
18
18
|
import differenceBy from 'lodash/differenceBy';
|
|
19
|
-
import * as moment
|
|
20
|
-
import { DateRange
|
|
19
|
+
import * as moment from 'moment';
|
|
20
|
+
import { DateRange } from 'moment-range';
|
|
21
21
|
import compact from 'lodash/compact';
|
|
22
22
|
import concat from 'lodash/concat';
|
|
23
23
|
import intersection from 'lodash/intersection';
|
|
24
24
|
import cloneDeep$1 from 'lodash/cloneDeep';
|
|
25
|
-
import { Validators,
|
|
25
|
+
import { Validators, UntypedFormGroup, UntypedFormControl, UntypedFormArray, FormArray, FormGroup, FormControl } from '@angular/forms';
|
|
26
26
|
import clone from 'lodash/clone';
|
|
27
27
|
import { EventSourcePolyfill } from 'event-source-polyfill/src/eventsource.min.js';
|
|
28
28
|
import { throwError as throwError$1 } from 'rxjs/internal/observable/throwError';
|
|
@@ -73,9 +73,9 @@ class CorelogicService {
|
|
|
73
73
|
}));
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
77
|
-
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
76
|
+
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 });
|
|
77
|
+
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, providedIn: 'root' });
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, decorators: [{
|
|
79
79
|
type: Injectable,
|
|
80
80
|
args: [{
|
|
81
81
|
providedIn: 'root'
|
|
@@ -115,9 +115,9 @@ class CorelogicInterceptor {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
119
|
-
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
118
|
+
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
119
|
+
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor });
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor, decorators: [{
|
|
121
121
|
type: Injectable
|
|
122
122
|
}], ctorParameters: function () { return [{ type: CorelogicService }, { type: undefined, decorators: [{
|
|
123
123
|
type: Inject,
|
|
@@ -154,9 +154,9 @@ class FinancialYearInterceptor {
|
|
|
154
154
|
return next.handle(clonedReq);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
158
|
-
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
157
|
+
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
158
|
+
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor });
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
|
|
160
160
|
type: Injectable
|
|
161
161
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
162
162
|
type: Inject,
|
|
@@ -170,11 +170,11 @@ class AbstractModel {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
|
|
174
|
-
}
|
|
173
|
+
let Address$1 = class Address extends AbstractModel {
|
|
174
|
+
};
|
|
175
175
|
|
|
176
|
-
|
|
177
|
-
}
|
|
176
|
+
let Country$1 = class Country extends AbstractModel {
|
|
177
|
+
};
|
|
178
178
|
|
|
179
179
|
class Country extends Country$1 {
|
|
180
180
|
/**
|
|
@@ -267,8 +267,8 @@ class BasiqConfig {
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
}
|
|
270
|
+
let BasiqJob$1 = class BasiqJob extends AbstractModel {
|
|
271
|
+
};
|
|
272
272
|
|
|
273
273
|
class BasiqJob extends BasiqJob$1 {
|
|
274
274
|
}
|
|
@@ -297,8 +297,8 @@ __decorate([
|
|
|
297
297
|
class BankAccountBalance extends AbstractModel {
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
|
|
301
|
-
}
|
|
300
|
+
let BankAccountProperty$1 = class BankAccountProperty extends AbstractModel {
|
|
301
|
+
};
|
|
302
302
|
|
|
303
303
|
/**
|
|
304
304
|
* Model, which children should be listened via event dispatcher service ising automatic events
|
|
@@ -312,11 +312,11 @@ class ObservableModel extends AbstractModel {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
|
|
316
|
-
}
|
|
315
|
+
let BankAccount$1 = class BankAccount extends ObservableModel {
|
|
316
|
+
};
|
|
317
317
|
|
|
318
|
-
|
|
319
|
-
}
|
|
318
|
+
let BankConnection$1 = class BankConnection extends ObservableModel {
|
|
319
|
+
};
|
|
320
320
|
|
|
321
321
|
class BankTransactionImport extends AbstractModel {
|
|
322
322
|
}
|
|
@@ -324,38 +324,38 @@ class BankTransactionImport extends AbstractModel {
|
|
|
324
324
|
class BankTransactionRule extends AbstractModel {
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
|
|
328
|
-
}
|
|
327
|
+
let BankTransaction$1 = class BankTransaction extends ObservableModel {
|
|
328
|
+
};
|
|
329
329
|
|
|
330
|
-
|
|
331
|
-
}
|
|
330
|
+
let Bank$1 = class Bank extends AbstractModel {
|
|
331
|
+
};
|
|
332
332
|
|
|
333
333
|
class FinancialDataSystem extends AbstractModel {
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
|
|
337
|
-
}
|
|
336
|
+
let ChartAccountsDepreciation$1 = class ChartAccountsDepreciation extends AbstractModel {
|
|
337
|
+
};
|
|
338
338
|
|
|
339
|
-
|
|
340
|
-
}
|
|
339
|
+
let ChartAccountsHeading$1 = class ChartAccountsHeading extends AbstractModel {
|
|
340
|
+
};
|
|
341
341
|
|
|
342
|
-
|
|
343
|
-
}
|
|
342
|
+
let ChartAccountsMetadata$1 = class ChartAccountsMetadata extends AbstractModel {
|
|
343
|
+
};
|
|
344
344
|
|
|
345
|
-
|
|
346
|
-
}
|
|
345
|
+
let ChartAccountsValue$1 = class ChartAccountsValue extends AbstractModel {
|
|
346
|
+
};
|
|
347
347
|
|
|
348
|
-
|
|
349
|
-
}
|
|
348
|
+
let ChartAccounts$1 = class ChartAccounts extends AbstractModel {
|
|
349
|
+
};
|
|
350
350
|
|
|
351
|
-
|
|
352
|
-
}
|
|
351
|
+
let DepreciationCapitalProject$1 = class DepreciationCapitalProject extends AbstractModel {
|
|
352
|
+
};
|
|
353
353
|
|
|
354
|
-
|
|
355
|
-
}
|
|
354
|
+
let DepreciationForecast$1 = class DepreciationForecast extends AbstractModel {
|
|
355
|
+
};
|
|
356
356
|
|
|
357
|
-
|
|
358
|
-
}
|
|
357
|
+
let DepreciationReceipt$1 = class DepreciationReceipt extends AbstractModel {
|
|
358
|
+
};
|
|
359
359
|
|
|
360
360
|
var TankTypeEnum;
|
|
361
361
|
(function (TankTypeEnum) {
|
|
@@ -395,10 +395,9 @@ class TransactionBase extends ObservableModel {
|
|
|
395
395
|
* Check if current tank is Work
|
|
396
396
|
*/
|
|
397
397
|
isWorkTank() {
|
|
398
|
-
var _a;
|
|
399
398
|
// chart accounts may be empty for new instances
|
|
400
399
|
if (this.chartAccounts) {
|
|
401
|
-
return CHART_ACCOUNTS_CATEGORIES.work.includes(
|
|
400
|
+
return CHART_ACCOUNTS_CATEGORIES.work.includes(this.chartAccounts?.category);
|
|
402
401
|
}
|
|
403
402
|
return !this.isPropertyTank() && !this.isSoleTank();
|
|
404
403
|
}
|
|
@@ -406,10 +405,9 @@ class TransactionBase extends ObservableModel {
|
|
|
406
405
|
* Check if current tank is Sole
|
|
407
406
|
*/
|
|
408
407
|
isSoleTank() {
|
|
409
|
-
var _a;
|
|
410
408
|
// chart accounts may be empty for new instances
|
|
411
409
|
if (this.chartAccounts) {
|
|
412
|
-
return CHART_ACCOUNTS_CATEGORIES.sole.includes(
|
|
410
|
+
return CHART_ACCOUNTS_CATEGORIES.sole.includes(this.chartAccounts?.category);
|
|
413
411
|
}
|
|
414
412
|
return !!this.business;
|
|
415
413
|
}
|
|
@@ -449,152 +447,152 @@ __decorate([
|
|
|
449
447
|
Exclude()
|
|
450
448
|
], TransactionBase.prototype, "gstClaimAmount", null);
|
|
451
449
|
|
|
452
|
-
|
|
453
|
-
}
|
|
450
|
+
let Depreciation$1 = class Depreciation extends TransactionBase {
|
|
451
|
+
};
|
|
454
452
|
|
|
455
453
|
class DocumentBase extends AbstractModel {
|
|
456
454
|
}
|
|
457
455
|
|
|
458
|
-
|
|
459
|
-
}
|
|
456
|
+
let DocumentFolder$1 = class DocumentFolder extends AbstractModel {
|
|
457
|
+
};
|
|
460
458
|
|
|
461
|
-
|
|
462
|
-
}
|
|
459
|
+
let Document$1 = class Document extends AbstractModel {
|
|
460
|
+
};
|
|
463
461
|
|
|
464
|
-
|
|
462
|
+
let PropertyDocument$1 = class PropertyDocument extends AbstractModel {
|
|
465
463
|
getApiUrlPrefix() {
|
|
466
464
|
return '';
|
|
467
465
|
}
|
|
468
466
|
getEntity() {
|
|
469
467
|
return undefined;
|
|
470
468
|
}
|
|
471
|
-
}
|
|
469
|
+
};
|
|
472
470
|
|
|
473
|
-
|
|
474
|
-
}
|
|
471
|
+
let TaxReview$1 = class TaxReview extends AbstractModel {
|
|
472
|
+
};
|
|
475
473
|
|
|
476
474
|
class Ticket extends AbstractModel {
|
|
477
475
|
}
|
|
478
476
|
|
|
479
|
-
|
|
480
|
-
}
|
|
477
|
+
let Chat$1 = class Chat extends AbstractModel {
|
|
478
|
+
};
|
|
481
479
|
|
|
482
|
-
|
|
483
|
-
}
|
|
480
|
+
let ClientInvite$1 = class ClientInvite extends AbstractModel {
|
|
481
|
+
};
|
|
484
482
|
|
|
485
|
-
|
|
486
|
-
}
|
|
483
|
+
let ClientMovement$1 = class ClientMovement extends AbstractModel {
|
|
484
|
+
};
|
|
487
485
|
|
|
488
|
-
|
|
489
|
-
}
|
|
486
|
+
let EmployeeInvite$1 = class EmployeeInvite extends AbstractModel {
|
|
487
|
+
};
|
|
490
488
|
|
|
491
489
|
class FirmInvite extends AbstractModel {
|
|
492
490
|
}
|
|
493
491
|
|
|
494
|
-
|
|
495
|
-
}
|
|
492
|
+
let Firm$1 = class Firm extends AbstractModel {
|
|
493
|
+
};
|
|
496
494
|
|
|
497
|
-
|
|
498
|
-
}
|
|
495
|
+
let MessageDocument$1 = class MessageDocument extends AbstractModel {
|
|
496
|
+
};
|
|
499
497
|
|
|
500
|
-
|
|
501
|
-
}
|
|
498
|
+
let Message$1 = class Message extends ObservableModel {
|
|
499
|
+
};
|
|
502
500
|
|
|
503
|
-
|
|
504
|
-
}
|
|
501
|
+
let IncomeSourceForecast$1 = class IncomeSourceForecast extends AbstractModel {
|
|
502
|
+
};
|
|
505
503
|
|
|
506
|
-
|
|
507
|
-
}
|
|
504
|
+
let IncomeSourceType$1 = class IncomeSourceType extends AbstractModel {
|
|
505
|
+
};
|
|
508
506
|
|
|
509
|
-
|
|
510
|
-
}
|
|
507
|
+
let IncomeSource$1 = class IncomeSource extends AbstractModel {
|
|
508
|
+
};
|
|
511
509
|
|
|
512
|
-
|
|
513
|
-
}
|
|
510
|
+
let SalaryForecast$1 = class SalaryForecast extends AbstractModel {
|
|
511
|
+
};
|
|
514
512
|
|
|
515
|
-
|
|
516
|
-
}
|
|
513
|
+
let BorrowingExpenseLoan$1 = class BorrowingExpenseLoan extends AbstractModel {
|
|
514
|
+
};
|
|
517
515
|
|
|
518
|
-
|
|
519
|
-
}
|
|
516
|
+
let BorrowingExpense$1 = class BorrowingExpense extends AbstractModel {
|
|
517
|
+
};
|
|
520
518
|
|
|
521
|
-
|
|
522
|
-
}
|
|
519
|
+
let LoanPayout$1 = class LoanPayout extends ObservableModel {
|
|
520
|
+
};
|
|
523
521
|
|
|
524
|
-
|
|
525
|
-
}
|
|
522
|
+
let Loan$1 = class Loan extends ObservableModel {
|
|
523
|
+
};
|
|
526
524
|
|
|
527
|
-
|
|
528
|
-
}
|
|
525
|
+
let PropertySaleTaxExemptionMetadata$1 = class PropertySaleTaxExemptionMetadata extends AbstractModel {
|
|
526
|
+
};
|
|
529
527
|
|
|
530
|
-
|
|
531
|
-
}
|
|
528
|
+
let PropertySale$1 = class PropertySale extends ObservableModel {
|
|
529
|
+
};
|
|
532
530
|
|
|
533
|
-
|
|
534
|
-
}
|
|
531
|
+
let TaxExemptionMetadata$1 = class TaxExemptionMetadata extends AbstractModel {
|
|
532
|
+
};
|
|
535
533
|
|
|
536
|
-
|
|
537
|
-
}
|
|
534
|
+
let TaxExemption$1 = class TaxExemption extends AbstractModel {
|
|
535
|
+
};
|
|
538
536
|
|
|
539
|
-
|
|
540
|
-
}
|
|
537
|
+
let PropertyCategoryMovement$1 = class PropertyCategoryMovement extends ObservableModel {
|
|
538
|
+
};
|
|
541
539
|
|
|
542
|
-
|
|
543
|
-
}
|
|
540
|
+
let PropertyCategory$1 = class PropertyCategory extends ObservableModel {
|
|
541
|
+
};
|
|
544
542
|
|
|
545
|
-
|
|
546
|
-
}
|
|
543
|
+
let PropertyForecast$1 = class PropertyForecast extends AbstractModel {
|
|
544
|
+
};
|
|
547
545
|
|
|
548
|
-
|
|
549
|
-
}
|
|
546
|
+
let PropertyShare$1 = class PropertyShare extends ObservableModel {
|
|
547
|
+
};
|
|
550
548
|
|
|
551
|
-
|
|
552
|
-
}
|
|
549
|
+
let PropertySubscription$1 = class PropertySubscription extends AbstractModel {
|
|
550
|
+
};
|
|
553
551
|
|
|
554
|
-
|
|
555
|
-
}
|
|
552
|
+
let PropertyValuation$1 = class PropertyValuation extends AbstractModel {
|
|
553
|
+
};
|
|
556
554
|
|
|
557
|
-
|
|
558
|
-
}
|
|
555
|
+
let Property$1 = class Property extends ObservableModel {
|
|
556
|
+
};
|
|
559
557
|
|
|
560
|
-
|
|
561
|
-
}
|
|
558
|
+
let BasReport$1 = class BasReport extends AbstractModel {
|
|
559
|
+
};
|
|
562
560
|
|
|
563
|
-
|
|
564
|
-
}
|
|
561
|
+
let SoleBusinessActivity$1 = class SoleBusinessActivity extends AbstractModel {
|
|
562
|
+
};
|
|
565
563
|
|
|
566
|
-
|
|
567
|
-
}
|
|
564
|
+
let SoleBusinessAllocation$1 = class SoleBusinessAllocation extends AbstractModel {
|
|
565
|
+
};
|
|
568
566
|
|
|
569
|
-
|
|
570
|
-
}
|
|
567
|
+
let SoleBusinessLossOffsetRule$1 = class SoleBusinessLossOffsetRule extends AbstractModel {
|
|
568
|
+
};
|
|
571
569
|
|
|
572
|
-
|
|
573
|
-
}
|
|
570
|
+
let SoleBusinessLoss$1 = class SoleBusinessLoss extends AbstractModel {
|
|
571
|
+
};
|
|
574
572
|
|
|
575
|
-
|
|
576
|
-
}
|
|
573
|
+
let SoleBusiness$1 = class SoleBusiness extends AbstractModel {
|
|
574
|
+
};
|
|
577
575
|
|
|
578
|
-
|
|
579
|
-
}
|
|
576
|
+
let SoleContact$1 = class SoleContact extends AbstractModel {
|
|
577
|
+
};
|
|
580
578
|
|
|
581
|
-
|
|
582
|
-
}
|
|
579
|
+
let SoleDepreciationMethod$1 = class SoleDepreciationMethod extends AbstractModel {
|
|
580
|
+
};
|
|
583
581
|
|
|
584
|
-
|
|
585
|
-
}
|
|
582
|
+
let SoleDetails$1 = class SoleDetails extends AbstractModel {
|
|
583
|
+
};
|
|
586
584
|
|
|
587
|
-
|
|
588
|
-
}
|
|
585
|
+
let SoleForecast$1 = class SoleForecast extends AbstractModel {
|
|
586
|
+
};
|
|
589
587
|
|
|
590
|
-
|
|
591
|
-
}
|
|
588
|
+
let SoleInvoiceItem$1 = class SoleInvoiceItem extends AbstractModel {
|
|
589
|
+
};
|
|
592
590
|
|
|
593
|
-
|
|
594
|
-
}
|
|
591
|
+
let SoleInvoiceTemplate$1 = class SoleInvoiceTemplate extends AbstractModel {
|
|
592
|
+
};
|
|
595
593
|
|
|
596
|
-
|
|
597
|
-
}
|
|
594
|
+
let SoleInvoice$1 = class SoleInvoice extends AbstractModel {
|
|
595
|
+
};
|
|
598
596
|
|
|
599
597
|
class SpareDocumentCategory extends AbstractModel {
|
|
600
598
|
}
|
|
@@ -602,20 +600,20 @@ class SpareDocumentCategory extends AbstractModel {
|
|
|
602
600
|
class SpareDocument extends AbstractModel {
|
|
603
601
|
}
|
|
604
602
|
|
|
605
|
-
|
|
606
|
-
}
|
|
603
|
+
let ServicePayment$1 = class ServicePayment extends AbstractModel {
|
|
604
|
+
};
|
|
607
605
|
|
|
608
|
-
|
|
609
|
-
}
|
|
606
|
+
let ServicePrice$1 = class ServicePrice extends AbstractModel {
|
|
607
|
+
};
|
|
610
608
|
|
|
611
|
-
|
|
612
|
-
}
|
|
609
|
+
let ServiceProduct$1 = class ServiceProduct extends AbstractModel {
|
|
610
|
+
};
|
|
613
611
|
|
|
614
|
-
|
|
615
|
-
}
|
|
612
|
+
let ServiceSubscriptionItem$1 = class ServiceSubscriptionItem extends AbstractModel {
|
|
613
|
+
};
|
|
616
614
|
|
|
617
|
-
|
|
618
|
-
}
|
|
615
|
+
let ServiceSubscription$1 = class ServiceSubscription extends ObservableModel {
|
|
616
|
+
};
|
|
619
617
|
|
|
620
618
|
class TaxReturnCategory extends AbstractModel {
|
|
621
619
|
}
|
|
@@ -623,65 +621,65 @@ class TaxReturnCategory extends AbstractModel {
|
|
|
623
621
|
class TaxReturn extends AbstractModel {
|
|
624
622
|
}
|
|
625
623
|
|
|
626
|
-
|
|
627
|
-
}
|
|
624
|
+
let TransactionAllocation$1 = class TransactionAllocation extends AbstractModel {
|
|
625
|
+
};
|
|
628
626
|
|
|
629
|
-
|
|
630
|
-
}
|
|
627
|
+
let TransactionMetadata$1 = class TransactionMetadata extends AbstractModel {
|
|
628
|
+
};
|
|
631
629
|
|
|
632
|
-
|
|
633
|
-
}
|
|
630
|
+
let TransactionReceipt$1 = class TransactionReceipt extends AbstractModel {
|
|
631
|
+
};
|
|
634
632
|
|
|
635
|
-
|
|
636
|
-
}
|
|
633
|
+
let Transaction$1 = class Transaction extends TransactionBase {
|
|
634
|
+
};
|
|
637
635
|
|
|
638
|
-
|
|
639
|
-
}
|
|
636
|
+
let ClientDetails$1 = class ClientDetails extends AbstractModel {
|
|
637
|
+
};
|
|
640
638
|
|
|
641
|
-
|
|
642
|
-
}
|
|
639
|
+
let ClientIncomeTypes$1 = class ClientIncomeTypes extends ObservableModel {
|
|
640
|
+
};
|
|
643
641
|
|
|
644
|
-
|
|
645
|
-
}
|
|
642
|
+
let EmployeeDetails$1 = class EmployeeDetails extends AbstractModel {
|
|
643
|
+
};
|
|
646
644
|
|
|
647
|
-
|
|
648
|
-
}
|
|
645
|
+
let Occupation$1 = class Occupation extends AbstractModel {
|
|
646
|
+
};
|
|
649
647
|
|
|
650
|
-
|
|
651
|
-
}
|
|
648
|
+
let RegistrationInvite$1 = class RegistrationInvite extends AbstractModel {
|
|
649
|
+
};
|
|
652
650
|
|
|
653
|
-
|
|
654
|
-
}
|
|
651
|
+
let UserEventSetting$1 = class UserEventSetting extends AbstractModel {
|
|
652
|
+
};
|
|
655
653
|
|
|
656
|
-
|
|
657
|
-
}
|
|
654
|
+
let UserEventTypeCategory$1 = class UserEventTypeCategory extends AbstractModel {
|
|
655
|
+
};
|
|
658
656
|
|
|
659
|
-
|
|
660
|
-
}
|
|
657
|
+
let UserEventType$1 = class UserEventType extends AbstractModel {
|
|
658
|
+
};
|
|
661
659
|
|
|
662
660
|
class UserEvent extends AbstractModel {
|
|
663
661
|
}
|
|
664
662
|
|
|
665
|
-
|
|
666
|
-
}
|
|
663
|
+
let User$1 = class User extends AbstractModel {
|
|
664
|
+
};
|
|
667
665
|
|
|
668
|
-
|
|
669
|
-
}
|
|
666
|
+
let VehicleClaimDetails$1 = class VehicleClaimDetails extends AbstractModel {
|
|
667
|
+
};
|
|
670
668
|
|
|
671
|
-
|
|
672
|
-
}
|
|
669
|
+
let VehicleClaim$1 = class VehicleClaim extends AbstractModel {
|
|
670
|
+
};
|
|
673
671
|
|
|
674
|
-
|
|
675
|
-
}
|
|
672
|
+
let VehicleLogbook$1 = class VehicleLogbook extends AbstractModel {
|
|
673
|
+
};
|
|
676
674
|
|
|
677
|
-
|
|
678
|
-
}
|
|
675
|
+
let Vehicle$1 = class Vehicle extends AbstractModel {
|
|
676
|
+
};
|
|
679
677
|
|
|
680
|
-
|
|
681
|
-
}
|
|
678
|
+
let File$1 = class File extends AbstractModel {
|
|
679
|
+
};
|
|
682
680
|
|
|
683
|
-
|
|
684
|
-
}
|
|
681
|
+
let Phone$1 = class Phone extends AbstractModel {
|
|
682
|
+
};
|
|
685
683
|
|
|
686
684
|
class ServiceNotification extends AbstractModel {
|
|
687
685
|
}
|
|
@@ -1156,8 +1154,7 @@ class Collection {
|
|
|
1156
1154
|
return this.items.find((model) => value === get(model, path));
|
|
1157
1155
|
}
|
|
1158
1156
|
findIndexBy(path, value) {
|
|
1159
|
-
|
|
1160
|
-
return (_a = this.items.findIndex((item) => get(item, path) === value)) !== null && _a !== void 0 ? _a : null;
|
|
1157
|
+
return this.items.findIndex((item) => get(item, path) === value) ?? null;
|
|
1161
1158
|
}
|
|
1162
1159
|
push(...items) {
|
|
1163
1160
|
this.items.push(...items);
|
|
@@ -1565,14 +1562,14 @@ class LoanCollection extends Collection {
|
|
|
1565
1562
|
* @param ids list of bank accounts ids for filter
|
|
1566
1563
|
*/
|
|
1567
1564
|
getByBankAccountsIds(ids) {
|
|
1568
|
-
return new LoanCollection(this.items.filter((loan) =>
|
|
1565
|
+
return new LoanCollection(this.items.filter((loan) => ids.includes(loan.bankAccount?.id)));
|
|
1569
1566
|
}
|
|
1570
1567
|
/**
|
|
1571
1568
|
* Get single loan by bank account id
|
|
1572
1569
|
* @param id id of bank account
|
|
1573
1570
|
*/
|
|
1574
1571
|
getByBankAccountId(id) {
|
|
1575
|
-
return this.items.find((loan) =>
|
|
1572
|
+
return this.items.find((loan) => loan.bankAccount?.id === id);
|
|
1576
1573
|
}
|
|
1577
1574
|
/**
|
|
1578
1575
|
* Get list of current fin year payments grouped by loan id
|
|
@@ -1616,16 +1613,13 @@ var TaxExemptionMetadataEnum;
|
|
|
1616
1613
|
|
|
1617
1614
|
class PropertySaleTaxExemptionMetadataCollection extends Collection {
|
|
1618
1615
|
getPPRDays() {
|
|
1619
|
-
|
|
1620
|
-
return (_b = (_a = this.getByMetadataId(TaxExemptionMetadataEnum.PPR_DAYS)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
|
|
1616
|
+
return this.getByMetadataId(TaxExemptionMetadataEnum.PPR_DAYS)?.value ?? 0;
|
|
1621
1617
|
}
|
|
1622
1618
|
getMarketValue() {
|
|
1623
|
-
|
|
1624
|
-
return (_b = (_a = this.getByMetadataId(TaxExemptionMetadataEnum.MARKET_VALUE)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0;
|
|
1619
|
+
return this.getByMetadataId(TaxExemptionMetadataEnum.MARKET_VALUE)?.value ?? 0;
|
|
1625
1620
|
}
|
|
1626
1621
|
getClaimPercent() {
|
|
1627
|
-
|
|
1628
|
-
return (_b = (_a = this.getByMetadataId(TaxExemptionMetadataEnum.CLAIM_PERCENT)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 100;
|
|
1622
|
+
return this.getByMetadataId(TaxExemptionMetadataEnum.CLAIM_PERCENT)?.value ?? 100;
|
|
1629
1623
|
}
|
|
1630
1624
|
getByMetadataId(id) {
|
|
1631
1625
|
return this.items.find((metadata) => metadata.metadata.id === id);
|
|
@@ -1768,8 +1762,7 @@ class PropertyShareCollection extends Collection {
|
|
|
1768
1762
|
*/
|
|
1769
1763
|
getIncoming() {
|
|
1770
1764
|
return this.filter((propertyShare) => {
|
|
1771
|
-
|
|
1772
|
-
return ((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId');
|
|
1765
|
+
return propertyShare.user?.isLoggedIn() && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId');
|
|
1773
1766
|
});
|
|
1774
1767
|
}
|
|
1775
1768
|
/**
|
|
@@ -1778,7 +1771,7 @@ class PropertyShareCollection extends Collection {
|
|
|
1778
1771
|
* @TODO Alex: rename
|
|
1779
1772
|
*/
|
|
1780
1773
|
getOutcoming() {
|
|
1781
|
-
return this.filter((propertyShare) =>
|
|
1774
|
+
return this.filter((propertyShare) => !propertyShare.user?.isLoggedIn());
|
|
1782
1775
|
}
|
|
1783
1776
|
}
|
|
1784
1777
|
|
|
@@ -2104,7 +2097,7 @@ class DepreciationForecast extends DepreciationForecast$1 {
|
|
|
2104
2097
|
return this.claimAmount / this.daysApplied;
|
|
2105
2098
|
}
|
|
2106
2099
|
get daysApplied() {
|
|
2107
|
-
return moment
|
|
2100
|
+
return moment(this.toDate).diff(moment(this.fromDate), 'days');
|
|
2108
2101
|
}
|
|
2109
2102
|
getDaysByMonth(month) {
|
|
2110
2103
|
// @TODO find a better place
|
|
@@ -2433,8 +2426,7 @@ class ChartAccounts extends ChartAccounts$1 {
|
|
|
2433
2426
|
return this.category === ChartAccountsCategoryEnum.WORK_INCOME;
|
|
2434
2427
|
}
|
|
2435
2428
|
isVehicleExpense() {
|
|
2436
|
-
|
|
2437
|
-
return !!ChartAccountsHeadingVehicleListEnum[(_a = this.heading) === null || _a === void 0 ? void 0 : _a.id];
|
|
2429
|
+
return !!ChartAccountsHeadingVehicleListEnum[this.heading?.id];
|
|
2438
2430
|
}
|
|
2439
2431
|
/**
|
|
2440
2432
|
* Check if chart accounts is other income
|
|
@@ -2513,7 +2505,6 @@ class ChartAccounts extends ChartAccounts$1 {
|
|
|
2513
2505
|
* tax type depends on chart account heading or category.
|
|
2514
2506
|
*/
|
|
2515
2507
|
getTaxLabel() {
|
|
2516
|
-
var _a, _b;
|
|
2517
2508
|
// get simple array of ids from enum with taxable chart accounts headings
|
|
2518
2509
|
const taxableCAHeadingsIds = enumToList(ChartAccountsHeadingTaxableEnum)
|
|
2519
2510
|
.map((item) => item.value);
|
|
@@ -2523,9 +2514,9 @@ class ChartAccounts extends ChartAccounts$1 {
|
|
|
2523
2514
|
// check if one of ids arrays includes current chart accounts heading id and set tax label
|
|
2524
2515
|
// otherwise label is empty for this class
|
|
2525
2516
|
switch (true) {
|
|
2526
|
-
case taxableCAHeadingsIds.includes(
|
|
2517
|
+
case taxableCAHeadingsIds.includes(this.heading?.id):
|
|
2527
2518
|
return ChartAccountsTaxLabelsEnum.TAX_PAID;
|
|
2528
|
-
case deductibleCAHeadingsIds.includes(
|
|
2519
|
+
case deductibleCAHeadingsIds.includes(this.heading?.id):
|
|
2529
2520
|
return ChartAccountsTaxLabelsEnum.TAX_DEDUCTED;
|
|
2530
2521
|
case CHART_ACCOUNTS_CATEGORIES.workIncome.includes(this.category):
|
|
2531
2522
|
return ChartAccountsTaxLabelsEnum.TAX_WITHHELD;
|
|
@@ -3220,8 +3211,6 @@ __decorate([
|
|
|
3220
3211
|
Type(() => Date)
|
|
3221
3212
|
], LogbookPeriod.prototype, "to", void 0);
|
|
3222
3213
|
|
|
3223
|
-
// problem with DateRange and typescript. See more https://github.com/rotaready/moment-range/issues/263
|
|
3224
|
-
const moment = extendMoment(moment$1);
|
|
3225
3214
|
class VehicleLogbook extends VehicleLogbook$1 {
|
|
3226
3215
|
get kilometers() {
|
|
3227
3216
|
return this.odometerEnd - this.odometerStart;
|
|
@@ -3239,7 +3228,12 @@ class VehicleLogbook extends VehicleLogbook$1 {
|
|
|
3239
3228
|
* Get logbook period date range from logbook date and weeksInPeriod duration
|
|
3240
3229
|
*/
|
|
3241
3230
|
getPeriod() {
|
|
3242
|
-
|
|
3231
|
+
/**
|
|
3232
|
+
* Hack: The library is using not by documentation, but works
|
|
3233
|
+
* moment-range is broken since we updated Typescript to v4 (https://github.com/rotaready/moment-range/issues/238)
|
|
3234
|
+
* extendMoment(Moment) cause error and broke the app
|
|
3235
|
+
*/
|
|
3236
|
+
return new DateRange([this.date, new Date(this.date.getTime() + VehicleLogbook.bestPeriodDuration)]);
|
|
3243
3237
|
}
|
|
3244
3238
|
}
|
|
3245
3239
|
/**
|
|
@@ -3458,8 +3452,7 @@ class Transaction extends Transaction$1 {
|
|
|
3458
3452
|
this.amount = 0;
|
|
3459
3453
|
}
|
|
3460
3454
|
get invoiceId() {
|
|
3461
|
-
|
|
3462
|
-
return (_a = this.soleInvoiceItem) === null || _a === void 0 ? void 0 : _a.invoice.id;
|
|
3455
|
+
return this.soleInvoiceItem?.invoice.id;
|
|
3463
3456
|
}
|
|
3464
3457
|
isDebit() {
|
|
3465
3458
|
return this.type === TransactionTypeEnum.DEBIT;
|
|
@@ -3554,10 +3547,9 @@ class Transaction extends Transaction$1 {
|
|
|
3554
3547
|
* @Todo modify 'metadata' property from array to Collection
|
|
3555
3548
|
*/
|
|
3556
3549
|
getMetadataFieldValue(field) {
|
|
3557
|
-
|
|
3558
|
-
return +((_a = this.metadata.find((transactionMetadata) => {
|
|
3550
|
+
return +this.metadata.find((transactionMetadata) => {
|
|
3559
3551
|
return transactionMetadata.chartAccountsMetadata.id === field;
|
|
3560
|
-
})
|
|
3552
|
+
})?.value || 0;
|
|
3561
3553
|
}
|
|
3562
3554
|
isCash() {
|
|
3563
3555
|
return this.source === TransactionSourceEnum.CASH;
|
|
@@ -3606,7 +3598,7 @@ class Transaction extends Transaction$1 {
|
|
|
3606
3598
|
}
|
|
3607
3599
|
// salary included transactions affect parent transaction amount and as a result grossAmount, skip to avoid double sum
|
|
3608
3600
|
grossAmount += new Collection(this.transactions)
|
|
3609
|
-
.filter((t) =>
|
|
3601
|
+
.filter((t) => !t.chartAccounts?.isSalaryIncluded())
|
|
3610
3602
|
.sumBy('amount', true);
|
|
3611
3603
|
if (this.isWorkTank()) {
|
|
3612
3604
|
grossAmount += this.frankingCredit - this.taxFreeComponent - this.eligibleForReduction;
|
|
@@ -3620,7 +3612,7 @@ class Transaction extends Transaction$1 {
|
|
|
3620
3612
|
*/
|
|
3621
3613
|
get netAmount() {
|
|
3622
3614
|
return new Collection(this.transactions)
|
|
3623
|
-
.filter((t) =>
|
|
3615
|
+
.filter((t) => t.chartAccounts?.isSalaryIncluded())
|
|
3624
3616
|
.sumBy('amount') + this.amountWithGst;
|
|
3625
3617
|
}
|
|
3626
3618
|
/**
|
|
@@ -3628,8 +3620,7 @@ class Transaction extends Transaction$1 {
|
|
|
3628
3620
|
* user's choice and transform amount, but there are exceptions like advance (negative or positive amount)
|
|
3629
3621
|
*/
|
|
3630
3622
|
ignoreSign() {
|
|
3631
|
-
|
|
3632
|
-
return !(((_a = this.chartAccounts) === null || _a === void 0 ? void 0 : _a.id) in ChartAccountsKeepSign);
|
|
3623
|
+
return !(this.chartAccounts?.id in ChartAccountsKeepSign);
|
|
3633
3624
|
}
|
|
3634
3625
|
}
|
|
3635
3626
|
__decorate([
|
|
@@ -3725,18 +3716,16 @@ class Depreciation extends Depreciation$1 {
|
|
|
3725
3716
|
return this.writeOffYear === new FinancialYear().year;
|
|
3726
3717
|
}
|
|
3727
3718
|
get writeOffYear() {
|
|
3728
|
-
var _a;
|
|
3729
3719
|
if (!this.writeOffManualDate && !this.writeOffDate) {
|
|
3730
3720
|
return null;
|
|
3731
3721
|
}
|
|
3732
|
-
return
|
|
3722
|
+
return new FinancialYear(this.writeOffManualDate || this.writeOffDate)?.year;
|
|
3733
3723
|
}
|
|
3734
3724
|
/**
|
|
3735
3725
|
* Check if depreciation chart accounts heading related to vehicles category
|
|
3736
3726
|
*/
|
|
3737
3727
|
isVehicleDepreciation() {
|
|
3738
|
-
|
|
3739
|
-
return ((_a = this.chartAccounts.heading) === null || _a === void 0 ? void 0 : _a.id) === ChartAccountsHeadingVehicleListEnum.DEPRECIATION_VEHICLES;
|
|
3728
|
+
return this.chartAccounts.heading?.id === ChartAccountsHeadingVehicleListEnum.DEPRECIATION_VEHICLES;
|
|
3740
3729
|
}
|
|
3741
3730
|
/**
|
|
3742
3731
|
* Get depreciation purchase date
|
|
@@ -3764,12 +3753,10 @@ class Depreciation extends Depreciation$1 {
|
|
|
3764
3753
|
});
|
|
3765
3754
|
}
|
|
3766
3755
|
getClaimAmountByYear(year) {
|
|
3767
|
-
|
|
3768
|
-
return ((_a = this.getForecastByYear(year)) === null || _a === void 0 ? void 0 : _a.claimAmount) || 0;
|
|
3756
|
+
return this.getForecastByYear(year)?.claimAmount || 0;
|
|
3769
3757
|
}
|
|
3770
3758
|
getCloseBalanceByYear(year) {
|
|
3771
|
-
|
|
3772
|
-
return ((_a = this.getForecastByYear(year)) === null || _a === void 0 ? void 0 : _a.closeBalance) || 0;
|
|
3759
|
+
return this.getForecastByYear(year)?.closeBalance || 0;
|
|
3773
3760
|
}
|
|
3774
3761
|
isBuildingAtCost() {
|
|
3775
3762
|
return this.chartAccounts.id === ChartAccountsListEnum.BUILDING_AT_COST;
|
|
@@ -3778,18 +3765,16 @@ class Depreciation extends Depreciation$1 {
|
|
|
3778
3765
|
* Create a new transaction from current depreciation
|
|
3779
3766
|
*/
|
|
3780
3767
|
toTransaction(params = {}) {
|
|
3781
|
-
var _a, _b;
|
|
3782
3768
|
return plainToClass(Transaction, Object.assign(params, this, {
|
|
3783
|
-
amount: -
|
|
3784
|
-
claimAmount: -
|
|
3769
|
+
amount: -this.currentYearForecast?.amount || 0,
|
|
3770
|
+
claimAmount: -this.currentYearForecast?.claimAmount || 0,
|
|
3785
3771
|
}));
|
|
3786
3772
|
}
|
|
3787
3773
|
/**
|
|
3788
3774
|
* @TODO Michael: remove and check everywhere in reports
|
|
3789
3775
|
*/
|
|
3790
3776
|
get claimAmount() {
|
|
3791
|
-
|
|
3792
|
-
return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.claimAmount) || 0;
|
|
3777
|
+
return this.currentYearForecast?.claimAmount || 0;
|
|
3793
3778
|
}
|
|
3794
3779
|
get amountWithGst() {
|
|
3795
3780
|
// gst applies only to new assets
|
|
@@ -3799,8 +3784,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
3799
3784
|
return this.amount;
|
|
3800
3785
|
}
|
|
3801
3786
|
get gstClaimAmount() {
|
|
3802
|
-
|
|
3803
|
-
return this.gstAmount * ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.claimRate);
|
|
3787
|
+
return this.gstAmount * this.currentYearForecast?.claimRate;
|
|
3804
3788
|
}
|
|
3805
3789
|
/**
|
|
3806
3790
|
* assets purchased in the current financial year
|
|
@@ -3978,8 +3962,7 @@ class TransactionCollection extends ExportableCollection {
|
|
|
3978
3962
|
*/
|
|
3979
3963
|
getByPropertiesIds(ids) {
|
|
3980
3964
|
return new TransactionCollection(this.items.filter((transaction) => {
|
|
3981
|
-
|
|
3982
|
-
return ids.includes((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id);
|
|
3965
|
+
return ids.includes(transaction.property?.id);
|
|
3983
3966
|
}));
|
|
3984
3967
|
}
|
|
3985
3968
|
/**
|
|
@@ -3987,7 +3970,7 @@ class TransactionCollection extends ExportableCollection {
|
|
|
3987
3970
|
* @param id id of income source for filter
|
|
3988
3971
|
*/
|
|
3989
3972
|
getByIncomeSourceId(id) {
|
|
3990
|
-
return new TransactionCollection(this.items.filter((transaction) =>
|
|
3973
|
+
return new TransactionCollection(this.items.filter((transaction) => transaction.incomeSource?.id === id));
|
|
3991
3974
|
}
|
|
3992
3975
|
/**
|
|
3993
3976
|
* Get new collection filtered by chart accounts category
|
|
@@ -4204,7 +4187,7 @@ class DepreciationCollection extends Collection {
|
|
|
4204
4187
|
return this.sumBy('currentYearForecast.closeBalance');
|
|
4205
4188
|
}
|
|
4206
4189
|
getByPropertiesIds(ids) {
|
|
4207
|
-
return new DepreciationCollection(this.items.filter((depreciation) =>
|
|
4190
|
+
return new DepreciationCollection(this.items.filter((depreciation) => ids.includes(depreciation.property?.id)));
|
|
4208
4191
|
}
|
|
4209
4192
|
getWithCapitalProject() {
|
|
4210
4193
|
return new DepreciationCollection(this.items.filter((depreciation) => !!depreciation.depreciationCapitalProject));
|
|
@@ -4507,9 +4490,9 @@ class SoleBusinessLossesCollection extends Collection {
|
|
|
4507
4490
|
const claimAmountsByBusinessId = this.getClaimAmountsByBusinessId(transactions, allocations);
|
|
4508
4491
|
return Object.keys(claimAmountsByBusinessId.items).reduce((sum, businessId) => {
|
|
4509
4492
|
const loss = this.findBy('business.id', +businessId);
|
|
4510
|
-
const lossOpenBalance =
|
|
4493
|
+
const lossOpenBalance = loss?.openBalance || 0;
|
|
4511
4494
|
// business loss can be applied to business profit or other income types profit in case in offset rule met
|
|
4512
|
-
return sum + (
|
|
4495
|
+
return sum + (loss?.offsetRule ? lossOpenBalance : Math.min(lossOpenBalance, claimAmountsByBusinessId.get(businessId)));
|
|
4513
4496
|
}, 0);
|
|
4514
4497
|
}
|
|
4515
4498
|
/**
|
|
@@ -4521,9 +4504,8 @@ class SoleBusinessLossesCollection extends Collection {
|
|
|
4521
4504
|
const claimAmountsByBusinessId = new Dictionary([]);
|
|
4522
4505
|
const transactionsByBusinessId = new CollectionDictionary(transactions, 'business.id');
|
|
4523
4506
|
transactionsByBusinessId.keys.forEach((businessId) => {
|
|
4524
|
-
var _a;
|
|
4525
4507
|
// business loss may not exist if, when creating a business, user didn't add losses for previous years
|
|
4526
|
-
const lossOffsetRule =
|
|
4508
|
+
const lossOffsetRule = this.findBy('business.id', +businessId)?.offsetRule;
|
|
4527
4509
|
const businessClaimAmount = transactionsByBusinessId
|
|
4528
4510
|
.get(businessId)
|
|
4529
4511
|
.getBusinessClaimAmount(allocations, +businessId);
|
|
@@ -5318,7 +5300,7 @@ class BankTransactionCollection extends Collection {
|
|
|
5318
5300
|
*/
|
|
5319
5301
|
preselectAllocateOperationForSalary(salaryIncomeSources) {
|
|
5320
5302
|
// incomeSource.salaryForecasts[0] because each income source has only one forecast for current fin year
|
|
5321
|
-
const salaryAmounts = salaryIncomeSources.map((incomeSource) =>
|
|
5303
|
+
const salaryAmounts = salaryIncomeSources.map((incomeSource) => incomeSource.salaryForecasts[0]?.netPay || 0);
|
|
5322
5304
|
this.items.forEach((bankTransaction) => {
|
|
5323
5305
|
if (salaryAmounts.includes(bankTransaction.amount)) {
|
|
5324
5306
|
bankTransaction.operation = TransactionOperationEnum.ALLOCATE;
|
|
@@ -5367,8 +5349,7 @@ var FirmTypeEnum;
|
|
|
5367
5349
|
|
|
5368
5350
|
class EmployeeCollection extends Collection {
|
|
5369
5351
|
get accountant() {
|
|
5370
|
-
|
|
5371
|
-
return (_a = this.items.filter((user) => user.employeeDetails.firm.type === FirmTypeEnum.ACCOUNTANT)[0]) !== null && _a !== void 0 ? _a : null;
|
|
5352
|
+
return this.items.filter((user) => user.employeeDetails.firm.type === FirmTypeEnum.ACCOUNTANT)[0] ?? null;
|
|
5372
5353
|
}
|
|
5373
5354
|
get advisors() {
|
|
5374
5355
|
return this.items.filter((user) => user.employeeDetails.firm.type === FirmTypeEnum.ADVISOR);
|
|
@@ -5389,8 +5370,7 @@ class ClientMovementCollection extends Collection {
|
|
|
5389
5370
|
return new EmployeeCollection(this.items.map((clientMovement) => clientMovement.client));
|
|
5390
5371
|
}
|
|
5391
5372
|
get accountant() {
|
|
5392
|
-
|
|
5393
|
-
return (_a = this.items.filter((clientMovement) => clientMovement.firm.type === FirmTypeEnum.ACCOUNTANT)[0]) !== null && _a !== void 0 ? _a : null;
|
|
5373
|
+
return this.items.filter((clientMovement) => clientMovement.firm.type === FirmTypeEnum.ACCOUNTANT)[0] ?? null;
|
|
5394
5374
|
}
|
|
5395
5375
|
get advisors() {
|
|
5396
5376
|
return new ClientMovementCollection(this.items.filter((clientMovement) => clientMovement.firm.type === FirmTypeEnum.ADVISOR));
|
|
@@ -5765,11 +5745,11 @@ class User extends User$1 {
|
|
|
5765
5745
|
* @param roleType by which role should be returned
|
|
5766
5746
|
*/
|
|
5767
5747
|
getSubscriptionRole(roleType) {
|
|
5768
|
-
var _a;
|
|
5769
5748
|
/**
|
|
5770
5749
|
* Add @TODO for Alex to check if we should use getLastSubscription here
|
|
5771
5750
|
*/
|
|
5772
|
-
return
|
|
5751
|
+
return this.activeSubscription?.items
|
|
5752
|
+
.find((subscriptionItem) => subscriptionItem.price.product.role.includes(roleType));
|
|
5773
5753
|
}
|
|
5774
5754
|
/**
|
|
5775
5755
|
* Get user's photo link
|
|
@@ -5960,15 +5940,13 @@ class Property extends Property$1 {
|
|
|
5960
5940
|
return this.address.name;
|
|
5961
5941
|
}
|
|
5962
5942
|
get isActive() {
|
|
5963
|
-
|
|
5964
|
-
return !!((_a = this.subscriptions) === null || _a === void 0 ? void 0 : _a.length);
|
|
5943
|
+
return !!this.subscriptions?.length;
|
|
5965
5944
|
}
|
|
5966
5945
|
isOwn() {
|
|
5967
5946
|
return this.user.id === +localStorage.getItem('userId');
|
|
5968
5947
|
}
|
|
5969
5948
|
isSold() {
|
|
5970
|
-
|
|
5971
|
-
return !!((_a = this.myShare) === null || _a === void 0 ? void 0 : _a.sale);
|
|
5949
|
+
return !!this.myShare?.sale;
|
|
5972
5950
|
}
|
|
5973
5951
|
/**
|
|
5974
5952
|
* Get initials of property. Required by Photoable interface
|
|
@@ -5989,23 +5967,19 @@ class Property extends Property$1 {
|
|
|
5989
5967
|
return this.valuations.filter((valuation) => valuation.isCurrentYear());
|
|
5990
5968
|
}
|
|
5991
5969
|
get marketValue() {
|
|
5992
|
-
|
|
5993
|
-
return ((_a = this.actualValuation) === null || _a === void 0 ? void 0 : _a.marketValue) || 0;
|
|
5970
|
+
return this.actualValuation?.marketValue || 0;
|
|
5994
5971
|
}
|
|
5995
5972
|
get currentYearForecast() {
|
|
5996
5973
|
return this.forecasts.find((forecast) => forecast.isCurrentYear());
|
|
5997
5974
|
}
|
|
5998
5975
|
get forecastedRentalReturn() {
|
|
5999
|
-
|
|
6000
|
-
return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.rentalReturn) || 0;
|
|
5976
|
+
return this.currentYearForecast?.rentalReturn || 0;
|
|
6001
5977
|
}
|
|
6002
5978
|
get forecastedTaxPosition() {
|
|
6003
|
-
|
|
6004
|
-
return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.taxPosition) || 0;
|
|
5979
|
+
return this.currentYearForecast?.taxPosition || 0;
|
|
6005
5980
|
}
|
|
6006
5981
|
get forecastedCashPosition() {
|
|
6007
|
-
|
|
6008
|
-
return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.cashPosition) || 0;
|
|
5982
|
+
return this.currentYearForecast?.cashPosition || 0;
|
|
6009
5983
|
}
|
|
6010
5984
|
get firstForecastYear() {
|
|
6011
5985
|
return this.forecasts.reduce((min, forecast) => {
|
|
@@ -6099,9 +6073,8 @@ class Property extends Property$1 {
|
|
|
6099
6073
|
* tax exemption can reduce cgt from 100% to less (up to zero)
|
|
6100
6074
|
*/
|
|
6101
6075
|
getCGTExemptionRatio(sale) {
|
|
6102
|
-
var _a;
|
|
6103
6076
|
const metadata = new PropertySaleTaxExemptionMetadataCollection(sale.taxExemptionMetadata);
|
|
6104
|
-
switch (
|
|
6077
|
+
switch (sale.taxExemption?.id) {
|
|
6105
6078
|
// 50% exemption for investments owned for at least one year
|
|
6106
6079
|
case TaxExemptionEnum.ONE_YEAR_RULE:
|
|
6107
6080
|
return 0.5;
|
|
@@ -6139,7 +6112,7 @@ class Property extends Property$1 {
|
|
|
6139
6112
|
* ownership duration from purchase till sale
|
|
6140
6113
|
*/
|
|
6141
6114
|
getOwnershipDuration(sale, unitOfTime = 'days') {
|
|
6142
|
-
return moment
|
|
6115
|
+
return moment(sale.contractDate).diff(moment(this.contractDate), unitOfTime);
|
|
6143
6116
|
}
|
|
6144
6117
|
/**
|
|
6145
6118
|
* Tax Position = Income - Expense - Interest - Depreciation
|
|
@@ -6256,8 +6229,7 @@ class BankAccount extends BankAccount$1 {
|
|
|
6256
6229
|
* Get current opening balance amount
|
|
6257
6230
|
*/
|
|
6258
6231
|
getOpeningBalance() {
|
|
6259
|
-
|
|
6260
|
-
return ((_a = this.getCurrentYearBalance()) === null || _a === void 0 ? void 0 : _a.openingBalance) || 0;
|
|
6232
|
+
return this.getCurrentYearBalance()?.openingBalance || 0;
|
|
6261
6233
|
}
|
|
6262
6234
|
/**
|
|
6263
6235
|
* Get bank account balance for current financial year
|
|
@@ -6970,8 +6942,7 @@ class PropertySale extends PropertySale$1 {
|
|
|
6970
6942
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form ("Capital gains or losses" section)
|
|
6971
6943
|
*/
|
|
6972
6944
|
isCGTApplicable() {
|
|
6973
|
-
|
|
6974
|
-
return ((_a = this.taxExemption) === null || _a === void 0 ? void 0 : _a.id) !== TaxExemptionEnum.PPR;
|
|
6945
|
+
return this.taxExemption?.id !== TaxExemptionEnum.PPR;
|
|
6975
6946
|
}
|
|
6976
6947
|
get lossApplied() {
|
|
6977
6948
|
return this.grossCGT <= 0 ? 0 : Math.min(this.grossCGT, this.capitalLoss);
|
|
@@ -7004,13 +6975,12 @@ __decorate([
|
|
|
7004
6975
|
*/
|
|
7005
6976
|
class PropertySaleCostBase {
|
|
7006
6977
|
static createFrom(property, propertySale, depreciations, holdingCosts) {
|
|
7007
|
-
var _a, _b, _c;
|
|
7008
6978
|
return plainToClass(PropertySaleCostBase, {
|
|
7009
6979
|
property: plainToClass(Property, property),
|
|
7010
6980
|
sale: plainToClass(PropertySale, Object.assign({}, propertySale, {
|
|
7011
|
-
holdingCosts:
|
|
7012
|
-
structuralImprovementsWDV:
|
|
7013
|
-
buildingAtCostClaimed:
|
|
6981
|
+
holdingCosts: propertySale.holdingCosts ?? Math.abs(holdingCosts.sumBy('amount')),
|
|
6982
|
+
structuralImprovementsWDV: propertySale.structuralImprovementsWDV ?? depreciations.getWithCapitalProject().getCloseBalanceByYear(),
|
|
6983
|
+
buildingAtCostClaimed: propertySale.buildingAtCostClaimed ?? depreciations.getWithoutCapitalProject().getClaimedAmountByYear(),
|
|
7014
6984
|
})),
|
|
7015
6985
|
});
|
|
7016
6986
|
}
|
|
@@ -7254,8 +7224,7 @@ class PropertyEquityChartData {
|
|
|
7254
7224
|
*/
|
|
7255
7225
|
getLoanBalanceByYear(property, year, bankAccounts, loans) {
|
|
7256
7226
|
return bankAccounts.items.reduce((totalSum, bankAccount) => {
|
|
7257
|
-
|
|
7258
|
-
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));
|
|
7227
|
+
return totalSum + (bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.getLastPaymentByYear(year)?.totalOwed || 0));
|
|
7259
7228
|
}, 0);
|
|
7260
7229
|
}
|
|
7261
7230
|
getMarketValueForPropertyByYear(property, year) {
|
|
@@ -7265,11 +7234,10 @@ class PropertyEquityChartData {
|
|
|
7265
7234
|
return (property.getForecastByYear(year) || first(property.forecasts)).marketValue;
|
|
7266
7235
|
}
|
|
7267
7236
|
getLoanBalanceForPropertyByYear(property, year) {
|
|
7268
|
-
var _a;
|
|
7269
7237
|
if (new FinancialYear(property.contractDate).year > year) {
|
|
7270
7238
|
return 0;
|
|
7271
7239
|
}
|
|
7272
|
-
return
|
|
7240
|
+
return property.getForecastByYear(year)?.loanBalance || this.bankAccounts.getPropertyBalanceAmount(property.id);
|
|
7273
7241
|
}
|
|
7274
7242
|
/**
|
|
7275
7243
|
* Check if loan balance is 0 and set it as null (to not to draw point on the chart)
|
|
@@ -7320,8 +7288,7 @@ class PropertyShare extends PropertyShare$1 {
|
|
|
7320
7288
|
return this.status === PropertyShareStatusEnum.REJECTED;
|
|
7321
7289
|
}
|
|
7322
7290
|
get statusName() {
|
|
7323
|
-
|
|
7324
|
-
return (_a = PropertyShareStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
7291
|
+
return PropertyShareStatusEnum[this.status]?.toLowerCase();
|
|
7325
7292
|
}
|
|
7326
7293
|
/**
|
|
7327
7294
|
* Return full user name if user is already registered.
|
|
@@ -7389,9 +7356,9 @@ class JwtService extends JwtHelperService {
|
|
|
7389
7356
|
return this.getUser().id === userId;
|
|
7390
7357
|
}
|
|
7391
7358
|
}
|
|
7392
|
-
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7393
|
-
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7359
|
+
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
7360
|
+
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, providedIn: 'root' });
|
|
7361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, decorators: [{
|
|
7395
7362
|
type: Injectable,
|
|
7396
7363
|
args: [{
|
|
7397
7364
|
providedIn: 'root'
|
|
@@ -7426,9 +7393,9 @@ class EventDispatcherService {
|
|
|
7426
7393
|
this.eventSubject2.next(event);
|
|
7427
7394
|
}
|
|
7428
7395
|
}
|
|
7429
|
-
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7430
|
-
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7396
|
+
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7397
|
+
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
|
|
7398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, decorators: [{
|
|
7432
7399
|
type: Injectable,
|
|
7433
7400
|
args: [{
|
|
7434
7401
|
providedIn: 'root'
|
|
@@ -7477,9 +7444,9 @@ class AuthService {
|
|
|
7477
7444
|
location.replace(url);
|
|
7478
7445
|
}
|
|
7479
7446
|
}
|
|
7480
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7481
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7482
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7447
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7448
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
7449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, decorators: [{
|
|
7483
7450
|
type: Injectable,
|
|
7484
7451
|
args: [{
|
|
7485
7452
|
providedIn: 'root'
|
|
@@ -7564,9 +7531,8 @@ class JwtInterceptor {
|
|
|
7564
7531
|
// });
|
|
7565
7532
|
}
|
|
7566
7533
|
handle401Error(req, next, err) {
|
|
7567
|
-
var _a;
|
|
7568
7534
|
// skip 401 errors not from JWT (basiq login case or other)
|
|
7569
|
-
if (!
|
|
7535
|
+
if (!err.error.message?.includes('JWT Token')) {
|
|
7570
7536
|
return throwError(err);
|
|
7571
7537
|
}
|
|
7572
7538
|
if (req.url.includes('token/refresh') || req.url.includes('login')) {
|
|
@@ -7615,9 +7581,9 @@ class JwtInterceptor {
|
|
|
7615
7581
|
});
|
|
7616
7582
|
}
|
|
7617
7583
|
}
|
|
7618
|
-
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7619
|
-
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7584
|
+
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7585
|
+
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor });
|
|
7586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor, decorators: [{
|
|
7621
7587
|
type: Injectable
|
|
7622
7588
|
}], ctorParameters: function () { return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
|
|
7623
7589
|
type: Inject,
|
|
@@ -7650,9 +7616,9 @@ class UserSwitcherService {
|
|
|
7650
7616
|
window.location.replace('/firm/dashboard');
|
|
7651
7617
|
}
|
|
7652
7618
|
}
|
|
7653
|
-
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7654
|
-
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7619
|
+
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7620
|
+
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
|
|
7621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, decorators: [{
|
|
7656
7622
|
type: Injectable,
|
|
7657
7623
|
args: [{
|
|
7658
7624
|
providedIn: 'root'
|
|
@@ -7698,9 +7664,9 @@ class UserSwitcherInterceptor {
|
|
|
7698
7664
|
return next.handle(this.switch(request, this.userSwitcherService.get()));
|
|
7699
7665
|
}
|
|
7700
7666
|
}
|
|
7701
|
-
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7702
|
-
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7667
|
+
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7668
|
+
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor });
|
|
7669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
|
|
7704
7670
|
type: Injectable
|
|
7705
7671
|
}], ctorParameters: function () { return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
|
|
7706
7672
|
type: Inject,
|
|
@@ -7943,9 +7909,9 @@ class PreloaderService {
|
|
|
7943
7909
|
this.activePreloaders.next(activePreloaders);
|
|
7944
7910
|
}
|
|
7945
7911
|
}
|
|
7946
|
-
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7947
|
-
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7912
|
+
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7913
|
+
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, providedIn: 'root' });
|
|
7914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, decorators: [{
|
|
7949
7915
|
type: Injectable,
|
|
7950
7916
|
args: [{
|
|
7951
7917
|
providedIn: 'root'
|
|
@@ -7973,9 +7939,9 @@ class PreloaderInterceptor {
|
|
|
7973
7939
|
return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
|
|
7974
7940
|
}
|
|
7975
7941
|
}
|
|
7976
|
-
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7977
|
-
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7978
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7942
|
+
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7943
|
+
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor });
|
|
7944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor, decorators: [{
|
|
7979
7945
|
type: Injectable
|
|
7980
7946
|
}], ctorParameters: function () { return [{ type: PreloaderService }]; } });
|
|
7981
7947
|
|
|
@@ -8011,9 +7977,9 @@ class SseService {
|
|
|
8011
7977
|
}));
|
|
8012
7978
|
}
|
|
8013
7979
|
}
|
|
8014
|
-
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8015
|
-
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7980
|
+
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 });
|
|
7981
|
+
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, providedIn: 'root' });
|
|
7982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, decorators: [{
|
|
8017
7983
|
type: Injectable,
|
|
8018
7984
|
args: [{
|
|
8019
7985
|
providedIn: 'root'
|
|
@@ -8030,7 +7996,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
8030
7996
|
* BaseModel - base entity model that extends by Model
|
|
8031
7997
|
* CollectionModel - entity collection class
|
|
8032
7998
|
*/
|
|
8033
|
-
|
|
7999
|
+
let RestService$1 = class RestService {
|
|
8034
8000
|
constructor(http, eventDispatcherService, environment) {
|
|
8035
8001
|
this.http = http;
|
|
8036
8002
|
this.eventDispatcherService = eventDispatcherService;
|
|
@@ -8240,10 +8206,10 @@ class RestService$1 {
|
|
|
8240
8206
|
* Method that call all listeners. Empty by default. Should be redefined by child services if required
|
|
8241
8207
|
*/
|
|
8242
8208
|
listenEvents() { }
|
|
8243
|
-
}
|
|
8244
|
-
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8245
|
-
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8209
|
+
};
|
|
8210
|
+
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8211
|
+
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, providedIn: 'root' });
|
|
8212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, decorators: [{
|
|
8247
8213
|
type: Injectable,
|
|
8248
8214
|
args: [{
|
|
8249
8215
|
providedIn: 'root'
|
|
@@ -8361,9 +8327,9 @@ class ToastService {
|
|
|
8361
8327
|
}));
|
|
8362
8328
|
}
|
|
8363
8329
|
}
|
|
8364
|
-
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8365
|
-
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8330
|
+
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8331
|
+
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, providedIn: 'root' });
|
|
8332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, decorators: [{
|
|
8367
8333
|
type: Injectable,
|
|
8368
8334
|
args: [{
|
|
8369
8335
|
providedIn: 'root'
|
|
@@ -8453,9 +8419,9 @@ BankConnectionService.userEventTypes = [
|
|
|
8453
8419
|
UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS,
|
|
8454
8420
|
UserEventTypeTypeEnum.BASIQ_AUTHORIZATION_FAIL
|
|
8455
8421
|
];
|
|
8456
|
-
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8457
|
-
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8422
|
+
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8423
|
+
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
|
|
8424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, decorators: [{
|
|
8459
8425
|
type: Injectable,
|
|
8460
8426
|
args: [{
|
|
8461
8427
|
providedIn: 'root'
|
|
@@ -8565,9 +8531,9 @@ BasiqService.basiqApiUrl = 'https://au-api.basiq.io';
|
|
|
8565
8531
|
* Basiq does not provide a hook, so we have to check job status manually every x seconds
|
|
8566
8532
|
*/
|
|
8567
8533
|
BasiqService.bankCredintialsCheckInterval = 3000;
|
|
8568
|
-
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8569
|
-
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8534
|
+
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8535
|
+
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, providedIn: 'root' });
|
|
8536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, decorators: [{
|
|
8571
8537
|
type: Injectable,
|
|
8572
8538
|
args: [{
|
|
8573
8539
|
providedIn: 'root'
|
|
@@ -8602,9 +8568,9 @@ class BasiqTokenService extends RestService$1 {
|
|
|
8602
8568
|
return this.cacheSubject.asObservable();
|
|
8603
8569
|
}
|
|
8604
8570
|
}
|
|
8605
|
-
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8606
|
-
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8571
|
+
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
8572
|
+
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
|
|
8573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, decorators: [{
|
|
8608
8574
|
type: Injectable,
|
|
8609
8575
|
args: [{
|
|
8610
8576
|
providedIn: 'root'
|
|
@@ -8635,9 +8601,9 @@ class BasiqTokenInterceptor {
|
|
|
8635
8601
|
});
|
|
8636
8602
|
}
|
|
8637
8603
|
}
|
|
8638
|
-
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8639
|
-
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8604
|
+
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8605
|
+
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor });
|
|
8606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
|
|
8641
8607
|
type: Injectable
|
|
8642
8608
|
}], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
|
|
8643
8609
|
|
|
@@ -8779,10 +8745,9 @@ class UserService {
|
|
|
8779
8745
|
* Create basiq (if not exist yet) to provide access to basiq api
|
|
8780
8746
|
*/
|
|
8781
8747
|
createBasiq() {
|
|
8782
|
-
var _a;
|
|
8783
8748
|
// no need to create basiqId if already exist
|
|
8784
8749
|
// @TODO Alex (TT-2431): move this check to component or separated method
|
|
8785
|
-
if (
|
|
8750
|
+
if (this.cache?.basiqId) {
|
|
8786
8751
|
return of(this.cache.basiqId);
|
|
8787
8752
|
}
|
|
8788
8753
|
return this.http.post(`${this.environment.apiV2}/basiq/user`, {})
|
|
@@ -8823,9 +8788,9 @@ class UserService {
|
|
|
8823
8788
|
});
|
|
8824
8789
|
}
|
|
8825
8790
|
}
|
|
8826
|
-
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8827
|
-
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8791
|
+
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8792
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
8793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, decorators: [{
|
|
8829
8794
|
type: Injectable,
|
|
8830
8795
|
args: [{
|
|
8831
8796
|
providedIn: 'root'
|
|
@@ -8855,17 +8820,17 @@ class BasiqClientIdInterceptor {
|
|
|
8855
8820
|
});
|
|
8856
8821
|
}
|
|
8857
8822
|
}
|
|
8858
|
-
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8859
|
-
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8823
|
+
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8824
|
+
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor });
|
|
8825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
|
|
8861
8826
|
type: Injectable
|
|
8862
8827
|
}], ctorParameters: function () { return [{ type: UserService }]; } });
|
|
8863
8828
|
|
|
8864
8829
|
class InterceptorsModule {
|
|
8865
8830
|
}
|
|
8866
|
-
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8867
|
-
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
8868
|
-
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
8831
|
+
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8832
|
+
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule });
|
|
8833
|
+
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, providers: [
|
|
8869
8834
|
{
|
|
8870
8835
|
provide: HTTP_INTERCEPTORS,
|
|
8871
8836
|
useClass: CorelogicInterceptor,
|
|
@@ -8903,7 +8868,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
8903
8868
|
multi: true
|
|
8904
8869
|
}
|
|
8905
8870
|
] });
|
|
8906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, decorators: [{
|
|
8907
8872
|
type: NgModule,
|
|
8908
8873
|
args: [{
|
|
8909
8874
|
providers: [
|
|
@@ -8961,14 +8926,12 @@ class TtCoreModule {
|
|
|
8961
8926
|
};
|
|
8962
8927
|
}
|
|
8963
8928
|
}
|
|
8964
|
-
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8965
|
-
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
8929
|
+
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8930
|
+
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
8966
8931
|
InterceptorsModule] });
|
|
8967
|
-
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
]] });
|
|
8971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TtCoreModule, decorators: [{
|
|
8932
|
+
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
8933
|
+
InterceptorsModule] });
|
|
8934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, decorators: [{
|
|
8972
8935
|
type: NgModule,
|
|
8973
8936
|
args: [{
|
|
8974
8937
|
declarations: [],
|
|
@@ -9440,12 +9403,10 @@ class ClientInvite extends ClientInvite$1 {
|
|
|
9440
9403
|
return this.type === ClientInviteTypeEnum.FROM_CLIENT;
|
|
9441
9404
|
}
|
|
9442
9405
|
get firstName() {
|
|
9443
|
-
|
|
9444
|
-
return this.client ? this.client.firstName : (_a = this.registrationInvite) === null || _a === void 0 ? void 0 : _a.firstName;
|
|
9406
|
+
return this.client ? this.client.firstName : this.registrationInvite?.firstName;
|
|
9445
9407
|
}
|
|
9446
9408
|
get email() {
|
|
9447
|
-
|
|
9448
|
-
return this.client ? this.client.email : (_a = this.registrationInvite) === null || _a === void 0 ? void 0 : _a.email;
|
|
9409
|
+
return this.client ? this.client.email : this.registrationInvite?.email;
|
|
9449
9410
|
}
|
|
9450
9411
|
}
|
|
9451
9412
|
__decorate([
|
|
@@ -9700,10 +9661,9 @@ var LossTypeEnum;
|
|
|
9700
9661
|
*/
|
|
9701
9662
|
class MyTaxBusinessDetails {
|
|
9702
9663
|
constructor(vehicleClaimDetails, businesses, soleDetails, user) {
|
|
9703
|
-
var _a;
|
|
9704
9664
|
this.businessActivities = uniqBy(businesses.mapBy('activity'), 'id');
|
|
9705
|
-
this.businessABN = soleDetails
|
|
9706
|
-
this.businessAddress =
|
|
9665
|
+
this.businessABN = soleDetails?.abn;
|
|
9666
|
+
this.businessAddress = user.address?.name;
|
|
9707
9667
|
this.businesses = businesses;
|
|
9708
9668
|
this.vehicleClaimDetails = vehicleClaimDetails;
|
|
9709
9669
|
}
|
|
@@ -10350,13 +10310,12 @@ class MyTaxRent {
|
|
|
10350
10310
|
* property contract date, e.t.c.). Details in the TT-2009 task
|
|
10351
10311
|
*/
|
|
10352
10312
|
calculateOtherRentalDeductionsAmount() {
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
.findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.OTHER_RENTAL_DEDUCTIONS)) === null || _c === void 0 ? void 0 : _c.amount) || 0);
|
|
10313
|
+
const plantAndEquipmentAmount = Math.abs(this.taxSummaryPropertySection.items
|
|
10314
|
+
.findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.PLANT_AND_EQUIPMENT)?.amount || 0);
|
|
10315
|
+
const borrowingExpensesAmount = Math.abs(this.taxSummaryPropertySection.items
|
|
10316
|
+
.findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.BORROWING_EXPENSES)?.amount || 0);
|
|
10317
|
+
const otherRentalDeductionsAmount = Math.abs(this.taxSummaryPropertySection.items
|
|
10318
|
+
.findBy('taxReturnCategory.id', TaxReturnCategoryListEnum.OTHER_RENTAL_DEDUCTIONS)?.amount || 0);
|
|
10360
10319
|
return +Math.floor(plantAndEquipmentAmount + borrowingExpensesAmount + otherRentalDeductionsAmount).toFixed(2);
|
|
10361
10320
|
}
|
|
10362
10321
|
}
|
|
@@ -10504,8 +10463,7 @@ class ReportItem extends AbstractModel {
|
|
|
10504
10463
|
* @param name Name of income source for filter
|
|
10505
10464
|
*/
|
|
10506
10465
|
getAmountByIncomeSourceName(name) {
|
|
10507
|
-
|
|
10508
|
-
return ((_a = this.details.find((detail) => detail.name === name)) === null || _a === void 0 ? void 0 : _a.amount) || 0;
|
|
10466
|
+
return this.details.find((detail) => detail.name === name)?.amount || 0;
|
|
10509
10467
|
}
|
|
10510
10468
|
}
|
|
10511
10469
|
__decorate([
|
|
@@ -10639,16 +10597,14 @@ class TaxSummary {
|
|
|
10639
10597
|
return profit - lossCurrent;
|
|
10640
10598
|
}
|
|
10641
10599
|
getDeferredBusinessLoss(business) {
|
|
10642
|
-
|
|
10643
|
-
return (_a = this.sole.items
|
|
10600
|
+
return this.sole.items
|
|
10644
10601
|
.findByCategory(TaxReturnCategoryListEnum.DEFERRED_BUSINESS_LOSSES).items
|
|
10645
|
-
.findBy('title', `Item 15c - ${business.name}`)
|
|
10602
|
+
.findBy('title', `Item 15c - ${business.name}`)?.amount;
|
|
10646
10603
|
}
|
|
10647
10604
|
getBusinessCloseBalance(business) {
|
|
10648
|
-
|
|
10649
|
-
return (_a = this.sole.items
|
|
10605
|
+
return this.sole.items
|
|
10650
10606
|
.findByCategory(TaxReturnCategoryListEnum.BUSINESS_INCOME_OR_LOSS).items
|
|
10651
|
-
.findBy('title', `Item 15c - ${business.name}`)
|
|
10607
|
+
.findBy('title', `Item 15c - ${business.name}`)?.amount;
|
|
10652
10608
|
}
|
|
10653
10609
|
}
|
|
10654
10610
|
__decorate([
|
|
@@ -10737,9 +10693,9 @@ class AddressService {
|
|
|
10737
10693
|
return this.countriesSubject.asObservable();
|
|
10738
10694
|
}
|
|
10739
10695
|
}
|
|
10740
|
-
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10741
|
-
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10696
|
+
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10697
|
+
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, providedIn: 'root' });
|
|
10698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, decorators: [{
|
|
10743
10699
|
type: Injectable,
|
|
10744
10700
|
args: [{
|
|
10745
10701
|
providedIn: 'root'
|
|
@@ -10792,9 +10748,9 @@ class BankAccountService extends RestService$1 {
|
|
|
10792
10748
|
});
|
|
10793
10749
|
}
|
|
10794
10750
|
}
|
|
10795
|
-
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10796
|
-
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10751
|
+
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10752
|
+
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, providedIn: 'root' });
|
|
10753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, decorators: [{
|
|
10798
10754
|
type: Injectable,
|
|
10799
10755
|
args: [{
|
|
10800
10756
|
providedIn: 'root'
|
|
@@ -10859,9 +10815,9 @@ class BankTransactionService extends RestService$1 {
|
|
|
10859
10815
|
});
|
|
10860
10816
|
}
|
|
10861
10817
|
}
|
|
10862
|
-
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10863
|
-
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10818
|
+
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10819
|
+
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
|
|
10820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, decorators: [{
|
|
10865
10821
|
type: Injectable,
|
|
10866
10822
|
args: [{
|
|
10867
10823
|
providedIn: 'root'
|
|
@@ -10889,9 +10845,9 @@ class BankService extends RestService$1 {
|
|
|
10889
10845
|
}));
|
|
10890
10846
|
}
|
|
10891
10847
|
}
|
|
10892
|
-
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10893
|
-
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10894
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10848
|
+
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10849
|
+
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, providedIn: 'root' });
|
|
10850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, decorators: [{
|
|
10895
10851
|
type: Injectable,
|
|
10896
10852
|
args: [{
|
|
10897
10853
|
providedIn: 'root'
|
|
@@ -10911,9 +10867,9 @@ class ChartAccountsDepreciationService extends RestService$1 {
|
|
|
10911
10867
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
10912
10868
|
}
|
|
10913
10869
|
}
|
|
10914
|
-
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10915
|
-
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10870
|
+
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10871
|
+
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
|
|
10872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
|
|
10917
10873
|
type: Injectable,
|
|
10918
10874
|
args: [{
|
|
10919
10875
|
providedIn: 'root'
|
|
@@ -10941,7 +10897,7 @@ class ChartAccountsService extends RestService$1 {
|
|
|
10941
10897
|
.filter((ca) => categories.includes(ca.category));
|
|
10942
10898
|
const headings = [];
|
|
10943
10899
|
filteredChartAccounts.forEach((ca) => {
|
|
10944
|
-
let heading = headings.find((h) =>
|
|
10900
|
+
let heading = headings.find((h) => h.id === ca.heading?.id);
|
|
10945
10901
|
if (!heading) {
|
|
10946
10902
|
heading = plainToClass(ChartAccountsHeading, ca.heading);
|
|
10947
10903
|
heading.chartAccounts = [];
|
|
@@ -10953,9 +10909,9 @@ class ChartAccountsService extends RestService$1 {
|
|
|
10953
10909
|
}));
|
|
10954
10910
|
}
|
|
10955
10911
|
}
|
|
10956
|
-
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10957
|
-
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10912
|
+
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10913
|
+
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
|
|
10914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, decorators: [{
|
|
10959
10915
|
type: Injectable,
|
|
10960
10916
|
args: [{
|
|
10961
10917
|
providedIn: 'root'
|
|
@@ -11018,15 +10974,15 @@ class ChatService extends RestService$1 {
|
|
|
11018
10974
|
this.listenCSE(Message, ['post'], (messages) => {
|
|
11019
10975
|
const message = messages[0];
|
|
11020
10976
|
const cache = this.cache.toArray();
|
|
11021
|
-
const updatedChat = cache.find((chat) =>
|
|
11022
|
-
updatedChat.updatedAt = message
|
|
10977
|
+
const updatedChat = cache.find((chat) => chat?.id === message.chat?.id);
|
|
10978
|
+
updatedChat.updatedAt = message?.createdAt;
|
|
11023
10979
|
this.handleResponse([updatedChat], 'put');
|
|
11024
10980
|
});
|
|
11025
10981
|
}
|
|
11026
10982
|
}
|
|
11027
|
-
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11028
|
-
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
10983
|
+
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10984
|
+
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, providedIn: 'root' });
|
|
10985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, decorators: [{
|
|
11030
10986
|
type: Injectable,
|
|
11031
10987
|
args: [{
|
|
11032
10988
|
providedIn: 'root'
|
|
@@ -11083,9 +11039,9 @@ class MessageService extends RestService$1 {
|
|
|
11083
11039
|
});
|
|
11084
11040
|
}
|
|
11085
11041
|
}
|
|
11086
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11087
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11042
|
+
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11043
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
11044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, decorators: [{
|
|
11089
11045
|
type: Injectable,
|
|
11090
11046
|
args: [{
|
|
11091
11047
|
providedIn: 'root'
|
|
@@ -11118,9 +11074,8 @@ class MessageDocumentService extends RestService$1 {
|
|
|
11118
11074
|
*/
|
|
11119
11075
|
listenMessages() {
|
|
11120
11076
|
this.listenCSE(Message, ['post'], (messages) => {
|
|
11121
|
-
var _a;
|
|
11122
11077
|
const message = messages[0];
|
|
11123
|
-
if (
|
|
11078
|
+
if (message.documents?.length) {
|
|
11124
11079
|
const array = this.cache.toArray();
|
|
11125
11080
|
const documentsIds = this.cache.getIds();
|
|
11126
11081
|
message.documents.forEach((document) => {
|
|
@@ -11157,9 +11112,9 @@ class MessageDocumentService extends RestService$1 {
|
|
|
11157
11112
|
}));
|
|
11158
11113
|
}
|
|
11159
11114
|
}
|
|
11160
|
-
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11161
|
-
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11115
|
+
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11116
|
+
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
|
|
11117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, decorators: [{
|
|
11163
11118
|
type: Injectable,
|
|
11164
11119
|
args: [{
|
|
11165
11120
|
providedIn: 'root'
|
|
@@ -11284,9 +11239,9 @@ class DepreciationService extends RestService$1 {
|
|
|
11284
11239
|
});
|
|
11285
11240
|
}
|
|
11286
11241
|
}
|
|
11287
|
-
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11288
|
-
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11242
|
+
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11243
|
+
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, providedIn: 'root' });
|
|
11244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, decorators: [{
|
|
11290
11245
|
type: Injectable,
|
|
11291
11246
|
args: [{
|
|
11292
11247
|
providedIn: 'root'
|
|
@@ -11338,9 +11293,9 @@ class DepreciationCapitalProjectService {
|
|
|
11338
11293
|
}));
|
|
11339
11294
|
}
|
|
11340
11295
|
}
|
|
11341
|
-
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11342
|
-
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11296
|
+
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11297
|
+
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
|
|
11298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
|
|
11344
11299
|
type: Injectable,
|
|
11345
11300
|
args: [{
|
|
11346
11301
|
providedIn: 'root'
|
|
@@ -11406,9 +11361,9 @@ class ReceiptService {
|
|
|
11406
11361
|
return plainToClass(this.modelClass, data);
|
|
11407
11362
|
}
|
|
11408
11363
|
}
|
|
11409
|
-
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11410
|
-
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11364
|
+
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11365
|
+
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, providedIn: 'root' });
|
|
11366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, decorators: [{
|
|
11412
11367
|
type: Injectable,
|
|
11413
11368
|
args: [{
|
|
11414
11369
|
providedIn: 'root'
|
|
@@ -11437,9 +11392,9 @@ class DepreciationReceiptService extends ReceiptService {
|
|
|
11437
11392
|
this.listenEvents();
|
|
11438
11393
|
}
|
|
11439
11394
|
}
|
|
11440
|
-
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11441
|
-
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11395
|
+
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11396
|
+
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
|
|
11397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, decorators: [{
|
|
11443
11398
|
type: Injectable,
|
|
11444
11399
|
args: [{
|
|
11445
11400
|
providedIn: 'root'
|
|
@@ -11653,9 +11608,9 @@ class RestService {
|
|
|
11653
11608
|
*/
|
|
11654
11609
|
listenEvents() { }
|
|
11655
11610
|
}
|
|
11656
|
-
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11657
|
-
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11611
|
+
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11612
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
11613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, decorators: [{
|
|
11659
11614
|
type: Injectable,
|
|
11660
11615
|
args: [{
|
|
11661
11616
|
providedIn: 'root'
|
|
@@ -11672,9 +11627,9 @@ class DocumentService extends RestService {
|
|
|
11672
11627
|
this.modelClass = Document;
|
|
11673
11628
|
}
|
|
11674
11629
|
}
|
|
11675
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11676
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11630
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11631
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
11632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, decorators: [{
|
|
11678
11633
|
type: Injectable,
|
|
11679
11634
|
args: [{
|
|
11680
11635
|
providedIn: 'root'
|
|
@@ -11740,9 +11695,9 @@ class DocumentFolderService extends RestService {
|
|
|
11740
11695
|
}));
|
|
11741
11696
|
}
|
|
11742
11697
|
}
|
|
11743
|
-
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11744
|
-
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11698
|
+
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11699
|
+
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
|
|
11700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, decorators: [{
|
|
11746
11701
|
type: Injectable,
|
|
11747
11702
|
args: [{
|
|
11748
11703
|
providedIn: 'root'
|
|
@@ -11763,17 +11718,15 @@ class FacebookService {
|
|
|
11763
11718
|
this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
|
|
11764
11719
|
this.isFacebookEnabled = !!environment['facebookAppId'];
|
|
11765
11720
|
}
|
|
11766
|
-
login(redirectUrl = '/client') {
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
this.logout();
|
|
11776
|
-
});
|
|
11721
|
+
async login(redirectUrl = '/client') {
|
|
11722
|
+
const accessToken = await this.getAccessToken();
|
|
11723
|
+
this.http.post(`${this.environment.apiV2}/users/authentication/facebook`, { accessToken })
|
|
11724
|
+
.subscribe((response) => {
|
|
11725
|
+
this.setAuth(response);
|
|
11726
|
+
this.router.navigate([redirectUrl]);
|
|
11727
|
+
}, (error) => {
|
|
11728
|
+
this.toastService.error(error.error.violations[0].message);
|
|
11729
|
+
this.logout();
|
|
11777
11730
|
});
|
|
11778
11731
|
}
|
|
11779
11732
|
/**
|
|
@@ -11819,9 +11772,9 @@ FacebookService.authOptions = {
|
|
|
11819
11772
|
auth_type: 'rerequest',
|
|
11820
11773
|
return_scopes: true
|
|
11821
11774
|
};
|
|
11822
|
-
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11823
|
-
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11775
|
+
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i1$1.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11776
|
+
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, providedIn: 'root' });
|
|
11777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, decorators: [{
|
|
11825
11778
|
type: Injectable,
|
|
11826
11779
|
args: [{
|
|
11827
11780
|
providedIn: 'root'
|
|
@@ -11847,9 +11800,9 @@ class FileService extends RestService$1 {
|
|
|
11847
11800
|
.pipe(map((fileBase) => plainToClass(AppFile, fileBase)));
|
|
11848
11801
|
}
|
|
11849
11802
|
}
|
|
11850
|
-
FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11851
|
-
FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11803
|
+
FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11804
|
+
FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, providedIn: 'root' });
|
|
11805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, decorators: [{
|
|
11853
11806
|
type: Injectable,
|
|
11854
11807
|
args: [{
|
|
11855
11808
|
providedIn: 'root'
|
|
@@ -11866,9 +11819,9 @@ class ClientIncomeTypesService extends RestService$1 {
|
|
|
11866
11819
|
this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
|
|
11867
11820
|
}
|
|
11868
11821
|
}
|
|
11869
|
-
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11870
|
-
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11822
|
+
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11823
|
+
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
|
|
11824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
|
|
11872
11825
|
type: Injectable,
|
|
11873
11826
|
args: [{
|
|
11874
11827
|
providedIn: 'root'
|
|
@@ -11983,9 +11936,9 @@ class ClientInviteService extends RestService {
|
|
|
11983
11936
|
});
|
|
11984
11937
|
}
|
|
11985
11938
|
}
|
|
11986
|
-
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11987
|
-
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
11939
|
+
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11940
|
+
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
|
|
11941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, decorators: [{
|
|
11989
11942
|
type: Injectable,
|
|
11990
11943
|
args: [{
|
|
11991
11944
|
providedIn: 'root'
|
|
@@ -12064,9 +12017,9 @@ class ClientMovementService extends RestService {
|
|
|
12064
12017
|
});
|
|
12065
12018
|
}
|
|
12066
12019
|
}
|
|
12067
|
-
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12068
|
-
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12020
|
+
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12021
|
+
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
|
|
12022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, decorators: [{
|
|
12070
12023
|
type: Injectable,
|
|
12071
12024
|
args: [{
|
|
12072
12025
|
providedIn: 'root'
|
|
@@ -12095,9 +12048,9 @@ class EmployeeService extends RestService {
|
|
|
12095
12048
|
}));
|
|
12096
12049
|
}
|
|
12097
12050
|
}
|
|
12098
|
-
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12099
|
-
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12051
|
+
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12052
|
+
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, providedIn: 'root' });
|
|
12053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, decorators: [{
|
|
12101
12054
|
type: Injectable,
|
|
12102
12055
|
args: [{
|
|
12103
12056
|
providedIn: 'root'
|
|
@@ -12140,9 +12093,9 @@ class EmployeeInviteService extends RestService {
|
|
|
12140
12093
|
}));
|
|
12141
12094
|
}
|
|
12142
12095
|
}
|
|
12143
|
-
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12144
|
-
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12096
|
+
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12097
|
+
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
|
|
12098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, decorators: [{
|
|
12146
12099
|
type: Injectable,
|
|
12147
12100
|
args: [{
|
|
12148
12101
|
providedIn: 'root'
|
|
@@ -12167,9 +12120,9 @@ class ClientPortfolioReportService {
|
|
|
12167
12120
|
}));
|
|
12168
12121
|
}
|
|
12169
12122
|
}
|
|
12170
|
-
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12171
|
-
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12123
|
+
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12124
|
+
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
|
|
12125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
|
|
12173
12126
|
type: Injectable,
|
|
12174
12127
|
args: [{
|
|
12175
12128
|
providedIn: 'root'
|
|
@@ -12239,9 +12192,9 @@ class FirmService {
|
|
|
12239
12192
|
}));
|
|
12240
12193
|
}
|
|
12241
12194
|
}
|
|
12242
|
-
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12243
|
-
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12195
|
+
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12196
|
+
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, providedIn: 'root' });
|
|
12197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, decorators: [{
|
|
12245
12198
|
type: Injectable,
|
|
12246
12199
|
args: [{
|
|
12247
12200
|
providedIn: 'root'
|
|
@@ -12314,9 +12267,9 @@ class IncomeSourceForecastService extends RestService {
|
|
|
12314
12267
|
}).flat();
|
|
12315
12268
|
}
|
|
12316
12269
|
}
|
|
12317
|
-
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12318
|
-
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12270
|
+
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12271
|
+
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
|
|
12272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
|
|
12320
12273
|
type: Injectable,
|
|
12321
12274
|
args: [{
|
|
12322
12275
|
providedIn: 'root'
|
|
@@ -12386,9 +12339,9 @@ class SalaryForecastService extends RestService {
|
|
|
12386
12339
|
}).flat();
|
|
12387
12340
|
}
|
|
12388
12341
|
}
|
|
12389
|
-
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12390
|
-
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12342
|
+
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12343
|
+
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
|
|
12344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, decorators: [{
|
|
12392
12345
|
type: Injectable,
|
|
12393
12346
|
args: [{
|
|
12394
12347
|
providedIn: 'root'
|
|
@@ -12464,9 +12417,9 @@ class SoleForecastService extends RestService {
|
|
|
12464
12417
|
});
|
|
12465
12418
|
}
|
|
12466
12419
|
}
|
|
12467
|
-
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12468
|
-
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12420
|
+
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12421
|
+
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
|
|
12422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, decorators: [{
|
|
12470
12423
|
type: Injectable,
|
|
12471
12424
|
args: [{
|
|
12472
12425
|
providedIn: 'root'
|
|
@@ -12565,9 +12518,9 @@ class IncomeSourceService extends RestService {
|
|
|
12565
12518
|
});
|
|
12566
12519
|
}
|
|
12567
12520
|
}
|
|
12568
|
-
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12569
|
-
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12521
|
+
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12522
|
+
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
|
|
12523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, decorators: [{
|
|
12571
12524
|
type: Injectable,
|
|
12572
12525
|
args: [{
|
|
12573
12526
|
providedIn: 'root'
|
|
@@ -12630,9 +12583,9 @@ class BorrowingExpenseService {
|
|
|
12630
12583
|
}));
|
|
12631
12584
|
}
|
|
12632
12585
|
}
|
|
12633
|
-
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12634
|
-
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12586
|
+
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12587
|
+
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
|
|
12588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, decorators: [{
|
|
12636
12589
|
type: Injectable,
|
|
12637
12590
|
args: [{
|
|
12638
12591
|
providedIn: 'root'
|
|
@@ -12714,9 +12667,9 @@ class LoanService extends RestService$1 {
|
|
|
12714
12667
|
}));
|
|
12715
12668
|
}
|
|
12716
12669
|
}
|
|
12717
|
-
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12718
|
-
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12670
|
+
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12671
|
+
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, providedIn: 'root' });
|
|
12672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, decorators: [{
|
|
12720
12673
|
type: Injectable,
|
|
12721
12674
|
args: [{
|
|
12722
12675
|
providedIn: 'root'
|
|
@@ -12735,9 +12688,9 @@ class PropertyCategoryService extends RestService$1 {
|
|
|
12735
12688
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
12736
12689
|
}
|
|
12737
12690
|
}
|
|
12738
|
-
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12739
|
-
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12691
|
+
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12692
|
+
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
|
|
12693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, decorators: [{
|
|
12741
12694
|
type: Injectable,
|
|
12742
12695
|
args: [{
|
|
12743
12696
|
providedIn: 'root'
|
|
@@ -12753,9 +12706,9 @@ class PropertyCategoryMovementService extends RestService$1 {
|
|
|
12753
12706
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
12754
12707
|
}
|
|
12755
12708
|
}
|
|
12756
|
-
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12757
|
-
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12709
|
+
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12710
|
+
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
|
|
12711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
|
|
12759
12712
|
type: Injectable,
|
|
12760
12713
|
args: [{
|
|
12761
12714
|
providedIn: 'root'
|
|
@@ -12797,9 +12750,9 @@ class PropertyDocumentService extends RestService$1 {
|
|
|
12797
12750
|
});
|
|
12798
12751
|
}
|
|
12799
12752
|
}
|
|
12800
|
-
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12801
|
-
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12753
|
+
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12754
|
+
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
|
|
12755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, decorators: [{
|
|
12803
12756
|
type: Injectable,
|
|
12804
12757
|
args: [{
|
|
12805
12758
|
providedIn: 'root'
|
|
@@ -12816,9 +12769,9 @@ class TaxExemptionService extends RestService$1 {
|
|
|
12816
12769
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
12817
12770
|
}
|
|
12818
12771
|
}
|
|
12819
|
-
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12820
|
-
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12772
|
+
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12773
|
+
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
|
|
12774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, decorators: [{
|
|
12822
12775
|
type: Injectable,
|
|
12823
12776
|
args: [{
|
|
12824
12777
|
providedIn: 'root'
|
|
@@ -12834,9 +12787,9 @@ class PropertySaleService extends RestService$1 {
|
|
|
12834
12787
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
12835
12788
|
}
|
|
12836
12789
|
}
|
|
12837
|
-
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12838
|
-
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12790
|
+
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12791
|
+
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
|
|
12792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, decorators: [{
|
|
12840
12793
|
type: Injectable,
|
|
12841
12794
|
args: [{
|
|
12842
12795
|
providedIn: 'root'
|
|
@@ -12883,9 +12836,9 @@ class PropertyShareService extends RestService$1 {
|
|
|
12883
12836
|
this.listenCSE(PropertySale, ['post', 'delete'], this.resetCache);
|
|
12884
12837
|
}
|
|
12885
12838
|
}
|
|
12886
|
-
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12887
|
-
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12839
|
+
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12840
|
+
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
|
|
12841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, decorators: [{
|
|
12889
12842
|
type: Injectable,
|
|
12890
12843
|
args: [{
|
|
12891
12844
|
providedIn: 'root'
|
|
@@ -12982,9 +12935,9 @@ class PropertyService extends RestService$1 {
|
|
|
12982
12935
|
}));
|
|
12983
12936
|
}
|
|
12984
12937
|
}
|
|
12985
|
-
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12986
|
-
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
12987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12938
|
+
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12939
|
+
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, providedIn: 'root' });
|
|
12940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, decorators: [{
|
|
12988
12941
|
type: Injectable,
|
|
12989
12942
|
args: [{
|
|
12990
12943
|
providedIn: 'root'
|
|
@@ -13028,9 +12981,9 @@ class ServiceNotificationService extends RestService {
|
|
|
13028
12981
|
});
|
|
13029
12982
|
}
|
|
13030
12983
|
}
|
|
13031
|
-
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13032
|
-
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12984
|
+
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12985
|
+
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
|
|
12986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, decorators: [{
|
|
13034
12987
|
type: Injectable,
|
|
13035
12988
|
args: [{
|
|
13036
12989
|
providedIn: 'root'
|
|
@@ -13079,9 +13032,9 @@ class SoleBusinessService extends RestService {
|
|
|
13079
13032
|
}));
|
|
13080
13033
|
}
|
|
13081
13034
|
}
|
|
13082
|
-
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13083
|
-
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13035
|
+
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13036
|
+
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
|
|
13037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, decorators: [{
|
|
13085
13038
|
type: Injectable,
|
|
13086
13039
|
args: [{
|
|
13087
13040
|
providedIn: 'root'
|
|
@@ -13096,9 +13049,9 @@ class SoleBusinessActivityService extends RestService {
|
|
|
13096
13049
|
this.isHydra = true;
|
|
13097
13050
|
}
|
|
13098
13051
|
}
|
|
13099
|
-
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13100
|
-
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13052
|
+
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13053
|
+
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
|
|
13054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
|
|
13102
13055
|
type: Injectable,
|
|
13103
13056
|
args: [{
|
|
13104
13057
|
providedIn: 'root'
|
|
@@ -13124,9 +13077,9 @@ class SoleBusinessLossService extends RestService {
|
|
|
13124
13077
|
});
|
|
13125
13078
|
}
|
|
13126
13079
|
}
|
|
13127
|
-
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13128
|
-
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13080
|
+
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13081
|
+
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
|
|
13082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, decorators: [{
|
|
13130
13083
|
type: Injectable,
|
|
13131
13084
|
args: [{
|
|
13132
13085
|
providedIn: 'root'
|
|
@@ -13144,9 +13097,9 @@ class SoleBusinessLossOffsetRuleService extends RestService {
|
|
|
13144
13097
|
this.isHydra = true;
|
|
13145
13098
|
}
|
|
13146
13099
|
}
|
|
13147
|
-
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13148
|
-
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13100
|
+
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13101
|
+
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
|
|
13102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
|
|
13150
13103
|
type: Injectable,
|
|
13151
13104
|
args: [{
|
|
13152
13105
|
providedIn: 'root'
|
|
@@ -13161,9 +13114,9 @@ class SoleContactService extends RestService {
|
|
|
13161
13114
|
this.isHydra = true;
|
|
13162
13115
|
}
|
|
13163
13116
|
}
|
|
13164
|
-
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13165
|
-
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13117
|
+
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13118
|
+
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, providedIn: 'root' });
|
|
13119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, decorators: [{
|
|
13167
13120
|
type: Injectable,
|
|
13168
13121
|
args: [{
|
|
13169
13122
|
providedIn: 'root'
|
|
@@ -13219,9 +13172,9 @@ class SoleDepreciationMethodService {
|
|
|
13219
13172
|
});
|
|
13220
13173
|
}
|
|
13221
13174
|
}
|
|
13222
|
-
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13223
|
-
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13175
|
+
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13176
|
+
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
|
|
13177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
|
|
13225
13178
|
type: Injectable,
|
|
13226
13179
|
args: [{
|
|
13227
13180
|
providedIn: 'root'
|
|
@@ -13274,9 +13227,9 @@ class SoleDetailsService {
|
|
|
13274
13227
|
}));
|
|
13275
13228
|
}
|
|
13276
13229
|
}
|
|
13277
|
-
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13278
|
-
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13230
|
+
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13231
|
+
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
|
|
13232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, decorators: [{
|
|
13280
13233
|
type: Injectable,
|
|
13281
13234
|
args: [{
|
|
13282
13235
|
providedIn: 'root'
|
|
@@ -13334,11 +13287,10 @@ class SoleInvoiceService extends RestService {
|
|
|
13334
13287
|
* Basically needed to create a new invoice to show its number when the invoice has not yet been sent to the backend
|
|
13335
13288
|
*/
|
|
13336
13289
|
getNewInvoiceNumber() {
|
|
13337
|
-
var _a, _b;
|
|
13338
13290
|
if (!this.cache) {
|
|
13339
13291
|
return 0;
|
|
13340
13292
|
}
|
|
13341
|
-
const number =
|
|
13293
|
+
const number = last(this.cache)?.number ?? 0;
|
|
13342
13294
|
return number + 1;
|
|
13343
13295
|
}
|
|
13344
13296
|
listenAllocations() {
|
|
@@ -13350,9 +13302,9 @@ class SoleInvoiceService extends RestService {
|
|
|
13350
13302
|
});
|
|
13351
13303
|
}
|
|
13352
13304
|
}
|
|
13353
|
-
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13354
|
-
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13305
|
+
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13306
|
+
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
|
|
13307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, decorators: [{
|
|
13356
13308
|
type: Injectable,
|
|
13357
13309
|
args: [{
|
|
13358
13310
|
providedIn: 'root'
|
|
@@ -13367,9 +13319,9 @@ class SoleInvoiceTemplateService extends RestService {
|
|
|
13367
13319
|
this.isHydra = true;
|
|
13368
13320
|
}
|
|
13369
13321
|
}
|
|
13370
|
-
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13371
|
-
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13322
|
+
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13323
|
+
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
|
|
13324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
|
|
13373
13325
|
type: Injectable,
|
|
13374
13326
|
args: [{
|
|
13375
13327
|
providedIn: 'root'
|
|
@@ -13384,9 +13336,9 @@ class BasReportService extends RestService {
|
|
|
13384
13336
|
this.isHydra = true;
|
|
13385
13337
|
}
|
|
13386
13338
|
}
|
|
13387
|
-
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13388
|
-
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13339
|
+
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13340
|
+
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, providedIn: 'root' });
|
|
13341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, decorators: [{
|
|
13390
13342
|
type: Injectable,
|
|
13391
13343
|
args: [{
|
|
13392
13344
|
providedIn: 'root'
|
|
@@ -13406,9 +13358,9 @@ class ServicePriceService extends RestService$1 {
|
|
|
13406
13358
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
13407
13359
|
}
|
|
13408
13360
|
}
|
|
13409
|
-
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13410
|
-
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13361
|
+
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13362
|
+
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
|
|
13363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, decorators: [{
|
|
13412
13364
|
type: Injectable,
|
|
13413
13365
|
args: [{
|
|
13414
13366
|
providedIn: 'root'
|
|
@@ -13434,9 +13386,9 @@ class ServicePaymentService extends RestService$1 {
|
|
|
13434
13386
|
return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
|
|
13435
13387
|
}
|
|
13436
13388
|
}
|
|
13437
|
-
ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13438
|
-
ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13389
|
+
ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13390
|
+
ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
|
|
13391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, decorators: [{
|
|
13440
13392
|
type: Injectable,
|
|
13441
13393
|
args: [{
|
|
13442
13394
|
providedIn: 'root'
|
|
@@ -13485,18 +13437,16 @@ class SubscriptionService extends RestService$1 {
|
|
|
13485
13437
|
* @TODO remove
|
|
13486
13438
|
* redirect to stripe payment page
|
|
13487
13439
|
*/
|
|
13488
|
-
checkoutRedirect(subscription) {
|
|
13489
|
-
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
stripe.redirectToCheckout({ sessionId: session });
|
|
13499
|
-
});
|
|
13440
|
+
async checkoutRedirect(subscription) {
|
|
13441
|
+
const stripe = await loadStripe(this.environment.stripePk);
|
|
13442
|
+
this.http.post(`${this.environment.apiV2}/stripe/checkout-session`, {
|
|
13443
|
+
items: subscription.items,
|
|
13444
|
+
successUrl: window.location.href,
|
|
13445
|
+
cancelUrl: window.location.href
|
|
13446
|
+
})
|
|
13447
|
+
.subscribe((session) => {
|
|
13448
|
+
// @Todo remove user TRIAL status
|
|
13449
|
+
stripe.redirectToCheckout({ sessionId: session });
|
|
13500
13450
|
});
|
|
13501
13451
|
}
|
|
13502
13452
|
/**
|
|
@@ -13549,9 +13499,9 @@ class SubscriptionService extends RestService$1 {
|
|
|
13549
13499
|
});
|
|
13550
13500
|
}
|
|
13551
13501
|
}
|
|
13552
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13553
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13502
|
+
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13503
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
|
|
13504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
13555
13505
|
type: Injectable,
|
|
13556
13506
|
args: [{
|
|
13557
13507
|
providedIn: 'root'
|
|
@@ -13571,9 +13521,9 @@ class ServiceProductService extends RestService$1 {
|
|
|
13571
13521
|
this.isApiPlatform = true;
|
|
13572
13522
|
}
|
|
13573
13523
|
}
|
|
13574
|
-
ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13575
|
-
ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13524
|
+
ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13525
|
+
ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
|
|
13526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, decorators: [{
|
|
13577
13527
|
type: Injectable,
|
|
13578
13528
|
args: [{
|
|
13579
13529
|
providedIn: 'root'
|
|
@@ -13605,9 +13555,9 @@ class TaxReviewHistoryService extends RestService {
|
|
|
13605
13555
|
});
|
|
13606
13556
|
}
|
|
13607
13557
|
}
|
|
13608
|
-
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13609
|
-
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13558
|
+
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13559
|
+
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
|
|
13560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
|
|
13611
13561
|
type: Injectable,
|
|
13612
13562
|
args: [{
|
|
13613
13563
|
providedIn: 'root'
|
|
@@ -13696,9 +13646,9 @@ class TaxReviewService extends RestService {
|
|
|
13696
13646
|
});
|
|
13697
13647
|
}
|
|
13698
13648
|
}
|
|
13699
|
-
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13700
|
-
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13649
|
+
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13650
|
+
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
|
|
13651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, decorators: [{
|
|
13702
13652
|
type: Injectable,
|
|
13703
13653
|
args: [{
|
|
13704
13654
|
providedIn: 'root'
|
|
@@ -13755,9 +13705,9 @@ class TaxSummaryService {
|
|
|
13755
13705
|
});
|
|
13756
13706
|
}
|
|
13757
13707
|
}
|
|
13758
|
-
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13759
|
-
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13708
|
+
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13709
|
+
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
|
|
13710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, decorators: [{
|
|
13761
13711
|
type: Injectable,
|
|
13762
13712
|
args: [{
|
|
13763
13713
|
providedIn: 'root'
|
|
@@ -13851,9 +13801,9 @@ class TransactionAllocationService extends RestService {
|
|
|
13851
13801
|
});
|
|
13852
13802
|
}
|
|
13853
13803
|
}
|
|
13854
|
-
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13855
|
-
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13804
|
+
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13805
|
+
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
|
|
13806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, decorators: [{
|
|
13857
13807
|
type: Injectable,
|
|
13858
13808
|
args: [{
|
|
13859
13809
|
providedIn: 'root'
|
|
@@ -13879,9 +13829,9 @@ class TransactionReceiptService extends ReceiptService {
|
|
|
13879
13829
|
this.listenEvents();
|
|
13880
13830
|
}
|
|
13881
13831
|
}
|
|
13882
|
-
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13883
|
-
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
13884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13832
|
+
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13833
|
+
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
|
|
13834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, decorators: [{
|
|
13885
13835
|
type: Injectable,
|
|
13886
13836
|
args: [{
|
|
13887
13837
|
providedIn: 'root'
|
|
@@ -13964,8 +13914,7 @@ class TransactionService extends RestService {
|
|
|
13964
13914
|
return this.get()
|
|
13965
13915
|
.pipe(map((transactions) => {
|
|
13966
13916
|
return transactions.filter((transaction) => {
|
|
13967
|
-
|
|
13968
|
-
return ((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id) === propertyId;
|
|
13917
|
+
return transaction.property?.id === propertyId;
|
|
13969
13918
|
});
|
|
13970
13919
|
}));
|
|
13971
13920
|
}
|
|
@@ -14100,7 +14049,6 @@ class TransactionService extends RestService {
|
|
|
14100
14049
|
return this.http.delete(`${this.environment.apiV2}/${this.url}/${model.id}`)
|
|
14101
14050
|
.pipe(map(() => {
|
|
14102
14051
|
this.cache = this.cache.filter((transaction) => {
|
|
14103
|
-
var _a;
|
|
14104
14052
|
// when delete transfer we delete actually 2 transactions
|
|
14105
14053
|
if (model.isTransfer) {
|
|
14106
14054
|
const ids = [model.id];
|
|
@@ -14115,7 +14063,7 @@ class TransactionService extends RestService {
|
|
|
14115
14063
|
}
|
|
14116
14064
|
return !ids.includes(transaction.id);
|
|
14117
14065
|
}
|
|
14118
|
-
return transaction.id !== model.id &&
|
|
14066
|
+
return transaction.id !== model.id && transaction.parentTransaction?.id !== model.id;
|
|
14119
14067
|
});
|
|
14120
14068
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_DELETED, model));
|
|
14121
14069
|
this.updateCache();
|
|
@@ -14201,9 +14149,9 @@ class TransactionService extends RestService {
|
|
|
14201
14149
|
});
|
|
14202
14150
|
}
|
|
14203
14151
|
}
|
|
14204
|
-
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14205
|
-
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14152
|
+
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14153
|
+
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, providedIn: 'root' });
|
|
14154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, decorators: [{
|
|
14207
14155
|
type: Injectable,
|
|
14208
14156
|
args: [{
|
|
14209
14157
|
providedIn: 'root'
|
|
@@ -14232,9 +14180,9 @@ class TutorialVideoService {
|
|
|
14232
14180
|
}
|
|
14233
14181
|
TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
|
|
14234
14182
|
TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
|
|
14235
|
-
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14236
|
-
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14183
|
+
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14184
|
+
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
|
|
14185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, decorators: [{
|
|
14238
14186
|
type: Injectable,
|
|
14239
14187
|
args: [{
|
|
14240
14188
|
providedIn: 'root'
|
|
@@ -14254,9 +14202,9 @@ class VehicleService extends RestService {
|
|
|
14254
14202
|
this.modelClass = Vehicle;
|
|
14255
14203
|
}
|
|
14256
14204
|
}
|
|
14257
|
-
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14258
|
-
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14205
|
+
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14206
|
+
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, providedIn: 'root' });
|
|
14207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, decorators: [{
|
|
14260
14208
|
type: Injectable,
|
|
14261
14209
|
args: [{
|
|
14262
14210
|
providedIn: 'root'
|
|
@@ -14322,15 +14270,15 @@ class VehicleClaimService extends RestService {
|
|
|
14322
14270
|
// @TODO Vik (TT-2210): need batch endpoint for this update
|
|
14323
14271
|
// @TODO Alex (TT-2210): fix frontend when endpoint ready
|
|
14324
14272
|
const batch$ = this.cache.map((claim) => {
|
|
14325
|
-
const claimToUpdate = plainToClass(VehicleClaim, Object.assign({}, claim, { workUsage: bestPeriod
|
|
14273
|
+
const claimToUpdate = plainToClass(VehicleClaim, Object.assign({}, claim, { workUsage: bestPeriod?.getWorkUsageByClaim(claim) }));
|
|
14326
14274
|
return this.update(claimToUpdate);
|
|
14327
14275
|
});
|
|
14328
14276
|
combineLatest(batch$).subscribe();
|
|
14329
14277
|
}
|
|
14330
14278
|
}
|
|
14331
|
-
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14332
|
-
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14279
|
+
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14280
|
+
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
|
|
14281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, decorators: [{
|
|
14334
14282
|
type: Injectable,
|
|
14335
14283
|
args: [{
|
|
14336
14284
|
providedIn: 'root'
|
|
@@ -14407,9 +14355,9 @@ class VehicleClaimDetailsService {
|
|
|
14407
14355
|
this.update(vehicleClaimDetails).subscribe();
|
|
14408
14356
|
}
|
|
14409
14357
|
}
|
|
14410
|
-
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14411
|
-
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14358
|
+
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14359
|
+
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
|
|
14360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
|
|
14413
14361
|
type: Injectable,
|
|
14414
14362
|
args: [{
|
|
14415
14363
|
providedIn: 'root'
|
|
@@ -14429,9 +14377,9 @@ class VehicleLogbookService extends RestService {
|
|
|
14429
14377
|
this.modelClass = VehicleLogbook;
|
|
14430
14378
|
}
|
|
14431
14379
|
}
|
|
14432
|
-
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14433
|
-
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14380
|
+
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14381
|
+
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
|
|
14382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, decorators: [{
|
|
14435
14383
|
type: Injectable,
|
|
14436
14384
|
args: [{
|
|
14437
14385
|
providedIn: 'root'
|
|
@@ -14464,9 +14412,9 @@ class OccupationService {
|
|
|
14464
14412
|
return this.occupationsSubject.asObservable();
|
|
14465
14413
|
}
|
|
14466
14414
|
}
|
|
14467
|
-
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14468
|
-
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14415
|
+
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14416
|
+
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, providedIn: 'root' });
|
|
14417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, decorators: [{
|
|
14470
14418
|
type: Injectable,
|
|
14471
14419
|
args: [{
|
|
14472
14420
|
providedIn: 'root'
|
|
@@ -14510,9 +14458,9 @@ class UserEventSettingService extends RestService {
|
|
|
14510
14458
|
}));
|
|
14511
14459
|
}
|
|
14512
14460
|
}
|
|
14513
|
-
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14514
|
-
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14461
|
+
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14462
|
+
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
|
|
14463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, decorators: [{
|
|
14516
14464
|
type: Injectable,
|
|
14517
14465
|
args: [{
|
|
14518
14466
|
providedIn: 'root'
|
|
@@ -14527,9 +14475,9 @@ class UserEventTypeService extends RestService {
|
|
|
14527
14475
|
this.isHydra = true;
|
|
14528
14476
|
}
|
|
14529
14477
|
}
|
|
14530
|
-
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14531
|
-
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14478
|
+
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14479
|
+
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
|
|
14480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, decorators: [{
|
|
14533
14481
|
type: Injectable,
|
|
14534
14482
|
args: [{
|
|
14535
14483
|
providedIn: 'root'
|
|
@@ -14546,9 +14494,9 @@ class UsersInviteService extends RestService {
|
|
|
14546
14494
|
this.url = 'users/invite';
|
|
14547
14495
|
}
|
|
14548
14496
|
}
|
|
14549
|
-
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14550
|
-
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14551
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14497
|
+
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14498
|
+
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
|
|
14499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, decorators: [{
|
|
14552
14500
|
type: Injectable,
|
|
14553
14501
|
args: [{
|
|
14554
14502
|
providedIn: 'root'
|
|
@@ -14739,9 +14687,9 @@ class AccountSetupService {
|
|
|
14739
14687
|
}));
|
|
14740
14688
|
}
|
|
14741
14689
|
}
|
|
14742
|
-
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14743
|
-
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14690
|
+
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14691
|
+
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
|
|
14692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, decorators: [{
|
|
14745
14693
|
type: Injectable,
|
|
14746
14694
|
args: [{
|
|
14747
14695
|
providedIn: 'root'
|
|
@@ -14767,9 +14715,9 @@ class RewardfulService {
|
|
|
14767
14715
|
});
|
|
14768
14716
|
}
|
|
14769
14717
|
}
|
|
14770
|
-
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14771
|
-
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14718
|
+
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14719
|
+
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, providedIn: 'root' });
|
|
14720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, decorators: [{
|
|
14773
14721
|
type: Injectable,
|
|
14774
14722
|
args: [{
|
|
14775
14723
|
providedIn: 'root'
|
|
@@ -14814,9 +14762,9 @@ class AssetsService {
|
|
|
14814
14762
|
return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
|
|
14815
14763
|
}
|
|
14816
14764
|
}
|
|
14817
|
-
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14818
|
-
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14765
|
+
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14766
|
+
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, providedIn: 'root' });
|
|
14767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, decorators: [{
|
|
14820
14768
|
type: Injectable,
|
|
14821
14769
|
args: [{
|
|
14822
14770
|
providedIn: 'root'
|
|
@@ -14879,9 +14827,9 @@ class BankTransactionCalculationService {
|
|
|
14879
14827
|
return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
|
|
14880
14828
|
}
|
|
14881
14829
|
}
|
|
14882
|
-
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14883
|
-
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14830
|
+
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14831
|
+
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
|
|
14832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
|
|
14885
14833
|
type: Injectable,
|
|
14886
14834
|
args: [{
|
|
14887
14835
|
providedIn: 'root'
|
|
@@ -14910,9 +14858,9 @@ class BankAccountCalculationService {
|
|
|
14910
14858
|
return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
|
|
14911
14859
|
}
|
|
14912
14860
|
}
|
|
14913
|
-
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14914
|
-
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14861
|
+
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14862
|
+
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
|
|
14863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, decorators: [{
|
|
14916
14864
|
type: Injectable,
|
|
14917
14865
|
args: [{
|
|
14918
14866
|
providedIn: 'root'
|
|
@@ -14937,9 +14885,9 @@ class ExportFormatterService {
|
|
|
14937
14885
|
}));
|
|
14938
14886
|
}
|
|
14939
14887
|
}
|
|
14940
|
-
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14941
|
-
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14888
|
+
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$2.CurrencyPipe }, { token: i1$2.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14889
|
+
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
|
|
14890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, decorators: [{
|
|
14943
14891
|
type: Injectable,
|
|
14944
14892
|
args: [{
|
|
14945
14893
|
providedIn: 'root'
|
|
@@ -14960,9 +14908,9 @@ class HeaderTitleService {
|
|
|
14960
14908
|
}), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
|
|
14961
14909
|
}
|
|
14962
14910
|
}
|
|
14963
|
-
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14964
|
-
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14911
|
+
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14912
|
+
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
|
|
14913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, decorators: [{
|
|
14966
14914
|
type: Injectable,
|
|
14967
14915
|
args: [{
|
|
14968
14916
|
providedIn: 'root'
|
|
@@ -14996,9 +14944,9 @@ class IntercomService {
|
|
|
14996
14944
|
window.Intercom('boot', connectionCredentials);
|
|
14997
14945
|
}
|
|
14998
14946
|
}
|
|
14999
|
-
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15000
|
-
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14947
|
+
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14948
|
+
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, providedIn: 'root' });
|
|
14949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, decorators: [{
|
|
15002
14950
|
type: Injectable,
|
|
15003
14951
|
args: [{
|
|
15004
14952
|
providedIn: 'root'
|
|
@@ -15060,9 +15008,9 @@ class PdfFromDomElementService {
|
|
|
15060
15008
|
.then((blob) => new File([blob], filename, { type: 'application/pdf' })));
|
|
15061
15009
|
}
|
|
15062
15010
|
}
|
|
15063
|
-
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15064
|
-
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15065
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15011
|
+
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15012
|
+
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
|
|
15013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, decorators: [{
|
|
15066
15014
|
type: Injectable,
|
|
15067
15015
|
args: [{
|
|
15068
15016
|
providedIn: 'root'
|
|
@@ -15141,9 +15089,9 @@ class PdfFromTableService {
|
|
|
15141
15089
|
doc.addImage(logo, 'PNG', doc.internal.pageSize.width - FILE_SETTINGS.logo.positionX, FILE_SETTINGS.logo.positionY, FILE_SETTINGS.logo.width, FILE_SETTINGS.logo.height);
|
|
15142
15090
|
}
|
|
15143
15091
|
}
|
|
15144
|
-
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15145
|
-
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15092
|
+
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15093
|
+
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
|
|
15094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, decorators: [{
|
|
15147
15095
|
type: Injectable,
|
|
15148
15096
|
args: [{
|
|
15149
15097
|
providedIn: 'root'
|
|
@@ -15170,14 +15118,19 @@ class PdfFromDataTableService extends PdfFromTableService {
|
|
|
15170
15118
|
this.setDocumentTitle(pdf, title);
|
|
15171
15119
|
this.setDocumentLogo(pdf);
|
|
15172
15120
|
dataTables.forEach((dataTable) => {
|
|
15173
|
-
autoTable(pdf,
|
|
15121
|
+
autoTable(pdf, {
|
|
15122
|
+
head: [dataTable.header],
|
|
15123
|
+
body: this.formatter.format(dataTable.body),
|
|
15124
|
+
foot: this.formatter.format(dataTable.footer),
|
|
15125
|
+
...this.setTableOptions(pdf, dataTable.caption)
|
|
15126
|
+
});
|
|
15174
15127
|
});
|
|
15175
15128
|
return pdf;
|
|
15176
15129
|
}
|
|
15177
15130
|
}
|
|
15178
|
-
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15179
|
-
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15131
|
+
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15132
|
+
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
|
|
15133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, decorators: [{
|
|
15181
15134
|
type: Injectable,
|
|
15182
15135
|
args: [{
|
|
15183
15136
|
providedIn: 'root'
|
|
@@ -15205,14 +15158,17 @@ class PdfFromHtmlTableService extends PdfFromTableService {
|
|
|
15205
15158
|
table.createCaption();
|
|
15206
15159
|
table.caption.innerText = '';
|
|
15207
15160
|
}
|
|
15208
|
-
autoTable(pdf,
|
|
15161
|
+
autoTable(pdf, {
|
|
15162
|
+
html: table,
|
|
15163
|
+
...this.setTableOptions(pdf, table.caption.innerText)
|
|
15164
|
+
});
|
|
15209
15165
|
});
|
|
15210
15166
|
return pdf;
|
|
15211
15167
|
}
|
|
15212
15168
|
}
|
|
15213
|
-
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15214
|
-
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15169
|
+
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15170
|
+
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
|
|
15171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
|
|
15216
15172
|
type: Injectable,
|
|
15217
15173
|
args: [{
|
|
15218
15174
|
providedIn: 'root'
|
|
@@ -15245,9 +15201,9 @@ class EquityPositionChartService {
|
|
|
15245
15201
|
}));
|
|
15246
15202
|
}
|
|
15247
15203
|
}
|
|
15248
|
-
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15249
|
-
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15204
|
+
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 });
|
|
15205
|
+
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
|
|
15206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, decorators: [{
|
|
15251
15207
|
type: Injectable,
|
|
15252
15208
|
args: [{
|
|
15253
15209
|
providedIn: 'root'
|
|
@@ -15298,8 +15254,7 @@ class PropertyCalculationService {
|
|
|
15298
15254
|
return properties.items.reduce((totalAmount, property) => {
|
|
15299
15255
|
return totalAmount + bankAccounts.items
|
|
15300
15256
|
.reduce((propertyAmount, bankAccount) => {
|
|
15301
|
-
|
|
15302
|
-
return propertyAmount + bankAccount.getPropertyPercentage(property.id) * (((_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.amount) || 0);
|
|
15257
|
+
return propertyAmount + bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.amount || 0);
|
|
15303
15258
|
}, 0);
|
|
15304
15259
|
}, 0);
|
|
15305
15260
|
}
|
|
@@ -15419,9 +15374,9 @@ class PropertyCalculationService {
|
|
|
15419
15374
|
}
|
|
15420
15375
|
}
|
|
15421
15376
|
}
|
|
15422
|
-
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15423
|
-
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15377
|
+
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15378
|
+
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
|
|
15379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, decorators: [{
|
|
15425
15380
|
type: Injectable,
|
|
15426
15381
|
args: [{
|
|
15427
15382
|
providedIn: 'root'
|
|
@@ -15478,9 +15433,9 @@ class PropertyTransactionReportService {
|
|
|
15478
15433
|
}));
|
|
15479
15434
|
}
|
|
15480
15435
|
}
|
|
15481
|
-
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15482
|
-
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15436
|
+
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 });
|
|
15437
|
+
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
|
|
15438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
|
|
15484
15439
|
type: Injectable,
|
|
15485
15440
|
args: [{
|
|
15486
15441
|
providedIn: 'root'
|
|
@@ -15550,9 +15505,9 @@ class TransactionCalculationService {
|
|
|
15550
15505
|
return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
|
|
15551
15506
|
}
|
|
15552
15507
|
}
|
|
15553
|
-
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15554
|
-
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15508
|
+
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15509
|
+
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
|
|
15510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, decorators: [{
|
|
15556
15511
|
type: Injectable,
|
|
15557
15512
|
args: [{
|
|
15558
15513
|
providedIn: 'root'
|
|
@@ -15585,7 +15540,7 @@ class LogbookBestPeriodService {
|
|
|
15585
15540
|
.subscribe(([details, logbooks]) => {
|
|
15586
15541
|
let period;
|
|
15587
15542
|
// calculate current initial best period
|
|
15588
|
-
if (
|
|
15543
|
+
if (details?.isManual || !details?.isLogbookMethod() || !logbooks.isBestPeriodExist()) {
|
|
15589
15544
|
period = null;
|
|
15590
15545
|
}
|
|
15591
15546
|
else {
|
|
@@ -15612,9 +15567,9 @@ class LogbookBestPeriodService {
|
|
|
15612
15567
|
});
|
|
15613
15568
|
}
|
|
15614
15569
|
}
|
|
15615
|
-
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15616
|
-
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15570
|
+
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15571
|
+
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
|
|
15572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
|
|
15618
15573
|
type: Injectable,
|
|
15619
15574
|
args: [{
|
|
15620
15575
|
providedIn: 'root'
|
|
@@ -15655,9 +15610,9 @@ class XlsxService {
|
|
|
15655
15610
|
return xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
|
|
15656
15611
|
}
|
|
15657
15612
|
}
|
|
15658
|
-
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15659
|
-
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
15660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15613
|
+
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15614
|
+
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, providedIn: 'root' });
|
|
15615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, decorators: [{
|
|
15661
15616
|
type: Injectable,
|
|
15662
15617
|
args: [{
|
|
15663
15618
|
providedIn: 'root'
|
|
@@ -15746,7 +15701,7 @@ function taxReviewFilterPredicate(data, filter) {
|
|
|
15746
15701
|
* @TODO rename to AbstractFormGroup
|
|
15747
15702
|
* @TODO Alex TT-2190: refactor: check and improve logic
|
|
15748
15703
|
*/
|
|
15749
|
-
class AbstractForm extends
|
|
15704
|
+
class AbstractForm extends UntypedFormGroup {
|
|
15750
15705
|
constructor(controls, model, validatorOrOpts, asyncValidator) {
|
|
15751
15706
|
super(controls, validatorOrOpts, asyncValidator);
|
|
15752
15707
|
/**
|
|
@@ -15807,240 +15762,70 @@ class AbstractForm extends FormGroup {
|
|
|
15807
15762
|
}
|
|
15808
15763
|
|
|
15809
15764
|
/**
|
|
15810
|
-
*
|
|
15811
|
-
* Use with groups of boolean form controls (checkbox, toggle, etc.)
|
|
15812
|
-
*/
|
|
15813
|
-
function atLeastOneCheckedValidator() {
|
|
15814
|
-
return (formGroup) => {
|
|
15815
|
-
return Object.values(formGroup.controls)
|
|
15816
|
-
.find((control) => control.value) ? null : { nothingChecked: true };
|
|
15817
|
-
};
|
|
15818
|
-
}
|
|
15819
|
-
|
|
15820
|
-
/**
|
|
15821
|
-
* Validation function for autocomplete fields. Checks that the user should select a value from a list rather than type in input field
|
|
15822
|
-
* @TODO Alex: create class AppValidators with static methods and move there all custom validators (line Angular Validators)
|
|
15765
|
+
* Validator for address, check if corelogic suggestion selected correctly
|
|
15823
15766
|
*/
|
|
15824
|
-
function
|
|
15825
|
-
return (
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
|
|
15830
|
-
|
|
15831
|
-
|
|
15832
|
-
|
|
15833
|
-
|
|
15834
|
-
if (condition(control.parent)) {
|
|
15835
|
-
return validator(control);
|
|
15836
|
-
}
|
|
15767
|
+
function addressCorelogicValidator() {
|
|
15768
|
+
return (form) => {
|
|
15769
|
+
// we are interested in corelogic ids only for Australian addresses
|
|
15770
|
+
if (!form.isAustraliaSelected()) {
|
|
15771
|
+
return null;
|
|
15772
|
+
}
|
|
15773
|
+
// we need at least corelogic locality id to get growth percent
|
|
15774
|
+
const locIdControl = form.get('corelogicLocId');
|
|
15775
|
+
if (locIdControl.enabled && locIdControl.hasError('required')) {
|
|
15776
|
+
return { address: 'City, state or postal code not specified' };
|
|
15837
15777
|
}
|
|
15838
15778
|
return null;
|
|
15839
15779
|
};
|
|
15840
15780
|
}
|
|
15841
|
-
/**
|
|
15842
|
-
* Conditional validator depends on other fields and should be updated on each form value change
|
|
15843
|
-
*/
|
|
15844
|
-
function revalidateOnChanges(control) {
|
|
15845
|
-
if (control && control.parent && !control['_revalidateOnChanges']) {
|
|
15846
|
-
control['_revalidateOnChanges'] = true;
|
|
15847
|
-
control.parent.valueChanges.pipe(distinctUntilChanged((a, b) => JSON.stringify(a) === JSON.stringify(b)))
|
|
15848
|
-
.subscribe(() => {
|
|
15849
|
-
control.updateValueAndValidity({ emitEvent: false });
|
|
15850
|
-
});
|
|
15851
|
-
}
|
|
15852
|
-
return;
|
|
15853
|
-
}
|
|
15854
15781
|
|
|
15855
15782
|
/**
|
|
15856
|
-
*
|
|
15783
|
+
* Address form. Works with corelogic or manual address
|
|
15857
15784
|
*/
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
15862
|
-
|
|
15863
|
-
|
|
15864
|
-
|
|
15865
|
-
|
|
15866
|
-
|
|
15785
|
+
class AddressForm extends AbstractForm {
|
|
15786
|
+
constructor(
|
|
15787
|
+
// no default value because Address form is always a child form. That's mean address value always passed and then default value never work.
|
|
15788
|
+
// even if null passed, default value will not work
|
|
15789
|
+
address) {
|
|
15790
|
+
super({
|
|
15791
|
+
// prefill search input with address string for edit case
|
|
15792
|
+
searchQuery: new UntypedFormControl(address?.address ? address.nameLong : null, Validators.required),
|
|
15793
|
+
type: new UntypedFormControl(address?.type || AddressTypeEnum.STREET, Validators.required),
|
|
15794
|
+
// corelogic fields (required for Australia and disabled for other countries)
|
|
15795
|
+
corelogicLocId: new UntypedFormControl({ value: address?.corelogicLocId, disabled: true }, Validators.required),
|
|
15796
|
+
corelogicRefId: new UntypedFormControl({ value: address?.corelogicRefId, disabled: true }),
|
|
15797
|
+
// manual fields (using when address not found in corelogic)
|
|
15798
|
+
unitNumber: new UntypedFormControl({ value: address?.unitNumber, disabled: true }),
|
|
15799
|
+
address: new UntypedFormControl({ value: address?.address, disabled: true }, Validators.required),
|
|
15800
|
+
streetNumber: new UntypedFormControl({ value: address?.streetNumber, disabled: true }, [Validators.required, Validators.pattern(AddressForm.streetNumberPattern)]),
|
|
15801
|
+
street: new UntypedFormControl({ value: address?.street, disabled: true }, Validators.required),
|
|
15802
|
+
city: new UntypedFormControl({ value: address?.city, disabled: true }, Validators.required),
|
|
15803
|
+
state: new UntypedFormControl({ value: address?.state, disabled: true }, Validators.required),
|
|
15804
|
+
postcode: new UntypedFormControl({ value: address?.postcode, disabled: true }, Validators.required),
|
|
15805
|
+
country: new UntypedFormControl({ value: address?.country || Country.australia, disabled: true }, Validators.required)
|
|
15806
|
+
}, address, addressCorelogicValidator());
|
|
15807
|
+
/**
|
|
15808
|
+
* Emit event to search address in corelogic when user filled enough data for corelogic
|
|
15809
|
+
*/
|
|
15810
|
+
this.onSearch = new EventEmitter();
|
|
15811
|
+
if (this.isAustraliaSelected()) {
|
|
15812
|
+
this.enableCorelogicFields();
|
|
15867
15813
|
}
|
|
15868
|
-
|
|
15869
|
-
|
|
15814
|
+
this.listenEvents();
|
|
15815
|
+
}
|
|
15816
|
+
/**
|
|
15817
|
+
* Get search query for corelogic location search based on manual fields values
|
|
15818
|
+
*/
|
|
15819
|
+
get manualSearchQuery() {
|
|
15820
|
+
// nothing to search when manual fields are invalid or when selected country is not Australia because we don't need to use corelogic for other countries
|
|
15821
|
+
if (!this.isManualSearchAvailable() || !this.isAustraliaSelected()) {
|
|
15822
|
+
return '';
|
|
15870
15823
|
}
|
|
15871
|
-
|
|
15872
|
-
|
|
15873
|
-
}
|
|
15874
|
-
|
|
15875
|
-
function passwordMatchValidator(newPassControlName, confirmPassControlName) {
|
|
15876
|
-
return (group) => {
|
|
15877
|
-
const passwordControl = group.get(newPassControlName);
|
|
15878
|
-
const confirmControl = group.get(confirmPassControlName);
|
|
15879
|
-
if (confirmControl.errors && !confirmControl.hasError('passwordMismatch')) {
|
|
15880
|
-
// return if another validator has already found an error on the confirmControl
|
|
15881
|
-
return this;
|
|
15882
|
-
}
|
|
15883
|
-
if (passwordControl.value !== confirmControl.value) {
|
|
15884
|
-
confirmControl.setErrors({ passwordMismatch: true });
|
|
15885
|
-
}
|
|
15886
|
-
else {
|
|
15887
|
-
confirmControl.setErrors(null);
|
|
15888
|
-
}
|
|
15889
|
-
};
|
|
15890
|
-
}
|
|
15891
|
-
|
|
15892
|
-
var MessagesEnum$1;
|
|
15893
|
-
(function (MessagesEnum) {
|
|
15894
|
-
MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
|
|
15895
|
-
})(MessagesEnum$1 || (MessagesEnum$1 = {}));
|
|
15896
|
-
|
|
15897
|
-
/**
|
|
15898
|
-
* Validation function, that checks If date form value is more than provided date
|
|
15899
|
-
*/
|
|
15900
|
-
function minDateValidator(date, message = MessagesEnum$1.INVALID_DATE.replace('$1', new DatePipe('en-US').transform(date))) {
|
|
15901
|
-
return (control) => {
|
|
15902
|
-
if (!control.value) {
|
|
15903
|
-
return null;
|
|
15904
|
-
}
|
|
15905
|
-
// form control value can be as a Moment object - we wrap it in "new Date()" to work with it like with JS Date
|
|
15906
|
-
if (new Date(control.value) >= new Date(date)) {
|
|
15907
|
-
return null;
|
|
15908
|
-
}
|
|
15909
|
-
return { minDate: message };
|
|
15910
|
-
};
|
|
15911
|
-
}
|
|
15912
|
-
|
|
15913
|
-
/**
|
|
15914
|
-
* Validator that check if sum amount of provided fields is greater than provided sum
|
|
15915
|
-
* @param field to check in each formArray element
|
|
15916
|
-
* @param summary to compare with fields sum
|
|
15917
|
-
* @param fieldAlias to show it in error message
|
|
15918
|
-
*/
|
|
15919
|
-
function fieldsSumValidator(field, summary = 100, fieldAlias) {
|
|
15920
|
-
return (formArray) => {
|
|
15921
|
-
// calculate sum of desired fields in formArray control
|
|
15922
|
-
const fieldsSum = formArray['controls']
|
|
15923
|
-
.reduce((acc, group) => acc += group.get(field).value, 0);
|
|
15924
|
-
if (fieldsSum <= summary) {
|
|
15925
|
-
return null;
|
|
15926
|
-
}
|
|
15927
|
-
else {
|
|
15928
|
-
return {
|
|
15929
|
-
fieldsSum: {
|
|
15930
|
-
name: field,
|
|
15931
|
-
alias: fieldAlias,
|
|
15932
|
-
summary
|
|
15933
|
-
}
|
|
15934
|
-
};
|
|
15935
|
-
}
|
|
15936
|
-
};
|
|
15937
|
-
}
|
|
15938
|
-
|
|
15939
|
-
/**
|
|
15940
|
-
* Validation function, that checks If provided date is within a current financial year
|
|
15941
|
-
*/
|
|
15942
|
-
function currentFinYearValidator() {
|
|
15943
|
-
const currentFinYear = new FinancialYear();
|
|
15944
|
-
return (control) => {
|
|
15945
|
-
if (!control.value || control.value >= currentFinYear.startDate && control.value <= currentFinYear.endDate) {
|
|
15946
|
-
return null;
|
|
15947
|
-
}
|
|
15948
|
-
return { notCurrentFinYear: true };
|
|
15949
|
-
};
|
|
15950
|
-
}
|
|
15951
|
-
|
|
15952
|
-
const MAX_SIZE = 4194304;
|
|
15953
|
-
class FileValidator {
|
|
15954
|
-
// File max size check
|
|
15955
|
-
static fileMaxSize(maxSize = MAX_SIZE) {
|
|
15956
|
-
const validatorFn = (file) => {
|
|
15957
|
-
return file.size > maxSize ? { fileMaxSize: { maxSize } } : null;
|
|
15958
|
-
};
|
|
15959
|
-
return FileValidator.fileValidation(validatorFn);
|
|
15960
|
-
}
|
|
15961
|
-
// File extension check
|
|
15962
|
-
static fileExtensions(allowedExtensions = DOCUMENT_FILE_TYPES.all) {
|
|
15963
|
-
const validatorFn = (file) => {
|
|
15964
|
-
return allowedExtensions.includes(file.type) ? null : { fileExtension: { allowedExtensions: allowedExtensions.join() } };
|
|
15965
|
-
};
|
|
15966
|
-
return FileValidator.fileValidation(validatorFn);
|
|
15967
|
-
}
|
|
15968
|
-
static fileValidation(validatorFn) {
|
|
15969
|
-
return (formControl) => {
|
|
15970
|
-
if (!formControl.value) {
|
|
15971
|
-
return null;
|
|
15972
|
-
}
|
|
15973
|
-
return validatorFn(formControl.value);
|
|
15974
|
-
};
|
|
15975
|
-
}
|
|
15976
|
-
}
|
|
15977
|
-
|
|
15978
|
-
/**
|
|
15979
|
-
* Validator for address, check if corelogic suggestion selected correctly
|
|
15980
|
-
*/
|
|
15981
|
-
function addressCorelogicValidator() {
|
|
15982
|
-
return (form) => {
|
|
15983
|
-
if (form.isCorelogicRequired) {
|
|
15984
|
-
if (form.get('corelogicLocId').hasError('required')) {
|
|
15985
|
-
return { address: 'Street, city, state or postal code not specified' };
|
|
15986
|
-
}
|
|
15987
|
-
if (form.get('corelogicRefId').hasError('required')) {
|
|
15988
|
-
return { address: 'Unit/House number not specified' };
|
|
15989
|
-
}
|
|
15990
|
-
}
|
|
15991
|
-
return null;
|
|
15992
|
-
};
|
|
15993
|
-
}
|
|
15994
|
-
|
|
15995
|
-
/**
|
|
15996
|
-
* Address form. Works with corelogic or manual address
|
|
15997
|
-
*/
|
|
15998
|
-
class AddressForm extends AbstractForm {
|
|
15999
|
-
/**
|
|
16000
|
-
* @param address instance which should be created/edited
|
|
16001
|
-
* @param isCorelogicRequired for example, for property we need corelogic location even for manual address,
|
|
16002
|
-
* so we have to search corelogic location based on manual fields values
|
|
16003
|
-
*/
|
|
16004
|
-
constructor(address = plainToClass(Address, {}), isCorelogicRequired = false) {
|
|
16005
|
-
super({
|
|
16006
|
-
// prefill search input with address string for edit case
|
|
16007
|
-
searchQuery: new FormControl(address.address ? address.nameLong : null, Validators.required),
|
|
16008
|
-
type: new FormControl(address.type | AddressTypeEnum.STREET, Validators.required),
|
|
16009
|
-
// Corelogic fields
|
|
16010
|
-
corelogicLocId: new FormControl(address.corelogicLocId),
|
|
16011
|
-
corelogicRefId: new FormControl(address.corelogicRefId),
|
|
16012
|
-
// manual fields
|
|
16013
|
-
unitNumber: new FormControl({ value: address.unitNumber, disabled: true }),
|
|
16014
|
-
address: new FormControl({ value: address.address, disabled: true }, Validators.required),
|
|
16015
|
-
streetNumber: new FormControl({ value: address.streetNumber, disabled: true }, [Validators.required, Validators.pattern(AddressForm.streetNumberPattern)]),
|
|
16016
|
-
street: new FormControl({ value: address.street, disabled: true }, Validators.required),
|
|
16017
|
-
city: new FormControl({ value: address.city, disabled: true }, Validators.required),
|
|
16018
|
-
state: new FormControl({ value: address.state, disabled: true }, Validators.required),
|
|
16019
|
-
postcode: new FormControl({ value: address.postcode, disabled: true }, Validators.required),
|
|
16020
|
-
country: new FormControl({ value: address.country || Country.australia, disabled: true }, conditionalValidator(() => !isCorelogicRequired, Validators.required))
|
|
16021
|
-
}, address, addressCorelogicValidator());
|
|
16022
|
-
this.isCorelogicRequired = isCorelogicRequired;
|
|
16023
|
-
/**
|
|
16024
|
-
* Emit event to search address in corelogic when user filled enough data for corelogic
|
|
16025
|
-
*/
|
|
16026
|
-
this.onSearch = new EventEmitter();
|
|
16027
|
-
this.listenEvents();
|
|
16028
|
-
}
|
|
16029
|
-
/**
|
|
16030
|
-
* Get search query for corelogic location search based on manual fields values
|
|
16031
|
-
*/
|
|
16032
|
-
get manualSearchQuery() {
|
|
16033
|
-
if (!this.isManualSearchAvailable()) {
|
|
16034
|
-
return '';
|
|
16035
|
-
}
|
|
16036
|
-
return this.currentValue.nameLong;
|
|
15824
|
+
// for manual mode we search corelogic for city (location) and ignore street
|
|
15825
|
+
return `${this.get('city').value} ${this.get('state').value} ${this.get('postcode').value}`;
|
|
16037
15826
|
}
|
|
16038
15827
|
listenEvents() {
|
|
16039
15828
|
this.listenSearchQueryChanges();
|
|
16040
|
-
// no need to search corelogic locality when corelogic is not required
|
|
16041
|
-
if (this.isCorelogicRequired) {
|
|
16042
|
-
this.listenManualFieldsChanges();
|
|
16043
|
-
}
|
|
16044
15829
|
}
|
|
16045
15830
|
/**
|
|
16046
15831
|
* Handle corelogic suggestion select
|
|
@@ -16056,25 +15841,29 @@ class AddressForm extends AbstractForm {
|
|
|
16056
15841
|
corelogicRefId: suggestion.propertyId
|
|
16057
15842
|
});
|
|
16058
15843
|
}
|
|
15844
|
+
/**
|
|
15845
|
+
* Check if Australia is selected in country field
|
|
15846
|
+
*/
|
|
15847
|
+
isAustraliaSelected() {
|
|
15848
|
+
return this.get('country').value?.id === Country.australia.id;
|
|
15849
|
+
}
|
|
16059
15850
|
/**
|
|
16060
15851
|
* Enable manual mode
|
|
16061
15852
|
*/
|
|
16062
15853
|
switchToManual() {
|
|
16063
15854
|
this.isManual = true;
|
|
16064
15855
|
this.get('searchQuery').disable();
|
|
15856
|
+
this.get('unitNumber').enable();
|
|
16065
15857
|
this.get('address').enable();
|
|
16066
15858
|
this.get('streetNumber').enable();
|
|
16067
15859
|
this.get('street').enable();
|
|
16068
|
-
this.get('unitNumber').enable();
|
|
16069
15860
|
this.get('city').enable();
|
|
16070
15861
|
this.get('state').enable();
|
|
16071
15862
|
this.get('postcode').enable();
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
this.get('corelogicLocId').disable();
|
|
16075
|
-
this.get('corelogicRefId').disable();
|
|
16076
|
-
}
|
|
15863
|
+
this.get('country').enable();
|
|
15864
|
+
this.listenManualFieldsChanges();
|
|
16077
15865
|
this.listenStreetFieldsChanges();
|
|
15866
|
+
this.listenCountryChanges();
|
|
16078
15867
|
}
|
|
16079
15868
|
/**
|
|
16080
15869
|
* Emit event to search address in corelogic when search field changes
|
|
@@ -16106,7 +15895,7 @@ class AddressForm extends AbstractForm {
|
|
|
16106
15895
|
* Check if all fields required for manual corelogic search are filled before request sending
|
|
16107
15896
|
*/
|
|
16108
15897
|
isManualSearchAvailable() {
|
|
16109
|
-
return this.get('
|
|
15898
|
+
return this.get('city').valid && this.get('state').valid && this.get('postcode').valid;
|
|
16110
15899
|
}
|
|
16111
15900
|
/**
|
|
16112
15901
|
* When corelogic is required we have to search address even for manual address
|
|
@@ -16118,7 +15907,7 @@ class AddressForm extends AbstractForm {
|
|
|
16118
15907
|
// delay to avoid search request for each value change
|
|
16119
15908
|
debounceTime(AddressForm.searchDelay),
|
|
16120
15909
|
// do nothing when not all required fields filled
|
|
16121
|
-
filter(() => this.isManualSearchAvailable()), map(() => this.manualSearchQuery),
|
|
15910
|
+
filter(() => this.isManualSearchAvailable() && this.isAustraliaSelected()), map(() => this.manualSearchQuery),
|
|
16122
15911
|
// skip when value not changed
|
|
16123
15912
|
distinctUntilChanged())
|
|
16124
15913
|
.subscribe(() => {
|
|
@@ -16136,6 +15925,26 @@ class AddressForm extends AbstractForm {
|
|
|
16136
15925
|
this.get('address').setValue(`${this.get('streetNumber').value} ${this.get('street').value}`);
|
|
16137
15926
|
});
|
|
16138
15927
|
}
|
|
15928
|
+
enableCorelogicFields() {
|
|
15929
|
+
this.get('corelogicLocId').enable();
|
|
15930
|
+
this.get('corelogicRefId').enable();
|
|
15931
|
+
}
|
|
15932
|
+
disableCorelogicFields() {
|
|
15933
|
+
this.get('corelogicLocId').disable();
|
|
15934
|
+
this.get('corelogicRefId').disable();
|
|
15935
|
+
}
|
|
15936
|
+
/**
|
|
15937
|
+
* Corelogic loc id is required for Australian addresses
|
|
15938
|
+
*/
|
|
15939
|
+
listenCountryChanges() {
|
|
15940
|
+
this.get('country').valueChanges.subscribe(() => {
|
|
15941
|
+
if (this.isAustraliaSelected()) {
|
|
15942
|
+
this.enableCorelogicFields();
|
|
15943
|
+
return;
|
|
15944
|
+
}
|
|
15945
|
+
this.disableCorelogicFields();
|
|
15946
|
+
});
|
|
15947
|
+
}
|
|
16139
15948
|
}
|
|
16140
15949
|
/**
|
|
16141
15950
|
* Min search query required length
|
|
@@ -16157,19 +15966,19 @@ AddressForm.streetNumberPattern = /^[^\s]+$/;
|
|
|
16157
15966
|
class LoanForm extends AbstractForm {
|
|
16158
15967
|
constructor(loan = plainToClass(Loan, {})) {
|
|
16159
15968
|
super({
|
|
16160
|
-
type: new
|
|
16161
|
-
amount: new
|
|
16162
|
-
interestRate: new
|
|
16163
|
-
commencementDate: new
|
|
16164
|
-
repaymentAmount: new
|
|
16165
|
-
repaymentFrequency: new
|
|
16166
|
-
term: new
|
|
15969
|
+
type: new UntypedFormControl(loan.type, Validators.required),
|
|
15970
|
+
amount: new UntypedFormControl(loan.amount, Validators.required),
|
|
15971
|
+
interestRate: new UntypedFormControl(loan.interestRate, [Validators.required, Validators.min(0), Validators.max(100)]),
|
|
15972
|
+
commencementDate: new UntypedFormControl(loan.commencementDate, Validators.required),
|
|
15973
|
+
repaymentAmount: new UntypedFormControl(loan.repaymentAmount, Validators.required),
|
|
15974
|
+
repaymentFrequency: new UntypedFormControl(loan.repaymentFrequency, Validators.required),
|
|
15975
|
+
term: new UntypedFormControl(loan.term, Validators.required),
|
|
16167
15976
|
// interestType is predefined for vehicle loans
|
|
16168
|
-
interestType: new
|
|
15977
|
+
interestType: new UntypedFormControl({ value: loan.interestType, disabled: !loan.bankAccount }, Validators.required),
|
|
16169
15978
|
// availableRedraw is predefined for vehicle loans
|
|
16170
|
-
availableRedraw: new
|
|
15979
|
+
availableRedraw: new UntypedFormControl({ value: loan.availableRedraw, disabled: !loan.bankAccount }, Validators.required),
|
|
16171
15980
|
// repaymentType is predefined for vehicle loans
|
|
16172
|
-
repaymentType: new
|
|
15981
|
+
repaymentType: new UntypedFormControl({ value: loan.repaymentType, disabled: !loan.bankAccount }, Validators.required),
|
|
16173
15982
|
}, loan);
|
|
16174
15983
|
this.loan = loan;
|
|
16175
15984
|
// Set data which always the same for vehicle loans
|
|
@@ -16231,17 +16040,186 @@ class LoanForm extends AbstractForm {
|
|
|
16231
16040
|
}
|
|
16232
16041
|
LoanForm.mortgageLoanTypes = [LoanTypeEnum.MORTGAGE, LoanTypeEnum.HOME_EQUITY_LINE_OF_CREDIT, LoanTypeEnum.HOME_LOAN];
|
|
16233
16042
|
|
|
16043
|
+
/**
|
|
16044
|
+
* Check if at least one form field is true, otherwise form is invalid.
|
|
16045
|
+
* Use with groups of boolean form controls (checkbox, toggle, etc.)
|
|
16046
|
+
*/
|
|
16047
|
+
function atLeastOneCheckedValidator() {
|
|
16048
|
+
return (formGroup) => {
|
|
16049
|
+
return Object.values(formGroup.controls)
|
|
16050
|
+
.find((control) => control.value) ? null : { nothingChecked: true };
|
|
16051
|
+
};
|
|
16052
|
+
}
|
|
16053
|
+
|
|
16054
|
+
/**
|
|
16055
|
+
* Validation function for autocomplete fields. Checks that the user should select a value from a list rather than type in input field
|
|
16056
|
+
* @TODO Alex: create class AppValidators with static methods and move there all custom validators (line Angular Validators)
|
|
16057
|
+
*/
|
|
16058
|
+
function autocompleteValidator() {
|
|
16059
|
+
return (control) => {
|
|
16060
|
+
return (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
|
|
16061
|
+
};
|
|
16062
|
+
}
|
|
16063
|
+
|
|
16064
|
+
function conditionalValidator(condition, validator) {
|
|
16065
|
+
return function (control) {
|
|
16066
|
+
revalidateOnChanges(control);
|
|
16067
|
+
if (control && control.parent) {
|
|
16068
|
+
if (condition(control.parent)) {
|
|
16069
|
+
return validator(control);
|
|
16070
|
+
}
|
|
16071
|
+
}
|
|
16072
|
+
return null;
|
|
16073
|
+
};
|
|
16074
|
+
}
|
|
16075
|
+
/**
|
|
16076
|
+
* Conditional validator depends on other fields and should be updated on each form value change
|
|
16077
|
+
*/
|
|
16078
|
+
function revalidateOnChanges(control) {
|
|
16079
|
+
if (control && control.parent && !control['_revalidateOnChanges']) {
|
|
16080
|
+
control['_revalidateOnChanges'] = true;
|
|
16081
|
+
control.parent.valueChanges.pipe(distinctUntilChanged((a, b) => JSON.stringify(a) === JSON.stringify(b)))
|
|
16082
|
+
.subscribe(() => {
|
|
16083
|
+
control.updateValueAndValidity({ emitEvent: false });
|
|
16084
|
+
});
|
|
16085
|
+
}
|
|
16086
|
+
return;
|
|
16087
|
+
}
|
|
16088
|
+
|
|
16089
|
+
/**
|
|
16090
|
+
* Regular expressions that are used to check password strength and valid values
|
|
16091
|
+
*/
|
|
16092
|
+
const PASSWORD_REGEXPS = {
|
|
16093
|
+
medium: /(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})/,
|
|
16094
|
+
strong: /(((?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*]))|((?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%^&*]))|((?=.*[A-Z])(?=.*[0-9]))(?=.*[!@#$%^&*]))(?=.{8,})/,
|
|
16095
|
+
format: /^[0-9a-zA-Z!@$!%*?&#]*$/
|
|
16096
|
+
};
|
|
16097
|
+
function passwordValidator() {
|
|
16098
|
+
return (control) => {
|
|
16099
|
+
if (!PASSWORD_REGEXPS.format.test(control.value)) {
|
|
16100
|
+
return { passwordInvalid: true };
|
|
16101
|
+
}
|
|
16102
|
+
if (!PASSWORD_REGEXPS.medium.test(control.value)) {
|
|
16103
|
+
return { passwordWeak: true };
|
|
16104
|
+
}
|
|
16105
|
+
return null;
|
|
16106
|
+
};
|
|
16107
|
+
}
|
|
16108
|
+
|
|
16109
|
+
function passwordMatchValidator(newPassControlName, confirmPassControlName) {
|
|
16110
|
+
return (group) => {
|
|
16111
|
+
const passwordControl = group.get(newPassControlName);
|
|
16112
|
+
const confirmControl = group.get(confirmPassControlName);
|
|
16113
|
+
if (confirmControl.errors && !confirmControl.hasError('passwordMismatch')) {
|
|
16114
|
+
// return if another validator has already found an error on the confirmControl
|
|
16115
|
+
return this;
|
|
16116
|
+
}
|
|
16117
|
+
if (passwordControl.value !== confirmControl.value) {
|
|
16118
|
+
confirmControl.setErrors({ passwordMismatch: true });
|
|
16119
|
+
}
|
|
16120
|
+
else {
|
|
16121
|
+
confirmControl.setErrors(null);
|
|
16122
|
+
}
|
|
16123
|
+
};
|
|
16124
|
+
}
|
|
16125
|
+
|
|
16126
|
+
var MessagesEnum$1;
|
|
16127
|
+
(function (MessagesEnum) {
|
|
16128
|
+
MessagesEnum["INVALID_DATE"] = "The date should not be before $1";
|
|
16129
|
+
})(MessagesEnum$1 || (MessagesEnum$1 = {}));
|
|
16130
|
+
|
|
16131
|
+
/**
|
|
16132
|
+
* Validation function, that checks If date form value is more than provided date
|
|
16133
|
+
*/
|
|
16134
|
+
function minDateValidator(date, message = MessagesEnum$1.INVALID_DATE.replace('$1', new DatePipe('en-US').transform(date))) {
|
|
16135
|
+
return (control) => {
|
|
16136
|
+
if (!control.value) {
|
|
16137
|
+
return null;
|
|
16138
|
+
}
|
|
16139
|
+
// form control value can be as a Moment object - we wrap it in "new Date()" to work with it like with JS Date
|
|
16140
|
+
if (new Date(control.value) >= new Date(date)) {
|
|
16141
|
+
return null;
|
|
16142
|
+
}
|
|
16143
|
+
return { minDate: message };
|
|
16144
|
+
};
|
|
16145
|
+
}
|
|
16146
|
+
|
|
16147
|
+
/**
|
|
16148
|
+
* Validator that check if sum amount of provided fields is greater than provided sum
|
|
16149
|
+
* @param field to check in each formArray element
|
|
16150
|
+
* @param summary to compare with fields sum
|
|
16151
|
+
* @param fieldAlias to show it in error message
|
|
16152
|
+
*/
|
|
16153
|
+
function fieldsSumValidator(field, summary = 100, fieldAlias) {
|
|
16154
|
+
return (formArray) => {
|
|
16155
|
+
// calculate sum of desired fields in formArray control
|
|
16156
|
+
const fieldsSum = formArray['controls']
|
|
16157
|
+
.reduce((acc, group) => acc += group.get(field).value, 0);
|
|
16158
|
+
if (fieldsSum <= summary) {
|
|
16159
|
+
return null;
|
|
16160
|
+
}
|
|
16161
|
+
else {
|
|
16162
|
+
return {
|
|
16163
|
+
fieldsSum: {
|
|
16164
|
+
name: field,
|
|
16165
|
+
alias: fieldAlias,
|
|
16166
|
+
summary
|
|
16167
|
+
}
|
|
16168
|
+
};
|
|
16169
|
+
}
|
|
16170
|
+
};
|
|
16171
|
+
}
|
|
16172
|
+
|
|
16173
|
+
/**
|
|
16174
|
+
* Validation function, that checks If provided date is within a current financial year
|
|
16175
|
+
*/
|
|
16176
|
+
function currentFinYearValidator() {
|
|
16177
|
+
const currentFinYear = new FinancialYear();
|
|
16178
|
+
return (control) => {
|
|
16179
|
+
if (!control.value || control.value >= currentFinYear.startDate && control.value <= currentFinYear.endDate) {
|
|
16180
|
+
return null;
|
|
16181
|
+
}
|
|
16182
|
+
return { notCurrentFinYear: true };
|
|
16183
|
+
};
|
|
16184
|
+
}
|
|
16185
|
+
|
|
16186
|
+
const MAX_SIZE = 4194304;
|
|
16187
|
+
class FileValidator {
|
|
16188
|
+
// File max size check
|
|
16189
|
+
static fileMaxSize(maxSize = MAX_SIZE) {
|
|
16190
|
+
const validatorFn = (file) => {
|
|
16191
|
+
return file.size > maxSize ? { fileMaxSize: { maxSize } } : null;
|
|
16192
|
+
};
|
|
16193
|
+
return FileValidator.fileValidation(validatorFn);
|
|
16194
|
+
}
|
|
16195
|
+
// File extension check
|
|
16196
|
+
static fileExtensions(allowedExtensions = DOCUMENT_FILE_TYPES.all) {
|
|
16197
|
+
const validatorFn = (file) => {
|
|
16198
|
+
return allowedExtensions.includes(file.type) ? null : { fileExtension: { allowedExtensions: allowedExtensions.join() } };
|
|
16199
|
+
};
|
|
16200
|
+
return FileValidator.fileValidation(validatorFn);
|
|
16201
|
+
}
|
|
16202
|
+
static fileValidation(validatorFn) {
|
|
16203
|
+
return (formControl) => {
|
|
16204
|
+
if (!formControl.value) {
|
|
16205
|
+
return null;
|
|
16206
|
+
}
|
|
16207
|
+
return validatorFn(formControl.value);
|
|
16208
|
+
};
|
|
16209
|
+
}
|
|
16210
|
+
}
|
|
16211
|
+
|
|
16234
16212
|
/**
|
|
16235
16213
|
* Form array with bank account properties
|
|
16236
16214
|
* @TODO create AbstractFormArray
|
|
16237
16215
|
*/
|
|
16238
|
-
class BankAccountPropertiesForm extends
|
|
16216
|
+
class BankAccountPropertiesForm extends UntypedFormArray {
|
|
16239
16217
|
constructor(bankAccountProperties) {
|
|
16240
|
-
super((
|
|
16218
|
+
super((bankAccountProperties?.length ? bankAccountProperties : [plainToClass(BankAccountProperty, {})])
|
|
16241
16219
|
.map((bankAccountProperty) => {
|
|
16242
|
-
return new
|
|
16243
|
-
property: new
|
|
16244
|
-
percent: new
|
|
16220
|
+
return new UntypedFormGroup({
|
|
16221
|
+
property: new UntypedFormControl(bankAccountProperty?.property, Validators.required),
|
|
16222
|
+
percent: new UntypedFormControl(bankAccountProperty.percent, Validators.required)
|
|
16245
16223
|
});
|
|
16246
16224
|
}), [
|
|
16247
16225
|
conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.PROPERTY, Validators.required),
|
|
@@ -16249,10 +16227,10 @@ class BankAccountPropertiesForm extends FormArray {
|
|
|
16249
16227
|
]);
|
|
16250
16228
|
}
|
|
16251
16229
|
add() {
|
|
16252
|
-
this.push(new
|
|
16253
|
-
property: new
|
|
16230
|
+
this.push(new UntypedFormGroup({
|
|
16231
|
+
property: new UntypedFormControl(null, Validators.required),
|
|
16254
16232
|
// @TODO disable for loans
|
|
16255
|
-
percent: new
|
|
16233
|
+
percent: new UntypedFormControl({ value: this.getRemainingPercent(), disabled: !this.at(0).contains('percent') }, Validators.required),
|
|
16256
16234
|
// @TODO enable for loans
|
|
16257
16235
|
// amount: new FormControl(
|
|
16258
16236
|
// {value: this.bankAccount.currentBalance * bankAccountProperty.percent / 100},
|
|
@@ -16294,31 +16272,31 @@ class BankAccountPropertiesForm extends FormArray {
|
|
|
16294
16272
|
class SoleBusinessForm extends AbstractForm {
|
|
16295
16273
|
constructor(business = plainToClass(SoleBusiness, {})) {
|
|
16296
16274
|
super({
|
|
16297
|
-
name: new
|
|
16298
|
-
activity: new
|
|
16299
|
-
description: new
|
|
16300
|
-
website: new
|
|
16275
|
+
name: new UntypedFormControl(business.name, Validators.required),
|
|
16276
|
+
activity: new UntypedFormControl(business.activity, Validators.required),
|
|
16277
|
+
description: new UntypedFormControl(business.description),
|
|
16278
|
+
website: new UntypedFormControl(business.website)
|
|
16301
16279
|
}, business);
|
|
16302
16280
|
this.business = business;
|
|
16303
16281
|
// User have to create income source with new business.
|
|
16304
16282
|
// Income source is not able for edit business
|
|
16305
16283
|
if (!business.id) {
|
|
16306
16284
|
// @TODO Alex (TT-2304): move to separated form class
|
|
16307
|
-
this.addControl('incomeSource', new
|
|
16308
|
-
type: new
|
|
16309
|
-
name: new
|
|
16310
|
-
soleForecasts: new
|
|
16311
|
-
new
|
|
16312
|
-
financialYear: new
|
|
16313
|
-
amount: new
|
|
16314
|
-
taxInstalments: new
|
|
16285
|
+
this.addControl('incomeSource', new UntypedFormGroup({
|
|
16286
|
+
type: new UntypedFormControl(IncomeSourceTypeEnum.SOLE, Validators.required),
|
|
16287
|
+
name: new UntypedFormControl(null, Validators.required),
|
|
16288
|
+
soleForecasts: new UntypedFormArray([
|
|
16289
|
+
new UntypedFormGroup({
|
|
16290
|
+
financialYear: new UntypedFormControl(new FinancialYear().year, Validators.required),
|
|
16291
|
+
amount: new UntypedFormControl(null, Validators.required),
|
|
16292
|
+
taxInstalments: new UntypedFormControl(null, Validators.required)
|
|
16315
16293
|
})
|
|
16316
16294
|
])
|
|
16317
16295
|
}));
|
|
16318
|
-
this.addControl('losses', new
|
|
16319
|
-
new
|
|
16320
|
-
financialYear: new
|
|
16321
|
-
openBalance: new
|
|
16296
|
+
this.addControl('losses', new UntypedFormArray([
|
|
16297
|
+
new UntypedFormGroup({
|
|
16298
|
+
financialYear: new UntypedFormControl(new FinancialYear().year),
|
|
16299
|
+
openBalance: new UntypedFormControl(null, [Validators.required, Validators.min(0)])
|
|
16322
16300
|
})
|
|
16323
16301
|
]));
|
|
16324
16302
|
}
|
|
@@ -16359,13 +16337,13 @@ class SoleBusinessForm extends AbstractForm {
|
|
|
16359
16337
|
* @TODO create AbstractFormArray
|
|
16360
16338
|
* @TODO Alex/Vik (TT-2184): copypasted from bank-account-properties.form, improve logic and create common parent class maybe
|
|
16361
16339
|
*/
|
|
16362
|
-
class SoleBusinessAllocationsForm extends
|
|
16340
|
+
class SoleBusinessAllocationsForm extends UntypedFormArray {
|
|
16363
16341
|
constructor(businessAllocations) {
|
|
16364
|
-
super((
|
|
16342
|
+
super((businessAllocations?.length ? businessAllocations : [plainToClass(SoleBusinessAllocation, {})])
|
|
16365
16343
|
.map((businessAllocation) => {
|
|
16366
|
-
return new
|
|
16367
|
-
business: new
|
|
16368
|
-
percent: new
|
|
16344
|
+
return new UntypedFormGroup({
|
|
16345
|
+
business: new UntypedFormControl(businessAllocation?.business, Validators.required),
|
|
16346
|
+
percent: new UntypedFormControl(businessAllocation.percent, Validators.required)
|
|
16369
16347
|
});
|
|
16370
16348
|
}), [
|
|
16371
16349
|
conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.SOLE, Validators.required),
|
|
@@ -16373,10 +16351,10 @@ class SoleBusinessAllocationsForm extends FormArray {
|
|
|
16373
16351
|
]);
|
|
16374
16352
|
}
|
|
16375
16353
|
add() {
|
|
16376
|
-
this.push(new
|
|
16377
|
-
business: new
|
|
16354
|
+
this.push(new UntypedFormGroup({
|
|
16355
|
+
business: new UntypedFormControl(null, Validators.required),
|
|
16378
16356
|
// @TODO disable for loans
|
|
16379
|
-
percent: new
|
|
16357
|
+
percent: new UntypedFormControl({ value: this.getRemainingPercent(), disabled: !this.at(0).contains('percent') }, Validators.required),
|
|
16380
16358
|
// @TODO enable for loans
|
|
16381
16359
|
// amount: new FormControl(
|
|
16382
16360
|
// {value: this.bankAccount.currentBalance * businessAllocation.percent / 100},
|
|
@@ -16417,12 +16395,11 @@ class SoleBusinessAllocationsForm extends FormArray {
|
|
|
16417
16395
|
|
|
16418
16396
|
class SoleBusinessLossForm extends AbstractForm {
|
|
16419
16397
|
constructor(loss, profit) {
|
|
16420
|
-
var _a;
|
|
16421
16398
|
super({
|
|
16422
|
-
openBalance: new
|
|
16423
|
-
offsetRule: new
|
|
16399
|
+
openBalance: new UntypedFormControl(loss.openBalance, [Validators.required, Validators.min(0)]),
|
|
16400
|
+
offsetRule: new UntypedFormControl(loss.offsetRule?.id),
|
|
16424
16401
|
// sum of depreciations/transactions claim amount - openBalance
|
|
16425
|
-
balance: new
|
|
16402
|
+
balance: new UntypedFormControl({ value: (profit - loss.openBalance).toFixed(2), disabled: true }),
|
|
16426
16403
|
}, loss);
|
|
16427
16404
|
this.loss = loss;
|
|
16428
16405
|
this.get('openBalance').valueChanges.subscribe((openBalance) => {
|
|
@@ -16441,13 +16418,13 @@ class SoleBusinessLossForm extends AbstractForm {
|
|
|
16441
16418
|
class SoleContactForm extends AbstractForm {
|
|
16442
16419
|
constructor(contact = plainToClass(SoleContact, {})) {
|
|
16443
16420
|
super({
|
|
16444
|
-
name: new
|
|
16445
|
-
abn: new
|
|
16446
|
-
firstName: new
|
|
16447
|
-
lastName: new
|
|
16448
|
-
email: new
|
|
16449
|
-
phone: new
|
|
16450
|
-
address: new
|
|
16421
|
+
name: new UntypedFormControl(contact.name, Validators.required),
|
|
16422
|
+
abn: new UntypedFormControl(contact.abn, [Validators.minLength(11), Validators.maxLength(11)]),
|
|
16423
|
+
firstName: new UntypedFormControl(contact.firstName, Validators.required),
|
|
16424
|
+
lastName: new UntypedFormControl(contact.lastName, Validators.required),
|
|
16425
|
+
email: new UntypedFormControl(contact.email, [Validators.required, Validators.email]),
|
|
16426
|
+
phone: new UntypedFormControl(contact.phone),
|
|
16427
|
+
address: new UntypedFormControl(contact.address)
|
|
16451
16428
|
}, contact);
|
|
16452
16429
|
}
|
|
16453
16430
|
}
|
|
@@ -16455,7 +16432,7 @@ class SoleContactForm extends AbstractForm {
|
|
|
16455
16432
|
class SoleDepreciationMethodForm extends AbstractForm {
|
|
16456
16433
|
constructor(soleDepreciationMethod) {
|
|
16457
16434
|
super({
|
|
16458
|
-
method: new
|
|
16435
|
+
method: new UntypedFormControl(soleDepreciationMethod.method)
|
|
16459
16436
|
}, soleDepreciationMethod);
|
|
16460
16437
|
}
|
|
16461
16438
|
}
|
|
@@ -16475,21 +16452,20 @@ function requiredLengthValidator(length) {
|
|
|
16475
16452
|
class SoleDetailsForm extends AbstractForm {
|
|
16476
16453
|
constructor(soleDetails) {
|
|
16477
16454
|
super({
|
|
16478
|
-
abn: new
|
|
16479
|
-
isGST: new
|
|
16455
|
+
abn: new UntypedFormControl(soleDetails.abn, [Validators.required, requiredLengthValidator(11)]),
|
|
16456
|
+
isGST: new UntypedFormControl(soleDetails.isGST || false)
|
|
16480
16457
|
}, soleDetails);
|
|
16481
16458
|
}
|
|
16482
16459
|
}
|
|
16483
16460
|
|
|
16484
16461
|
class SoleInvoiceItemForm extends AbstractForm {
|
|
16485
16462
|
constructor(item) {
|
|
16486
|
-
var _a;
|
|
16487
16463
|
super({
|
|
16488
|
-
description: new
|
|
16489
|
-
quantity: new
|
|
16490
|
-
price: new
|
|
16491
|
-
isGST: new
|
|
16492
|
-
chartAccounts: new
|
|
16464
|
+
description: new UntypedFormControl(item.description, [Validators.required, Validators.maxLength(SoleInvoiceItemForm.maxDescriptionLength)]),
|
|
16465
|
+
quantity: new UntypedFormControl(item.quantity, Validators.required),
|
|
16466
|
+
price: new UntypedFormControl(item.price, Validators.required),
|
|
16467
|
+
isGST: new UntypedFormControl({ value: item.isGST || false, disabled: !item.chartAccounts?.isGST }),
|
|
16468
|
+
chartAccounts: new UntypedFormControl(item.chartAccounts, Validators.required),
|
|
16493
16469
|
}, item);
|
|
16494
16470
|
}
|
|
16495
16471
|
}
|
|
@@ -16504,22 +16480,22 @@ class SoleInvoiceForm extends AbstractForm {
|
|
|
16504
16480
|
// default template to be preselected
|
|
16505
16481
|
defaultTemplate) {
|
|
16506
16482
|
super({
|
|
16507
|
-
commonData: new
|
|
16508
|
-
dateFrom: new
|
|
16509
|
-
dateTo: new
|
|
16510
|
-
payer: new
|
|
16511
|
-
taxType: new
|
|
16512
|
-
bankAccount: new
|
|
16513
|
-
reference: new
|
|
16483
|
+
commonData: new UntypedFormGroup({
|
|
16484
|
+
dateFrom: new UntypedFormControl(invoice.dateFrom || new Date(), Validators.required),
|
|
16485
|
+
dateTo: new UntypedFormControl(invoice.dateTo, Validators.required),
|
|
16486
|
+
payer: new UntypedFormControl(invoice.payer, Validators.required),
|
|
16487
|
+
taxType: new UntypedFormControl(invoice.taxType, Validators.required),
|
|
16488
|
+
bankAccount: new UntypedFormControl(invoice.bankAccount, Validators.required),
|
|
16489
|
+
reference: new UntypedFormControl(invoice.reference)
|
|
16514
16490
|
}),
|
|
16515
|
-
items: new
|
|
16491
|
+
items: new UntypedFormArray((invoice.items || [plainToClass(SoleInvoiceItem, {})]).map((item) => new SoleInvoiceItemForm(item))),
|
|
16516
16492
|
}, invoice);
|
|
16517
16493
|
this.invoice = invoice;
|
|
16518
16494
|
this.soleDetailsGST = soleDetailsGST;
|
|
16519
16495
|
this.defaultTemplate = defaultTemplate;
|
|
16520
16496
|
// we need invoice template only for new invoices
|
|
16521
16497
|
if (!invoice.id) {
|
|
16522
|
-
(this.commonData).addControl('template', new
|
|
16498
|
+
(this.commonData).addControl('template', new UntypedFormControl(this.defaultTemplate));
|
|
16523
16499
|
// user can have no template, but he can add it from this form
|
|
16524
16500
|
if (this.defaultTemplate) {
|
|
16525
16501
|
this.updateTemplateRelatedFields(this.defaultTemplate);
|
|
@@ -16591,7 +16567,7 @@ class SoleInvoiceForm extends AbstractForm {
|
|
|
16591
16567
|
this.items.controls.forEach((itemForm) => {
|
|
16592
16568
|
const chartAccounts = itemForm.get('chartAccounts').value;
|
|
16593
16569
|
// Item GST is available when invoice.taxType !== NONE ('No Tax')
|
|
16594
|
-
if (type !== SoleInvoiceTaxTypeEnum.NO_TAX &&
|
|
16570
|
+
if (type !== SoleInvoiceTaxTypeEnum.NO_TAX && chartAccounts?.isGST) {
|
|
16595
16571
|
this.enableItemGST(itemForm);
|
|
16596
16572
|
return;
|
|
16597
16573
|
}
|
|
@@ -16643,19 +16619,19 @@ class SoleInvoiceForm extends AbstractForm {
|
|
|
16643
16619
|
*/
|
|
16644
16620
|
get currentValue() {
|
|
16645
16621
|
const formRawValue = this.getRawValue();
|
|
16646
|
-
return plainToClass(SoleInvoice, Object.assign({}, this.model,
|
|
16622
|
+
return plainToClass(SoleInvoice, Object.assign({}, this.model, { ...formRawValue.commonData, items: formRawValue.items }));
|
|
16647
16623
|
}
|
|
16648
16624
|
}
|
|
16649
16625
|
|
|
16650
16626
|
class SoleInvoiceTemplateForm extends AbstractForm {
|
|
16651
16627
|
constructor(invoiceTemplate) {
|
|
16652
16628
|
super({
|
|
16653
|
-
name: new
|
|
16629
|
+
name: new UntypedFormControl(invoiceTemplate.name, Validators.required),
|
|
16654
16630
|
// taxType is always 'No Tax' when soleDetails.isGST === false
|
|
16655
|
-
taxType: new
|
|
16631
|
+
taxType: new UntypedFormControl(invoiceTemplate.taxType, Validators.required),
|
|
16656
16632
|
// 32767 - max value because we have small int data type in database for this field, but we don't have actual max validation for term
|
|
16657
|
-
term: new
|
|
16658
|
-
bankAccount: new
|
|
16633
|
+
term: new UntypedFormControl(invoiceTemplate.term, [Validators.required, Validators.min(0), Validators.max(32767)]),
|
|
16634
|
+
bankAccount: new UntypedFormControl(invoiceTemplate.bankAccount, [Validators.required]),
|
|
16659
16635
|
}, invoiceTemplate);
|
|
16660
16636
|
}
|
|
16661
16637
|
}
|
|
@@ -16667,18 +16643,18 @@ class SoleInvoiceTemplateForm extends AbstractForm {
|
|
|
16667
16643
|
class BasReportForm extends AbstractForm {
|
|
16668
16644
|
constructor(report, transactions, allocations, depreciations) {
|
|
16669
16645
|
super({
|
|
16670
|
-
dateFrom: new
|
|
16671
|
-
dateTo: new
|
|
16672
|
-
income: new
|
|
16673
|
-
incomeGST: new
|
|
16674
|
-
expenseGST: new
|
|
16675
|
-
salary: new
|
|
16676
|
-
taxWithheldSalary: new
|
|
16677
|
-
taxWithheldNoABN: new
|
|
16678
|
-
taxWithheldTotal: new
|
|
16679
|
-
paygTaxInstalment: new
|
|
16680
|
-
fuelTaxCredit: new
|
|
16681
|
-
gst: new
|
|
16646
|
+
dateFrom: new UntypedFormControl(report.dateFrom, Validators.required),
|
|
16647
|
+
dateTo: new UntypedFormControl(report.dateTo, Validators.required),
|
|
16648
|
+
income: new UntypedFormControl({ value: report.income, disabled: true }),
|
|
16649
|
+
incomeGST: new UntypedFormControl({ value: report.incomeGST, disabled: true }, Validators.required),
|
|
16650
|
+
expenseGST: new UntypedFormControl({ value: report.expenseGST, disabled: true }, Validators.required),
|
|
16651
|
+
salary: new UntypedFormControl(report.salary, Validators.required),
|
|
16652
|
+
taxWithheldSalary: new UntypedFormControl(report.taxWithheldSalary, Validators.required),
|
|
16653
|
+
taxWithheldNoABN: new UntypedFormControl(report.taxWithheldNoABN, Validators.required),
|
|
16654
|
+
taxWithheldTotal: new UntypedFormControl({ value: report.taxWithheldTotal || 0, disabled: true }),
|
|
16655
|
+
paygTaxInstalment: new UntypedFormControl(report.paygTaxInstalment, Validators.required),
|
|
16656
|
+
fuelTaxCredit: new UntypedFormControl(report.fuelTaxCredit, Validators.required),
|
|
16657
|
+
gst: new UntypedFormControl({ value: report.gst, disabled: true }),
|
|
16682
16658
|
}, report);
|
|
16683
16659
|
this.report = report;
|
|
16684
16660
|
// prefill income/expense data based on transactions/depreciations filtered by specified date
|
|
@@ -16717,13 +16693,13 @@ class BasReportForm extends AbstractForm {
|
|
|
16717
16693
|
class BankAccountAllocationForm extends AbstractForm {
|
|
16718
16694
|
constructor(bankAccount, controls) {
|
|
16719
16695
|
super(merge(controls, {
|
|
16720
|
-
tankType: new
|
|
16696
|
+
tankType: new UntypedFormControl(bankAccount ? bankAccount.tankType : null, Validators.required)
|
|
16721
16697
|
}), plainToClass(BankAccount, bankAccount || {}));
|
|
16722
16698
|
this.bankAccount = bankAccount;
|
|
16723
|
-
if (bankAccount
|
|
16699
|
+
if (bankAccount?.isPropertyTank()) {
|
|
16724
16700
|
this.addControl('bankAccountProperties', new BankAccountPropertiesForm(bankAccount.bankAccountProperties));
|
|
16725
16701
|
}
|
|
16726
|
-
if (bankAccount
|
|
16702
|
+
if (bankAccount?.isSoleTank()) {
|
|
16727
16703
|
this.addControl('businessAllocations', new SoleBusinessAllocationsForm(bankAccount.businessAllocations));
|
|
16728
16704
|
}
|
|
16729
16705
|
this.listenEvents();
|
|
@@ -16733,15 +16709,14 @@ class BankAccountAllocationForm extends AbstractForm {
|
|
|
16733
16709
|
}
|
|
16734
16710
|
listenTankTypeChanges() {
|
|
16735
16711
|
this.get('tankType').valueChanges.subscribe((tankType) => {
|
|
16736
|
-
var _a, _b;
|
|
16737
16712
|
this.removeControl('bankAccountProperties');
|
|
16738
16713
|
this.removeControl('businessAllocations');
|
|
16739
16714
|
switch (tankType) {
|
|
16740
16715
|
case TankTypeEnum.PROPERTY:
|
|
16741
|
-
this.addControl('bankAccountProperties', new BankAccountPropertiesForm(
|
|
16716
|
+
this.addControl('bankAccountProperties', new BankAccountPropertiesForm(this.bankAccount?.bankAccountProperties));
|
|
16742
16717
|
break;
|
|
16743
16718
|
case TankTypeEnum.SOLE:
|
|
16744
|
-
this.addControl('businessAllocations', new SoleBusinessAllocationsForm(
|
|
16719
|
+
this.addControl('businessAllocations', new SoleBusinessAllocationsForm(this.bankAccount?.businessAllocations));
|
|
16745
16720
|
break;
|
|
16746
16721
|
}
|
|
16747
16722
|
});
|
|
@@ -16778,10 +16753,10 @@ class BankAccountImportForm extends BankAccountAllocationForm {
|
|
|
16778
16753
|
class BankAccountAddManualForm extends BankAccountAllocationForm {
|
|
16779
16754
|
constructor(connection) {
|
|
16780
16755
|
super(null, {
|
|
16781
|
-
type: new
|
|
16782
|
-
accountName: new
|
|
16783
|
-
currentBalance: new
|
|
16784
|
-
accountNumber: new
|
|
16756
|
+
type: new UntypedFormControl(null, Validators.required),
|
|
16757
|
+
accountName: new UntypedFormControl(null, Validators.required),
|
|
16758
|
+
currentBalance: new UntypedFormControl(null, Validators.required),
|
|
16759
|
+
accountNumber: new UntypedFormControl(null, [Validators.required, Validators.pattern(BankAccountAddManualForm.accountNumberPattern)])
|
|
16785
16760
|
});
|
|
16786
16761
|
this.connection = connection;
|
|
16787
16762
|
}
|
|
@@ -16851,9 +16826,9 @@ function atLeastOneEnabledValidator(arrayName) {
|
|
|
16851
16826
|
class BankAccountsImportForm extends AbstractForm {
|
|
16852
16827
|
constructor(bankAccounts) {
|
|
16853
16828
|
super({
|
|
16854
|
-
migrateFrom: new
|
|
16855
|
-
migrateTo: new
|
|
16856
|
-
bankAccounts: new
|
|
16829
|
+
migrateFrom: new UntypedFormControl(BankAccountsImportForm.minDate, [Validators.required, dateRangeValidator(BankAccountsImportForm.minDate, BankAccountsImportForm.maxDate)]),
|
|
16830
|
+
migrateTo: new UntypedFormControl(BankAccountsImportForm.maxDate, [Validators.required, dateRangeValidator(BankAccountsImportForm.minDate, BankAccountsImportForm.maxDate)]),
|
|
16831
|
+
bankAccounts: new UntypedFormArray(bankAccounts.map((bankAccount) => new BankAccountImportForm(bankAccount)))
|
|
16857
16832
|
}, [], {
|
|
16858
16833
|
validators: [atLeastOneEnabledValidator('bankAccounts')]
|
|
16859
16834
|
});
|
|
@@ -16899,7 +16874,7 @@ class BankLoginForm extends AbstractForm {
|
|
|
16899
16874
|
this.connection = connection;
|
|
16900
16875
|
// Each Basiq banks has its own set of login fields, so we need to add these controls dynamically depended on the bank
|
|
16901
16876
|
Object.keys(connection.bank.loginFields).forEach((key) => {
|
|
16902
|
-
this.addControl(key, new
|
|
16877
|
+
this.addControl(key, new UntypedFormControl(null, Validators.required));
|
|
16903
16878
|
});
|
|
16904
16879
|
}
|
|
16905
16880
|
}
|
|
@@ -16907,10 +16882,10 @@ class BankLoginForm extends AbstractForm {
|
|
|
16907
16882
|
class ClientIncomeTypesForm extends AbstractForm {
|
|
16908
16883
|
constructor(clientIncomeTypes = plainToClass(ClientIncomeTypes, {})) {
|
|
16909
16884
|
super({
|
|
16910
|
-
work: new
|
|
16911
|
-
property: new
|
|
16912
|
-
sole: new
|
|
16913
|
-
holdings: new
|
|
16885
|
+
work: new UntypedFormControl(clientIncomeTypes.work || false),
|
|
16886
|
+
property: new UntypedFormControl(clientIncomeTypes.property || false),
|
|
16887
|
+
sole: new UntypedFormControl(clientIncomeTypes.sole || false),
|
|
16888
|
+
holdings: new UntypedFormControl({ value: clientIncomeTypes.holdings || false, disabled: true })
|
|
16914
16889
|
}, clientIncomeTypes, atLeastOneCheckedValidator());
|
|
16915
16890
|
this.clientIncomeTypes = clientIncomeTypes;
|
|
16916
16891
|
}
|
|
@@ -16919,8 +16894,8 @@ class ClientIncomeTypesForm extends AbstractForm {
|
|
|
16919
16894
|
class LoginForm extends AbstractForm {
|
|
16920
16895
|
constructor() {
|
|
16921
16896
|
super({
|
|
16922
|
-
email: new
|
|
16923
|
-
password: new
|
|
16897
|
+
email: new UntypedFormControl(null, [Validators.required, Validators.email]),
|
|
16898
|
+
password: new UntypedFormControl(null, Validators.required)
|
|
16924
16899
|
});
|
|
16925
16900
|
}
|
|
16926
16901
|
}
|
|
@@ -16938,12 +16913,13 @@ function phoneNumberValidator() {
|
|
|
16938
16913
|
|
|
16939
16914
|
class PhoneForm extends AbstractForm {
|
|
16940
16915
|
constructor(
|
|
16941
|
-
// no default value because
|
|
16916
|
+
// no default value because Address form is always a child form. That's mean address value always passed and then default value never work.
|
|
16917
|
+
// even if null passed, default value will not work
|
|
16942
16918
|
phone) {
|
|
16943
16919
|
super({
|
|
16944
|
-
type: new
|
|
16945
|
-
country: new
|
|
16946
|
-
number: new
|
|
16920
|
+
type: new UntypedFormControl(phone?.type || PhoneTypeEnum.MOBILE, Validators.required),
|
|
16921
|
+
country: new UntypedFormControl(phone?.country || Country.australia, Validators.required),
|
|
16922
|
+
number: new UntypedFormControl(phone?.number || null, [Validators.required, phoneNumberValidator()])
|
|
16947
16923
|
}, phone);
|
|
16948
16924
|
}
|
|
16949
16925
|
}
|
|
@@ -16952,8 +16928,8 @@ class PhoneForm extends AbstractForm {
|
|
|
16952
16928
|
class PasswordForm extends AbstractForm {
|
|
16953
16929
|
constructor() {
|
|
16954
16930
|
super({
|
|
16955
|
-
password: new
|
|
16956
|
-
confirm: new
|
|
16931
|
+
password: new UntypedFormControl(null, [Validators.required, passwordValidator()]),
|
|
16932
|
+
confirm: new UntypedFormControl(null, Validators.required),
|
|
16957
16933
|
}, { password: null, confirm: null }, passwordMatchValidator('password', 'confirm'));
|
|
16958
16934
|
}
|
|
16959
16935
|
}
|
|
@@ -16962,27 +16938,26 @@ class PasswordForm extends AbstractForm {
|
|
|
16962
16938
|
class RegisterClientForm extends AbstractForm {
|
|
16963
16939
|
constructor(referenceCode) {
|
|
16964
16940
|
super({
|
|
16965
|
-
firstName: new
|
|
16966
|
-
lastName: new
|
|
16967
|
-
email: new
|
|
16941
|
+
firstName: new UntypedFormControl('', [Validators.required]),
|
|
16942
|
+
lastName: new UntypedFormControl('', [Validators.required]),
|
|
16943
|
+
email: new UntypedFormControl('', [Validators.required, Validators.email]),
|
|
16968
16944
|
password: new PasswordForm(),
|
|
16969
|
-
referenceCode: new
|
|
16945
|
+
referenceCode: new UntypedFormControl(referenceCode)
|
|
16970
16946
|
});
|
|
16971
16947
|
}
|
|
16972
16948
|
submit(data = {}) {
|
|
16973
|
-
|
|
16974
|
-
return super.submit({ password: (_a = this.get('password').submit()) === null || _a === void 0 ? void 0 : _a.password });
|
|
16949
|
+
return super.submit({ password: this.get('password').submit()?.password });
|
|
16975
16950
|
}
|
|
16976
16951
|
}
|
|
16977
16952
|
|
|
16978
16953
|
class RegisterFirmForm extends AbstractForm {
|
|
16979
16954
|
constructor(firmType, referenceCode) {
|
|
16980
16955
|
super({
|
|
16981
|
-
name: new
|
|
16982
|
-
abn: new
|
|
16983
|
-
tan: new
|
|
16956
|
+
name: new UntypedFormControl('', Validators.required),
|
|
16957
|
+
abn: new UntypedFormControl('', Validators.required),
|
|
16958
|
+
tan: new UntypedFormControl({ value: '', disabled: firmType !== FirmTypeEnum.ACCOUNTANT }, Validators.required),
|
|
16984
16959
|
owner: new RegisterClientForm(referenceCode),
|
|
16985
|
-
type: new
|
|
16960
|
+
type: new UntypedFormControl(firmType)
|
|
16986
16961
|
}, plainToClass(Firm, {}));
|
|
16987
16962
|
this.firmType = firmType;
|
|
16988
16963
|
}
|
|
@@ -16995,7 +16970,7 @@ class RegisterFirmForm extends AbstractForm {
|
|
|
16995
16970
|
class ResetPasswordForm extends AbstractForm {
|
|
16996
16971
|
constructor() {
|
|
16997
16972
|
super({
|
|
16998
|
-
email: new
|
|
16973
|
+
email: new UntypedFormControl(null, [Validators.required, Validators.email]),
|
|
16999
16974
|
});
|
|
17000
16975
|
}
|
|
17001
16976
|
}
|
|
@@ -17006,8 +16981,8 @@ class ResetPasswordForm extends AbstractForm {
|
|
|
17006
16981
|
class UserInviteForm extends AbstractForm {
|
|
17007
16982
|
constructor() {
|
|
17008
16983
|
super({
|
|
17009
|
-
firstName: new
|
|
17010
|
-
email: new
|
|
16984
|
+
firstName: new UntypedFormControl(null, Validators.required),
|
|
16985
|
+
email: new UntypedFormControl(null, [Validators.required, Validators.email]),
|
|
17011
16986
|
}, plainToClass(RegistrationInvite, {}));
|
|
17012
16987
|
}
|
|
17013
16988
|
}
|
|
@@ -17019,17 +16994,17 @@ class UserInviteForm extends AbstractForm {
|
|
|
17019
16994
|
class PropertySaleCostBaseForm extends AbstractForm {
|
|
17020
16995
|
constructor(propertySaleCostBase) {
|
|
17021
16996
|
super({
|
|
17022
|
-
property: new
|
|
17023
|
-
purchasePrice: new
|
|
17024
|
-
contractDate: new
|
|
17025
|
-
stampDuty: new
|
|
17026
|
-
legalFees: new
|
|
17027
|
-
otherCapitalCosts: new
|
|
16997
|
+
property: new UntypedFormGroup({
|
|
16998
|
+
purchasePrice: new UntypedFormControl(propertySaleCostBase.property.purchasePrice, Validators.required),
|
|
16999
|
+
contractDate: new UntypedFormControl(propertySaleCostBase.property.contractDate, Validators.required),
|
|
17000
|
+
stampDuty: new UntypedFormControl(propertySaleCostBase.property.stampDuty, Validators.required),
|
|
17001
|
+
legalFees: new UntypedFormControl(propertySaleCostBase.property.legalFees, Validators.required),
|
|
17002
|
+
otherCapitalCosts: new UntypedFormControl(propertySaleCostBase.property.otherCapitalCosts, Validators.required),
|
|
17028
17003
|
}),
|
|
17029
|
-
sale: new
|
|
17030
|
-
holdingCosts: new
|
|
17031
|
-
structuralImprovementsWDV: new
|
|
17032
|
-
buildingAtCostClaimed: new
|
|
17004
|
+
sale: new UntypedFormGroup({
|
|
17005
|
+
holdingCosts: new UntypedFormControl(propertySaleCostBase.sale.holdingCosts),
|
|
17006
|
+
structuralImprovementsWDV: new UntypedFormControl(propertySaleCostBase.sale.structuralImprovementsWDV),
|
|
17007
|
+
buildingAtCostClaimed: new UntypedFormControl(propertySaleCostBase.sale.buildingAtCostClaimed)
|
|
17033
17008
|
})
|
|
17034
17009
|
}, propertySaleCostBase);
|
|
17035
17010
|
this.propertySaleCostBase = propertySaleCostBase;
|
|
@@ -17052,15 +17027,15 @@ class PropertySaleCostBaseForm extends AbstractForm {
|
|
|
17052
17027
|
class PropertySaleCostSaleForm extends AbstractForm {
|
|
17053
17028
|
constructor(propertySale, property) {
|
|
17054
17029
|
super({
|
|
17055
|
-
price: new
|
|
17056
|
-
contractDate: new
|
|
17057
|
-
settlementDate: new
|
|
17058
|
-
commission: new
|
|
17059
|
-
legalFees: new
|
|
17060
|
-
otherCost: new
|
|
17061
|
-
capitalLoss: new
|
|
17062
|
-
grossCGT: new
|
|
17063
|
-
grossCGTAfterLoss: new
|
|
17030
|
+
price: new UntypedFormControl(propertySale.price, Validators.required),
|
|
17031
|
+
contractDate: new UntypedFormControl(propertySale.contractDate, Validators.required),
|
|
17032
|
+
settlementDate: new UntypedFormControl(propertySale.settlementDate, Validators.required),
|
|
17033
|
+
commission: new UntypedFormControl(propertySale.commission || 0, Validators.required),
|
|
17034
|
+
legalFees: new UntypedFormControl(propertySale.legalFees || 0, Validators.required),
|
|
17035
|
+
otherCost: new UntypedFormControl(propertySale.otherCost || 0, Validators.required),
|
|
17036
|
+
capitalLoss: new UntypedFormControl(propertySale.capitalLoss || 0, Validators.required),
|
|
17037
|
+
grossCGT: new UntypedFormControl({ value: propertySale.grossCGT, disabled: true }, Validators.required),
|
|
17038
|
+
grossCGTAfterLoss: new UntypedFormControl({ value: propertySale.grossCGTAfterLoss, disabled: true }, Validators.required),
|
|
17064
17039
|
}, propertySale);
|
|
17065
17040
|
this.propertySale = propertySale;
|
|
17066
17041
|
this.property = property;
|
|
@@ -17127,11 +17102,10 @@ class PropertySaleCostSaleForm extends AbstractForm {
|
|
|
17127
17102
|
*/
|
|
17128
17103
|
class PropertySaleExemptionsForm extends AbstractForm {
|
|
17129
17104
|
constructor(propertySale, property, taxExemptions) {
|
|
17130
|
-
var _a, _b;
|
|
17131
17105
|
super({
|
|
17132
|
-
taxExemption: new
|
|
17133
|
-
taxExemptionMetadata: new
|
|
17134
|
-
netCGT: new
|
|
17106
|
+
taxExemption: new UntypedFormControl(taxExemptions.findBy('id', propertySale.taxExemption?.id ?? property.getCGTExemption(propertySale))),
|
|
17107
|
+
taxExemptionMetadata: new UntypedFormArray([]),
|
|
17108
|
+
netCGT: new UntypedFormControl(propertySale.netCGT)
|
|
17135
17109
|
}, propertySale);
|
|
17136
17110
|
this.propertySale = propertySale;
|
|
17137
17111
|
this.property = property;
|
|
@@ -17184,9 +17158,9 @@ class PropertySaleExemptionsForm extends AbstractForm {
|
|
|
17184
17158
|
// ppr days can't be more than ownership days
|
|
17185
17159
|
metadata.id === TaxExemptionMetadataEnum.PPR_DAYS && Validators.max(this.property.getOwnershipDuration(this.propertySale))
|
|
17186
17160
|
].filter(Boolean);
|
|
17187
|
-
formArray.push(new
|
|
17188
|
-
metadata: new
|
|
17189
|
-
value: new
|
|
17161
|
+
formArray.push(new UntypedFormGroup({
|
|
17162
|
+
metadata: new UntypedFormControl(metadata),
|
|
17163
|
+
value: new UntypedFormControl(metadataValue, validators)
|
|
17190
17164
|
}));
|
|
17191
17165
|
});
|
|
17192
17166
|
}
|
|
@@ -17194,19 +17168,18 @@ class PropertySaleExemptionsForm extends AbstractForm {
|
|
|
17194
17168
|
|
|
17195
17169
|
class MyTaxBusinessDetailsForm extends AbstractForm {
|
|
17196
17170
|
constructor(businessDetails) {
|
|
17197
|
-
var _a;
|
|
17198
17171
|
super({
|
|
17199
|
-
vehicleClaimMethod: new
|
|
17200
|
-
value:
|
|
17172
|
+
vehicleClaimMethod: new UntypedFormControl({
|
|
17173
|
+
value: businessDetails.vehicleClaimDetails?.method,
|
|
17201
17174
|
disabled: true
|
|
17202
17175
|
}),
|
|
17203
|
-
businessType: new
|
|
17176
|
+
businessType: new UntypedFormControl({ value: BusinessTypeEnum.SOLE_TRADER, disabled: true }),
|
|
17204
17177
|
// business details
|
|
17205
|
-
mainBusinessActivity: new
|
|
17206
|
-
mainBusinessName: new
|
|
17207
|
-
mainBusinessABN: new
|
|
17208
|
-
mainBusinessAddress: new
|
|
17209
|
-
numberOfBusinessActivities: new
|
|
17178
|
+
mainBusinessActivity: new UntypedFormControl(businessDetails.businessActivities[0]),
|
|
17179
|
+
mainBusinessName: new UntypedFormControl({ value: businessDetails.businesses.first.name, disabled: true }),
|
|
17180
|
+
mainBusinessABN: new UntypedFormControl({ value: businessDetails.businessABN, disabled: true }),
|
|
17181
|
+
mainBusinessAddress: new UntypedFormControl({ value: businessDetails.businessAddress, disabled: true }),
|
|
17182
|
+
numberOfBusinessActivities: new UntypedFormControl(businessDetails.businessActivities.length)
|
|
17210
17183
|
});
|
|
17211
17184
|
this.businessDetails = businessDetails;
|
|
17212
17185
|
this.listenEvents();
|
|
@@ -17227,72 +17200,72 @@ class MyTaxBusinessIncomeForm extends AbstractForm {
|
|
|
17227
17200
|
// Set in "false" if user has PSI income
|
|
17228
17201
|
// https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form
|
|
17229
17202
|
// ("Business income or losses" section, "P1. Did you satisfy the results test?" field)
|
|
17230
|
-
isTestResultsSatisfied: new
|
|
17231
|
-
psiVoluntaryAgreementAmount: new
|
|
17203
|
+
isTestResultsSatisfied: new UntypedFormControl(!businessIncome.psiIncomeAmount),
|
|
17204
|
+
psiVoluntaryAgreementAmount: new UntypedFormControl({
|
|
17232
17205
|
value: businessIncome.psiVoluntaryAgreementAmount,
|
|
17233
17206
|
disabled: true
|
|
17234
17207
|
}),
|
|
17235
|
-
psiABNNotQuotedAmount: new
|
|
17208
|
+
psiABNNotQuotedAmount: new UntypedFormControl({
|
|
17236
17209
|
value: businessIncome.psiABNNotQuotedAmount,
|
|
17237
17210
|
disabled: true
|
|
17238
17211
|
}),
|
|
17239
|
-
psiLabourHireOrOtherAmount: new
|
|
17212
|
+
psiLabourHireOrOtherAmount: new UntypedFormControl({
|
|
17240
17213
|
value: businessIncome.psiLabourHireOrOtherAmount,
|
|
17241
17214
|
disabled: true
|
|
17242
17215
|
}),
|
|
17243
|
-
psiOtherAmount: new
|
|
17216
|
+
psiOtherAmount: new UntypedFormControl({
|
|
17244
17217
|
value: businessIncome.psiOtherAmount,
|
|
17245
17218
|
disabled: true
|
|
17246
17219
|
}),
|
|
17247
|
-
psiDeductionAssociatesAmount: new
|
|
17220
|
+
psiDeductionAssociatesAmount: new UntypedFormControl({
|
|
17248
17221
|
value: businessIncome.psiDeductionAssociatesAmount,
|
|
17249
17222
|
disabled: true
|
|
17250
17223
|
}),
|
|
17251
|
-
psiDeductionOtherAmount: new
|
|
17224
|
+
psiDeductionOtherAmount: new UntypedFormControl({
|
|
17252
17225
|
value: businessIncome.psiDeductionOtherAmount,
|
|
17253
17226
|
disabled: true
|
|
17254
17227
|
}),
|
|
17255
|
-
psiVoluntaryAgreementTax: new
|
|
17228
|
+
psiVoluntaryAgreementTax: new UntypedFormControl({
|
|
17256
17229
|
value: businessIncome.psiVoluntaryAgreementTax,
|
|
17257
17230
|
disabled: true
|
|
17258
17231
|
}),
|
|
17259
|
-
psiABNNotQuotedTax: new
|
|
17232
|
+
psiABNNotQuotedTax: new UntypedFormControl({
|
|
17260
17233
|
value: businessIncome.psiABNNotQuotedTax,
|
|
17261
17234
|
disabled: true
|
|
17262
17235
|
}),
|
|
17263
|
-
psiLabourHireOrOtherTax: new
|
|
17236
|
+
psiLabourHireOrOtherTax: new UntypedFormControl({
|
|
17264
17237
|
value: businessIncome.psiLabourHireOrOtherTax,
|
|
17265
17238
|
disabled: true
|
|
17266
17239
|
}),
|
|
17267
|
-
grossPaymentsNoAbsGivenAmount: new
|
|
17240
|
+
grossPaymentsNoAbsGivenAmount: new UntypedFormControl({
|
|
17268
17241
|
value: businessIncome.grossPaymentsNoAbsGivenAmount,
|
|
17269
17242
|
disabled: true
|
|
17270
17243
|
}),
|
|
17271
|
-
grossPaymentsVoluntaryAgreementAmount: new
|
|
17244
|
+
grossPaymentsVoluntaryAgreementAmount: new UntypedFormControl({
|
|
17272
17245
|
value: businessIncome.grossPaymentsVoluntaryAgreementAmount,
|
|
17273
17246
|
disabled: true
|
|
17274
17247
|
}),
|
|
17275
|
-
grossPaymentsLabourHireAmount: new
|
|
17248
|
+
grossPaymentsLabourHireAmount: new UntypedFormControl({
|
|
17276
17249
|
value: businessIncome.grossPaymentsLabourHireAmount,
|
|
17277
17250
|
disabled: true
|
|
17278
17251
|
}),
|
|
17279
|
-
assessibleGovernmentPaymentsAmount: new
|
|
17252
|
+
assessibleGovernmentPaymentsAmount: new UntypedFormControl({
|
|
17280
17253
|
value: businessIncome.assessibleGovernmentPaymentsAmount,
|
|
17281
17254
|
disabled: true
|
|
17282
17255
|
}),
|
|
17283
|
-
otherBusinessIncomeAmount: new
|
|
17256
|
+
otherBusinessIncomeAmount: new UntypedFormControl({
|
|
17284
17257
|
value: businessIncome.otherBusinessIncomeAmount,
|
|
17285
17258
|
disabled: true
|
|
17286
17259
|
}),
|
|
17287
|
-
grossPaymentsNoAbsGivenTax: new
|
|
17260
|
+
grossPaymentsNoAbsGivenTax: new UntypedFormControl({
|
|
17288
17261
|
value: businessIncome.grossPaymentsNoAbsGivenTax,
|
|
17289
17262
|
disabled: true
|
|
17290
17263
|
}),
|
|
17291
|
-
grossPaymentsVoluntaryAgreementTax: new
|
|
17264
|
+
grossPaymentsVoluntaryAgreementTax: new UntypedFormControl({
|
|
17292
17265
|
value: businessIncome.grossPaymentsVoluntaryAgreementTax,
|
|
17293
17266
|
disabled: true
|
|
17294
17267
|
}),
|
|
17295
|
-
grossPaymentsLabourHireTax: new
|
|
17268
|
+
grossPaymentsLabourHireTax: new UntypedFormControl({
|
|
17296
17269
|
value: businessIncome.grossPaymentsLabourHireTax,
|
|
17297
17270
|
disabled: true
|
|
17298
17271
|
}),
|
|
@@ -17302,78 +17275,77 @@ class MyTaxBusinessIncomeForm extends AbstractForm {
|
|
|
17302
17275
|
|
|
17303
17276
|
class MyTaxBusinessLossesForm extends AbstractForm {
|
|
17304
17277
|
constructor(businessLosses) {
|
|
17305
|
-
var _a, _b;
|
|
17306
17278
|
super({
|
|
17307
|
-
purchasesAndOtherCostsAmount: new
|
|
17279
|
+
purchasesAndOtherCostsAmount: new UntypedFormControl({
|
|
17308
17280
|
value: businessLosses.purchasesAndOtherCostsAmount,
|
|
17309
17281
|
disabled: true
|
|
17310
17282
|
}),
|
|
17311
|
-
contractorsAndCommissionAmount: new
|
|
17283
|
+
contractorsAndCommissionAmount: new UntypedFormControl({
|
|
17312
17284
|
value: businessLosses.contractorsAndCommissionAmount,
|
|
17313
17285
|
disabled: true
|
|
17314
17286
|
}),
|
|
17315
|
-
superannuationAmount: new
|
|
17287
|
+
superannuationAmount: new UntypedFormControl({
|
|
17316
17288
|
value: businessLosses.superannuationAmount,
|
|
17317
17289
|
disabled: true
|
|
17318
17290
|
}),
|
|
17319
|
-
badDebtAmount: new
|
|
17291
|
+
badDebtAmount: new UntypedFormControl({
|
|
17320
17292
|
value: businessLosses.badDebtAmount,
|
|
17321
17293
|
disabled: true
|
|
17322
17294
|
}),
|
|
17323
|
-
leaseExpensesCommercialAmount: new
|
|
17295
|
+
leaseExpensesCommercialAmount: new UntypedFormControl({
|
|
17324
17296
|
value: businessLosses.leaseExpensesCommercialAmount,
|
|
17325
17297
|
disabled: true
|
|
17326
17298
|
}),
|
|
17327
|
-
rentExpensesCommercialPremisesAmount: new
|
|
17299
|
+
rentExpensesCommercialPremisesAmount: new UntypedFormControl({
|
|
17328
17300
|
value: businessLosses.rentExpensesCommercialPremisesAmount,
|
|
17329
17301
|
disabled: true
|
|
17330
17302
|
}),
|
|
17331
|
-
interestExpensesAustraliaAmount: new
|
|
17303
|
+
interestExpensesAustraliaAmount: new UntypedFormControl({
|
|
17332
17304
|
value: businessLosses.interestExpensesAustraliaAmount,
|
|
17333
17305
|
disabled: true
|
|
17334
17306
|
}),
|
|
17335
|
-
interestExpensesOverseasAmount: new
|
|
17307
|
+
interestExpensesOverseasAmount: new UntypedFormControl({
|
|
17336
17308
|
value: businessLosses.interestExpensesOverseasAmount,
|
|
17337
17309
|
disabled: true
|
|
17338
17310
|
}),
|
|
17339
|
-
kmsTravelledExpensesAmount: new
|
|
17311
|
+
kmsTravelledExpensesAmount: new UntypedFormControl({
|
|
17340
17312
|
value: businessLosses.kmsTravelledExpensesAmount,
|
|
17341
17313
|
disabled: true
|
|
17342
17314
|
}),
|
|
17343
|
-
logbookExpensesAmount: new
|
|
17315
|
+
logbookExpensesAmount: new UntypedFormControl({
|
|
17344
17316
|
value: businessLosses.logbookExpensesAmount,
|
|
17345
17317
|
disabled: true
|
|
17346
17318
|
}),
|
|
17347
|
-
otherExpensesAmount: new
|
|
17319
|
+
otherExpensesAmount: new UntypedFormControl({
|
|
17348
17320
|
value: businessLosses.otherExpensesAmount,
|
|
17349
17321
|
disabled: true
|
|
17350
17322
|
}),
|
|
17351
|
-
totalNonPrimaryProductionExpensesAmount: new
|
|
17323
|
+
totalNonPrimaryProductionExpensesAmount: new UntypedFormControl({
|
|
17352
17324
|
value: businessLosses.totalNonPrimaryProductionExpensesAmount,
|
|
17353
17325
|
disabled: true
|
|
17354
17326
|
}),
|
|
17355
17327
|
// depreciations
|
|
17356
|
-
depreciationExpensesAmount: new
|
|
17328
|
+
depreciationExpensesAmount: new UntypedFormControl({
|
|
17357
17329
|
value: businessLosses.depreciationExpensesAmount,
|
|
17358
17330
|
disabled: true
|
|
17359
17331
|
}),
|
|
17360
|
-
deductionsForCertainAssetsAmount: new
|
|
17332
|
+
deductionsForCertainAssetsAmount: new UntypedFormControl({
|
|
17361
17333
|
value: businessLosses.deductionsForCertainAssetsAmount,
|
|
17362
17334
|
disabled: true
|
|
17363
17335
|
}),
|
|
17364
|
-
deductionsForGeneralSmallBusinessPoolAmount: new
|
|
17336
|
+
deductionsForGeneralSmallBusinessPoolAmount: new UntypedFormControl({
|
|
17365
17337
|
value: businessLosses.deductionsForGeneralSmallBusinessPoolAmount,
|
|
17366
17338
|
disabled: true
|
|
17367
17339
|
}),
|
|
17368
|
-
currentYearNetNonPrimaryIncomeOrLossesAmount: new
|
|
17340
|
+
currentYearNetNonPrimaryIncomeOrLossesAmount: new UntypedFormControl({
|
|
17369
17341
|
value: businessLosses.currentYearNetNonPrimaryIncomeOrLossesAmount,
|
|
17370
17342
|
disabled: true
|
|
17371
17343
|
}),
|
|
17372
|
-
priorYearsNonPrimaryLossesAmount: new
|
|
17344
|
+
priorYearsNonPrimaryLossesAmount: new UntypedFormControl({
|
|
17373
17345
|
value: businessLosses.priorYearsNonPrimaryLossesAmount,
|
|
17374
17346
|
disabled: true
|
|
17375
17347
|
}),
|
|
17376
|
-
lossType: new
|
|
17348
|
+
lossType: new UntypedFormControl(businessLosses.currentLoss?.offsetRule?.id, Validators.required),
|
|
17377
17349
|
});
|
|
17378
17350
|
}
|
|
17379
17351
|
}
|
|
@@ -17391,18 +17363,18 @@ class MyTaxBusinessIncomeOrLossesForm extends AbstractForm {
|
|
|
17391
17363
|
class MyTaxCgtForm extends AbstractForm {
|
|
17392
17364
|
constructor(gainsOrLosses) {
|
|
17393
17365
|
super({
|
|
17394
|
-
hasCapitalGain: new
|
|
17395
|
-
hasExemption: new
|
|
17396
|
-
exemptionType: new
|
|
17397
|
-
netCapitalGain: new
|
|
17366
|
+
hasCapitalGain: new UntypedFormControl(gainsOrLosses.hasCapitalGain),
|
|
17367
|
+
hasExemption: new UntypedFormControl(gainsOrLosses.hasExemption),
|
|
17368
|
+
exemptionType: new UntypedFormControl(null, conditionalValidator(() => this.get('hasExemption').value, Validators.required)),
|
|
17369
|
+
netCapitalGain: new UntypedFormControl({
|
|
17398
17370
|
value: gainsOrLosses.netCapitalGain,
|
|
17399
17371
|
disabled: true
|
|
17400
17372
|
}),
|
|
17401
|
-
grossCapitalGain: new
|
|
17373
|
+
grossCapitalGain: new UntypedFormControl({
|
|
17402
17374
|
value: gainsOrLosses.grossCapitalGain,
|
|
17403
17375
|
disabled: true
|
|
17404
17376
|
}),
|
|
17405
|
-
netCapitalLoss: new
|
|
17377
|
+
netCapitalLoss: new UntypedFormControl({
|
|
17406
17378
|
value: gainsOrLosses.netCapitalLoss,
|
|
17407
17379
|
disabled: true
|
|
17408
17380
|
})
|
|
@@ -17412,80 +17384,79 @@ class MyTaxCgtForm extends AbstractForm {
|
|
|
17412
17384
|
|
|
17413
17385
|
class MyTaxDeductionsForm extends AbstractForm {
|
|
17414
17386
|
constructor(deductions) {
|
|
17415
|
-
var _a;
|
|
17416
17387
|
super({
|
|
17417
|
-
vehicleClaimMethod: new
|
|
17418
|
-
value:
|
|
17388
|
+
vehicleClaimMethod: new UntypedFormControl({
|
|
17389
|
+
value: deductions.vehicleClaimDetails?.method,
|
|
17419
17390
|
disabled: true
|
|
17420
17391
|
}),
|
|
17421
|
-
vehicleExpensesTotalAmount: new
|
|
17392
|
+
vehicleExpensesTotalAmount: new UntypedFormControl({
|
|
17422
17393
|
value: deductions.vehicleExpensesTotalAmount,
|
|
17423
17394
|
disabled: true
|
|
17424
17395
|
}),
|
|
17425
|
-
workRelatedTravelExpensesTotalAmount: new
|
|
17396
|
+
workRelatedTravelExpensesTotalAmount: new UntypedFormControl({
|
|
17426
17397
|
value: deductions.workRelatedTravelExpensesTotalAmount,
|
|
17427
17398
|
disabled: true
|
|
17428
17399
|
}),
|
|
17429
|
-
workRelatedClothingType: new
|
|
17430
|
-
workRelatedClothingTotalAmount: new
|
|
17400
|
+
workRelatedClothingType: new UntypedFormControl(deductions.workRelatedClothingType, conditionalValidator(() => !!deductions.workRelatedClothingTotalAmount, Validators.required)),
|
|
17401
|
+
workRelatedClothingTotalAmount: new UntypedFormControl({
|
|
17431
17402
|
value: deductions.workRelatedClothingTotalAmount,
|
|
17432
17403
|
disabled: true
|
|
17433
17404
|
}),
|
|
17434
|
-
workRelatedSelfEducationType: new
|
|
17435
|
-
workRelatedSelfEducationTotalAmount: new
|
|
17405
|
+
workRelatedSelfEducationType: new UntypedFormControl(deductions.workRelatedSelfEducationType, conditionalValidator(() => !!deductions.workRelatedSelfEducationTotalAmount, Validators.required)),
|
|
17406
|
+
workRelatedSelfEducationTotalAmount: new UntypedFormControl({
|
|
17436
17407
|
value: deductions.workRelatedSelfEducationTotalAmount,
|
|
17437
17408
|
disabled: true
|
|
17438
17409
|
}),
|
|
17439
|
-
otherWorkRelatedSelfEducationTotalAmount: new
|
|
17410
|
+
otherWorkRelatedSelfEducationTotalAmount: new UntypedFormControl({
|
|
17440
17411
|
value: deductions.otherWorkRelatedExpensesTotalAmount,
|
|
17441
17412
|
disabled: true
|
|
17442
17413
|
}),
|
|
17443
|
-
lowValuePoolDeductionTotalAmount: new
|
|
17414
|
+
lowValuePoolDeductionTotalAmount: new UntypedFormControl({
|
|
17444
17415
|
value: deductions.lowValuePoolDeductionTotalAmount,
|
|
17445
17416
|
disabled: true
|
|
17446
17417
|
}),
|
|
17447
|
-
interestExpensesTotalAmount: new
|
|
17418
|
+
interestExpensesTotalAmount: new UntypedFormControl({
|
|
17448
17419
|
value: deductions.interestExpensesTotalAmount,
|
|
17449
17420
|
disabled: true
|
|
17450
17421
|
}),
|
|
17451
|
-
dividendExpensesTotalAmount: new
|
|
17422
|
+
dividendExpensesTotalAmount: new UntypedFormControl({
|
|
17452
17423
|
value: deductions.dividendExpensesTotalAmount,
|
|
17453
17424
|
disabled: true
|
|
17454
17425
|
}),
|
|
17455
|
-
donationsTotalAmount: new
|
|
17426
|
+
donationsTotalAmount: new UntypedFormControl({
|
|
17456
17427
|
value: deductions.donationsTotalAmount,
|
|
17457
17428
|
disabled: true
|
|
17458
17429
|
}),
|
|
17459
|
-
interestsChargedByATOTotalAmount: new
|
|
17430
|
+
interestsChargedByATOTotalAmount: new UntypedFormControl({
|
|
17460
17431
|
value: deductions.interestsChargedByATOTotalAmount,
|
|
17461
17432
|
disabled: true
|
|
17462
17433
|
}),
|
|
17463
|
-
litigationCostsTotalAmount: new
|
|
17434
|
+
litigationCostsTotalAmount: new UntypedFormControl({
|
|
17464
17435
|
value: deductions.litigationCostsTotalAmount,
|
|
17465
17436
|
disabled: true
|
|
17466
17437
|
}),
|
|
17467
|
-
otherManagingCostsTotalAmount: new
|
|
17438
|
+
otherManagingCostsTotalAmount: new UntypedFormControl({
|
|
17468
17439
|
value: deductions.otherManagingCostsTotalAmount,
|
|
17469
17440
|
disabled: true
|
|
17470
17441
|
}),
|
|
17471
|
-
fundName: new
|
|
17472
|
-
hasFund: new
|
|
17473
|
-
fundABN: new
|
|
17474
|
-
fundTFN: new
|
|
17475
|
-
fundAccountNumber: new
|
|
17476
|
-
personalSuperContributionsTotalAmount: new
|
|
17442
|
+
fundName: new UntypedFormControl(''),
|
|
17443
|
+
hasFund: new UntypedFormControl(true),
|
|
17444
|
+
fundABN: new UntypedFormControl(''),
|
|
17445
|
+
fundTFN: new UntypedFormControl(''),
|
|
17446
|
+
fundAccountNumber: new UntypedFormControl(''),
|
|
17447
|
+
personalSuperContributionsTotalAmount: new UntypedFormControl({
|
|
17477
17448
|
value: deductions.personalSuperContributionsTotalAmount,
|
|
17478
17449
|
disabled: true
|
|
17479
17450
|
}),
|
|
17480
|
-
forestryManagedInvestmentSchemesDeductionsTotalAmount: new
|
|
17451
|
+
forestryManagedInvestmentSchemesDeductionsTotalAmount: new UntypedFormControl({
|
|
17481
17452
|
value: deductions.forestryManagedInvestmentSchemesDeductionsTotalAmount,
|
|
17482
17453
|
disabled: true
|
|
17483
17454
|
}),
|
|
17484
|
-
otherDeductionsTotalAmount: new
|
|
17455
|
+
otherDeductionsTotalAmount: new UntypedFormControl({
|
|
17485
17456
|
value: deductions.otherDeductionsTotalAmount,
|
|
17486
17457
|
disabled: true
|
|
17487
17458
|
}),
|
|
17488
|
-
depreciationAndCapitalAllowancesTotalAmount: new
|
|
17459
|
+
depreciationAndCapitalAllowancesTotalAmount: new UntypedFormControl({
|
|
17489
17460
|
value: deductions.depreciationAndCapitalAllowancesTotalAmount,
|
|
17490
17461
|
disabled: true
|
|
17491
17462
|
})
|
|
@@ -17496,20 +17467,20 @@ class MyTaxDeductionsForm extends AbstractForm {
|
|
|
17496
17467
|
class MyTaxDividendsForm extends AbstractForm {
|
|
17497
17468
|
constructor(dividends) {
|
|
17498
17469
|
super({
|
|
17499
|
-
dividendsUnfrankedAmount: new
|
|
17470
|
+
dividendsUnfrankedAmount: new UntypedFormControl({
|
|
17500
17471
|
value: dividends.dividendsUnfrankedAmount,
|
|
17501
17472
|
disabled: true
|
|
17502
17473
|
}),
|
|
17503
|
-
dividendsFrankedAmount: new
|
|
17474
|
+
dividendsFrankedAmount: new UntypedFormControl({
|
|
17504
17475
|
value: dividends.dividendsFrankedAmount,
|
|
17505
17476
|
disabled: true
|
|
17506
17477
|
}),
|
|
17507
|
-
dividendsFrankingCreditsAmount: new
|
|
17478
|
+
dividendsFrankingCreditsAmount: new UntypedFormControl({
|
|
17508
17479
|
value: dividends.dividendsFrankingCreditsAmount,
|
|
17509
17480
|
disabled: true
|
|
17510
17481
|
}),
|
|
17511
|
-
dividendsTotalTax: new
|
|
17512
|
-
isForeignResident: new
|
|
17482
|
+
dividendsTotalTax: new UntypedFormControl({ value: dividends.dividendsTotalTax, disabled: true }),
|
|
17483
|
+
isForeignResident: new UntypedFormControl(false),
|
|
17513
17484
|
});
|
|
17514
17485
|
}
|
|
17515
17486
|
}
|
|
@@ -17517,84 +17488,84 @@ class MyTaxDividendsForm extends AbstractForm {
|
|
|
17517
17488
|
class MyTaxIncomeStatementsForm extends AbstractForm {
|
|
17518
17489
|
constructor(incomeStatements, user) {
|
|
17519
17490
|
super({
|
|
17520
|
-
occupation: new
|
|
17521
|
-
allowanceTotalAmount: new
|
|
17491
|
+
occupation: new UntypedFormControl(user.clientDetails.occupation, [Validators.required, autocompleteValidator()]),
|
|
17492
|
+
allowanceTotalAmount: new UntypedFormControl({
|
|
17522
17493
|
value: incomeStatements.allowanceTotalAmount,
|
|
17523
17494
|
disabled: true
|
|
17524
17495
|
}),
|
|
17525
|
-
allowanceTotalTax: new
|
|
17496
|
+
allowanceTotalTax: new UntypedFormControl({
|
|
17526
17497
|
value: incomeStatements.allowanceTotalTax,
|
|
17527
17498
|
disabled: true
|
|
17528
17499
|
}),
|
|
17529
|
-
lumpATransactionsTotalAmount: new
|
|
17500
|
+
lumpATransactionsTotalAmount: new UntypedFormControl({
|
|
17530
17501
|
value: incomeStatements.lumpATransactionsTotalAmount,
|
|
17531
17502
|
disabled: true
|
|
17532
17503
|
}),
|
|
17533
|
-
lumpATransactionsTotalTax: new
|
|
17504
|
+
lumpATransactionsTotalTax: new UntypedFormControl({
|
|
17534
17505
|
value: incomeStatements.lumpATransactionsTotalTax,
|
|
17535
17506
|
disabled: true
|
|
17536
17507
|
}),
|
|
17537
|
-
hasGenuineLumpATransactions: new
|
|
17508
|
+
hasGenuineLumpATransactions: new UntypedFormControl({
|
|
17538
17509
|
value: incomeStatements.hasGenuineLumpATransactions,
|
|
17539
17510
|
disabled: true
|
|
17540
17511
|
}),
|
|
17541
|
-
hasOtherLumpATransactions: new
|
|
17512
|
+
hasOtherLumpATransactions: new UntypedFormControl({
|
|
17542
17513
|
value: incomeStatements.hasOtherLumpATransactions,
|
|
17543
17514
|
disabled: true
|
|
17544
17515
|
}),
|
|
17545
|
-
lumpBTransactionsTotalAmount: new
|
|
17516
|
+
lumpBTransactionsTotalAmount: new UntypedFormControl({
|
|
17546
17517
|
value: incomeStatements.lumpBTransactionsTotalAmount,
|
|
17547
17518
|
disabled: true
|
|
17548
17519
|
}),
|
|
17549
|
-
lumpBTransactionsTotalTax: new
|
|
17520
|
+
lumpBTransactionsTotalTax: new UntypedFormControl({
|
|
17550
17521
|
value: incomeStatements.lumpBTransactionsTotalTax,
|
|
17551
17522
|
disabled: true
|
|
17552
17523
|
}),
|
|
17553
|
-
australianAllowancesAndPaymentsTotalAmount: new
|
|
17524
|
+
australianAllowancesAndPaymentsTotalAmount: new UntypedFormControl({
|
|
17554
17525
|
value: incomeStatements.australianAllowancesAndPaymentsTotalAmount,
|
|
17555
17526
|
disabled: true
|
|
17556
17527
|
}),
|
|
17557
|
-
australianAllowancesAndPaymentsTotalTax: new
|
|
17528
|
+
australianAllowancesAndPaymentsTotalTax: new UntypedFormControl({
|
|
17558
17529
|
value: incomeStatements.australianAllowancesAndPaymentsTotalTax,
|
|
17559
17530
|
disabled: true
|
|
17560
17531
|
}),
|
|
17561
|
-
australianPensionsAndAllowancesTotalAmount: new
|
|
17532
|
+
australianPensionsAndAllowancesTotalAmount: new UntypedFormControl({
|
|
17562
17533
|
value: incomeStatements.australianPensionsAndAllowancesTotalAmount,
|
|
17563
17534
|
disabled: true
|
|
17564
17535
|
}),
|
|
17565
|
-
australianPensionsAndAllowancesTotalTax: new
|
|
17536
|
+
australianPensionsAndAllowancesTotalTax: new UntypedFormControl({
|
|
17566
17537
|
value: incomeStatements.australianPensionsAndAllowancesTotalTax,
|
|
17567
17538
|
disabled: true
|
|
17568
17539
|
}),
|
|
17569
|
-
australianAnnuitiesSuperannuationIncomesTotalTax: new
|
|
17540
|
+
australianAnnuitiesSuperannuationIncomesTotalTax: new UntypedFormControl({
|
|
17570
17541
|
value: incomeStatements.australianAnnuitiesSuperannuationIncomesTotalTax,
|
|
17571
17542
|
disabled: true
|
|
17572
17543
|
}),
|
|
17573
|
-
australianAnnuityPaymentsTaxed: new
|
|
17544
|
+
australianAnnuityPaymentsTaxed: new UntypedFormControl({
|
|
17574
17545
|
value: incomeStatements.australianAnnuityPaymentsTaxed,
|
|
17575
17546
|
disabled: true
|
|
17576
17547
|
}),
|
|
17577
|
-
australianAnnuityPaymentsUntaxed: new
|
|
17548
|
+
australianAnnuityPaymentsUntaxed: new UntypedFormControl({
|
|
17578
17549
|
value: incomeStatements.australianAnnuityPaymentsUntaxed,
|
|
17579
17550
|
disabled: true
|
|
17580
17551
|
}),
|
|
17581
|
-
assessableCappedDefinedBenefitTotalAmount: new
|
|
17552
|
+
assessableCappedDefinedBenefitTotalAmount: new UntypedFormControl({
|
|
17582
17553
|
value: incomeStatements.assessableCappedDefinedBenefitTotalAmount,
|
|
17583
17554
|
disabled: true
|
|
17584
17555
|
}),
|
|
17585
|
-
superannuationIncomeStreamsTotalTaxed: new
|
|
17556
|
+
superannuationIncomeStreamsTotalTaxed: new UntypedFormControl({
|
|
17586
17557
|
value: incomeStatements.superannuationIncomeStreamsTotalTaxed,
|
|
17587
17558
|
disabled: true
|
|
17588
17559
|
}),
|
|
17589
|
-
superannuationIncomeStreamsTotalUntaxed: new
|
|
17560
|
+
superannuationIncomeStreamsTotalUntaxed: new UntypedFormControl({
|
|
17590
17561
|
value: incomeStatements.superannuationIncomeStreamsTotalUntaxed,
|
|
17591
17562
|
disabled: true
|
|
17592
17563
|
}),
|
|
17593
|
-
attributablePsiTransactionsTotalAmount: new
|
|
17564
|
+
attributablePsiTransactionsTotalAmount: new UntypedFormControl({
|
|
17594
17565
|
value: incomeStatements.attributablePsiTransactionsTotalAmount,
|
|
17595
17566
|
disabled: true
|
|
17596
17567
|
}),
|
|
17597
|
-
attributablePsiTransactionsTotalTax: new
|
|
17568
|
+
attributablePsiTransactionsTotalTax: new UntypedFormControl({
|
|
17598
17569
|
value: incomeStatements.attributablePsiTransactionsTotalTax,
|
|
17599
17570
|
disabled: true
|
|
17600
17571
|
}),
|
|
@@ -17615,9 +17586,9 @@ class MyTaxIncomeTestsForm extends AbstractForm {
|
|
|
17615
17586
|
class MyTaxInterestForm extends AbstractForm {
|
|
17616
17587
|
constructor(interest) {
|
|
17617
17588
|
super({
|
|
17618
|
-
interestEarnedTotalAmount: new
|
|
17619
|
-
interestEarnedTotalTax: new
|
|
17620
|
-
interestPaidTotalAmount: new
|
|
17589
|
+
interestEarnedTotalAmount: new UntypedFormControl(interest.interestEarnedTotalAmount),
|
|
17590
|
+
interestEarnedTotalTax: new UntypedFormControl(interest.interestEarnedTotalTax),
|
|
17591
|
+
interestPaidTotalAmount: new UntypedFormControl(interest.interestPaidTotalAmount)
|
|
17621
17592
|
});
|
|
17622
17593
|
}
|
|
17623
17594
|
}
|
|
@@ -17625,8 +17596,8 @@ class MyTaxInterestForm extends AbstractForm {
|
|
|
17625
17596
|
class MyTaxLossesForm extends AbstractForm {
|
|
17626
17597
|
constructor(losses) {
|
|
17627
17598
|
super({
|
|
17628
|
-
businessLossDeferred: new
|
|
17629
|
-
businessLossApplied: new
|
|
17599
|
+
businessLossDeferred: new UntypedFormControl(losses.businessLossDeferred),
|
|
17600
|
+
businessLossApplied: new UntypedFormControl(losses.businessLossApplied)
|
|
17630
17601
|
});
|
|
17631
17602
|
}
|
|
17632
17603
|
}
|
|
@@ -17634,11 +17605,11 @@ class MyTaxLossesForm extends AbstractForm {
|
|
|
17634
17605
|
class MyTaxMedicareForm extends AbstractForm {
|
|
17635
17606
|
constructor(user) {
|
|
17636
17607
|
super({
|
|
17637
|
-
hasDependants: new
|
|
17638
|
-
dependants: new
|
|
17639
|
-
privateHealthCare: new
|
|
17640
|
-
hasMedicareExemption: new
|
|
17641
|
-
medicareExemption: new
|
|
17608
|
+
hasDependants: new UntypedFormControl(!!user.clientDetails.dependants),
|
|
17609
|
+
dependants: new UntypedFormControl(user.clientDetails.dependants, Validators.required),
|
|
17610
|
+
privateHealthCare: new UntypedFormControl(user.clientDetails.privateHealthCare),
|
|
17611
|
+
hasMedicareExemption: new UntypedFormControl(!!user.clientDetails.medicareExemption),
|
|
17612
|
+
medicareExemption: new UntypedFormControl(user.clientDetails.medicareExemption, Validators.required),
|
|
17642
17613
|
});
|
|
17643
17614
|
this.listenEvents();
|
|
17644
17615
|
}
|
|
@@ -17674,37 +17645,37 @@ class MyTaxOffsetsForm extends AbstractForm {
|
|
|
17674
17645
|
class MyTaxOtherIncomeForm extends AbstractForm {
|
|
17675
17646
|
constructor(otherIncome) {
|
|
17676
17647
|
super({
|
|
17677
|
-
eligibleForReductionAmount: new
|
|
17678
|
-
notEligibleForReductionAmount: new
|
|
17679
|
-
discountFromDeferredSchemeAmount: new
|
|
17680
|
-
totalAssessableDiscountAmount: new
|
|
17681
|
-
shareSchemesTotalTax: new
|
|
17682
|
-
bonusesTotalAmount: new
|
|
17648
|
+
eligibleForReductionAmount: new UntypedFormControl(otherIncome.eligibleForReductionAmount),
|
|
17649
|
+
notEligibleForReductionAmount: new UntypedFormControl(otherIncome.notEligibleForReductionAmount),
|
|
17650
|
+
discountFromDeferredSchemeAmount: new UntypedFormControl(otherIncome.discountFromDeferredSchemeAmount),
|
|
17651
|
+
totalAssessableDiscountAmount: new UntypedFormControl(otherIncome.totalAssessableDiscountAmount),
|
|
17652
|
+
shareSchemesTotalTax: new UntypedFormControl(otherIncome.shareSchemesTotalTax),
|
|
17653
|
+
bonusesTotalAmount: new UntypedFormControl({
|
|
17683
17654
|
value: otherIncome.bonusesTotalAmount,
|
|
17684
17655
|
disabled: true
|
|
17685
17656
|
}),
|
|
17686
|
-
forestryManagedInvestmentSchemesIncomeTotalAmount: new
|
|
17657
|
+
forestryManagedInvestmentSchemesIncomeTotalAmount: new UntypedFormControl({
|
|
17687
17658
|
value: otherIncome.forestryManagedInvestmentSchemesIncomeTotalAmount,
|
|
17688
17659
|
disabled: true
|
|
17689
17660
|
}),
|
|
17690
|
-
lumpSumPaymentsInArrearsTotalTax: new
|
|
17661
|
+
lumpSumPaymentsInArrearsTotalTax: new UntypedFormControl({
|
|
17691
17662
|
value: otherIncome.lumpSumPaymentsInArrearsTotalTax,
|
|
17692
17663
|
disabled: true
|
|
17693
17664
|
}),
|
|
17694
|
-
specialProfessionIncomeTotalAmount: new
|
|
17665
|
+
specialProfessionIncomeTotalAmount: new UntypedFormControl({
|
|
17695
17666
|
value: otherIncome.specialProfessionIncomeTotalAmount,
|
|
17696
17667
|
disabled: true
|
|
17697
17668
|
}),
|
|
17698
|
-
category1TotalIncome: new
|
|
17669
|
+
category1TotalIncome: new UntypedFormControl({
|
|
17699
17670
|
value: otherIncome.category1TotalIncome,
|
|
17700
17671
|
disabled: true
|
|
17701
17672
|
}),
|
|
17702
|
-
hasLumpSumPaymentsInArrearsTransactions: new
|
|
17703
|
-
atoInterestPaidTotalAmount: new
|
|
17673
|
+
hasLumpSumPaymentsInArrearsTransactions: new UntypedFormControl(!!otherIncome.lumpSumPaymentsInArrearsTransactions.length),
|
|
17674
|
+
atoInterestPaidTotalAmount: new UntypedFormControl({
|
|
17704
17675
|
value: otherIncome.atoInterestPaidTotalAmount,
|
|
17705
17676
|
disabled: true
|
|
17706
17677
|
}),
|
|
17707
|
-
gainOnSaleOfVehiclePreviouslyDepreciatedTotalAmount: new
|
|
17678
|
+
gainOnSaleOfVehiclePreviouslyDepreciatedTotalAmount: new UntypedFormControl({
|
|
17708
17679
|
value: otherIncome.gainOnSaleOfVehiclePreviouslyDepreciatedTotalAmount,
|
|
17709
17680
|
disabled: true
|
|
17710
17681
|
})
|
|
@@ -17715,31 +17686,31 @@ class MyTaxOtherIncomeForm extends AbstractForm {
|
|
|
17715
17686
|
class MyTaxPartnershipsAndTrustsForm extends AbstractForm {
|
|
17716
17687
|
constructor(partnershipsAndTrusts) {
|
|
17717
17688
|
super({
|
|
17718
|
-
partnershipsIncomeTotalAmount: new
|
|
17689
|
+
partnershipsIncomeTotalAmount: new UntypedFormControl({
|
|
17719
17690
|
value: partnershipsAndTrusts.partnershipsIncomeTotalAmount,
|
|
17720
17691
|
disabled: true
|
|
17721
17692
|
}),
|
|
17722
|
-
partnershipsExpenseTotalAmount: new
|
|
17693
|
+
partnershipsExpenseTotalAmount: new UntypedFormControl({
|
|
17723
17694
|
value: partnershipsAndTrusts.partnershipsExpenseTotalAmount,
|
|
17724
17695
|
disabled: true
|
|
17725
17696
|
}),
|
|
17726
|
-
trustsIncomeTotalAmount: new
|
|
17697
|
+
trustsIncomeTotalAmount: new UntypedFormControl({
|
|
17727
17698
|
value: partnershipsAndTrusts.trustsIncomeTotalAmount,
|
|
17728
17699
|
disabled: true
|
|
17729
17700
|
}),
|
|
17730
|
-
trustsExpenseTotalAmount: new
|
|
17701
|
+
trustsExpenseTotalAmount: new UntypedFormControl({
|
|
17731
17702
|
value: partnershipsAndTrusts.trustsExpenseTotalAmount,
|
|
17732
17703
|
disabled: true
|
|
17733
17704
|
}),
|
|
17734
|
-
trustsIncomeTotalTax: new
|
|
17705
|
+
trustsIncomeTotalTax: new UntypedFormControl({
|
|
17735
17706
|
value: partnershipsAndTrusts.trustsIncomeTotalTax,
|
|
17736
17707
|
disabled: true
|
|
17737
17708
|
}),
|
|
17738
|
-
frankingCreditsTotal: new
|
|
17709
|
+
frankingCreditsTotal: new UntypedFormControl({
|
|
17739
17710
|
value: partnershipsAndTrusts.frankingCreditsTotal,
|
|
17740
17711
|
disabled: true
|
|
17741
17712
|
}),
|
|
17742
|
-
taxOffsetNRASTotalAmount: new
|
|
17713
|
+
taxOffsetNRASTotalAmount: new UntypedFormControl({
|
|
17743
17714
|
value: partnershipsAndTrusts.taxOffsetNRASTotalAmount,
|
|
17744
17715
|
disabled: true
|
|
17745
17716
|
})
|
|
@@ -17750,10 +17721,10 @@ class MyTaxPartnershipsAndTrustsForm extends AbstractForm {
|
|
|
17750
17721
|
class MyTaxRentForm extends AbstractForm {
|
|
17751
17722
|
constructor(rent) {
|
|
17752
17723
|
super({
|
|
17753
|
-
grossRentAmount: new
|
|
17754
|
-
interestDeductions: new
|
|
17755
|
-
capitalWorksDeductions: new
|
|
17756
|
-
otherRentalDeductionsAmount: new
|
|
17724
|
+
grossRentAmount: new UntypedFormControl(rent.grossRentAmount),
|
|
17725
|
+
interestDeductions: new UntypedFormControl(rent.interestDeductionsAmount),
|
|
17726
|
+
capitalWorksDeductions: new UntypedFormControl(rent.capitalWorksDeductionsAmount),
|
|
17727
|
+
otherRentalDeductionsAmount: new UntypedFormControl(rent.otherRentalDeductionsAmount)
|
|
17757
17728
|
});
|
|
17758
17729
|
}
|
|
17759
17730
|
}
|
|
@@ -17764,7 +17735,7 @@ class MyTaxRentForm extends AbstractForm {
|
|
|
17764
17735
|
class VehicleForm extends AbstractForm {
|
|
17765
17736
|
constructor(vehicle = plainToClass(Vehicle, {})) {
|
|
17766
17737
|
super({
|
|
17767
|
-
name: new
|
|
17738
|
+
name: new UntypedFormControl(vehicle.name, [Validators.required, Validators.maxLength(VehicleForm.maxNameLength)])
|
|
17768
17739
|
}, vehicle);
|
|
17769
17740
|
this.vehicle = vehicle;
|
|
17770
17741
|
}
|
|
@@ -17781,11 +17752,11 @@ class VehicleClaimForm extends AbstractForm {
|
|
|
17781
17752
|
*/
|
|
17782
17753
|
constructor(vehicleClaim, details) {
|
|
17783
17754
|
super({
|
|
17784
|
-
kilometers: new
|
|
17755
|
+
kilometers: new UntypedFormControl({
|
|
17785
17756
|
value: vehicleClaim.kilometers,
|
|
17786
17757
|
disabled: !details.isManual || details.isLogbookMethod()
|
|
17787
17758
|
}),
|
|
17788
|
-
workUsage: new
|
|
17759
|
+
workUsage: new UntypedFormControl({
|
|
17789
17760
|
value: vehicleClaim.workUsage,
|
|
17790
17761
|
disabled: !details.isManual || details.isKmsMethod()
|
|
17791
17762
|
})
|
|
@@ -17804,8 +17775,8 @@ class VehicleClaimForm extends AbstractForm {
|
|
|
17804
17775
|
class VehicleClaimDetailsForm extends AbstractForm {
|
|
17805
17776
|
constructor(vehicleClaimDetails, isBestPeriodExist) {
|
|
17806
17777
|
super({
|
|
17807
|
-
method: new
|
|
17808
|
-
isManual: new
|
|
17778
|
+
method: new UntypedFormControl(vehicleClaimDetails.method, Validators.required),
|
|
17779
|
+
isManual: new UntypedFormControl({
|
|
17809
17780
|
value: vehicleClaimDetails.isManual,
|
|
17810
17781
|
disabled: !isBestPeriodExist
|
|
17811
17782
|
}),
|
|
@@ -17827,12 +17798,12 @@ class VehicleLogbookForm extends AbstractForm {
|
|
|
17827
17798
|
*/
|
|
17828
17799
|
constructor(logbook, logbooks) {
|
|
17829
17800
|
super({
|
|
17830
|
-
description: new
|
|
17831
|
-
isPersonal: new
|
|
17832
|
-
date: new
|
|
17833
|
-
odometerStart: new
|
|
17834
|
-
odometerEnd: new
|
|
17835
|
-
business: new
|
|
17801
|
+
description: new UntypedFormControl(logbook.description, [Validators.required, Validators.maxLength(VehicleLogbookForm.maxDescriptionLength)]),
|
|
17802
|
+
isPersonal: new UntypedFormControl(logbook.isPersonal),
|
|
17803
|
+
date: new UntypedFormControl(logbook.date, Validators.required),
|
|
17804
|
+
odometerStart: new UntypedFormControl(logbook.odometerStart, Validators.required),
|
|
17805
|
+
odometerEnd: new UntypedFormControl(logbook.odometerEnd, Validators.required),
|
|
17806
|
+
business: new UntypedFormControl(logbook.business)
|
|
17836
17807
|
}, logbook);
|
|
17837
17808
|
this.logbook = logbook;
|
|
17838
17809
|
this.logbooks = logbooks;
|
|
@@ -17890,21 +17861,20 @@ var FormValidationsEnum;
|
|
|
17890
17861
|
*/
|
|
17891
17862
|
class TransactionBaseForm extends AbstractForm {
|
|
17892
17863
|
constructor(transaction, registeredForGst, controls = {}) {
|
|
17893
|
-
var _a;
|
|
17894
17864
|
super(Object.assign({
|
|
17895
|
-
chartAccounts: new
|
|
17896
|
-
claimPercent: new
|
|
17897
|
-
amount: new
|
|
17898
|
-
amountWithGST: new
|
|
17899
|
-
isGST: new
|
|
17900
|
-
gstAmount: new
|
|
17901
|
-
date: new
|
|
17902
|
-
description: new
|
|
17865
|
+
chartAccounts: new UntypedFormControl(transaction.chartAccounts, [Validators.required, autocompleteValidator()]),
|
|
17866
|
+
claimPercent: new UntypedFormControl({ value: transaction.claimPercent, disabled: true }, [Validators.required, Validators.min(0), Validators.max(100)]),
|
|
17867
|
+
amount: new UntypedFormControl(transaction.amount, Validators.required),
|
|
17868
|
+
amountWithGST: new UntypedFormControl(transaction.amountWithGst, Validators.required),
|
|
17869
|
+
isGST: new UntypedFormControl({ value: transaction.isGST, disabled: !transaction.chartAccounts?.isGST || !registeredForGst }),
|
|
17870
|
+
gstAmount: new UntypedFormControl({ value: transaction.gstAmount, disabled: true }, Validators.required),
|
|
17871
|
+
date: new UntypedFormControl(transaction.date, [Validators.required]),
|
|
17872
|
+
description: new UntypedFormControl(transaction.description, Validators.maxLength(FormValidationsEnum.TEXT_MAX_LENGTH)),
|
|
17903
17873
|
// @TODO Alex: refactor (TT-1996)
|
|
17904
|
-
file: new
|
|
17874
|
+
file: new UntypedFormControl(transaction['receipt'], [
|
|
17905
17875
|
FileValidator.fileExtensions(DOCUMENT_FILE_TYPES.all), FileValidator.fileMaxSize(+FormValidationsEnum.FILE_MAX_SIZE)
|
|
17906
17876
|
]),
|
|
17907
|
-
property: new
|
|
17877
|
+
property: new UntypedFormControl({ value: transaction.property, disabled: transaction.chartAccounts }),
|
|
17908
17878
|
}, controls), transaction);
|
|
17909
17879
|
this.registeredForGst = registeredForGst;
|
|
17910
17880
|
this.watchChartAccounts();
|
|
@@ -17965,14 +17935,13 @@ class TransactionBaseForm extends AbstractForm {
|
|
|
17965
17935
|
* can be adjusted only for property/sole expenses
|
|
17966
17936
|
*/
|
|
17967
17937
|
updateClaimPercent(chartAccounts) {
|
|
17968
|
-
var _a;
|
|
17969
17938
|
if (chartAccounts.isClaimPercentEditable()) {
|
|
17970
17939
|
this.get('claimPercent').enable();
|
|
17971
17940
|
}
|
|
17972
17941
|
// property claim (ownership% x shared%) for property expenses, taxable percent for others
|
|
17973
17942
|
let claimPercent = chartAccounts.taxablePercent;
|
|
17974
17943
|
if (chartAccounts.isPropertyExpense() && chartAccounts.id !== ChartAccountsListEnum.PLATFORM_FEES) {
|
|
17975
|
-
claimPercent *=
|
|
17944
|
+
claimPercent *= this.value.property?.claimCoefficient;
|
|
17976
17945
|
}
|
|
17977
17946
|
this.get('claimPercent').setValue(claimPercent);
|
|
17978
17947
|
}
|
|
@@ -17986,8 +17955,8 @@ var MessagesEnum;
|
|
|
17986
17955
|
class TransactionForm extends TransactionBaseForm {
|
|
17987
17956
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
|
17988
17957
|
super(transaction, registeredForGst, Object.assign(controls, {
|
|
17989
|
-
transactions: new
|
|
17990
|
-
source: new
|
|
17958
|
+
transactions: new UntypedFormArray([]),
|
|
17959
|
+
source: new UntypedFormControl(transaction.source || TransactionSourceEnum.BANK_TRANSACTION, Validators.required)
|
|
17991
17960
|
}));
|
|
17992
17961
|
this.get('date').addValidators([currentFinYearValidator()]);
|
|
17993
17962
|
// convert child transactions to controls
|
|
@@ -18009,10 +17978,10 @@ class TransactionForm extends TransactionBaseForm {
|
|
|
18009
17978
|
}
|
|
18010
17979
|
}
|
|
18011
17980
|
addTransactionControl(transaction = plainToClass(Transaction, {})) {
|
|
18012
|
-
const formGroup = new
|
|
18013
|
-
id: new
|
|
18014
|
-
chartAccounts: new
|
|
18015
|
-
amount: new
|
|
17981
|
+
const formGroup = new UntypedFormGroup({
|
|
17982
|
+
id: new UntypedFormControl(transaction.id),
|
|
17983
|
+
chartAccounts: new UntypedFormControl(transaction.chartAccounts, [Validators.required, autocompleteValidator()]),
|
|
17984
|
+
amount: new UntypedFormControl(transaction.amount, [Validators.required]),
|
|
18016
17985
|
});
|
|
18017
17986
|
this.get('transactions').push(formGroup);
|
|
18018
17987
|
}
|
|
@@ -18024,18 +17993,15 @@ class TransactionForm extends TransactionBaseForm {
|
|
|
18024
17993
|
* Adjustments inherit most of the fields from parent transaction
|
|
18025
17994
|
*/
|
|
18026
17995
|
buildTransactions(transaction) {
|
|
18027
|
-
return this.get('transactions').value.map((childTransaction) => {
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18035
|
-
|
|
18036
|
-
property: transaction.property
|
|
18037
|
-
}, this.model.transactions.find((transaction) => transaction.id === childTransaction['id']) || {}, childTransaction);
|
|
18038
|
-
});
|
|
17996
|
+
return this.get('transactions').value.map((childTransaction) => Object.assign({
|
|
17997
|
+
description: childTransaction.chartAccounts?.name,
|
|
17998
|
+
date: transaction.date,
|
|
17999
|
+
claimPercent: (transaction.claimPercent * childTransaction.chartAccounts?.taxablePercent) / 100,
|
|
18000
|
+
source: TransactionSourceEnum.BANK_TRANSACTION,
|
|
18001
|
+
type: childTransaction.chartAccounts?.isExpense() ? TransactionTypeEnum.DEBIT : TransactionTypeEnum.CREDIT,
|
|
18002
|
+
incomeSource: transaction.incomeSource,
|
|
18003
|
+
property: transaction.property
|
|
18004
|
+
}, this.model.transactions.find((transaction) => transaction.id === childTransaction['id']) || {}, childTransaction));
|
|
18039
18005
|
}
|
|
18040
18006
|
submit(data = {}) {
|
|
18041
18007
|
return super.submit(Object.assign(data, { transactions: this.buildTransactions(this.currentValue) }), true);
|
|
@@ -18082,22 +18048,21 @@ class WorkTransactionForm extends TransactionForm {
|
|
|
18082
18048
|
|
|
18083
18049
|
class WorkIncomeForm extends WorkTransactionForm {
|
|
18084
18050
|
constructor(transaction, registeredForGst, allocations) {
|
|
18085
|
-
var _a;
|
|
18086
18051
|
// for work income we need to show netAmount instead of amount (because some adjustments are included in amount)
|
|
18087
18052
|
transaction.amount = transaction.netAmount;
|
|
18088
18053
|
super(transaction, registeredForGst, allocations, {
|
|
18089
|
-
tax: new
|
|
18054
|
+
tax: new UntypedFormControl({
|
|
18090
18055
|
value: transaction.tax,
|
|
18091
18056
|
disabled: !transaction.chartAccounts || transaction.chartAccounts.isNRAS(),
|
|
18092
18057
|
}, Validators.required),
|
|
18093
|
-
incomeSource: new
|
|
18058
|
+
incomeSource: new UntypedFormControl(transaction.incomeSource, [Validators.required, autocompleteValidator()]),
|
|
18094
18059
|
});
|
|
18095
18060
|
// forbid to edit some fields for allocated transaction
|
|
18096
18061
|
if (allocations.length) {
|
|
18097
18062
|
this.get('chartAccounts').disable();
|
|
18098
18063
|
}
|
|
18099
18064
|
// adjustments allowed only for salary
|
|
18100
|
-
if (!
|
|
18065
|
+
if (!transaction.chartAccounts?.isSalary()) {
|
|
18101
18066
|
this.get('transactions').disable();
|
|
18102
18067
|
}
|
|
18103
18068
|
// amount changes are not available for transactions with allocations or during allocate process
|
|
@@ -18153,7 +18118,7 @@ class WorkIncomeForm extends WorkTransactionForm {
|
|
|
18153
18118
|
*/
|
|
18154
18119
|
getAmount() {
|
|
18155
18120
|
return this.get('amount').value - new Collection(this.currentValue.transactions)
|
|
18156
|
-
.filter((t) =>
|
|
18121
|
+
.filter((t) => t.chartAccounts?.isSalaryIncluded())
|
|
18157
18122
|
.sumBy('amount');
|
|
18158
18123
|
}
|
|
18159
18124
|
submit(data = {}) {
|
|
@@ -18183,9 +18148,9 @@ class DepreciationForm extends TransactionBaseForm {
|
|
|
18183
18148
|
constructor(depreciation, registeredForGst) {
|
|
18184
18149
|
super(depreciation, registeredForGst);
|
|
18185
18150
|
this.get('claimPercent').setValue(depreciation.currentYearForecast.claimPercent);
|
|
18186
|
-
this.addControl('isCloseBalanceCorrect', new
|
|
18187
|
-
this.addControl('closeBalance', new
|
|
18188
|
-
this.addControl('financialYear', new
|
|
18151
|
+
this.addControl('isCloseBalanceCorrect', new UntypedFormControl(true));
|
|
18152
|
+
this.addControl('closeBalance', new UntypedFormControl({ value: depreciation.closeBalance || 0, disabled: true }, Validators.required));
|
|
18153
|
+
this.addControl('financialYear', new UntypedFormControl(depreciation.financialYear || new FinancialYear().year));
|
|
18189
18154
|
// forbid to change chartAccounts/claimPercent for existing depreciations
|
|
18190
18155
|
if (depreciation.id) {
|
|
18191
18156
|
this.get('chartAccounts').disable({ emitEvent: false });
|
|
@@ -18221,4 +18186,4 @@ class DepreciationForm extends TransactionBaseForm {
|
|
|
18221
18186
|
*/
|
|
18222
18187
|
|
|
18223
18188
|
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AlphabetColorsEnum, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
18224
|
-
//# sourceMappingURL=taxtank-core.
|
|
18189
|
+
//# sourceMappingURL=taxtank-core.mjs.map
|