taxtank-core 0.30.40 → 0.30.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/collections/bank-account.collection.mjs +9 -29
- package/esm2020/lib/collections/bank-transaction.collection.mjs +3 -5
- package/esm2020/lib/collections/chat/message.collection.mjs +2 -4
- package/esm2020/lib/collections/collection-dictionary.mjs +1 -1
- package/esm2020/lib/collections/collection.mjs +1 -1
- package/esm2020/lib/collections/depreciation.collection.mjs +7 -19
- package/esm2020/lib/collections/exportable.collection.mjs +1 -2
- package/esm2020/lib/collections/holding-type.collection.mjs +1 -1
- package/esm2020/lib/collections/holding.collection.mjs +1 -1
- package/esm2020/lib/collections/loan/loan-payment.collection.mjs +12 -16
- package/esm2020/lib/collections/property/property-category-movement.collection.mjs +2 -4
- package/esm2020/lib/collections/property/property-share.collection.mjs +2 -4
- package/esm2020/lib/collections/property/property.collection.mjs +3 -7
- package/esm2020/lib/collections/report/depreciation/depreciation-report-item.collection.mjs +2 -4
- package/esm2020/lib/collections/report/vehicle-expense/vehicle-expense.collection.mjs +2 -4
- package/esm2020/lib/collections/subscription/service-subscription.collection.mjs +3 -7
- package/esm2020/lib/collections/tax-review.collection.mjs +5 -7
- package/esm2020/lib/collections/tax-summary/report-item.collection.mjs +8 -8
- package/esm2020/lib/collections/transaction/transaction.collection.mjs +11 -21
- package/esm2020/lib/db/Enums/address-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/allocation-rule-condition-comparison-operator.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/allocation-rule-condition-field.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/allocation-rule-condition-operator.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/allocation-rule-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/bank-account-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/bank-connection-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/bank-transaction-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-etp.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-tax-deductible.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-heading-taxable.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/chart-accounts/chart-accounts-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/client-details-medicare-exemption.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/client-details-work-depreciation-calculation.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/client-details-working-holiday-maker.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/client-invite-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/depreciation-calculation-percent.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/depreciation-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/depreciation-write-off-amount.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/file-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/firm-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/index.mjs +1 -1
- package/esm2020/lib/db/Enums/invite-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/loan-bank-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/loan-frequency.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/loan-payout-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/loan-repayment-frequency.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/phone-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/property/property-depreciation-calculation.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/registration-invite-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/salary-forecast-frequency.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/service-notification-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/service-notification-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/spare-document-spare-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-payment-method-card-brand.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-payment-method-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-payment-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-price-recurring-interval.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/subscription/service-subscription-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/tax-calculation-medicare-exemption.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/tax-calculation-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/tax-summary-list.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/tax-summary-tax-summary.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/ticket-feedback.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/ticket-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/ticket-types.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/transaction-source.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/transaction-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-event-status.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-event-type-employee-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-event-type-frequency.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-event-type-user-type.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-medicare-exemption.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-work-depreciation-calculation.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/user-working-holiday-maker.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/vehicle-claim-details-method.enum.mjs +1 -1
- package/esm2020/lib/db/Enums/vehicle-logbook-purpose.enum.mjs +1 -1
- package/esm2020/lib/db/Models/abstract-model.mjs +1 -1
- package/esm2020/lib/db/Models/bank/bank-account-property.mjs +1 -1
- package/esm2020/lib/db/Models/bank/bank-account.mjs +1 -1
- package/esm2020/lib/db/Models/chart-accounts/chart-accounts.mjs +1 -1
- package/esm2020/lib/db/Models/client/occupation.mjs +1 -1
- package/esm2020/lib/db/Models/country.mjs +1 -1
- package/esm2020/lib/db/Models/document/document-base.mjs +1 -1
- package/esm2020/lib/db/Models/firm/client-movement.mjs +1 -1
- package/esm2020/lib/db/Models/firm/employee-invite.mjs +1 -1
- package/esm2020/lib/db/Models/loan/borrowing-expense.mjs +1 -1
- package/esm2020/lib/db/Models/loan/loan-payout.mjs +1 -1
- package/esm2020/lib/db/Models/loan/loan.mjs +1 -1
- package/esm2020/lib/db/Models/observable-model.mjs +2 -2
- package/esm2020/lib/db/Models/property/property-sale/property-sale-tax-exemption-meta-field.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-sale/property-sale.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-sale/tax-exemption-meta-field.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-sale/tax-exemption.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-share.mjs +1 -1
- package/esm2020/lib/db/Models/property/property-valuation.mjs +1 -1
- package/esm2020/lib/db/Models/property/property.mjs +1 -1
- package/esm2020/lib/db/Models/sole/bas-report.mjs +1 -1
- package/esm2020/lib/db/Models/sole/sole-business-activity.mjs +1 -1
- package/esm2020/lib/db/Models/sole/sole-business-allocation.mjs +1 -1
- package/esm2020/lib/db/Models/sole/sole-contact.mjs +1 -1
- package/esm2020/lib/db/Models/sole/sole-forecast.mjs +1 -1
- package/esm2020/lib/db/Models/spare/spare-document-category.mjs +1 -1
- package/esm2020/lib/db/Models/subscription/service-payment-method.mjs +1 -1
- package/esm2020/lib/db/Models/subscription/service-subscription.mjs +1 -1
- package/esm2020/lib/db/Models/transaction/transaction-base.mjs +3 -5
- package/esm2020/lib/db/Models/user/user-event-setting.mjs +1 -1
- package/esm2020/lib/db/Models/user/user-event-type-category.mjs +1 -1
- package/esm2020/lib/db/Models/user/user-event-type.mjs +1 -1
- package/esm2020/lib/db/Models/user/user-event.mjs +1 -1
- package/esm2020/lib/forms/abstract.form.mjs +4 -1
- package/esm2020/lib/forms/address/address.form.mjs +2 -2
- package/esm2020/lib/forms/bank/bank-account/bank-account-add-manual.form.mjs +1 -1
- package/esm2020/lib/forms/bank/bank-account/bank-account-allocation.form.mjs +1 -1
- package/esm2020/lib/forms/bank/bank-account/bank-account-properties.form.mjs +5 -7
- package/esm2020/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +2 -2
- package/esm2020/lib/forms/depreciation/depreciation.form.mjs +1 -1
- package/esm2020/lib/forms/holding/holding-sale.form.mjs +25 -17
- package/esm2020/lib/forms/holding/holding-type.form.mjs +4 -4
- package/esm2020/lib/forms/holding/holding.form.mjs +3 -3
- package/esm2020/lib/forms/holding/index.mjs +1 -1
- package/esm2020/lib/forms/index.mjs +1 -1
- package/esm2020/lib/forms/loan/loan.form.mjs +3 -3
- package/esm2020/lib/forms/property/property-sale/property-sale-cost-base.form.mjs +1 -1
- package/esm2020/lib/forms/property/property-sale/property-sale-exemptions.form.mjs +1 -1
- package/esm2020/lib/forms/sole/bas-report.form.mjs +1 -1
- package/esm2020/lib/forms/sole/sole-business-allocations.form.mjs +5 -7
- package/esm2020/lib/forms/sole/sole-invoice-item.form.mjs +1 -1
- package/esm2020/lib/forms/sole/sole-invoice.form.mjs +1 -1
- package/esm2020/lib/forms/transaction/allocation-rule-transaction.form.mjs +1 -1
- package/esm2020/lib/forms/transaction/transaction-base.form.mjs +1 -1
- package/esm2020/lib/forms/transaction/work/work-transaction.form.mjs +5 -7
- package/esm2020/lib/forms/user/user-invite.form.mjs +1 -1
- package/esm2020/lib/forms/vehicle/vehicle-logbook.form.mjs +1 -1
- package/esm2020/lib/forms/vehicle/vehicle.form.mjs +1 -1
- package/esm2020/lib/functions/array/replace.mjs +1 -1
- package/esm2020/lib/functions/array/sort-deep.mjs +1 -1
- package/esm2020/lib/functions/array/sort.mjs +1 -1
- package/esm2020/lib/functions/round-to.mjs +1 -1
- package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +4 -4
- package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +5 -7
- package/esm2020/lib/interceptors/corelogic-interceptor.mjs +5 -7
- package/esm2020/lib/interceptors/financial-year-interceptor.mjs +4 -4
- package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
- package/esm2020/lib/interceptors/jwt-interceptor.mjs +16 -18
- package/esm2020/lib/interceptors/preloader.interceptor.mjs +5 -5
- package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +4 -4
- package/esm2020/lib/interfaces/income-source-forecast.interface.mjs +1 -1
- package/esm2020/lib/messages/index.mjs +1 -1
- package/esm2020/lib/messages/messages.enum.mjs +1 -1
- package/esm2020/lib/models/address/address.mjs +1 -1
- package/esm2020/lib/models/badge/badge.mjs +1 -1
- package/esm2020/lib/models/bank/bank-account-chart-data.mjs +9 -13
- package/esm2020/lib/models/bank/bank-account-property.mjs +1 -1
- package/esm2020/lib/models/bank/bank-account.mjs +1 -1
- package/esm2020/lib/models/bank/bank-connection.mjs +1 -1
- package/esm2020/lib/models/bank/bank-transaction-chart-data.mjs +4 -10
- package/esm2020/lib/models/bank/bank-transaction.mjs +2 -2
- package/esm2020/lib/models/bank/bank.mjs +1 -1
- package/esm2020/lib/models/bank/basiq/basiq-config.mjs +1 -1
- package/esm2020/lib/models/bank/basiq/basiq-job-response.mjs +1 -1
- package/esm2020/lib/models/bank/basiq/basiq-token.mjs +2 -2
- package/esm2020/lib/models/chart/chart-data.mjs +1 -1
- package/esm2020/lib/models/chart-accounts/chart-accounts-depreciation.mjs +1 -1
- package/esm2020/lib/models/chart-accounts/chart-accounts.mjs +3 -3
- package/esm2020/lib/models/chat/chat.mjs +1 -1
- package/esm2020/lib/models/chat/message-document.mjs +1 -1
- package/esm2020/lib/models/chat/message.mjs +1 -1
- package/esm2020/lib/models/client/annual-client-details.mjs +1 -1
- package/esm2020/lib/models/client/client-invite.mjs +1 -1
- package/esm2020/lib/models/client/client-movement.mjs +1 -1
- package/esm2020/lib/models/client/client-portfolio-chart-data.mjs +5 -7
- package/esm2020/lib/models/depreciation/depreciation-capital-project.mjs +1 -1
- package/esm2020/lib/models/depreciation/depreciation-forecast.mjs +1 -1
- package/esm2020/lib/models/depreciation/depreciation.mjs +4 -8
- package/esm2020/lib/models/dictionary/dictionary.mjs +1 -1
- package/esm2020/lib/models/document/document-folder.mjs +1 -1
- package/esm2020/lib/models/employee/employee-details.mjs +1 -1
- package/esm2020/lib/models/employee/employee-invite.mjs +1 -1
- package/esm2020/lib/models/financial-year/financial-year.mjs +1 -1
- package/esm2020/lib/models/firm/firm.mjs +1 -1
- package/esm2020/lib/models/holding/holding-sale.mjs +2 -16
- package/esm2020/lib/models/holding/holding-type-exchange.mjs +1 -1
- package/esm2020/lib/models/holding/holding-type.mjs +1 -1
- package/esm2020/lib/models/holding/holding.mjs +2 -2
- package/esm2020/lib/models/income-position/income-position.mjs +1 -1
- package/esm2020/lib/models/income-source/income-source-forecast.mjs +1 -1
- package/esm2020/lib/models/income-source/income-source.mjs +1 -1
- package/esm2020/lib/models/income-source/salary-forecast.mjs +1 -1
- package/esm2020/lib/models/income-source/sole-forecast.mjs +3 -4
- package/esm2020/lib/models/loan/loan-payment.mjs +1 -1
- package/esm2020/lib/models/loan/loan.mjs +1 -1
- package/esm2020/lib/models/notification/notification.mjs +1 -1
- package/esm2020/lib/models/pdf/pdf-settings.mjs +1 -1
- package/esm2020/lib/models/phone/phone.mjs +1 -1
- package/esm2020/lib/models/property/property-category-movement.mjs +1 -1
- package/esm2020/lib/models/property/property-equity-chart-data.mjs +5 -13
- package/esm2020/lib/models/property/property-forecast.mjs +1 -1
- package/esm2020/lib/models/property/property-sale/property-sale.mjs +1 -1
- package/esm2020/lib/models/property/property-share.mjs +1 -1
- package/esm2020/lib/models/property/property-subscription.mjs +1 -1
- package/esm2020/lib/models/property/property-valuation.mjs +1 -1
- package/esm2020/lib/models/property/property.mjs +3 -7
- package/esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-income/my-tax-business-income.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-business-income-or-losses/my-tax-business-losses/my-tax-business-losses.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.mjs +2 -2
- package/esm2020/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +1 -1
- package/esm2020/lib/models/report/property/property-report-item.mjs +1 -1
- package/esm2020/lib/models/report/sole/sole-business/sole-business-loss-report.mjs +1 -1
- package/esm2020/lib/models/service-subscription/service-payment.mjs +1 -1
- package/esm2020/lib/models/service-subscription/service-price.mjs +2 -2
- package/esm2020/lib/models/service-subscription/service-promo-code.mjs +1 -1
- package/esm2020/lib/models/service-subscription/service-subscription-item.mjs +1 -1
- package/esm2020/lib/models/service-subscription/service-subscription.mjs +4 -8
- package/esm2020/lib/models/sole/bas-report.mjs +2 -2
- package/esm2020/lib/models/sole/sole-business-activity.mjs +2 -2
- package/esm2020/lib/models/sole/sole-business-allocation.mjs +1 -1
- package/esm2020/lib/models/sole/sole-business-loss-offset-rule.mjs +1 -1
- package/esm2020/lib/models/sole/sole-business-loss.mjs +1 -1
- package/esm2020/lib/models/sole/sole-business.mjs +1 -1
- package/esm2020/lib/models/sole/sole-contact.mjs +1 -1
- package/esm2020/lib/models/sole/sole-details.mjs +1 -1
- package/esm2020/lib/models/sole/sole-invoice-item.mjs +1 -1
- package/esm2020/lib/models/sole/sole-invoice-template.mjs +1 -1
- package/esm2020/lib/models/sole/sole-invoice.mjs +2 -2
- package/esm2020/lib/models/tax-review/tax-review.mjs +1 -1
- package/esm2020/lib/models/tax-summary/report-item.mjs +1 -1
- package/esm2020/lib/models/tax-summary/tax-summary-section.mjs +1 -1
- package/esm2020/lib/models/tax-summary/tax-summary.mjs +1 -1
- package/esm2020/lib/models/toast/toast.mjs +1 -1
- package/esm2020/lib/models/transaction/allocation-rule-condition.mjs +1 -1
- package/esm2020/lib/models/transaction/allocation-rule-transaction.mjs +7 -17
- package/esm2020/lib/models/transaction/allocation-rule.mjs +5 -5
- package/esm2020/lib/models/transaction/transaction-allocation.mjs +2 -2
- package/esm2020/lib/models/transaction/transaction-meta-field.mjs +1 -1
- package/esm2020/lib/models/transaction/transaction.mjs +4 -6
- package/esm2020/lib/models/user/user.mjs +1 -1
- package/esm2020/lib/models/user-event/user-event-setting.mjs +1 -1
- package/esm2020/lib/models/user-event/user-event-type.mjs +2 -2
- package/esm2020/lib/models/vehicle/logbook-period.mjs +1 -1
- package/esm2020/lib/models/vehicle/vehicle-claim-details.mjs +1 -1
- package/esm2020/lib/models/vehicle/vehicle-claim.mjs +1 -1
- package/esm2020/lib/models/vehicle/vehicle-logbook.mjs +1 -1
- package/esm2020/lib/models/vehicle/vehicle.mjs +1 -1
- package/esm2020/lib/services/account-setup/account-setup.service.mjs +5 -5
- package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +4 -4
- package/esm2020/lib/services/asset/assets.service.mjs +3 -3
- package/esm2020/lib/services/auth/auth.service.mjs +5 -5
- package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
- package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
- package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +6 -10
- package/esm2020/lib/services/data.service.mjs +3 -3
- package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
- package/esm2020/lib/services/event/sse.service.mjs +5 -7
- package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
- package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
- package/esm2020/lib/services/http/address/address.service.mjs +5 -7
- package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +4 -4
- package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +6 -6
- package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +5 -8
- package/esm2020/lib/services/http/bank/bank.service.mjs +8 -9
- package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +4 -4
- package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +4 -4
- package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +4 -4
- package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +5 -5
- package/esm2020/lib/services/http/chat/chat.service.mjs +5 -5
- package/esm2020/lib/services/http/chat/message-document.service.mjs +6 -8
- package/esm2020/lib/services/http/chat/message.service.mjs +4 -4
- package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +4 -4
- package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +5 -7
- package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +5 -7
- package/esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +5 -7
- package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +4 -4
- package/esm2020/lib/services/http/document/document.service.mjs +4 -4
- package/esm2020/lib/services/http/facebook/facebook.service.mjs +4 -4
- package/esm2020/lib/services/http/file/file.service.mjs +7 -4
- package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +4 -4
- package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +5 -7
- package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +7 -13
- package/esm2020/lib/services/http/firm/employee/employee.service.mjs +4 -4
- package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +5 -7
- package/esm2020/lib/services/http/firm/firm.service.mjs +8 -16
- package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +4 -4
- package/esm2020/lib/services/http/google/google.service.mjs +4 -4
- package/esm2020/lib/services/http/holding/holding-sale.service.mjs +4 -4
- package/esm2020/lib/services/http/holding/holding-type.service.mjs +4 -4
- package/esm2020/lib/services/http/holding/holding.service.mjs +4 -4
- package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +4 -4
- package/esm2020/lib/services/http/income-source/income-source.service.mjs +6 -10
- package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +4 -4
- package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +4 -4
- package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +5 -7
- package/esm2020/lib/services/http/loan/loan.service.mjs +5 -7
- package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +4 -4
- package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +4 -4
- package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +4 -4
- package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +4 -4
- package/esm2020/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.mjs +4 -4
- package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +5 -5
- package/esm2020/lib/services/http/property/property.service.mjs +5 -5
- package/esm2020/lib/services/http/receipt/receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/rest/rest-old.service.mjs +7 -11
- package/esm2020/lib/services/http/rest/rest.service.mjs +4 -6
- package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +4 -4
- package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +4 -4
- package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +5 -5
- package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +4 -4
- package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +4 -4
- package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +4 -4
- package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +4 -4
- package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +5 -5
- package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +4 -4
- package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +4 -4
- package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +4 -4
- package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +4 -4
- package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +4 -4
- package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +4 -4
- package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +5 -7
- package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +4 -4
- package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +4 -4
- package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +4 -4
- package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +4 -4
- package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +5 -7
- package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction.service.mjs +12 -22
- package/esm2020/lib/services/http/tutorial-video/tutorial-video-response.interface.mjs +1 -1
- package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +4 -4
- package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +4 -4
- package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +4 -4
- package/esm2020/lib/services/http/user/user.service.mjs +7 -9
- package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +4 -4
- package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +4 -4
- package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +4 -4
- package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +4 -4
- package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +4 -4
- package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
- package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +4 -4
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +4 -4
- package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
- package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +6 -10
- package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +11 -17
- package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +13 -31
- package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +11 -17
- package/esm2020/lib/services/toast/toast.service.mjs +3 -3
- package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +5 -7
- package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
- package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +5 -5
- package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
- package/esm2020/lib/tt-core.module.mjs +4 -4
- package/esm2020/lib/validators/at-least-one-enabled.validator.mjs +4 -6
- package/esm2020/lib/validators/at-least-one.validator.mjs +3 -5
- package/esm2020/lib/validators/autocomplete.validator.mjs +2 -4
- package/esm2020/lib/validators/fields-sum.validator.mjs +8 -10
- package/esm2020/lib/validators/file.validator.mjs +1 -1
- package/esm2020/lib/validators/phone-number.validator.mjs +2 -4
- package/esm2020/lib/validators/transactions-meta-fields.validator.mjs +2 -2
- package/esm2020/public-api.mjs +1 -1
- package/fesm2015/taxtank-core.mjs +589 -839
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +589 -834
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/collections/subscription/service-subscription.collection.d.ts +1 -1
- package/lib/db/Models/chart-accounts/chart-accounts.d.ts +1 -1
- package/lib/db/Models/observable-model.d.ts +2 -2
- package/lib/db/Models/subscription/service-subscription.d.ts +1 -1
- package/lib/forms/holding/holding-sale.form.d.ts +3 -2
- package/lib/forms/holding/holding-type.form.d.ts +2 -2
- package/lib/forms/holding/holding.form.d.ts +2 -2
- package/lib/forms/property/property-sale/property-sale-exemptions.form.d.ts +1 -1
- package/lib/forms/sole/bas-report.form.d.ts +1 -1
- package/lib/interceptors/basiq-client-id.interceptor.d.ts +1 -1
- package/lib/interceptors/basiq-token.interceptor.d.ts +1 -1
- package/lib/interceptors/corelogic-interceptor.d.ts +1 -1
- package/lib/interceptors/financial-year-interceptor.d.ts +1 -1
- package/lib/interceptors/preloader.interceptor.d.ts +1 -1
- package/lib/interceptors/user-switcher-interceptor.d.ts +1 -1
- package/lib/interfaces/income-source-forecast.interface.d.ts +1 -1
- package/lib/models/bank/basiq/basiq-token.d.ts +1 -1
- package/lib/models/holding/holding-sale.d.ts +0 -2
- package/lib/models/income-source/sole-forecast.d.ts +2 -2
- package/lib/models/property/property.d.ts +1 -1
- package/lib/models/report/sole/sole-business/sole-business-loss-report.d.ts +1 -1
- package/lib/models/service-subscription/service-promo-code.d.ts +1 -1
- package/lib/models/sole/bas-report.d.ts +1 -1
- package/lib/models/sole/sole-business-activity.d.ts +1 -1
- package/lib/services/auth/auth.service.d.ts +3 -3
- package/lib/services/http/bank/bank.service.d.ts +1 -1
- package/lib/services/http/chat/chat.service.d.ts +1 -1
- package/lib/services/http/client/capital-gain/annual-client-details.service.d.ts +1 -1
- package/lib/services/http/facebook/facebook.service.d.ts +2 -2
- package/lib/services/http/file/file.service.d.ts +1 -0
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts +1 -1
- package/lib/services/http/google/google.service.d.ts +1 -1
- package/lib/services/http/holding/holding-sale.service.d.ts +1 -1
- package/lib/services/http/holding/holding-type.service.d.ts +1 -1
- package/lib/services/http/holding/holding.service.d.ts +1 -1
- package/lib/services/http/tutorial-video/tutorial-video-response.interface.d.ts +1 -1
- package/lib/services/report/property/property-transaction-report.service.d.ts +1 -1
- package/lib/services/transaction/transaction-calculation.service.d.ts +1 -1
- package/lib/services/vehicle/logbook-best-period.service.d.ts +1 -1
- package/lib/validators/transactions-meta-fields.validator.d.ts +1 -1
- package/package.json +1 -1
|
@@ -25,7 +25,6 @@ import concat from 'lodash/concat';
|
|
|
25
25
|
import cloneDeep$1 from 'lodash/cloneDeep';
|
|
26
26
|
import clone from 'lodash/clone';
|
|
27
27
|
import { EventSourcePolyfill } from 'event-source-polyfill/src/eventsource.min.js';
|
|
28
|
-
import { throwError as throwError$1 } from 'rxjs/internal/observable/throwError';
|
|
29
28
|
import * as i4 from '@angular/router';
|
|
30
29
|
import { NavigationEnd } from '@angular/router';
|
|
31
30
|
import _ from 'lodash';
|
|
@@ -38,6 +37,7 @@ import html2pdf from 'html2pdf.js';
|
|
|
38
37
|
import isEqual from 'lodash/isEqual';
|
|
39
38
|
import * as xlsx from 'xlsx';
|
|
40
39
|
import * as FileSaver from 'file-saver';
|
|
40
|
+
import round from 'lodash/round';
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* https://api-uat.corelogic.asia/property/au/v2/suggest.json
|
|
@@ -55,9 +55,7 @@ class CorelogicService {
|
|
|
55
55
|
getAccessToken(force = false) {
|
|
56
56
|
if (!this._accessToken || force) {
|
|
57
57
|
this.http.get(`${this.environment.coreLogicUrl}/access/oauth/token?grant_type=client_credentials&client_id=${this.environment.coreLogicId}&client_secret=${this.environment.coreLogicSecret}`)
|
|
58
|
-
.pipe(map((response) =>
|
|
59
|
-
return response.access_token;
|
|
60
|
-
}))
|
|
58
|
+
.pipe(map((response) => response.access_token))
|
|
61
59
|
.subscribe((token) => {
|
|
62
60
|
this._accessToken = token;
|
|
63
61
|
this.accessTokenSubject.next(this._accessToken);
|
|
@@ -68,14 +66,12 @@ class CorelogicService {
|
|
|
68
66
|
getSuggestions(query, country = 'au') {
|
|
69
67
|
// @TODO handle different countries in future
|
|
70
68
|
return this.http.get(`${this.environment.coreLogicUrl}/property/${country}/v2/suggest.json?q=${query}`)
|
|
71
|
-
.pipe(map((response) =>
|
|
72
|
-
return response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item));
|
|
73
|
-
}));
|
|
69
|
+
.pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))));
|
|
74
70
|
}
|
|
75
71
|
}
|
|
76
|
-
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
77
|
-
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
72
|
+
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
73
|
+
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, providedIn: 'root' });
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicService, decorators: [{
|
|
79
75
|
type: Injectable,
|
|
80
76
|
args: [{
|
|
81
77
|
providedIn: 'root'
|
|
@@ -105,9 +101,7 @@ class CorelogicInterceptor {
|
|
|
105
101
|
return next.handle(request);
|
|
106
102
|
}
|
|
107
103
|
return this.corelogicService.getAccessToken()
|
|
108
|
-
.pipe(mergeMap((token) =>
|
|
109
|
-
return next.handle(this.addToken(request, token));
|
|
110
|
-
}));
|
|
104
|
+
.pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
|
|
111
105
|
}
|
|
112
106
|
addToken(request, token) {
|
|
113
107
|
return request.clone({
|
|
@@ -117,9 +111,9 @@ class CorelogicInterceptor {
|
|
|
117
111
|
});
|
|
118
112
|
}
|
|
119
113
|
}
|
|
120
|
-
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
121
|
-
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
114
|
+
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
115
|
+
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor });
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor, decorators: [{
|
|
123
117
|
type: Injectable
|
|
124
118
|
}], ctorParameters: function () {
|
|
125
119
|
return [{ type: CorelogicService }, { type: undefined, decorators: [{
|
|
@@ -158,9 +152,9 @@ class FinancialYearInterceptor {
|
|
|
158
152
|
return next.handle(clonedReq);
|
|
159
153
|
}
|
|
160
154
|
}
|
|
161
|
-
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
162
|
-
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
155
|
+
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
156
|
+
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor });
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
|
|
164
158
|
type: Injectable
|
|
165
159
|
}], ctorParameters: function () {
|
|
166
160
|
return [{ type: undefined, decorators: [{
|
|
@@ -463,9 +457,7 @@ __decorate([
|
|
|
463
457
|
__decorate([
|
|
464
458
|
Exclude({ toPlainOnly: true }),
|
|
465
459
|
Type(() => Object),
|
|
466
|
-
Transform(({ obj }) =>
|
|
467
|
-
return obj.file;
|
|
468
|
-
})
|
|
460
|
+
Transform(({ obj }) => obj.file)
|
|
469
461
|
], TransactionBase.prototype, "file", void 0);
|
|
470
462
|
__decorate([
|
|
471
463
|
Exclude()
|
|
@@ -1290,7 +1282,6 @@ class ExportableCollection extends Collection {
|
|
|
1290
1282
|
getExportFooter(type) {
|
|
1291
1283
|
return [];
|
|
1292
1284
|
}
|
|
1293
|
-
;
|
|
1294
1285
|
export(type) {
|
|
1295
1286
|
return plainToClass(ExportDataTable, {
|
|
1296
1287
|
header: this.getExportHeader(type),
|
|
@@ -1329,26 +1320,22 @@ class LoanPaymentCollection extends ExportableCollection {
|
|
|
1329
1320
|
];
|
|
1330
1321
|
}
|
|
1331
1322
|
getExportBody() {
|
|
1332
|
-
return this.items.map((payment) =>
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
];
|
|
1342
|
-
});
|
|
1323
|
+
return this.items.map((payment) => [
|
|
1324
|
+
plainToClass(ExportCell, { value: payment.number, type: ExportCellTypeEnum.STRING }),
|
|
1325
|
+
plainToClass(ExportCell, { value: payment.date, type: ExportCellTypeEnum.DATE }),
|
|
1326
|
+
plainToClass(ExportCell, { value: payment.paymentDue, type: ExportCellTypeEnum.CURRENCY }),
|
|
1327
|
+
plainToClass(ExportCell, { value: payment.interestAccrued, type: ExportCellTypeEnum.CURRENCY }),
|
|
1328
|
+
plainToClass(ExportCell, { value: payment.principalPaid, type: ExportCellTypeEnum.CURRENCY }),
|
|
1329
|
+
plainToClass(ExportCell, { value: payment.principalBalance, type: ExportCellTypeEnum.CURRENCY }),
|
|
1330
|
+
plainToClass(ExportCell, { value: payment.payout, type: ExportCellTypeEnum.CURRENCY }),
|
|
1331
|
+
]);
|
|
1343
1332
|
}
|
|
1344
1333
|
get paymentDue() {
|
|
1345
1334
|
return this.sumBy('paymentDue');
|
|
1346
1335
|
}
|
|
1347
1336
|
getByFinYear(finYear = new FinancialYear()) {
|
|
1348
|
-
return this.filter((payment) =>
|
|
1349
|
-
|
|
1350
|
-
new Date(payment.date) <= finYear.endDate;
|
|
1351
|
-
});
|
|
1337
|
+
return this.filter((payment) => new Date(payment.date) >= finYear.startDate &&
|
|
1338
|
+
new Date(payment.date) <= finYear.endDate);
|
|
1352
1339
|
}
|
|
1353
1340
|
getForCurrentYear() {
|
|
1354
1341
|
return this.getByFinYear(new FinancialYear());
|
|
@@ -1587,9 +1574,7 @@ var ServiceSubscriptionStatusEnum;
|
|
|
1587
1574
|
|
|
1588
1575
|
class MessageCollection extends Collection {
|
|
1589
1576
|
getFirstUnreadMessage(user) {
|
|
1590
|
-
return this.items.find((message) =>
|
|
1591
|
-
return !message.isRead() && message.isFromEmployee() !== user.isEmployee();
|
|
1592
|
-
});
|
|
1577
|
+
return this.items.find((message) => !message.isRead() && message.isFromEmployee() !== user.isEmployee());
|
|
1593
1578
|
}
|
|
1594
1579
|
/**
|
|
1595
1580
|
* Get List of unread chats
|
|
@@ -1790,9 +1775,7 @@ class PropertyCollection extends Collection {
|
|
|
1790
1775
|
return new PropertyCollection(this.items.filter((property) => property.category.isOwnerOccupied()));
|
|
1791
1776
|
}
|
|
1792
1777
|
get earliestContractDate() {
|
|
1793
|
-
return this.items.reduce((min, property) =>
|
|
1794
|
-
return min < property.contractDate ? min : property.contractDate;
|
|
1795
|
-
}, new FinancialYear(new Date()).startDate);
|
|
1778
|
+
return this.items.reduce((min, property) => min < property.contractDate ? min : property.contractDate, new FinancialYear(new Date()).startDate);
|
|
1796
1779
|
}
|
|
1797
1780
|
/**
|
|
1798
1781
|
* Get list of unique property categories from collection
|
|
@@ -1804,9 +1787,7 @@ class PropertyCollection extends Collection {
|
|
|
1804
1787
|
* Get property with the highest growth percent
|
|
1805
1788
|
*/
|
|
1806
1789
|
getBestPerformanceGrowthProperty() {
|
|
1807
|
-
return this.items.reduce((max, current) =>
|
|
1808
|
-
return max.growthPercent < current.growthPercent ? current : max;
|
|
1809
|
-
}, this.first);
|
|
1790
|
+
return this.items.reduce((max, current) => max.growthPercent < current.growthPercent ? current : max, this.first);
|
|
1810
1791
|
}
|
|
1811
1792
|
/**
|
|
1812
1793
|
* Get property with the lowest tax position
|
|
@@ -1846,9 +1827,7 @@ class PropertyCategoryMovementCollection extends Collection {
|
|
|
1846
1827
|
*/
|
|
1847
1828
|
getByForecast(property, forecast) {
|
|
1848
1829
|
const financialYear = new FinancialYear(forecast.financialYear);
|
|
1849
|
-
return this.filterBy('property.id', property.id).filter((movement) =>
|
|
1850
|
-
return movement.fromDate <= financialYear.endDate && !movement.toDate || movement.toDate >= financialYear.startDate;
|
|
1851
|
-
});
|
|
1830
|
+
return this.filterBy('property.id', property.id).filter((movement) => movement.fromDate <= financialYear.endDate && !movement.toDate || movement.toDate >= financialYear.startDate);
|
|
1852
1831
|
}
|
|
1853
1832
|
hasCategory(categoryId) {
|
|
1854
1833
|
return !!this.findBy('propertyCategory.id', categoryId);
|
|
@@ -1862,10 +1841,7 @@ class PropertyShareCollection extends Collection {
|
|
|
1862
1841
|
* @TODO Alex: rename
|
|
1863
1842
|
*/
|
|
1864
1843
|
getIncoming() {
|
|
1865
|
-
return this.filter((propertyShare) => {
|
|
1866
|
-
var _a;
|
|
1867
|
-
return ((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId');
|
|
1868
|
-
});
|
|
1844
|
+
return this.filter((propertyShare) => { var _a; return ((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId'); });
|
|
1869
1845
|
}
|
|
1870
1846
|
/**
|
|
1871
1847
|
* Get list of outcoming property shares
|
|
@@ -3279,7 +3255,6 @@ class SoleForecast extends SoleForecast$1 {
|
|
|
3279
3255
|
get netPay() {
|
|
3280
3256
|
return this.amount;
|
|
3281
3257
|
}
|
|
3282
|
-
;
|
|
3283
3258
|
}
|
|
3284
3259
|
__decorate([
|
|
3285
3260
|
Type(() => IncomeSource)
|
|
@@ -3471,33 +3446,23 @@ __decorate([
|
|
|
3471
3446
|
Type(() => ChartAccounts)
|
|
3472
3447
|
// @TODO Alex: Create custom decorator for this transform
|
|
3473
3448
|
,
|
|
3474
|
-
Transform(({ value }) => {
|
|
3475
|
-
return { id: value.id };
|
|
3476
|
-
}, { toPlainOnly: true })
|
|
3449
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
3477
3450
|
], AllocationRuleTransaction.prototype, "chartAccounts", void 0);
|
|
3478
3451
|
__decorate([
|
|
3479
3452
|
Type(() => Property),
|
|
3480
|
-
Transform(({ value }) => {
|
|
3481
|
-
return value ? { id: value.id } : null;
|
|
3482
|
-
}, { toPlainOnly: true })
|
|
3453
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3483
3454
|
], AllocationRuleTransaction.prototype, "property", void 0);
|
|
3484
3455
|
__decorate([
|
|
3485
3456
|
Type(() => Loan),
|
|
3486
|
-
Transform(({ value }) => {
|
|
3487
|
-
return value ? { id: value.id } : null;
|
|
3488
|
-
}, { toPlainOnly: true })
|
|
3457
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3489
3458
|
], AllocationRuleTransaction.prototype, "loan", void 0);
|
|
3490
3459
|
__decorate([
|
|
3491
3460
|
Type(() => IncomeSource),
|
|
3492
|
-
Transform(({ value }) => {
|
|
3493
|
-
return value ? { id: value.id } : null;
|
|
3494
|
-
}, { toPlainOnly: true })
|
|
3461
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3495
3462
|
], AllocationRuleTransaction.prototype, "incomeSource", void 0);
|
|
3496
3463
|
__decorate([
|
|
3497
3464
|
Type(() => SoleBusiness),
|
|
3498
|
-
Transform(({ value }) => {
|
|
3499
|
-
return value ? { id: value.id } : null;
|
|
3500
|
-
}, { toPlainOnly: true })
|
|
3465
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3501
3466
|
], AllocationRuleTransaction.prototype, "business", void 0);
|
|
3502
3467
|
__decorate([
|
|
3503
3468
|
Type(() => AllocationRuleTransactionMetaField)
|
|
@@ -3574,7 +3539,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3574
3539
|
* Rule is matched when all conditions matched
|
|
3575
3540
|
*/
|
|
3576
3541
|
checkAnd(bankTransaction) {
|
|
3577
|
-
for (
|
|
3542
|
+
for (const condition of this.conditions) {
|
|
3578
3543
|
if (!condition.matchBankTransaction(bankTransaction)) {
|
|
3579
3544
|
return false;
|
|
3580
3545
|
}
|
|
@@ -3585,7 +3550,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3585
3550
|
* Rule is matched when at least one condition matched
|
|
3586
3551
|
*/
|
|
3587
3552
|
checkOr(bankTransaction) {
|
|
3588
|
-
for (
|
|
3553
|
+
for (const condition of this.conditions) {
|
|
3589
3554
|
if (condition.matchBankTransaction(bankTransaction)) {
|
|
3590
3555
|
return true;
|
|
3591
3556
|
}
|
|
@@ -3617,7 +3582,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3617
3582
|
}
|
|
3618
3583
|
__decorate([
|
|
3619
3584
|
Type(() => BankAccount),
|
|
3620
|
-
Transform(({ value }) => {
|
|
3585
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
3621
3586
|
], AllocationRule.prototype, "bankAccount", void 0);
|
|
3622
3587
|
__decorate([
|
|
3623
3588
|
Type(() => AllocationRuleCondition)
|
|
@@ -4011,12 +3976,8 @@ class PropertyEquityChartData {
|
|
|
4011
3976
|
const items = this.list.filter((item) => item.year <= this.currentYear);
|
|
4012
3977
|
items.forEach((item) => {
|
|
4013
3978
|
// increase item values with property actual forecasts for item year
|
|
4014
|
-
item.marketValue = this.properties.items.reduce((sum, property) =>
|
|
4015
|
-
|
|
4016
|
-
}, 0);
|
|
4017
|
-
item.loanBalance = Math.abs(this.properties.items.reduce((sum, property) => {
|
|
4018
|
-
return sum + this.getLoanBalanceForPropertyByYear(property, item.year);
|
|
4019
|
-
}, 0));
|
|
3979
|
+
item.marketValue = this.properties.items.reduce((sum, property) => sum + this.getMarketValueForPropertyByYear(property, item.year), 0);
|
|
3980
|
+
item.loanBalance = Math.abs(this.properties.items.reduce((sum, property) => sum + this.getLoanBalanceForPropertyByYear(property, item.year), 0));
|
|
4020
3981
|
});
|
|
4021
3982
|
}
|
|
4022
3983
|
/**
|
|
@@ -4026,9 +3987,7 @@ class PropertyEquityChartData {
|
|
|
4026
3987
|
buildActualItem() {
|
|
4027
3988
|
const item = this.list.find((i) => i.year === this.currentYear);
|
|
4028
3989
|
item.marketValue = this.properties.marketValue;
|
|
4029
|
-
item.loanBalance = this.properties.items.reduce((sum, property) =>
|
|
4030
|
-
return sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id));
|
|
4031
|
-
}, 0);
|
|
3990
|
+
item.loanBalance = this.properties.items.reduce((sum, property) => sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id)), 0);
|
|
4032
3991
|
}
|
|
4033
3992
|
/**
|
|
4034
3993
|
* collect equity position items with forecasted (future) calculated values
|
|
@@ -4060,10 +4019,7 @@ class PropertyEquityChartData {
|
|
|
4060
4019
|
* @private
|
|
4061
4020
|
*/
|
|
4062
4021
|
getLoanBalanceByYear(property, year, bankAccounts, loans) {
|
|
4063
|
-
return bankAccounts.items.reduce((totalSum, bankAccount) => {
|
|
4064
|
-
var _a, _b;
|
|
4065
|
-
return totalSum + (bankAccount.getPropertyPercentage(property.id) * (((_b = (_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.getLastPaymentByYear(year)) === null || _b === void 0 ? void 0 : _b.totalOwed) || 0));
|
|
4066
|
-
}, 0);
|
|
4022
|
+
return bankAccounts.items.reduce((totalSum, bankAccount) => { var _a, _b; return totalSum + (bankAccount.getPropertyPercentage(property.id) * (((_b = (_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.getLastPaymentByYear(year)) === null || _b === void 0 ? void 0 : _b.totalOwed) || 0)); }, 0);
|
|
4067
4023
|
}
|
|
4068
4024
|
getMarketValueForPropertyByYear(property, year) {
|
|
4069
4025
|
if (new FinancialYear(property.contractDate).year > year) {
|
|
@@ -5101,9 +5057,7 @@ class Transaction extends Transaction$1 {
|
|
|
5101
5057
|
*/
|
|
5102
5058
|
getMetaFieldValue(field) {
|
|
5103
5059
|
var _a;
|
|
5104
|
-
return +((_a = this.metaFields.find((transactionMetaField) =>
|
|
5105
|
-
return transactionMetaField.chartAccountsMetaField.id === field;
|
|
5106
|
-
})) === null || _a === void 0 ? void 0 : _a.value) || 0;
|
|
5060
|
+
return +((_a = this.metaFields.find((transactionMetaField) => transactionMetaField.chartAccountsMetaField.id === field)) === null || _a === void 0 ? void 0 : _a.value) || 0;
|
|
5107
5061
|
}
|
|
5108
5062
|
isCash() {
|
|
5109
5063
|
return this.source === TransactionSourceEnum.CASH;
|
|
@@ -5297,9 +5251,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
5297
5251
|
* @TODO Vik: Research a problem with depreciations without current year forecast
|
|
5298
5252
|
*/
|
|
5299
5253
|
get currentYearForecast() {
|
|
5300
|
-
return this.forecasts.find((forecast) => {
|
|
5301
|
-
return forecast.financialYear === new FinancialYear().year;
|
|
5302
|
-
}) || plainToClass(DepreciationForecast, {
|
|
5254
|
+
return this.forecasts.find((forecast) => forecast.financialYear === new FinancialYear().year) || plainToClass(DepreciationForecast, {
|
|
5303
5255
|
financialYear: new FinancialYear().year,
|
|
5304
5256
|
openBalance: 0,
|
|
5305
5257
|
closeBalance: 0,
|
|
@@ -5308,9 +5260,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
5308
5260
|
});
|
|
5309
5261
|
}
|
|
5310
5262
|
getForecastByYear(year) {
|
|
5311
|
-
return this.forecasts.find((forecast) =>
|
|
5312
|
-
return forecast.financialYear === year;
|
|
5313
|
-
});
|
|
5263
|
+
return this.forecasts.find((forecast) => forecast.financialYear === year);
|
|
5314
5264
|
}
|
|
5315
5265
|
getClaimAmountByYear(year) {
|
|
5316
5266
|
var _a;
|
|
@@ -5460,14 +5410,10 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5460
5410
|
return this.sumBy('amount');
|
|
5461
5411
|
}
|
|
5462
5412
|
getUnallocated(allocations) {
|
|
5463
|
-
return new TransactionCollection(this.items.filter((transaction) =>
|
|
5464
|
-
return !transaction.isAllocated(allocations);
|
|
5465
|
-
}));
|
|
5413
|
+
return new TransactionCollection(this.items.filter((transaction) => !transaction.isAllocated(allocations)));
|
|
5466
5414
|
}
|
|
5467
5415
|
getUnallocatedAmount(allocations) {
|
|
5468
|
-
return this.items.reduce((sum, transaction) =>
|
|
5469
|
-
return sum + transaction.getUnallocatedAmount(allocations.filterBy('transaction.id', transaction.id));
|
|
5470
|
-
}, 0);
|
|
5416
|
+
return this.items.reduce((sum, transaction) => sum + transaction.getUnallocatedAmount(allocations.filterBy('transaction.id', transaction.id)), 0);
|
|
5471
5417
|
}
|
|
5472
5418
|
/**
|
|
5473
5419
|
* get date of the last transaction
|
|
@@ -5527,10 +5473,7 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5527
5473
|
* @param ids Ids of properties for filter
|
|
5528
5474
|
*/
|
|
5529
5475
|
getByPropertiesIds(ids) {
|
|
5530
|
-
return new TransactionCollection(this.items.filter((transaction) => {
|
|
5531
|
-
var _a;
|
|
5532
|
-
return ids.includes((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id);
|
|
5533
|
-
}));
|
|
5476
|
+
return new TransactionCollection(this.items.filter((transaction) => { var _a; return ids.includes((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id); }));
|
|
5534
5477
|
}
|
|
5535
5478
|
/**
|
|
5536
5479
|
* Get new collection filtered by income source id
|
|
@@ -5565,9 +5508,7 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5565
5508
|
* Get transactions related to Vehicle category
|
|
5566
5509
|
*/
|
|
5567
5510
|
getVehicleTransactions() {
|
|
5568
|
-
return this.create(this.items.filter((transaction) =>
|
|
5569
|
-
return transaction.isVehicleTransaction();
|
|
5570
|
-
}));
|
|
5511
|
+
return this.create(this.items.filter((transaction) => transaction.isVehicleTransaction()));
|
|
5571
5512
|
}
|
|
5572
5513
|
/**
|
|
5573
5514
|
* Get new transaction collection filtered by tank type
|
|
@@ -5599,14 +5540,12 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5599
5540
|
];
|
|
5600
5541
|
}
|
|
5601
5542
|
getExportBody() {
|
|
5602
|
-
return this.items.map((transaction) =>
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
];
|
|
5609
|
-
});
|
|
5543
|
+
return this.items.map((transaction) => [
|
|
5544
|
+
plainToClass(ExportCell, { value: transaction.date, type: ExportCellTypeEnum.DATE }),
|
|
5545
|
+
plainToClass(ExportCell, { value: transaction.description, type: ExportCellTypeEnum.STRING }),
|
|
5546
|
+
plainToClass(ExportCell, { value: transaction.debit, type: ExportCellTypeEnum.CURRENCY }),
|
|
5547
|
+
plainToClass(ExportCell, { value: transaction.credit, type: ExportCellTypeEnum.CURRENCY })
|
|
5548
|
+
]);
|
|
5610
5549
|
}
|
|
5611
5550
|
/**
|
|
5612
5551
|
* Get list of vehicle transactions filtered by vehicle claim
|
|
@@ -5726,29 +5665,19 @@ class DepreciationCollection extends Collection {
|
|
|
5726
5665
|
return this.items.reduce((sum, depreciation) => sum + depreciation.amount, 0);
|
|
5727
5666
|
}
|
|
5728
5667
|
get claimAmount() {
|
|
5729
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5730
|
-
return sum + depreciation.currentYearForecast.claimAmount;
|
|
5731
|
-
}, 0);
|
|
5668
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.claimAmount, 0);
|
|
5732
5669
|
}
|
|
5733
5670
|
getClaimedAmountByYear(year = +localStorage.getItem('financialYear')) {
|
|
5734
|
-
return +Math.round(this.amount - this.items.reduce((sum, depreciation) =>
|
|
5735
|
-
return sum + depreciation.getCloseBalanceByYear(year);
|
|
5736
|
-
}, 0)).toFixed(2);
|
|
5671
|
+
return +Math.round(this.amount - this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0)).toFixed(2);
|
|
5737
5672
|
}
|
|
5738
5673
|
getClaimAmountByYear(year = +localStorage.getItem('financialYear')) {
|
|
5739
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5740
|
-
return sum + depreciation.getClaimAmountByYear(year);
|
|
5741
|
-
}, 0);
|
|
5674
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.getClaimAmountByYear(year), 0);
|
|
5742
5675
|
}
|
|
5743
5676
|
getCloseBalanceByYear(year = +localStorage.getItem('financialYear')) {
|
|
5744
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5745
|
-
return sum + depreciation.getCloseBalanceByYear(year);
|
|
5746
|
-
}, 0);
|
|
5677
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0);
|
|
5747
5678
|
}
|
|
5748
5679
|
getCurrentYearForecastAmount() {
|
|
5749
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5750
|
-
return sum + depreciation.currentYearForecast.amount;
|
|
5751
|
-
}, 0);
|
|
5680
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.amount, 0);
|
|
5752
5681
|
}
|
|
5753
5682
|
get closeBalance() {
|
|
5754
5683
|
return this.sumBy('currentYearForecast.closeBalance');
|
|
@@ -5790,9 +5719,7 @@ class DepreciationCollection extends Collection {
|
|
|
5790
5719
|
return this.filter((depreciation) => depreciation.isSBP());
|
|
5791
5720
|
}
|
|
5792
5721
|
getCapitalProjects() {
|
|
5793
|
-
return uniqBy(compact(this.items.map((depreciation) =>
|
|
5794
|
-
return depreciation.depreciationCapitalProject;
|
|
5795
|
-
})), 'id');
|
|
5722
|
+
return uniqBy(compact(this.items.map((depreciation) => depreciation.depreciationCapitalProject)), 'id');
|
|
5796
5723
|
}
|
|
5797
5724
|
/**
|
|
5798
5725
|
* Get a new collection of depreciations related to vehicles
|
|
@@ -5871,9 +5798,7 @@ class DepreciationReportItemCollection extends DepreciationCollection {
|
|
|
5871
5798
|
* Create new collection from provided depreciations list
|
|
5872
5799
|
*/
|
|
5873
5800
|
static fromDepreciations(deprectiations) {
|
|
5874
|
-
return new DepreciationReportItemCollection(deprectiations.map((depreciation) =>
|
|
5875
|
-
return plainToClass(DepreciationReportItem, depreciation);
|
|
5876
|
-
}));
|
|
5801
|
+
return new DepreciationReportItemCollection(deprectiations.map((depreciation) => plainToClass(DepreciationReportItem, depreciation)));
|
|
5877
5802
|
}
|
|
5878
5803
|
}
|
|
5879
5804
|
|
|
@@ -6006,9 +5931,7 @@ class VehicleExpenseCollection extends Collection {
|
|
|
6006
5931
|
setItems(transactions, depreciations, vehicleClaim) {
|
|
6007
5932
|
this.items = [];
|
|
6008
5933
|
const transactionsByChartAccounts = new CollectionDictionary(transactions, 'chartAccounts.name');
|
|
6009
|
-
const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) =>
|
|
6010
|
-
return new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName);
|
|
6011
|
-
});
|
|
5934
|
+
const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) => new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName));
|
|
6012
5935
|
// group all depreciations into one expense item
|
|
6013
5936
|
const depreciationExpense = new VehicleExpense(depreciations.getCurrentYearForecastAmount(), vehicleClaim.workUsage, 'Depreciation');
|
|
6014
5937
|
this.items.push(...[depreciationExpense, ...transactionExpenses]);
|
|
@@ -6224,14 +6147,10 @@ class ServiceSubscriptionCollection extends Collection {
|
|
|
6224
6147
|
return dictionary;
|
|
6225
6148
|
}
|
|
6226
6149
|
findByProduct(product) {
|
|
6227
|
-
return this.find((subscription) =>
|
|
6228
|
-
return !!subscription.items.find((item) => item.price.product.id === product.id);
|
|
6229
|
-
});
|
|
6150
|
+
return this.find((subscription) => !!subscription.items.find((item) => item.price.product.id === product.id));
|
|
6230
6151
|
}
|
|
6231
6152
|
filterByProduct(product) {
|
|
6232
|
-
return this.filter((subscription) =>
|
|
6233
|
-
return !!subscription.items.find((item) => item.price.product.id === product.id);
|
|
6234
|
-
});
|
|
6153
|
+
return this.filter((subscription) => !!subscription.items.find((item) => item.price.product.id === product.id));
|
|
6235
6154
|
}
|
|
6236
6155
|
hasPropertyTank() {
|
|
6237
6156
|
return !!this.getItems().propertiesItem;
|
|
@@ -6247,8 +6166,8 @@ class ReportItemCollection extends Collection {
|
|
|
6247
6166
|
* Search items which has details
|
|
6248
6167
|
*/
|
|
6249
6168
|
getBySection(section) {
|
|
6250
|
-
|
|
6251
|
-
for (
|
|
6169
|
+
const result = [];
|
|
6170
|
+
for (const reportItem of this.items) {
|
|
6252
6171
|
if ((reportItem.details.length || reportItem.amount) && reportItem.taxReturnCategory.section === section) {
|
|
6253
6172
|
result.push(reportItem);
|
|
6254
6173
|
}
|
|
@@ -6259,8 +6178,8 @@ class ReportItemCollection extends Collection {
|
|
|
6259
6178
|
return this.create(result);
|
|
6260
6179
|
}
|
|
6261
6180
|
getByCategory(categoryId) {
|
|
6262
|
-
|
|
6263
|
-
for (
|
|
6181
|
+
const result = [];
|
|
6182
|
+
for (const reportItem of this.items) {
|
|
6264
6183
|
if (reportItem.taxReturnCategory.id === categoryId) {
|
|
6265
6184
|
result.push(reportItem);
|
|
6266
6185
|
}
|
|
@@ -6275,7 +6194,7 @@ class ReportItemCollection extends Collection {
|
|
|
6275
6194
|
*/
|
|
6276
6195
|
findByCategory(categoryId) {
|
|
6277
6196
|
let result;
|
|
6278
|
-
for (
|
|
6197
|
+
for (const reportItem of this.items) {
|
|
6279
6198
|
if (result) {
|
|
6280
6199
|
break;
|
|
6281
6200
|
}
|
|
@@ -6324,8 +6243,8 @@ class ReportItemCollection extends Collection {
|
|
|
6324
6243
|
* @TODO Alex: consider to create and move to ReportItemDetailsCollection
|
|
6325
6244
|
*/
|
|
6326
6245
|
getDetailsByIncomeSource(incomeSource) {
|
|
6327
|
-
|
|
6328
|
-
for (
|
|
6246
|
+
const result = [];
|
|
6247
|
+
for (const reportItem of this.items) {
|
|
6329
6248
|
if (reportItem.details.length) {
|
|
6330
6249
|
result.push(...reportItem.details.filter((details) => details.name === incomeSource.name));
|
|
6331
6250
|
}
|
|
@@ -6683,46 +6602,32 @@ class BankAccountCollection extends Collection {
|
|
|
6683
6602
|
*/
|
|
6684
6603
|
getInitialLoanAmount() {
|
|
6685
6604
|
return this.getByType(TYPE_LOAN)
|
|
6686
|
-
.reduce((sum, bankAccount) =>
|
|
6687
|
-
return sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0;
|
|
6688
|
-
}, 0);
|
|
6605
|
+
.reduce((sum, bankAccount) => sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0, 0);
|
|
6689
6606
|
}
|
|
6690
6607
|
/**
|
|
6691
6608
|
* get amount of current loans
|
|
6692
6609
|
*/
|
|
6693
6610
|
getCurrentLoanAmount() {
|
|
6694
6611
|
return this.getByType(TYPE_LOAN)
|
|
6695
|
-
.reduce((sum, bankAccount) =>
|
|
6696
|
-
return sum += bankAccount.currentBalance;
|
|
6697
|
-
}, 0);
|
|
6612
|
+
.reduce((sum, bankAccount) => sum += bankAccount.currentBalance, 0);
|
|
6698
6613
|
}
|
|
6699
6614
|
/**
|
|
6700
6615
|
* get collection filtered by property id
|
|
6701
6616
|
*/
|
|
6702
6617
|
getByPropertyId(id) {
|
|
6703
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6704
|
-
return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
|
|
6705
|
-
return bankAccountProperty.property.id === id;
|
|
6706
|
-
});
|
|
6707
|
-
}));
|
|
6618
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.bankAccountProperties.find((bankAccountProperty) => bankAccountProperty.property.id === id)));
|
|
6708
6619
|
}
|
|
6709
6620
|
/**
|
|
6710
6621
|
* get collection filtered by properties ids
|
|
6711
6622
|
*/
|
|
6712
6623
|
getByPropertiesIds(ids) {
|
|
6713
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6714
|
-
return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
|
|
6715
|
-
return ids.includes(bankAccountProperty.property.id);
|
|
6716
|
-
});
|
|
6717
|
-
}));
|
|
6624
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.bankAccountProperties.find((bankAccountProperty) => ids.includes(bankAccountProperty.property.id))));
|
|
6718
6625
|
}
|
|
6719
6626
|
/**
|
|
6720
6627
|
* get collection of active bank accounts
|
|
6721
6628
|
*/
|
|
6722
6629
|
getActiveBankAccounts() {
|
|
6723
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6724
|
-
return bankAccount.isActive();
|
|
6725
|
-
}));
|
|
6630
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isActive()));
|
|
6726
6631
|
}
|
|
6727
6632
|
/**
|
|
6728
6633
|
* get reduction of loan (reduction of principle) percentage
|
|
@@ -6772,22 +6677,16 @@ class BankAccountCollection extends Collection {
|
|
|
6772
6677
|
* Get list of all bank account properties
|
|
6773
6678
|
*/
|
|
6774
6679
|
getBankAccountPropertiesList() {
|
|
6775
|
-
return flatten(this.items.map((bankAccount) =>
|
|
6776
|
-
return bankAccount.bankAccountProperties;
|
|
6777
|
-
}));
|
|
6680
|
+
return flatten(this.items.map((bankAccount) => bankAccount.bankAccountProperties));
|
|
6778
6681
|
}
|
|
6779
6682
|
/**
|
|
6780
6683
|
* Get lis of unique properties from all bank accounts properties
|
|
6781
6684
|
*/
|
|
6782
6685
|
getProperties() {
|
|
6783
|
-
return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) =>
|
|
6784
|
-
return bankAccountProperty.property;
|
|
6785
|
-
}), 'id');
|
|
6686
|
+
return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) => bankAccountProperty.property), 'id');
|
|
6786
6687
|
}
|
|
6787
6688
|
getPropertyBalanceAmount(propertyId) {
|
|
6788
|
-
return this.items.reduce((sum, bankAccount) =>
|
|
6789
|
-
return sum + bankAccount.getPropertyBalanceAmount(propertyId);
|
|
6790
|
-
}, 0);
|
|
6689
|
+
return this.items.reduce((sum, bankAccount) => sum + bankAccount.getPropertyBalanceAmount(propertyId), 0);
|
|
6791
6690
|
}
|
|
6792
6691
|
getOwn() {
|
|
6793
6692
|
// TODO Alex/Vik: maybe we should get it from jwtToken or think about some localStorageService?
|
|
@@ -6865,10 +6764,8 @@ class BankTransactionCollection extends Collection {
|
|
|
6865
6764
|
* Find Bank Transaction available for transfer
|
|
6866
6765
|
*/
|
|
6867
6766
|
findTransfer(bankTransaction) {
|
|
6868
|
-
return this.items.find((item) =>
|
|
6869
|
-
|
|
6870
|
-
Math.abs(bankTransaction.date.getTime() - item.date.getTime()) < TRANSACTION_TRANSFER_DELAY;
|
|
6871
|
-
});
|
|
6767
|
+
return this.items.find((item) => item.amount + bankTransaction.amount === 0 &&
|
|
6768
|
+
Math.abs(bankTransaction.date.getTime() - item.date.getTime()) < TRANSACTION_TRANSFER_DELAY);
|
|
6872
6769
|
}
|
|
6873
6770
|
/**
|
|
6874
6771
|
* Group bank transactions by transaction id.
|
|
@@ -7098,12 +6995,10 @@ class TaxReviewCollection extends Collection {
|
|
|
7098
6995
|
*/
|
|
7099
6996
|
getInWork() {
|
|
7100
6997
|
return this.items
|
|
7101
|
-
.filter((taxReview) =>
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
taxReview.isApproved();
|
|
7106
|
-
});
|
|
6998
|
+
.filter((taxReview) => taxReview.isInProgress() ||
|
|
6999
|
+
taxReview.isWaitingForClient() ||
|
|
7000
|
+
taxReview.isWaitingForApproval() ||
|
|
7001
|
+
taxReview.isApproved());
|
|
7107
7002
|
}
|
|
7108
7003
|
/**
|
|
7109
7004
|
* Get percentage of completed reviews of the total review amount
|
|
@@ -7201,7 +7096,7 @@ class ServiceSubscription extends ServiceSubscription$1 {
|
|
|
7201
7096
|
return !!this.stripeId;
|
|
7202
7097
|
}
|
|
7203
7098
|
get initialPrice() {
|
|
7204
|
-
|
|
7099
|
+
const price = this.items.reduce((sum, item) => sum + item.total, 0);
|
|
7205
7100
|
return price;
|
|
7206
7101
|
}
|
|
7207
7102
|
get discountAmount() {
|
|
@@ -7248,14 +7143,10 @@ class ServiceSubscription extends ServiceSubscription$1 {
|
|
|
7248
7143
|
return this.items.find((item) => item.price.product.isProperties());
|
|
7249
7144
|
}
|
|
7250
7145
|
hasPropertyTank() {
|
|
7251
|
-
return !!this.items.find((subscriptionItem) =>
|
|
7252
|
-
return subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK);
|
|
7253
|
-
});
|
|
7146
|
+
return !!this.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK));
|
|
7254
7147
|
}
|
|
7255
7148
|
hasWorkTank() {
|
|
7256
|
-
return !!this.items.find((subscriptionItem) =>
|
|
7257
|
-
return subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK);
|
|
7258
|
-
});
|
|
7149
|
+
return !!this.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK));
|
|
7259
7150
|
}
|
|
7260
7151
|
/**
|
|
7261
7152
|
* bought before price updates, active for some time to let customer select a new plan
|
|
@@ -7517,9 +7408,7 @@ class Property extends Property$1 {
|
|
|
7517
7408
|
return ((_a = this.currentYearForecast) === null || _a === void 0 ? void 0 : _a.cashPosition) || 0;
|
|
7518
7409
|
}
|
|
7519
7410
|
get firstForecastYear() {
|
|
7520
|
-
return this.forecasts.reduce((min, forecast) =>
|
|
7521
|
-
return min > forecast.financialYear ? forecast.financialYear : min;
|
|
7522
|
-
}, new FinancialYear().year);
|
|
7411
|
+
return this.forecasts.reduce((min, forecast) => min > forecast.financialYear ? forecast.financialYear : min, new FinancialYear().year);
|
|
7523
7412
|
}
|
|
7524
7413
|
get marketValueGrowth() {
|
|
7525
7414
|
return (this.marketValue - this.purchasePrice) / this.marketValue;
|
|
@@ -7528,9 +7417,7 @@ class Property extends Property$1 {
|
|
|
7528
7417
|
return this.shares.find((share) => share.user.id === +localStorage.getItem('userId'));
|
|
7529
7418
|
}
|
|
7530
7419
|
get actualValuation() {
|
|
7531
|
-
return this.valuations.reduce((maxDateValuation, valuation) =>
|
|
7532
|
-
return maxDateValuation.date > valuation.date ? maxDateValuation : valuation;
|
|
7533
|
-
}, this.valuations[0]);
|
|
7420
|
+
return this.valuations.reduce((maxDateValuation, valuation) => maxDateValuation.date > valuation.date ? maxDateValuation : valuation, this.valuations[0]);
|
|
7534
7421
|
}
|
|
7535
7422
|
get claimPercent() {
|
|
7536
7423
|
return this.currentYearForecast.claimPercent;
|
|
@@ -7936,12 +7823,10 @@ class BankAccountChartData {
|
|
|
7936
7823
|
* set value of pie chart data
|
|
7937
7824
|
*/
|
|
7938
7825
|
getBalancePieChartData() {
|
|
7939
|
-
return this.bankAccounts.map((bankAccount) => {
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
};
|
|
7944
|
-
});
|
|
7826
|
+
return this.bankAccounts.map((bankAccount) => ({
|
|
7827
|
+
name: bankAccount.accountName,
|
|
7828
|
+
data: Math.abs(bankAccount.currentBalance)
|
|
7829
|
+
}));
|
|
7945
7830
|
}
|
|
7946
7831
|
/**
|
|
7947
7832
|
* set value of bar chart data
|
|
@@ -7949,12 +7834,10 @@ class BankAccountChartData {
|
|
|
7949
7834
|
getBalanceBarChartData() {
|
|
7950
7835
|
return [{
|
|
7951
7836
|
name: 'Balance',
|
|
7952
|
-
data: this.bankAccounts.map((bankAccount) => {
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
};
|
|
7957
|
-
})
|
|
7837
|
+
data: this.bankAccounts.map((bankAccount) => ({
|
|
7838
|
+
label: bankAccount.accountName,
|
|
7839
|
+
value: bankAccount.currentBalance
|
|
7840
|
+
}))
|
|
7958
7841
|
}];
|
|
7959
7842
|
}
|
|
7960
7843
|
}
|
|
@@ -8018,9 +7901,7 @@ class BankTransactionChartData {
|
|
|
8018
7901
|
}];
|
|
8019
7902
|
for (const key in MonthNameShortEnum) {
|
|
8020
7903
|
if (MonthNameShortEnum.hasOwnProperty(key)) {
|
|
8021
|
-
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) =>
|
|
8022
|
-
return +bankTransaction.date.getMonth() === +MonthNumberEnum[key];
|
|
8023
|
-
});
|
|
7904
|
+
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => +bankTransaction.date.getMonth() === +MonthNumberEnum[key]);
|
|
8024
7905
|
const cashInForMonth = bankTransactionsForMonth
|
|
8025
7906
|
.filter((bankTransaction) => bankTransaction.isCredit())
|
|
8026
7907
|
.reduce((sum, bankTransaction) => sum += bankTransaction.allocatedAmount, 0);
|
|
@@ -8049,16 +7930,12 @@ class BankTransactionChartData {
|
|
|
8049
7930
|
}];
|
|
8050
7931
|
for (const key in MonthNameShortEnum) {
|
|
8051
7932
|
if (MonthNameShortEnum.hasOwnProperty(key)) {
|
|
8052
|
-
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) =>
|
|
8053
|
-
return +bankTransaction.date.getMonth() === +MonthNumberEnum[key];
|
|
8054
|
-
});
|
|
7933
|
+
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => +bankTransaction.date.getMonth() === +MonthNumberEnum[key]);
|
|
8055
7934
|
const balanceForMonth = bankTransactionsForMonth.reduce((sum, bankTransaction) => {
|
|
8056
7935
|
if (bankTransaction.isCredit()) {
|
|
8057
7936
|
return sum += bankTransaction.allocatedAmount;
|
|
8058
7937
|
}
|
|
8059
|
-
|
|
8060
|
-
return sum -= bankTransaction.allocatedAmount;
|
|
8061
|
-
}
|
|
7938
|
+
return sum -= bankTransaction.allocatedAmount;
|
|
8062
7939
|
}, 0);
|
|
8063
7940
|
chartData[0].data.push({
|
|
8064
7941
|
label: MonthNameShortEnum[key],
|
|
@@ -8504,23 +8381,9 @@ __decorate([
|
|
|
8504
8381
|
], HoldingType.prototype, "exchange", void 0);
|
|
8505
8382
|
|
|
8506
8383
|
class HoldingSale extends AbstractModel {
|
|
8507
|
-
getCapitalGain(holding) {
|
|
8508
|
-
if (!this.price || !this.holding) {
|
|
8509
|
-
return 0;
|
|
8510
|
-
}
|
|
8511
|
-
return (this.price - holding.price) * this.quantity;
|
|
8512
|
-
}
|
|
8513
|
-
getNetCapitalGain(holding) {
|
|
8514
|
-
const capitalGain = this.getCapitalGain(holding);
|
|
8515
|
-
// 50% discount for holdings purchased over a year ago
|
|
8516
|
-
if (holding.heldMoreYear()) {
|
|
8517
|
-
return capitalGain / 2;
|
|
8518
|
-
}
|
|
8519
|
-
return capitalGain;
|
|
8520
|
-
}
|
|
8521
8384
|
}
|
|
8522
8385
|
__decorate([
|
|
8523
|
-
Transform(({ value }) => {
|
|
8386
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
8524
8387
|
], HoldingSale.prototype, "holding", void 0);
|
|
8525
8388
|
__decorate([
|
|
8526
8389
|
Type(() => Date)
|
|
@@ -8697,12 +8560,10 @@ class ClientPortfolioChartData {
|
|
|
8697
8560
|
this.clientsPortfolioReportCollection = clientsPortfolioReportCollection;
|
|
8698
8561
|
}
|
|
8699
8562
|
getPieChartData() {
|
|
8700
|
-
return this.clientsPortfolioReportCollection.items.map((clientPortfolioReport) => {
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
});
|
|
8705
|
-
});
|
|
8563
|
+
return this.clientsPortfolioReportCollection.items.map((clientPortfolioReport) => plainToClass(ChartData, {
|
|
8564
|
+
name: clientPortfolioReport.category,
|
|
8565
|
+
data: clientPortfolioReport.count
|
|
8566
|
+
}));
|
|
8706
8567
|
}
|
|
8707
8568
|
getBarChartData() {
|
|
8708
8569
|
return [
|
|
@@ -8778,9 +8639,9 @@ class JwtService extends JwtHelperService {
|
|
|
8778
8639
|
return this.getUser().id === userId;
|
|
8779
8640
|
}
|
|
8780
8641
|
}
|
|
8781
|
-
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
8782
|
-
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
8783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8642
|
+
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
8643
|
+
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, providedIn: 'root' });
|
|
8644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, decorators: [{
|
|
8784
8645
|
type: Injectable,
|
|
8785
8646
|
args: [{
|
|
8786
8647
|
providedIn: 'root'
|
|
@@ -8815,9 +8676,9 @@ class EventDispatcherService {
|
|
|
8815
8676
|
this.eventSubject2.next(event);
|
|
8816
8677
|
}
|
|
8817
8678
|
}
|
|
8818
|
-
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
8819
|
-
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
8820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8679
|
+
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8680
|
+
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
|
|
8681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, decorators: [{
|
|
8821
8682
|
type: Injectable,
|
|
8822
8683
|
args: [{
|
|
8823
8684
|
providedIn: 'root'
|
|
@@ -8866,9 +8727,9 @@ class AuthService {
|
|
|
8866
8727
|
location.replace(url);
|
|
8867
8728
|
}
|
|
8868
8729
|
}
|
|
8869
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
8870
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
8871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8730
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8731
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
8732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, decorators: [{
|
|
8872
8733
|
type: Injectable,
|
|
8873
8734
|
args: [{
|
|
8874
8735
|
providedIn: 'root'
|
|
@@ -8971,20 +8832,18 @@ class JwtInterceptor {
|
|
|
8971
8832
|
return this.tokenSubject.pipe(filter(token => token != null), take(1), switchMap(token => next.handle(this.addToken(req))));
|
|
8972
8833
|
// refresh token
|
|
8973
8834
|
}
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
}));
|
|
8987
|
-
}
|
|
8835
|
+
// subsequent requests should wait until refresh token is ready
|
|
8836
|
+
this.isRefreshingToken = true;
|
|
8837
|
+
this.tokenSubject.next(null);
|
|
8838
|
+
return this.authService.refresh(this.jwtService.getRefreshToken()).pipe(switchMap((tokens) => {
|
|
8839
|
+
this.tokenSubject.next(tokens.token);
|
|
8840
|
+
return next.handle(this.addToken(req));
|
|
8841
|
+
}), catchError(() => {
|
|
8842
|
+
this.authService.logoutFront();
|
|
8843
|
+
return throwError(err);
|
|
8844
|
+
}), finalize(() => {
|
|
8845
|
+
this.isRefreshingToken = false;
|
|
8846
|
+
}));
|
|
8988
8847
|
}
|
|
8989
8848
|
/**
|
|
8990
8849
|
* Handle error messages
|
|
@@ -9006,9 +8865,9 @@ class JwtInterceptor {
|
|
|
9006
8865
|
});
|
|
9007
8866
|
}
|
|
9008
8867
|
}
|
|
9009
|
-
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9010
|
-
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9011
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8868
|
+
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8869
|
+
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor });
|
|
8870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor, decorators: [{
|
|
9012
8871
|
type: Injectable
|
|
9013
8872
|
}], ctorParameters: function () {
|
|
9014
8873
|
return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
|
|
@@ -9043,9 +8902,9 @@ class UserSwitcherService {
|
|
|
9043
8902
|
window.location.replace('/firm/dashboard');
|
|
9044
8903
|
}
|
|
9045
8904
|
}
|
|
9046
|
-
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9047
|
-
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8905
|
+
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8906
|
+
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
|
|
8907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, decorators: [{
|
|
9049
8908
|
type: Injectable,
|
|
9050
8909
|
args: [{
|
|
9051
8910
|
providedIn: 'root'
|
|
@@ -9091,9 +8950,9 @@ class UserSwitcherInterceptor {
|
|
|
9091
8950
|
return next.handle(this.switch(request, this.userSwitcherService.get()));
|
|
9092
8951
|
}
|
|
9093
8952
|
}
|
|
9094
|
-
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9095
|
-
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9096
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8953
|
+
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8954
|
+
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor });
|
|
8955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
|
|
9097
8956
|
type: Injectable
|
|
9098
8957
|
}], ctorParameters: function () {
|
|
9099
8958
|
return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
|
|
@@ -9367,9 +9226,9 @@ class PreloaderService {
|
|
|
9367
9226
|
this.activePreloaders.next(activePreloaders);
|
|
9368
9227
|
}
|
|
9369
9228
|
}
|
|
9370
|
-
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9371
|
-
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9229
|
+
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9230
|
+
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, providedIn: 'root' });
|
|
9231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, decorators: [{
|
|
9373
9232
|
type: Injectable,
|
|
9374
9233
|
args: [{
|
|
9375
9234
|
providedIn: 'root'
|
|
@@ -9385,7 +9244,7 @@ class PreloaderInterceptor {
|
|
|
9385
9244
|
}
|
|
9386
9245
|
intercept(request, next) {
|
|
9387
9246
|
const endpoint = this.findEndpoint(`${request.method} ${request.url}`);
|
|
9388
|
-
if (
|
|
9247
|
+
if (endpoint) {
|
|
9389
9248
|
this.preloaderService.add(endpoint);
|
|
9390
9249
|
return next.handle(request).pipe(finalize(() => {
|
|
9391
9250
|
this.preloaderService.delete(endpoint);
|
|
@@ -9397,9 +9256,9 @@ class PreloaderInterceptor {
|
|
|
9397
9256
|
return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
|
|
9398
9257
|
}
|
|
9399
9258
|
}
|
|
9400
|
-
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9401
|
-
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9259
|
+
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9260
|
+
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor });
|
|
9261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor, decorators: [{
|
|
9403
9262
|
type: Injectable
|
|
9404
9263
|
}], ctorParameters: function () { return [{ type: PreloaderService }]; } });
|
|
9405
9264
|
|
|
@@ -9426,9 +9285,9 @@ class DataService {
|
|
|
9426
9285
|
this.cache = this.createCollectionInstance(this.collectionClass, data.map((item) => this.createModelInstance(item)));
|
|
9427
9286
|
}
|
|
9428
9287
|
}
|
|
9429
|
-
DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9430
|
-
DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9288
|
+
DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9289
|
+
DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, providedIn: 'root' });
|
|
9290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, decorators: [{
|
|
9432
9291
|
type: Injectable,
|
|
9433
9292
|
args: [{
|
|
9434
9293
|
providedIn: 'root'
|
|
@@ -9462,14 +9321,12 @@ class SseService {
|
|
|
9462
9321
|
this.zone.run(() => observer.next(event));
|
|
9463
9322
|
};
|
|
9464
9323
|
})
|
|
9465
|
-
.pipe(map((messageEvent) =>
|
|
9466
|
-
return JSON.parse(messageEvent.data);
|
|
9467
|
-
}));
|
|
9324
|
+
.pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
|
|
9468
9325
|
}
|
|
9469
9326
|
}
|
|
9470
|
-
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9471
|
-
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9327
|
+
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9328
|
+
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, providedIn: 'root' });
|
|
9329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, decorators: [{
|
|
9473
9330
|
type: Injectable,
|
|
9474
9331
|
args: [{
|
|
9475
9332
|
providedIn: 'root'
|
|
@@ -9517,7 +9374,6 @@ let RestService$1 = class RestService extends DataService {
|
|
|
9517
9374
|
}
|
|
9518
9375
|
return this.cacheSubject.asObservable();
|
|
9519
9376
|
}
|
|
9520
|
-
;
|
|
9521
9377
|
getSingle() {
|
|
9522
9378
|
this.handleAccessError('get');
|
|
9523
9379
|
return this.get().pipe(map((collection) => collection.first));
|
|
@@ -9610,7 +9466,6 @@ let RestService$1 = class RestService extends DataService {
|
|
|
9610
9466
|
return this.cache;
|
|
9611
9467
|
}));
|
|
9612
9468
|
}
|
|
9613
|
-
;
|
|
9614
9469
|
/**
|
|
9615
9470
|
* Handle response data - update cache and dispatch event if it is needed
|
|
9616
9471
|
*/
|
|
@@ -9681,9 +9536,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
9681
9536
|
*/
|
|
9682
9537
|
listenEvents() { }
|
|
9683
9538
|
};
|
|
9684
|
-
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9685
|
-
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9539
|
+
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9540
|
+
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, providedIn: 'root' });
|
|
9541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, decorators: [{
|
|
9687
9542
|
type: Injectable,
|
|
9688
9543
|
args: [{
|
|
9689
9544
|
providedIn: 'root'
|
|
@@ -9803,9 +9658,9 @@ class ToastService {
|
|
|
9803
9658
|
}));
|
|
9804
9659
|
}
|
|
9805
9660
|
}
|
|
9806
|
-
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9807
|
-
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9661
|
+
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9662
|
+
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, providedIn: 'root' });
|
|
9663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, decorators: [{
|
|
9809
9664
|
type: Injectable,
|
|
9810
9665
|
args: [{
|
|
9811
9666
|
providedIn: 'root'
|
|
@@ -9856,7 +9711,7 @@ class BankConnectionService extends RestService$1 {
|
|
|
9856
9711
|
if (error.status === 400) {
|
|
9857
9712
|
this.toastService.error('Please enter the login you used before');
|
|
9858
9713
|
}
|
|
9859
|
-
return throwError
|
|
9714
|
+
return throwError(error);
|
|
9860
9715
|
}));
|
|
9861
9716
|
}
|
|
9862
9717
|
/**
|
|
@@ -9895,9 +9750,9 @@ BankConnectionService.userEventTypes = [
|
|
|
9895
9750
|
UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS,
|
|
9896
9751
|
UserEventTypeTypeEnum.BASIQ_AUTHORIZATION_FAIL
|
|
9897
9752
|
];
|
|
9898
|
-
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9899
|
-
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9753
|
+
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9754
|
+
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
|
|
9755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, decorators: [{
|
|
9901
9756
|
type: Injectable,
|
|
9902
9757
|
args: [{
|
|
9903
9758
|
providedIn: 'root'
|
|
@@ -10009,9 +9864,9 @@ BasiqService.basiqApiUrl = 'https://au-api.basiq.io';
|
|
|
10009
9864
|
* Basiq does not provide a hook, so we have to check job status manually every x seconds
|
|
10010
9865
|
*/
|
|
10011
9866
|
BasiqService.bankCredintialsCheckInterval = 3000;
|
|
10012
|
-
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10013
|
-
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10014
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9867
|
+
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9868
|
+
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, providedIn: 'root' });
|
|
9869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, decorators: [{
|
|
10015
9870
|
type: Injectable,
|
|
10016
9871
|
args: [{
|
|
10017
9872
|
providedIn: 'root'
|
|
@@ -10048,9 +9903,9 @@ class BasiqTokenService extends RestService$1 {
|
|
|
10048
9903
|
return this.cacheSubject.asObservable();
|
|
10049
9904
|
}
|
|
10050
9905
|
}
|
|
10051
|
-
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10052
|
-
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9906
|
+
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9907
|
+
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
|
|
9908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, decorators: [{
|
|
10054
9909
|
type: Injectable,
|
|
10055
9910
|
args: [{
|
|
10056
9911
|
providedIn: 'root'
|
|
@@ -10069,9 +9924,7 @@ class BasiqTokenInterceptor {
|
|
|
10069
9924
|
if (!request.url.includes(BasiqService.basiqApiUrl)) {
|
|
10070
9925
|
return next.handle(request);
|
|
10071
9926
|
}
|
|
10072
|
-
return this.basiqTokenService.getSingle().pipe(mergeMap((token) =>
|
|
10073
|
-
return next.handle(this.addToken(request, token));
|
|
10074
|
-
}));
|
|
9927
|
+
return this.basiqTokenService.getSingle().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
|
|
10075
9928
|
}
|
|
10076
9929
|
addToken(request, token) {
|
|
10077
9930
|
return request.clone({
|
|
@@ -10081,9 +9934,9 @@ class BasiqTokenInterceptor {
|
|
|
10081
9934
|
});
|
|
10082
9935
|
}
|
|
10083
9936
|
}
|
|
10084
|
-
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10085
|
-
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9937
|
+
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9938
|
+
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor });
|
|
9939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
|
|
10087
9940
|
type: Injectable
|
|
10088
9941
|
}], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
|
|
10089
9942
|
|
|
@@ -10184,9 +10037,7 @@ class UserService {
|
|
|
10184
10037
|
*/
|
|
10185
10038
|
search(email) {
|
|
10186
10039
|
return this.http.get(`${this.environment.apiV2}/users/search?email=${email}`)
|
|
10187
|
-
.pipe(map((userBase) =>
|
|
10188
|
-
return plainToClass(User, userBase);
|
|
10189
|
-
}));
|
|
10040
|
+
.pipe(map((userBase) => plainToClass(User, userBase)));
|
|
10190
10041
|
}
|
|
10191
10042
|
/**
|
|
10192
10043
|
* Finish onboarding process
|
|
@@ -10260,9 +10111,9 @@ class UserService {
|
|
|
10260
10111
|
});
|
|
10261
10112
|
}
|
|
10262
10113
|
}
|
|
10263
|
-
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10264
|
-
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10114
|
+
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10115
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
10116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, decorators: [{
|
|
10266
10117
|
type: Injectable,
|
|
10267
10118
|
args: [{
|
|
10268
10119
|
providedIn: 'root'
|
|
@@ -10294,17 +10145,17 @@ class BasiqClientIdInterceptor {
|
|
|
10294
10145
|
});
|
|
10295
10146
|
}
|
|
10296
10147
|
}
|
|
10297
|
-
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10298
|
-
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10148
|
+
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10149
|
+
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor });
|
|
10150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
|
|
10300
10151
|
type: Injectable
|
|
10301
10152
|
}], ctorParameters: function () { return [{ type: UserService }]; } });
|
|
10302
10153
|
|
|
10303
10154
|
class InterceptorsModule {
|
|
10304
10155
|
}
|
|
10305
|
-
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10306
|
-
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
10307
|
-
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
10156
|
+
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10157
|
+
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule });
|
|
10158
|
+
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, providers: [
|
|
10308
10159
|
{
|
|
10309
10160
|
provide: HTTP_INTERCEPTORS,
|
|
10310
10161
|
useClass: CorelogicInterceptor,
|
|
@@ -10342,7 +10193,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
10342
10193
|
multi: true
|
|
10343
10194
|
}
|
|
10344
10195
|
] });
|
|
10345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, decorators: [{
|
|
10346
10197
|
type: NgModule,
|
|
10347
10198
|
args: [{
|
|
10348
10199
|
providers: [
|
|
@@ -10400,12 +10251,12 @@ class TtCoreModule {
|
|
|
10400
10251
|
};
|
|
10401
10252
|
}
|
|
10402
10253
|
}
|
|
10403
|
-
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10404
|
-
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
10254
|
+
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10255
|
+
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
10405
10256
|
InterceptorsModule] });
|
|
10406
|
-
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
10257
|
+
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
10407
10258
|
InterceptorsModule] });
|
|
10408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, decorators: [{
|
|
10409
10260
|
type: NgModule,
|
|
10410
10261
|
args: [{
|
|
10411
10262
|
declarations: [],
|
|
@@ -12003,9 +11854,7 @@ class AddressService {
|
|
|
12003
11854
|
getCountries() {
|
|
12004
11855
|
if (!this._countries) {
|
|
12005
11856
|
this.http.get(`${this.environment.apiV2}/countries`)
|
|
12006
|
-
.pipe(map((response) =>
|
|
12007
|
-
return response['hydra:member'].map((item) => plainToClass(Country, item));
|
|
12008
|
-
}))
|
|
11857
|
+
.pipe(map((response) => response['hydra:member'].map((item) => plainToClass(Country, item))))
|
|
12009
11858
|
.subscribe((countries) => {
|
|
12010
11859
|
this._countries = countries;
|
|
12011
11860
|
this.countriesSubject.next(countries);
|
|
@@ -12014,9 +11863,9 @@ class AddressService {
|
|
|
12014
11863
|
return this.countriesSubject.asObservable();
|
|
12015
11864
|
}
|
|
12016
11865
|
}
|
|
12017
|
-
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12018
|
-
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11866
|
+
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11867
|
+
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, providedIn: 'root' });
|
|
11868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, decorators: [{
|
|
12020
11869
|
type: Injectable,
|
|
12021
11870
|
args: [{
|
|
12022
11871
|
providedIn: 'root'
|
|
@@ -12072,9 +11921,9 @@ class BankAccountService extends RestService$1 {
|
|
|
12072
11921
|
});
|
|
12073
11922
|
}
|
|
12074
11923
|
}
|
|
12075
|
-
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12076
|
-
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12077
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11924
|
+
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11925
|
+
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, providedIn: 'root' });
|
|
11926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, decorators: [{
|
|
12078
11927
|
type: Injectable,
|
|
12079
11928
|
args: [{
|
|
12080
11929
|
providedIn: 'root'
|
|
@@ -12095,16 +11944,13 @@ class BankTransactionService extends RestService$1 {
|
|
|
12095
11944
|
listenEvents() {
|
|
12096
11945
|
this.listenBankTransactionsImport();
|
|
12097
11946
|
}
|
|
12098
|
-
;
|
|
12099
11947
|
/**
|
|
12100
11948
|
* Get list of bank transactions for provided financial year
|
|
12101
11949
|
* @TODO VIK/Alex: consider to use one endpoint to get bank transactions for 2 fin years
|
|
12102
11950
|
*/
|
|
12103
11951
|
getByYear(finYear) {
|
|
12104
11952
|
return this.http.get(`${this.environment.apiV2}/bank-transactions?financialYear=${finYear}`)
|
|
12105
|
-
.pipe(map((bankTransactionsBase) =>
|
|
12106
|
-
return bankTransactionsBase.map((bankTransaction) => plainToClass(BankTransaction, bankTransaction));
|
|
12107
|
-
}));
|
|
11953
|
+
.pipe(map((bankTransactionsBase) => bankTransactionsBase.map((bankTransaction) => plainToClass(BankTransaction, bankTransaction))));
|
|
12108
11954
|
}
|
|
12109
11955
|
/**
|
|
12110
11956
|
* import bank transactions from csv file
|
|
@@ -12139,9 +11985,9 @@ class BankTransactionService extends RestService$1 {
|
|
|
12139
11985
|
});
|
|
12140
11986
|
}
|
|
12141
11987
|
}
|
|
12142
|
-
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12143
|
-
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11988
|
+
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11989
|
+
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
|
|
11990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, decorators: [{
|
|
12145
11991
|
type: Injectable,
|
|
12146
11992
|
args: [{
|
|
12147
11993
|
providedIn: 'root'
|
|
@@ -12162,16 +12008,15 @@ class BankService extends RestService$1 {
|
|
|
12162
12008
|
}
|
|
12163
12009
|
get() {
|
|
12164
12010
|
return super.get()
|
|
12165
|
-
.pipe(map((banks) =>
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
}));
|
|
12011
|
+
.pipe(map((banks) =>
|
|
12012
|
+
// exclude basiq banks without login fields (basiq may return broken banks without loginFields)
|
|
12013
|
+
// @TODO Vik/Nikita: do it on backend
|
|
12014
|
+
banks.filter((bank) => bank.isManual || (!!bank.externalId && !!bank.loginFields))));
|
|
12170
12015
|
}
|
|
12171
12016
|
}
|
|
12172
|
-
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12173
|
-
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12017
|
+
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12018
|
+
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, providedIn: 'root' });
|
|
12019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, decorators: [{
|
|
12175
12020
|
type: Injectable,
|
|
12176
12021
|
args: [{
|
|
12177
12022
|
providedIn: 'root'
|
|
@@ -12191,9 +12036,9 @@ class ChartAccountsDepreciationService extends RestService$1 {
|
|
|
12191
12036
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
12192
12037
|
}
|
|
12193
12038
|
}
|
|
12194
|
-
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12195
|
-
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12039
|
+
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12040
|
+
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
|
|
12041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
|
|
12197
12042
|
type: Injectable,
|
|
12198
12043
|
args: [{
|
|
12199
12044
|
providedIn: 'root'
|
|
@@ -12233,9 +12078,9 @@ class ChartAccountsService extends RestService$1 {
|
|
|
12233
12078
|
}));
|
|
12234
12079
|
}
|
|
12235
12080
|
}
|
|
12236
|
-
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12237
|
-
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12081
|
+
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12082
|
+
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
|
|
12083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, decorators: [{
|
|
12239
12084
|
type: Injectable,
|
|
12240
12085
|
args: [{
|
|
12241
12086
|
providedIn: 'root'
|
|
@@ -12265,7 +12110,7 @@ class ChatService extends RestService$1 {
|
|
|
12265
12110
|
*/
|
|
12266
12111
|
listenChats() {
|
|
12267
12112
|
this.sseService.on(`chats`).subscribe((chatBase) => {
|
|
12268
|
-
|
|
12113
|
+
const array = this.cache.toArray();
|
|
12269
12114
|
// chat instance from event
|
|
12270
12115
|
const eventChat = plainToClass(Chat, chatBase);
|
|
12271
12116
|
// chat instance from cache
|
|
@@ -12304,9 +12149,9 @@ class ChatService extends RestService$1 {
|
|
|
12304
12149
|
});
|
|
12305
12150
|
}
|
|
12306
12151
|
}
|
|
12307
|
-
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12308
|
-
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12152
|
+
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12153
|
+
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, providedIn: 'root' });
|
|
12154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, decorators: [{
|
|
12310
12155
|
type: Injectable,
|
|
12311
12156
|
args: [{
|
|
12312
12157
|
providedIn: 'root'
|
|
@@ -12365,9 +12210,9 @@ class MessageService extends RestService$1 {
|
|
|
12365
12210
|
});
|
|
12366
12211
|
}
|
|
12367
12212
|
}
|
|
12368
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12369
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12213
|
+
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12214
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
12215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, decorators: [{
|
|
12371
12216
|
type: Injectable,
|
|
12372
12217
|
args: [{
|
|
12373
12218
|
providedIn: 'root'
|
|
@@ -12436,14 +12281,12 @@ class MessageDocumentService extends RestService$1 {
|
|
|
12436
12281
|
* Upload multiple files to chat
|
|
12437
12282
|
*/
|
|
12438
12283
|
addBatch(chatId, files) {
|
|
12439
|
-
return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) =>
|
|
12440
|
-
return docsBase.map((docBase) => plainToClass(MessageDocument, docBase));
|
|
12441
|
-
}));
|
|
12284
|
+
return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
|
|
12442
12285
|
}
|
|
12443
12286
|
}
|
|
12444
|
-
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12445
|
-
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12287
|
+
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12288
|
+
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
|
|
12289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, decorators: [{
|
|
12447
12290
|
type: Injectable,
|
|
12448
12291
|
args: [{
|
|
12449
12292
|
providedIn: 'root'
|
|
@@ -12503,9 +12346,7 @@ class DepreciationService extends RestService$1 {
|
|
|
12503
12346
|
}
|
|
12504
12347
|
getOpenBalance(depreciation) {
|
|
12505
12348
|
return this.http.post(`${this.apiUrl}/opening-balance?financialYear=${new FinancialYear().year}`, depreciation)
|
|
12506
|
-
.pipe(map((response) =>
|
|
12507
|
-
return response || 0;
|
|
12508
|
-
}));
|
|
12349
|
+
.pipe(map((response) => response || 0));
|
|
12509
12350
|
}
|
|
12510
12351
|
listenReceiptAdded() {
|
|
12511
12352
|
this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe((receipt) => {
|
|
@@ -12568,9 +12409,9 @@ class DepreciationService extends RestService$1 {
|
|
|
12568
12409
|
});
|
|
12569
12410
|
}
|
|
12570
12411
|
}
|
|
12571
|
-
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12572
|
-
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12412
|
+
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12413
|
+
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, providedIn: 'root' });
|
|
12414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, decorators: [{
|
|
12574
12415
|
type: Injectable,
|
|
12575
12416
|
args: [{
|
|
12576
12417
|
providedIn: 'root'
|
|
@@ -12595,9 +12436,7 @@ class DepreciationCapitalProjectService {
|
|
|
12595
12436
|
this.cacheSubject.next([]);
|
|
12596
12437
|
this.http.get(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects`)
|
|
12597
12438
|
.subscribe((capitalProjectsBase) => {
|
|
12598
|
-
this.cache = capitalProjectsBase.map((capitalProjectBase) =>
|
|
12599
|
-
return plainToClass(DepreciationCapitalProject, capitalProjectBase);
|
|
12600
|
-
});
|
|
12439
|
+
this.cache = capitalProjectsBase.map((capitalProjectBase) => plainToClass(DepreciationCapitalProject, capitalProjectBase));
|
|
12601
12440
|
this.cacheSubject.next(this.cache);
|
|
12602
12441
|
});
|
|
12603
12442
|
return this.cacheSubject.asObservable();
|
|
@@ -12624,9 +12463,9 @@ class DepreciationCapitalProjectService {
|
|
|
12624
12463
|
}));
|
|
12625
12464
|
}
|
|
12626
12465
|
}
|
|
12627
|
-
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12628
|
-
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12466
|
+
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12467
|
+
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
|
|
12468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
|
|
12630
12469
|
type: Injectable,
|
|
12631
12470
|
args: [{
|
|
12632
12471
|
providedIn: 'root'
|
|
@@ -12694,9 +12533,9 @@ class ReceiptService {
|
|
|
12694
12533
|
return plainToClass(this.modelClass, data);
|
|
12695
12534
|
}
|
|
12696
12535
|
}
|
|
12697
|
-
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12698
|
-
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12536
|
+
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12537
|
+
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, providedIn: 'root' });
|
|
12538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, decorators: [{
|
|
12700
12539
|
type: Injectable,
|
|
12701
12540
|
args: [{
|
|
12702
12541
|
providedIn: 'root'
|
|
@@ -12727,9 +12566,9 @@ class DepreciationReceiptService extends ReceiptService {
|
|
|
12727
12566
|
this.listenEvents();
|
|
12728
12567
|
}
|
|
12729
12568
|
}
|
|
12730
|
-
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12731
|
-
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12569
|
+
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12570
|
+
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
|
|
12571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, decorators: [{
|
|
12733
12572
|
type: Injectable,
|
|
12734
12573
|
args: [{
|
|
12735
12574
|
providedIn: 'root'
|
|
@@ -12774,9 +12613,7 @@ class RestService {
|
|
|
12774
12613
|
*/
|
|
12775
12614
|
findById(id) {
|
|
12776
12615
|
return this.get()
|
|
12777
|
-
.pipe(map((items) =>
|
|
12778
|
-
return items.find((item) => item['id'] === id);
|
|
12779
|
-
}));
|
|
12616
|
+
.pipe(map((items) => items.find((item) => item['id'] === id)));
|
|
12780
12617
|
}
|
|
12781
12618
|
find(id) {
|
|
12782
12619
|
return this.cache.find((item) => item['id'] === id);
|
|
@@ -12813,7 +12650,7 @@ class RestService {
|
|
|
12813
12650
|
postForm(file, params = {}) {
|
|
12814
12651
|
const formData = new FormData();
|
|
12815
12652
|
formData.append('file', file);
|
|
12816
|
-
for (
|
|
12653
|
+
for (const key in params) {
|
|
12817
12654
|
formData.append(key, params[key]);
|
|
12818
12655
|
}
|
|
12819
12656
|
return this.create(formData);
|
|
@@ -12918,9 +12755,7 @@ class RestService {
|
|
|
12918
12755
|
return this.http.get(`${this.environment.apiV2}/${this.url}`)
|
|
12919
12756
|
.pipe(map((response) => {
|
|
12920
12757
|
const items = (this.isHydra ? response['hydra:member'] : response)
|
|
12921
|
-
.map((item) =>
|
|
12922
|
-
return this.createModelInstance(item);
|
|
12923
|
-
});
|
|
12758
|
+
.map((item) => this.createModelInstance(item));
|
|
12924
12759
|
this.cache = items;
|
|
12925
12760
|
this.updateCache();
|
|
12926
12761
|
return items;
|
|
@@ -12945,9 +12780,9 @@ class RestService {
|
|
|
12945
12780
|
*/
|
|
12946
12781
|
listenEvents() { }
|
|
12947
12782
|
}
|
|
12948
|
-
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12949
|
-
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12783
|
+
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12784
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
12785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, decorators: [{
|
|
12951
12786
|
type: Injectable,
|
|
12952
12787
|
args: [{
|
|
12953
12788
|
providedIn: 'root'
|
|
@@ -12966,9 +12801,9 @@ class DocumentService extends RestService {
|
|
|
12966
12801
|
this.modelClass = Document;
|
|
12967
12802
|
}
|
|
12968
12803
|
}
|
|
12969
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12970
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12804
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12805
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
12806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, decorators: [{
|
|
12972
12807
|
type: Injectable,
|
|
12973
12808
|
args: [{
|
|
12974
12809
|
providedIn: 'root'
|
|
@@ -13034,9 +12869,9 @@ class DocumentFolderService extends RestService {
|
|
|
13034
12869
|
}));
|
|
13035
12870
|
}
|
|
13036
12871
|
}
|
|
13037
|
-
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13038
|
-
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12872
|
+
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12873
|
+
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
|
|
12874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, decorators: [{
|
|
13040
12875
|
type: Injectable,
|
|
13041
12876
|
args: [{
|
|
13042
12877
|
providedIn: 'root'
|
|
@@ -13113,9 +12948,9 @@ FacebookService.authOptions = {
|
|
|
13113
12948
|
auth_type: 'rerequest',
|
|
13114
12949
|
return_scopes: true
|
|
13115
12950
|
};
|
|
13116
|
-
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13117
|
-
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12951
|
+
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12952
|
+
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, providedIn: 'root' });
|
|
12953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, decorators: [{
|
|
13119
12954
|
type: Injectable,
|
|
13120
12955
|
args: [{
|
|
13121
12956
|
providedIn: 'root'
|
|
@@ -13185,9 +13020,9 @@ class GoogleService {
|
|
|
13185
13020
|
google.accounts.id.disableAutoSelect();
|
|
13186
13021
|
}
|
|
13187
13022
|
}
|
|
13188
|
-
GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13189
|
-
GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13023
|
+
GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GoogleService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13024
|
+
GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GoogleService, providedIn: 'root' });
|
|
13025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GoogleService, decorators: [{
|
|
13191
13026
|
type: Injectable,
|
|
13192
13027
|
args: [{
|
|
13193
13028
|
providedIn: 'root'
|
|
@@ -13214,10 +13049,13 @@ class FileService extends RestService$1 {
|
|
|
13214
13049
|
return this.http.post(this.apiUrl, formData)
|
|
13215
13050
|
.pipe(map((fileBase) => plainToClass(AppFile, fileBase)));
|
|
13216
13051
|
}
|
|
13052
|
+
download(file) {
|
|
13053
|
+
return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
|
|
13054
|
+
}
|
|
13217
13055
|
}
|
|
13218
|
-
FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13219
|
-
FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13056
|
+
FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13057
|
+
FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, providedIn: 'root' });
|
|
13058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, decorators: [{
|
|
13221
13059
|
type: Injectable,
|
|
13222
13060
|
args: [{
|
|
13223
13061
|
providedIn: 'root'
|
|
@@ -13234,9 +13072,9 @@ class ClientIncomeTypesService extends RestService$1 {
|
|
|
13234
13072
|
this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
|
|
13235
13073
|
}
|
|
13236
13074
|
}
|
|
13237
|
-
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13238
|
-
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13075
|
+
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13076
|
+
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
|
|
13077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
|
|
13240
13078
|
type: Injectable,
|
|
13241
13079
|
args: [{
|
|
13242
13080
|
providedIn: 'root'
|
|
@@ -13272,9 +13110,7 @@ class ClientInviteService extends RestService {
|
|
|
13272
13110
|
const formData = new FormData();
|
|
13273
13111
|
formData.append('file', file);
|
|
13274
13112
|
return this.http.post(`${this.environment.apiV2}/${this.url}/import`, formData)
|
|
13275
|
-
.pipe(map((clientInvite) =>
|
|
13276
|
-
return clientInvite;
|
|
13277
|
-
}));
|
|
13113
|
+
.pipe(map((clientInvite) => clientInvite));
|
|
13278
13114
|
}
|
|
13279
13115
|
/**
|
|
13280
13116
|
* Accept client invitation from firm to user
|
|
@@ -13351,9 +13187,9 @@ class ClientInviteService extends RestService {
|
|
|
13351
13187
|
});
|
|
13352
13188
|
}
|
|
13353
13189
|
}
|
|
13354
|
-
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13355
|
-
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13190
|
+
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13191
|
+
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
|
|
13192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, decorators: [{
|
|
13357
13193
|
type: Injectable,
|
|
13358
13194
|
args: [{
|
|
13359
13195
|
providedIn: 'root'
|
|
@@ -13375,19 +13211,13 @@ class ClientMovementService extends RestService {
|
|
|
13375
13211
|
* @TODO BaseRestService should return collection
|
|
13376
13212
|
*/
|
|
13377
13213
|
getAll() {
|
|
13378
|
-
return this.get().pipe(map((clientMovements) =>
|
|
13379
|
-
return new ClientMovementCollection(clientMovements);
|
|
13380
|
-
}));
|
|
13214
|
+
return this.get().pipe(map((clientMovements) => new ClientMovementCollection(clientMovements)));
|
|
13381
13215
|
}
|
|
13382
13216
|
getActive() {
|
|
13383
|
-
return this.getAll().pipe(map((clientMovements) =>
|
|
13384
|
-
return clientMovements.active;
|
|
13385
|
-
}));
|
|
13217
|
+
return this.getAll().pipe(map((clientMovements) => clientMovements.active));
|
|
13386
13218
|
}
|
|
13387
13219
|
getActiveByFirmType(type) {
|
|
13388
|
-
return this.getActive().pipe(map((clientMovements) =>
|
|
13389
|
-
return clientMovements.getByFirmType(type);
|
|
13390
|
-
}));
|
|
13220
|
+
return this.getActive().pipe(map((clientMovements) => clientMovements.getByFirmType(type)));
|
|
13391
13221
|
}
|
|
13392
13222
|
update(movement) {
|
|
13393
13223
|
// extend base 'add' method and pass into it movement without id
|
|
@@ -13432,9 +13262,9 @@ class ClientMovementService extends RestService {
|
|
|
13432
13262
|
});
|
|
13433
13263
|
}
|
|
13434
13264
|
}
|
|
13435
|
-
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13436
|
-
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13265
|
+
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13266
|
+
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
|
|
13267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, decorators: [{
|
|
13438
13268
|
type: Injectable,
|
|
13439
13269
|
args: [{
|
|
13440
13270
|
providedIn: 'root'
|
|
@@ -13463,9 +13293,9 @@ class EmployeeService extends RestService {
|
|
|
13463
13293
|
}));
|
|
13464
13294
|
}
|
|
13465
13295
|
}
|
|
13466
|
-
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13467
|
-
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13296
|
+
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13297
|
+
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, providedIn: 'root' });
|
|
13298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, decorators: [{
|
|
13469
13299
|
type: Injectable,
|
|
13470
13300
|
args: [{
|
|
13471
13301
|
providedIn: 'root'
|
|
@@ -13486,9 +13316,7 @@ class EmployeeInviteService extends RestService {
|
|
|
13486
13316
|
const formData = new FormData();
|
|
13487
13317
|
formData.append('file', file);
|
|
13488
13318
|
return this.http.post(`${this.environment.apiV2}/${this.url}/import`, formData)
|
|
13489
|
-
.pipe(map((employeeInvite) =>
|
|
13490
|
-
return employeeInvite;
|
|
13491
|
-
}));
|
|
13319
|
+
.pipe(map((employeeInvite) => employeeInvite));
|
|
13492
13320
|
}
|
|
13493
13321
|
/**
|
|
13494
13322
|
* Resend invitation from firm to client
|
|
@@ -13508,9 +13336,9 @@ class EmployeeInviteService extends RestService {
|
|
|
13508
13336
|
}));
|
|
13509
13337
|
}
|
|
13510
13338
|
}
|
|
13511
|
-
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13512
|
-
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13339
|
+
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13340
|
+
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
|
|
13341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, decorators: [{
|
|
13514
13342
|
type: Injectable,
|
|
13515
13343
|
args: [{
|
|
13516
13344
|
providedIn: 'root'
|
|
@@ -13535,9 +13363,9 @@ class ClientPortfolioReportService {
|
|
|
13535
13363
|
}));
|
|
13536
13364
|
}
|
|
13537
13365
|
}
|
|
13538
|
-
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13539
|
-
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13366
|
+
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13367
|
+
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
|
|
13368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
|
|
13541
13369
|
type: Injectable,
|
|
13542
13370
|
args: [{
|
|
13543
13371
|
providedIn: 'root'
|
|
@@ -13562,16 +13390,12 @@ class FirmService {
|
|
|
13562
13390
|
*/
|
|
13563
13391
|
register(data) {
|
|
13564
13392
|
return this.http.post(`${this.environment.apiV2}/firms/registration`, data)
|
|
13565
|
-
.pipe(map((firm) =>
|
|
13566
|
-
return plainToClass(Firm, firm);
|
|
13567
|
-
}));
|
|
13393
|
+
.pipe(map((firm) => plainToClass(Firm, firm)));
|
|
13568
13394
|
}
|
|
13569
13395
|
get() {
|
|
13570
13396
|
if (!this.firm) {
|
|
13571
13397
|
this.http.get(`${this.environment.apiV2}/firms/current`)
|
|
13572
|
-
.pipe(map((firm) =>
|
|
13573
|
-
return plainToClass(Firm, firm);
|
|
13574
|
-
}))
|
|
13398
|
+
.pipe(map((firm) => plainToClass(Firm, firm)))
|
|
13575
13399
|
.subscribe((firm) => {
|
|
13576
13400
|
this.firm = firm;
|
|
13577
13401
|
this.firmSubject.next(this.firm);
|
|
@@ -13591,14 +13415,10 @@ class FirmService {
|
|
|
13591
13415
|
*/
|
|
13592
13416
|
getAll() {
|
|
13593
13417
|
return this.http.get(`${this.environment.apiV2}/firms`)
|
|
13594
|
-
.pipe(map((response) =>
|
|
13595
|
-
return response['hydra:member'].map((firmBase) => plainToClass(Firm, firmBase));
|
|
13596
|
-
}));
|
|
13418
|
+
.pipe(map((response) => response['hydra:member'].map((firmBase) => plainToClass(Firm, firmBase))));
|
|
13597
13419
|
}
|
|
13598
13420
|
getByType(type) {
|
|
13599
|
-
return this.getAll().pipe(map((firms) =>
|
|
13600
|
-
return firms.filter((firm) => firm.type === type);
|
|
13601
|
-
}));
|
|
13421
|
+
return this.getAll().pipe(map((firms) => firms.filter((firm) => firm.type === type)));
|
|
13602
13422
|
}
|
|
13603
13423
|
updatePhoto(firm, photo) {
|
|
13604
13424
|
return this.http.post(`${this.environment.apiV2}/firms/photo?_method=PUT`, photo)
|
|
@@ -13609,9 +13429,9 @@ class FirmService {
|
|
|
13609
13429
|
}));
|
|
13610
13430
|
}
|
|
13611
13431
|
}
|
|
13612
|
-
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13613
|
-
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13432
|
+
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13433
|
+
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, providedIn: 'root' });
|
|
13434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, decorators: [{
|
|
13615
13435
|
type: Injectable,
|
|
13616
13436
|
args: [{
|
|
13617
13437
|
providedIn: 'root'
|
|
@@ -13686,9 +13506,9 @@ class IncomeSourceForecastService extends RestService {
|
|
|
13686
13506
|
}).flat();
|
|
13687
13507
|
}
|
|
13688
13508
|
}
|
|
13689
|
-
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13690
|
-
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13509
|
+
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13510
|
+
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
|
|
13511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
|
|
13692
13512
|
type: Injectable,
|
|
13693
13513
|
args: [{
|
|
13694
13514
|
providedIn: 'root'
|
|
@@ -13758,9 +13578,9 @@ class SalaryForecastService extends RestService {
|
|
|
13758
13578
|
}).flat();
|
|
13759
13579
|
}
|
|
13760
13580
|
}
|
|
13761
|
-
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13762
|
-
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13581
|
+
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13582
|
+
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
|
|
13583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, decorators: [{
|
|
13764
13584
|
type: Injectable,
|
|
13765
13585
|
args: [{
|
|
13766
13586
|
providedIn: 'root'
|
|
@@ -13836,9 +13656,9 @@ class SoleForecastService extends RestService {
|
|
|
13836
13656
|
});
|
|
13837
13657
|
}
|
|
13838
13658
|
}
|
|
13839
|
-
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13840
|
-
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13659
|
+
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13660
|
+
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
|
|
13661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, decorators: [{
|
|
13842
13662
|
type: Injectable,
|
|
13843
13663
|
args: [{
|
|
13844
13664
|
providedIn: 'root'
|
|
@@ -13864,9 +13684,7 @@ class IncomeSourceService extends RestService {
|
|
|
13864
13684
|
*/
|
|
13865
13685
|
getTaxCalculation(salaryForecast) {
|
|
13866
13686
|
return this.http.post(`${this.environment.apiV2}/${this.url}/tax-calculation`, salaryForecast)
|
|
13867
|
-
.pipe(map((response) =>
|
|
13868
|
-
return plainToClass(SalaryForecast, response);
|
|
13869
|
-
}));
|
|
13687
|
+
.pipe(map((response) => plainToClass(SalaryForecast, response)));
|
|
13870
13688
|
}
|
|
13871
13689
|
/**
|
|
13872
13690
|
* Add batch of income sources
|
|
@@ -13917,9 +13735,7 @@ class IncomeSourceService extends RestService {
|
|
|
13917
13735
|
if (!this.incomeSourceTypes) {
|
|
13918
13736
|
this.incomeSourceTypes = [];
|
|
13919
13737
|
this.http.get(`${this.environment.apiV2}/income-source-types`)
|
|
13920
|
-
.pipe(map((response) =>
|
|
13921
|
-
return response.map((item) => plainToClass(IncomeSourceType, item));
|
|
13922
|
-
}))
|
|
13738
|
+
.pipe(map((response) => response.map((item) => plainToClass(IncomeSourceType, item))))
|
|
13923
13739
|
.subscribe((otherIncomesTypes) => {
|
|
13924
13740
|
this.incomeSourceTypes = otherIncomesTypes;
|
|
13925
13741
|
this.incomeSourceTypeSubject.next(this.incomeSourceTypes);
|
|
@@ -13937,9 +13753,9 @@ class IncomeSourceService extends RestService {
|
|
|
13937
13753
|
});
|
|
13938
13754
|
}
|
|
13939
13755
|
}
|
|
13940
|
-
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13941
|
-
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13756
|
+
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13757
|
+
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
|
|
13758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, decorators: [{
|
|
13943
13759
|
type: Injectable,
|
|
13944
13760
|
args: [{
|
|
13945
13761
|
providedIn: 'root'
|
|
@@ -13961,9 +13777,7 @@ class BorrowingExpenseService {
|
|
|
13961
13777
|
get() {
|
|
13962
13778
|
if (!this._borrowingExpenses) {
|
|
13963
13779
|
this.http.get(`${this.environment.apiV2}/borrowing-expenses`)
|
|
13964
|
-
.pipe(map((response) =>
|
|
13965
|
-
return response.map((item) => plainToClass(BorrowingExpense, item));
|
|
13966
|
-
}))
|
|
13780
|
+
.pipe(map((response) => response.map((item) => plainToClass(BorrowingExpense, item))))
|
|
13967
13781
|
.subscribe((borrowingExpenses) => {
|
|
13968
13782
|
this._borrowingExpenses = borrowingExpenses;
|
|
13969
13783
|
this.borrowingExpensesSubject.next(this._borrowingExpenses);
|
|
@@ -14002,9 +13816,9 @@ class BorrowingExpenseService {
|
|
|
14002
13816
|
}));
|
|
14003
13817
|
}
|
|
14004
13818
|
}
|
|
14005
|
-
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14006
|
-
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13819
|
+
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13820
|
+
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
|
|
13821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, decorators: [{
|
|
14008
13822
|
type: Injectable,
|
|
14009
13823
|
args: [{
|
|
14010
13824
|
providedIn: 'root'
|
|
@@ -14043,9 +13857,7 @@ class LoanService extends RestService$1 {
|
|
|
14043
13857
|
* Calculate loan payments
|
|
14044
13858
|
*/
|
|
14045
13859
|
calculateLoanPayments(loan) {
|
|
14046
|
-
return this.http.post(`${this.apiUrl}/calculation`, loan).pipe(map((response) =>
|
|
14047
|
-
return plainToClass(Loan, response);
|
|
14048
|
-
}));
|
|
13860
|
+
return this.http.post(`${this.apiUrl}/calculation`, loan).pipe(map((response) => plainToClass(Loan, response)));
|
|
14049
13861
|
}
|
|
14050
13862
|
/**
|
|
14051
13863
|
* Add new loan payout
|
|
@@ -14088,9 +13900,9 @@ class LoanService extends RestService$1 {
|
|
|
14088
13900
|
}));
|
|
14089
13901
|
}
|
|
14090
13902
|
}
|
|
14091
|
-
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14092
|
-
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13903
|
+
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13904
|
+
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, providedIn: 'root' });
|
|
13905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, decorators: [{
|
|
14094
13906
|
type: Injectable,
|
|
14095
13907
|
args: [{
|
|
14096
13908
|
providedIn: 'root'
|
|
@@ -14109,9 +13921,9 @@ class PropertyCategoryService extends RestService$1 {
|
|
|
14109
13921
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
14110
13922
|
}
|
|
14111
13923
|
}
|
|
14112
|
-
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14113
|
-
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13924
|
+
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13925
|
+
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
|
|
13926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, decorators: [{
|
|
14115
13927
|
type: Injectable,
|
|
14116
13928
|
args: [{
|
|
14117
13929
|
providedIn: 'root'
|
|
@@ -14127,9 +13939,9 @@ class PropertyCategoryMovementService extends RestService$1 {
|
|
|
14127
13939
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
14128
13940
|
}
|
|
14129
13941
|
}
|
|
14130
|
-
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14131
|
-
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13942
|
+
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13943
|
+
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
|
|
13944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
|
|
14133
13945
|
type: Injectable,
|
|
14134
13946
|
args: [{
|
|
14135
13947
|
providedIn: 'root'
|
|
@@ -14171,9 +13983,9 @@ class PropertyDocumentService extends RestService$1 {
|
|
|
14171
13983
|
});
|
|
14172
13984
|
}
|
|
14173
13985
|
}
|
|
14174
|
-
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14175
|
-
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13986
|
+
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13987
|
+
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
|
|
13988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, decorators: [{
|
|
14177
13989
|
type: Injectable,
|
|
14178
13990
|
args: [{
|
|
14179
13991
|
providedIn: 'root'
|
|
@@ -14190,9 +14002,9 @@ class TaxExemptionService extends RestService$1 {
|
|
|
14190
14002
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
14191
14003
|
}
|
|
14192
14004
|
}
|
|
14193
|
-
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14194
|
-
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14005
|
+
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14006
|
+
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
|
|
14007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, decorators: [{
|
|
14196
14008
|
type: Injectable,
|
|
14197
14009
|
args: [{
|
|
14198
14010
|
providedIn: 'root'
|
|
@@ -14208,9 +14020,9 @@ class PropertySaleService extends RestService$1 {
|
|
|
14208
14020
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
14209
14021
|
}
|
|
14210
14022
|
}
|
|
14211
|
-
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14212
|
-
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14023
|
+
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14024
|
+
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
|
|
14025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, decorators: [{
|
|
14214
14026
|
type: Injectable,
|
|
14215
14027
|
args: [{
|
|
14216
14028
|
providedIn: 'root'
|
|
@@ -14257,9 +14069,9 @@ class PropertyShareService extends RestService$1 {
|
|
|
14257
14069
|
this.listenCSE(PropertySale, ['post', 'delete'], this.resetCache);
|
|
14258
14070
|
}
|
|
14259
14071
|
}
|
|
14260
|
-
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14261
|
-
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14072
|
+
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14073
|
+
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
|
|
14074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, decorators: [{
|
|
14263
14075
|
type: Injectable,
|
|
14264
14076
|
args: [{
|
|
14265
14077
|
providedIn: 'root'
|
|
@@ -14356,9 +14168,9 @@ class PropertyService extends RestService$1 {
|
|
|
14356
14168
|
}));
|
|
14357
14169
|
}
|
|
14358
14170
|
}
|
|
14359
|
-
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14360
|
-
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14171
|
+
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14172
|
+
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, providedIn: 'root' });
|
|
14173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, decorators: [{
|
|
14362
14174
|
type: Injectable,
|
|
14363
14175
|
args: [{
|
|
14364
14176
|
providedIn: 'root'
|
|
@@ -14402,9 +14214,9 @@ class ServiceNotificationService extends RestService {
|
|
|
14402
14214
|
});
|
|
14403
14215
|
}
|
|
14404
14216
|
}
|
|
14405
|
-
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14406
|
-
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14407
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14217
|
+
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14218
|
+
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
|
|
14219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, decorators: [{
|
|
14408
14220
|
type: Injectable,
|
|
14409
14221
|
args: [{
|
|
14410
14222
|
providedIn: 'root'
|
|
@@ -14451,13 +14263,13 @@ class SoleBusinessService extends RestService {
|
|
|
14451
14263
|
if (error.status === 422) {
|
|
14452
14264
|
this.toastService.error(error.error.violations[0].message);
|
|
14453
14265
|
}
|
|
14454
|
-
return throwError
|
|
14266
|
+
return throwError(error);
|
|
14455
14267
|
}));
|
|
14456
14268
|
}
|
|
14457
14269
|
}
|
|
14458
|
-
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14459
|
-
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14270
|
+
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14271
|
+
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
|
|
14272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, decorators: [{
|
|
14461
14273
|
type: Injectable,
|
|
14462
14274
|
args: [{
|
|
14463
14275
|
providedIn: 'root'
|
|
@@ -14472,9 +14284,9 @@ class SoleBusinessActivityService extends RestService {
|
|
|
14472
14284
|
this.isHydra = true;
|
|
14473
14285
|
}
|
|
14474
14286
|
}
|
|
14475
|
-
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14476
|
-
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14287
|
+
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14288
|
+
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
|
|
14289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
|
|
14478
14290
|
type: Injectable,
|
|
14479
14291
|
args: [{
|
|
14480
14292
|
providedIn: 'root'
|
|
@@ -14500,9 +14312,9 @@ class SoleBusinessLossService extends RestService {
|
|
|
14500
14312
|
});
|
|
14501
14313
|
}
|
|
14502
14314
|
}
|
|
14503
|
-
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14504
|
-
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14315
|
+
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14316
|
+
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
|
|
14317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, decorators: [{
|
|
14506
14318
|
type: Injectable,
|
|
14507
14319
|
args: [{
|
|
14508
14320
|
providedIn: 'root'
|
|
@@ -14520,9 +14332,9 @@ class SoleBusinessLossOffsetRuleService extends RestService {
|
|
|
14520
14332
|
this.isHydra = true;
|
|
14521
14333
|
}
|
|
14522
14334
|
}
|
|
14523
|
-
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14524
|
-
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14335
|
+
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14336
|
+
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
|
|
14337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
|
|
14526
14338
|
type: Injectable,
|
|
14527
14339
|
args: [{
|
|
14528
14340
|
providedIn: 'root'
|
|
@@ -14537,9 +14349,9 @@ class SoleContactService extends RestService {
|
|
|
14537
14349
|
this.isHydra = true;
|
|
14538
14350
|
}
|
|
14539
14351
|
}
|
|
14540
|
-
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14541
|
-
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14352
|
+
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14353
|
+
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, providedIn: 'root' });
|
|
14354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, decorators: [{
|
|
14543
14355
|
type: Injectable,
|
|
14544
14356
|
args: [{
|
|
14545
14357
|
providedIn: 'root'
|
|
@@ -14584,7 +14396,7 @@ class SoleDepreciationMethodService {
|
|
|
14584
14396
|
return this.cache;
|
|
14585
14397
|
}), catchError((error) => {
|
|
14586
14398
|
this.toastService.error(error.error['hydra:description']);
|
|
14587
|
-
return throwError
|
|
14399
|
+
return throwError(error);
|
|
14588
14400
|
}));
|
|
14589
14401
|
}
|
|
14590
14402
|
listenSoleDetailsChanges() {
|
|
@@ -14595,9 +14407,9 @@ class SoleDepreciationMethodService {
|
|
|
14595
14407
|
});
|
|
14596
14408
|
}
|
|
14597
14409
|
}
|
|
14598
|
-
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14599
|
-
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14410
|
+
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14411
|
+
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
|
|
14412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
|
|
14601
14413
|
type: Injectable,
|
|
14602
14414
|
args: [{
|
|
14603
14415
|
providedIn: 'root'
|
|
@@ -14652,9 +14464,9 @@ class SoleDetailsService {
|
|
|
14652
14464
|
}));
|
|
14653
14465
|
}
|
|
14654
14466
|
}
|
|
14655
|
-
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14656
|
-
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14467
|
+
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14468
|
+
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
|
|
14469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, decorators: [{
|
|
14658
14470
|
type: Injectable,
|
|
14659
14471
|
args: [{
|
|
14660
14472
|
providedIn: 'root'
|
|
@@ -14730,9 +14542,9 @@ class SoleInvoiceService extends RestService {
|
|
|
14730
14542
|
});
|
|
14731
14543
|
}
|
|
14732
14544
|
}
|
|
14733
|
-
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14734
|
-
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14545
|
+
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14546
|
+
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
|
|
14547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, decorators: [{
|
|
14736
14548
|
type: Injectable,
|
|
14737
14549
|
args: [{
|
|
14738
14550
|
providedIn: 'root'
|
|
@@ -14747,9 +14559,9 @@ class SoleInvoiceTemplateService extends RestService {
|
|
|
14747
14559
|
this.isHydra = true;
|
|
14748
14560
|
}
|
|
14749
14561
|
}
|
|
14750
|
-
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14751
|
-
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14562
|
+
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14563
|
+
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
|
|
14564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
|
|
14753
14565
|
type: Injectable,
|
|
14754
14566
|
args: [{
|
|
14755
14567
|
providedIn: 'root'
|
|
@@ -14764,9 +14576,9 @@ class BasReportService extends RestService {
|
|
|
14764
14576
|
this.isHydra = true;
|
|
14765
14577
|
}
|
|
14766
14578
|
}
|
|
14767
|
-
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14768
|
-
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14579
|
+
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14580
|
+
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, providedIn: 'root' });
|
|
14581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, decorators: [{
|
|
14770
14582
|
type: Injectable,
|
|
14771
14583
|
args: [{
|
|
14772
14584
|
providedIn: 'root'
|
|
@@ -14792,9 +14604,9 @@ class ServicePaymentService extends RestService$1 {
|
|
|
14792
14604
|
return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
|
|
14793
14605
|
}
|
|
14794
14606
|
}
|
|
14795
|
-
ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14796
|
-
ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14607
|
+
ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14608
|
+
ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
|
|
14609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, decorators: [{
|
|
14798
14610
|
type: Injectable,
|
|
14799
14611
|
args: [{
|
|
14800
14612
|
providedIn: 'root'
|
|
@@ -14842,9 +14654,9 @@ class ServicePaymentMethodService extends RestService$1 {
|
|
|
14842
14654
|
});
|
|
14843
14655
|
}
|
|
14844
14656
|
}
|
|
14845
|
-
ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14846
|
-
ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14657
|
+
ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14658
|
+
ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
|
|
14659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
|
|
14848
14660
|
type: Injectable,
|
|
14849
14661
|
args: [{
|
|
14850
14662
|
providedIn: 'root'
|
|
@@ -14869,9 +14681,9 @@ class ServicePriceService extends RestService$1 {
|
|
|
14869
14681
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
14870
14682
|
}
|
|
14871
14683
|
}
|
|
14872
|
-
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14873
|
-
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14684
|
+
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14685
|
+
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
|
|
14686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, decorators: [{
|
|
14875
14687
|
type: Injectable,
|
|
14876
14688
|
args: [{
|
|
14877
14689
|
providedIn: 'root'
|
|
@@ -14949,9 +14761,7 @@ class SubscriptionService extends RestService$1 {
|
|
|
14949
14761
|
* Get difference between current subscription and selected new subscription
|
|
14950
14762
|
*/
|
|
14951
14763
|
getProrationCost(subscription) {
|
|
14952
|
-
return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/proration-cost`, subscription).pipe(map((prorationCost) =>
|
|
14953
|
-
return prorationCost;
|
|
14954
|
-
}));
|
|
14764
|
+
return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/proration-cost`, subscription).pipe(map((prorationCost) => prorationCost));
|
|
14955
14765
|
}
|
|
14956
14766
|
/**
|
|
14957
14767
|
* Change subscription plan
|
|
@@ -14989,9 +14799,9 @@ class SubscriptionService extends RestService$1 {
|
|
|
14989
14799
|
});
|
|
14990
14800
|
}
|
|
14991
14801
|
}
|
|
14992
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14993
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14802
|
+
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14803
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
|
|
14804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
14995
14805
|
type: Injectable,
|
|
14996
14806
|
args: [{
|
|
14997
14807
|
providedIn: 'root'
|
|
@@ -15013,9 +14823,9 @@ class ServiceProductService extends RestService$1 {
|
|
|
15013
14823
|
this.isApiPlatform = true;
|
|
15014
14824
|
}
|
|
15015
14825
|
}
|
|
15016
|
-
ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15017
|
-
ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14826
|
+
ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14827
|
+
ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
|
|
14828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, decorators: [{
|
|
15019
14829
|
type: Injectable,
|
|
15020
14830
|
args: [{
|
|
15021
14831
|
providedIn: 'root'
|
|
@@ -15047,9 +14857,9 @@ class TaxReviewHistoryService extends RestService {
|
|
|
15047
14857
|
});
|
|
15048
14858
|
}
|
|
15049
14859
|
}
|
|
15050
|
-
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15051
|
-
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15052
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14860
|
+
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14861
|
+
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
|
|
14862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
|
|
15053
14863
|
type: Injectable,
|
|
15054
14864
|
args: [{
|
|
15055
14865
|
providedIn: 'root'
|
|
@@ -15138,9 +14948,9 @@ class TaxReviewService extends RestService {
|
|
|
15138
14948
|
});
|
|
15139
14949
|
}
|
|
15140
14950
|
}
|
|
15141
|
-
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15142
|
-
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14951
|
+
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14952
|
+
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
|
|
14953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, decorators: [{
|
|
15144
14954
|
type: Injectable,
|
|
15145
14955
|
args: [{
|
|
15146
14956
|
providedIn: 'root'
|
|
@@ -15197,9 +15007,9 @@ class TaxSummaryService {
|
|
|
15197
15007
|
});
|
|
15198
15008
|
}
|
|
15199
15009
|
}
|
|
15200
|
-
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15201
|
-
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15010
|
+
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15011
|
+
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
|
|
15012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, decorators: [{
|
|
15203
15013
|
type: Injectable,
|
|
15204
15014
|
args: [{
|
|
15205
15015
|
providedIn: 'root'
|
|
@@ -15220,9 +15030,9 @@ class AllocationRuleService extends RestService$1 {
|
|
|
15220
15030
|
this.isApiPlatform = true;
|
|
15221
15031
|
}
|
|
15222
15032
|
}
|
|
15223
|
-
AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15224
|
-
AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15033
|
+
AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15034
|
+
AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
|
|
15035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, decorators: [{
|
|
15226
15036
|
type: Injectable,
|
|
15227
15037
|
args: [{
|
|
15228
15038
|
providedIn: 'root'
|
|
@@ -15272,9 +15082,7 @@ class TransactionAllocationService extends RestService {
|
|
|
15272
15082
|
getByTransactions(transactions) {
|
|
15273
15083
|
const ids = transactions.map((transaction) => transaction.id);
|
|
15274
15084
|
return this.get()
|
|
15275
|
-
.pipe(map((transactionAllocations) =>
|
|
15276
|
-
return transactionAllocations.filter((allocation) => ids.includes(allocation.transaction.id));
|
|
15277
|
-
}));
|
|
15085
|
+
.pipe(map((transactionAllocations) => transactionAllocations.filter((allocation) => ids.includes(allocation.transaction.id))));
|
|
15278
15086
|
}
|
|
15279
15087
|
listenEvents() {
|
|
15280
15088
|
this.onTransactionsCreated();
|
|
@@ -15313,9 +15121,9 @@ class TransactionAllocationService extends RestService {
|
|
|
15313
15121
|
});
|
|
15314
15122
|
}
|
|
15315
15123
|
}
|
|
15316
|
-
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15317
|
-
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15124
|
+
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15125
|
+
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
|
|
15126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, decorators: [{
|
|
15319
15127
|
type: Injectable,
|
|
15320
15128
|
args: [{
|
|
15321
15129
|
providedIn: 'root'
|
|
@@ -15341,9 +15149,9 @@ class TransactionReceiptService extends ReceiptService {
|
|
|
15341
15149
|
this.listenEvents();
|
|
15342
15150
|
}
|
|
15343
15151
|
}
|
|
15344
|
-
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15345
|
-
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15152
|
+
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15153
|
+
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
|
|
15154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, decorators: [{
|
|
15347
15155
|
type: Injectable,
|
|
15348
15156
|
args: [{
|
|
15349
15157
|
providedIn: 'root'
|
|
@@ -15426,42 +15234,31 @@ class TransactionService extends RestService {
|
|
|
15426
15234
|
*/
|
|
15427
15235
|
getByPropertyId(propertyId) {
|
|
15428
15236
|
return this.get()
|
|
15429
|
-
.pipe(map((transactions) => {
|
|
15430
|
-
return transactions.filter((transaction) => {
|
|
15431
|
-
var _a;
|
|
15432
|
-
return ((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id) === propertyId;
|
|
15433
|
-
});
|
|
15434
|
-
}));
|
|
15237
|
+
.pipe(map((transactions) => transactions.filter((transaction) => { var _a; return ((_a = transaction.property) === null || _a === void 0 ? void 0 : _a.id) === propertyId; })));
|
|
15435
15238
|
}
|
|
15436
15239
|
/**
|
|
15437
15240
|
* get list of transactions with tank type 'Work'
|
|
15438
15241
|
*/
|
|
15439
15242
|
getWorkTransactions() {
|
|
15440
15243
|
return this.get()
|
|
15441
|
-
.pipe(map((transactions) =>
|
|
15442
|
-
return transactions.filter((transaction) => transaction.isWorkTank());
|
|
15443
|
-
}));
|
|
15244
|
+
.pipe(map((transactions) => transactions.filter((transaction) => transaction.isWorkTank())));
|
|
15444
15245
|
}
|
|
15445
15246
|
/**
|
|
15446
15247
|
* Get list of property holding costs (transactions related to vacant land property)
|
|
15447
15248
|
*/
|
|
15448
15249
|
getPropertyHoldingCosts(propertyId) {
|
|
15449
15250
|
return this.get()
|
|
15450
|
-
.pipe(map((transactions) =>
|
|
15451
|
-
|
|
15452
|
-
|
|
15453
|
-
|
|
15454
|
-
.toArray();
|
|
15455
|
-
}));
|
|
15251
|
+
.pipe(map((transactions) => new TransactionCollection(transactions)
|
|
15252
|
+
.filterBy('property.id', propertyId)
|
|
15253
|
+
.filterBy('property.category.id', PropertyCategoryListEnum.VACANT_LAND)
|
|
15254
|
+
.toArray()));
|
|
15456
15255
|
}
|
|
15457
15256
|
/**
|
|
15458
15257
|
* get list of taxable transactions with tank type 'Work'
|
|
15459
15258
|
*/
|
|
15460
15259
|
getTaxableWorkTransactions() {
|
|
15461
15260
|
return this.getWorkTransactions()
|
|
15462
|
-
.pipe(map((transactions) =>
|
|
15463
|
-
return transactions.filter((transaction) => !!transaction.chartAccounts.taxReturnItem);
|
|
15464
|
-
}));
|
|
15261
|
+
.pipe(map((transactions) => transactions.filter((transaction) => !!transaction.chartAccounts.taxReturnItem)));
|
|
15465
15262
|
}
|
|
15466
15263
|
/**
|
|
15467
15264
|
* add multiple transactions
|
|
@@ -15666,9 +15463,9 @@ class TransactionService extends RestService {
|
|
|
15666
15463
|
});
|
|
15667
15464
|
}
|
|
15668
15465
|
}
|
|
15669
|
-
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15670
|
-
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15466
|
+
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15467
|
+
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, providedIn: 'root' });
|
|
15468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, decorators: [{
|
|
15672
15469
|
type: Injectable,
|
|
15673
15470
|
args: [{
|
|
15674
15471
|
providedIn: 'root'
|
|
@@ -15699,9 +15496,9 @@ class TutorialVideoService {
|
|
|
15699
15496
|
}
|
|
15700
15497
|
TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
|
|
15701
15498
|
TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
|
|
15702
|
-
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15703
|
-
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15499
|
+
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15500
|
+
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
|
|
15501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, decorators: [{
|
|
15705
15502
|
type: Injectable,
|
|
15706
15503
|
args: [{
|
|
15707
15504
|
providedIn: 'root'
|
|
@@ -15723,9 +15520,9 @@ class VehicleService extends RestService {
|
|
|
15723
15520
|
this.modelClass = Vehicle;
|
|
15724
15521
|
}
|
|
15725
15522
|
}
|
|
15726
|
-
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15727
|
-
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15523
|
+
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15524
|
+
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, providedIn: 'root' });
|
|
15525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, decorators: [{
|
|
15729
15526
|
type: Injectable,
|
|
15730
15527
|
args: [{
|
|
15731
15528
|
providedIn: 'root'
|
|
@@ -15797,9 +15594,9 @@ class VehicleClaimService extends RestService {
|
|
|
15797
15594
|
combineLatest(batch$).subscribe();
|
|
15798
15595
|
}
|
|
15799
15596
|
}
|
|
15800
|
-
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15801
|
-
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15597
|
+
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15598
|
+
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
|
|
15599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, decorators: [{
|
|
15803
15600
|
type: Injectable,
|
|
15804
15601
|
args: [{
|
|
15805
15602
|
providedIn: 'root'
|
|
@@ -15876,9 +15673,9 @@ class VehicleClaimDetailsService {
|
|
|
15876
15673
|
this.update(vehicleClaimDetails).subscribe();
|
|
15877
15674
|
}
|
|
15878
15675
|
}
|
|
15879
|
-
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15880
|
-
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15676
|
+
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15677
|
+
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
|
|
15678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
|
|
15882
15679
|
type: Injectable,
|
|
15883
15680
|
args: [{
|
|
15884
15681
|
providedIn: 'root'
|
|
@@ -15900,9 +15697,9 @@ class VehicleLogbookService extends RestService {
|
|
|
15900
15697
|
this.modelClass = VehicleLogbook;
|
|
15901
15698
|
}
|
|
15902
15699
|
}
|
|
15903
|
-
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15904
|
-
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15700
|
+
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15701
|
+
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
|
|
15702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, decorators: [{
|
|
15906
15703
|
type: Injectable,
|
|
15907
15704
|
args: [{
|
|
15908
15705
|
providedIn: 'root'
|
|
@@ -15919,9 +15716,9 @@ class AnnualClientDetailsService extends RestService$1 {
|
|
|
15919
15716
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
|
|
15920
15717
|
}
|
|
15921
15718
|
}
|
|
15922
|
-
AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15923
|
-
AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15719
|
+
AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15720
|
+
AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
|
|
15721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
|
|
15925
15722
|
type: Injectable,
|
|
15926
15723
|
args: [{
|
|
15927
15724
|
providedIn: 'root'
|
|
@@ -15943,9 +15740,7 @@ class OccupationService {
|
|
|
15943
15740
|
getOccupations() {
|
|
15944
15741
|
if (!this._occupations) {
|
|
15945
15742
|
this.http.get(`${this.environment.apiV2}/occupations`)
|
|
15946
|
-
.pipe(map((response) =>
|
|
15947
|
-
return response.map((item) => plainToClass(Occupation, item));
|
|
15948
|
-
}))
|
|
15743
|
+
.pipe(map((response) => response.map((item) => plainToClass(Occupation, item))))
|
|
15949
15744
|
.subscribe((occupations) => {
|
|
15950
15745
|
this._occupations = occupations;
|
|
15951
15746
|
this.occupationsSubject.next(occupations);
|
|
@@ -15954,9 +15749,9 @@ class OccupationService {
|
|
|
15954
15749
|
return this.occupationsSubject.asObservable();
|
|
15955
15750
|
}
|
|
15956
15751
|
}
|
|
15957
|
-
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15958
|
-
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15752
|
+
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15753
|
+
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, providedIn: 'root' });
|
|
15754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, decorators: [{
|
|
15960
15755
|
type: Injectable,
|
|
15961
15756
|
args: [{
|
|
15962
15757
|
providedIn: 'root'
|
|
@@ -16002,9 +15797,9 @@ class UserEventSettingService extends RestService {
|
|
|
16002
15797
|
}));
|
|
16003
15798
|
}
|
|
16004
15799
|
}
|
|
16005
|
-
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16006
|
-
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15800
|
+
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15801
|
+
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
|
|
15802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, decorators: [{
|
|
16008
15803
|
type: Injectable,
|
|
16009
15804
|
args: [{
|
|
16010
15805
|
providedIn: 'root'
|
|
@@ -16019,9 +15814,9 @@ class UserEventTypeService extends RestService {
|
|
|
16019
15814
|
this.isHydra = true;
|
|
16020
15815
|
}
|
|
16021
15816
|
}
|
|
16022
|
-
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16023
|
-
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15817
|
+
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15818
|
+
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
|
|
15819
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, decorators: [{
|
|
16025
15820
|
type: Injectable,
|
|
16026
15821
|
args: [{
|
|
16027
15822
|
providedIn: 'root'
|
|
@@ -16038,9 +15833,9 @@ class UsersInviteService extends RestService {
|
|
|
16038
15833
|
this.url = 'users/invite';
|
|
16039
15834
|
}
|
|
16040
15835
|
}
|
|
16041
|
-
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16042
|
-
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15836
|
+
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15837
|
+
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
|
|
15838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, decorators: [{
|
|
16044
15839
|
type: Injectable,
|
|
16045
15840
|
args: [{
|
|
16046
15841
|
providedIn: 'root'
|
|
@@ -16057,9 +15852,9 @@ class HoldingService extends RestService$1 {
|
|
|
16057
15852
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
16058
15853
|
}
|
|
16059
15854
|
}
|
|
16060
|
-
HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16061
|
-
HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15855
|
+
HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15856
|
+
HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, providedIn: 'root' });
|
|
15857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, decorators: [{
|
|
16063
15858
|
type: Injectable,
|
|
16064
15859
|
args: [{
|
|
16065
15860
|
providedIn: 'root'
|
|
@@ -16076,9 +15871,9 @@ class HoldingTypeService extends RestService$1 {
|
|
|
16076
15871
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
16077
15872
|
}
|
|
16078
15873
|
}
|
|
16079
|
-
HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16080
|
-
HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15874
|
+
HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15875
|
+
HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
|
|
15876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, decorators: [{
|
|
16082
15877
|
type: Injectable,
|
|
16083
15878
|
args: [{
|
|
16084
15879
|
providedIn: 'root'
|
|
@@ -16095,9 +15890,9 @@ class HoldingSaleService extends RestService$1 {
|
|
|
16095
15890
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
16096
15891
|
}
|
|
16097
15892
|
}
|
|
16098
|
-
HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16099
|
-
HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15893
|
+
HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15894
|
+
HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
|
|
15895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, decorators: [{
|
|
16101
15896
|
type: Injectable,
|
|
16102
15897
|
args: [{
|
|
16103
15898
|
providedIn: 'root'
|
|
@@ -16192,9 +15987,9 @@ class HoldingTypeExchangeService extends DataService {
|
|
|
16192
15987
|
this.setCache(HoldingTypeExchanges);
|
|
16193
15988
|
}
|
|
16194
15989
|
}
|
|
16195
|
-
HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16196
|
-
HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15990
|
+
HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15991
|
+
HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
|
|
15992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
|
|
16198
15993
|
type: Injectable,
|
|
16199
15994
|
args: [{
|
|
16200
15995
|
providedIn: 'root'
|
|
@@ -16425,9 +16220,9 @@ class AccountSetupService {
|
|
|
16425
16220
|
}));
|
|
16426
16221
|
}
|
|
16427
16222
|
}
|
|
16428
|
-
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16429
|
-
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16223
|
+
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }, { token: HoldingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16224
|
+
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
|
|
16225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, decorators: [{
|
|
16431
16226
|
type: Injectable,
|
|
16432
16227
|
args: [{
|
|
16433
16228
|
providedIn: 'root'
|
|
@@ -16453,9 +16248,9 @@ class RewardfulService {
|
|
|
16453
16248
|
});
|
|
16454
16249
|
}
|
|
16455
16250
|
}
|
|
16456
|
-
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16457
|
-
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16251
|
+
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16252
|
+
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, providedIn: 'root' });
|
|
16253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, decorators: [{
|
|
16459
16254
|
type: Injectable,
|
|
16460
16255
|
args: [{
|
|
16461
16256
|
providedIn: 'root'
|
|
@@ -16502,9 +16297,9 @@ class AssetsService {
|
|
|
16502
16297
|
return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
|
|
16503
16298
|
}
|
|
16504
16299
|
}
|
|
16505
|
-
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16506
|
-
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16300
|
+
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16301
|
+
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, providedIn: 'root' });
|
|
16302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, decorators: [{
|
|
16508
16303
|
type: Injectable,
|
|
16509
16304
|
args: [{
|
|
16510
16305
|
providedIn: 'root'
|
|
@@ -16543,18 +16338,14 @@ class BankTransactionCalculationService {
|
|
|
16543
16338
|
* @TODO Alex: consider to move to collection
|
|
16544
16339
|
*/
|
|
16545
16340
|
getAllocatedBankTransactions(bankTransactions, allocations) {
|
|
16546
|
-
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) =>
|
|
16547
|
-
return this.isAllocated(bankTransaction, allocations);
|
|
16548
|
-
}));
|
|
16341
|
+
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => this.isAllocated(bankTransaction, allocations)));
|
|
16549
16342
|
}
|
|
16550
16343
|
/**
|
|
16551
16344
|
* Get collection of unallocated bank transactions
|
|
16552
16345
|
* @TODO Alex: consider to move to collection
|
|
16553
16346
|
*/
|
|
16554
16347
|
getUnallocated(bankTransactions, allocations) {
|
|
16555
|
-
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) =>
|
|
16556
|
-
return !this.isAllocated(bankTransaction, allocations);
|
|
16557
|
-
}));
|
|
16348
|
+
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => !this.isAllocated(bankTransaction, allocations)));
|
|
16558
16349
|
}
|
|
16559
16350
|
/**
|
|
16560
16351
|
* Allocated sum of credit transactions
|
|
@@ -16569,9 +16360,9 @@ class BankTransactionCalculationService {
|
|
|
16569
16360
|
return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
|
|
16570
16361
|
}
|
|
16571
16362
|
}
|
|
16572
|
-
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16573
|
-
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16363
|
+
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16364
|
+
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
|
|
16365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
|
|
16575
16366
|
type: Injectable,
|
|
16576
16367
|
args: [{
|
|
16577
16368
|
providedIn: 'root'
|
|
@@ -16600,9 +16391,9 @@ class BankAccountCalculationService {
|
|
|
16600
16391
|
return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
|
|
16601
16392
|
}
|
|
16602
16393
|
}
|
|
16603
|
-
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16604
|
-
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16605
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16394
|
+
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16395
|
+
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
|
|
16396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, decorators: [{
|
|
16606
16397
|
type: Injectable,
|
|
16607
16398
|
args: [{
|
|
16608
16399
|
providedIn: 'root'
|
|
@@ -16627,9 +16418,9 @@ class ExportFormatterService {
|
|
|
16627
16418
|
}));
|
|
16628
16419
|
}
|
|
16629
16420
|
}
|
|
16630
|
-
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16631
|
-
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16421
|
+
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16422
|
+
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
|
|
16423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, decorators: [{
|
|
16633
16424
|
type: Injectable,
|
|
16634
16425
|
args: [{
|
|
16635
16426
|
providedIn: 'root'
|
|
@@ -16650,9 +16441,9 @@ class HeaderTitleService {
|
|
|
16650
16441
|
}), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
|
|
16651
16442
|
}
|
|
16652
16443
|
}
|
|
16653
|
-
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16654
|
-
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16444
|
+
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, deps: [{ token: i4.Router }, { token: i4.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16445
|
+
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
|
|
16446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, decorators: [{
|
|
16656
16447
|
type: Injectable,
|
|
16657
16448
|
args: [{
|
|
16658
16449
|
providedIn: 'root'
|
|
@@ -16686,9 +16477,9 @@ class IntercomService {
|
|
|
16686
16477
|
window.Intercom('boot', connectionCredentials);
|
|
16687
16478
|
}
|
|
16688
16479
|
}
|
|
16689
|
-
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16690
|
-
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16480
|
+
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16481
|
+
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, providedIn: 'root' });
|
|
16482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, decorators: [{
|
|
16692
16483
|
type: Injectable,
|
|
16693
16484
|
args: [{
|
|
16694
16485
|
providedIn: 'root'
|
|
@@ -16760,9 +16551,9 @@ class PdfFromDomElementService {
|
|
|
16760
16551
|
.then((blob) => new File([blob], filename, { type: 'application/pdf' })));
|
|
16761
16552
|
}
|
|
16762
16553
|
}
|
|
16763
|
-
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16764
|
-
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16554
|
+
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16555
|
+
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
|
|
16556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, decorators: [{
|
|
16766
16557
|
type: Injectable,
|
|
16767
16558
|
args: [{
|
|
16768
16559
|
providedIn: 'root'
|
|
@@ -16841,9 +16632,9 @@ class PdfFromTableService {
|
|
|
16841
16632
|
doc.addImage(logo, 'PNG', doc.internal.pageSize.width - FILE_SETTINGS.logo.positionX, FILE_SETTINGS.logo.positionY, FILE_SETTINGS.logo.width, FILE_SETTINGS.logo.height);
|
|
16842
16633
|
}
|
|
16843
16634
|
}
|
|
16844
|
-
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16845
|
-
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16635
|
+
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16636
|
+
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
|
|
16637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, decorators: [{
|
|
16847
16638
|
type: Injectable,
|
|
16848
16639
|
args: [{
|
|
16849
16640
|
providedIn: 'root'
|
|
@@ -16875,9 +16666,9 @@ class PdfFromDataTableService extends PdfFromTableService {
|
|
|
16875
16666
|
return pdf;
|
|
16876
16667
|
}
|
|
16877
16668
|
}
|
|
16878
|
-
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16879
|
-
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16880
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16669
|
+
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16670
|
+
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
|
|
16671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, decorators: [{
|
|
16881
16672
|
type: Injectable,
|
|
16882
16673
|
args: [{
|
|
16883
16674
|
providedIn: 'root'
|
|
@@ -16910,9 +16701,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
|
|
|
16910
16701
|
return pdf;
|
|
16911
16702
|
}
|
|
16912
16703
|
}
|
|
16913
|
-
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16914
|
-
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16704
|
+
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
16705
|
+
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
|
|
16706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
|
|
16916
16707
|
type: Injectable,
|
|
16917
16708
|
args: [{
|
|
16918
16709
|
providedIn: 'root'
|
|
@@ -16930,24 +16721,18 @@ class EquityPositionChartService {
|
|
|
16930
16721
|
get() {
|
|
16931
16722
|
// @TODO refactor backend
|
|
16932
16723
|
return this.http.get(`${this.environment.apiV2}/properties/categories/equity`)
|
|
16933
|
-
.pipe(map((response) => {
|
|
16934
|
-
|
|
16935
|
-
|
|
16936
|
-
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
value: serie.amount
|
|
16941
|
-
});
|
|
16942
|
-
})
|
|
16943
|
-
});
|
|
16944
|
-
});
|
|
16945
|
-
}));
|
|
16724
|
+
.pipe(map((response) => response.map((item) => plainToClass(ChartData, {
|
|
16725
|
+
name: item.category.name,
|
|
16726
|
+
data: item.equity.map((serie) => plainToClass(ChartSerie, {
|
|
16727
|
+
label: serie.date,
|
|
16728
|
+
value: serie.amount
|
|
16729
|
+
}))
|
|
16730
|
+
}))));
|
|
16946
16731
|
}
|
|
16947
16732
|
}
|
|
16948
|
-
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16949
|
-
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16733
|
+
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16734
|
+
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
|
|
16735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, decorators: [{
|
|
16951
16736
|
type: Injectable,
|
|
16952
16737
|
args: [{
|
|
16953
16738
|
providedIn: 'root'
|
|
@@ -16972,9 +16757,7 @@ class PropertyCalculationService {
|
|
|
16972
16757
|
return combineLatest([
|
|
16973
16758
|
transactions$,
|
|
16974
16759
|
depreciations$
|
|
16975
|
-
]).pipe(map(([transactions, depreciations]) =>
|
|
16976
|
-
return this.getTaxPosition(transactions, depreciations);
|
|
16977
|
-
}));
|
|
16760
|
+
]).pipe(map(([transactions, depreciations]) => this.getTaxPosition(transactions, depreciations)));
|
|
16978
16761
|
}
|
|
16979
16762
|
taxPositionGrowth(properties, transactions, depreciations) {
|
|
16980
16763
|
const forecastedTaxPosition = properties.sumBy('forecastedTaxPosition');
|
|
@@ -16989,29 +16772,18 @@ class PropertyCalculationService {
|
|
|
16989
16772
|
properties$,
|
|
16990
16773
|
transactions$,
|
|
16991
16774
|
depreciations$
|
|
16992
|
-
]).pipe(map(([properties, transactions, depreciations]) =>
|
|
16993
|
-
return this.taxPositionGrowth(properties, transactions, depreciations);
|
|
16994
|
-
}));
|
|
16775
|
+
]).pipe(map(([properties, transactions, depreciations]) => this.taxPositionGrowth(properties, transactions, depreciations)));
|
|
16995
16776
|
}
|
|
16996
16777
|
getRentalReturn(properties, transactions) {
|
|
16997
16778
|
return transactions.claimIncome / properties.marketValue;
|
|
16998
16779
|
}
|
|
16999
16780
|
getLoanAmount(properties, bankAccounts, loans) {
|
|
17000
|
-
return properties.items.reduce((totalAmount, property) =>
|
|
17001
|
-
return
|
|
17002
|
-
.reduce((propertyAmount, bankAccount) => {
|
|
17003
|
-
var _a;
|
|
17004
|
-
return propertyAmount + bankAccount.getPropertyPercentage(property.id) * (((_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.amount) || 0);
|
|
17005
|
-
}, 0);
|
|
17006
|
-
}, 0);
|
|
16781
|
+
return properties.items.reduce((totalAmount, property) => totalAmount + bankAccounts.items
|
|
16782
|
+
.reduce((propertyAmount, bankAccount) => { var _a; return propertyAmount + bankAccount.getPropertyPercentage(property.id) * (((_a = loans.getByBankAccountId(bankAccount.id)) === null || _a === void 0 ? void 0 : _a.amount) || 0); }, 0), 0);
|
|
17007
16783
|
}
|
|
17008
16784
|
getLoanValue(properties, bankAccounts) {
|
|
17009
|
-
return properties.items.reduce((totalAmount, property) =>
|
|
17010
|
-
|
|
17011
|
-
.reduce((propertyAmount, bankAccount) => {
|
|
17012
|
-
return propertyAmount + bankAccount.getPropertyBalanceAmount(property.id);
|
|
17013
|
-
}, 0);
|
|
17014
|
-
}, 0);
|
|
16785
|
+
return properties.items.reduce((totalAmount, property) => totalAmount + bankAccounts.items
|
|
16786
|
+
.reduce((propertyAmount, bankAccount) => propertyAmount + bankAccount.getPropertyBalanceAmount(property.id), 0), 0);
|
|
17015
16787
|
}
|
|
17016
16788
|
/**
|
|
17017
16789
|
* LVR
|
|
@@ -17024,9 +16796,7 @@ class PropertyCalculationService {
|
|
|
17024
16796
|
return combineLatest([
|
|
17025
16797
|
properties$,
|
|
17026
16798
|
bankAccounts$
|
|
17027
|
-
]).pipe(map(([properties, bankAccounts]) =>
|
|
17028
|
-
return this.getLvr(properties, bankAccounts);
|
|
17029
|
-
}));
|
|
16799
|
+
]).pipe(map(([properties, bankAccounts]) => this.getLvr(properties, bankAccounts)));
|
|
17030
16800
|
}
|
|
17031
16801
|
getLvrCommencement(properties, loans, bankAccounts) {
|
|
17032
16802
|
// Math abs is required for correct percentage calculation
|
|
@@ -17037,9 +16807,7 @@ class PropertyCalculationService {
|
|
|
17037
16807
|
properties$,
|
|
17038
16808
|
bankAccounts$,
|
|
17039
16809
|
loans$
|
|
17040
|
-
]).pipe(map(([properties, bankAccounts, loans]) =>
|
|
17041
|
-
return this.getLvrCommencement(properties, loans, bankAccounts);
|
|
17042
|
-
}));
|
|
16810
|
+
]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrCommencement(properties, loans, bankAccounts)));
|
|
17043
16811
|
}
|
|
17044
16812
|
getLvrGrowth(properties, bankAccounts, loans) {
|
|
17045
16813
|
const lvr = this.getLvr(properties, bankAccounts);
|
|
@@ -17055,9 +16823,7 @@ class PropertyCalculationService {
|
|
|
17055
16823
|
properties$,
|
|
17056
16824
|
bankAccounts$,
|
|
17057
16825
|
loans$
|
|
17058
|
-
]).pipe(map(([properties, bankAccounts, loans]) =>
|
|
17059
|
-
return this.getLvrGrowth(properties, bankAccounts, loans);
|
|
17060
|
-
}));
|
|
16826
|
+
]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrGrowth(properties, bankAccounts, loans)));
|
|
17061
16827
|
}
|
|
17062
16828
|
/**
|
|
17063
16829
|
* Equity position = Market value - current loan value
|
|
@@ -17121,9 +16887,9 @@ class PropertyCalculationService {
|
|
|
17121
16887
|
}
|
|
17122
16888
|
}
|
|
17123
16889
|
}
|
|
17124
|
-
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17125
|
-
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16890
|
+
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16891
|
+
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
|
|
16892
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, decorators: [{
|
|
17127
16893
|
type: Injectable,
|
|
17128
16894
|
args: [{
|
|
17129
16895
|
providedIn: 'root'
|
|
@@ -17149,9 +16915,7 @@ class PropertyTransactionReportService {
|
|
|
17149
16915
|
this.getTransactions(),
|
|
17150
16916
|
this.getDepreciations(),
|
|
17151
16917
|
this.chartAccountsService.get()
|
|
17152
|
-
]).pipe(map(([properties, transactions, depreciations, chartAccounts]) =>
|
|
17153
|
-
return new CollectionDictionary(this.create(transactions, depreciations, properties, chartAccounts), 'propertyId');
|
|
17154
|
-
}));
|
|
16918
|
+
]).pipe(map(([properties, transactions, depreciations, chartAccounts]) => new CollectionDictionary(this.create(transactions, depreciations, properties, chartAccounts), 'propertyId')));
|
|
17155
16919
|
}
|
|
17156
16920
|
create(transactions, depreciations, properties, chartAccounts) {
|
|
17157
16921
|
return new PropertyReportItemCollection([
|
|
@@ -17163,26 +16927,22 @@ class PropertyTransactionReportService {
|
|
|
17163
16927
|
* Get collection of property transactions
|
|
17164
16928
|
*/
|
|
17165
16929
|
getTransactions() {
|
|
17166
|
-
return this.transactionService.get().pipe(map((transactions) =>
|
|
17167
|
-
|
|
17168
|
-
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property);
|
|
17169
|
-
}));
|
|
16930
|
+
return this.transactionService.get().pipe(map((transactions) => new TransactionCollection(transactions)
|
|
16931
|
+
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)));
|
|
17170
16932
|
}
|
|
17171
16933
|
/**
|
|
17172
16934
|
* Get list of asset & capital property depreciations
|
|
17173
16935
|
*/
|
|
17174
16936
|
getDepreciations() {
|
|
17175
|
-
return this.depreciationService.get().pipe(map((depreciations) =>
|
|
17176
|
-
|
|
17177
|
-
|
|
17178
|
-
|
|
17179
|
-
.getWithoutBorrowingExpenses();
|
|
17180
|
-
}));
|
|
16937
|
+
return this.depreciationService.get().pipe(map((depreciations) => depreciations
|
|
16938
|
+
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)
|
|
16939
|
+
// we don't need borrowing expenses for this report
|
|
16940
|
+
.getWithoutBorrowingExpenses()));
|
|
17181
16941
|
}
|
|
17182
16942
|
}
|
|
17183
|
-
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17184
|
-
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16943
|
+
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16944
|
+
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
|
|
16945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
|
|
17186
16946
|
type: Injectable,
|
|
17187
16947
|
args: [{
|
|
17188
16948
|
providedIn: 'root'
|
|
@@ -17210,9 +16970,7 @@ class TransactionCalculationService {
|
|
|
17210
16970
|
* @TODO Alex: consider to move to collection
|
|
17211
16971
|
*/
|
|
17212
16972
|
getAllocatedTransactions(transactions, allocations) {
|
|
17213
|
-
return new TransactionCollection(transactions.items.filter((transaction) =>
|
|
17214
|
-
return transaction.isAllocated(allocations);
|
|
17215
|
-
}));
|
|
16973
|
+
return new TransactionCollection(transactions.items.filter((transaction) => transaction.isAllocated(allocations)));
|
|
17216
16974
|
}
|
|
17217
16975
|
getUnallocatedInvoices(invoices, allocations) {
|
|
17218
16976
|
return invoices.filter((invoice) => {
|
|
@@ -17252,9 +17010,9 @@ class TransactionCalculationService {
|
|
|
17252
17010
|
return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
|
|
17253
17011
|
}
|
|
17254
17012
|
}
|
|
17255
|
-
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17256
|
-
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
17013
|
+
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17014
|
+
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
|
|
17015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, decorators: [{
|
|
17258
17016
|
type: Injectable,
|
|
17259
17017
|
args: [{
|
|
17260
17018
|
providedIn: 'root'
|
|
@@ -17314,9 +17072,9 @@ class LogbookBestPeriodService {
|
|
|
17314
17072
|
});
|
|
17315
17073
|
}
|
|
17316
17074
|
}
|
|
17317
|
-
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17318
|
-
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
17075
|
+
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17076
|
+
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
|
|
17077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
|
|
17320
17078
|
type: Injectable,
|
|
17321
17079
|
args: [{
|
|
17322
17080
|
providedIn: 'root'
|
|
@@ -17357,9 +17115,9 @@ class XlsxService {
|
|
|
17357
17115
|
return xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
|
|
17358
17116
|
}
|
|
17359
17117
|
}
|
|
17360
|
-
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17361
|
-
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
17118
|
+
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17119
|
+
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, providedIn: 'root' });
|
|
17120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, decorators: [{
|
|
17363
17121
|
type: Injectable,
|
|
17364
17122
|
args: [{
|
|
17365
17123
|
providedIn: 'root'
|
|
@@ -17507,6 +17265,9 @@ class AbstractForm extends UntypedFormGroup {
|
|
|
17507
17265
|
*/
|
|
17508
17266
|
emitValues() {
|
|
17509
17267
|
Object.values(this.controls).forEach((control) => {
|
|
17268
|
+
if ([null, undefined].includes(control.value)) {
|
|
17269
|
+
return;
|
|
17270
|
+
}
|
|
17510
17271
|
control.updateValueAndValidity({ onlySelf: false, emitEvent: true });
|
|
17511
17272
|
});
|
|
17512
17273
|
}
|
|
@@ -17752,7 +17513,7 @@ class LoanForm extends AbstractForm {
|
|
|
17752
17513
|
listenEvents() {
|
|
17753
17514
|
// We need to set term automatically only for bank loans.
|
|
17754
17515
|
// For vehicle loans user should fill it manually with validation depended of frequency
|
|
17755
|
-
if (
|
|
17516
|
+
if (this.loan.bankAccount) {
|
|
17756
17517
|
this.listenTypeChanges();
|
|
17757
17518
|
}
|
|
17758
17519
|
else {
|
|
@@ -17780,7 +17541,7 @@ class LoanForm extends AbstractForm {
|
|
|
17780
17541
|
*/
|
|
17781
17542
|
updateTermValidation() {
|
|
17782
17543
|
// no need terms for bank loans
|
|
17783
|
-
if (
|
|
17544
|
+
if (this.loan.bankAccount) {
|
|
17784
17545
|
return;
|
|
17785
17546
|
}
|
|
17786
17547
|
const currentRepaymentFrequency = this.get('repaymentFrequency').value;
|
|
@@ -17802,10 +17563,8 @@ LoanForm.mortgageLoanTypes = [LoanTypeEnum.MORTGAGE, LoanTypeEnum.HOME_EQUITY_LI
|
|
|
17802
17563
|
* Use with groups of boolean form controls (checkbox, toggle, etc.)
|
|
17803
17564
|
*/
|
|
17804
17565
|
function atLeastOneCheckedValidator() {
|
|
17805
|
-
return (formGroup) =>
|
|
17806
|
-
|
|
17807
|
-
.find((control) => control.value) ? null : { nothingChecked: true };
|
|
17808
|
-
};
|
|
17566
|
+
return (formGroup) => Object.values(formGroup.controls)
|
|
17567
|
+
.find((control) => control.value) ? null : { nothingChecked: true };
|
|
17809
17568
|
}
|
|
17810
17569
|
|
|
17811
17570
|
/**
|
|
@@ -17813,9 +17572,7 @@ function atLeastOneCheckedValidator() {
|
|
|
17813
17572
|
* @TODO Alex: create class AppValidators with static methods and move there all custom validators (line Angular Validators)
|
|
17814
17573
|
*/
|
|
17815
17574
|
function autocompleteValidator() {
|
|
17816
|
-
return (control) => {
|
|
17817
|
-
return (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
|
|
17818
|
-
};
|
|
17575
|
+
return (control) => (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
|
|
17819
17576
|
}
|
|
17820
17577
|
|
|
17821
17578
|
function conditionalValidator(condition, validator) {
|
|
@@ -17915,15 +17672,13 @@ function fieldsSumValidator(field, summary = 100, fieldAlias) {
|
|
|
17915
17672
|
if (fieldsSum <= summary) {
|
|
17916
17673
|
return null;
|
|
17917
17674
|
}
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
|
|
17921
|
-
|
|
17922
|
-
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
-
};
|
|
17926
|
-
}
|
|
17675
|
+
return {
|
|
17676
|
+
fieldsSum: {
|
|
17677
|
+
name: field,
|
|
17678
|
+
alias: fieldAlias,
|
|
17679
|
+
summary
|
|
17680
|
+
}
|
|
17681
|
+
};
|
|
17927
17682
|
};
|
|
17928
17683
|
}
|
|
17929
17684
|
|
|
@@ -17981,12 +17736,10 @@ class FileValidator {
|
|
|
17981
17736
|
class BankAccountPropertiesForm extends UntypedFormArray {
|
|
17982
17737
|
constructor(bankAccountProperties) {
|
|
17983
17738
|
super(((bankAccountProperties === null || bankAccountProperties === void 0 ? void 0 : bankAccountProperties.length) ? bankAccountProperties : [plainToClass(BankAccountProperty, {})])
|
|
17984
|
-
.map((bankAccountProperty) => {
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
});
|
|
17989
|
-
}), [
|
|
17739
|
+
.map((bankAccountProperty) => new UntypedFormGroup({
|
|
17740
|
+
property: new UntypedFormControl(bankAccountProperty === null || bankAccountProperty === void 0 ? void 0 : bankAccountProperty.property, Validators.required),
|
|
17741
|
+
percent: new UntypedFormControl(bankAccountProperty.percent, Validators.required)
|
|
17742
|
+
})), [
|
|
17990
17743
|
conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.PROPERTY, Validators.required),
|
|
17991
17744
|
fieldsSumValidator('percent', 100)
|
|
17992
17745
|
]);
|
|
@@ -18105,12 +17858,10 @@ class SoleBusinessForm extends AbstractForm {
|
|
|
18105
17858
|
class SoleBusinessAllocationsForm extends UntypedFormArray {
|
|
18106
17859
|
constructor(businessAllocations) {
|
|
18107
17860
|
super(((businessAllocations === null || businessAllocations === void 0 ? void 0 : businessAllocations.length) ? businessAllocations : [plainToClass(SoleBusinessAllocation, {})])
|
|
18108
|
-
.map((businessAllocation) => {
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
});
|
|
18113
|
-
}), [
|
|
17861
|
+
.map((businessAllocation) => new UntypedFormGroup({
|
|
17862
|
+
business: new UntypedFormControl(businessAllocation === null || businessAllocation === void 0 ? void 0 : businessAllocation.business, Validators.required),
|
|
17863
|
+
percent: new UntypedFormControl(businessAllocation.percent, Validators.required)
|
|
17864
|
+
})), [
|
|
18114
17865
|
conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.SOLE, Validators.required),
|
|
18115
17866
|
fieldsSumValidator('percent', 100)
|
|
18116
17867
|
]);
|
|
@@ -18589,11 +18340,9 @@ function dateRangeValidator(dateStart, dateEnd) {
|
|
|
18589
18340
|
* Validator check if at least one control in formArray is enabled
|
|
18590
18341
|
*/
|
|
18591
18342
|
function atLeastOneEnabledValidator(arrayName) {
|
|
18592
|
-
return (formGroup) =>
|
|
18593
|
-
|
|
18594
|
-
|
|
18595
|
-
: { arrayControlsDisabled: true };
|
|
18596
|
-
};
|
|
18343
|
+
return (formGroup) => formGroup.get(arrayName).controls.find((control) => control.enabled)
|
|
18344
|
+
? null
|
|
18345
|
+
: { arrayControlsDisabled: true };
|
|
18597
18346
|
}
|
|
18598
18347
|
|
|
18599
18348
|
/**
|
|
@@ -18617,7 +18366,7 @@ class BankAccountsImportForm extends AbstractForm {
|
|
|
18617
18366
|
}
|
|
18618
18367
|
const bankAccounts = [];
|
|
18619
18368
|
// form is valid when all selected bank accounts forms are valid
|
|
18620
|
-
for (
|
|
18369
|
+
for (const bankAccountImportForm of this.get('bankAccounts').controls) {
|
|
18621
18370
|
// skip disabled forms
|
|
18622
18371
|
if (bankAccountImportForm.disabled) {
|
|
18623
18372
|
continue;
|
|
@@ -18714,9 +18463,7 @@ const phonePattern = /^(((\s*)?([- ()]?\d[- ()]?){0,30}(\s*)?)|)$/;
|
|
|
18714
18463
|
* Allowed special symbols"-", "(", ")"
|
|
18715
18464
|
*/
|
|
18716
18465
|
function phoneNumberValidator() {
|
|
18717
|
-
return (control) => {
|
|
18718
|
-
return phonePattern.test(control.value) ? null : { phoneInvalid: true };
|
|
18719
|
-
};
|
|
18466
|
+
return (control) => phonePattern.test(control.value) ? null : { phoneInvalid: true };
|
|
18720
18467
|
}
|
|
18721
18468
|
|
|
18722
18469
|
class PhoneForm extends AbstractForm {
|
|
@@ -20142,7 +19889,7 @@ function checkDividends(metaFields, formGroup) {
|
|
|
20142
19889
|
const frankedAndUnfrankedControls = (formGroup.get('metaFields')).controls
|
|
20143
19890
|
.filter((control) => frankedAndUnfrankedIds.includes(control.get('chartAccountsMetaField').value.id));
|
|
20144
19891
|
const frankedAndUnfrankedAmount = frankedAndUnfrankedControls.reduce((sum, control) => sum + (+control.get('value').value), 0);
|
|
20145
|
-
for (
|
|
19892
|
+
for (const control of frankedAndUnfrankedControls) {
|
|
20146
19893
|
if (control.get('value').value !== null && frankedAndUnfrankedAmount !== amount) {
|
|
20147
19894
|
return { metaFields: `Field ${control.get('chartAccountsMetaField').value.label} is required` };
|
|
20148
19895
|
}
|
|
@@ -20154,12 +19901,10 @@ class WorkTransactionForm extends TransactionForm {
|
|
|
20154
19901
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
|
20155
19902
|
super(transaction, registeredForGst, allocations, Object.assign(controls, {
|
|
20156
19903
|
// additional data related to work (like tax instalments)
|
|
20157
|
-
metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => {
|
|
20158
|
-
|
|
20159
|
-
|
|
20160
|
-
|
|
20161
|
-
});
|
|
20162
|
-
}))
|
|
19904
|
+
metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => new FormGroup({
|
|
19905
|
+
value: new FormControl(transactionMetaField.value),
|
|
19906
|
+
chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
|
|
19907
|
+
})))
|
|
20163
19908
|
}));
|
|
20164
19909
|
this.setValidators(transactionsMetaFieldsValidator());
|
|
20165
19910
|
this.listenEvents();
|
|
@@ -20342,31 +20087,36 @@ class HoldingSaleForm extends AbstractForm {
|
|
|
20342
20087
|
file: new UntypedFormControl(sale.file)
|
|
20343
20088
|
}, sale);
|
|
20344
20089
|
this.holding = holding;
|
|
20345
|
-
if (sale.id) {
|
|
20346
|
-
this.emitValues();
|
|
20347
|
-
}
|
|
20348
20090
|
this.listenEvents();
|
|
20091
|
+
this.emitValues();
|
|
20349
20092
|
}
|
|
20350
20093
|
listenEvents() {
|
|
20351
|
-
this.
|
|
20352
|
-
|
|
20094
|
+
combineLatest(['date', 'price', 'quantity', 'fee'].map((field) => this.get(field).valueChanges))
|
|
20095
|
+
.subscribe(([date, price, quantity, fee]) => {
|
|
20096
|
+
this.updateGainFields(date, price, quantity, fee);
|
|
20097
|
+
});
|
|
20353
20098
|
}
|
|
20354
20099
|
submit() {
|
|
20355
20100
|
return super.submit({}, true);
|
|
20356
20101
|
}
|
|
20357
|
-
|
|
20358
|
-
this.
|
|
20359
|
-
|
|
20360
|
-
|
|
20102
|
+
updateGainFields(date, price, quantity, fee) {
|
|
20103
|
+
const capitalGain = this.calculateGrossCapitalGain(price, quantity, fee);
|
|
20104
|
+
this.get('grossCapitalGain').setValue(capitalGain);
|
|
20105
|
+
this.get('netCapitalGain').setValue(this.calculateNetCapitalGain(capitalGain, date));
|
|
20361
20106
|
}
|
|
20362
|
-
|
|
20363
|
-
this.
|
|
20364
|
-
|
|
20365
|
-
|
|
20107
|
+
calculateGrossCapitalGain(price, quantity, fee) {
|
|
20108
|
+
const capitalGain = (price - this.holding.price) * quantity - this.holding.fee - fee;
|
|
20109
|
+
return capitalGain < 0 ? 0 : capitalGain;
|
|
20110
|
+
}
|
|
20111
|
+
calculateNetCapitalGain(capitalGain, date) {
|
|
20112
|
+
let netCapitalGain = (capitalGain * this.holding.ownershipPercent) / 100;
|
|
20113
|
+
if (this.isOneYearExemptionApplicable(netCapitalGain, date)) {
|
|
20114
|
+
netCapitalGain = netCapitalGain / 2;
|
|
20115
|
+
}
|
|
20116
|
+
return round(netCapitalGain, 2);
|
|
20366
20117
|
}
|
|
20367
|
-
|
|
20368
|
-
|
|
20369
|
-
this.get('netCapitalGain').setValue(this.currentValue.getNetCapitalGain(this.holding));
|
|
20118
|
+
isOneYearExemptionApplicable(netCapitalGain, date) {
|
|
20119
|
+
return netCapitalGain > 0 && moment(date).diff(moment(this.holding.date), 'year') > 0;
|
|
20370
20120
|
}
|
|
20371
20121
|
}
|
|
20372
20122
|
|