taxtank-core 0.32.15 → 0.32.17
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/esm2022/lib/collections/collection.mjs +9 -3
- package/esm2022/lib/collections/property/index.mjs +2 -1
- package/esm2022/lib/collections/property/property-category-movement.collection.mjs +12 -4
- package/esm2022/lib/collections/property/property-valuation.collection.mjs +4 -0
- package/esm2022/lib/collections/property/property.collection.mjs +31 -33
- package/esm2022/lib/db/Models/bank/bank-transaction.mjs +1 -1
- package/esm2022/lib/db/Models/firm/client-movement.mjs +3 -3
- package/esm2022/lib/db/Models/property/property.mjs +1 -1
- package/esm2022/lib/forms/budget/budget.form.mjs +1 -2
- package/esm2022/lib/forms/property/index.mjs +5 -1
- package/esm2022/lib/forms/property/property-add.form.mjs +69 -0
- package/esm2022/lib/forms/property/property-category-movement-form.mjs +21 -0
- package/esm2022/lib/forms/property/property-forecast.form.mjs +29 -0
- package/esm2022/lib/forms/property/property-share.form.mjs +16 -0
- package/esm2022/lib/forms/property/property-valuation.form.mjs +5 -3
- package/esm2022/lib/models/bank/bank-transaction.mjs +1 -2
- package/esm2022/lib/models/budget/budget.mjs +4 -6
- package/esm2022/lib/models/client/client-movement.mjs +3 -3
- package/esm2022/lib/models/depreciation/depreciation.mjs +1 -1
- package/esm2022/lib/models/endpoint/endpoints.const.mjs +10 -12
- package/esm2022/lib/models/event/app-event-type.enum.mjs +55 -57
- package/esm2022/lib/models/property/index.mjs +1 -2
- package/esm2022/lib/models/property/property-category-movement.mjs +5 -1
- package/esm2022/lib/models/property/property-valuation.mjs +1 -4
- package/esm2022/lib/models/property/property.mjs +15 -26
- package/esm2022/lib/models/transaction/transaction.mjs +1 -1
- package/esm2022/lib/services/data.service.mjs +2 -3
- package/esm2022/lib/services/event/sse.service.mjs +2 -2
- package/esm2022/lib/services/http/address/address.service.mjs +2 -2
- package/esm2022/lib/services/http/bank/bank-account/bank-account.service.mjs +8 -7
- package/esm2022/lib/services/http/bank/bank-connection/bank-connection.service.mjs +11 -20
- package/esm2022/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +11 -6
- package/esm2022/lib/services/http/bank/bank.service.mjs +1 -2
- package/esm2022/lib/services/http/bank/basiq/basiq.service.mjs +7 -7
- package/esm2022/lib/services/http/budget/budget.service.mjs +1 -2
- package/esm2022/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +1 -2
- package/esm2022/lib/services/http/chat/chat.service.mjs +11 -13
- package/esm2022/lib/services/http/chat/message-document.service.mjs +13 -9
- package/esm2022/lib/services/http/chat/message.service.mjs +9 -41
- package/esm2022/lib/services/http/client/capital-gain/annual-client-details.service.mjs +1 -2
- package/esm2022/lib/services/http/depreciation/depreciation.service.mjs +6 -5
- package/esm2022/lib/services/http/document/document.service.mjs +1 -2
- package/esm2022/lib/services/http/file/file.service.mjs +1 -2
- package/esm2022/lib/services/http/firm/client-income/client-income-types.service.mjs +1 -2
- package/esm2022/lib/services/http/firm/client-invite/client-invite.service.mjs +17 -31
- package/esm2022/lib/services/http/firm/client-movement/client-movement.service.mjs +21 -25
- package/esm2022/lib/services/http/firm/firm.service.mjs +2 -2
- package/esm2022/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +1 -1
- package/esm2022/lib/services/http/holding/holding-sale.service.mjs +1 -2
- package/esm2022/lib/services/http/holding/holding-type.service.mjs +1 -2
- package/esm2022/lib/services/http/holding/holding.service.mjs +12 -8
- package/esm2022/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +12 -7
- package/esm2022/lib/services/http/income-source/income-source.service.mjs +12 -7
- package/esm2022/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +12 -10
- package/esm2022/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +12 -10
- package/esm2022/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +1 -1
- package/esm2022/lib/services/http/loan/loan.service.mjs +14 -9
- package/esm2022/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +1 -2
- package/esm2022/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +6 -4
- package/esm2022/lib/services/http/property/property-document/property-document.service.mjs +2 -28
- package/esm2022/lib/services/http/property/property-share/property-share.service.mjs +12 -7
- package/esm2022/lib/services/http/property/property-valuation/property-valuation.service.mjs +5 -16
- package/esm2022/lib/services/http/property/property.service.mjs +26 -50
- package/esm2022/lib/services/http/rest/rest-old.service.mjs +13 -19
- package/esm2022/lib/services/http/rest/rest.service.mjs +53 -34
- package/esm2022/lib/services/http/service-notification/service-notification.service.mjs +16 -18
- package/esm2022/lib/services/http/setup-item/setup-item.service.mjs +1 -2
- package/esm2022/lib/services/http/sole/bas-report/bas-report.service.mjs +1 -2
- package/esm2022/lib/services/http/sole/sole-business/sole-business.service.mjs +2 -4
- package/esm2022/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +1 -2
- package/esm2022/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +1 -2
- package/esm2022/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +12 -8
- package/esm2022/lib/services/http/sole/sole-contact/sole-contact.service.mjs +1 -2
- package/esm2022/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +7 -7
- package/esm2022/lib/services/http/sole/sole-details/sole-details.service.mjs +2 -2
- package/esm2022/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +12 -9
- package/esm2022/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +1 -2
- package/esm2022/lib/services/http/subscription/service-payment/service-payment.service.mjs +1 -2
- package/esm2022/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +10 -27
- package/esm2022/lib/services/http/subscription/service-price/service-price.service.mjs +1 -2
- package/esm2022/lib/services/http/subscription/service-product/service-product.service.mjs +1 -2
- package/esm2022/lib/services/http/subscription/service-subscription/subscription.service.mjs +11 -28
- package/esm2022/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +12 -7
- package/esm2022/lib/services/http/tax-review/tax-review.service.mjs +11 -6
- package/esm2022/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
- package/esm2022/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +1 -2
- package/esm2022/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +11 -6
- package/esm2022/lib/services/http/transaction/transaction.service.mjs +6 -7
- package/esm2022/lib/services/http/tutorial-video/tutorial-video.service.mjs +1 -1
- package/esm2022/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +1 -2
- package/esm2022/lib/services/http/user/user-event-type/user-event-type.service.mjs +1 -2
- package/esm2022/lib/services/http/user/user.service.mjs +20 -17
- package/esm2022/lib/services/http/vehicle/vehicle-claim-details.service.mjs +5 -6
- package/esm2022/lib/services/http/vehicle/vehicle-claim.service.mjs +1 -1
- package/esm2022/lib/services/property/property-calculation/property-calculation.service.mjs +2 -3
- package/fesm2022/taxtank-core.mjs +748 -726
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/collections/account-setup-item.collection.d.ts.map +1 -0
- package/lib/collections/allocation-group.collection.d.ts.map +1 -0
- package/lib/collections/allocation-rule.collection.d.ts.map +1 -0
- package/lib/collections/asset-sale.collection.d.ts.map +1 -0
- package/lib/collections/bank-account.collection.d.ts.map +1 -0
- package/lib/collections/bank-transaction.collection.d.ts.map +1 -0
- package/lib/collections/chart-accounts.collection.d.ts.map +1 -0
- package/lib/collections/chat/chat.collection.d.ts.map +1 -0
- package/lib/collections/chat/index.d.ts.map +1 -0
- package/lib/collections/chat/message-document.collection.d.ts.map +1 -0
- package/lib/collections/chat/message.collection.d.ts.map +1 -0
- package/lib/collections/client-invite.collection.d.ts.map +1 -0
- package/lib/collections/client-movement.collection.d.ts.map +1 -0
- package/lib/collections/client-portfolio-report.collection.d.ts.map +1 -0
- package/lib/collections/client.collection.d.ts.map +1 -0
- package/lib/collections/collection-dictionary.d.ts.map +1 -0
- package/lib/collections/collection.d.ts +2 -1
- package/lib/collections/collection.d.ts.map +1 -0
- package/lib/collections/depreciation-forecast.collection.d.ts.map +1 -0
- package/lib/collections/depreciation.collection.d.ts.map +1 -0
- package/lib/collections/employee.collection.d.ts.map +1 -0
- package/lib/collections/exportable.collection.d.ts.map +1 -0
- package/lib/collections/holding/holding-sale.collection.d.ts.map +1 -0
- package/lib/collections/holding/holding-type.collection.d.ts.map +1 -0
- package/lib/collections/holding/holding.collection.d.ts.map +1 -0
- package/lib/collections/holding/index.d.ts.map +1 -0
- package/lib/collections/income-source/income-source-forecast.collection.d.ts.map +1 -0
- package/lib/collections/income-source/income-source.collection.d.ts.map +1 -0
- package/lib/collections/income-source/index.d.ts.map +1 -0
- package/lib/collections/index.d.ts.map +1 -0
- package/lib/collections/loan/index.d.ts.map +1 -0
- package/lib/collections/loan/loan-payment.collection.d.ts.map +1 -0
- package/lib/collections/loan/loan.collection.d.ts.map +1 -0
- package/lib/collections/property/index.d.ts +1 -0
- package/lib/collections/property/index.d.ts.map +1 -0
- package/lib/collections/property/property-category-movement.collection.d.ts +5 -1
- package/lib/collections/property/property-category-movement.collection.d.ts.map +1 -0
- package/lib/collections/property/property-sale/index.d.ts.map +1 -0
- package/lib/collections/property/property-sale/property-sale-tax-exemption-meta-field.collection.d.ts.map +1 -0
- package/lib/collections/property/property-sale/property-sale.collection.d.ts.map +1 -0
- package/lib/collections/property/property-share.collection.d.ts.map +1 -0
- package/lib/collections/property/property-valuation.collection.d.ts +4 -0
- package/lib/collections/property/property-valuation.collection.d.ts.map +1 -0
- package/lib/collections/property/property.collection.d.ts +12 -16
- package/lib/collections/property/property.collection.d.ts.map +1 -0
- package/lib/collections/report/depreciation/depreciation-lvp-report-item.collection.d.ts.map +1 -0
- package/lib/collections/report/depreciation/depreciation-report-item.collection.d.ts.map +1 -0
- package/lib/collections/report/index.d.ts.map +1 -0
- package/lib/collections/report/property/property-report-item-depreciation.collection.d.ts.map +1 -0
- package/lib/collections/report/property/property-report-item-transaction.collection.d.ts.map +1 -0
- package/lib/collections/report/property/property-report-item.collection.d.ts.map +1 -0
- package/lib/collections/report/vehicle-expense/vehicle-expense.collection.d.ts.map +1 -0
- package/lib/collections/sole/index.d.ts.map +1 -0
- package/lib/collections/sole/sole-business-losses.collection.d.ts.map +1 -0
- package/lib/collections/sole/sole-invoice-item.collection.d.ts.map +1 -0
- package/lib/collections/sole/sole-invoice.collection.d.ts.map +1 -0
- package/lib/collections/subscription/index.d.ts.map +1 -0
- package/lib/collections/subscription/service-price.collection.d.ts.map +1 -0
- package/lib/collections/subscription/service-product.collection.d.ts.map +1 -0
- package/lib/collections/subscription/service-subscription.collection.d.ts.map +1 -0
- package/lib/collections/subscription/subscription-item.collection.d.ts.map +1 -0
- package/lib/collections/tax-review.collection.d.ts.map +1 -0
- package/lib/collections/tax-summary/index.d.ts.map +1 -0
- package/lib/collections/tax-summary/report-item.collection.d.ts.map +1 -0
- package/lib/collections/tax-summary/tax-return-categories.const.d.ts.map +1 -0
- package/lib/collections/transaction/index.d.ts.map +1 -0
- package/lib/collections/transaction/transaction-allocation.collection.d.ts.map +1 -0
- package/lib/collections/transaction/transaction.collection.d.ts.map +1 -0
- package/lib/collections/user-event-setting.collection.d.ts.map +1 -0
- package/lib/collections/user-event-type-collection.d.ts.map +1 -0
- package/lib/collections/vehicle/best-vehicle-logbook.collection.d.ts.map +1 -0
- package/lib/collections/vehicle/index.d.ts.map +1 -0
- package/lib/collections/vehicle/vehicle-claim.collection.d.ts.map +1 -0
- package/lib/collections/vehicle/vehicle-logbook.collection.d.ts.map +1 -0
- package/lib/db/Enums/address-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.d.ts.map +1 -0
- package/lib/db/Enums/allocation-rule-condition-field.enum.d.ts.map +1 -0
- package/lib/db/Enums/allocation-rule-condition-operator.enum.d.ts.map +1 -0
- package/lib/db/Enums/allocation-rule-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/annual-frequency.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/bank-account-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/bank-account-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/bank-connection-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/bank-popular.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/bank-provider.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/bank-transaction-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/index.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/index.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-bank-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-frequency.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-interest-type-label.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-interest-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-payout-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-repayment-frequency.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-repayment-type-label.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-repayment-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/bank/loan/loan-vehicle-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-category.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-heading-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-heading-vehicle-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-holding-untaxed-income-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-invoice-expense.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-keep-sign.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-meta-field-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-salary-adjustments-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-salary-included-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/chart-accounts-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/chart-accounts/index.d.ts.map +1 -0
- package/lib/db/Enums/chat-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/client-details-medicare-exemption.enum.d.ts.map +1 -0
- package/lib/db/Enums/client-details-work-depreciation-calculation.enum.d.ts.map +1 -0
- package/lib/db/Enums/client-details-working-holiday-maker.enum.d.ts.map +1 -0
- package/lib/db/Enums/client-invite-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/client-invite-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/depreciation-calculation-percent.enum.d.ts.map +1 -0
- package/lib/db/Enums/depreciation-calculation.enum.d.ts.map +1 -0
- package/lib/db/Enums/depreciation-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/depreciation-write-off-amount.enum.d.ts.map +1 -0
- package/lib/db/Enums/document-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/file-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/firm-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/holding/holding-type-category.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source/income-source-forecast-trust-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source/income-source-type-list-holding.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source/income-source-type-list-other.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source/income-source-type-list-sole.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source/income-source-type-list-work.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source/income-source-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/income-source/index.d.ts.map +1 -0
- package/lib/db/Enums/index.d.ts.map +1 -0
- package/lib/db/Enums/invite-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/phone-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/property/property-category-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/property/property-depreciation-calculation.enum.d.ts.map +1 -0
- package/lib/db/Enums/property/property-sale/tax-exemption-meta-field.enum.d.ts.map +1 -0
- package/lib/db/Enums/property/property-sale/tax-exemption.enum.d.ts.map +1 -0
- package/lib/db/Enums/property/property-share-access.enum.d.ts.map +1 -0
- package/lib/db/Enums/property/property-share-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/registration-invite-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/salary-forecast-frequency.enum.d.ts.map +1 -0
- package/lib/db/Enums/service-notification-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/service-notification-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/setup-item-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/sole-depreciation-method.enum.d.ts.map +1 -0
- package/lib/db/Enums/sole-invoice-statuses.enum.d.ts.map +1 -0
- package/lib/db/Enums/sole-invoice-tax-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/sole-invoice-template-tax-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/spare-document-spare-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-payment-method-card-brand.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-payment-method-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-payment-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-price-recurring-interval.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-price-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-product-id.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-product-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/subscription/service-subscription-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/tank-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-calculation-medicare-exemption.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-calculation-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-return/index.d.ts.map +1 -0
- package/lib/db/Enums/tax-return/tax-return-category-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-return/tax-return-category-section.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-return/tax-return-item.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-review-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-summary-list.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-summary-section.enum.d.ts.map +1 -0
- package/lib/db/Enums/tax-summary-tax-summary.enum.d.ts.map +1 -0
- package/lib/db/Enums/ticket-feedback.enum.d.ts.map +1 -0
- package/lib/db/Enums/ticket-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/ticket-types.enum.d.ts.map +1 -0
- package/lib/db/Enums/transaction-operation.enum.d.ts.map +1 -0
- package/lib/db/Enums/transaction-source.enum.d.ts.map +1 -0
- package/lib/db/Enums/transaction-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-client-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-employee-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-frequency.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-event-type-user-type.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-medicare-exemption.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-roles.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-status.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-title.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-work-depreciation-calculation.enum.d.ts.map +1 -0
- package/lib/db/Enums/user-working-holiday-maker.enum.d.ts.map +1 -0
- package/lib/db/Enums/vehicle-claim-details-method.enum.d.ts.map +1 -0
- package/lib/db/Enums/vehicle-logbook-purpose.enum.d.ts.map +1 -0
- package/lib/db/Models/abstract-model.d.ts.map +1 -0
- package/lib/db/Models/address.d.ts.map +1 -0
- package/lib/db/Models/bank/bank-account-balance.d.ts.map +1 -0
- package/lib/db/Models/bank/bank-account-property.d.ts.map +1 -0
- package/lib/db/Models/bank/bank-account.d.ts.map +1 -0
- package/lib/db/Models/bank/bank-connection.d.ts.map +1 -0
- package/lib/db/Models/bank/bank-transaction-import.d.ts.map +1 -0
- package/lib/db/Models/bank/bank-transaction.d.ts +1 -1
- package/lib/db/Models/bank/bank-transaction.d.ts.map +1 -0
- package/lib/db/Models/bank/bank.d.ts.map +1 -0
- package/lib/db/Models/bank/basiq-job-step.enum.d.ts.map +1 -0
- package/lib/db/Models/bank/basiq-job.d.ts.map +1 -0
- package/lib/db/Models/budget/budget-rule.d.ts.map +1 -0
- package/lib/db/Models/budget/budget.d.ts.map +1 -0
- package/lib/db/Models/budget/index.d.ts.map +1 -0
- package/lib/db/Models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
- package/lib/db/Models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
- package/lib/db/Models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
- package/lib/db/Models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
- package/lib/db/Models/chart-accounts/chart-accounts.d.ts.map +1 -0
- package/lib/db/Models/client/annual-client-details.d.ts.map +1 -0
- package/lib/db/Models/client/client-details.d.ts.map +1 -0
- package/lib/db/Models/client/client-income-types.d.ts.map +1 -0
- package/lib/db/Models/client/index.d.ts.map +1 -0
- package/lib/db/Models/client/occupation.d.ts.map +1 -0
- package/lib/db/Models/country.d.ts.map +1 -0
- package/lib/db/Models/depreciation/depreciation-capital-project.d.ts.map +1 -0
- package/lib/db/Models/depreciation/depreciation-forecast.d.ts.map +1 -0
- package/lib/db/Models/depreciation/depreciation.d.ts.map +1 -0
- package/lib/db/Models/document/document-base.d.ts.map +1 -0
- package/lib/db/Models/document/document-folder.d.ts.map +1 -0
- package/lib/db/Models/document/document.d.ts.map +1 -0
- package/lib/db/Models/document/property-document.d.ts.map +1 -0
- package/lib/db/Models/file.d.ts.map +1 -0
- package/lib/db/Models/firm/accountant/tax-review.d.ts.map +1 -0
- package/lib/db/Models/firm/accountant/ticket.d.ts.map +1 -0
- package/lib/db/Models/firm/chat.d.ts.map +1 -0
- package/lib/db/Models/firm/client-invite.d.ts.map +1 -0
- package/lib/db/Models/firm/client-movement.d.ts +2 -2
- package/lib/db/Models/firm/client-movement.d.ts.map +1 -0
- package/lib/db/Models/firm/employee-invite.d.ts.map +1 -0
- package/lib/db/Models/firm/firm-invite.d.ts.map +1 -0
- package/lib/db/Models/firm/firm.d.ts.map +1 -0
- package/lib/db/Models/firm/message-document.d.ts.map +1 -0
- package/lib/db/Models/firm/message.d.ts.map +1 -0
- package/lib/db/Models/holding/holding-sale.d.ts.map +1 -0
- package/lib/db/Models/holding/holding-type-exchange.d.ts.map +1 -0
- package/lib/db/Models/holding/holding-type.d.ts.map +1 -0
- package/lib/db/Models/holding/holding.d.ts.map +1 -0
- package/lib/db/Models/holding/index.d.ts.map +1 -0
- package/lib/db/Models/incomeSource/income-source-forecast.d.ts.map +1 -0
- package/lib/db/Models/incomeSource/income-source-type.d.ts.map +1 -0
- package/lib/db/Models/incomeSource/income-source.d.ts.map +1 -0
- package/lib/db/Models/incomeSource/salary-forecast.d.ts.map +1 -0
- package/lib/db/Models/index.d.ts.map +1 -0
- package/lib/db/Models/loan/borrowing-expense-loan.d.ts.map +1 -0
- package/lib/db/Models/loan/borrowing-expense.d.ts.map +1 -0
- package/lib/db/Models/loan/loan-payout.d.ts.map +1 -0
- package/lib/db/Models/loan/loan.d.ts.map +1 -0
- package/lib/db/Models/observable-model.d.ts.map +1 -0
- package/lib/db/Models/phone.d.ts.map +1 -0
- package/lib/db/Models/property/borrowing-report.d.ts.map +1 -0
- package/lib/db/Models/property/property-category-movement.d.ts.map +1 -0
- package/lib/db/Models/property/property-category.d.ts.map +1 -0
- package/lib/db/Models/property/property-forecast.d.ts.map +1 -0
- package/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
- package/lib/db/Models/property/property-sale/property-sale.d.ts.map +1 -0
- package/lib/db/Models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
- package/lib/db/Models/property/property-sale/tax-exemption.d.ts.map +1 -0
- package/lib/db/Models/property/property-share.d.ts.map +1 -0
- package/lib/db/Models/property/property-subscription.d.ts.map +1 -0
- package/lib/db/Models/property/property-valuation.d.ts.map +1 -0
- package/lib/db/Models/property/property.d.ts +1 -0
- package/lib/db/Models/property/property.d.ts.map +1 -0
- package/lib/db/Models/service-notification.d.ts.map +1 -0
- package/lib/db/Models/setup-item.d.ts.map +1 -0
- package/lib/db/Models/sole/bas-report.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-business-activity.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-business-allocation.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-business-loss.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-business.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-contact.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-depreciation-method.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-details.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-forecast.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-invoice-item.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-invoice-template.d.ts.map +1 -0
- package/lib/db/Models/sole/sole-invoice.d.ts.map +1 -0
- package/lib/db/Models/spare/spare-document-category.d.ts.map +1 -0
- package/lib/db/Models/spare/spare-document.d.ts.map +1 -0
- package/lib/db/Models/subscription/service-payment-method.d.ts.map +1 -0
- package/lib/db/Models/subscription/service-payment.d.ts.map +1 -0
- package/lib/db/Models/subscription/service-price.d.ts.map +1 -0
- package/lib/db/Models/subscription/service-product.d.ts.map +1 -0
- package/lib/db/Models/subscription/service-subscription-item.d.ts.map +1 -0
- package/lib/db/Models/subscription/service-subscription.d.ts.map +1 -0
- package/lib/db/Models/tax-calculation.d.ts.map +1 -0
- package/lib/db/Models/tax-return/index.d.ts.map +1 -0
- package/lib/db/Models/tax-return/tax-return-category.d.ts.map +1 -0
- package/lib/db/Models/tax-return/tax-return-item.d.ts.map +1 -0
- package/lib/db/Models/tax-return/tax-return.d.ts.map +1 -0
- package/lib/db/Models/transaction/allocation-rule-condition.d.ts.map +1 -0
- package/lib/db/Models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
- package/lib/db/Models/transaction/allocation-rule-transaction.d.ts.map +1 -0
- package/lib/db/Models/transaction/allocation-rule.d.ts.map +1 -0
- package/lib/db/Models/transaction/transaction-allocation.d.ts.map +1 -0
- package/lib/db/Models/transaction/transaction-base.d.ts.map +1 -0
- package/lib/db/Models/transaction/transaction-meta-field.d.ts.map +1 -0
- package/lib/db/Models/transaction/transaction.d.ts.map +1 -0
- package/lib/db/Models/user/employee-details.d.ts.map +1 -0
- package/lib/db/Models/user/registration-invite.d.ts.map +1 -0
- package/lib/db/Models/user/user-event-setting.d.ts.map +1 -0
- package/lib/db/Models/user/user-event-type-category.d.ts.map +1 -0
- package/lib/db/Models/user/user-event-type.d.ts.map +1 -0
- package/lib/db/Models/user/user-event.d.ts.map +1 -0
- package/lib/db/Models/user/user.d.ts.map +1 -0
- package/lib/db/Models/vehicle/vehicle-claim-details.d.ts.map +1 -0
- package/lib/db/Models/vehicle/vehicle-claim.d.ts.map +1 -0
- package/lib/db/Models/vehicle/vehicle-logbook.d.ts.map +1 -0
- package/lib/db/Models/vehicle/vehicle.d.ts.map +1 -0
- package/lib/db-static/chart-accounts/chart-accounts-values.d.ts.map +1 -0
- package/lib/forms/abstract.form.d.ts.map +1 -0
- package/lib/forms/address/address.form.d.ts.map +1 -0
- package/lib/forms/address/index.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-account-add-manual.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-account-allocation.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-account-import.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-account-properties.form.d.ts.map +1 -0
- package/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts.map +1 -0
- package/lib/forms/budget/budget.form.d.ts +0 -1
- package/lib/forms/budget/budget.form.d.ts.map +1 -0
- package/lib/forms/budget/index.d.ts.map +1 -0
- package/lib/forms/client/annual-client-details.form.d.ts.map +1 -0
- package/lib/forms/client/client-income-types.form.d.ts.map +1 -0
- package/lib/forms/client/index.d.ts.map +1 -0
- package/lib/forms/depreciation/depreciation.form.d.ts.map +1 -0
- package/lib/forms/depreciation/index.d.ts.map +1 -0
- package/lib/forms/document-folder/document-folder.form.d.ts.map +1 -0
- package/lib/forms/document-folder/document.form.d.ts.map +1 -0
- package/lib/forms/document-folder/index.d.ts.map +1 -0
- package/lib/forms/firm/firm.form.d.ts.map +1 -0
- package/lib/forms/firm/index.d.ts.map +1 -0
- package/lib/forms/form-validations.enum.d.ts.map +1 -0
- package/lib/forms/holding/holding-reinvest.form.d.ts.map +1 -0
- package/lib/forms/holding/holding-sale.form.d.ts.map +1 -0
- package/lib/forms/holding/holding-type.form.d.ts.map +1 -0
- package/lib/forms/holding/holding.form.d.ts.map +1 -0
- package/lib/forms/holding/index.d.ts.map +1 -0
- package/lib/forms/index.d.ts.map +1 -0
- package/lib/forms/loan/index.d.ts.map +1 -0
- package/lib/forms/loan/loan.form.d.ts.map +1 -0
- package/lib/forms/login/login.form.d.ts.map +1 -0
- package/lib/forms/phone/index.d.ts.map +1 -0
- package/lib/forms/phone/phone.form.d.ts.map +1 -0
- package/lib/forms/property/borrowing-report.form.d.ts.map +1 -0
- package/lib/forms/property/index.d.ts +4 -0
- package/lib/forms/property/index.d.ts.map +1 -0
- package/lib/forms/property/property-add.form.d.ts +16 -0
- package/lib/forms/property/property-add.form.d.ts.map +1 -0
- package/lib/forms/property/property-category-movement-form.d.ts +6 -0
- package/lib/forms/property/property-category-movement-form.d.ts.map +1 -0
- package/lib/forms/property/property-document.form.d.ts.map +1 -0
- package/lib/forms/property/property-edit.form.d.ts.map +1 -0
- package/lib/forms/property/property-forecast.form.d.ts +13 -0
- package/lib/forms/property/property-forecast.form.d.ts.map +1 -0
- package/lib/forms/property/property-sale/index.d.ts.map +1 -0
- package/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts.map +1 -0
- package/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts.map +1 -0
- package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts.map +1 -0
- package/lib/forms/property/property-share.form.d.ts +8 -0
- package/lib/forms/property/property-share.form.d.ts.map +1 -0
- package/lib/forms/property/property-valuation.form.d.ts +1 -1
- package/lib/forms/property/property-valuation.form.d.ts.map +1 -0
- package/lib/forms/register/register-client.form.d.ts.map +1 -0
- package/lib/forms/register/register-firm.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/index.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income-or-losses.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-cgt.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-interest.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-losses.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts.map +1 -0
- package/lib/forms/report/my-tax/my-tax-rent.form.d.ts.map +1 -0
- package/lib/forms/sole/bas-report.form.d.ts.map +1 -0
- package/lib/forms/sole/index.d.ts.map +1 -0
- package/lib/forms/sole/sole-business-allocations.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-business-loss.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-business.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-contact.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-depreciation-method.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-details.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-invoice-item.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-invoice-template.form.d.ts.map +1 -0
- package/lib/forms/sole/sole-invoice.form.d.ts.map +1 -0
- package/lib/forms/transaction/allocation-rule-condition.form.d.ts.map +1 -0
- package/lib/forms/transaction/allocation-rule-transaction-meta-field.form.d.ts.map +1 -0
- package/lib/forms/transaction/allocation-rule-transaction.form.d.ts.map +1 -0
- package/lib/forms/transaction/allocation-rule.form.d.ts.map +1 -0
- package/lib/forms/transaction/holding/holding-income.form.d.ts.map +1 -0
- package/lib/forms/transaction/index.d.ts.map +1 -0
- package/lib/forms/transaction/messages.enum.d.ts.map +1 -0
- package/lib/forms/transaction/sole/sole-income.form.d.ts.map +1 -0
- package/lib/forms/transaction/sole/sole-transaction.form.d.ts.map +1 -0
- package/lib/forms/transaction/transaction-base.form.d.ts.map +1 -0
- package/lib/forms/transaction/transaction.form.d.ts.map +1 -0
- package/lib/forms/transaction/work/work-expense.form.d.ts.map +1 -0
- package/lib/forms/transaction/work/work-income.form.d.ts.map +1 -0
- package/lib/forms/transaction/work/work-transaction.form.d.ts.map +1 -0
- package/lib/forms/user/client-details.form.d.ts.map +1 -0
- package/lib/forms/user/index.d.ts.map +1 -0
- package/lib/forms/user/password.form.d.ts.map +1 -0
- package/lib/forms/user/reset-password.form.d.ts.map +1 -0
- package/lib/forms/user/user-invite.form.d.ts.map +1 -0
- package/lib/forms/user/user.form.d.ts.map +1 -0
- package/lib/forms/vehicle/index.d.ts.map +1 -0
- package/lib/forms/vehicle/vehicle-claim-details.form.d.ts.map +1 -0
- package/lib/forms/vehicle/vehicle-claim.form.d.ts.map +1 -0
- package/lib/forms/vehicle/vehicle-logbook.form.d.ts.map +1 -0
- package/lib/forms/vehicle/vehicle.form.d.ts.map +1 -0
- package/lib/functions/array/index.d.ts.map +1 -0
- package/lib/functions/array/replace.d.ts.map +1 -0
- package/lib/functions/array/sort-deep.d.ts.map +1 -0
- package/lib/functions/array/sort.d.ts.map +1 -0
- package/lib/functions/array/to-array.d.ts.map +1 -0
- package/lib/functions/clone-deep.d.ts.map +1 -0
- package/lib/functions/create-date.d.ts.map +1 -0
- package/lib/functions/enum-to-list.d.ts.map +1 -0
- package/lib/functions/get-doc-icon.d.ts.map +1 -0
- package/lib/functions/mat-options-functions.d.ts.map +1 -0
- package/lib/functions/mat-sort-options.d.ts.map +1 -0
- package/lib/functions/tax-review-filter-predicate.d.ts.map +1 -0
- package/lib/interceptors/basiq-client-id.interceptor.d.ts.map +1 -0
- package/lib/interceptors/basiq-token.interceptor.d.ts.map +1 -0
- package/lib/interceptors/corelogic-interceptor.d.ts.map +1 -0
- package/lib/interceptors/financial-year-interceptor.d.ts.map +1 -0
- package/lib/interceptors/interceptors.module.d.ts.map +1 -0
- package/lib/interceptors/jwt-interceptor.d.ts.map +1 -0
- package/lib/interceptors/preloader.interceptor.d.ts.map +1 -0
- package/lib/interceptors/user-switcher-interceptor.d.ts.map +1 -0
- package/lib/interfaces/asset-entity-type.enum.d.ts.map +1 -0
- package/lib/interfaces/asset-type.enum.d.ts.map +1 -0
- package/lib/interfaces/asset.interface.d.ts.map +1 -0
- package/lib/interfaces/auth-tokens.interface.d.ts.map +1 -0
- package/lib/interfaces/chart-data.interface.d.ts.map +1 -0
- package/lib/interfaces/chart-serie.interface.d.ts.map +1 -0
- package/lib/interfaces/document.interface.d.ts.map +1 -0
- package/lib/interfaces/documentable.interface.d.ts.map +1 -0
- package/lib/interfaces/event-listener.interface.d.ts.map +1 -0
- package/lib/interfaces/expense.interface.d.ts.map +1 -0
- package/lib/interfaces/income-source-forecast.interface.d.ts.map +1 -0
- package/lib/interfaces/index.d.ts.map +1 -0
- package/lib/interfaces/mp-trackable.interface.d.ts.map +1 -0
- package/lib/interfaces/option.interface.d.ts.map +1 -0
- package/lib/interfaces/tank.interface.d.ts.map +1 -0
- package/lib/interfaces/updatable.interface.d.ts.map +1 -0
- package/lib/messages/index.d.ts.map +1 -0
- package/lib/messages/messages.enum.d.ts.map +1 -0
- package/lib/models/account-setup/account-setup-item.d.ts.map +1 -0
- package/lib/models/account-setup/account-setup-items.enum.d.ts.map +1 -0
- package/lib/models/address/address.d.ts.map +1 -0
- package/lib/models/address/country.d.ts.map +1 -0
- package/lib/models/address/index.d.ts.map +1 -0
- package/lib/models/address/states.enum.d.ts.map +1 -0
- package/lib/models/asset-sale.d.ts.map +1 -0
- package/lib/models/badge/badge-color.enum.d.ts.map +1 -0
- package/lib/models/badge/badge.d.ts.map +1 -0
- package/lib/models/bank/allocation-group.d.ts.map +1 -0
- package/lib/models/bank/bank-account-chart-data.d.ts.map +1 -0
- package/lib/models/bank/bank-account-property.d.ts.map +1 -0
- package/lib/models/bank/bank-account-types.const.d.ts.map +1 -0
- package/lib/models/bank/bank-account.d.ts.map +1 -0
- package/lib/models/bank/bank-connection.d.ts.map +1 -0
- package/lib/models/bank/bank-external-stats.d.ts.map +1 -0
- package/lib/models/bank/bank-transaction-chart-data.d.ts.map +1 -0
- package/lib/models/bank/bank-transaction-summary-fields.enum.d.ts.map +1 -0
- package/lib/models/bank/bank-transaction.d.ts +0 -1
- package/lib/models/bank/bank-transaction.d.ts.map +1 -0
- package/lib/models/bank/bank.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-config.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-connection-data.interface.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-connections-response.interface.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-job-response.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-job-step.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-job.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-token-response.interface.d.ts.map +1 -0
- package/lib/models/bank/basiq/basiq-token.d.ts.map +1 -0
- package/lib/models/bank/basiq/index.d.ts.map +1 -0
- package/lib/models/bank/index.d.ts.map +1 -0
- package/lib/models/bank/type-loan.const.d.ts.map +1 -0
- package/lib/models/borrowing-expense/borrowing-expense-loan.d.ts.map +1 -0
- package/lib/models/borrowing-expense/borrowing-expense.d.ts.map +1 -0
- package/lib/models/borrowing-expense/index.d.ts.map +1 -0
- package/lib/models/budget/budget-rule.d.ts.map +1 -0
- package/lib/models/budget/budget.d.ts.map +1 -0
- package/lib/models/budget/index.d.ts.map +1 -0
- package/lib/models/chart/chart-data.d.ts.map +1 -0
- package/lib/models/chart/chart-serie.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-categories.const.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-depreciation.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-heading.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-meta-field.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-tax-labels.enum.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts-value.d.ts.map +1 -0
- package/lib/models/chart-accounts/chart-accounts.d.ts.map +1 -0
- package/lib/models/chart-accounts/index.d.ts.map +1 -0
- package/lib/models/chat/chat-view-type.enum.d.ts.map +1 -0
- package/lib/models/chat/chat.d.ts.map +1 -0
- package/lib/models/chat/index.d.ts.map +1 -0
- package/lib/models/chat/message-document.d.ts.map +1 -0
- package/lib/models/chat/message.d.ts.map +1 -0
- package/lib/models/client/annual-client-details.d.ts.map +1 -0
- package/lib/models/client/client-details.d.ts.map +1 -0
- package/lib/models/client/client-income-types.d.ts.map +1 -0
- package/lib/models/client/client-invite.d.ts.map +1 -0
- package/lib/models/client/client-movement.d.ts +2 -2
- package/lib/models/client/client-movement.d.ts.map +1 -0
- package/lib/models/client/client-portfolio-chart-data.d.ts.map +1 -0
- package/lib/models/client/client-portfolio-report.d.ts.map +1 -0
- package/lib/models/client/index.d.ts.map +1 -0
- package/lib/models/color/alphabet-colors.enum.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-capital-project.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-forecast.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-group-item.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-group.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-group.enum.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-groups.const.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts.map +1 -0
- package/lib/models/depreciation/depreciation.d.ts.map +1 -0
- package/lib/models/depreciation/index.d.ts.map +1 -0
- package/lib/models/dictionary/dictionary.d.ts.map +1 -0
- package/lib/models/dictionary/index.d.ts.map +1 -0
- package/lib/models/document/document-api-url-prefix.enum.d.ts.map +1 -0
- package/lib/models/document/document-file-types.const.d.ts.map +1 -0
- package/lib/models/document/document-folder.d.ts.map +1 -0
- package/lib/models/document/document.d.ts.map +1 -0
- package/lib/models/document/index.d.ts.map +1 -0
- package/lib/models/employee/employee-details.d.ts.map +1 -0
- package/lib/models/employee/employee-invite.d.ts.map +1 -0
- package/lib/models/endpoint/endpoint.d.ts.map +1 -0
- package/lib/models/endpoint/endpoints.const.d.ts.map +1 -0
- package/lib/models/event/app-event-type.enum.d.ts +54 -56
- package/lib/models/event/app-event-type.enum.d.ts.map +1 -0
- package/lib/models/event/app-event.d.ts.map +1 -0
- package/lib/models/event/index.d.ts.map +1 -0
- package/lib/models/export/export-cell-type.enum.d.ts.map +1 -0
- package/lib/models/export/export-cell.d.ts.map +1 -0
- package/lib/models/export/export-data-table.d.ts.map +1 -0
- package/lib/models/export/export-format.enum.d.ts.map +1 -0
- package/lib/models/file/file.d.ts.map +1 -0
- package/lib/models/file/icons-file.enum.d.ts.map +1 -0
- package/lib/models/file/index.d.ts.map +1 -0
- package/lib/models/financial-year/financial-year.d.ts.map +1 -0
- package/lib/models/financial-year/index.d.ts.map +1 -0
- package/lib/models/financial-year/month-name-short.enum.d.ts.map +1 -0
- package/lib/models/financial-year/month-number.enum.d.ts.map +1 -0
- package/lib/models/financial-year/months.const.d.ts.map +1 -0
- package/lib/models/firm/firm.d.ts.map +1 -0
- package/lib/models/holding/holding-reinvest.d.ts.map +1 -0
- package/lib/models/holding/holding-sale.d.ts.map +1 -0
- package/lib/models/holding/holding-type-exchange.d.ts.map +1 -0
- package/lib/models/holding/holding-type.d.ts.map +1 -0
- package/lib/models/holding/holding.d.ts.map +1 -0
- package/lib/models/holding/index.d.ts.map +1 -0
- package/lib/models/income-position/income-position.d.ts.map +1 -0
- package/lib/models/income-source/income-source-chart-data.d.ts.map +1 -0
- package/lib/models/income-source/income-source-forecast.d.ts.map +1 -0
- package/lib/models/income-source/income-source-type.d.ts.map +1 -0
- package/lib/models/income-source/income-source.d.ts.map +1 -0
- package/lib/models/income-source/index.d.ts.map +1 -0
- package/lib/models/income-source/salary-forecast.d.ts.map +1 -0
- package/lib/models/income-source/sole-forecast.d.ts.map +1 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/loan/index.d.ts.map +1 -0
- package/lib/models/loan/loan-max-number-of-payments.enum.d.ts.map +1 -0
- package/lib/models/loan/loan-payment.d.ts.map +1 -0
- package/lib/models/loan/loan-payout.d.ts.map +1 -0
- package/lib/models/loan/loan.d.ts.map +1 -0
- package/lib/models/notification/index.d.ts.map +1 -0
- package/lib/models/notification/notification.d.ts.map +1 -0
- package/lib/models/pdf/pdf-orientation.enum.d.ts.map +1 -0
- package/lib/models/pdf/pdf-settings.d.ts.map +1 -0
- package/lib/models/phone/phone.d.ts.map +1 -0
- package/lib/models/property/borrowing-report.d.ts.map +1 -0
- package/lib/models/property/calculation-form-item.d.ts.map +1 -0
- package/lib/models/property/calculation-form-type.enum.d.ts.map +1 -0
- package/lib/models/property/capital-costs-itmes.const.d.ts.map +1 -0
- package/lib/models/property/corelogic-suggestion.d.ts.map +1 -0
- package/lib/models/property/index.d.ts +0 -1
- package/lib/models/property/index.d.ts.map +1 -0
- package/lib/models/property/property-category-movement.d.ts +1 -0
- package/lib/models/property/property-category-movement.d.ts.map +1 -0
- package/lib/models/property/property-category.d.ts.map +1 -0
- package/lib/models/property/property-document.d.ts.map +1 -0
- package/lib/models/property/property-equity-chart-data.d.ts.map +1 -0
- package/lib/models/property/property-equity-chart-item.d.ts.map +1 -0
- package/lib/models/property/property-equity-chart-type.enum.d.ts.map +1 -0
- package/lib/models/property/property-forecast.d.ts.map +1 -0
- package/lib/models/property/property-sale/index.d.ts.map +1 -0
- package/lib/models/property/property-sale/property-sale-cost-base.d.ts.map +1 -0
- package/lib/models/property/property-sale/property-sale-tax-exemption-meta-field.d.ts.map +1 -0
- package/lib/models/property/property-sale/property-sale.d.ts.map +1 -0
- package/lib/models/property/property-sale/tax-exemption-meta-field.d.ts.map +1 -0
- package/lib/models/property/property-sale/tax-exemption.d.ts.map +1 -0
- package/lib/models/property/property-share.d.ts.map +1 -0
- package/lib/models/property/property-subscription.d.ts.map +1 -0
- package/lib/models/property/property-valuation.d.ts +0 -1
- package/lib/models/property/property-valuation.d.ts.map +1 -0
- package/lib/models/property/property.d.ts +5 -7
- package/lib/models/property/property.d.ts.map +1 -0
- package/lib/models/registration-invite/registration-invite.d.ts.map +1 -0
- package/lib/models/report/depreciation/depreciation-lvp-asset-type.enum.d.ts.map +1 -0
- package/lib/models/report/depreciation/depreciation-lvp-report-item.d.ts.map +1 -0
- package/lib/models/report/depreciation/depreciation-report-item.d.ts.map +1 -0
- package/lib/models/report/depreciation/index.d.ts.map +1 -0
- package/lib/models/report/index.d.ts.map +1 -0
- package/lib/models/report/my-tax/ato-links.d.ts.map +1 -0
- package/lib/models/report/my-tax/index.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-income-or-losses-categories.const.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/business-type.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/loss-type.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-details/my-tax-business-details.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-cgt/cgt-exemption-and-rollover-code.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-cgt/my-tax-cgt.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-estimate/my-tax-estimate.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts.map +1 -0
- package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts.map +1 -0
- package/lib/models/report/property/index.d.ts.map +1 -0
- package/lib/models/report/property/property-report-item-depreciation.d.ts.map +1 -0
- package/lib/models/report/property/property-report-item-transaction.d.ts.map +1 -0
- package/lib/models/report/property/property-report-item.d.ts.map +1 -0
- package/lib/models/report/sole/index.d.ts.map +1 -0
- package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts.map +1 -0
- package/lib/models/report/vehicle-expense/vehicle-expense.d.ts.map +1 -0
- package/lib/models/service-subscription/index.d.ts.map +1 -0
- package/lib/models/service-subscription/module-url-list.const.d.ts.map +1 -0
- package/lib/models/service-subscription/payment-method-brand.enum.d.ts.map +1 -0
- package/lib/models/service-subscription/service-payment-method.d.ts.map +1 -0
- package/lib/models/service-subscription/service-payment.d.ts.map +1 -0
- package/lib/models/service-subscription/service-price.d.ts.map +1 -0
- package/lib/models/service-subscription/service-product-icons.enum.d.ts.map +1 -0
- package/lib/models/service-subscription/service-product-roles.const.d.ts.map +1 -0
- package/lib/models/service-subscription/service-product.d.ts.map +1 -0
- package/lib/models/service-subscription/service-promo-code-duration.enum.d.ts.map +1 -0
- package/lib/models/service-subscription/service-promo-code.d.ts.map +1 -0
- package/lib/models/service-subscription/service-subscription-item.d.ts.map +1 -0
- package/lib/models/service-subscription/service-subscription.d.ts.map +1 -0
- package/lib/models/sole/bas-report.d.ts.map +1 -0
- package/lib/models/sole/index.d.ts.map +1 -0
- package/lib/models/sole/sole-business-activity.d.ts.map +1 -0
- package/lib/models/sole/sole-business-allocation.d.ts.map +1 -0
- package/lib/models/sole/sole-business-loss-offset-rule.d.ts.map +1 -0
- package/lib/models/sole/sole-business-loss.d.ts.map +1 -0
- package/lib/models/sole/sole-business.d.ts.map +1 -0
- package/lib/models/sole/sole-contact.d.ts.map +1 -0
- package/lib/models/sole/sole-depreciation-method.d.ts.map +1 -0
- package/lib/models/sole/sole-details.d.ts.map +1 -0
- package/lib/models/sole/sole-invoice-item.d.ts.map +1 -0
- package/lib/models/sole/sole-invoice-template.d.ts.map +1 -0
- package/lib/models/sole/sole-invoice.d.ts.map +1 -0
- package/lib/models/tax-return/index.d.ts.map +1 -0
- package/lib/models/tax-return/tax-return-category.d.ts.map +1 -0
- package/lib/models/tax-return/tax-return-item.d.ts.map +1 -0
- package/lib/models/tax-return/tax-return.d.ts.map +1 -0
- package/lib/models/tax-review/tax-review.d.ts.map +1 -0
- package/lib/models/tax-summary/report-item-details.d.ts.map +1 -0
- package/lib/models/tax-summary/report-item.d.ts.map +1 -0
- package/lib/models/tax-summary/tax-summary-section.d.ts.map +1 -0
- package/lib/models/tax-summary/tax-summary-type.enum.d.ts.map +1 -0
- package/lib/models/tax-summary/tax-summary.d.ts.map +1 -0
- package/lib/models/toast/toast-type.enum.d.ts.map +1 -0
- package/lib/models/toast/toast.d.ts.map +1 -0
- package/lib/models/transaction/allocation-rule-condition.d.ts.map +1 -0
- package/lib/models/transaction/allocation-rule-transaction-meta-field.d.ts.map +1 -0
- package/lib/models/transaction/allocation-rule-transaction.d.ts.map +1 -0
- package/lib/models/transaction/allocation-rule.d.ts.map +1 -0
- package/lib/models/transaction/income-amount-type.enum.d.ts.map +1 -0
- package/lib/models/transaction/index.d.ts.map +1 -0
- package/lib/models/transaction/transaction-allocation.d.ts.map +1 -0
- package/lib/models/transaction/transaction-category.enum.d.ts.map +1 -0
- package/lib/models/transaction/transaction-meta-field.d.ts.map +1 -0
- package/lib/models/transaction/transaction.d.ts.map +1 -0
- package/lib/models/user/index.d.ts.map +1 -0
- package/lib/models/user/my-account-history-initiated-by.enum.d.ts.map +1 -0
- package/lib/models/user/my-account-history-status.enum.d.ts.map +1 -0
- package/lib/models/user/my-account-history-type.enum.d.ts.map +1 -0
- package/lib/models/user/my-account-history.d.ts.map +1 -0
- package/lib/models/user/occupation.d.ts.map +1 -0
- package/lib/models/user/user-roles.const.d.ts.map +1 -0
- package/lib/models/user/user-to-register.d.ts.map +1 -0
- package/lib/models/user/user-work-position.const.d.ts.map +1 -0
- package/lib/models/user/user.d.ts.map +1 -0
- package/lib/models/user-event/user-event-setting-field.enum.d.ts.map +1 -0
- package/lib/models/user-event/user-event-setting.d.ts.map +1 -0
- package/lib/models/user-event/user-event-type-category.d.ts.map +1 -0
- package/lib/models/user-event/user-event-type.d.ts.map +1 -0
- package/lib/models/vehicle/index.d.ts.map +1 -0
- package/lib/models/vehicle/vehicle-claim-details.d.ts.map +1 -0
- package/lib/models/vehicle/vehicle-claim.d.ts.map +1 -0
- package/lib/models/vehicle/vehicle-logbook.d.ts.map +1 -0
- package/lib/models/vehicle/vehicle.d.ts.map +1 -0
- package/lib/pipes/app-currency.pipe.d.ts.map +1 -0
- package/lib/pipes/index.d.ts.map +1 -0
- package/lib/services/account-setup/account-setup.service.d.ts.map +1 -0
- package/lib/services/account-setup/index.d.ts.map +1 -0
- package/lib/services/affiliate/index.d.ts.map +1 -0
- package/lib/services/affiliate/rewardful/index.d.ts.map +1 -0
- package/lib/services/affiliate/rewardful/rewardful.service.d.ts.map +1 -0
- package/lib/services/asset/assets.service.d.ts.map +1 -0
- package/lib/services/asset/index.d.ts.map +1 -0
- package/lib/services/auth/auth.service.d.ts.map +1 -0
- package/lib/services/auth/index.d.ts.map +1 -0
- package/lib/services/auth/jwt.service.d.ts.map +1 -0
- package/lib/services/bank/bank-account-calculation.service.d.ts.map +1 -0
- package/lib/services/bank/bank-transaction-calculation.service.d.ts.map +1 -0
- package/lib/services/bank/index.d.ts.map +1 -0
- package/lib/services/data.service.d.ts +1 -1
- package/lib/services/data.service.d.ts.map +1 -0
- package/lib/services/event/event-dispatcher.service.d.ts.map +1 -0
- package/lib/services/event/index.d.ts.map +1 -0
- package/lib/services/event/sse.service.d.ts +1 -1
- package/lib/services/event/sse.service.d.ts.map +1 -0
- package/lib/services/export/export-formatter.service.d.ts.map +1 -0
- package/lib/services/export/index.d.ts.map +1 -0
- package/lib/services/header-title/header-title.service.d.ts.map +1 -0
- package/lib/services/header-title/index.d.ts.map +1 -0
- package/lib/services/http/address/address.service.d.ts.map +1 -0
- package/lib/services/http/address/index.d.ts.map +1 -0
- package/lib/services/http/bank/bank-account/bank-account.service.d.ts +1 -1
- package/lib/services/http/bank/bank-account/bank-account.service.d.ts.map +1 -0
- package/lib/services/http/bank/bank-account/index.d.ts.map +1 -0
- package/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts.map +1 -0
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +3 -11
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts.map +1 -0
- package/lib/services/http/bank/bank-connection/index.d.ts.map +1 -0
- package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts +2 -0
- package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts.map +1 -0
- package/lib/services/http/bank/bank-transaction/index.d.ts.map +1 -0
- package/lib/services/http/bank/bank.service.d.ts +0 -1
- package/lib/services/http/bank/bank.service.d.ts.map +1 -0
- package/lib/services/http/bank/basiq/basiq-messages.enum.d.ts.map +1 -0
- package/lib/services/http/bank/basiq/basiq-token.service.d.ts.map +1 -0
- package/lib/services/http/bank/basiq/basiq.service.d.ts.map +1 -0
- package/lib/services/http/bank/basiq/index.d.ts.map +1 -0
- package/lib/services/http/bank/index.d.ts.map +1 -0
- package/lib/services/http/budget/budget-messages.enum.d.ts.map +1 -0
- package/lib/services/http/budget/budget.service.d.ts +0 -1
- package/lib/services/http/budget/budget.service.d.ts.map +1 -0
- package/lib/services/http/budget/index.d.ts.map +1 -0
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts +0 -1
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts.map +1 -0
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/index.d.ts.map +1 -0
- package/lib/services/http/chart-accounts/chart-accounts.service.d.ts.map +1 -0
- package/lib/services/http/chart-accounts/index.d.ts.map +1 -0
- package/lib/services/http/chat/chat.service.d.ts +3 -7
- package/lib/services/http/chat/chat.service.d.ts.map +1 -0
- package/lib/services/http/chat/index.d.ts.map +1 -0
- package/lib/services/http/chat/message-document.service.d.ts +2 -1
- package/lib/services/http/chat/message-document.service.d.ts.map +1 -0
- package/lib/services/http/chat/message.service.d.ts +3 -19
- package/lib/services/http/chat/message.service.d.ts.map +1 -0
- package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts +0 -1
- package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts.map +1 -0
- package/lib/services/http/client/index.d.ts.map +1 -0
- package/lib/services/http/client/occupation/occupation.service.d.ts.map +1 -0
- package/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts.map +1 -0
- package/lib/services/http/depreciation/depreciation-capital-project/index.d.ts.map +1 -0
- package/lib/services/http/depreciation/depreciation.service.d.ts +2 -1
- package/lib/services/http/depreciation/depreciation.service.d.ts.map +1 -0
- package/lib/services/http/depreciation/index.d.ts.map +1 -0
- package/lib/services/http/document/document-folder/document-folder-messages.enum.d.ts.map +1 -0
- package/lib/services/http/document/document-folder/document-folder.service.d.ts.map +1 -0
- package/lib/services/http/document/document-folder/index.d.ts.map +1 -0
- package/lib/services/http/document/document-messages.enum.d.ts.map +1 -0
- package/lib/services/http/document/document.service.d.ts +0 -1
- package/lib/services/http/document/document.service.d.ts.map +1 -0
- package/lib/services/http/document/index.d.ts.map +1 -0
- package/lib/services/http/facebook/facebook-auth-options.interface.d.ts.map +1 -0
- package/lib/services/http/facebook/facebook-auth-response.interface.d.ts.map +1 -0
- package/lib/services/http/facebook/facebook-status-response.interface.d.ts.map +1 -0
- package/lib/services/http/facebook/facebook.service.d.ts.map +1 -0
- package/lib/services/http/facebook/index.d.ts.map +1 -0
- package/lib/services/http/file/file.service.d.ts +0 -1
- package/lib/services/http/file/file.service.d.ts.map +1 -0
- package/lib/services/http/file/index.d.ts.map +1 -0
- package/lib/services/http/firm/client-income/client-income-types.service.d.ts +0 -1
- package/lib/services/http/firm/client-income/client-income-types.service.d.ts.map +1 -0
- package/lib/services/http/firm/client-income/index.d.ts.map +1 -0
- package/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts.map +1 -0
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts +5 -6
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts.map +1 -0
- package/lib/services/http/firm/client-invite/index.d.ts.map +1 -0
- package/lib/services/http/firm/client-movement/client-movement.service.d.ts +7 -10
- package/lib/services/http/firm/client-movement/client-movement.service.d.ts.map +1 -0
- package/lib/services/http/firm/client-movement/index.d.ts.map +1 -0
- package/lib/services/http/firm/employee/employee-messages.enum.d.ts.map +1 -0
- package/lib/services/http/firm/employee/employee.service.d.ts.map +1 -0
- package/lib/services/http/firm/employee/index.d.ts.map +1 -0
- package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts.map +1 -0
- package/lib/services/http/firm/employee-invite/index.d.ts.map +1 -0
- package/lib/services/http/firm/firm-messages.enum.d.ts.map +1 -0
- package/lib/services/http/firm/firm.service.d.ts.map +1 -0
- package/lib/services/http/firm/index.d.ts.map +1 -0
- package/lib/services/http/firm/portfolio-report/client-portfolio-report.service.d.ts.map +1 -0
- package/lib/services/http/firm/portfolio-report/index.d.ts.map +1 -0
- package/lib/services/http/google/google.service.d.ts.map +1 -0
- package/lib/services/http/google/index.d.ts.map +1 -0
- package/lib/services/http/holding/holding-messages.enum.d.ts.map +1 -0
- package/lib/services/http/holding/holding-sale-messages.enum.d.ts.map +1 -0
- package/lib/services/http/holding/holding-sale.service.d.ts +0 -1
- package/lib/services/http/holding/holding-sale.service.d.ts.map +1 -0
- package/lib/services/http/holding/holding-type-messages.enum.d.ts.map +1 -0
- package/lib/services/http/holding/holding-type.service.d.ts +0 -1
- package/lib/services/http/holding/holding-type.service.d.ts.map +1 -0
- package/lib/services/http/holding/holding.service.d.ts +2 -1
- package/lib/services/http/holding/holding.service.d.ts.map +1 -0
- package/lib/services/http/holding/index.d.ts.map +1 -0
- package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts +2 -0
- package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts.map +1 -0
- package/lib/services/http/income-source/income-source-forecast/index.d.ts.map +1 -0
- package/lib/services/http/income-source/income-source-messages.enum.d.ts.map +1 -0
- package/lib/services/http/income-source/income-source.service.d.ts +4 -2
- package/lib/services/http/income-source/income-source.service.d.ts.map +1 -0
- package/lib/services/http/income-source/index.d.ts.map +1 -0
- package/lib/services/http/income-source/salary-forecast/index.d.ts.map +1 -0
- package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts +4 -2
- package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts.map +1 -0
- package/lib/services/http/income-source/sole-forecast/index.d.ts.map +1 -0
- package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts +4 -2
- package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts.map +1 -0
- package/lib/services/http/index.d.ts.map +1 -0
- package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts.map +1 -0
- package/lib/services/http/loan/borrowing-expense/index.d.ts.map +1 -0
- package/lib/services/http/loan/index.d.ts.map +1 -0
- package/lib/services/http/loan/loan.service.d.ts +2 -0
- package/lib/services/http/loan/loan.service.d.ts.map +1 -0
- package/lib/services/http/property/borrowing-report/borrowing-report-messages.enum.d.ts.map +1 -0
- package/lib/services/http/property/borrowing-report/borrowing-report.service.d.ts +0 -1
- package/lib/services/http/property/borrowing-report/borrowing-report.service.d.ts.map +1 -0
- package/lib/services/http/property/borrowing-report/index.d.ts.map +1 -0
- package/lib/services/http/property/index.d.ts.map +1 -0
- package/lib/services/http/property/property-category/index.d.ts.map +1 -0
- package/lib/services/http/property/property-category/property-category.service.d.ts.map +1 -0
- package/lib/services/http/property/property-category-movement/index.d.ts.map +1 -0
- package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts.map +1 -0
- package/lib/services/http/property/property-document/index.d.ts.map +1 -0
- package/lib/services/http/property/property-document/property-document-messages.enum.d.ts.map +1 -0
- package/lib/services/http/property/property-document/property-document.service.d.ts +1 -10
- package/lib/services/http/property/property-document/property-document.service.d.ts.map +1 -0
- package/lib/services/http/property/property-messages.enum.d.ts.map +1 -0
- package/lib/services/http/property/property-sale/index.d.ts.map +1 -0
- package/lib/services/http/property/property-sale/property-sale.service.d.ts.map +1 -0
- package/lib/services/http/property/property-share/index.d.ts.map +1 -0
- package/lib/services/http/property/property-share/property-share.service.d.ts +2 -0
- package/lib/services/http/property/property-share/property-share.service.d.ts.map +1 -0
- package/lib/services/http/property/property-valuation/index.d.ts.map +1 -0
- package/lib/services/http/property/property-valuation/property-valuation-messages.enum.d.ts.map +1 -0
- package/lib/services/http/property/property-valuation/property-valuation.service.d.ts +2 -7
- package/lib/services/http/property/property-valuation/property-valuation.service.d.ts.map +1 -0
- package/lib/services/http/property/property.service.d.ts +8 -17
- package/lib/services/http/property/property.service.d.ts.map +1 -0
- package/lib/services/http/rest/http-method.type.d.ts.map +1 -0
- package/lib/services/http/rest/index.d.ts.map +1 -0
- package/lib/services/http/rest/rest-method.type.d.ts.map +1 -0
- package/lib/services/http/rest/rest-old.service.d.ts +4 -10
- package/lib/services/http/rest/rest-old.service.d.ts.map +1 -0
- package/lib/services/http/rest/rest.service.d.ts +7 -20
- package/lib/services/http/rest/rest.service.d.ts.map +1 -0
- package/lib/services/http/service-notification/index.d.ts.map +1 -0
- package/lib/services/http/service-notification/service-notification.service.d.ts +9 -10
- package/lib/services/http/service-notification/service-notification.service.d.ts.map +1 -0
- package/lib/services/http/setup-item/setup-item.service.d.ts +1 -2
- package/lib/services/http/setup-item/setup-item.service.d.ts.map +1 -0
- package/lib/services/http/sole/bas-report/bas-report.service.d.ts +0 -1
- package/lib/services/http/sole/bas-report/bas-report.service.d.ts.map +1 -0
- package/lib/services/http/sole/index.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business/index.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business/sole-business-messages.enum.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business/sole-business.service.d.ts +0 -1
- package/lib/services/http/sole/sole-business/sole-business.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts +0 -1
- package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts +0 -1
- package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts +3 -2
- package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts +0 -1
- package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts +3 -3
- package/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-details/sole-details.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +3 -2
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts.map +1 -0
- package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts +0 -1
- package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts.map +1 -0
- package/lib/services/http/subscription/index.d.ts.map +1 -0
- package/lib/services/http/subscription/service-payment/service-payment.service.d.ts +0 -1
- package/lib/services/http/subscription/service-payment/service-payment.service.d.ts.map +1 -0
- package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts +4 -8
- package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts.map +1 -0
- package/lib/services/http/subscription/service-price/service-price.service.d.ts +0 -1
- package/lib/services/http/subscription/service-price/service-price.service.d.ts.map +1 -0
- package/lib/services/http/subscription/service-product/service-product.service.d.ts +0 -1
- package/lib/services/http/subscription/service-product/service-product.service.d.ts.map +1 -0
- package/lib/services/http/subscription/service-subscription/subscription-messages.enum.d.ts.map +1 -0
- package/lib/services/http/subscription/service-subscription/subscription.service.d.ts +5 -6
- package/lib/services/http/subscription/service-subscription/subscription.service.d.ts.map +1 -0
- package/lib/services/http/tax-review/index.d.ts.map +1 -0
- package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts +3 -1
- package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts.map +1 -0
- package/lib/services/http/tax-review/tax-review-messages.enum.d.ts.map +1 -0
- package/lib/services/http/tax-review/tax-review.service.d.ts +2 -0
- package/lib/services/http/tax-review/tax-review.service.d.ts.map +1 -0
- package/lib/services/http/tax-summary/index.d.ts.map +1 -0
- package/lib/services/http/tax-summary/tax-summary.service.d.ts +2 -2
- package/lib/services/http/tax-summary/tax-summary.service.d.ts.map +1 -0
- package/lib/services/http/transaction/index.d.ts.map +1 -0
- package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts +0 -1
- package/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts.map +1 -0
- package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts +2 -0
- package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts.map +1 -0
- package/lib/services/http/transaction/transaction.service.d.ts +1 -3
- package/lib/services/http/transaction/transaction.service.d.ts.map +1 -0
- package/lib/services/http/tutorial-video/index.d.ts.map +1 -0
- package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts.map +1 -0
- package/lib/services/http/tutorial-video/tutorial-video.service.d.ts.map +1 -0
- package/lib/services/http/tutorial-video/video-source.interface.d.ts.map +1 -0
- package/lib/services/http/user/financial-year/financial-year.service.d.ts.map +1 -0
- package/lib/services/http/user/index.d.ts.map +1 -0
- package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts +0 -1
- package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts.map +1 -0
- package/lib/services/http/user/user-event-type/user-event-type.service.d.ts +0 -1
- package/lib/services/http/user/user-event-type/user-event-type.service.d.ts.map +1 -0
- package/lib/services/http/user/user-messages.enum.d.ts.map +1 -0
- package/lib/services/http/user/user.service.d.ts +4 -6
- package/lib/services/http/user/user.service.d.ts.map +1 -0
- package/lib/services/http/user/users-invite/users-invite.service.d.ts.map +1 -0
- package/lib/services/http/vehicle/index.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts +1 -1
- package/lib/services/http/vehicle/vehicle-claim-details.service.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-claim.service.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-logbook/index.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook-messages.enum.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle-messages.enum.d.ts.map +1 -0
- package/lib/services/http/vehicle/vehicle.service.d.ts.map +1 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/intercom/index.d.ts.map +1 -0
- package/lib/services/intercom/intercom.service.d.ts.map +1 -0
- package/lib/services/json/chart-accounts/chart-accounts-value.service.d.ts.map +1 -0
- package/lib/services/json/holding/holding-type-exchange.service.d.ts.map +1 -0
- package/lib/services/json/income-source/income-source-type.service.d.ts.map +1 -0
- package/lib/services/json/index.d.ts.map +1 -0
- package/lib/services/json/tax-exemption/tax-exemption.service.d.ts.map +1 -0
- package/lib/services/json/tax-return/tax-return-item.service.d.ts.map +1 -0
- package/lib/services/mixpanel/mixpanel.service.d.ts.map +1 -0
- package/lib/services/pdf/index.d.ts.map +1 -0
- package/lib/services/pdf/js-pdf.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-table/file-settings.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts.map +1 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts.map +1 -0
- package/lib/services/preloader/index.d.ts.map +1 -0
- package/lib/services/preloader/preloader.service.d.ts.map +1 -0
- package/lib/services/property/corelogic/corelogic.service.d.ts.map +1 -0
- package/lib/services/property/corelogic/index.d.ts.map +1 -0
- package/lib/services/property/equity-position-chart/equity-position-chart.service.d.ts.map +1 -0
- package/lib/services/property/equity-position-chart/index.d.ts.map +1 -0
- package/lib/services/property/index.d.ts.map +1 -0
- package/lib/services/property/property-calculation/index.d.ts.map +1 -0
- package/lib/services/property/property-calculation/property-calculation.service.d.ts +6 -6
- package/lib/services/property/property-calculation/property-calculation.service.d.ts.map +1 -0
- package/lib/services/report/index.d.ts.map +1 -0
- package/lib/services/report/property/property-transaction-report.service.d.ts.map +1 -0
- package/lib/services/toast/index.d.ts.map +1 -0
- package/lib/services/toast/toast.service.d.ts.map +1 -0
- package/lib/services/transaction/index.d.ts.map +1 -0
- package/lib/services/transaction/transaction-calculation.service.d.ts.map +1 -0
- package/lib/services/user/index.d.ts.map +1 -0
- package/lib/services/user/user-switcher.service.d.ts.map +1 -0
- package/lib/services/xlsx/index.d.ts.map +1 -0
- package/lib/services/xlsx/xlsx.service.d.ts.map +1 -0
- package/lib/tt-core.module.d.ts.map +1 -0
- package/lib/validators/address-corelogic.validator.d.ts.map +1 -0
- package/lib/validators/at-least-one-enabled.validator.d.ts.map +1 -0
- package/lib/validators/at-least-one.validator.d.ts.map +1 -0
- package/lib/validators/autocomplete.validator.d.ts.map +1 -0
- package/lib/validators/conditional.validator.d.ts.map +1 -0
- package/lib/validators/current-fin-year.validator.d.ts.map +1 -0
- package/lib/validators/date-range.validator.d.ts.map +1 -0
- package/lib/validators/fields-sum.validator.d.ts.map +1 -0
- package/lib/validators/file.validator.d.ts.map +1 -0
- package/lib/validators/greater-than.validator.d.ts.map +1 -0
- package/lib/validators/index.d.ts.map +1 -0
- package/lib/validators/min-date/messages.enum.d.ts.map +1 -0
- package/lib/validators/min-date/min-date.validator.d.ts.map +1 -0
- package/lib/validators/password-match.validator.d.ts.map +1 -0
- package/lib/validators/password.validator.d.ts.map +1 -0
- package/lib/validators/phone-number.validator.d.ts.map +1 -0
- package/lib/validators/required-length.validator.d.ts.map +1 -0
- package/lib/validators/transactions-meta-fields.validator.d.ts.map +1 -0
- package/lib/validators/unique-email.validator.d.ts.map +1 -0
- package/package.json +1 -1
- package/public-api.d.ts.map +1 -0
- package/taxtank-core.d.ts.map +1 -0
- package/esm2022/lib/models/property/share-filter-options.enum.mjs +0 -11
- package/lib/models/property/share-filter-options.enum.d.ts +0 -9
|
@@ -3,9 +3,9 @@ import { Injectable, Inject, inject, EventEmitter, NgModule, Pipe } from '@angul
|
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
4
|
import { formatDate, CommonModule, CurrencyPipe, DatePipe } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
|
-
import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
7
|
-
import { map, mergeMap, filter, first as first$1,
|
|
8
|
-
import { ReplaySubject, Subject,
|
|
6
|
+
import { HttpParams, HttpClient, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
7
|
+
import { map, mergeMap, filter, catchError, first as first$1, last as last$1, take, switchMap, finalize, debounceTime, distinctUntilChanged, startWith, delay } from 'rxjs/operators';
|
|
8
|
+
import { ReplaySubject, Subject, BehaviorSubject, throwError, Observable, combineLatest, forkJoin, of, from, merge as merge$1 } from 'rxjs';
|
|
9
9
|
import { plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
|
|
10
10
|
import get from 'lodash/get';
|
|
11
11
|
import { __decorate } from 'tslib';
|
|
@@ -31,6 +31,7 @@ import { EventSourcePolyfill } from 'event-source-polyfill/src/eventsource.min.j
|
|
|
31
31
|
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
32
32
|
import * as mixpanel from 'mixpanel-browser';
|
|
33
33
|
import clone from 'lodash/clone';
|
|
34
|
+
import { isArray } from 'rxjs/internal-compatibility';
|
|
34
35
|
import * as i4 from '@angular/router';
|
|
35
36
|
import { NavigationEnd } from '@angular/router';
|
|
36
37
|
import _ from 'lodash';
|
|
@@ -200,7 +201,7 @@ class AddressService {
|
|
|
200
201
|
getCountries() {
|
|
201
202
|
if (!this._countries) {
|
|
202
203
|
this.http.get(`${this.environment.apiV2}/countries`)
|
|
203
|
-
.pipe(map((response) => response
|
|
204
|
+
.pipe(map((response) => response.map((item) => plainToClass(Country, item))))
|
|
204
205
|
.subscribe((countries) => {
|
|
205
206
|
this._countries = countries;
|
|
206
207
|
this.countriesSubject.next(countries);
|
|
@@ -549,7 +550,7 @@ let Chat$1 = class Chat extends AbstractModel {
|
|
|
549
550
|
let ClientInvite$1 = class ClientInvite extends ObservableModel {
|
|
550
551
|
};
|
|
551
552
|
|
|
552
|
-
let ClientMovement$1 = class ClientMovement extends
|
|
553
|
+
let ClientMovement$1 = class ClientMovement extends ObservableModel {
|
|
553
554
|
};
|
|
554
555
|
|
|
555
556
|
let EmployeeInvite$1 = class EmployeeInvite extends AbstractModel {
|
|
@@ -1792,6 +1793,9 @@ class Collection {
|
|
|
1792
1793
|
get last() {
|
|
1793
1794
|
return last(this.items);
|
|
1794
1795
|
}
|
|
1796
|
+
get previous() {
|
|
1797
|
+
return this.items[this.items.length - 2];
|
|
1798
|
+
}
|
|
1795
1799
|
reset() {
|
|
1796
1800
|
this.index = 0;
|
|
1797
1801
|
return this.items[this.index];
|
|
@@ -1848,8 +1852,11 @@ class Collection {
|
|
|
1848
1852
|
filterByRange(path, from, to) {
|
|
1849
1853
|
return this.filter((item) => get(item, path) >= from && get(item, path) <= to);
|
|
1850
1854
|
}
|
|
1851
|
-
filterByFinancialYear(
|
|
1852
|
-
|
|
1855
|
+
filterByFinancialYear(pathFrom, pathTo, financialYear = new FinancialYear()) {
|
|
1856
|
+
if (pathTo) {
|
|
1857
|
+
return this.filter(model => get(model, pathFrom) <= financialYear.endDate && !get(model, pathTo) || get(model, pathTo) >= financialYear.startDate);
|
|
1858
|
+
}
|
|
1859
|
+
return this.filterByRange(pathFrom, financialYear.startDate, financialYear.endDate);
|
|
1853
1860
|
}
|
|
1854
1861
|
find(callback) {
|
|
1855
1862
|
return this.items.find(callback);
|
|
@@ -2130,13 +2137,6 @@ class PropertySaleTaxExemptionMetaFieldCollection extends Collection {
|
|
|
2130
2137
|
}
|
|
2131
2138
|
|
|
2132
2139
|
class PropertyCollection extends Collection {
|
|
2133
|
-
/**
|
|
2134
|
-
* Get new property collection filtered by category id
|
|
2135
|
-
* @param id id of category for filter
|
|
2136
|
-
*/
|
|
2137
|
-
getByCategoryId(id) {
|
|
2138
|
-
return new PropertyCollection(this.items.filter((property) => property.category.id === id));
|
|
2139
|
-
}
|
|
2140
2140
|
/**
|
|
2141
2141
|
* Get new property collection filtered by active status
|
|
2142
2142
|
*/
|
|
@@ -2152,12 +2152,6 @@ class PropertyCollection extends Collection {
|
|
|
2152
2152
|
getSharedProperties() {
|
|
2153
2153
|
return new PropertyCollection(this.items.filter((property) => !property.isOwn()));
|
|
2154
2154
|
}
|
|
2155
|
-
/**
|
|
2156
|
-
* Properties that are taxed and will be included in reports (Tax summary, My tax report, e.t.c.)
|
|
2157
|
-
*/
|
|
2158
|
-
getTaxInclusive() {
|
|
2159
|
-
return this.create(this.items.filter((property) => property.category.isTaxInclusive));
|
|
2160
|
-
}
|
|
2161
2155
|
getUnsold() {
|
|
2162
2156
|
return this.create(this.items.filter((property) => !property.isSold()));
|
|
2163
2157
|
}
|
|
@@ -2173,33 +2167,21 @@ class PropertyCollection extends Collection {
|
|
|
2173
2167
|
get marketValue() {
|
|
2174
2168
|
return this.sumBy('marketValue');
|
|
2175
2169
|
}
|
|
2176
|
-
get firstForecastYear() {
|
|
2177
|
-
return this.items.reduce((min, property) => {
|
|
2178
|
-
const current = property.firstForecastYear;
|
|
2179
|
-
return min > current ? current : min;
|
|
2180
|
-
}, new FinancialYear().year);
|
|
2181
|
-
}
|
|
2182
2170
|
get marketValueGrowth() {
|
|
2183
2171
|
return (this.marketValue - this.purchasePrice) / this.purchasePrice;
|
|
2184
2172
|
}
|
|
2185
|
-
/**
|
|
2186
|
-
* list of properties
|
|
2187
|
-
*/
|
|
2188
|
-
getCGTApplicable() {
|
|
2189
|
-
return this.create(this.items.filter((property) => property.isCGTApplicable()));
|
|
2190
|
-
}
|
|
2191
|
-
getOwnerOccupiedProperties() {
|
|
2192
|
-
return new PropertyCollection(this.items.filter((property) => property.category.isOwnerOccupied()));
|
|
2193
|
-
}
|
|
2194
|
-
get earliestContractDate() {
|
|
2195
|
-
return this.items.reduce((min, property) => min < property.contractDate ? min : property.contractDate, new FinancialYear(new Date()).startDate);
|
|
2196
|
-
}
|
|
2197
2173
|
/**
|
|
2198
2174
|
* Get list of unique property categories from collection
|
|
2199
2175
|
*/
|
|
2200
2176
|
getCategories() {
|
|
2201
2177
|
return uniqBy(this.items.map((property) => property.category), 'id');
|
|
2202
2178
|
}
|
|
2179
|
+
/**
|
|
2180
|
+
* list of properties
|
|
2181
|
+
*/
|
|
2182
|
+
getCGTApplicable() {
|
|
2183
|
+
return this.create(this.items.filter((property) => property.isCGTApplicable()));
|
|
2184
|
+
}
|
|
2203
2185
|
/**
|
|
2204
2186
|
* Get property with the highest growth percent
|
|
2205
2187
|
*/
|
|
@@ -2219,6 +2201,7 @@ class PropertyCollection extends Collection {
|
|
|
2219
2201
|
}, this.first);
|
|
2220
2202
|
}
|
|
2221
2203
|
/**
|
|
2204
|
+
* @TODO Nicole not needed anymore?
|
|
2222
2205
|
* Show best performance properties first
|
|
2223
2206
|
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677997/Property+Tank+Dashboard
|
|
2224
2207
|
*/
|
|
@@ -2239,19 +2222,50 @@ class PropertyCollection extends Collection {
|
|
|
2239
2222
|
get netMonthlyIncome() {
|
|
2240
2223
|
return this.sumBy('monthlyIncome') + this.sumBy('monthlyExpense');
|
|
2241
2224
|
}
|
|
2225
|
+
getOwnerOccupiedProperties() {
|
|
2226
|
+
return new PropertyCollection(this.items.filter((property) => property.category.isOwnerOccupied()));
|
|
2227
|
+
}
|
|
2228
|
+
/**
|
|
2229
|
+
* Properties that are taxed and will be included in reports (Tax summary, My tax report, e.t.c.)
|
|
2230
|
+
*/
|
|
2231
|
+
getTaxInclusive() {
|
|
2232
|
+
return this.create(this.items.filter((property) => property.category.isTaxInclusive));
|
|
2233
|
+
}
|
|
2234
|
+
groupByCategory(categories, movements, allowEmpty = false) {
|
|
2235
|
+
const categoryById = categories.indexBy('id');
|
|
2236
|
+
const movementsByCategory = movements.getCurrent().groupBy('propertyCategory.id');
|
|
2237
|
+
const propertiesByCategory = new Map;
|
|
2238
|
+
movementsByCategory.keys.forEach(key => {
|
|
2239
|
+
propertiesByCategory.set(categoryById.get(key), this.filterBy('id', movementsByCategory.get(key).map(movement => movement.property.id)));
|
|
2240
|
+
});
|
|
2241
|
+
if (allowEmpty) {
|
|
2242
|
+
categories.remove(...propertiesByCategory.keys()).toArray().forEach(category => {
|
|
2243
|
+
propertiesByCategory.set(category, new PropertyCollection());
|
|
2244
|
+
});
|
|
2245
|
+
}
|
|
2246
|
+
return propertiesByCategory;
|
|
2247
|
+
}
|
|
2242
2248
|
}
|
|
2243
2249
|
|
|
2244
2250
|
class PropertyCategoryMovementCollection extends Collection {
|
|
2245
2251
|
/**
|
|
2246
2252
|
* @TODO TT-2355 Alex refactor propertyForecast, use separated api (then I can remove property from param)
|
|
2247
2253
|
*/
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2254
|
+
filterByForecast(property, forecast) {
|
|
2255
|
+
return this.filterBy('property.id', property.id)
|
|
2256
|
+
.filterByFinancialYear('fromDate', 'toDate', new FinancialYear(forecast.financialYear));
|
|
2251
2257
|
}
|
|
2252
2258
|
hasCategory(categoryId) {
|
|
2253
2259
|
return !!this.findBy('propertyCategory.id', categoryId);
|
|
2254
2260
|
}
|
|
2261
|
+
/**
|
|
2262
|
+
* active movement by property based on selected year
|
|
2263
|
+
*/
|
|
2264
|
+
getCurrent() {
|
|
2265
|
+
return this.create(this.filterByFinancialYear('fromDate', 'toDate')
|
|
2266
|
+
.indexBy('property.id')
|
|
2267
|
+
.toArray());
|
|
2268
|
+
}
|
|
2255
2269
|
}
|
|
2256
2270
|
|
|
2257
2271
|
class PropertyShareCollection extends Collection {
|
|
@@ -2273,6 +2287,9 @@ class PropertyShareCollection extends Collection {
|
|
|
2273
2287
|
}
|
|
2274
2288
|
}
|
|
2275
2289
|
|
|
2290
|
+
class PropertyValuationCollection extends Collection {
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2276
2293
|
/**
|
|
2277
2294
|
* Enum with symbols based on depreciation LVP asset type
|
|
2278
2295
|
*/
|
|
@@ -4479,6 +4496,105 @@ __decorate([
|
|
|
4479
4496
|
Expose()
|
|
4480
4497
|
], ServiceSubscription.prototype, "promoCodeId", null);
|
|
4481
4498
|
|
|
4499
|
+
class ServicePayment extends ServicePayment$1 {
|
|
4500
|
+
static { this.daysToInvoiceUrlExpired = 30; }
|
|
4501
|
+
/**
|
|
4502
|
+
* Stripe stores actual links to payment invoices for 30 days.
|
|
4503
|
+
* Link expires after 30 days
|
|
4504
|
+
*/
|
|
4505
|
+
isInvoiceLinkExpired() {
|
|
4506
|
+
const expirationDate = new Date(this.date.setDate(this.date.getDate() + ServicePayment.daysToInvoiceUrlExpired));
|
|
4507
|
+
return expirationDate.getTime() < new Date().getTime();
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
__decorate([
|
|
4511
|
+
Type(() => ServiceSubscription)
|
|
4512
|
+
], ServicePayment.prototype, "subscription", void 0);
|
|
4513
|
+
__decorate([
|
|
4514
|
+
Type(() => Date)
|
|
4515
|
+
], ServicePayment.prototype, "date", void 0);
|
|
4516
|
+
|
|
4517
|
+
let ServicePaymentMethod$1 = class ServicePaymentMethod extends AbstractModel {
|
|
4518
|
+
};
|
|
4519
|
+
|
|
4520
|
+
var PaymentMethodBrandEnum;
|
|
4521
|
+
(function (PaymentMethodBrandEnum) {
|
|
4522
|
+
PaymentMethodBrandEnum["UNKNOWN"] = "Unknown";
|
|
4523
|
+
PaymentMethodBrandEnum["AMEX"] = "American Express";
|
|
4524
|
+
PaymentMethodBrandEnum["DINERS"] = "Diners Club";
|
|
4525
|
+
PaymentMethodBrandEnum["DISCOVER"] = "Discover";
|
|
4526
|
+
PaymentMethodBrandEnum["JCB"] = "JCB";
|
|
4527
|
+
PaymentMethodBrandEnum["MASTERCARD"] = "Mastercard";
|
|
4528
|
+
PaymentMethodBrandEnum["UNIONPAY"] = "UnionPay";
|
|
4529
|
+
PaymentMethodBrandEnum["VISA"] = "Visa";
|
|
4530
|
+
})(PaymentMethodBrandEnum || (PaymentMethodBrandEnum = {}));
|
|
4531
|
+
|
|
4532
|
+
var ServicePaymentMethodCardBrandEnum;
|
|
4533
|
+
(function (ServicePaymentMethodCardBrandEnum) {
|
|
4534
|
+
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNKNOWN"] = 0] = "UNKNOWN";
|
|
4535
|
+
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["AMEX"] = 1] = "AMEX";
|
|
4536
|
+
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DINERS"] = 2] = "DINERS";
|
|
4537
|
+
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DISCOVER"] = 3] = "DISCOVER";
|
|
4538
|
+
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["JCB"] = 4] = "JCB";
|
|
4539
|
+
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["MASTERCARD"] = 5] = "MASTERCARD";
|
|
4540
|
+
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNIONPAY"] = 6] = "UNIONPAY";
|
|
4541
|
+
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["VISA"] = 7] = "VISA";
|
|
4542
|
+
})(ServicePaymentMethodCardBrandEnum || (ServicePaymentMethodCardBrandEnum = {}));
|
|
4543
|
+
|
|
4544
|
+
var ServicePaymentMethodTypeEnum;
|
|
4545
|
+
(function (ServicePaymentMethodTypeEnum) {
|
|
4546
|
+
ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["AU_BECS_DEBIT"] = 1] = "AU_BECS_DEBIT";
|
|
4547
|
+
ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["CARD"] = 2] = "CARD";
|
|
4548
|
+
})(ServicePaymentMethodTypeEnum || (ServicePaymentMethodTypeEnum = {}));
|
|
4549
|
+
|
|
4550
|
+
class ServicePaymentMethod extends ServicePaymentMethod$1 {
|
|
4551
|
+
get logo() {
|
|
4552
|
+
if (!this.isCard()) {
|
|
4553
|
+
return null;
|
|
4554
|
+
}
|
|
4555
|
+
return `/assets/img/payment-methods/${this.cardBrand}.svg`;
|
|
4556
|
+
}
|
|
4557
|
+
get brandName() {
|
|
4558
|
+
return this.isCard() ? PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]] : 'BECS Direct Debit (AU)';
|
|
4559
|
+
}
|
|
4560
|
+
/**
|
|
4561
|
+
* Get expiration date formatted string (MM/YY)
|
|
4562
|
+
*/
|
|
4563
|
+
get expirationDate() {
|
|
4564
|
+
if (!this.isCard()) {
|
|
4565
|
+
return null;
|
|
4566
|
+
}
|
|
4567
|
+
return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
|
|
4568
|
+
}
|
|
4569
|
+
get description() {
|
|
4570
|
+
return `${this.brandName} ***${this.lastFourDigits}`;
|
|
4571
|
+
}
|
|
4572
|
+
isCard() {
|
|
4573
|
+
return this.type === ServicePaymentMethodTypeEnum.CARD;
|
|
4574
|
+
}
|
|
4575
|
+
}
|
|
4576
|
+
|
|
4577
|
+
/**
|
|
4578
|
+
* Enum with icon-names related to tank roles
|
|
4579
|
+
*/
|
|
4580
|
+
var ServiceProductIconsEnum;
|
|
4581
|
+
(function (ServiceProductIconsEnum) {
|
|
4582
|
+
ServiceProductIconsEnum["ROLE_USER_WORK"] = "icon-case";
|
|
4583
|
+
ServiceProductIconsEnum["ROLE_USER_PROPERTY"] = "icon-property";
|
|
4584
|
+
ServiceProductIconsEnum["ROLE_USER_SOLE"] = "icon-sole-tank";
|
|
4585
|
+
ServiceProductIconsEnum["ROLE_USER_HOLDING"] = "icon-holding-tank";
|
|
4586
|
+
})(ServiceProductIconsEnum || (ServiceProductIconsEnum = {}));
|
|
4587
|
+
|
|
4588
|
+
/**
|
|
4589
|
+
* List of user roles related to tanks (subscription products)
|
|
4590
|
+
*/
|
|
4591
|
+
const SERVICE_PRODUCT_ROLES = [
|
|
4592
|
+
UserRolesEnum.WORK_TANK,
|
|
4593
|
+
UserRolesEnum.PROPERTY_TANK,
|
|
4594
|
+
UserRolesEnum.SOLE_TANK,
|
|
4595
|
+
UserRolesEnum.HOLDING_TANK
|
|
4596
|
+
];
|
|
4597
|
+
|
|
4482
4598
|
class ClientMovement extends ClientMovement$1 {
|
|
4483
4599
|
}
|
|
4484
4600
|
__decorate([
|
|
@@ -4582,105 +4698,6 @@ __decorate([
|
|
|
4582
4698
|
Type(() => Firm)
|
|
4583
4699
|
], EmployeeDetails.prototype, "firm", void 0);
|
|
4584
4700
|
|
|
4585
|
-
class ServicePayment extends ServicePayment$1 {
|
|
4586
|
-
static { this.daysToInvoiceUrlExpired = 30; }
|
|
4587
|
-
/**
|
|
4588
|
-
* Stripe stores actual links to payment invoices for 30 days.
|
|
4589
|
-
* Link expires after 30 days
|
|
4590
|
-
*/
|
|
4591
|
-
isInvoiceLinkExpired() {
|
|
4592
|
-
const expirationDate = new Date(this.date.setDate(this.date.getDate() + ServicePayment.daysToInvoiceUrlExpired));
|
|
4593
|
-
return expirationDate.getTime() < new Date().getTime();
|
|
4594
|
-
}
|
|
4595
|
-
}
|
|
4596
|
-
__decorate([
|
|
4597
|
-
Type(() => ServiceSubscription)
|
|
4598
|
-
], ServicePayment.prototype, "subscription", void 0);
|
|
4599
|
-
__decorate([
|
|
4600
|
-
Type(() => Date)
|
|
4601
|
-
], ServicePayment.prototype, "date", void 0);
|
|
4602
|
-
|
|
4603
|
-
let ServicePaymentMethod$1 = class ServicePaymentMethod extends AbstractModel {
|
|
4604
|
-
};
|
|
4605
|
-
|
|
4606
|
-
var PaymentMethodBrandEnum;
|
|
4607
|
-
(function (PaymentMethodBrandEnum) {
|
|
4608
|
-
PaymentMethodBrandEnum["UNKNOWN"] = "Unknown";
|
|
4609
|
-
PaymentMethodBrandEnum["AMEX"] = "American Express";
|
|
4610
|
-
PaymentMethodBrandEnum["DINERS"] = "Diners Club";
|
|
4611
|
-
PaymentMethodBrandEnum["DISCOVER"] = "Discover";
|
|
4612
|
-
PaymentMethodBrandEnum["JCB"] = "JCB";
|
|
4613
|
-
PaymentMethodBrandEnum["MASTERCARD"] = "Mastercard";
|
|
4614
|
-
PaymentMethodBrandEnum["UNIONPAY"] = "UnionPay";
|
|
4615
|
-
PaymentMethodBrandEnum["VISA"] = "Visa";
|
|
4616
|
-
})(PaymentMethodBrandEnum || (PaymentMethodBrandEnum = {}));
|
|
4617
|
-
|
|
4618
|
-
var ServicePaymentMethodCardBrandEnum;
|
|
4619
|
-
(function (ServicePaymentMethodCardBrandEnum) {
|
|
4620
|
-
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNKNOWN"] = 0] = "UNKNOWN";
|
|
4621
|
-
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["AMEX"] = 1] = "AMEX";
|
|
4622
|
-
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DINERS"] = 2] = "DINERS";
|
|
4623
|
-
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["DISCOVER"] = 3] = "DISCOVER";
|
|
4624
|
-
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["JCB"] = 4] = "JCB";
|
|
4625
|
-
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["MASTERCARD"] = 5] = "MASTERCARD";
|
|
4626
|
-
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["UNIONPAY"] = 6] = "UNIONPAY";
|
|
4627
|
-
ServicePaymentMethodCardBrandEnum[ServicePaymentMethodCardBrandEnum["VISA"] = 7] = "VISA";
|
|
4628
|
-
})(ServicePaymentMethodCardBrandEnum || (ServicePaymentMethodCardBrandEnum = {}));
|
|
4629
|
-
|
|
4630
|
-
var ServicePaymentMethodTypeEnum;
|
|
4631
|
-
(function (ServicePaymentMethodTypeEnum) {
|
|
4632
|
-
ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["AU_BECS_DEBIT"] = 1] = "AU_BECS_DEBIT";
|
|
4633
|
-
ServicePaymentMethodTypeEnum[ServicePaymentMethodTypeEnum["CARD"] = 2] = "CARD";
|
|
4634
|
-
})(ServicePaymentMethodTypeEnum || (ServicePaymentMethodTypeEnum = {}));
|
|
4635
|
-
|
|
4636
|
-
class ServicePaymentMethod extends ServicePaymentMethod$1 {
|
|
4637
|
-
get logo() {
|
|
4638
|
-
if (!this.isCard()) {
|
|
4639
|
-
return null;
|
|
4640
|
-
}
|
|
4641
|
-
return `/assets/img/payment-methods/${this.cardBrand}.svg`;
|
|
4642
|
-
}
|
|
4643
|
-
get brandName() {
|
|
4644
|
-
return this.isCard() ? PaymentMethodBrandEnum[ServicePaymentMethodCardBrandEnum[this.cardBrand]] : 'BECS Direct Debit (AU)';
|
|
4645
|
-
}
|
|
4646
|
-
/**
|
|
4647
|
-
* Get expiration date formatted string (MM/YY)
|
|
4648
|
-
*/
|
|
4649
|
-
get expirationDate() {
|
|
4650
|
-
if (!this.isCard()) {
|
|
4651
|
-
return null;
|
|
4652
|
-
}
|
|
4653
|
-
return `${('0' + this.cardExpirationMonth).slice(-2)}/${this.cardExpirationYear.toString().slice(-2)}`;
|
|
4654
|
-
}
|
|
4655
|
-
get description() {
|
|
4656
|
-
return `${this.brandName} ***${this.lastFourDigits}`;
|
|
4657
|
-
}
|
|
4658
|
-
isCard() {
|
|
4659
|
-
return this.type === ServicePaymentMethodTypeEnum.CARD;
|
|
4660
|
-
}
|
|
4661
|
-
}
|
|
4662
|
-
|
|
4663
|
-
/**
|
|
4664
|
-
* Enum with icon-names related to tank roles
|
|
4665
|
-
*/
|
|
4666
|
-
var ServiceProductIconsEnum;
|
|
4667
|
-
(function (ServiceProductIconsEnum) {
|
|
4668
|
-
ServiceProductIconsEnum["ROLE_USER_WORK"] = "icon-case";
|
|
4669
|
-
ServiceProductIconsEnum["ROLE_USER_PROPERTY"] = "icon-property";
|
|
4670
|
-
ServiceProductIconsEnum["ROLE_USER_SOLE"] = "icon-sole-tank";
|
|
4671
|
-
ServiceProductIconsEnum["ROLE_USER_HOLDING"] = "icon-holding-tank";
|
|
4672
|
-
})(ServiceProductIconsEnum || (ServiceProductIconsEnum = {}));
|
|
4673
|
-
|
|
4674
|
-
/**
|
|
4675
|
-
* List of user roles related to tanks (subscription products)
|
|
4676
|
-
*/
|
|
4677
|
-
const SERVICE_PRODUCT_ROLES = [
|
|
4678
|
-
UserRolesEnum.WORK_TANK,
|
|
4679
|
-
UserRolesEnum.PROPERTY_TANK,
|
|
4680
|
-
UserRolesEnum.SOLE_TANK,
|
|
4681
|
-
UserRolesEnum.HOLDING_TANK
|
|
4682
|
-
];
|
|
4683
|
-
|
|
4684
4701
|
class SoleBusinessAllocation extends SoleBusinessAllocation$1 {
|
|
4685
4702
|
}
|
|
4686
4703
|
__decorate([
|
|
@@ -5528,9 +5545,6 @@ __decorate([
|
|
|
5528
5545
|
__decorate([
|
|
5529
5546
|
Type(() => PropertyDocument)
|
|
5530
5547
|
], PropertyValuation.prototype, "document", void 0);
|
|
5531
|
-
__decorate([
|
|
5532
|
-
Type(() => Number)
|
|
5533
|
-
], PropertyValuation.prototype, "marketValue", void 0);
|
|
5534
5548
|
|
|
5535
5549
|
class PropertyForecast extends PropertyForecast$1 {
|
|
5536
5550
|
constructor() {
|
|
@@ -5604,6 +5618,9 @@ __decorate([
|
|
|
5604
5618
|
__decorate([
|
|
5605
5619
|
Type(() => PropertyCategory)
|
|
5606
5620
|
], PropertyCategoryMovement.prototype, "propertyCategory", void 0);
|
|
5621
|
+
__decorate([
|
|
5622
|
+
Type(() => Property)
|
|
5623
|
+
], PropertyCategoryMovement.prototype, "property", void 0);
|
|
5607
5624
|
__decorate([
|
|
5608
5625
|
Type(() => Date)
|
|
5609
5626
|
], PropertyCategoryMovement.prototype, "fromDate", void 0);
|
|
@@ -5635,11 +5652,8 @@ class Property extends Property$1 {
|
|
|
5635
5652
|
get capitalCostsTotalAmount() {
|
|
5636
5653
|
return this.stampDuty + this.legalFees + this.otherCapitalCosts;
|
|
5637
5654
|
}
|
|
5638
|
-
get currentYearValuations() {
|
|
5639
|
-
return this.valuations.filter((valuation) => valuation.isCurrentYear());
|
|
5640
|
-
}
|
|
5641
5655
|
get marketValue() {
|
|
5642
|
-
return this.
|
|
5656
|
+
return this.valuation?.marketValue || 0;
|
|
5643
5657
|
}
|
|
5644
5658
|
get currentYearForecast() {
|
|
5645
5659
|
return this.forecasts.find((forecast) => forecast.isCurrentYear());
|
|
@@ -5653,18 +5667,12 @@ class Property extends Property$1 {
|
|
|
5653
5667
|
get forecastedCashPosition() {
|
|
5654
5668
|
return this.currentYearForecast?.cashPosition || 0;
|
|
5655
5669
|
}
|
|
5656
|
-
get firstForecastYear() {
|
|
5657
|
-
return this.forecasts.reduce((min, forecast) => min > forecast.financialYear ? forecast.financialYear : min, new FinancialYear().year);
|
|
5658
|
-
}
|
|
5659
5670
|
get marketValueGrowth() {
|
|
5660
5671
|
return (this.marketValue - this.purchasePrice) / this.marketValue;
|
|
5661
5672
|
}
|
|
5662
5673
|
get myShare() {
|
|
5663
5674
|
return this.shares.find((share) => share.user.id === +localStorage.getItem('userId'));
|
|
5664
5675
|
}
|
|
5665
|
-
get actualValuation() {
|
|
5666
|
-
return this.valuations.reduce((maxDateValuation, valuation) => maxDateValuation.date > valuation.date ? maxDateValuation : valuation, this.valuations[0]);
|
|
5667
|
-
}
|
|
5668
5676
|
get claimPercent() {
|
|
5669
5677
|
return this.currentYearForecast.claimPercent;
|
|
5670
5678
|
}
|
|
@@ -5677,14 +5685,6 @@ class Property extends Property$1 {
|
|
|
5677
5685
|
get shareRatio() {
|
|
5678
5686
|
return this.myShare.percent / 100;
|
|
5679
5687
|
}
|
|
5680
|
-
get previousCategory() {
|
|
5681
|
-
let previousCategory;
|
|
5682
|
-
const movementsCount = this.categoryMovements.length;
|
|
5683
|
-
if (movementsCount > 1) {
|
|
5684
|
-
previousCategory = this.categoryMovements[movementsCount - 2].propertyCategory;
|
|
5685
|
-
}
|
|
5686
|
-
return previousCategory;
|
|
5687
|
-
}
|
|
5688
5688
|
getCurrentSubscription() {
|
|
5689
5689
|
// always return first element because subscriptions array contains only one element
|
|
5690
5690
|
return this.subscriptions[0];
|
|
@@ -5828,6 +5828,9 @@ __decorate([
|
|
|
5828
5828
|
__decorate([
|
|
5829
5829
|
Type(() => PropertyCategory)
|
|
5830
5830
|
], Property.prototype, "category", void 0);
|
|
5831
|
+
__decorate([
|
|
5832
|
+
Type(() => PropertyCategoryMovement)
|
|
5833
|
+
], Property.prototype, "categoryMovements", void 0);
|
|
5831
5834
|
__decorate([
|
|
5832
5835
|
Type(() => Number)
|
|
5833
5836
|
], Property.prototype, "stampDuty", void 0);
|
|
@@ -5837,15 +5840,18 @@ __decorate([
|
|
|
5837
5840
|
__decorate([
|
|
5838
5841
|
Type(() => Number)
|
|
5839
5842
|
], Property.prototype, "otherCapitalCosts", void 0);
|
|
5840
|
-
__decorate([
|
|
5841
|
-
Type(() => PropertyValuation)
|
|
5842
|
-
], Property.prototype, "valuations", void 0);
|
|
5843
5843
|
__decorate([
|
|
5844
5844
|
Type(() => PropertyForecast)
|
|
5845
5845
|
], Property.prototype, "forecasts", void 0);
|
|
5846
5846
|
__decorate([
|
|
5847
|
-
Type(() =>
|
|
5848
|
-
], Property.prototype, "
|
|
5847
|
+
Type(() => PropertyShare$1)
|
|
5848
|
+
], Property.prototype, "shares", void 0);
|
|
5849
|
+
__decorate([
|
|
5850
|
+
Type(() => PropertyValuation)
|
|
5851
|
+
], Property.prototype, "valuations", void 0);
|
|
5852
|
+
__decorate([
|
|
5853
|
+
Type(() => PropertyValuation)
|
|
5854
|
+
], Property.prototype, "valuation", void 0);
|
|
5849
5855
|
__decorate([
|
|
5850
5856
|
Type(() => User)
|
|
5851
5857
|
], Property.prototype, "user", void 0);
|
|
@@ -6239,17 +6245,6 @@ __decorate([
|
|
|
6239
6245
|
Type(() => User)
|
|
6240
6246
|
], BorrowingReport.prototype, "user", void 0);
|
|
6241
6247
|
|
|
6242
|
-
/**
|
|
6243
|
-
* @TODO used only on dashboard, move from tt-core
|
|
6244
|
-
* Enum with properties ownership filter options
|
|
6245
|
-
*/
|
|
6246
|
-
var ShareFilterOptionsEnum;
|
|
6247
|
-
(function (ShareFilterOptionsEnum) {
|
|
6248
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
|
|
6249
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
|
|
6250
|
-
ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
|
|
6251
|
-
})(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
|
|
6252
|
-
|
|
6253
6248
|
class TransactionMetaField extends TransactionMetaField$1 {
|
|
6254
6249
|
}
|
|
6255
6250
|
__decorate([
|
|
@@ -6267,7 +6262,6 @@ class BankTransaction extends BankTransaction$1 {
|
|
|
6267
6262
|
super(...arguments);
|
|
6268
6263
|
// allocated money amount for bank transaction
|
|
6269
6264
|
this.allocatedAmount = 0;
|
|
6270
|
-
this.unallocatedAmount = 0;
|
|
6271
6265
|
}
|
|
6272
6266
|
/**
|
|
6273
6267
|
* get allocated amount value but with +/- sign
|
|
@@ -9976,62 +9970,60 @@ var AppEventTypeEnum;
|
|
|
9976
9970
|
AppEventTypeEnum[AppEventTypeEnum["BANK_TRANSACTION_ALLOCATED"] = 2] = "BANK_TRANSACTION_ALLOCATED";
|
|
9977
9971
|
AppEventTypeEnum[AppEventTypeEnum["BANK_TRANSACTIONS_ADDED"] = 3] = "BANK_TRANSACTIONS_ADDED";
|
|
9978
9972
|
AppEventTypeEnum[AppEventTypeEnum["BANK_TRANSACTIONS_DELETED"] = 4] = "BANK_TRANSACTIONS_DELETED";
|
|
9979
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9980
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9981
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9982
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9983
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9984
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9985
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9986
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9987
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9988
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9989
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9990
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9991
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9992
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9993
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9994
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9995
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9996
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9997
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9998
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9999
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10000
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10001
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10002
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10003
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10004
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10005
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10006
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10007
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10008
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10009
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10010
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10011
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10012
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10013
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10014
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10015
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10016
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10017
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10018
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10019
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10020
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10021
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10022
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10023
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10024
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10025
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10026
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10027
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10028
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10029
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10030
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10031
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10032
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
10033
|
-
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 59] = "VEHICLE_LOGBOOK_DELETED";
|
|
10034
|
-
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 60] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
|
9973
|
+
AppEventTypeEnum[AppEventTypeEnum["BASIQ_CONNECTION_UPDATED"] = 5] = "BASIQ_CONNECTION_UPDATED";
|
|
9974
|
+
AppEventTypeEnum[AppEventTypeEnum["BASIQ_JOB_CREATED"] = 6] = "BASIQ_JOB_CREATED";
|
|
9975
|
+
AppEventTypeEnum[AppEventTypeEnum["BASIQ_LOGIN_SUCCESS"] = 7] = "BASIQ_LOGIN_SUCCESS";
|
|
9976
|
+
AppEventTypeEnum[AppEventTypeEnum["BASIQ_LOGIN_FAILED"] = 8] = "BASIQ_LOGIN_FAILED";
|
|
9977
|
+
AppEventTypeEnum[AppEventTypeEnum["BASIQ_ACCOUNTS_RETRIEVED"] = 9] = "BASIQ_ACCOUNTS_RETRIEVED";
|
|
9978
|
+
AppEventTypeEnum[AppEventTypeEnum["CLIENT_INVITE_ACCEPTED"] = 10] = "CLIENT_INVITE_ACCEPTED";
|
|
9979
|
+
AppEventTypeEnum[AppEventTypeEnum["CLIENT_OPEN_CHAT"] = 11] = "CLIENT_OPEN_CHAT";
|
|
9980
|
+
AppEventTypeEnum[AppEventTypeEnum["CLIENT_TRANSFER_TO_OTHER_EMPLOYEE"] = 12] = "CLIENT_TRANSFER_TO_OTHER_EMPLOYEE";
|
|
9981
|
+
AppEventTypeEnum[AppEventTypeEnum["CURRENT_USER_GET_FAILED"] = 13] = "CURRENT_USER_GET_FAILED";
|
|
9982
|
+
AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_DELETED"] = 14] = "DEPRECIATION_DELETED";
|
|
9983
|
+
AppEventTypeEnum[AppEventTypeEnum["DEPRECIATIONS_CREATED"] = 15] = "DEPRECIATIONS_CREATED";
|
|
9984
|
+
AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 16] = "INCOME_SOURCES_CREATED";
|
|
9985
|
+
AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 17] = "INCOME_SOURCES_UPDATED";
|
|
9986
|
+
AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 18] = "INCOME_SOURCES_FORECASTS_CREATED";
|
|
9987
|
+
AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 19] = "INCOME_SOURCES_FORECASTS_UPDATED";
|
|
9988
|
+
AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 20] = "LOAN_UPDATED";
|
|
9989
|
+
AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 21] = "LOAN_PAYOUT_UPDATED";
|
|
9990
|
+
AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 22] = "MESSAGE_CREATED";
|
|
9991
|
+
AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 23] = "MESSAGE_FILE_CREATED";
|
|
9992
|
+
AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 24] = "MESSAGE_FILE_DELETED";
|
|
9993
|
+
AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 25] = "NOTIFICATION_ADDED";
|
|
9994
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DEPRECIATION_CALCULATION_UPDATED"] = 26] = "PROPERTY_DEPRECIATION_CALCULATION_UPDATED";
|
|
9995
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED"] = 27] = "PROPERTY_UPDATED";
|
|
9996
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 28] = "PROPERTY_UPDATED_WITH_DOCUMENT";
|
|
9997
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 29] = "PROPERTY_DOCUMENT_ADDED";
|
|
9998
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 30] = "PROPERTY_MOVEMENT_CREATED";
|
|
9999
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 31] = "PROPERTY_MOVEMENT_UPDATED";
|
|
10000
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 32] = "PROPERTY_MOVEMENT_DELETED";
|
|
10001
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 33] = "PROPERTY_SHARE_UPDATED";
|
|
10002
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 34] = "PROPERTY_SALE_ADDED";
|
|
10003
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 35] = "PROPERTY_SALE_DELETED";
|
|
10004
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 36] = "PROPERTY_SUBSCRIPTION_ADDED";
|
|
10005
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 37] = "PROPERTY_SUBSCRIPTION_DELETED";
|
|
10006
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 38] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
|
|
10007
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_BUSINESS_CREATED"] = 39] = "SOLE_BUSINESS_CREATED";
|
|
10008
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_DEPRECIATION_METHOD_UPDATED"] = 40] = "SOLE_DEPRECIATION_METHOD_UPDATED";
|
|
10009
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_CREATED"] = 41] = "SOLE_DETAILS_CREATED";
|
|
10010
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_DETAILS_UPDATED"] = 42] = "SOLE_DETAILS_UPDATED";
|
|
10011
|
+
AppEventTypeEnum[AppEventTypeEnum["SOLE_INVOICE_PUBLISHED"] = 43] = "SOLE_INVOICE_PUBLISHED";
|
|
10012
|
+
AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 44] = "TAX_REVIEW_UPDATED";
|
|
10013
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_CREATED"] = 45] = "TRANSACTION_ALLOCATION_CREATED";
|
|
10014
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_ALLOCATION_DELETED"] = 46] = "TRANSACTION_ALLOCATION_DELETED";
|
|
10015
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 47] = "TRANSACTION_CREATED";
|
|
10016
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 48] = "TRANSACTION_DELETED";
|
|
10017
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 49] = "TRANSACTION_UPDATED";
|
|
10018
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 50] = "TRANSACTIONS_CREATED";
|
|
10019
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 51] = "VEHICLE_CLAIM_UPDATED";
|
|
10020
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 52] = "VEHICLE_CLAIM_CREATED";
|
|
10021
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 53] = "VEHICLE_CLAIM_DETAILS_UPDATED";
|
|
10022
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 54] = "VEHICLE_CLAIM_DETAILS_CREATED";
|
|
10023
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 55] = "VEHICLE_LOGBOOK_CREATED";
|
|
10024
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 56] = "VEHICLE_LOGBOOK_UPDATED";
|
|
10025
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 57] = "VEHICLE_LOGBOOK_DELETED";
|
|
10026
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 58] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
|
10035
10027
|
})(AppEventTypeEnum || (AppEventTypeEnum = {}));
|
|
10036
10028
|
|
|
10037
10029
|
/**
|
|
@@ -10351,12 +10343,10 @@ class Budget extends Budget$1 {
|
|
|
10351
10343
|
}
|
|
10352
10344
|
}
|
|
10353
10345
|
__decorate([
|
|
10354
|
-
Type(() => BudgetRule)
|
|
10355
|
-
Expose()
|
|
10346
|
+
Type(() => BudgetRule)
|
|
10356
10347
|
], Budget.prototype, "rules", void 0);
|
|
10357
10348
|
__decorate([
|
|
10358
|
-
Type(() => User)
|
|
10359
|
-
Expose()
|
|
10349
|
+
Type(() => User)
|
|
10360
10350
|
], Budget.prototype, "user", void 0);
|
|
10361
10351
|
|
|
10362
10352
|
class TaxReturnCategory extends TaxReturnCategory$1 {
|
|
@@ -10544,6 +10534,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
10544
10534
|
}]
|
|
10545
10535
|
}] });
|
|
10546
10536
|
|
|
10537
|
+
class AuthService {
|
|
10538
|
+
constructor(http, jwtService, mpService, environment) {
|
|
10539
|
+
this.http = http;
|
|
10540
|
+
this.jwtService = jwtService;
|
|
10541
|
+
this.mpService = mpService;
|
|
10542
|
+
this.environment = environment;
|
|
10543
|
+
this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
|
|
10544
|
+
}
|
|
10545
|
+
setAuth(response) {
|
|
10546
|
+
this.jwtService.saveTokens(response);
|
|
10547
|
+
this.isLoggedInSubject.next(true);
|
|
10548
|
+
}
|
|
10549
|
+
login(username, password) {
|
|
10550
|
+
return this.http.post(`${this.environment.apiV2}/login`, { username, password }).pipe(map((response) => {
|
|
10551
|
+
this.setAuth(response);
|
|
10552
|
+
this.mpService.track('login');
|
|
10553
|
+
return response;
|
|
10554
|
+
}), catchError((error) => {
|
|
10555
|
+
this.mpService.track('loginError', { username });
|
|
10556
|
+
return throwError(error);
|
|
10557
|
+
}));
|
|
10558
|
+
}
|
|
10559
|
+
refresh(refreshToken) {
|
|
10560
|
+
return this.http.post(`${this.environment.apiV2}/token/refresh`, { refreshToken }).pipe(map((response) => {
|
|
10561
|
+
this.setAuth(response);
|
|
10562
|
+
return response;
|
|
10563
|
+
}));
|
|
10564
|
+
}
|
|
10565
|
+
logoutFront(url = '/login') {
|
|
10566
|
+
localStorage.clear();
|
|
10567
|
+
this.mpService.track('logout');
|
|
10568
|
+
this.mpService.reset();
|
|
10569
|
+
location.replace(url);
|
|
10570
|
+
}
|
|
10571
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: MixpanelService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10572
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, providedIn: 'root' }); }
|
|
10573
|
+
}
|
|
10574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, decorators: [{
|
|
10575
|
+
type: Injectable,
|
|
10576
|
+
args: [{
|
|
10577
|
+
providedIn: 'root'
|
|
10578
|
+
}]
|
|
10579
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: JwtService }, { type: MixpanelService }, { type: undefined, decorators: [{
|
|
10580
|
+
type: Inject,
|
|
10581
|
+
args: ['environment']
|
|
10582
|
+
}] }]; } });
|
|
10583
|
+
|
|
10547
10584
|
/**
|
|
10548
10585
|
* server sent events service
|
|
10549
10586
|
* https://symfony.com/doc/current/mercure.html
|
|
@@ -10641,8 +10678,7 @@ class DataService {
|
|
|
10641
10678
|
* @param model Single object or array from which will be created model instance(s)
|
|
10642
10679
|
*/
|
|
10643
10680
|
createModelInstance(model) {
|
|
10644
|
-
|
|
10645
|
-
return plainToClass(this.modelClass, model, { excludePrefixes: ['@'] });
|
|
10681
|
+
return plainToClass(this.modelClass, model);
|
|
10646
10682
|
}
|
|
10647
10683
|
createCollectionInstance(collectionClass, items) {
|
|
10648
10684
|
return new collectionClass(items);
|
|
@@ -10754,10 +10790,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
10754
10790
|
* CollectionModel - entity collection class
|
|
10755
10791
|
*/
|
|
10756
10792
|
let RestService$1 = class RestService extends DataService {
|
|
10757
|
-
constructor(
|
|
10793
|
+
constructor(environment) {
|
|
10758
10794
|
super();
|
|
10759
|
-
this.http = http;
|
|
10760
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
10761
10795
|
this.environment = environment;
|
|
10762
10796
|
/**
|
|
10763
10797
|
* Subject for service cache
|
|
@@ -10772,15 +10806,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10772
10806
|
this.mpService = inject(MixpanelService);
|
|
10773
10807
|
this.sseService = inject(SseService);
|
|
10774
10808
|
this.toastService = inject(ToastService);
|
|
10809
|
+
this.http = inject(HttpClient);
|
|
10810
|
+
this.eventDispatcherService = inject(EventDispatcherService);
|
|
10775
10811
|
this.roles = [];
|
|
10776
|
-
/**
|
|
10777
|
-
* disable cache update by requests, update only by SSE events
|
|
10778
|
-
*/
|
|
10779
|
-
this.disableCache = false;
|
|
10780
|
-
// @TODO Alex remove, bad idea to call empty method overrided in child (because it will be called with parent context)
|
|
10781
|
-
this.listenEvents();
|
|
10782
|
-
// @TODO Alex remove, bad idea to call empty method overrided in child (because it will be called with parent context)
|
|
10783
|
-
this.listenSSE();
|
|
10784
10812
|
}
|
|
10785
10813
|
get apiUrl() {
|
|
10786
10814
|
return `${this.environment.apiV2}/${this.endpointUri}`;
|
|
@@ -10810,7 +10838,7 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10810
10838
|
// Set cache as empty collection to avoid multiple requests before cache filled
|
|
10811
10839
|
this.setCache([]);
|
|
10812
10840
|
return this.http.get(path)
|
|
10813
|
-
.pipe(map((response) =>
|
|
10841
|
+
.pipe(map((response) => isArray(response) ? response : toArray(response)), map((response) => {
|
|
10814
10842
|
this.setCache(response, true);
|
|
10815
10843
|
return this.cache;
|
|
10816
10844
|
}));
|
|
@@ -10839,7 +10867,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10839
10867
|
return this.http.post(path, classToPlain(model))
|
|
10840
10868
|
.pipe(map((response) => {
|
|
10841
10869
|
const result = this.createModelInstance(response);
|
|
10842
|
-
this.
|
|
10870
|
+
if (!this.mercureTopic) {
|
|
10871
|
+
this.handleResponse([result], 'post', mpData);
|
|
10872
|
+
}
|
|
10843
10873
|
return result;
|
|
10844
10874
|
}), catchError((error) => {
|
|
10845
10875
|
this.handleResponseError([model], 'post', mpData);
|
|
@@ -10854,7 +10884,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10854
10884
|
return this.http.post(this.apiUrl, classToPlain(models))
|
|
10855
10885
|
.pipe(map((response) => {
|
|
10856
10886
|
const result = response.map((item) => this.createModelInstance(item));
|
|
10857
|
-
this.
|
|
10887
|
+
if (!this.mercureTopic) {
|
|
10888
|
+
this.handleResponse(result, 'post');
|
|
10889
|
+
}
|
|
10858
10890
|
return result;
|
|
10859
10891
|
}), catchError((error) => {
|
|
10860
10892
|
this.handleResponseError(models, 'post');
|
|
@@ -10869,7 +10901,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10869
10901
|
return this.http.put(path, classToPlain(model))
|
|
10870
10902
|
.pipe(map((response) => {
|
|
10871
10903
|
const result = this.createModelInstance(response);
|
|
10872
|
-
this.
|
|
10904
|
+
if (!this.mercureTopic) {
|
|
10905
|
+
this.handleResponse([result], 'put', mpData);
|
|
10906
|
+
}
|
|
10873
10907
|
return result;
|
|
10874
10908
|
}), catchError((error) => {
|
|
10875
10909
|
this.handleResponseError([model], 'put', mpData);
|
|
@@ -10884,7 +10918,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10884
10918
|
return this.http.put(this.apiUrl, classToPlain(models))
|
|
10885
10919
|
.pipe(map((response) => {
|
|
10886
10920
|
const result = response.map((item) => this.createModelInstance(item));
|
|
10887
|
-
this.
|
|
10921
|
+
if (!this.mercureTopic) {
|
|
10922
|
+
this.handleResponse(result, 'put');
|
|
10923
|
+
}
|
|
10888
10924
|
return result;
|
|
10889
10925
|
}), catchError((error) => {
|
|
10890
10926
|
this.handleResponseError(models, 'put');
|
|
@@ -10898,7 +10934,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10898
10934
|
this.handleAccessError('delete');
|
|
10899
10935
|
return this.http.delete(`${this.apiUrl}/${model.id}`)
|
|
10900
10936
|
.pipe(map(() => {
|
|
10901
|
-
this.
|
|
10937
|
+
if (!this.mercureTopic) {
|
|
10938
|
+
this.handleResponse([model], 'delete', mpData);
|
|
10939
|
+
}
|
|
10902
10940
|
}), catchError((error) => {
|
|
10903
10941
|
this.handleResponseError([model], 'delete', mpData);
|
|
10904
10942
|
return throwError(error);
|
|
@@ -10911,7 +10949,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10911
10949
|
this.handleAccessError('deleteBatch');
|
|
10912
10950
|
return this.http.post(`${this.apiUrl}/delete`, classToPlain(models))
|
|
10913
10951
|
.pipe(map(() => {
|
|
10914
|
-
this.
|
|
10952
|
+
if (!this.mercureTopic) {
|
|
10953
|
+
this.handleResponse(models, 'delete');
|
|
10954
|
+
}
|
|
10915
10955
|
}), catchError((error) => {
|
|
10916
10956
|
this.handleResponseError(models, 'delete');
|
|
10917
10957
|
return throwError(error);
|
|
@@ -10938,7 +10978,7 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10938
10978
|
*/
|
|
10939
10979
|
handleResponse(response, method, mpData) {
|
|
10940
10980
|
this.track(response, method, mpData);
|
|
10941
|
-
if (this.getCache()
|
|
10981
|
+
if (this.getCache()) {
|
|
10942
10982
|
this.updateCache(response, method);
|
|
10943
10983
|
}
|
|
10944
10984
|
// dispatch event for interested services
|
|
@@ -10993,7 +11033,7 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10993
11033
|
* @param methods The list of http methods should be listened for
|
|
10994
11034
|
* @param callback The function to be called when event triggered
|
|
10995
11035
|
*/
|
|
10996
|
-
listenCSE(modelClass, methods,
|
|
11036
|
+
listenCSE(modelClass, callback, methods = ['post', 'put', 'delete']) {
|
|
10997
11037
|
callback = callback.bind(this);
|
|
10998
11038
|
methods.forEach((method) => {
|
|
10999
11039
|
this.eventDispatcherService.on2(modelClass.getEventName(method)).subscribe((data) => {
|
|
@@ -11011,15 +11051,29 @@ let RestService$1 = class RestService extends DataService {
|
|
|
11011
11051
|
return !!intersection(JSON.parse(localStorage.getItem('roles')), this.roles).length;
|
|
11012
11052
|
}
|
|
11013
11053
|
/**
|
|
11014
|
-
*
|
|
11015
|
-
* Method that call all listeners. Empty by default. Should be redefined by child services if required
|
|
11054
|
+
* Listen for Server-Sent Events (SSE) on the specified Mercure topic
|
|
11016
11055
|
*/
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11056
|
+
listenSSE() {
|
|
11057
|
+
if (!this.mercureTopic) {
|
|
11058
|
+
return;
|
|
11059
|
+
}
|
|
11060
|
+
this.sseService.on(this.mercureTopic).pipe(map((response) => {
|
|
11061
|
+
let model = this.createModelInstance(response);
|
|
11062
|
+
let method;
|
|
11063
|
+
if (model.id) {
|
|
11064
|
+
method = this.hasInCache(model.id) ? 'put' : 'post';
|
|
11065
|
+
}
|
|
11066
|
+
else {
|
|
11067
|
+
method = 'delete';
|
|
11068
|
+
// we got empty body when item deleted, so we should get id from Api Platform data (@id)
|
|
11069
|
+
model = merge(model, { id: +last$1(model['@id'].split('/')) });
|
|
11070
|
+
}
|
|
11071
|
+
return { method, model };
|
|
11072
|
+
})).subscribe((change) => {
|
|
11073
|
+
this.handleResponse([change.model], change.method);
|
|
11074
|
+
});
|
|
11075
|
+
}
|
|
11076
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RestService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11023
11077
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RestService, providedIn: 'root' }); }
|
|
11024
11078
|
};
|
|
11025
11079
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RestService$1, decorators: [{
|
|
@@ -11027,7 +11081,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11027
11081
|
args: [{
|
|
11028
11082
|
providedIn: 'root'
|
|
11029
11083
|
}]
|
|
11030
|
-
}], ctorParameters: function () { return [{ type:
|
|
11084
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
11031
11085
|
type: Inject,
|
|
11032
11086
|
args: ['environment']
|
|
11033
11087
|
}] }]; } });
|
|
@@ -11037,7 +11091,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11037
11091
|
*/
|
|
11038
11092
|
class BankAccountService extends RestService$1 {
|
|
11039
11093
|
constructor(http, eventDispatcherService, sseService, environment) {
|
|
11040
|
-
super(
|
|
11094
|
+
super(environment);
|
|
11041
11095
|
this.http = http;
|
|
11042
11096
|
this.eventDispatcherService = eventDispatcherService;
|
|
11043
11097
|
this.sseService = sseService;
|
|
@@ -11046,16 +11100,17 @@ class BankAccountService extends RestService$1 {
|
|
|
11046
11100
|
this.modelClass = BankAccount;
|
|
11047
11101
|
this.collectionClass = BankAccountCollection;
|
|
11048
11102
|
this.disabledMethods = ['post', 'putBatch', 'delete', 'deleteBatch'];
|
|
11049
|
-
this.
|
|
11103
|
+
this.listenEvents();
|
|
11050
11104
|
}
|
|
11051
11105
|
/**
|
|
11052
11106
|
* Listen system notifications and update cache when got basiq notification received
|
|
11053
11107
|
*/
|
|
11054
11108
|
listenEvents() {
|
|
11055
11109
|
this.listenToEventDispatcherChanges();
|
|
11056
|
-
this.listenCSE(BankTransaction, ['post', 'delete']
|
|
11057
|
-
this.listenCSE(PropertyShare, ['put']
|
|
11058
|
-
this.listenCSE(BankConnection, ['post']
|
|
11110
|
+
this.listenCSE(BankTransaction, this.refreshCache, ['post', 'delete']);
|
|
11111
|
+
this.listenCSE(PropertyShare, this.refreshCache, ['put']);
|
|
11112
|
+
this.listenCSE(BankConnection, this.refreshCache, ['post']);
|
|
11113
|
+
this.listenConnections();
|
|
11059
11114
|
}
|
|
11060
11115
|
/**
|
|
11061
11116
|
* Update bank account current balance
|
|
@@ -11081,7 +11136,7 @@ class BankAccountService extends RestService$1 {
|
|
|
11081
11136
|
});
|
|
11082
11137
|
}
|
|
11083
11138
|
/**
|
|
11084
|
-
* @TODO
|
|
11139
|
+
* @TODO remove when TT-3826 is ready
|
|
11085
11140
|
* manualConnection moved to basiq, old manual bankAccounts closed to let user add automated bankAccounts (because there is no reliable way to merge)
|
|
11086
11141
|
*/
|
|
11087
11142
|
listenConnections() {
|
|
@@ -11130,18 +11185,19 @@ var BankConnectionMessagesEnum;
|
|
|
11130
11185
|
* service handles BankConnection management
|
|
11131
11186
|
*/
|
|
11132
11187
|
class BankConnectionService extends RestService$1 {
|
|
11133
|
-
constructor(
|
|
11134
|
-
super(
|
|
11135
|
-
this.http = http;
|
|
11136
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
11137
|
-
this.sseService = sseService;
|
|
11188
|
+
constructor(environment) {
|
|
11189
|
+
super(environment);
|
|
11138
11190
|
this.environment = environment;
|
|
11139
|
-
this.isApiPlatform = true;
|
|
11140
11191
|
this.modelClass = BankConnection;
|
|
11141
11192
|
this.collectionClass = Collection;
|
|
11142
11193
|
this.endpointUri = 'bank-connections';
|
|
11143
11194
|
this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
|
|
11144
|
-
this.
|
|
11195
|
+
this.mercureTopic = 'bankConnections';
|
|
11196
|
+
this.listenEvents();
|
|
11197
|
+
}
|
|
11198
|
+
listenEvents() {
|
|
11199
|
+
// @TODO remove when TT-3826 is ready
|
|
11200
|
+
this.listenSSE();
|
|
11145
11201
|
}
|
|
11146
11202
|
/**
|
|
11147
11203
|
* there is no put BankConnection method, we have to post to update
|
|
@@ -11186,15 +11242,7 @@ class BankConnectionService extends RestService$1 {
|
|
|
11186
11242
|
deactivate(bankConnection) {
|
|
11187
11243
|
return this.put(bankConnection, null, `${this.apiUrl}/${bankConnection.id}/deactivate`);
|
|
11188
11244
|
}
|
|
11189
|
-
|
|
11190
|
-
* connection's status updated in background on backend, so reset cache required to inform user
|
|
11191
|
-
*/
|
|
11192
|
-
listenBankConnections() {
|
|
11193
|
-
this.sseService.on(`bankConnections`).subscribe((bankConnection) => {
|
|
11194
|
-
this.refreshCache();
|
|
11195
|
-
});
|
|
11196
|
-
}
|
|
11197
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankConnectionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankConnectionService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11198
11246
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankConnectionService, providedIn: 'root' }); }
|
|
11199
11247
|
}
|
|
11200
11248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankConnectionService, decorators: [{
|
|
@@ -11202,7 +11250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11202
11250
|
args: [{
|
|
11203
11251
|
providedIn: 'root'
|
|
11204
11252
|
}]
|
|
11205
|
-
}], ctorParameters: function () { return [{ type:
|
|
11253
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
11206
11254
|
type: Inject,
|
|
11207
11255
|
args: ['environment']
|
|
11208
11256
|
}] }]; } });
|
|
@@ -11259,12 +11307,14 @@ var UserEventTypeTypeEnum;
|
|
|
11259
11307
|
* Service for bank transactions business logic
|
|
11260
11308
|
*/
|
|
11261
11309
|
class BankTransactionService extends RestService$1 {
|
|
11262
|
-
constructor() {
|
|
11263
|
-
super(
|
|
11310
|
+
constructor(environment) {
|
|
11311
|
+
super(environment);
|
|
11312
|
+
this.environment = environment;
|
|
11264
11313
|
this.endpointUri = 'bank-transactions';
|
|
11265
11314
|
this.modelClass = BankTransaction;
|
|
11266
11315
|
this.collectionClass = BankTransactionCollection;
|
|
11267
11316
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'deleteBatch'];
|
|
11317
|
+
this.listenEvents();
|
|
11268
11318
|
}
|
|
11269
11319
|
listenEvents() {
|
|
11270
11320
|
this.listenBankTransactionsImport();
|
|
@@ -11309,7 +11359,7 @@ class BankTransactionService extends RestService$1 {
|
|
|
11309
11359
|
}
|
|
11310
11360
|
});
|
|
11311
11361
|
}
|
|
11312
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankTransactionService, deps:
|
|
11362
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankTransactionService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11313
11363
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankTransactionService, providedIn: 'root' }); }
|
|
11314
11364
|
}
|
|
11315
11365
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankTransactionService, decorators: [{
|
|
@@ -11317,7 +11367,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11317
11367
|
args: [{
|
|
11318
11368
|
providedIn: 'root'
|
|
11319
11369
|
}]
|
|
11320
|
-
}]
|
|
11370
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
11371
|
+
type: Inject,
|
|
11372
|
+
args: ['environment']
|
|
11373
|
+
}] }]; } });
|
|
11321
11374
|
|
|
11322
11375
|
/**
|
|
11323
11376
|
* @TODO Alex shouldn't be a separated service, move to basiqService or interceptor
|
|
@@ -11372,7 +11425,7 @@ class BasiqService extends RestService$1 {
|
|
|
11372
11425
|
constructor(http, eventDispatcherService, environment,
|
|
11373
11426
|
// this inject required to init bank connection service and listen basiq login event
|
|
11374
11427
|
bankConnectionService) {
|
|
11375
|
-
super(
|
|
11428
|
+
super(environment);
|
|
11376
11429
|
this.http = http;
|
|
11377
11430
|
this.eventDispatcherService = eventDispatcherService;
|
|
11378
11431
|
this.environment = environment;
|
|
@@ -11381,6 +11434,7 @@ class BasiqService extends RestService$1 {
|
|
|
11381
11434
|
this.collectionClass = BankAccountCollection;
|
|
11382
11435
|
this.modelClass = BankAccount;
|
|
11383
11436
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
11437
|
+
this.listenEvents();
|
|
11384
11438
|
}
|
|
11385
11439
|
/**
|
|
11386
11440
|
* Listen events from Event Dispatcher service
|
|
@@ -11394,11 +11448,10 @@ class BasiqService extends RestService$1 {
|
|
|
11394
11448
|
*/
|
|
11395
11449
|
deleteBasiq(connection) {
|
|
11396
11450
|
return this.http.put(`${this.environment.apiV2}/bank-connections/${connection.id}/remove-basiq`, {})
|
|
11397
|
-
.pipe(map((connection) =>
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
}));
|
|
11451
|
+
.pipe(map((connection) => connection
|
|
11452
|
+
// @TODO Alex token should be inside this service
|
|
11453
|
+
// this.redirectToBasiqConsent(token.value, connection.bank.externalId, true);
|
|
11454
|
+
));
|
|
11402
11455
|
}
|
|
11403
11456
|
revokeConsent() {
|
|
11404
11457
|
return this.http.delete(`${this.environment.apiV2}/basiq/consent`);
|
|
@@ -11500,7 +11553,6 @@ class BankService extends RestService$1 {
|
|
|
11500
11553
|
this.modelClass = Bank;
|
|
11501
11554
|
this.collectionClass = Collection;
|
|
11502
11555
|
this.endpointUri = 'banks';
|
|
11503
|
-
this.isApiPlatform = true;
|
|
11504
11556
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
11505
11557
|
}
|
|
11506
11558
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -11519,7 +11571,6 @@ class BudgetService extends RestService$1 {
|
|
|
11519
11571
|
this.modelClass = Budget;
|
|
11520
11572
|
this.collectionClass = Collection;
|
|
11521
11573
|
this.endpointUri = 'budgets';
|
|
11522
|
-
this.isApiPlatform = true;
|
|
11523
11574
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
11524
11575
|
}
|
|
11525
11576
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -11549,7 +11600,6 @@ class ChartAccountsDepreciationService extends RestService$1 {
|
|
|
11549
11600
|
this.endpointUri = 'chart-accounts-depreciations';
|
|
11550
11601
|
this.modelClass = ChartAccountsDepreciation;
|
|
11551
11602
|
this.collectionClass = Collection;
|
|
11552
|
-
this.isApiPlatform = true;
|
|
11553
11603
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
11554
11604
|
}
|
|
11555
11605
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -11608,16 +11658,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11608
11658
|
* Service for work with chats
|
|
11609
11659
|
*/
|
|
11610
11660
|
class ChatService extends RestService$1 {
|
|
11611
|
-
constructor(
|
|
11612
|
-
super(
|
|
11613
|
-
this.http = http;
|
|
11614
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
11661
|
+
constructor(environment) {
|
|
11662
|
+
super(environment);
|
|
11615
11663
|
this.environment = environment;
|
|
11616
11664
|
this.modelClass = Chat;
|
|
11617
11665
|
this.collectionClass = ChatCollection;
|
|
11618
11666
|
this.endpointUri = 'chats';
|
|
11619
|
-
this.isApiPlatform = true;
|
|
11620
11667
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
11668
|
+
this.listenEvents();
|
|
11669
|
+
}
|
|
11670
|
+
listenEvents() {
|
|
11621
11671
|
this.listenChats();
|
|
11622
11672
|
this.listenMessages();
|
|
11623
11673
|
}
|
|
@@ -11626,7 +11676,7 @@ class ChatService extends RestService$1 {
|
|
|
11626
11676
|
return super.get(path).pipe(map((chats) => chats.filter((chat) => chat.employee.email !== this.environment.ttAdvisor)));
|
|
11627
11677
|
}
|
|
11628
11678
|
/**
|
|
11629
|
-
*
|
|
11679
|
+
* @TODO refactor with listenSSE method
|
|
11630
11680
|
*/
|
|
11631
11681
|
listenChats() {
|
|
11632
11682
|
this.sseService.on(`chats`).subscribe((chatBase) => {
|
|
@@ -11660,15 +11710,15 @@ class ChatService extends RestService$1 {
|
|
|
11660
11710
|
* Update chat's 'updatedAt' field with the last chat's message date for chat list sorting
|
|
11661
11711
|
*/
|
|
11662
11712
|
listenMessages() {
|
|
11663
|
-
this.listenCSE(Message,
|
|
11713
|
+
this.listenCSE(Message, (messages) => {
|
|
11664
11714
|
const message = messages[0];
|
|
11665
11715
|
const cache = this.cache.toArray();
|
|
11666
11716
|
const updatedChat = cache.find((chat) => chat?.id === message.chat?.id);
|
|
11667
11717
|
updatedChat.updatedAt = message?.createdAt;
|
|
11668
11718
|
this.handleResponse([updatedChat], 'put');
|
|
11669
|
-
});
|
|
11719
|
+
}, ['post']);
|
|
11670
11720
|
}
|
|
11671
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatService, deps: [{ token:
|
|
11721
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11672
11722
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatService, providedIn: 'root' }); }
|
|
11673
11723
|
}
|
|
11674
11724
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChatService, decorators: [{
|
|
@@ -11676,7 +11726,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11676
11726
|
args: [{
|
|
11677
11727
|
providedIn: 'root'
|
|
11678
11728
|
}]
|
|
11679
|
-
}], ctorParameters: function () { return [{ type:
|
|
11729
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
11680
11730
|
type: Inject,
|
|
11681
11731
|
args: ['environment']
|
|
11682
11732
|
}] }]; } });
|
|
@@ -11685,48 +11735,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11685
11735
|
* Service for work with messages
|
|
11686
11736
|
*/
|
|
11687
11737
|
class MessageService extends RestService$1 {
|
|
11688
|
-
constructor(
|
|
11689
|
-
super(
|
|
11690
|
-
this.http = http;
|
|
11691
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
11738
|
+
constructor(environment) {
|
|
11739
|
+
super(environment);
|
|
11692
11740
|
this.environment = environment;
|
|
11693
11741
|
this.modelClass = Message;
|
|
11694
11742
|
this.collectionClass = MessageCollection;
|
|
11695
11743
|
this.endpointUri = 'messages';
|
|
11696
|
-
this.isApiPlatform = true;
|
|
11697
11744
|
this.disabledMethods = ['postBatch', 'putBatch'];
|
|
11698
|
-
this.
|
|
11699
|
-
|
|
11700
|
-
/**
|
|
11701
|
-
* Overwrite default methods because we need to handle messages via SSE events only
|
|
11702
|
-
*/
|
|
11703
|
-
post(message) {
|
|
11704
|
-
return this.http.post(this.apiUrl, message)
|
|
11705
|
-
.pipe(map((response) => plainToClass(Message, response)));
|
|
11706
|
-
}
|
|
11707
|
-
/**
|
|
11708
|
-
* Overwrite default methods because we need to handle messages via SSE events only
|
|
11709
|
-
*/
|
|
11710
|
-
put(message) {
|
|
11711
|
-
return this.http.put(`${this.apiUrl}/${message.id}`, message)
|
|
11712
|
-
.pipe(map((response) => plainToClass(Message, response)));
|
|
11745
|
+
this.mercureTopic = 'messages';
|
|
11746
|
+
this.listenEvents();
|
|
11713
11747
|
}
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
*/
|
|
11717
|
-
listenMessages() {
|
|
11718
|
-
this.sseService.on(`messages`).subscribe((messageBase) => {
|
|
11719
|
-
const message = plainToClass(Message, messageBase);
|
|
11720
|
-
// update existing message if read and add new message if not read
|
|
11721
|
-
if (this.cache.findBy('id', message.id)) {
|
|
11722
|
-
this.handleResponse([message], 'put');
|
|
11723
|
-
}
|
|
11724
|
-
else {
|
|
11725
|
-
this.handleResponse([message], 'post');
|
|
11726
|
-
}
|
|
11727
|
-
});
|
|
11748
|
+
listenEvents() {
|
|
11749
|
+
this.listenSSE();
|
|
11728
11750
|
}
|
|
11729
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, deps: [{ token:
|
|
11751
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11730
11752
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, providedIn: 'root' }); }
|
|
11731
11753
|
}
|
|
11732
11754
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, decorators: [{
|
|
@@ -11734,7 +11756,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11734
11756
|
args: [{
|
|
11735
11757
|
providedIn: 'root'
|
|
11736
11758
|
}]
|
|
11737
|
-
}], ctorParameters: function () { return [{ type:
|
|
11759
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
11738
11760
|
type: Inject,
|
|
11739
11761
|
args: ['environment']
|
|
11740
11762
|
}] }]; } });
|
|
@@ -11743,13 +11765,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11743
11765
|
* Service for work with Message Documents
|
|
11744
11766
|
*/
|
|
11745
11767
|
class MessageDocumentService extends RestService$1 {
|
|
11746
|
-
constructor() {
|
|
11747
|
-
super(
|
|
11768
|
+
constructor(environment) {
|
|
11769
|
+
super(environment);
|
|
11770
|
+
this.environment = environment;
|
|
11748
11771
|
this.modelClass = MessageDocument;
|
|
11749
11772
|
this.collectionClass = MessageDocumentCollection;
|
|
11750
11773
|
this.endpointUri = 'message-documents';
|
|
11751
11774
|
this.disabledMethods = ['postBatch', 'deleteBatch', 'put', 'putBatch'];
|
|
11752
|
-
this.
|
|
11775
|
+
this.listenEvents();
|
|
11753
11776
|
}
|
|
11754
11777
|
/**
|
|
11755
11778
|
* SSE and Event Dispatcher Services listeners
|
|
@@ -11761,7 +11784,7 @@ class MessageDocumentService extends RestService$1 {
|
|
|
11761
11784
|
* listen new messages event to update documents cache
|
|
11762
11785
|
*/
|
|
11763
11786
|
listenMessages() {
|
|
11764
|
-
this.listenCSE(Message,
|
|
11787
|
+
this.listenCSE(Message, (messages) => {
|
|
11765
11788
|
const message = messages[0];
|
|
11766
11789
|
if (message.documents?.length) {
|
|
11767
11790
|
const array = this.cache.toArray();
|
|
@@ -11775,7 +11798,7 @@ class MessageDocumentService extends RestService$1 {
|
|
|
11775
11798
|
this.cache = new MessageDocumentCollection(array);
|
|
11776
11799
|
this.cacheSubject.next(this.cache);
|
|
11777
11800
|
}
|
|
11778
|
-
});
|
|
11801
|
+
}, ['post']);
|
|
11779
11802
|
}
|
|
11780
11803
|
/**
|
|
11781
11804
|
* Upload file to chat
|
|
@@ -11797,7 +11820,7 @@ class MessageDocumentService extends RestService$1 {
|
|
|
11797
11820
|
addBatch(chatId, files) {
|
|
11798
11821
|
return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
|
|
11799
11822
|
}
|
|
11800
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageDocumentService, deps:
|
|
11823
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageDocumentService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11801
11824
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageDocumentService, providedIn: 'root' }); }
|
|
11802
11825
|
}
|
|
11803
11826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageDocumentService, decorators: [{
|
|
@@ -11805,11 +11828,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
11805
11828
|
args: [{
|
|
11806
11829
|
providedIn: 'root'
|
|
11807
11830
|
}]
|
|
11808
|
-
}]
|
|
11831
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
11832
|
+
type: Inject,
|
|
11833
|
+
args: ['environment']
|
|
11834
|
+
}] }]; } });
|
|
11809
11835
|
|
|
11810
11836
|
class DepreciationService extends RestService$1 {
|
|
11811
11837
|
constructor(http, eventDispatcherService, environment) {
|
|
11812
|
-
super(
|
|
11838
|
+
super(environment);
|
|
11813
11839
|
this.http = http;
|
|
11814
11840
|
this.eventDispatcherService = eventDispatcherService;
|
|
11815
11841
|
this.environment = environment;
|
|
@@ -11817,6 +11843,7 @@ class DepreciationService extends RestService$1 {
|
|
|
11817
11843
|
this.collectionClass = DepreciationCollection;
|
|
11818
11844
|
this.endpointUri = 'depreciations';
|
|
11819
11845
|
this.disabledMethods = ['post', 'putBatch', 'deleteBatch'];
|
|
11846
|
+
this.listenEvents();
|
|
11820
11847
|
}
|
|
11821
11848
|
/**
|
|
11822
11849
|
* Listen to Depreciations events
|
|
@@ -11845,17 +11872,17 @@ class DepreciationService extends RestService$1 {
|
|
|
11845
11872
|
* Listen to EventDispatcherService event related to updated bank loan
|
|
11846
11873
|
*/
|
|
11847
11874
|
listenToUpdatedLoan() {
|
|
11848
|
-
this.listenCSE(Loan, ['put']
|
|
11875
|
+
this.listenCSE(Loan, this.refreshCache, ['put']);
|
|
11849
11876
|
}
|
|
11850
11877
|
/**
|
|
11851
11878
|
* Listen to EventDispatcherService event related to updated bank account
|
|
11852
11879
|
*/
|
|
11853
11880
|
listenToUpdatedBankAccount() {
|
|
11854
|
-
this.listenCSE(BankAccount,
|
|
11881
|
+
this.listenCSE(BankAccount, (bankAccounts) => {
|
|
11855
11882
|
if (bankAccounts.find(ba => ba.isPropertyTank())) {
|
|
11856
11883
|
this.refreshCache();
|
|
11857
11884
|
}
|
|
11858
|
-
});
|
|
11885
|
+
}, ['put']);
|
|
11859
11886
|
}
|
|
11860
11887
|
/**
|
|
11861
11888
|
* Listen to EventDispatcherService event related to updated vehicle claim
|
|
@@ -11962,7 +11989,6 @@ class DocumentService extends RestService$1 {
|
|
|
11962
11989
|
this.modelClass = Document;
|
|
11963
11990
|
this.collectionClass = Collection;
|
|
11964
11991
|
this.disabledMethods = ['postBatch', 'putBatch'];
|
|
11965
|
-
this.isApiPlatform = true;
|
|
11966
11992
|
}
|
|
11967
11993
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11968
11994
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DocumentService, providedIn: 'root' }); }
|
|
@@ -11982,53 +12008,6 @@ var DocumentMessagesEnum;
|
|
|
11982
12008
|
DocumentMessagesEnum["DELETED"] = "Document deleted!";
|
|
11983
12009
|
})(DocumentMessagesEnum || (DocumentMessagesEnum = {}));
|
|
11984
12010
|
|
|
11985
|
-
class AuthService {
|
|
11986
|
-
constructor(http, jwtService, mpService, environment) {
|
|
11987
|
-
this.http = http;
|
|
11988
|
-
this.jwtService = jwtService;
|
|
11989
|
-
this.mpService = mpService;
|
|
11990
|
-
this.environment = environment;
|
|
11991
|
-
this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
|
|
11992
|
-
}
|
|
11993
|
-
setAuth(response) {
|
|
11994
|
-
this.jwtService.saveTokens(response);
|
|
11995
|
-
this.isLoggedInSubject.next(true);
|
|
11996
|
-
}
|
|
11997
|
-
login(username, password) {
|
|
11998
|
-
return this.http.post(`${this.environment.apiV2}/login`, { username, password }).pipe(map((response) => {
|
|
11999
|
-
this.setAuth(response);
|
|
12000
|
-
this.mpService.track('login');
|
|
12001
|
-
return response;
|
|
12002
|
-
}), catchError((error) => {
|
|
12003
|
-
this.mpService.track('loginError', { username });
|
|
12004
|
-
return throwError(error);
|
|
12005
|
-
}));
|
|
12006
|
-
}
|
|
12007
|
-
refresh(refreshToken) {
|
|
12008
|
-
return this.http.post(`${this.environment.apiV2}/token/refresh`, { refreshToken }).pipe(map((response) => {
|
|
12009
|
-
this.setAuth(response);
|
|
12010
|
-
return response;
|
|
12011
|
-
}));
|
|
12012
|
-
}
|
|
12013
|
-
logoutFront(url = '/login') {
|
|
12014
|
-
localStorage.clear();
|
|
12015
|
-
this.mpService.track('logout');
|
|
12016
|
-
this.mpService.reset();
|
|
12017
|
-
location.replace(url);
|
|
12018
|
-
}
|
|
12019
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: MixpanelService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12020
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, providedIn: 'root' }); }
|
|
12021
|
-
}
|
|
12022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, decorators: [{
|
|
12023
|
-
type: Injectable,
|
|
12024
|
-
args: [{
|
|
12025
|
-
providedIn: 'root'
|
|
12026
|
-
}]
|
|
12027
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: JwtService }, { type: MixpanelService }, { type: undefined, decorators: [{
|
|
12028
|
-
type: Inject,
|
|
12029
|
-
args: ['environment']
|
|
12030
|
-
}] }]; } });
|
|
12031
|
-
|
|
12032
12011
|
const ERROR_EMAIL_PERMISSION = 'Access to email denied. Please provide access to email in facebook.';
|
|
12033
12012
|
class FacebookService {
|
|
12034
12013
|
static { this.authOptions = {
|
|
@@ -12189,7 +12168,6 @@ class FileService extends RestService$1 {
|
|
|
12189
12168
|
this.endpointUri = 'files';
|
|
12190
12169
|
this.modelClass = AppFile;
|
|
12191
12170
|
this.collectionClass = Collection;
|
|
12192
|
-
this.isApiPlatform = true;
|
|
12193
12171
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
12194
12172
|
}
|
|
12195
12173
|
getById(id) {
|
|
@@ -12222,7 +12200,6 @@ class ClientIncomeTypesService extends RestService$1 {
|
|
|
12222
12200
|
this.modelClass = ClientIncomeTypes;
|
|
12223
12201
|
this.collectionClass = Collection;
|
|
12224
12202
|
this.endpointUri = 'client-income-types';
|
|
12225
|
-
this.isApiPlatform = true;
|
|
12226
12203
|
this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
|
|
12227
12204
|
}
|
|
12228
12205
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -12236,11 +12213,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12236
12213
|
}] });
|
|
12237
12214
|
|
|
12238
12215
|
class ClientInviteService extends RestService$1 {
|
|
12239
|
-
constructor() {
|
|
12240
|
-
super(
|
|
12216
|
+
constructor(environment) {
|
|
12217
|
+
super(environment);
|
|
12218
|
+
this.environment = environment;
|
|
12241
12219
|
this.endpointUri = 'clients/invites';
|
|
12242
12220
|
this.collectionClass = ClientInviteCollection;
|
|
12243
12221
|
this.modelClass = ClientInvite;
|
|
12222
|
+
this.mercureTopic = 'clientInvites';
|
|
12223
|
+
this.listenEvents();
|
|
12224
|
+
}
|
|
12225
|
+
listenEvents() {
|
|
12226
|
+
// @TODO remove when TT-3826 is ready
|
|
12227
|
+
this.listenSSE();
|
|
12244
12228
|
}
|
|
12245
12229
|
getFirmInvites() {
|
|
12246
12230
|
return super.get(`${this.apiUrl}/all`);
|
|
@@ -12306,29 +12290,7 @@ class ClientInviteService extends RestService$1 {
|
|
|
12306
12290
|
return throwError(error);
|
|
12307
12291
|
}));
|
|
12308
12292
|
}
|
|
12309
|
-
|
|
12310
|
-
* Listem clientInvites db changes via mercure to update cache
|
|
12311
|
-
* @TODO make it universal and move to parent
|
|
12312
|
-
*/
|
|
12313
|
-
listenSSE() {
|
|
12314
|
-
this.sseService.on('clientInvites')
|
|
12315
|
-
.pipe(map((clientInvite) => plainToClass(ClientInvite, clientInvite)))
|
|
12316
|
-
.subscribe((clientInvite) => {
|
|
12317
|
-
// we got empty body when item deleted so we should get id from Api Platform data (@id)
|
|
12318
|
-
const id = clientInvite.id ?? +last(clientInvite['@id'].split('/'));
|
|
12319
|
-
switch (true) {
|
|
12320
|
-
case !clientInvite.id:
|
|
12321
|
-
this.updateCache([merge(clientInvite, { id })], 'delete');
|
|
12322
|
-
break;
|
|
12323
|
-
case this.hasInCache(id):
|
|
12324
|
-
this.updateCache([clientInvite], 'put');
|
|
12325
|
-
break;
|
|
12326
|
-
case !this.hasInCache(id):
|
|
12327
|
-
this.updateCache([clientInvite], 'post');
|
|
12328
|
-
}
|
|
12329
|
-
});
|
|
12330
|
-
}
|
|
12331
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientInviteService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12332
12294
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientInviteService, providedIn: 'root' }); }
|
|
12333
12295
|
}
|
|
12334
12296
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientInviteService, decorators: [{
|
|
@@ -12336,7 +12298,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12336
12298
|
args: [{
|
|
12337
12299
|
providedIn: 'root'
|
|
12338
12300
|
}]
|
|
12339
|
-
}]
|
|
12301
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
12302
|
+
type: Inject,
|
|
12303
|
+
args: ['environment']
|
|
12304
|
+
}] }]; } });
|
|
12340
12305
|
|
|
12341
12306
|
var ClientInviteMessages;
|
|
12342
12307
|
(function (ClientInviteMessages) {
|
|
@@ -12354,17 +12319,21 @@ var ClientInviteMessages;
|
|
|
12354
12319
|
})(ClientInviteMessages || (ClientInviteMessages = {}));
|
|
12355
12320
|
|
|
12356
12321
|
class ClientMovementService extends RestService$1 {
|
|
12357
|
-
constructor() {
|
|
12358
|
-
super(
|
|
12322
|
+
constructor(environment) {
|
|
12323
|
+
super(environment);
|
|
12324
|
+
this.environment = environment;
|
|
12359
12325
|
this.endpointUri = 'client-movements';
|
|
12360
12326
|
this.collectionClass = ClientMovementCollection;
|
|
12361
12327
|
this.modelClass = ClientMovement;
|
|
12362
|
-
this.isApiPlatform = true;
|
|
12363
12328
|
this.disabledMethods = ['postBatch', 'delete', 'deleteBatch'];
|
|
12329
|
+
this.mercureTopic = 'clientMovements';
|
|
12330
|
+
this.listenEvents();
|
|
12364
12331
|
}
|
|
12365
12332
|
listenEvents() {
|
|
12366
|
-
//
|
|
12367
|
-
this.listenCSE(ClientInvite, ['post', 'put', 'delete']
|
|
12333
|
+
// client invite accept triggers client movement update
|
|
12334
|
+
this.listenCSE(ClientInvite, this.refreshCache, ['post', 'put', 'delete']);
|
|
12335
|
+
// @TODO remove when TT-3826 is ready
|
|
12336
|
+
this.listenSSE();
|
|
12368
12337
|
}
|
|
12369
12338
|
getActive() {
|
|
12370
12339
|
return this.get().pipe(map((clientMovements) => clientMovements.active));
|
|
@@ -12411,18 +12380,7 @@ class ClientMovementService extends RestService$1 {
|
|
|
12411
12380
|
this.updateCache([clientMovement], 'delete');
|
|
12412
12381
|
}));
|
|
12413
12382
|
}
|
|
12414
|
-
|
|
12415
|
-
* Listem clientMovements db changes via mercure to update cache
|
|
12416
|
-
* @TODO make it universal and move to parent
|
|
12417
|
-
*/
|
|
12418
|
-
listenSSE() {
|
|
12419
|
-
this.sseService.on('clientMovements')
|
|
12420
|
-
.pipe(map((clientMovement) => plainToClass(ClientMovement, clientMovement)))
|
|
12421
|
-
.subscribe((clientMovement) => {
|
|
12422
|
-
this.hasInCache(clientMovement.id) ? this.updateCache([clientMovement], 'put') : this.updateCache([clientMovement], 'post');
|
|
12423
|
-
});
|
|
12424
|
-
}
|
|
12425
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12383
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12426
12384
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementService, providedIn: 'root' }); }
|
|
12427
12385
|
}
|
|
12428
12386
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClientMovementService, decorators: [{
|
|
@@ -12430,7 +12388,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12430
12388
|
args: [{
|
|
12431
12389
|
providedIn: 'root'
|
|
12432
12390
|
}]
|
|
12433
|
-
}]
|
|
12391
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
12392
|
+
type: Inject,
|
|
12393
|
+
args: ['environment']
|
|
12394
|
+
}] }]; } });
|
|
12434
12395
|
|
|
12435
12396
|
/**
|
|
12436
12397
|
* Abstract base service that implements common services functionality
|
|
@@ -12440,16 +12401,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12440
12401
|
* @TODO TT-1777 Alex: remove when all services refactored
|
|
12441
12402
|
*/
|
|
12442
12403
|
class RestService {
|
|
12443
|
-
constructor(
|
|
12444
|
-
this.http = http;
|
|
12445
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
12404
|
+
constructor(environment) {
|
|
12446
12405
|
this.environment = environment;
|
|
12447
|
-
this.toastService =
|
|
12406
|
+
this.toastService = inject(ToastService);
|
|
12407
|
+
this.http = inject(HttpClient);
|
|
12408
|
+
this.eventDispatcherService = inject(EventDispatcherService);
|
|
12448
12409
|
// subject for service cache
|
|
12449
12410
|
this.cacheSubject = new ReplaySubject(1);
|
|
12450
12411
|
this.mpService = inject(MixpanelService);
|
|
12451
12412
|
this.roles = [];
|
|
12452
|
-
this.listenEvents();
|
|
12453
12413
|
}
|
|
12454
12414
|
get apiUrl() {
|
|
12455
12415
|
return `${this.environment.apiV2}/${this.url}`;
|
|
@@ -12463,8 +12423,7 @@ class RestService {
|
|
|
12463
12423
|
}
|
|
12464
12424
|
return this.http.get(path)
|
|
12465
12425
|
.pipe(map((response) => {
|
|
12466
|
-
const items = (this.
|
|
12467
|
-
.map((item) => this.createModelInstance(item));
|
|
12426
|
+
const items = response.map((item) => this.createModelInstance(item));
|
|
12468
12427
|
if (cache) {
|
|
12469
12428
|
this.setCache(items, true);
|
|
12470
12429
|
}
|
|
@@ -12645,13 +12604,9 @@ class RestService {
|
|
|
12645
12604
|
* @param model instance that we will use as constructor options
|
|
12646
12605
|
*/
|
|
12647
12606
|
createModelInstance(model) {
|
|
12648
|
-
return plainToClass(this.modelClass, model
|
|
12607
|
+
return plainToClass(this.modelClass, model);
|
|
12649
12608
|
}
|
|
12650
|
-
|
|
12651
|
-
* Method that call all listeners. Empty by default. Should be redefined by child services if required
|
|
12652
|
-
*/
|
|
12653
|
-
listenEvents() { }
|
|
12654
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12609
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RestService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12655
12610
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RestService, providedIn: 'root' }); }
|
|
12656
12611
|
}
|
|
12657
12612
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RestService, decorators: [{
|
|
@@ -12659,10 +12614,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12659
12614
|
args: [{
|
|
12660
12615
|
providedIn: 'root'
|
|
12661
12616
|
}]
|
|
12662
|
-
}], ctorParameters: function () { return [{ type:
|
|
12617
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
12663
12618
|
type: Inject,
|
|
12664
12619
|
args: ['environment']
|
|
12665
|
-
}] }
|
|
12620
|
+
}] }]; } });
|
|
12666
12621
|
|
|
12667
12622
|
var EmployeeMessagesEnum;
|
|
12668
12623
|
(function (EmployeeMessagesEnum) {
|
|
@@ -12863,7 +12818,7 @@ class FirmService {
|
|
|
12863
12818
|
*/
|
|
12864
12819
|
getAll() {
|
|
12865
12820
|
return this.http.get(`${this.environment.apiV2}/firms`)
|
|
12866
|
-
.pipe(map((response) => response
|
|
12821
|
+
.pipe(map((response) => response.map((firmBase) => plainToClass(Firm, firmBase))));
|
|
12867
12822
|
}
|
|
12868
12823
|
getByType(type) {
|
|
12869
12824
|
return this.getAll().pipe(map((firms) => firms.filter((firm) => firm.type === type)));
|
|
@@ -12885,10 +12840,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12885
12840
|
* Service to work with Other Income Forecasts
|
|
12886
12841
|
*/
|
|
12887
12842
|
class IncomeSourceForecastService extends RestService {
|
|
12888
|
-
constructor() {
|
|
12889
|
-
super(
|
|
12843
|
+
constructor(environment) {
|
|
12844
|
+
super(environment);
|
|
12845
|
+
this.environment = environment;
|
|
12890
12846
|
this.modelClass = IncomeSourceForecast;
|
|
12891
12847
|
this.url = 'income-source-forecasts';
|
|
12848
|
+
this.listenEvents();
|
|
12892
12849
|
}
|
|
12893
12850
|
/**
|
|
12894
12851
|
* Listen to Income Sources events
|
|
@@ -12944,7 +12901,7 @@ class IncomeSourceForecastService extends RestService {
|
|
|
12944
12901
|
return incomeSource.incomeSourceForecasts;
|
|
12945
12902
|
}).flat();
|
|
12946
12903
|
}
|
|
12947
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IncomeSourceForecastService, deps:
|
|
12904
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IncomeSourceForecastService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12948
12905
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' }); }
|
|
12949
12906
|
}
|
|
12950
12907
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
|
|
@@ -12952,16 +12909,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
12952
12909
|
args: [{
|
|
12953
12910
|
providedIn: 'root'
|
|
12954
12911
|
}]
|
|
12955
|
-
}]
|
|
12912
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
12913
|
+
type: Inject,
|
|
12914
|
+
args: ['environment']
|
|
12915
|
+
}] }]; } });
|
|
12956
12916
|
|
|
12957
12917
|
/**
|
|
12958
12918
|
* Service to work with Salary Forecasts
|
|
12959
12919
|
*/
|
|
12960
12920
|
class SalaryForecastService extends RestService {
|
|
12961
|
-
constructor() {
|
|
12962
|
-
super(
|
|
12921
|
+
constructor(environment) {
|
|
12922
|
+
super(environment);
|
|
12923
|
+
this.environment = environment;
|
|
12963
12924
|
this.modelClass = SalaryForecast;
|
|
12964
12925
|
this.url = 'salary-forecasts';
|
|
12926
|
+
this.listenEvents();
|
|
12965
12927
|
}
|
|
12966
12928
|
/**
|
|
12967
12929
|
* Listen to Income Sources events
|
|
@@ -13016,7 +12978,7 @@ class SalaryForecastService extends RestService {
|
|
|
13016
12978
|
return incomeSource.salaryForecasts;
|
|
13017
12979
|
}).flat();
|
|
13018
12980
|
}
|
|
13019
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SalaryForecastService, deps:
|
|
12981
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SalaryForecastService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13020
12982
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SalaryForecastService, providedIn: 'root' }); }
|
|
13021
12983
|
}
|
|
13022
12984
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SalaryForecastService, decorators: [{
|
|
@@ -13024,13 +12986,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13024
12986
|
args: [{
|
|
13025
12987
|
providedIn: 'root'
|
|
13026
12988
|
}]
|
|
13027
|
-
}]
|
|
12989
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
12990
|
+
type: Inject,
|
|
12991
|
+
args: ['environment']
|
|
12992
|
+
}] }]; } });
|
|
13028
12993
|
|
|
13029
12994
|
class SoleForecastService extends RestService {
|
|
13030
|
-
constructor() {
|
|
13031
|
-
super(
|
|
12995
|
+
constructor(environment) {
|
|
12996
|
+
super(environment);
|
|
12997
|
+
this.environment = environment;
|
|
13032
12998
|
this.modelClass = SoleForecast;
|
|
13033
12999
|
this.url = 'sole-forecasts';
|
|
13000
|
+
this.listenEvents();
|
|
13034
13001
|
}
|
|
13035
13002
|
/**
|
|
13036
13003
|
* Listen to Income Sources events
|
|
@@ -13095,7 +13062,7 @@ class SoleForecastService extends RestService {
|
|
|
13095
13062
|
this.refreshCache();
|
|
13096
13063
|
});
|
|
13097
13064
|
}
|
|
13098
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleForecastService, deps:
|
|
13065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleForecastService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13099
13066
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleForecastService, providedIn: 'root' }); }
|
|
13100
13067
|
}
|
|
13101
13068
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleForecastService, decorators: [{
|
|
@@ -13103,16 +13070,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13103
13070
|
args: [{
|
|
13104
13071
|
providedIn: 'root'
|
|
13105
13072
|
}]
|
|
13106
|
-
}]
|
|
13073
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
13074
|
+
type: Inject,
|
|
13075
|
+
args: ['environment']
|
|
13076
|
+
}] }]; } });
|
|
13107
13077
|
|
|
13108
13078
|
/**
|
|
13109
13079
|
* Service to work with income sources
|
|
13110
13080
|
*/
|
|
13111
13081
|
class IncomeSourceService extends RestService {
|
|
13112
|
-
constructor() {
|
|
13113
|
-
super(
|
|
13082
|
+
constructor(environment) {
|
|
13083
|
+
super(environment);
|
|
13084
|
+
this.environment = environment;
|
|
13114
13085
|
this.url = 'income-sources';
|
|
13115
13086
|
this.modelClass = IncomeSource;
|
|
13087
|
+
this.listenEvents();
|
|
13116
13088
|
}
|
|
13117
13089
|
listenEvents() {
|
|
13118
13090
|
this.listenSoleBusinessCreated();
|
|
@@ -13176,7 +13148,7 @@ class IncomeSourceService extends RestService {
|
|
|
13176
13148
|
this.refreshCache();
|
|
13177
13149
|
});
|
|
13178
13150
|
}
|
|
13179
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IncomeSourceService, deps:
|
|
13151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IncomeSourceService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13180
13152
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IncomeSourceService, providedIn: 'root' }); }
|
|
13181
13153
|
}
|
|
13182
13154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IncomeSourceService, decorators: [{
|
|
@@ -13184,7 +13156,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13184
13156
|
args: [{
|
|
13185
13157
|
providedIn: 'root'
|
|
13186
13158
|
}]
|
|
13187
|
-
}]
|
|
13159
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
13160
|
+
type: Inject,
|
|
13161
|
+
args: ['environment']
|
|
13162
|
+
}] }]; } });
|
|
13188
13163
|
|
|
13189
13164
|
var IncomeSourceMessagesEnum;
|
|
13190
13165
|
(function (IncomeSourceMessagesEnum) {
|
|
@@ -13266,24 +13241,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13266
13241
|
* Service that handling loans logic
|
|
13267
13242
|
*/
|
|
13268
13243
|
class LoanService extends RestService$1 {
|
|
13269
|
-
constructor() {
|
|
13270
|
-
super(
|
|
13244
|
+
constructor(environment) {
|
|
13245
|
+
super(environment);
|
|
13246
|
+
this.environment = environment;
|
|
13271
13247
|
this.endpointUri = 'bank-accounts/loans';
|
|
13272
13248
|
this.modelClass = Loan;
|
|
13273
13249
|
this.collectionClass = LoanCollection;
|
|
13274
13250
|
this.disabledMethods = ['post', 'delete', 'deleteBatch'];
|
|
13251
|
+
this.listenEvents();
|
|
13275
13252
|
}
|
|
13276
13253
|
/**
|
|
13277
13254
|
* Listen to Loans events
|
|
13278
13255
|
*/
|
|
13279
13256
|
listenEvents() {
|
|
13280
13257
|
// Update list of loans when added/changed loan bank account
|
|
13281
|
-
this.listenCSE(BankAccount,
|
|
13258
|
+
this.listenCSE(BankAccount, (bankAccounts) => {
|
|
13282
13259
|
if (bankAccounts.find(ba => !!ba.loan)) {
|
|
13283
13260
|
this.refreshCache();
|
|
13284
13261
|
}
|
|
13285
|
-
});
|
|
13286
|
-
this.listenCSE(LoanPayout, ['post', 'put', 'delete']
|
|
13262
|
+
}, ['post', 'put']);
|
|
13263
|
+
this.listenCSE(LoanPayout, this.refreshCache, ['post', 'put', 'delete']);
|
|
13287
13264
|
}
|
|
13288
13265
|
/**
|
|
13289
13266
|
* Calculate loan payments
|
|
@@ -13331,7 +13308,7 @@ class LoanService extends RestService$1 {
|
|
|
13331
13308
|
this.refreshCache();
|
|
13332
13309
|
}));
|
|
13333
13310
|
}
|
|
13334
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoanService, deps:
|
|
13311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoanService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13335
13312
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoanService, providedIn: 'root' }); }
|
|
13336
13313
|
}
|
|
13337
13314
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoanService, decorators: [{
|
|
@@ -13339,13 +13316,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13339
13316
|
args: [{
|
|
13340
13317
|
providedIn: 'root'
|
|
13341
13318
|
}]
|
|
13342
|
-
}]
|
|
13319
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
13320
|
+
type: Inject,
|
|
13321
|
+
args: ['environment']
|
|
13322
|
+
}] }]; } });
|
|
13343
13323
|
|
|
13344
13324
|
class BorrowingReportService extends RestService$1 {
|
|
13345
13325
|
constructor() {
|
|
13346
13326
|
super(...arguments);
|
|
13347
13327
|
this.endpointUri = 'borrowing-reports';
|
|
13348
|
-
this.isApiPlatform = true;
|
|
13349
13328
|
this.modelClass = BorrowingReport;
|
|
13350
13329
|
this.collectionClass = Collection;
|
|
13351
13330
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
@@ -13393,11 +13372,12 @@ class PropertyCategoryMovementService extends RestService$1 {
|
|
|
13393
13372
|
super(...arguments);
|
|
13394
13373
|
this.modelClass = PropertyCategoryMovement;
|
|
13395
13374
|
this.collectionClass = PropertyCategoryMovementCollection;
|
|
13396
|
-
this.endpointUri = '
|
|
13375
|
+
this.endpointUri = 'property-category-movements';
|
|
13397
13376
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
13398
13377
|
}
|
|
13399
13378
|
post(movement, property) {
|
|
13400
|
-
|
|
13379
|
+
movement.property = movement.valuation.property = plainToClass(Property, { id: property.id });
|
|
13380
|
+
return super.post(movement, property);
|
|
13401
13381
|
}
|
|
13402
13382
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13403
13383
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' }); }
|
|
@@ -13427,30 +13407,6 @@ class PropertyDocumentService extends RestService$1 {
|
|
|
13427
13407
|
this.collectionClass = Collection;
|
|
13428
13408
|
this.endpointUri = 'property-documents';
|
|
13429
13409
|
this.disabledMethods = ['postBatch', 'putBatch'];
|
|
13430
|
-
this.isApiPlatform = true;
|
|
13431
|
-
}
|
|
13432
|
-
/**
|
|
13433
|
-
* Add new Property Document
|
|
13434
|
-
*/
|
|
13435
|
-
upload(file, propertyId) {
|
|
13436
|
-
// create formData object with provided file
|
|
13437
|
-
const formDataDocument = new FormData();
|
|
13438
|
-
formDataDocument.append('file', file);
|
|
13439
|
-
return this.http.post(`${this.environment.apiV2}/properties/${propertyId}/documents`, formDataDocument).pipe(map((documentBase) => {
|
|
13440
|
-
const newDocument = plainToClass(PropertyDocument, documentBase);
|
|
13441
|
-
if (this.cache) {
|
|
13442
|
-
this.updateCache([newDocument], 'post');
|
|
13443
|
-
}
|
|
13444
|
-
return newDocument;
|
|
13445
|
-
}));
|
|
13446
|
-
}
|
|
13447
|
-
listenEvents() {
|
|
13448
|
-
this.listenPropertyUpdateWithDocument();
|
|
13449
|
-
}
|
|
13450
|
-
listenPropertyUpdateWithDocument() {
|
|
13451
|
-
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_UPDATED_WITH_DOCUMENT).subscribe((property) => {
|
|
13452
|
-
this.upload(property.documentFile, property.id).subscribe();
|
|
13453
|
-
});
|
|
13454
13410
|
}
|
|
13455
13411
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13456
13412
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' }); }
|
|
@@ -13499,13 +13455,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13499
13455
|
|
|
13500
13456
|
// @TODO check and improve logic during refactoring
|
|
13501
13457
|
class PropertyShareService extends RestService$1 {
|
|
13502
|
-
constructor() {
|
|
13503
|
-
super(
|
|
13458
|
+
constructor(environment) {
|
|
13459
|
+
super(environment);
|
|
13460
|
+
this.environment = environment;
|
|
13504
13461
|
// api url parameter for properties shares
|
|
13505
13462
|
this.endpointUri = 'properties/shares';
|
|
13506
13463
|
this.modelClass = PropertyShare;
|
|
13507
13464
|
this.collectionClass = PropertyShareCollection;
|
|
13508
13465
|
this.disabledMethods = ['deleteBatch', 'putBatch', 'postBatch'];
|
|
13466
|
+
this.listenEvents();
|
|
13509
13467
|
}
|
|
13510
13468
|
/**
|
|
13511
13469
|
* Listen to Event Dispatcher events
|
|
@@ -13539,9 +13497,9 @@ class PropertyShareService extends RestService$1 {
|
|
|
13539
13497
|
* @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
|
|
13540
13498
|
*/
|
|
13541
13499
|
listenSalesChanges() {
|
|
13542
|
-
this.listenCSE(PropertySale, ['post', 'delete']
|
|
13500
|
+
this.listenCSE(PropertySale, this.refreshCache, ['post', 'delete']);
|
|
13543
13501
|
}
|
|
13544
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyShareService, deps:
|
|
13502
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyShareService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13545
13503
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyShareService, providedIn: 'root' }); }
|
|
13546
13504
|
}
|
|
13547
13505
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyShareService, decorators: [{
|
|
@@ -13549,29 +13507,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13549
13507
|
args: [{
|
|
13550
13508
|
providedIn: 'root'
|
|
13551
13509
|
}]
|
|
13552
|
-
}]
|
|
13510
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
13511
|
+
type: Inject,
|
|
13512
|
+
args: ['environment']
|
|
13513
|
+
}] }]; } });
|
|
13553
13514
|
|
|
13554
|
-
/**
|
|
13555
|
-
* @TODO Alex: refacotor with api platform (old endpoint)
|
|
13556
|
-
*/
|
|
13557
13515
|
class PropertyValuationService extends RestService$1 {
|
|
13558
13516
|
constructor() {
|
|
13559
13517
|
super(...arguments);
|
|
13560
|
-
this.endpointUri = '
|
|
13518
|
+
this.endpointUri = 'property-valuations';
|
|
13561
13519
|
this.modelClass = PropertyValuation;
|
|
13562
13520
|
this.collectionClass = (Collection);
|
|
13563
13521
|
this.disabledMethods = ['postBatch', 'putBatch'];
|
|
13564
|
-
this.isApiPlatform = true;
|
|
13565
|
-
}
|
|
13566
|
-
get(propertyId) {
|
|
13567
|
-
return this.http.get(`${this.apiUrl}/${propertyId}/valuations`)
|
|
13568
|
-
.pipe(map((valuations) => new Collection(valuations.map((valuation) => plainToClass(PropertyValuation, valuation)))));
|
|
13569
13522
|
}
|
|
13570
13523
|
post(valuation, property) {
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
put(valuation, property) {
|
|
13574
|
-
return super.put(valuation, property, `${this.apiUrl}/${property.id}/valuations/${valuation.id}`);
|
|
13524
|
+
valuation.property = plainToClass(Property, { id: property.id });
|
|
13525
|
+
return super.post(valuation, property);
|
|
13575
13526
|
}
|
|
13576
13527
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyValuationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13577
13528
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyValuationService, providedIn: 'root' }); }
|
|
@@ -13601,53 +13552,36 @@ var PropertyMessagesEnum;
|
|
|
13601
13552
|
* Service for work with Property
|
|
13602
13553
|
*/
|
|
13603
13554
|
class PropertyService extends RestService$1 {
|
|
13604
|
-
constructor() {
|
|
13605
|
-
super(
|
|
13555
|
+
constructor(environment) {
|
|
13556
|
+
super(environment);
|
|
13557
|
+
this.environment = environment;
|
|
13606
13558
|
this.modelClass = Property;
|
|
13607
13559
|
this.collectionClass = PropertyCollection;
|
|
13608
13560
|
this.endpointUri = 'properties';
|
|
13609
13561
|
this.disabledMethods = ['deleteBatch'];
|
|
13562
|
+
this.listenEvents();
|
|
13610
13563
|
}
|
|
13564
|
+
/**
|
|
13565
|
+
* @TODO remove when forecast moved to separated api
|
|
13566
|
+
*/
|
|
13611
13567
|
put(property) {
|
|
13612
13568
|
return super.put(property)
|
|
13613
|
-
// @TODO Alex (TT-1777): handle this events and refactor
|
|
13614
13569
|
.pipe(map((updatedProperty) => {
|
|
13615
|
-
|
|
13616
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_UPDATED_WITH_DOCUMENT, property));
|
|
13617
|
-
}
|
|
13618
|
-
else {
|
|
13619
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_UPDATED, property));
|
|
13620
|
-
}
|
|
13570
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_UPDATED, property));
|
|
13621
13571
|
return updatedProperty;
|
|
13622
13572
|
}));
|
|
13623
13573
|
}
|
|
13624
|
-
listenEvents() {
|
|
13625
|
-
this.listenShareInviteAccepted();
|
|
13626
|
-
// @TODO Alex: consider to refactor property movements logic similar to client-movements
|
|
13627
|
-
this.listenMovementsChanges();
|
|
13628
|
-
this.listenSalesChanges();
|
|
13629
|
-
this.listenValuations();
|
|
13630
|
-
}
|
|
13631
|
-
/**
|
|
13632
|
-
* Update cache when share invitation accepted
|
|
13633
|
-
*/
|
|
13634
|
-
listenShareInviteAccepted() {
|
|
13635
|
-
this.listenCSE(PropertyShare, ['put'], this.refreshCache);
|
|
13636
|
-
}
|
|
13637
|
-
/**
|
|
13638
|
-
* Update cache when property category changed
|
|
13639
|
-
*/
|
|
13640
|
-
listenMovementsChanges() {
|
|
13641
|
-
this.listenCSE(PropertyCategoryMovement, ['post', 'put', 'delete'], this.refreshCache);
|
|
13642
|
-
}
|
|
13643
13574
|
/**
|
|
13644
|
-
*
|
|
13575
|
+
* @TODO no refresh cache with this.updateCache([this.getCache().findBy('id', change.model.property.id)], 'put');
|
|
13645
13576
|
*/
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
this.listenCSE(
|
|
13577
|
+
listenEvents() {
|
|
13578
|
+
// share invite accepted event gives access to new property
|
|
13579
|
+
this.listenCSE(PropertyShare, this.refreshCache, ['put']);
|
|
13580
|
+
// @TODO get from separated api?
|
|
13581
|
+
this.listenCSE(PropertySale, this.refreshCache, ['post', 'put', 'delete']);
|
|
13582
|
+
// property caches child entities to improve performance
|
|
13583
|
+
this.listenCSE(PropertyValuation, this.refreshCache);
|
|
13584
|
+
this.listenCSE(PropertyCategoryMovement, this.refreshCache);
|
|
13651
13585
|
}
|
|
13652
13586
|
updateDepreciationCalculation(property) {
|
|
13653
13587
|
const propertyToUpdate = plainToClass(Property, { id: property.id, depreciationCalculation: property.depreciationCalculation });
|
|
@@ -13657,6 +13591,7 @@ class PropertyService extends RestService$1 {
|
|
|
13657
13591
|
}));
|
|
13658
13592
|
}
|
|
13659
13593
|
/**
|
|
13594
|
+
* @TODO move to separated api
|
|
13660
13595
|
* Activate deactivated property
|
|
13661
13596
|
*/
|
|
13662
13597
|
activate(property) {
|
|
@@ -13676,6 +13611,7 @@ class PropertyService extends RestService$1 {
|
|
|
13676
13611
|
}));
|
|
13677
13612
|
}
|
|
13678
13613
|
/**
|
|
13614
|
+
* @TODO move to separated api
|
|
13679
13615
|
* Deactivate activated property
|
|
13680
13616
|
*/
|
|
13681
13617
|
deactivate(property) {
|
|
@@ -13693,18 +13629,7 @@ class PropertyService extends RestService$1 {
|
|
|
13693
13629
|
return throwError(error);
|
|
13694
13630
|
}));
|
|
13695
13631
|
}
|
|
13696
|
-
|
|
13697
|
-
* Update property photo
|
|
13698
|
-
* @param property Property instance for photo update
|
|
13699
|
-
* @param photoFormData FormData with property photo image
|
|
13700
|
-
*/
|
|
13701
|
-
updatePhoto(property, photoFormData) {
|
|
13702
|
-
return this.http.post(`${this.environment.apiV2}/properties/${property.id}/photo?_method=PUT`, photoFormData)
|
|
13703
|
-
.pipe(map((photoLink) => {
|
|
13704
|
-
this.updateCache([plainToClass(Property, merge(property, { photo: photoLink }))], 'put');
|
|
13705
|
-
}));
|
|
13706
|
-
}
|
|
13707
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13708
13633
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyService, providedIn: 'root' }); }
|
|
13709
13634
|
}
|
|
13710
13635
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PropertyService, decorators: [{
|
|
@@ -13712,26 +13637,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13712
13637
|
args: [{
|
|
13713
13638
|
providedIn: 'root'
|
|
13714
13639
|
}]
|
|
13715
|
-
}]
|
|
13640
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
13641
|
+
type: Inject,
|
|
13642
|
+
args: ['environment']
|
|
13643
|
+
}] }]; } });
|
|
13716
13644
|
|
|
13717
13645
|
/**
|
|
13718
13646
|
* Service to handle service notifications logic
|
|
13719
13647
|
*/
|
|
13720
13648
|
class ServiceNotificationService extends RestService {
|
|
13721
|
-
constructor(
|
|
13722
|
-
super(
|
|
13723
|
-
this.http = http;
|
|
13649
|
+
constructor(eventDispatcherService, environment, toastService, sseService) {
|
|
13650
|
+
super(environment);
|
|
13724
13651
|
this.eventDispatcherService = eventDispatcherService;
|
|
13725
13652
|
this.environment = environment;
|
|
13726
13653
|
this.toastService = toastService;
|
|
13727
13654
|
this.sseService = sseService;
|
|
13728
13655
|
this.modelClass = Notification;
|
|
13729
13656
|
this.url = 'service-notifications';
|
|
13730
|
-
this.
|
|
13657
|
+
this.listenEvents();
|
|
13658
|
+
}
|
|
13659
|
+
listenEvents() {
|
|
13731
13660
|
this.listenNotifications();
|
|
13732
13661
|
}
|
|
13733
13662
|
/**
|
|
13734
|
-
*
|
|
13663
|
+
* @TODO refactor with listenSSE
|
|
13735
13664
|
*/
|
|
13736
13665
|
listenNotifications() {
|
|
13737
13666
|
this.sseService.on(`serviceNotification`).subscribe((notificationBase) => {
|
|
@@ -13760,7 +13689,7 @@ class ServiceNotificationService extends RestService {
|
|
|
13760
13689
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.NOTIFICATION_ADDED, notification));
|
|
13761
13690
|
});
|
|
13762
13691
|
}
|
|
13763
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServiceNotificationService, deps: [{ token:
|
|
13692
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServiceNotificationService, deps: [{ token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13764
13693
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' }); }
|
|
13765
13694
|
}
|
|
13766
13695
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServiceNotificationService, decorators: [{
|
|
@@ -13768,7 +13697,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13768
13697
|
args: [{
|
|
13769
13698
|
providedIn: 'root'
|
|
13770
13699
|
}]
|
|
13771
|
-
}], ctorParameters: function () { return [{ type:
|
|
13700
|
+
}], ctorParameters: function () { return [{ type: EventDispatcherService }, { type: undefined, decorators: [{
|
|
13772
13701
|
type: Inject,
|
|
13773
13702
|
args: ['environment']
|
|
13774
13703
|
}] }, { type: ToastService }, { type: SseService }]; } });
|
|
@@ -13783,7 +13712,6 @@ class SoleBusinessService extends RestService {
|
|
|
13783
13712
|
super(...arguments);
|
|
13784
13713
|
this.modelClass = SoleBusiness;
|
|
13785
13714
|
this.url = 'sole-businesses';
|
|
13786
|
-
this.isHydra = true;
|
|
13787
13715
|
}
|
|
13788
13716
|
add(soleBusiness) {
|
|
13789
13717
|
return super.add(soleBusiness).pipe(map((business) => {
|
|
@@ -13806,7 +13734,6 @@ class SoleBusinessActivityService extends RestService {
|
|
|
13806
13734
|
super(...arguments);
|
|
13807
13735
|
this.modelClass = SoleBusinessActivity;
|
|
13808
13736
|
this.url = 'sole-business-activities';
|
|
13809
|
-
this.isHydra = true;
|
|
13810
13737
|
}
|
|
13811
13738
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13812
13739
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' }); }
|
|
@@ -13819,11 +13746,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13819
13746
|
}] });
|
|
13820
13747
|
|
|
13821
13748
|
class SoleBusinessLossService extends RestService {
|
|
13822
|
-
constructor() {
|
|
13823
|
-
super(
|
|
13749
|
+
constructor(environment) {
|
|
13750
|
+
super(environment);
|
|
13751
|
+
this.environment = environment;
|
|
13824
13752
|
this.modelClass = SoleBusinessLoss;
|
|
13825
13753
|
this.url = 'sole-business-losses';
|
|
13826
|
-
this.
|
|
13754
|
+
this.listenEvents();
|
|
13827
13755
|
}
|
|
13828
13756
|
listenEvents() {
|
|
13829
13757
|
this.listenBusinessCreated();
|
|
@@ -13836,7 +13764,7 @@ class SoleBusinessLossService extends RestService {
|
|
|
13836
13764
|
this.refreshCache();
|
|
13837
13765
|
});
|
|
13838
13766
|
}
|
|
13839
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleBusinessLossService, deps:
|
|
13767
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleBusinessLossService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13840
13768
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' }); }
|
|
13841
13769
|
}
|
|
13842
13770
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleBusinessLossService, decorators: [{
|
|
@@ -13844,7 +13772,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
13844
13772
|
args: [{
|
|
13845
13773
|
providedIn: 'root'
|
|
13846
13774
|
}]
|
|
13847
|
-
}]
|
|
13775
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
13776
|
+
type: Inject,
|
|
13777
|
+
args: ['environment']
|
|
13778
|
+
}] }]; } });
|
|
13848
13779
|
|
|
13849
13780
|
/**
|
|
13850
13781
|
* @TODO vik replace with json when the final list is confirmed
|
|
@@ -13854,7 +13785,6 @@ class SoleBusinessLossOffsetRuleService extends RestService {
|
|
|
13854
13785
|
super(...arguments);
|
|
13855
13786
|
this.modelClass = SoleBusinessLossOffsetRule;
|
|
13856
13787
|
this.url = 'sole-business-loss-offset-rules';
|
|
13857
|
-
this.isHydra = true;
|
|
13858
13788
|
}
|
|
13859
13789
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13860
13790
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' }); }
|
|
@@ -13871,7 +13801,6 @@ class SoleContactService extends RestService {
|
|
|
13871
13801
|
super(...arguments);
|
|
13872
13802
|
this.modelClass = SoleContact;
|
|
13873
13803
|
this.url = 'sole-contacts';
|
|
13874
|
-
this.isHydra = true;
|
|
13875
13804
|
}
|
|
13876
13805
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13877
13806
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleContactService, providedIn: 'root' }); }
|
|
@@ -13902,7 +13831,7 @@ class SoleDepreciationMethodService {
|
|
|
13902
13831
|
get() {
|
|
13903
13832
|
if (!this.cache) {
|
|
13904
13833
|
this.http.get(`${this.environment.apiV2}/${this.url}`)
|
|
13905
|
-
.pipe(map((response) => plainToClass(SoleDepreciationMethod, response[
|
|
13834
|
+
.pipe(map((response) => plainToClass(SoleDepreciationMethod, response[0])))
|
|
13906
13835
|
.subscribe((soleDepreciationMethod) => {
|
|
13907
13836
|
this.cache = soleDepreciationMethod;
|
|
13908
13837
|
this.cacheSubject.next(this.cache);
|
|
@@ -13920,7 +13849,8 @@ class SoleDepreciationMethodService {
|
|
|
13920
13849
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SOLE_DEPRECIATION_METHOD_UPDATED, method));
|
|
13921
13850
|
return this.cache;
|
|
13922
13851
|
}), catchError((error) => {
|
|
13923
|
-
|
|
13852
|
+
// @TODO test
|
|
13853
|
+
this.toastService.error(error.error['detail']);
|
|
13924
13854
|
return throwError(error);
|
|
13925
13855
|
}));
|
|
13926
13856
|
}
|
|
@@ -13957,7 +13887,7 @@ class SoleDetailsService {
|
|
|
13957
13887
|
get() {
|
|
13958
13888
|
if (!this.cache) {
|
|
13959
13889
|
this.http.get(`${this.environment.apiV2}/sole-details`)
|
|
13960
|
-
.pipe(map((response) => plainToClass(SoleDetails, response[
|
|
13890
|
+
.pipe(map((response) => plainToClass(SoleDetails, response[0])))
|
|
13961
13891
|
.subscribe((soleDetails) => {
|
|
13962
13892
|
// undefined when user not created sole details
|
|
13963
13893
|
if (!soleDetails) {
|
|
@@ -14000,12 +13930,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14000
13930
|
}] }, { type: EventDispatcherService }]; } });
|
|
14001
13931
|
|
|
14002
13932
|
class SoleInvoiceService extends RestService {
|
|
14003
|
-
constructor() {
|
|
14004
|
-
super(
|
|
13933
|
+
constructor(environment) {
|
|
13934
|
+
super(environment);
|
|
13935
|
+
this.environment = environment;
|
|
14005
13936
|
this.modelClass = SoleInvoice;
|
|
14006
13937
|
this.url = 'sole-invoices';
|
|
14007
|
-
this.isHydra = true;
|
|
14008
13938
|
this.roles = [UserRolesEnum.SOLE_TANK];
|
|
13939
|
+
this.listenEvents();
|
|
14009
13940
|
}
|
|
14010
13941
|
listenEvents() {
|
|
14011
13942
|
this.listenAllocations();
|
|
@@ -14062,7 +13993,7 @@ class SoleInvoiceService extends RestService {
|
|
|
14062
13993
|
this.refreshCache();
|
|
14063
13994
|
});
|
|
14064
13995
|
}
|
|
14065
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleInvoiceService, deps:
|
|
13996
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleInvoiceService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14066
13997
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' }); }
|
|
14067
13998
|
}
|
|
14068
13999
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleInvoiceService, decorators: [{
|
|
@@ -14070,14 +14001,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14070
14001
|
args: [{
|
|
14071
14002
|
providedIn: 'root'
|
|
14072
14003
|
}]
|
|
14073
|
-
}]
|
|
14004
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
14005
|
+
type: Inject,
|
|
14006
|
+
args: ['environment']
|
|
14007
|
+
}] }]; } });
|
|
14074
14008
|
|
|
14075
14009
|
class SoleInvoiceTemplateService extends RestService {
|
|
14076
14010
|
constructor() {
|
|
14077
14011
|
super(...arguments);
|
|
14078
14012
|
this.modelClass = SoleInvoiceTemplate;
|
|
14079
14013
|
this.url = 'sole-invoice-templates';
|
|
14080
|
-
this.isHydra = true;
|
|
14081
14014
|
}
|
|
14082
14015
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14083
14016
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' }); }
|
|
@@ -14094,7 +14027,6 @@ class BasReportService extends RestService {
|
|
|
14094
14027
|
super(...arguments);
|
|
14095
14028
|
this.modelClass = BasReport;
|
|
14096
14029
|
this.url = 'bas-reports';
|
|
14097
|
-
this.isHydra = true;
|
|
14098
14030
|
}
|
|
14099
14031
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14100
14032
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BasReportService, providedIn: 'root' }); }
|
|
@@ -14109,7 +14041,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14109
14041
|
class ServicePaymentService extends RestService$1 {
|
|
14110
14042
|
constructor() {
|
|
14111
14043
|
super(...arguments);
|
|
14112
|
-
this.isApiPlatform = true;
|
|
14113
14044
|
this.endpointUri = 'service-payments';
|
|
14114
14045
|
this.modelClass = ServicePayment;
|
|
14115
14046
|
this.collectionClass = Collection;
|
|
@@ -14135,16 +14066,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14135
14066
|
}] });
|
|
14136
14067
|
|
|
14137
14068
|
class ServicePaymentMethodService extends RestService$1 {
|
|
14138
|
-
constructor(
|
|
14139
|
-
super(
|
|
14140
|
-
this.http = http;
|
|
14141
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
14069
|
+
constructor(environment) {
|
|
14070
|
+
super(environment);
|
|
14142
14071
|
this.environment = environment;
|
|
14143
14072
|
this.endpointUri = 'service-payment-methods';
|
|
14144
14073
|
this.collectionClass = Collection;
|
|
14145
14074
|
this.modelClass = ServicePaymentMethod;
|
|
14146
|
-
this.
|
|
14147
|
-
|
|
14075
|
+
this.listenEvents();
|
|
14076
|
+
}
|
|
14077
|
+
listenEvents() {
|
|
14078
|
+
// @TODO remove when TT-3826 is ready
|
|
14079
|
+
this.listenSSE();
|
|
14148
14080
|
}
|
|
14149
14081
|
/**
|
|
14150
14082
|
* Get Stripe client secret required for Payment form initialization
|
|
@@ -14157,23 +14089,7 @@ class ServicePaymentMethodService extends RestService$1 {
|
|
|
14157
14089
|
return this.http.put(`${this.apiUrl}/${paymentMethod.id}/default`, {})
|
|
14158
14090
|
.pipe(map((updatedPaymentMethod) => plainToClass(ServicePaymentMethod, updatedPaymentMethod)));
|
|
14159
14091
|
}
|
|
14160
|
-
|
|
14161
|
-
this.sseService.on('servicePaymentMethods').subscribe((newPaymentMethod) => {
|
|
14162
|
-
const paymentMethodFromCache = this.cache.findBy('id', newPaymentMethod.id);
|
|
14163
|
-
// backend send empty object when payment method deleted
|
|
14164
|
-
if (!newPaymentMethod.id) {
|
|
14165
|
-
return;
|
|
14166
|
-
}
|
|
14167
|
-
// replace cache item in cache when exist
|
|
14168
|
-
if (paymentMethodFromCache) {
|
|
14169
|
-
this.handleResponse([plainToClass(ServicePaymentMethod, newPaymentMethod)], 'put');
|
|
14170
|
-
return;
|
|
14171
|
-
}
|
|
14172
|
-
// add a new payment method to cache
|
|
14173
|
-
this.handleResponse([plainToClass(ServicePaymentMethod, newPaymentMethod)], 'post');
|
|
14174
|
-
});
|
|
14175
|
-
}
|
|
14176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14092
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14177
14093
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' }); }
|
|
14178
14094
|
}
|
|
14179
14095
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
|
|
@@ -14181,7 +14097,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14181
14097
|
args: [{
|
|
14182
14098
|
providedIn: 'root'
|
|
14183
14099
|
}]
|
|
14184
|
-
}], ctorParameters: function () { return [{ type:
|
|
14100
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
14185
14101
|
type: Inject,
|
|
14186
14102
|
args: ['environment']
|
|
14187
14103
|
}] }]; } });
|
|
@@ -14194,7 +14110,6 @@ class ServicePriceService extends RestService$1 {
|
|
|
14194
14110
|
super(...arguments);
|
|
14195
14111
|
this.endpointUri = 'service-prices';
|
|
14196
14112
|
this.modelClass = ServicePrice;
|
|
14197
|
-
this.isApiPlatform = true;
|
|
14198
14113
|
this.collectionClass = ServicePriceCollection;
|
|
14199
14114
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
14200
14115
|
}
|
|
@@ -14222,17 +14137,19 @@ var SubscriptionMessagesEnum;
|
|
|
14222
14137
|
* @TODO Alex refactor
|
|
14223
14138
|
*/
|
|
14224
14139
|
class SubscriptionService extends RestService$1 {
|
|
14225
|
-
constructor(http,
|
|
14226
|
-
super(
|
|
14140
|
+
constructor(http, environment) {
|
|
14141
|
+
super(environment);
|
|
14227
14142
|
this.http = http;
|
|
14228
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
14229
14143
|
this.environment = environment;
|
|
14230
|
-
this.isApiPlatform = true;
|
|
14231
14144
|
this.endpointUri = 'service-subscriptions';
|
|
14232
14145
|
this.modelClass = ServiceSubscription;
|
|
14233
14146
|
this.collectionClass = ServiceSubscriptionCollection;
|
|
14234
14147
|
this.disabledMethods = ['putBatch', 'delete', 'deleteBatch'];
|
|
14235
|
-
this.
|
|
14148
|
+
this.mercureTopic = 'serviceSubscriptions';
|
|
14149
|
+
this.listenEvents();
|
|
14150
|
+
}
|
|
14151
|
+
listenEvents() {
|
|
14152
|
+
this.listenSSE();
|
|
14236
14153
|
}
|
|
14237
14154
|
startTrial(subscription) {
|
|
14238
14155
|
return this.http.post(`${this.apiUrl}/trial`, subscription)
|
|
@@ -14282,25 +14199,7 @@ class SubscriptionService extends RestService$1 {
|
|
|
14282
14199
|
params: { code }
|
|
14283
14200
|
}).pipe(map((response) => plainToClass(ServicePromoCode, response)));
|
|
14284
14201
|
}
|
|
14285
|
-
|
|
14286
|
-
this.sseService.on(`serviceSubscriptions`)
|
|
14287
|
-
.subscribe((serviceSubscription) => {
|
|
14288
|
-
const subscription = plainToClass(ServiceSubscription, serviceSubscription);
|
|
14289
|
-
// update existing message if read and add new message if not read
|
|
14290
|
-
if (this.cache.findBy('id', subscription.id)) {
|
|
14291
|
-
this.handleResponse([subscription], 'put');
|
|
14292
|
-
}
|
|
14293
|
-
else {
|
|
14294
|
-
this.handleResponse([subscription], 'post');
|
|
14295
|
-
}
|
|
14296
|
-
// @TODO vik test and remove
|
|
14297
|
-
setTimeout(() => {
|
|
14298
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED, null));
|
|
14299
|
-
this.toastService.success('Subscription successfully updated!!!');
|
|
14300
|
-
}, 2000);
|
|
14301
|
-
});
|
|
14302
|
-
}
|
|
14303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14202
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14304
14203
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubscriptionService, providedIn: 'root' }); }
|
|
14305
14204
|
}
|
|
14306
14205
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
@@ -14308,7 +14207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14308
14207
|
args: [{
|
|
14309
14208
|
providedIn: 'root'
|
|
14310
14209
|
}]
|
|
14311
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type:
|
|
14210
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
14312
14211
|
type: Inject,
|
|
14313
14212
|
args: ['environment']
|
|
14314
14213
|
}] }]; } });
|
|
@@ -14320,7 +14219,6 @@ class ServiceProductService extends RestService$1 {
|
|
|
14320
14219
|
this.modelClass = ServiceProduct;
|
|
14321
14220
|
this.endpointUri = 'service-products';
|
|
14322
14221
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
14323
|
-
this.isApiPlatform = true;
|
|
14324
14222
|
}
|
|
14325
14223
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14326
14224
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServiceProductService, providedIn: 'root' }); }
|
|
@@ -14430,10 +14328,12 @@ __decorate([
|
|
|
14430
14328
|
* Service to work with tax review history
|
|
14431
14329
|
*/
|
|
14432
14330
|
class TaxReviewHistoryService extends RestService {
|
|
14433
|
-
constructor() {
|
|
14434
|
-
super(
|
|
14331
|
+
constructor(environment) {
|
|
14332
|
+
super(environment);
|
|
14333
|
+
this.environment = environment;
|
|
14435
14334
|
this.url = 'tax-reviews/history';
|
|
14436
14335
|
this.modelClass = TaxReview;
|
|
14336
|
+
this.listenEvents();
|
|
14437
14337
|
}
|
|
14438
14338
|
listenEvents() {
|
|
14439
14339
|
this.listenTaxReviewUpdate();
|
|
@@ -14450,7 +14350,7 @@ class TaxReviewHistoryService extends RestService {
|
|
|
14450
14350
|
this.updateCache();
|
|
14451
14351
|
});
|
|
14452
14352
|
}
|
|
14453
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TaxReviewHistoryService, deps:
|
|
14353
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TaxReviewHistoryService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14454
14354
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' }); }
|
|
14455
14355
|
}
|
|
14456
14356
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
|
|
@@ -14458,16 +14358,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14458
14358
|
args: [{
|
|
14459
14359
|
providedIn: 'root'
|
|
14460
14360
|
}]
|
|
14461
|
-
}]
|
|
14361
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
14362
|
+
type: Inject,
|
|
14363
|
+
args: ['environment']
|
|
14364
|
+
}] }]; } });
|
|
14462
14365
|
|
|
14463
14366
|
/**
|
|
14464
14367
|
* Service to work with tax review
|
|
14465
14368
|
*/
|
|
14466
14369
|
class TaxReviewService extends RestService {
|
|
14467
|
-
constructor() {
|
|
14468
|
-
super(
|
|
14370
|
+
constructor(environment) {
|
|
14371
|
+
super(environment);
|
|
14372
|
+
this.environment = environment;
|
|
14469
14373
|
this.url = 'tax-reviews';
|
|
14470
14374
|
this.modelClass = TaxReview;
|
|
14375
|
+
this.listenEvents();
|
|
14471
14376
|
}
|
|
14472
14377
|
/**
|
|
14473
14378
|
* Listen events from SSE and Event Dispatcher services
|
|
@@ -14541,7 +14446,7 @@ class TaxReviewService extends RestService {
|
|
|
14541
14446
|
}
|
|
14542
14447
|
});
|
|
14543
14448
|
}
|
|
14544
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TaxReviewService, deps:
|
|
14449
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TaxReviewService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14545
14450
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TaxReviewService, providedIn: 'root' }); }
|
|
14546
14451
|
}
|
|
14547
14452
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TaxReviewService, decorators: [{
|
|
@@ -14549,7 +14454,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14549
14454
|
args: [{
|
|
14550
14455
|
providedIn: 'root'
|
|
14551
14456
|
}]
|
|
14552
|
-
}]
|
|
14457
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
14458
|
+
type: Inject,
|
|
14459
|
+
args: ['environment']
|
|
14460
|
+
}] }]; } });
|
|
14553
14461
|
|
|
14554
14462
|
var TaxReviewMessagesEnum;
|
|
14555
14463
|
(function (TaxReviewMessagesEnum) {
|
|
@@ -14853,7 +14761,6 @@ class AllocationRuleService extends RestService$1 {
|
|
|
14853
14761
|
this.endpointUri = 'allocation-rules';
|
|
14854
14762
|
this.collectionClass = AllocationRuleCollection;
|
|
14855
14763
|
this.modelClass = AllocationRule;
|
|
14856
|
-
this.isApiPlatform = true;
|
|
14857
14764
|
}
|
|
14858
14765
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14859
14766
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AllocationRuleService, providedIn: 'root' }); }
|
|
@@ -14869,11 +14776,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14869
14776
|
* @TODO move to new rest
|
|
14870
14777
|
*/
|
|
14871
14778
|
class TransactionAllocationService extends RestService {
|
|
14872
|
-
constructor() {
|
|
14873
|
-
super(
|
|
14779
|
+
constructor(environment) {
|
|
14780
|
+
super(environment);
|
|
14781
|
+
this.environment = environment;
|
|
14874
14782
|
// API URL param for transaction allocations
|
|
14875
14783
|
this.url = 'transaction-allocations';
|
|
14876
14784
|
this.modelClass = TransactionAllocation;
|
|
14785
|
+
this.listenEvents();
|
|
14877
14786
|
}
|
|
14878
14787
|
/**
|
|
14879
14788
|
* Add single transaction allocation
|
|
@@ -14945,7 +14854,7 @@ class TransactionAllocationService extends RestService {
|
|
|
14945
14854
|
this.refreshCache();
|
|
14946
14855
|
});
|
|
14947
14856
|
}
|
|
14948
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionAllocationService, deps:
|
|
14857
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionAllocationService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14949
14858
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' }); }
|
|
14950
14859
|
}
|
|
14951
14860
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionAllocationService, decorators: [{
|
|
@@ -14953,22 +14862,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
14953
14862
|
args: [{
|
|
14954
14863
|
providedIn: 'root'
|
|
14955
14864
|
}]
|
|
14956
|
-
}]
|
|
14865
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
14866
|
+
type: Inject,
|
|
14867
|
+
args: ['environment']
|
|
14868
|
+
}] }]; } });
|
|
14957
14869
|
|
|
14958
14870
|
/**
|
|
14959
14871
|
* Service for transactions business logic
|
|
14960
14872
|
*/
|
|
14961
14873
|
class TransactionService extends RestService {
|
|
14962
|
-
constructor(http, eventDispatcherService, environment
|
|
14963
|
-
super(
|
|
14874
|
+
constructor(http, eventDispatcherService, environment) {
|
|
14875
|
+
super(environment);
|
|
14964
14876
|
this.http = http;
|
|
14965
14877
|
this.eventDispatcherService = eventDispatcherService;
|
|
14966
14878
|
this.environment = environment;
|
|
14967
|
-
this.toastService = toastService;
|
|
14968
14879
|
// url part for Transaction API
|
|
14969
14880
|
this.url = 'transactions';
|
|
14970
14881
|
this.modelClass = Transaction;
|
|
14971
14882
|
this.transactionDeleted = new EventEmitter();
|
|
14883
|
+
this.listenEvents();
|
|
14972
14884
|
}
|
|
14973
14885
|
/**
|
|
14974
14886
|
* Listen events from Event Dispatcher services
|
|
@@ -15200,7 +15112,7 @@ class TransactionService extends RestService {
|
|
|
15200
15112
|
this.refreshCache();
|
|
15201
15113
|
});
|
|
15202
15114
|
}
|
|
15203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }
|
|
15115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15204
15116
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionService, providedIn: 'root' }); }
|
|
15205
15117
|
}
|
|
15206
15118
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionService, decorators: [{
|
|
@@ -15211,7 +15123,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15211
15123
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
|
|
15212
15124
|
type: Inject,
|
|
15213
15125
|
args: ['environment']
|
|
15214
|
-
}] }
|
|
15126
|
+
}] }]; } });
|
|
15215
15127
|
|
|
15216
15128
|
// @TODO Artem: implement cache and extend rest?
|
|
15217
15129
|
class TutorialVideoService {
|
|
@@ -15326,7 +15238,7 @@ class VehicleClaimDetailsService {
|
|
|
15326
15238
|
get() {
|
|
15327
15239
|
if (!this.cache) {
|
|
15328
15240
|
this.http.get(`${this.environment.apiV2}/${this.url}`)
|
|
15329
|
-
.pipe(map((response) => plainToClass(VehicleClaimDetails, response[
|
|
15241
|
+
.pipe(map((response) => plainToClass(VehicleClaimDetails, response[0])))
|
|
15330
15242
|
.subscribe((vehicleClaimDetails) => {
|
|
15331
15243
|
this.cache = vehicleClaimDetails;
|
|
15332
15244
|
this.cacheSubject.next(this.cache);
|
|
@@ -15345,7 +15257,7 @@ class VehicleClaimDetailsService {
|
|
|
15345
15257
|
}
|
|
15346
15258
|
update(details) {
|
|
15347
15259
|
return this.http.put(`${this.environment.apiV2}/${this.url}/${details.id}`, details).pipe(map((updatedDetails) => {
|
|
15348
|
-
const details = plainToClass(VehicleClaimDetails, updatedDetails
|
|
15260
|
+
const details = plainToClass(VehicleClaimDetails, updatedDetails);
|
|
15349
15261
|
this.cache = details;
|
|
15350
15262
|
this.cacheSubject.next(details);
|
|
15351
15263
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED, details));
|
|
@@ -15411,7 +15323,6 @@ class AnnualClientDetailsService extends RestService$1 {
|
|
|
15411
15323
|
this.modelClass = AnnualClientDetails;
|
|
15412
15324
|
this.collectionClass = Collection;
|
|
15413
15325
|
this.endpointUri = 'annual-client-details';
|
|
15414
|
-
this.isApiPlatform = true;
|
|
15415
15326
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
|
|
15416
15327
|
}
|
|
15417
15328
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -15510,7 +15421,6 @@ class UserEventSettingService extends RestService$1 {
|
|
|
15510
15421
|
this.modelClass = UserEventSetting;
|
|
15511
15422
|
this.collectionClass = UserEventSettingCollection;
|
|
15512
15423
|
this.endpointUri = 'user-event-settings';
|
|
15513
|
-
this.isApiPlatform = true;
|
|
15514
15424
|
this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
|
|
15515
15425
|
}
|
|
15516
15426
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -15529,7 +15439,6 @@ class UserEventTypeService extends RestService$1 {
|
|
|
15529
15439
|
this.modelClass = UserEventType;
|
|
15530
15440
|
this.collectionClass = UserEventTypeCollection;
|
|
15531
15441
|
this.endpointUri = 'user-event-types';
|
|
15532
|
-
this.isApiPlatform = true;
|
|
15533
15442
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
15534
15443
|
}
|
|
15535
15444
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -15569,17 +15478,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15569
15478
|
}] });
|
|
15570
15479
|
|
|
15571
15480
|
class UserService extends RestService$1 {
|
|
15572
|
-
constructor() {
|
|
15573
|
-
super(
|
|
15481
|
+
constructor(environment) {
|
|
15482
|
+
super(environment);
|
|
15483
|
+
this.environment = environment;
|
|
15574
15484
|
this.modelClass = User;
|
|
15575
15485
|
this.collectionClass = Collection;
|
|
15576
15486
|
this.endpointUri = 'users';
|
|
15577
|
-
this.isApiPlatform = false;
|
|
15578
15487
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
|
|
15488
|
+
this.listenEvents();
|
|
15579
15489
|
}
|
|
15580
15490
|
listenEvents() {
|
|
15581
15491
|
this.listenServiceSubscriptionUpdated();
|
|
15582
|
-
this.listenBasiqConsentUpdated();
|
|
15583
15492
|
}
|
|
15584
15493
|
fetch() {
|
|
15585
15494
|
return super.fetch(`${this.apiUrl}/current`).pipe(map((users) => {
|
|
@@ -15676,15 +15585,15 @@ class UserService extends RestService$1 {
|
|
|
15676
15585
|
* Update cache when user's service subscription is updated
|
|
15677
15586
|
*/
|
|
15678
15587
|
listenServiceSubscriptionUpdated() {
|
|
15679
|
-
this.
|
|
15680
|
-
|
|
15681
|
-
|
|
15682
|
-
|
|
15683
|
-
|
|
15684
|
-
|
|
15685
|
-
|
|
15588
|
+
this.listenCSE(ServiceSubscription, () => {
|
|
15589
|
+
// @TODO vik test and remove
|
|
15590
|
+
setTimeout(() => {
|
|
15591
|
+
this.refreshCache();
|
|
15592
|
+
this.toastService.success('Subscription successfully updated');
|
|
15593
|
+
}, 2000);
|
|
15594
|
+
}, ['post', 'put']);
|
|
15686
15595
|
}
|
|
15687
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserService, deps:
|
|
15596
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15688
15597
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
15689
15598
|
}
|
|
15690
15599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserService, decorators: [{
|
|
@@ -15692,7 +15601,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15692
15601
|
args: [{
|
|
15693
15602
|
providedIn: 'root'
|
|
15694
15603
|
}]
|
|
15695
|
-
}]
|
|
15604
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
15605
|
+
type: Inject,
|
|
15606
|
+
args: ['environment']
|
|
15607
|
+
}] }]; } });
|
|
15696
15608
|
|
|
15697
15609
|
class FinancialYearService {
|
|
15698
15610
|
constructor(http, environment, mpService) {
|
|
@@ -15721,19 +15633,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15721
15633
|
}] }, { type: MixpanelService }]; } });
|
|
15722
15634
|
|
|
15723
15635
|
class HoldingService extends RestService$1 {
|
|
15724
|
-
constructor() {
|
|
15725
|
-
super(
|
|
15636
|
+
constructor(environment) {
|
|
15637
|
+
super(environment);
|
|
15638
|
+
this.environment = environment;
|
|
15726
15639
|
this.modelClass = Holding;
|
|
15727
15640
|
this.collectionClass = HoldingCollection;
|
|
15728
15641
|
this.endpointUri = 'holdings';
|
|
15729
|
-
this.isApiPlatform = true;
|
|
15730
15642
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
15731
15643
|
this.roles = [UserRolesEnum.HOLDING_TANK];
|
|
15644
|
+
this.listenEvents();
|
|
15732
15645
|
}
|
|
15733
15646
|
listenEvents() {
|
|
15734
|
-
this.listenCSE(HoldingSale, ['post', 'put', 'delete']
|
|
15647
|
+
this.listenCSE(HoldingSale, this.refreshCache, ['post', 'put', 'delete']);
|
|
15735
15648
|
}
|
|
15736
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HoldingService, deps:
|
|
15649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HoldingService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15737
15650
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HoldingService, providedIn: 'root' }); }
|
|
15738
15651
|
}
|
|
15739
15652
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HoldingService, decorators: [{
|
|
@@ -15741,7 +15654,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
15741
15654
|
args: [{
|
|
15742
15655
|
providedIn: 'root'
|
|
15743
15656
|
}]
|
|
15744
|
-
}]
|
|
15657
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
15658
|
+
type: Inject,
|
|
15659
|
+
args: ['environment']
|
|
15660
|
+
}] }]; } });
|
|
15745
15661
|
|
|
15746
15662
|
class HoldingTypeService extends RestService$1 {
|
|
15747
15663
|
constructor() {
|
|
@@ -15749,7 +15665,6 @@ class HoldingTypeService extends RestService$1 {
|
|
|
15749
15665
|
this.modelClass = HoldingType;
|
|
15750
15666
|
this.collectionClass = HoldingTypeCollection;
|
|
15751
15667
|
this.endpointUri = 'holding-types';
|
|
15752
|
-
this.isApiPlatform = true;
|
|
15753
15668
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
15754
15669
|
}
|
|
15755
15670
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -15768,7 +15683,6 @@ class HoldingSaleService extends RestService$1 {
|
|
|
15768
15683
|
this.modelClass = HoldingSale;
|
|
15769
15684
|
this.collectionClass = HoldingSaleCollection;
|
|
15770
15685
|
this.endpointUri = 'holding-sales';
|
|
15771
|
-
this.isApiPlatform = true;
|
|
15772
15686
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
15773
15687
|
}
|
|
15774
15688
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -18110,7 +18024,6 @@ class SetupItemService extends RestService$1 {
|
|
|
18110
18024
|
constructor() {
|
|
18111
18025
|
super(...arguments);
|
|
18112
18026
|
this.endpointUri = 'setup-items';
|
|
18113
|
-
this.isApiPlatform = true;
|
|
18114
18027
|
this.modelClass = AccountSetupItem;
|
|
18115
18028
|
this.collectionClass = AccountSetupItemCollection;
|
|
18116
18029
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
@@ -18966,7 +18879,6 @@ class PropertyCalculationService {
|
|
|
18966
18879
|
]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrCommencement(properties, loans, bankAccounts)));
|
|
18967
18880
|
}
|
|
18968
18881
|
getLvrGrowth(properties, bankAccounts, loans) {
|
|
18969
|
-
const lvr = this.getLvr(properties, bankAccounts);
|
|
18970
18882
|
const lvrCommencement = this.getLvrCommencement(properties, loans, bankAccounts);
|
|
18971
18883
|
if (!lvrCommencement) {
|
|
18972
18884
|
// check if lvrCommencement = 0 to avoid division by zero
|
|
@@ -19457,7 +19369,6 @@ class Endpoint {
|
|
|
19457
19369
|
* @TODO Alex/Vik: Create some smart system for preloader endpoints.
|
|
19458
19370
|
*/
|
|
19459
19371
|
const ENDPOINTS = {
|
|
19460
|
-
ASSETS_GET: new Endpoint('GET', '\\/assets\\/\.\*\\/\\d+'),
|
|
19461
19372
|
ALLOCATION_RULES_GET: new Endpoint('GET', '\\/allocation-rules'),
|
|
19462
19373
|
ALLOCATION_RULES_POST: new Endpoint('POST', '\\/allocation-rules'),
|
|
19463
19374
|
ALLOCATION_RULES_PUT: new Endpoint('PUT', '\\/allocation-rules\\/\\d+'),
|
|
@@ -19502,7 +19413,7 @@ const ENDPOINTS = {
|
|
|
19502
19413
|
ANNUAL_CLIENT_DETAILS_POST: new Endpoint('POST', '\\/annual-client-details'),
|
|
19503
19414
|
ANNUAL_CLIENT_DETAILS_PUT: new Endpoint('PUT', '\\/annual-client-details\\/\\d+'),
|
|
19504
19415
|
ANNUAL_CLIENT_DETAILS_DELETE: new Endpoint('DELETE', '\\/annual-client-details\\/\\d+'),
|
|
19505
|
-
|
|
19416
|
+
DEPRECIATIONS_OPENING_POST: new Endpoint('GET', '\\/depreciations\\/\\opening-balance'),
|
|
19506
19417
|
DEPRECIATIONS_GET: new Endpoint('GET', '\\/depreciations'),
|
|
19507
19418
|
DEPRECIATIONS_POST: new Endpoint('POST', '\\/depreciations'),
|
|
19508
19419
|
DEPRECIATIONS_PUT: new Endpoint('PUT', '\\/depreciations\\/\\d+'),
|
|
@@ -19520,7 +19431,7 @@ const ENDPOINTS = {
|
|
|
19520
19431
|
FILE_POST: new Endpoint('POST', '\\/api\\/files'),
|
|
19521
19432
|
FIRM_GET: new Endpoint('GET', '\\/firms'),
|
|
19522
19433
|
FIRM_CURRENT_GET: new Endpoint('GET', '\\/firms\\/current'),
|
|
19523
|
-
FIRM_CURRENT_PUT: new Endpoint('PUT', '\\/firms\\/current
|
|
19434
|
+
FIRM_CURRENT_PUT: new Endpoint('PUT', '\\/firms\\/current'),
|
|
19524
19435
|
FIRM_INVITE_POST: new Endpoint('POST', '\\/firms\\/invite'),
|
|
19525
19436
|
FIRM_REGISTRATION_POST: new Endpoint('POST', '\\/firms\\/registration'),
|
|
19526
19437
|
FOLDERS_GET: new Endpoint('GET', '\\/folders'),
|
|
@@ -19573,9 +19484,9 @@ const ENDPOINTS = {
|
|
|
19573
19484
|
PROPERTIES_CATEGORIES_GET: new Endpoint('GET', '\\/properties\\/categories'),
|
|
19574
19485
|
PROPERTIES_CATEGORIES_PUT: new Endpoint('PUT', '\\/properties\\/categories\\/\\d+'),
|
|
19575
19486
|
PROPERTIES_CATEGORIES_POST: new Endpoint('POST', '\\/properties\\/categories'),
|
|
19576
|
-
PROPERTIES_CATEGORIES_MOVEMENTS_GET: new Endpoint('GET', '\\/
|
|
19577
|
-
PROPERTIES_CATEGORY_MOVEMENTS_POST: new Endpoint('POST', '\\/
|
|
19578
|
-
PROPERTIES_CATEGORY_MOVEMENTS_PUT: new Endpoint('PUT', '\\/
|
|
19487
|
+
PROPERTIES_CATEGORIES_MOVEMENTS_GET: new Endpoint('GET', '\\/property-category-movements'),
|
|
19488
|
+
PROPERTIES_CATEGORY_MOVEMENTS_POST: new Endpoint('POST', '\\/property-category-movements'),
|
|
19489
|
+
PROPERTIES_CATEGORY_MOVEMENTS_PUT: new Endpoint('PUT', '\\/property-category-movements\\/\\d+'),
|
|
19579
19490
|
PROPERTIES_SHARES_PUT: new Endpoint('PUT', '\\/properties\\/shares\\/\\d+'),
|
|
19580
19491
|
PROPERTIES_SHARES_GET: new Endpoint('GET', '\\/properties\\/shares'),
|
|
19581
19492
|
PROPERTIES_SHARES_POST: new Endpoint('POST', '\\/properties\\/shares'),
|
|
@@ -19588,10 +19499,8 @@ const ENDPOINTS = {
|
|
|
19588
19499
|
PROPERTIES_DOCUMENTS_POST: new Endpoint('POST', '\\/property-documents'),
|
|
19589
19500
|
PROPERTIES_DOCUMENTS_PUT: new Endpoint('PUT', '\\/property-documents\\/\\d+'),
|
|
19590
19501
|
PROPERTIES_DOCUMENTS_DELETE: new Endpoint('DELETE', '\\/property-documents\\/\\d+'),
|
|
19591
|
-
PROPERTIES_PHOTO_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/photo\.\*'),
|
|
19592
19502
|
PROPERTIES_SALES_GET: new Endpoint('GET', '\\/properties\\/sales'),
|
|
19593
19503
|
PROPERTIES_SUGGESTIONS_GET: new Endpoint('GET', '/property\\/\\w+\\/v2\\/.*$'),
|
|
19594
|
-
PROPERTIES_VALUATIONS_DOCUMENTS_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/valuations\\/\\d+\\/documents'),
|
|
19595
19504
|
BORROWING_REPORTS_GET: new Endpoint('GET', '\\/borrowing-reports'),
|
|
19596
19505
|
BORROWING_REPORTS_POST: new Endpoint('POST', '\\/borrowing-reports'),
|
|
19597
19506
|
BORROWING_REPORTS_PUT: new Endpoint('PUT', '\\/borrowing-reports/\\d+'),
|
|
@@ -19662,7 +19571,7 @@ const ENDPOINTS = {
|
|
|
19662
19571
|
USER_CONFIRMATION_POST: new Endpoint('POST', '\\/users\\/confirmation'),
|
|
19663
19572
|
USER_CONFIRMATION_RESEND_POST: new Endpoint('POST', '\\/users\\/confirmation\\/resend'),
|
|
19664
19573
|
USER_CURRENT_GET: new Endpoint('GET', '\\/users\\/current'),
|
|
19665
|
-
USER_CURRENT_PASSWORD_PUT: new Endpoint('PUT', '\\/password\\/change'),
|
|
19574
|
+
USER_CURRENT_PASSWORD_PUT: new Endpoint('PUT', '\\/users\\/password\\/change'),
|
|
19666
19575
|
USER_EVENT_SETTINGS_GET: new Endpoint('GET', '\\/user-event-settings'),
|
|
19667
19576
|
USER_EVENT_TYPES_GET: new Endpoint('GET', '\\/user-event-types'),
|
|
19668
19577
|
USER_INVITE_DELETE: new Endpoint('DELETE', '\\/users\\/invite\\/\\d+'),
|
|
@@ -19670,8 +19579,9 @@ const ENDPOINTS = {
|
|
|
19670
19579
|
USER_INVITE_RESEND_POST: new Endpoint('POST', '\\/users\\/invite/\\d+\\/resend'),
|
|
19671
19580
|
USER_PUT: new Endpoint('PUT', '\\/users\\/\\d+'),
|
|
19672
19581
|
USER_REGISTRATION_POST: new Endpoint('POST', '\\/users\\/registration'),
|
|
19673
|
-
|
|
19674
|
-
|
|
19582
|
+
USER_RESET_PASSWORD_PUT: new Endpoint('PUT', '\\/users\\/password\\/reset'),
|
|
19583
|
+
USER_SEARCH_GET: new Endpoint('GET', '\\/users\\/search'),
|
|
19584
|
+
USER_UPDATE_PHOTO_POST: new Endpoint('POST', '\\/users\\/photo'),
|
|
19675
19585
|
USER_STATUS_PUT: new Endpoint('PUT', '\\/users\\/status'),
|
|
19676
19586
|
USER_RECOVERY_PASSWORD_PUT: new Endpoint('PUT', '\\/users\\/password\\/recovery'),
|
|
19677
19587
|
USER_PASSWORD_RESET_PUT: new Endpoint('PUT', '\\/password\\/reset'),
|
|
@@ -20626,7 +20536,6 @@ class BudgetForm extends AbstractForm {
|
|
|
20626
20536
|
searchQuery: new UntypedFormControl(''),
|
|
20627
20537
|
rules: new UntypedFormArray((budget.rules || [plainToClass(BudgetRule, {})]).map((budgetRule) => BudgetForm.createRuleFormGroup(budgetRule))),
|
|
20628
20538
|
}, budget);
|
|
20629
|
-
this.excludeExtraneousValues = true;
|
|
20630
20539
|
combineLatest([
|
|
20631
20540
|
this.get('category').valueChanges.pipe(startWith(null)),
|
|
20632
20541
|
this.get('searchQuery').valueChanges.pipe(startWith(null))
|
|
@@ -22078,13 +21987,13 @@ class PropertyDocumentForm extends AbstractForm {
|
|
|
22078
21987
|
}
|
|
22079
21988
|
|
|
22080
21989
|
class PropertyValuationForm extends AbstractForm {
|
|
22081
|
-
constructor(valuation) {
|
|
21990
|
+
constructor(valuation = plainToClass(PropertyValuation, {})) {
|
|
22082
21991
|
super({
|
|
22083
21992
|
date: new UntypedFormControl(valuation.date || new Date(), Validators.required),
|
|
22084
21993
|
marketValue: new UntypedFormControl(valuation.marketValue, Validators.required),
|
|
22085
21994
|
document: new UntypedFormGroup({
|
|
22086
21995
|
file: new UntypedFormControl(valuation.document?.file)
|
|
22087
|
-
})
|
|
21996
|
+
}),
|
|
22088
21997
|
}, valuation);
|
|
22089
21998
|
}
|
|
22090
21999
|
submit() {
|
|
@@ -22092,6 +22001,119 @@ class PropertyValuationForm extends AbstractForm {
|
|
|
22092
22001
|
}
|
|
22093
22002
|
}
|
|
22094
22003
|
|
|
22004
|
+
class PropertyCategoryMovementForm extends AbstractForm {
|
|
22005
|
+
constructor(movement = plainToClass(PropertyCategoryMovement, {})) {
|
|
22006
|
+
super({
|
|
22007
|
+
fromDate: new UntypedFormControl(movement.valuation?.date || new Date()),
|
|
22008
|
+
propertyCategory: new UntypedFormControl(movement.propertyCategory, Validators.required),
|
|
22009
|
+
valuation: new PropertyValuationForm(movement.valuation),
|
|
22010
|
+
}, movement);
|
|
22011
|
+
this.get('valuation').get('date').valueChanges.subscribe((value) => {
|
|
22012
|
+
this.get('fromDate').setValue(value);
|
|
22013
|
+
});
|
|
22014
|
+
}
|
|
22015
|
+
submit() {
|
|
22016
|
+
return super.submit({ valuation: this.get('valuation').submit() });
|
|
22017
|
+
}
|
|
22018
|
+
}
|
|
22019
|
+
|
|
22020
|
+
/**
|
|
22021
|
+
* Class describes property share form fields and form logic
|
|
22022
|
+
*/
|
|
22023
|
+
class PropertyShareForm extends AbstractForm {
|
|
22024
|
+
constructor(share = plainToClass(PropertyShare, {})) {
|
|
22025
|
+
super({
|
|
22026
|
+
fromDate: new UntypedFormControl(share.fromDate || new Date()),
|
|
22027
|
+
percent: new UntypedFormControl(share.percent, [Validators.required, Validators.min(0), Validators.max(100)])
|
|
22028
|
+
}, share);
|
|
22029
|
+
}
|
|
22030
|
+
}
|
|
22031
|
+
|
|
22032
|
+
/**
|
|
22033
|
+
* Class describes property forecast form fields and form logic
|
|
22034
|
+
*/
|
|
22035
|
+
class PropertyForecastForm extends AbstractForm {
|
|
22036
|
+
/**
|
|
22037
|
+
* @param forecast
|
|
22038
|
+
* @param movements property could have multiple categories within forecast year, based on categories we hide/show some fields
|
|
22039
|
+
*/
|
|
22040
|
+
constructor(forecast = plainToClass(PropertyForecast, {}), movements = new PropertyCategoryMovementCollection()) {
|
|
22041
|
+
const noIncomeCategories = [PropertyCategoryListEnum.VACANT_LAND, PropertyCategoryListEnum.OWNER_OCCUPIED];
|
|
22042
|
+
const noIncome = movements.filterBy('propertyCategory.id', noIncomeCategories).length === movements.length;
|
|
22043
|
+
super({
|
|
22044
|
+
financialYear: new UntypedFormControl({ value: forecast.financialYear, disabled: true }),
|
|
22045
|
+
marketValue: new UntypedFormControl(forecast.marketValue, Validators.required),
|
|
22046
|
+
income: new UntypedFormControl({ value: forecast.income, disabled: noIncome }, Validators.required),
|
|
22047
|
+
expense: new UntypedFormControl(forecast.expense, Validators.required),
|
|
22048
|
+
interest: new UntypedFormControl(forecast.interest, Validators.required),
|
|
22049
|
+
depreciation: new UntypedFormControl({ value: forecast.depreciation, disabled: noIncome }, Validators.required),
|
|
22050
|
+
claimPercent: new UntypedFormControl({ value: forecast.claimPercent, disabled: !movements.hasCategory(PropertyCategoryListEnum.SHARED) }, [Validators.min(0), Validators.max(100), Validators.required])
|
|
22051
|
+
}, forecast);
|
|
22052
|
+
}
|
|
22053
|
+
}
|
|
22054
|
+
|
|
22055
|
+
/**
|
|
22056
|
+
* Form class for the single new property
|
|
22057
|
+
*/
|
|
22058
|
+
class PropertyAddForm extends AbstractForm {
|
|
22059
|
+
constructor() {
|
|
22060
|
+
super({
|
|
22061
|
+
address: new UntypedFormControl(null, Validators.required),
|
|
22062
|
+
purchasePrice: new UntypedFormControl(null, Validators.required),
|
|
22063
|
+
contractDate: new UntypedFormControl(null, Validators.required),
|
|
22064
|
+
settlementDate: new UntypedFormControl(null, Validators.required),
|
|
22065
|
+
forecasts: new UntypedFormArray([
|
|
22066
|
+
new PropertyForecastForm()
|
|
22067
|
+
]),
|
|
22068
|
+
shares: new UntypedFormArray([
|
|
22069
|
+
new PropertyShareForm()
|
|
22070
|
+
]),
|
|
22071
|
+
categoryMovements: new UntypedFormArray([
|
|
22072
|
+
new PropertyCategoryMovementForm()
|
|
22073
|
+
])
|
|
22074
|
+
}, plainToClass(Property, {}));
|
|
22075
|
+
// @TODO move to submit, no need to watch
|
|
22076
|
+
// we should put the same market value to both, forecast and valuation.
|
|
22077
|
+
this.valuationForm.get('marketValue').valueChanges.subscribe((marketValue) => {
|
|
22078
|
+
this.forecastForm.get('marketValue').setValue(marketValue);
|
|
22079
|
+
});
|
|
22080
|
+
this.get('contractDate').valueChanges.subscribe((contractDate) => {
|
|
22081
|
+
this.valuationForm.get('date').setValue(contractDate);
|
|
22082
|
+
});
|
|
22083
|
+
this.categoryMovementForm.get('propertyCategory').valueChanges.subscribe((category) => {
|
|
22084
|
+
if (category.isShared()) {
|
|
22085
|
+
this.forecastForm.get('claimPercent').enable();
|
|
22086
|
+
}
|
|
22087
|
+
else {
|
|
22088
|
+
this.forecastForm.get('claimPercent').disable();
|
|
22089
|
+
}
|
|
22090
|
+
if (category.isOwnerOccupied() || category.isVacantLand()) {
|
|
22091
|
+
this.forecastForm.get('income').disable();
|
|
22092
|
+
this.forecastForm.get('depreciation').disable();
|
|
22093
|
+
}
|
|
22094
|
+
else {
|
|
22095
|
+
this.forecastForm.get('income').enable();
|
|
22096
|
+
this.forecastForm.get('depreciation').enable();
|
|
22097
|
+
}
|
|
22098
|
+
});
|
|
22099
|
+
}
|
|
22100
|
+
get valuationForm() {
|
|
22101
|
+
return this.categoryMovementForm.get('valuation');
|
|
22102
|
+
}
|
|
22103
|
+
get forecastForm() {
|
|
22104
|
+
// [0] because for property add form we have always 1 forecast form inside
|
|
22105
|
+
return this.get('forecasts').controls[0];
|
|
22106
|
+
}
|
|
22107
|
+
get shareForm() {
|
|
22108
|
+
// [0] because for property add form we have always 1 forecast form inside
|
|
22109
|
+
return this.get('shares').controls[0];
|
|
22110
|
+
}
|
|
22111
|
+
get categoryMovementForm() {
|
|
22112
|
+
// [0] because for property add form we always have 1 category movement form inside
|
|
22113
|
+
return this.get('categoryMovements').controls[0];
|
|
22114
|
+
}
|
|
22115
|
+
}
|
|
22116
|
+
|
|
22095
22117
|
class MyTaxBusinessDetailsForm extends AbstractForm {
|
|
22096
22118
|
constructor(businessDetails) {
|
|
22097
22119
|
super({
|
|
@@ -23684,5 +23706,5 @@ var MessagesEnum;
|
|
|
23684
23706
|
* Generated bundle index. Do not edit.
|
|
23685
23707
|
*/
|
|
23686
23708
|
|
|
23687
|
-
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppCurrencyPipe, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BestVehicleLogbookCollection, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsForm, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, 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, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmForm, FirmMessagesEnum, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceMessagesEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MixpanelService, 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, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SERVICE_PRODUCT_ROLES, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIconsEnum, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SetupItemTypeEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionMessagesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewMessagesEnum, 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, TransactionMetaField, TransactionOperationEnum, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, UniqueEmailValidator, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookMessages, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleMessagesEnum, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
23709
|
+
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppCurrencyPipe, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BestVehicleLogbookCollection, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsForm, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, 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, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmForm, FirmMessagesEnum, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceMessagesEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MixpanelService, 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, PropertyAddForm, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementForm, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyForecastForm, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareForm, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationCollection, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SERVICE_PRODUCT_ROLES, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIconsEnum, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SetupItemTypeEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionMessagesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewMessagesEnum, 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, TransactionMetaField, TransactionOperationEnum, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, UniqueEmailValidator, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookMessages, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleMessagesEnum, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
23688
23710
|
//# sourceMappingURL=taxtank-core.mjs.map
|