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'
|
|
@@ -103,9 +99,7 @@ class CorelogicInterceptor {
|
|
|
103
99
|
return next.handle(request);
|
|
104
100
|
}
|
|
105
101
|
return this.corelogicService.getAccessToken()
|
|
106
|
-
.pipe(mergeMap((token) =>
|
|
107
|
-
return next.handle(this.addToken(request, token));
|
|
108
|
-
}));
|
|
102
|
+
.pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
|
|
109
103
|
}
|
|
110
104
|
addToken(request, token) {
|
|
111
105
|
return request.clone({
|
|
@@ -115,9 +109,9 @@ class CorelogicInterceptor {
|
|
|
115
109
|
});
|
|
116
110
|
}
|
|
117
111
|
}
|
|
118
|
-
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
119
|
-
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
112
|
+
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 });
|
|
113
|
+
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor });
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CorelogicInterceptor, decorators: [{
|
|
121
115
|
type: Injectable
|
|
122
116
|
}], ctorParameters: function () { return [{ type: CorelogicService }, { type: undefined, decorators: [{
|
|
123
117
|
type: Inject,
|
|
@@ -154,9 +148,9 @@ class FinancialYearInterceptor {
|
|
|
154
148
|
return next.handle(clonedReq);
|
|
155
149
|
}
|
|
156
150
|
}
|
|
157
|
-
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
158
|
-
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
151
|
+
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
152
|
+
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor });
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
|
|
160
154
|
type: Injectable
|
|
161
155
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
162
156
|
type: Inject,
|
|
@@ -454,9 +448,7 @@ __decorate([
|
|
|
454
448
|
__decorate([
|
|
455
449
|
Exclude({ toPlainOnly: true }),
|
|
456
450
|
Type(() => Object),
|
|
457
|
-
Transform(({ obj }) =>
|
|
458
|
-
return obj.file;
|
|
459
|
-
})
|
|
451
|
+
Transform(({ obj }) => obj.file)
|
|
460
452
|
], TransactionBase.prototype, "file", void 0);
|
|
461
453
|
__decorate([
|
|
462
454
|
Exclude()
|
|
@@ -1280,7 +1272,6 @@ class ExportableCollection extends Collection {
|
|
|
1280
1272
|
getExportFooter(type) {
|
|
1281
1273
|
return [];
|
|
1282
1274
|
}
|
|
1283
|
-
;
|
|
1284
1275
|
export(type) {
|
|
1285
1276
|
return plainToClass(ExportDataTable, {
|
|
1286
1277
|
header: this.getExportHeader(type),
|
|
@@ -1319,26 +1310,22 @@ class LoanPaymentCollection extends ExportableCollection {
|
|
|
1319
1310
|
];
|
|
1320
1311
|
}
|
|
1321
1312
|
getExportBody() {
|
|
1322
|
-
return this.items.map((payment) =>
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
];
|
|
1332
|
-
});
|
|
1313
|
+
return this.items.map((payment) => [
|
|
1314
|
+
plainToClass(ExportCell, { value: payment.number, type: ExportCellTypeEnum.STRING }),
|
|
1315
|
+
plainToClass(ExportCell, { value: payment.date, type: ExportCellTypeEnum.DATE }),
|
|
1316
|
+
plainToClass(ExportCell, { value: payment.paymentDue, type: ExportCellTypeEnum.CURRENCY }),
|
|
1317
|
+
plainToClass(ExportCell, { value: payment.interestAccrued, type: ExportCellTypeEnum.CURRENCY }),
|
|
1318
|
+
plainToClass(ExportCell, { value: payment.principalPaid, type: ExportCellTypeEnum.CURRENCY }),
|
|
1319
|
+
plainToClass(ExportCell, { value: payment.principalBalance, type: ExportCellTypeEnum.CURRENCY }),
|
|
1320
|
+
plainToClass(ExportCell, { value: payment.payout, type: ExportCellTypeEnum.CURRENCY }),
|
|
1321
|
+
]);
|
|
1333
1322
|
}
|
|
1334
1323
|
get paymentDue() {
|
|
1335
1324
|
return this.sumBy('paymentDue');
|
|
1336
1325
|
}
|
|
1337
1326
|
getByFinYear(finYear = new FinancialYear()) {
|
|
1338
|
-
return this.filter((payment) =>
|
|
1339
|
-
|
|
1340
|
-
new Date(payment.date) <= finYear.endDate;
|
|
1341
|
-
});
|
|
1327
|
+
return this.filter((payment) => new Date(payment.date) >= finYear.startDate &&
|
|
1328
|
+
new Date(payment.date) <= finYear.endDate);
|
|
1342
1329
|
}
|
|
1343
1330
|
getForCurrentYear() {
|
|
1344
1331
|
return this.getByFinYear(new FinancialYear());
|
|
@@ -1577,9 +1564,7 @@ var ServiceSubscriptionStatusEnum;
|
|
|
1577
1564
|
|
|
1578
1565
|
class MessageCollection extends Collection {
|
|
1579
1566
|
getFirstUnreadMessage(user) {
|
|
1580
|
-
return this.items.find((message) =>
|
|
1581
|
-
return !message.isRead() && message.isFromEmployee() !== user.isEmployee();
|
|
1582
|
-
});
|
|
1567
|
+
return this.items.find((message) => !message.isRead() && message.isFromEmployee() !== user.isEmployee());
|
|
1583
1568
|
}
|
|
1584
1569
|
/**
|
|
1585
1570
|
* Get List of unread chats
|
|
@@ -1777,9 +1762,7 @@ class PropertyCollection extends Collection {
|
|
|
1777
1762
|
return new PropertyCollection(this.items.filter((property) => property.category.isOwnerOccupied()));
|
|
1778
1763
|
}
|
|
1779
1764
|
get earliestContractDate() {
|
|
1780
|
-
return this.items.reduce((min, property) =>
|
|
1781
|
-
return min < property.contractDate ? min : property.contractDate;
|
|
1782
|
-
}, new FinancialYear(new Date()).startDate);
|
|
1765
|
+
return this.items.reduce((min, property) => min < property.contractDate ? min : property.contractDate, new FinancialYear(new Date()).startDate);
|
|
1783
1766
|
}
|
|
1784
1767
|
/**
|
|
1785
1768
|
* Get list of unique property categories from collection
|
|
@@ -1791,9 +1774,7 @@ class PropertyCollection extends Collection {
|
|
|
1791
1774
|
* Get property with the highest growth percent
|
|
1792
1775
|
*/
|
|
1793
1776
|
getBestPerformanceGrowthProperty() {
|
|
1794
|
-
return this.items.reduce((max, current) =>
|
|
1795
|
-
return max.growthPercent < current.growthPercent ? current : max;
|
|
1796
|
-
}, this.first);
|
|
1777
|
+
return this.items.reduce((max, current) => max.growthPercent < current.growthPercent ? current : max, this.first);
|
|
1797
1778
|
}
|
|
1798
1779
|
/**
|
|
1799
1780
|
* Get property with the lowest tax position
|
|
@@ -1833,9 +1814,7 @@ class PropertyCategoryMovementCollection extends Collection {
|
|
|
1833
1814
|
*/
|
|
1834
1815
|
getByForecast(property, forecast) {
|
|
1835
1816
|
const financialYear = new FinancialYear(forecast.financialYear);
|
|
1836
|
-
return this.filterBy('property.id', property.id).filter((movement) =>
|
|
1837
|
-
return movement.fromDate <= financialYear.endDate && !movement.toDate || movement.toDate >= financialYear.startDate;
|
|
1838
|
-
});
|
|
1817
|
+
return this.filterBy('property.id', property.id).filter((movement) => movement.fromDate <= financialYear.endDate && !movement.toDate || movement.toDate >= financialYear.startDate);
|
|
1839
1818
|
}
|
|
1840
1819
|
hasCategory(categoryId) {
|
|
1841
1820
|
return !!this.findBy('propertyCategory.id', categoryId);
|
|
@@ -1849,9 +1828,7 @@ class PropertyShareCollection extends Collection {
|
|
|
1849
1828
|
* @TODO Alex: rename
|
|
1850
1829
|
*/
|
|
1851
1830
|
getIncoming() {
|
|
1852
|
-
return this.filter((propertyShare) =>
|
|
1853
|
-
return propertyShare.user?.isLoggedIn() && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId');
|
|
1854
|
-
});
|
|
1831
|
+
return this.filter((propertyShare) => propertyShare.user?.isLoggedIn() && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId'));
|
|
1855
1832
|
}
|
|
1856
1833
|
/**
|
|
1857
1834
|
* Get list of outcoming property shares
|
|
@@ -3263,7 +3240,6 @@ class SoleForecast extends SoleForecast$1 {
|
|
|
3263
3240
|
get netPay() {
|
|
3264
3241
|
return this.amount;
|
|
3265
3242
|
}
|
|
3266
|
-
;
|
|
3267
3243
|
}
|
|
3268
3244
|
__decorate([
|
|
3269
3245
|
Type(() => IncomeSource)
|
|
@@ -3454,33 +3430,23 @@ __decorate([
|
|
|
3454
3430
|
Type(() => ChartAccounts)
|
|
3455
3431
|
// @TODO Alex: Create custom decorator for this transform
|
|
3456
3432
|
,
|
|
3457
|
-
Transform(({ value }) => {
|
|
3458
|
-
return { id: value.id };
|
|
3459
|
-
}, { toPlainOnly: true })
|
|
3433
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
3460
3434
|
], AllocationRuleTransaction.prototype, "chartAccounts", void 0);
|
|
3461
3435
|
__decorate([
|
|
3462
3436
|
Type(() => Property),
|
|
3463
|
-
Transform(({ value }) => {
|
|
3464
|
-
return value ? { id: value.id } : null;
|
|
3465
|
-
}, { toPlainOnly: true })
|
|
3437
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3466
3438
|
], AllocationRuleTransaction.prototype, "property", void 0);
|
|
3467
3439
|
__decorate([
|
|
3468
3440
|
Type(() => Loan),
|
|
3469
|
-
Transform(({ value }) => {
|
|
3470
|
-
return value ? { id: value.id } : null;
|
|
3471
|
-
}, { toPlainOnly: true })
|
|
3441
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3472
3442
|
], AllocationRuleTransaction.prototype, "loan", void 0);
|
|
3473
3443
|
__decorate([
|
|
3474
3444
|
Type(() => IncomeSource),
|
|
3475
|
-
Transform(({ value }) => {
|
|
3476
|
-
return value ? { id: value.id } : null;
|
|
3477
|
-
}, { toPlainOnly: true })
|
|
3445
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3478
3446
|
], AllocationRuleTransaction.prototype, "incomeSource", void 0);
|
|
3479
3447
|
__decorate([
|
|
3480
3448
|
Type(() => SoleBusiness),
|
|
3481
|
-
Transform(({ value }) => {
|
|
3482
|
-
return value ? { id: value.id } : null;
|
|
3483
|
-
}, { toPlainOnly: true })
|
|
3449
|
+
Transform(({ value }) => value ? { id: value.id } : null, { toPlainOnly: true })
|
|
3484
3450
|
], AllocationRuleTransaction.prototype, "business", void 0);
|
|
3485
3451
|
__decorate([
|
|
3486
3452
|
Type(() => AllocationRuleTransactionMetaField)
|
|
@@ -3557,7 +3523,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3557
3523
|
* Rule is matched when all conditions matched
|
|
3558
3524
|
*/
|
|
3559
3525
|
checkAnd(bankTransaction) {
|
|
3560
|
-
for (
|
|
3526
|
+
for (const condition of this.conditions) {
|
|
3561
3527
|
if (!condition.matchBankTransaction(bankTransaction)) {
|
|
3562
3528
|
return false;
|
|
3563
3529
|
}
|
|
@@ -3568,7 +3534,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3568
3534
|
* Rule is matched when at least one condition matched
|
|
3569
3535
|
*/
|
|
3570
3536
|
checkOr(bankTransaction) {
|
|
3571
|
-
for (
|
|
3537
|
+
for (const condition of this.conditions) {
|
|
3572
3538
|
if (condition.matchBankTransaction(bankTransaction)) {
|
|
3573
3539
|
return true;
|
|
3574
3540
|
}
|
|
@@ -3600,7 +3566,7 @@ class AllocationRule extends AllocationRule$1 {
|
|
|
3600
3566
|
}
|
|
3601
3567
|
__decorate([
|
|
3602
3568
|
Type(() => BankAccount),
|
|
3603
|
-
Transform(({ value }) => {
|
|
3569
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
3604
3570
|
], AllocationRule.prototype, "bankAccount", void 0);
|
|
3605
3571
|
__decorate([
|
|
3606
3572
|
Type(() => AllocationRuleCondition)
|
|
@@ -3992,12 +3958,8 @@ class PropertyEquityChartData {
|
|
|
3992
3958
|
const items = this.list.filter((item) => item.year <= this.currentYear);
|
|
3993
3959
|
items.forEach((item) => {
|
|
3994
3960
|
// increase item values with property actual forecasts for item year
|
|
3995
|
-
item.marketValue = this.properties.items.reduce((sum, property) =>
|
|
3996
|
-
|
|
3997
|
-
}, 0);
|
|
3998
|
-
item.loanBalance = Math.abs(this.properties.items.reduce((sum, property) => {
|
|
3999
|
-
return sum + this.getLoanBalanceForPropertyByYear(property, item.year);
|
|
4000
|
-
}, 0));
|
|
3961
|
+
item.marketValue = this.properties.items.reduce((sum, property) => sum + this.getMarketValueForPropertyByYear(property, item.year), 0);
|
|
3962
|
+
item.loanBalance = Math.abs(this.properties.items.reduce((sum, property) => sum + this.getLoanBalanceForPropertyByYear(property, item.year), 0));
|
|
4001
3963
|
});
|
|
4002
3964
|
}
|
|
4003
3965
|
/**
|
|
@@ -4007,9 +3969,7 @@ class PropertyEquityChartData {
|
|
|
4007
3969
|
buildActualItem() {
|
|
4008
3970
|
const item = this.list.find((i) => i.year === this.currentYear);
|
|
4009
3971
|
item.marketValue = this.properties.marketValue;
|
|
4010
|
-
item.loanBalance = this.properties.items.reduce((sum, property) =>
|
|
4011
|
-
return sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id));
|
|
4012
|
-
}, 0);
|
|
3972
|
+
item.loanBalance = this.properties.items.reduce((sum, property) => sum + Math.abs(this.bankAccounts.getPropertyBalanceAmount(property.id)), 0);
|
|
4013
3973
|
}
|
|
4014
3974
|
/**
|
|
4015
3975
|
* collect equity position items with forecasted (future) calculated values
|
|
@@ -4041,9 +4001,7 @@ class PropertyEquityChartData {
|
|
|
4041
4001
|
* @private
|
|
4042
4002
|
*/
|
|
4043
4003
|
getLoanBalanceByYear(property, year, bankAccounts, loans) {
|
|
4044
|
-
return bankAccounts.items.reduce((totalSum, bankAccount) =>
|
|
4045
|
-
return totalSum + (bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.getLastPaymentByYear(year)?.totalOwed || 0));
|
|
4046
|
-
}, 0);
|
|
4004
|
+
return bankAccounts.items.reduce((totalSum, bankAccount) => totalSum + (bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.getLastPaymentByYear(year)?.totalOwed || 0)), 0);
|
|
4047
4005
|
}
|
|
4048
4006
|
getMarketValueForPropertyByYear(property, year) {
|
|
4049
4007
|
if (new FinancialYear(property.contractDate).year > year) {
|
|
@@ -5077,9 +5035,7 @@ class Transaction extends Transaction$1 {
|
|
|
5077
5035
|
* @Todo modify 'metaFields' property from array to Collection
|
|
5078
5036
|
*/
|
|
5079
5037
|
getMetaFieldValue(field) {
|
|
5080
|
-
return +this.metaFields.find((transactionMetaField) =>
|
|
5081
|
-
return transactionMetaField.chartAccountsMetaField.id === field;
|
|
5082
|
-
})?.value || 0;
|
|
5038
|
+
return +this.metaFields.find((transactionMetaField) => transactionMetaField.chartAccountsMetaField.id === field)?.value || 0;
|
|
5083
5039
|
}
|
|
5084
5040
|
isCash() {
|
|
5085
5041
|
return this.source === TransactionSourceEnum.CASH;
|
|
@@ -5270,9 +5226,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
5270
5226
|
* @TODO Vik: Research a problem with depreciations without current year forecast
|
|
5271
5227
|
*/
|
|
5272
5228
|
get currentYearForecast() {
|
|
5273
|
-
return this.forecasts.find((forecast) => {
|
|
5274
|
-
return forecast.financialYear === new FinancialYear().year;
|
|
5275
|
-
}) || plainToClass(DepreciationForecast, {
|
|
5229
|
+
return this.forecasts.find((forecast) => forecast.financialYear === new FinancialYear().year) || plainToClass(DepreciationForecast, {
|
|
5276
5230
|
financialYear: new FinancialYear().year,
|
|
5277
5231
|
openBalance: 0,
|
|
5278
5232
|
closeBalance: 0,
|
|
@@ -5281,9 +5235,7 @@ class Depreciation extends Depreciation$1 {
|
|
|
5281
5235
|
});
|
|
5282
5236
|
}
|
|
5283
5237
|
getForecastByYear(year) {
|
|
5284
|
-
return this.forecasts.find((forecast) =>
|
|
5285
|
-
return forecast.financialYear === year;
|
|
5286
|
-
});
|
|
5238
|
+
return this.forecasts.find((forecast) => forecast.financialYear === year);
|
|
5287
5239
|
}
|
|
5288
5240
|
getClaimAmountByYear(year) {
|
|
5289
5241
|
return this.getForecastByYear(year)?.claimAmount || 0;
|
|
@@ -5428,14 +5380,10 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5428
5380
|
return this.sumBy('amount');
|
|
5429
5381
|
}
|
|
5430
5382
|
getUnallocated(allocations) {
|
|
5431
|
-
return new TransactionCollection(this.items.filter((transaction) =>
|
|
5432
|
-
return !transaction.isAllocated(allocations);
|
|
5433
|
-
}));
|
|
5383
|
+
return new TransactionCollection(this.items.filter((transaction) => !transaction.isAllocated(allocations)));
|
|
5434
5384
|
}
|
|
5435
5385
|
getUnallocatedAmount(allocations) {
|
|
5436
|
-
return this.items.reduce((sum, transaction) =>
|
|
5437
|
-
return sum + transaction.getUnallocatedAmount(allocations.filterBy('transaction.id', transaction.id));
|
|
5438
|
-
}, 0);
|
|
5386
|
+
return this.items.reduce((sum, transaction) => sum + transaction.getUnallocatedAmount(allocations.filterBy('transaction.id', transaction.id)), 0);
|
|
5439
5387
|
}
|
|
5440
5388
|
/**
|
|
5441
5389
|
* get date of the last transaction
|
|
@@ -5495,9 +5443,7 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5495
5443
|
* @param ids Ids of properties for filter
|
|
5496
5444
|
*/
|
|
5497
5445
|
getByPropertiesIds(ids) {
|
|
5498
|
-
return new TransactionCollection(this.items.filter((transaction) =>
|
|
5499
|
-
return ids.includes(transaction.property?.id);
|
|
5500
|
-
}));
|
|
5446
|
+
return new TransactionCollection(this.items.filter((transaction) => ids.includes(transaction.property?.id)));
|
|
5501
5447
|
}
|
|
5502
5448
|
/**
|
|
5503
5449
|
* Get new collection filtered by income source id
|
|
@@ -5532,9 +5478,7 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5532
5478
|
* Get transactions related to Vehicle category
|
|
5533
5479
|
*/
|
|
5534
5480
|
getVehicleTransactions() {
|
|
5535
|
-
return this.create(this.items.filter((transaction) =>
|
|
5536
|
-
return transaction.isVehicleTransaction();
|
|
5537
|
-
}));
|
|
5481
|
+
return this.create(this.items.filter((transaction) => transaction.isVehicleTransaction()));
|
|
5538
5482
|
}
|
|
5539
5483
|
/**
|
|
5540
5484
|
* Get new transaction collection filtered by tank type
|
|
@@ -5566,14 +5510,12 @@ class TransactionCollection extends ExportableCollection {
|
|
|
5566
5510
|
];
|
|
5567
5511
|
}
|
|
5568
5512
|
getExportBody() {
|
|
5569
|
-
return this.items.map((transaction) =>
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
];
|
|
5576
|
-
});
|
|
5513
|
+
return this.items.map((transaction) => [
|
|
5514
|
+
plainToClass(ExportCell, { value: transaction.date, type: ExportCellTypeEnum.DATE }),
|
|
5515
|
+
plainToClass(ExportCell, { value: transaction.description, type: ExportCellTypeEnum.STRING }),
|
|
5516
|
+
plainToClass(ExportCell, { value: transaction.debit, type: ExportCellTypeEnum.CURRENCY }),
|
|
5517
|
+
plainToClass(ExportCell, { value: transaction.credit, type: ExportCellTypeEnum.CURRENCY })
|
|
5518
|
+
]);
|
|
5577
5519
|
}
|
|
5578
5520
|
/**
|
|
5579
5521
|
* Get list of vehicle transactions filtered by vehicle claim
|
|
@@ -5693,29 +5635,19 @@ class DepreciationCollection extends Collection {
|
|
|
5693
5635
|
return this.items.reduce((sum, depreciation) => sum + depreciation.amount, 0);
|
|
5694
5636
|
}
|
|
5695
5637
|
get claimAmount() {
|
|
5696
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5697
|
-
return sum + depreciation.currentYearForecast.claimAmount;
|
|
5698
|
-
}, 0);
|
|
5638
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.claimAmount, 0);
|
|
5699
5639
|
}
|
|
5700
5640
|
getClaimedAmountByYear(year = +localStorage.getItem('financialYear')) {
|
|
5701
|
-
return +Math.round(this.amount - this.items.reduce((sum, depreciation) =>
|
|
5702
|
-
return sum + depreciation.getCloseBalanceByYear(year);
|
|
5703
|
-
}, 0)).toFixed(2);
|
|
5641
|
+
return +Math.round(this.amount - this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0)).toFixed(2);
|
|
5704
5642
|
}
|
|
5705
5643
|
getClaimAmountByYear(year = +localStorage.getItem('financialYear')) {
|
|
5706
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5707
|
-
return sum + depreciation.getClaimAmountByYear(year);
|
|
5708
|
-
}, 0);
|
|
5644
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.getClaimAmountByYear(year), 0);
|
|
5709
5645
|
}
|
|
5710
5646
|
getCloseBalanceByYear(year = +localStorage.getItem('financialYear')) {
|
|
5711
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5712
|
-
return sum + depreciation.getCloseBalanceByYear(year);
|
|
5713
|
-
}, 0);
|
|
5647
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.getCloseBalanceByYear(year), 0);
|
|
5714
5648
|
}
|
|
5715
5649
|
getCurrentYearForecastAmount() {
|
|
5716
|
-
return this.items.reduce((sum, depreciation) =>
|
|
5717
|
-
return sum + depreciation.currentYearForecast.amount;
|
|
5718
|
-
}, 0);
|
|
5650
|
+
return this.items.reduce((sum, depreciation) => sum + depreciation.currentYearForecast.amount, 0);
|
|
5719
5651
|
}
|
|
5720
5652
|
get closeBalance() {
|
|
5721
5653
|
return this.sumBy('currentYearForecast.closeBalance');
|
|
@@ -5757,9 +5689,7 @@ class DepreciationCollection extends Collection {
|
|
|
5757
5689
|
return this.filter((depreciation) => depreciation.isSBP());
|
|
5758
5690
|
}
|
|
5759
5691
|
getCapitalProjects() {
|
|
5760
|
-
return uniqBy(compact(this.items.map((depreciation) =>
|
|
5761
|
-
return depreciation.depreciationCapitalProject;
|
|
5762
|
-
})), 'id');
|
|
5692
|
+
return uniqBy(compact(this.items.map((depreciation) => depreciation.depreciationCapitalProject)), 'id');
|
|
5763
5693
|
}
|
|
5764
5694
|
/**
|
|
5765
5695
|
* Get a new collection of depreciations related to vehicles
|
|
@@ -5838,9 +5768,7 @@ class DepreciationReportItemCollection extends DepreciationCollection {
|
|
|
5838
5768
|
* Create new collection from provided depreciations list
|
|
5839
5769
|
*/
|
|
5840
5770
|
static fromDepreciations(deprectiations) {
|
|
5841
|
-
return new DepreciationReportItemCollection(deprectiations.map((depreciation) =>
|
|
5842
|
-
return plainToClass(DepreciationReportItem, depreciation);
|
|
5843
|
-
}));
|
|
5771
|
+
return new DepreciationReportItemCollection(deprectiations.map((depreciation) => plainToClass(DepreciationReportItem, depreciation)));
|
|
5844
5772
|
}
|
|
5845
5773
|
}
|
|
5846
5774
|
|
|
@@ -5973,9 +5901,7 @@ class VehicleExpenseCollection extends Collection {
|
|
|
5973
5901
|
setItems(transactions, depreciations, vehicleClaim) {
|
|
5974
5902
|
this.items = [];
|
|
5975
5903
|
const transactionsByChartAccounts = new CollectionDictionary(transactions, 'chartAccounts.name');
|
|
5976
|
-
const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) =>
|
|
5977
|
-
return new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName);
|
|
5978
|
-
});
|
|
5904
|
+
const transactionExpenses = transactionsByChartAccounts.keys.map((chartAccountsName) => new VehicleExpense(transactionsByChartAccounts.get(chartAccountsName).amount, vehicleClaim.workUsage, chartAccountsName));
|
|
5979
5905
|
// group all depreciations into one expense item
|
|
5980
5906
|
const depreciationExpense = new VehicleExpense(depreciations.getCurrentYearForecastAmount(), vehicleClaim.workUsage, 'Depreciation');
|
|
5981
5907
|
this.items.push(...[depreciationExpense, ...transactionExpenses]);
|
|
@@ -6189,14 +6115,10 @@ class ServiceSubscriptionCollection extends Collection {
|
|
|
6189
6115
|
return dictionary;
|
|
6190
6116
|
}
|
|
6191
6117
|
findByProduct(product) {
|
|
6192
|
-
return this.find((subscription) =>
|
|
6193
|
-
return !!subscription.items.find((item) => item.price.product.id === product.id);
|
|
6194
|
-
});
|
|
6118
|
+
return this.find((subscription) => !!subscription.items.find((item) => item.price.product.id === product.id));
|
|
6195
6119
|
}
|
|
6196
6120
|
filterByProduct(product) {
|
|
6197
|
-
return this.filter((subscription) =>
|
|
6198
|
-
return !!subscription.items.find((item) => item.price.product.id === product.id);
|
|
6199
|
-
});
|
|
6121
|
+
return this.filter((subscription) => !!subscription.items.find((item) => item.price.product.id === product.id));
|
|
6200
6122
|
}
|
|
6201
6123
|
hasPropertyTank() {
|
|
6202
6124
|
return !!this.getItems().propertiesItem;
|
|
@@ -6212,8 +6134,8 @@ class ReportItemCollection extends Collection {
|
|
|
6212
6134
|
* Search items which has details
|
|
6213
6135
|
*/
|
|
6214
6136
|
getBySection(section) {
|
|
6215
|
-
|
|
6216
|
-
for (
|
|
6137
|
+
const result = [];
|
|
6138
|
+
for (const reportItem of this.items) {
|
|
6217
6139
|
if ((reportItem.details.length || reportItem.amount) && reportItem.taxReturnCategory.section === section) {
|
|
6218
6140
|
result.push(reportItem);
|
|
6219
6141
|
}
|
|
@@ -6224,8 +6146,8 @@ class ReportItemCollection extends Collection {
|
|
|
6224
6146
|
return this.create(result);
|
|
6225
6147
|
}
|
|
6226
6148
|
getByCategory(categoryId) {
|
|
6227
|
-
|
|
6228
|
-
for (
|
|
6149
|
+
const result = [];
|
|
6150
|
+
for (const reportItem of this.items) {
|
|
6229
6151
|
if (reportItem.taxReturnCategory.id === categoryId) {
|
|
6230
6152
|
result.push(reportItem);
|
|
6231
6153
|
}
|
|
@@ -6240,7 +6162,7 @@ class ReportItemCollection extends Collection {
|
|
|
6240
6162
|
*/
|
|
6241
6163
|
findByCategory(categoryId) {
|
|
6242
6164
|
let result;
|
|
6243
|
-
for (
|
|
6165
|
+
for (const reportItem of this.items) {
|
|
6244
6166
|
if (result) {
|
|
6245
6167
|
break;
|
|
6246
6168
|
}
|
|
@@ -6289,8 +6211,8 @@ class ReportItemCollection extends Collection {
|
|
|
6289
6211
|
* @TODO Alex: consider to create and move to ReportItemDetailsCollection
|
|
6290
6212
|
*/
|
|
6291
6213
|
getDetailsByIncomeSource(incomeSource) {
|
|
6292
|
-
|
|
6293
|
-
for (
|
|
6214
|
+
const result = [];
|
|
6215
|
+
for (const reportItem of this.items) {
|
|
6294
6216
|
if (reportItem.details.length) {
|
|
6295
6217
|
result.push(...reportItem.details.filter((details) => details.name === incomeSource.name));
|
|
6296
6218
|
}
|
|
@@ -6648,46 +6570,32 @@ class BankAccountCollection extends Collection {
|
|
|
6648
6570
|
*/
|
|
6649
6571
|
getInitialLoanAmount() {
|
|
6650
6572
|
return this.getByType(TYPE_LOAN)
|
|
6651
|
-
.reduce((sum, bankAccount) =>
|
|
6652
|
-
return sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0;
|
|
6653
|
-
}, 0);
|
|
6573
|
+
.reduce((sum, bankAccount) => sum += bankAccount.balances.length ? bankAccount.getOpeningBalance() : 0, 0);
|
|
6654
6574
|
}
|
|
6655
6575
|
/**
|
|
6656
6576
|
* get amount of current loans
|
|
6657
6577
|
*/
|
|
6658
6578
|
getCurrentLoanAmount() {
|
|
6659
6579
|
return this.getByType(TYPE_LOAN)
|
|
6660
|
-
.reduce((sum, bankAccount) =>
|
|
6661
|
-
return sum += bankAccount.currentBalance;
|
|
6662
|
-
}, 0);
|
|
6580
|
+
.reduce((sum, bankAccount) => sum += bankAccount.currentBalance, 0);
|
|
6663
6581
|
}
|
|
6664
6582
|
/**
|
|
6665
6583
|
* get collection filtered by property id
|
|
6666
6584
|
*/
|
|
6667
6585
|
getByPropertyId(id) {
|
|
6668
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6669
|
-
return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
|
|
6670
|
-
return bankAccountProperty.property.id === id;
|
|
6671
|
-
});
|
|
6672
|
-
}));
|
|
6586
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.bankAccountProperties.find((bankAccountProperty) => bankAccountProperty.property.id === id)));
|
|
6673
6587
|
}
|
|
6674
6588
|
/**
|
|
6675
6589
|
* get collection filtered by properties ids
|
|
6676
6590
|
*/
|
|
6677
6591
|
getByPropertiesIds(ids) {
|
|
6678
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6679
|
-
return bankAccount.bankAccountProperties.find((bankAccountProperty) => {
|
|
6680
|
-
return ids.includes(bankAccountProperty.property.id);
|
|
6681
|
-
});
|
|
6682
|
-
}));
|
|
6592
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.bankAccountProperties.find((bankAccountProperty) => ids.includes(bankAccountProperty.property.id))));
|
|
6683
6593
|
}
|
|
6684
6594
|
/**
|
|
6685
6595
|
* get collection of active bank accounts
|
|
6686
6596
|
*/
|
|
6687
6597
|
getActiveBankAccounts() {
|
|
6688
|
-
return new BankAccountCollection(this.items.filter((bankAccount) =>
|
|
6689
|
-
return bankAccount.isActive();
|
|
6690
|
-
}));
|
|
6598
|
+
return new BankAccountCollection(this.items.filter((bankAccount) => bankAccount.isActive()));
|
|
6691
6599
|
}
|
|
6692
6600
|
/**
|
|
6693
6601
|
* get reduction of loan (reduction of principle) percentage
|
|
@@ -6737,22 +6645,16 @@ class BankAccountCollection extends Collection {
|
|
|
6737
6645
|
* Get list of all bank account properties
|
|
6738
6646
|
*/
|
|
6739
6647
|
getBankAccountPropertiesList() {
|
|
6740
|
-
return flatten(this.items.map((bankAccount) =>
|
|
6741
|
-
return bankAccount.bankAccountProperties;
|
|
6742
|
-
}));
|
|
6648
|
+
return flatten(this.items.map((bankAccount) => bankAccount.bankAccountProperties));
|
|
6743
6649
|
}
|
|
6744
6650
|
/**
|
|
6745
6651
|
* Get lis of unique properties from all bank accounts properties
|
|
6746
6652
|
*/
|
|
6747
6653
|
getProperties() {
|
|
6748
|
-
return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) =>
|
|
6749
|
-
return bankAccountProperty.property;
|
|
6750
|
-
}), 'id');
|
|
6654
|
+
return uniqBy(this.getBankAccountPropertiesList().map((bankAccountProperty) => bankAccountProperty.property), 'id');
|
|
6751
6655
|
}
|
|
6752
6656
|
getPropertyBalanceAmount(propertyId) {
|
|
6753
|
-
return this.items.reduce((sum, bankAccount) =>
|
|
6754
|
-
return sum + bankAccount.getPropertyBalanceAmount(propertyId);
|
|
6755
|
-
}, 0);
|
|
6657
|
+
return this.items.reduce((sum, bankAccount) => sum + bankAccount.getPropertyBalanceAmount(propertyId), 0);
|
|
6756
6658
|
}
|
|
6757
6659
|
getOwn() {
|
|
6758
6660
|
// TODO Alex/Vik: maybe we should get it from jwtToken or think about some localStorageService?
|
|
@@ -6830,10 +6732,8 @@ class BankTransactionCollection extends Collection {
|
|
|
6830
6732
|
* Find Bank Transaction available for transfer
|
|
6831
6733
|
*/
|
|
6832
6734
|
findTransfer(bankTransaction) {
|
|
6833
|
-
return this.items.find((item) =>
|
|
6834
|
-
|
|
6835
|
-
Math.abs(bankTransaction.date.getTime() - item.date.getTime()) < TRANSACTION_TRANSFER_DELAY;
|
|
6836
|
-
});
|
|
6735
|
+
return this.items.find((item) => item.amount + bankTransaction.amount === 0 &&
|
|
6736
|
+
Math.abs(bankTransaction.date.getTime() - item.date.getTime()) < TRANSACTION_TRANSFER_DELAY);
|
|
6837
6737
|
}
|
|
6838
6738
|
/**
|
|
6839
6739
|
* Group bank transactions by transaction id.
|
|
@@ -7061,12 +6961,10 @@ class TaxReviewCollection extends Collection {
|
|
|
7061
6961
|
*/
|
|
7062
6962
|
getInWork() {
|
|
7063
6963
|
return this.items
|
|
7064
|
-
.filter((taxReview) =>
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
taxReview.isApproved();
|
|
7069
|
-
});
|
|
6964
|
+
.filter((taxReview) => taxReview.isInProgress() ||
|
|
6965
|
+
taxReview.isWaitingForClient() ||
|
|
6966
|
+
taxReview.isWaitingForApproval() ||
|
|
6967
|
+
taxReview.isApproved());
|
|
7070
6968
|
}
|
|
7071
6969
|
/**
|
|
7072
6970
|
* Get percentage of completed reviews of the total review amount
|
|
@@ -7163,7 +7061,7 @@ class ServiceSubscription extends ServiceSubscription$1 {
|
|
|
7163
7061
|
return !!this.stripeId;
|
|
7164
7062
|
}
|
|
7165
7063
|
get initialPrice() {
|
|
7166
|
-
|
|
7064
|
+
const price = this.items.reduce((sum, item) => sum + item.total, 0);
|
|
7167
7065
|
return price;
|
|
7168
7066
|
}
|
|
7169
7067
|
get discountAmount() {
|
|
@@ -7210,14 +7108,10 @@ class ServiceSubscription extends ServiceSubscription$1 {
|
|
|
7210
7108
|
return this.items.find((item) => item.price.product.isProperties());
|
|
7211
7109
|
}
|
|
7212
7110
|
hasPropertyTank() {
|
|
7213
|
-
return !!this.items.find((subscriptionItem) =>
|
|
7214
|
-
return subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK);
|
|
7215
|
-
});
|
|
7111
|
+
return !!this.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(UserRolesEnum.PROPERTY_TANK));
|
|
7216
7112
|
}
|
|
7217
7113
|
hasWorkTank() {
|
|
7218
|
-
return !!this.items.find((subscriptionItem) =>
|
|
7219
|
-
return subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK);
|
|
7220
|
-
});
|
|
7114
|
+
return !!this.items.find((subscriptionItem) => subscriptionItem.price.product.role.includes(UserRolesEnum.WORK_TANK));
|
|
7221
7115
|
}
|
|
7222
7116
|
/**
|
|
7223
7117
|
* bought before price updates, active for some time to let customer select a new plan
|
|
@@ -7473,9 +7367,7 @@ class Property extends Property$1 {
|
|
|
7473
7367
|
return this.currentYearForecast?.cashPosition || 0;
|
|
7474
7368
|
}
|
|
7475
7369
|
get firstForecastYear() {
|
|
7476
|
-
return this.forecasts.reduce((min, forecast) =>
|
|
7477
|
-
return min > forecast.financialYear ? forecast.financialYear : min;
|
|
7478
|
-
}, new FinancialYear().year);
|
|
7370
|
+
return this.forecasts.reduce((min, forecast) => min > forecast.financialYear ? forecast.financialYear : min, new FinancialYear().year);
|
|
7479
7371
|
}
|
|
7480
7372
|
get marketValueGrowth() {
|
|
7481
7373
|
return (this.marketValue - this.purchasePrice) / this.marketValue;
|
|
@@ -7484,9 +7376,7 @@ class Property extends Property$1 {
|
|
|
7484
7376
|
return this.shares.find((share) => share.user.id === +localStorage.getItem('userId'));
|
|
7485
7377
|
}
|
|
7486
7378
|
get actualValuation() {
|
|
7487
|
-
return this.valuations.reduce((maxDateValuation, valuation) =>
|
|
7488
|
-
return maxDateValuation.date > valuation.date ? maxDateValuation : valuation;
|
|
7489
|
-
}, this.valuations[0]);
|
|
7379
|
+
return this.valuations.reduce((maxDateValuation, valuation) => maxDateValuation.date > valuation.date ? maxDateValuation : valuation, this.valuations[0]);
|
|
7490
7380
|
}
|
|
7491
7381
|
get claimPercent() {
|
|
7492
7382
|
return this.currentYearForecast.claimPercent;
|
|
@@ -7889,12 +7779,10 @@ class BankAccountChartData {
|
|
|
7889
7779
|
* set value of pie chart data
|
|
7890
7780
|
*/
|
|
7891
7781
|
getBalancePieChartData() {
|
|
7892
|
-
return this.bankAccounts.map((bankAccount) => {
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
};
|
|
7897
|
-
});
|
|
7782
|
+
return this.bankAccounts.map((bankAccount) => ({
|
|
7783
|
+
name: bankAccount.accountName,
|
|
7784
|
+
data: Math.abs(bankAccount.currentBalance)
|
|
7785
|
+
}));
|
|
7898
7786
|
}
|
|
7899
7787
|
/**
|
|
7900
7788
|
* set value of bar chart data
|
|
@@ -7902,12 +7790,10 @@ class BankAccountChartData {
|
|
|
7902
7790
|
getBalanceBarChartData() {
|
|
7903
7791
|
return [{
|
|
7904
7792
|
name: 'Balance',
|
|
7905
|
-
data: this.bankAccounts.map((bankAccount) => {
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
};
|
|
7910
|
-
})
|
|
7793
|
+
data: this.bankAccounts.map((bankAccount) => ({
|
|
7794
|
+
label: bankAccount.accountName,
|
|
7795
|
+
value: bankAccount.currentBalance
|
|
7796
|
+
}))
|
|
7911
7797
|
}];
|
|
7912
7798
|
}
|
|
7913
7799
|
}
|
|
@@ -7971,9 +7857,7 @@ class BankTransactionChartData {
|
|
|
7971
7857
|
}];
|
|
7972
7858
|
for (const key in MonthNameShortEnum) {
|
|
7973
7859
|
if (MonthNameShortEnum.hasOwnProperty(key)) {
|
|
7974
|
-
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) =>
|
|
7975
|
-
return +bankTransaction.date.getMonth() === +MonthNumberEnum[key];
|
|
7976
|
-
});
|
|
7860
|
+
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => +bankTransaction.date.getMonth() === +MonthNumberEnum[key]);
|
|
7977
7861
|
const cashInForMonth = bankTransactionsForMonth
|
|
7978
7862
|
.filter((bankTransaction) => bankTransaction.isCredit())
|
|
7979
7863
|
.reduce((sum, bankTransaction) => sum += bankTransaction.allocatedAmount, 0);
|
|
@@ -8002,16 +7886,12 @@ class BankTransactionChartData {
|
|
|
8002
7886
|
}];
|
|
8003
7887
|
for (const key in MonthNameShortEnum) {
|
|
8004
7888
|
if (MonthNameShortEnum.hasOwnProperty(key)) {
|
|
8005
|
-
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) =>
|
|
8006
|
-
return +bankTransaction.date.getMonth() === +MonthNumberEnum[key];
|
|
8007
|
-
});
|
|
7889
|
+
const bankTransactionsForMonth = this.bankTransactions.filter((bankTransaction) => +bankTransaction.date.getMonth() === +MonthNumberEnum[key]);
|
|
8008
7890
|
const balanceForMonth = bankTransactionsForMonth.reduce((sum, bankTransaction) => {
|
|
8009
7891
|
if (bankTransaction.isCredit()) {
|
|
8010
7892
|
return sum += bankTransaction.allocatedAmount;
|
|
8011
7893
|
}
|
|
8012
|
-
|
|
8013
|
-
return sum -= bankTransaction.allocatedAmount;
|
|
8014
|
-
}
|
|
7894
|
+
return sum -= bankTransaction.allocatedAmount;
|
|
8015
7895
|
}, 0);
|
|
8016
7896
|
chartData[0].data.push({
|
|
8017
7897
|
label: MonthNameShortEnum[key],
|
|
@@ -8457,23 +8337,9 @@ __decorate([
|
|
|
8457
8337
|
], HoldingType.prototype, "exchange", void 0);
|
|
8458
8338
|
|
|
8459
8339
|
class HoldingSale extends AbstractModel {
|
|
8460
|
-
getCapitalGain(holding) {
|
|
8461
|
-
if (!this.price || !this.holding) {
|
|
8462
|
-
return 0;
|
|
8463
|
-
}
|
|
8464
|
-
return (this.price - holding.price) * this.quantity;
|
|
8465
|
-
}
|
|
8466
|
-
getNetCapitalGain(holding) {
|
|
8467
|
-
const capitalGain = this.getCapitalGain(holding);
|
|
8468
|
-
// 50% discount for holdings purchased over a year ago
|
|
8469
|
-
if (holding.heldMoreYear()) {
|
|
8470
|
-
return capitalGain / 2;
|
|
8471
|
-
}
|
|
8472
|
-
return capitalGain;
|
|
8473
|
-
}
|
|
8474
8340
|
}
|
|
8475
8341
|
__decorate([
|
|
8476
|
-
Transform(({ value }) => {
|
|
8342
|
+
Transform(({ value }) => ({ id: value.id }), { toPlainOnly: true })
|
|
8477
8343
|
], HoldingSale.prototype, "holding", void 0);
|
|
8478
8344
|
__decorate([
|
|
8479
8345
|
Type(() => Date)
|
|
@@ -8648,12 +8514,10 @@ class ClientPortfolioChartData {
|
|
|
8648
8514
|
this.clientsPortfolioReportCollection = clientsPortfolioReportCollection;
|
|
8649
8515
|
}
|
|
8650
8516
|
getPieChartData() {
|
|
8651
|
-
return this.clientsPortfolioReportCollection.items.map((clientPortfolioReport) => {
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
});
|
|
8656
|
-
});
|
|
8517
|
+
return this.clientsPortfolioReportCollection.items.map((clientPortfolioReport) => plainToClass(ChartData, {
|
|
8518
|
+
name: clientPortfolioReport.category,
|
|
8519
|
+
data: clientPortfolioReport.count
|
|
8520
|
+
}));
|
|
8657
8521
|
}
|
|
8658
8522
|
getBarChartData() {
|
|
8659
8523
|
return [
|
|
@@ -8729,9 +8593,9 @@ class JwtService extends JwtHelperService {
|
|
|
8729
8593
|
return this.getUser().id === userId;
|
|
8730
8594
|
}
|
|
8731
8595
|
}
|
|
8732
|
-
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
8733
|
-
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
8734
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8596
|
+
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
8597
|
+
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, providedIn: 'root' });
|
|
8598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtService, decorators: [{
|
|
8735
8599
|
type: Injectable,
|
|
8736
8600
|
args: [{
|
|
8737
8601
|
providedIn: 'root'
|
|
@@ -8766,9 +8630,9 @@ class EventDispatcherService {
|
|
|
8766
8630
|
this.eventSubject2.next(event);
|
|
8767
8631
|
}
|
|
8768
8632
|
}
|
|
8769
|
-
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
8770
|
-
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
8771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8633
|
+
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8634
|
+
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
|
|
8635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, decorators: [{
|
|
8772
8636
|
type: Injectable,
|
|
8773
8637
|
args: [{
|
|
8774
8638
|
providedIn: 'root'
|
|
@@ -8817,9 +8681,9 @@ class AuthService {
|
|
|
8817
8681
|
location.replace(url);
|
|
8818
8682
|
}
|
|
8819
8683
|
}
|
|
8820
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
8821
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
8822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8684
|
+
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 });
|
|
8685
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
8686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AuthService, decorators: [{
|
|
8823
8687
|
type: Injectable,
|
|
8824
8688
|
args: [{
|
|
8825
8689
|
providedIn: 'root'
|
|
@@ -8919,20 +8783,18 @@ class JwtInterceptor {
|
|
|
8919
8783
|
return this.tokenSubject.pipe(filter(token => token != null), take(1), switchMap(token => next.handle(this.addToken(req))));
|
|
8920
8784
|
// refresh token
|
|
8921
8785
|
}
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
}));
|
|
8935
|
-
}
|
|
8786
|
+
// subsequent requests should wait until refresh token is ready
|
|
8787
|
+
this.isRefreshingToken = true;
|
|
8788
|
+
this.tokenSubject.next(null);
|
|
8789
|
+
return this.authService.refresh(this.jwtService.getRefreshToken()).pipe(switchMap((tokens) => {
|
|
8790
|
+
this.tokenSubject.next(tokens.token);
|
|
8791
|
+
return next.handle(this.addToken(req));
|
|
8792
|
+
}), catchError(() => {
|
|
8793
|
+
this.authService.logoutFront();
|
|
8794
|
+
return throwError(err);
|
|
8795
|
+
}), finalize(() => {
|
|
8796
|
+
this.isRefreshingToken = false;
|
|
8797
|
+
}));
|
|
8936
8798
|
}
|
|
8937
8799
|
/**
|
|
8938
8800
|
* Handle error messages
|
|
@@ -8954,9 +8816,9 @@ class JwtInterceptor {
|
|
|
8954
8816
|
});
|
|
8955
8817
|
}
|
|
8956
8818
|
}
|
|
8957
|
-
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
8958
|
-
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
8959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8819
|
+
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 });
|
|
8820
|
+
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor });
|
|
8821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: JwtInterceptor, decorators: [{
|
|
8960
8822
|
type: Injectable
|
|
8961
8823
|
}], ctorParameters: function () { return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
|
|
8962
8824
|
type: Inject,
|
|
@@ -8989,9 +8851,9 @@ class UserSwitcherService {
|
|
|
8989
8851
|
window.location.replace('/firm/dashboard');
|
|
8990
8852
|
}
|
|
8991
8853
|
}
|
|
8992
|
-
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
8993
|
-
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
8994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8854
|
+
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8855
|
+
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
|
|
8856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherService, decorators: [{
|
|
8995
8857
|
type: Injectable,
|
|
8996
8858
|
args: [{
|
|
8997
8859
|
providedIn: 'root'
|
|
@@ -9037,9 +8899,9 @@ class UserSwitcherInterceptor {
|
|
|
9037
8899
|
return next.handle(this.switch(request, this.userSwitcherService.get()));
|
|
9038
8900
|
}
|
|
9039
8901
|
}
|
|
9040
|
-
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9041
|
-
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
8902
|
+
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 });
|
|
8903
|
+
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor });
|
|
8904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
|
|
9043
8905
|
type: Injectable
|
|
9044
8906
|
}], ctorParameters: function () { return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
|
|
9045
8907
|
type: Inject,
|
|
@@ -9311,9 +9173,9 @@ class PreloaderService {
|
|
|
9311
9173
|
this.activePreloaders.next(activePreloaders);
|
|
9312
9174
|
}
|
|
9313
9175
|
}
|
|
9314
|
-
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9315
|
-
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9176
|
+
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9177
|
+
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, providedIn: 'root' });
|
|
9178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderService, decorators: [{
|
|
9317
9179
|
type: Injectable,
|
|
9318
9180
|
args: [{
|
|
9319
9181
|
providedIn: 'root'
|
|
@@ -9329,7 +9191,7 @@ class PreloaderInterceptor {
|
|
|
9329
9191
|
}
|
|
9330
9192
|
intercept(request, next) {
|
|
9331
9193
|
const endpoint = this.findEndpoint(`${request.method} ${request.url}`);
|
|
9332
|
-
if (
|
|
9194
|
+
if (endpoint) {
|
|
9333
9195
|
this.preloaderService.add(endpoint);
|
|
9334
9196
|
return next.handle(request).pipe(finalize(() => {
|
|
9335
9197
|
this.preloaderService.delete(endpoint);
|
|
@@ -9341,9 +9203,9 @@ class PreloaderInterceptor {
|
|
|
9341
9203
|
return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
|
|
9342
9204
|
}
|
|
9343
9205
|
}
|
|
9344
|
-
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9345
|
-
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9206
|
+
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9207
|
+
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor });
|
|
9208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PreloaderInterceptor, decorators: [{
|
|
9347
9209
|
type: Injectable
|
|
9348
9210
|
}], ctorParameters: function () { return [{ type: PreloaderService }]; } });
|
|
9349
9211
|
|
|
@@ -9370,9 +9232,9 @@ class DataService {
|
|
|
9370
9232
|
this.cache = this.createCollectionInstance(this.collectionClass, data.map((item) => this.createModelInstance(item)));
|
|
9371
9233
|
}
|
|
9372
9234
|
}
|
|
9373
|
-
DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9374
|
-
DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9235
|
+
DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9236
|
+
DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, providedIn: 'root' });
|
|
9237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DataService, decorators: [{
|
|
9376
9238
|
type: Injectable,
|
|
9377
9239
|
args: [{
|
|
9378
9240
|
providedIn: 'root'
|
|
@@ -9406,14 +9268,12 @@ class SseService {
|
|
|
9406
9268
|
this.zone.run(() => observer.next(event));
|
|
9407
9269
|
};
|
|
9408
9270
|
})
|
|
9409
|
-
.pipe(map((messageEvent) =>
|
|
9410
|
-
return JSON.parse(messageEvent.data);
|
|
9411
|
-
}));
|
|
9271
|
+
.pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
|
|
9412
9272
|
}
|
|
9413
9273
|
}
|
|
9414
|
-
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9415
|
-
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9274
|
+
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 });
|
|
9275
|
+
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, providedIn: 'root' });
|
|
9276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SseService, decorators: [{
|
|
9417
9277
|
type: Injectable,
|
|
9418
9278
|
args: [{
|
|
9419
9279
|
providedIn: 'root'
|
|
@@ -9459,7 +9319,6 @@ let RestService$1 = class RestService extends DataService {
|
|
|
9459
9319
|
}
|
|
9460
9320
|
return this.cacheSubject.asObservable();
|
|
9461
9321
|
}
|
|
9462
|
-
;
|
|
9463
9322
|
getSingle() {
|
|
9464
9323
|
this.handleAccessError('get');
|
|
9465
9324
|
return this.get().pipe(map((collection) => collection.first));
|
|
@@ -9552,7 +9411,6 @@ let RestService$1 = class RestService extends DataService {
|
|
|
9552
9411
|
return this.cache;
|
|
9553
9412
|
}));
|
|
9554
9413
|
}
|
|
9555
|
-
;
|
|
9556
9414
|
/**
|
|
9557
9415
|
* Handle response data - update cache and dispatch event if it is needed
|
|
9558
9416
|
*/
|
|
@@ -9623,9 +9481,9 @@ let RestService$1 = class RestService extends DataService {
|
|
|
9623
9481
|
*/
|
|
9624
9482
|
listenEvents() { }
|
|
9625
9483
|
};
|
|
9626
|
-
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9627
|
-
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9484
|
+
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 });
|
|
9485
|
+
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, providedIn: 'root' });
|
|
9486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService$1, decorators: [{
|
|
9629
9487
|
type: Injectable,
|
|
9630
9488
|
args: [{
|
|
9631
9489
|
providedIn: 'root'
|
|
@@ -9743,9 +9601,9 @@ class ToastService {
|
|
|
9743
9601
|
}));
|
|
9744
9602
|
}
|
|
9745
9603
|
}
|
|
9746
|
-
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9747
|
-
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9604
|
+
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9605
|
+
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, providedIn: 'root' });
|
|
9606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ToastService, decorators: [{
|
|
9749
9607
|
type: Injectable,
|
|
9750
9608
|
args: [{
|
|
9751
9609
|
providedIn: 'root'
|
|
@@ -9796,7 +9654,7 @@ class BankConnectionService extends RestService$1 {
|
|
|
9796
9654
|
if (error.status === 400) {
|
|
9797
9655
|
this.toastService.error('Please enter the login you used before');
|
|
9798
9656
|
}
|
|
9799
|
-
return throwError
|
|
9657
|
+
return throwError(error);
|
|
9800
9658
|
}));
|
|
9801
9659
|
}
|
|
9802
9660
|
/**
|
|
@@ -9835,9 +9693,9 @@ BankConnectionService.userEventTypes = [
|
|
|
9835
9693
|
UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS,
|
|
9836
9694
|
UserEventTypeTypeEnum.BASIQ_AUTHORIZATION_FAIL
|
|
9837
9695
|
];
|
|
9838
|
-
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9839
|
-
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9840
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9696
|
+
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 });
|
|
9697
|
+
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
|
|
9698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankConnectionService, decorators: [{
|
|
9841
9699
|
type: Injectable,
|
|
9842
9700
|
args: [{
|
|
9843
9701
|
providedIn: 'root'
|
|
@@ -9947,9 +9805,9 @@ BasiqService.basiqApiUrl = 'https://au-api.basiq.io';
|
|
|
9947
9805
|
* Basiq does not provide a hook, so we have to check job status manually every x seconds
|
|
9948
9806
|
*/
|
|
9949
9807
|
BasiqService.bankCredintialsCheckInterval = 3000;
|
|
9950
|
-
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9951
|
-
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9952
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9808
|
+
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 });
|
|
9809
|
+
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, providedIn: 'root' });
|
|
9810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqService, decorators: [{
|
|
9953
9811
|
type: Injectable,
|
|
9954
9812
|
args: [{
|
|
9955
9813
|
providedIn: 'root'
|
|
@@ -9984,9 +9842,9 @@ class BasiqTokenService extends RestService$1 {
|
|
|
9984
9842
|
return this.cacheSubject.asObservable();
|
|
9985
9843
|
}
|
|
9986
9844
|
}
|
|
9987
|
-
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
9988
|
-
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
9989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9845
|
+
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
9846
|
+
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
|
|
9847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenService, decorators: [{
|
|
9990
9848
|
type: Injectable,
|
|
9991
9849
|
args: [{
|
|
9992
9850
|
providedIn: 'root'
|
|
@@ -10005,9 +9863,7 @@ class BasiqTokenInterceptor {
|
|
|
10005
9863
|
if (!request.url.includes(BasiqService.basiqApiUrl)) {
|
|
10006
9864
|
return next.handle(request);
|
|
10007
9865
|
}
|
|
10008
|
-
return this.basiqTokenService.getSingle().pipe(mergeMap((token) =>
|
|
10009
|
-
return next.handle(this.addToken(request, token));
|
|
10010
|
-
}));
|
|
9866
|
+
return this.basiqTokenService.getSingle().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
|
|
10011
9867
|
}
|
|
10012
9868
|
addToken(request, token) {
|
|
10013
9869
|
return request.clone({
|
|
@@ -10017,9 +9873,9 @@ class BasiqTokenInterceptor {
|
|
|
10017
9873
|
});
|
|
10018
9874
|
}
|
|
10019
9875
|
}
|
|
10020
|
-
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10021
|
-
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
9876
|
+
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9877
|
+
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor });
|
|
9878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
|
|
10023
9879
|
type: Injectable
|
|
10024
9880
|
}], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
|
|
10025
9881
|
|
|
@@ -10120,9 +9976,7 @@ class UserService {
|
|
|
10120
9976
|
*/
|
|
10121
9977
|
search(email) {
|
|
10122
9978
|
return this.http.get(`${this.environment.apiV2}/users/search?email=${email}`)
|
|
10123
|
-
.pipe(map((userBase) =>
|
|
10124
|
-
return plainToClass(User, userBase);
|
|
10125
|
-
}));
|
|
9979
|
+
.pipe(map((userBase) => plainToClass(User, userBase)));
|
|
10126
9980
|
}
|
|
10127
9981
|
/**
|
|
10128
9982
|
* Finish onboarding process
|
|
@@ -10195,9 +10049,9 @@ class UserService {
|
|
|
10195
10049
|
});
|
|
10196
10050
|
}
|
|
10197
10051
|
}
|
|
10198
|
-
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10199
|
-
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10052
|
+
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 });
|
|
10053
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
10054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserService, decorators: [{
|
|
10201
10055
|
type: Injectable,
|
|
10202
10056
|
args: [{
|
|
10203
10057
|
providedIn: 'root'
|
|
@@ -10227,17 +10081,17 @@ class BasiqClientIdInterceptor {
|
|
|
10227
10081
|
});
|
|
10228
10082
|
}
|
|
10229
10083
|
}
|
|
10230
|
-
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10231
|
-
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10084
|
+
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10085
|
+
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor });
|
|
10086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
|
|
10233
10087
|
type: Injectable
|
|
10234
10088
|
}], ctorParameters: function () { return [{ type: UserService }]; } });
|
|
10235
10089
|
|
|
10236
10090
|
class InterceptorsModule {
|
|
10237
10091
|
}
|
|
10238
|
-
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10239
|
-
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
10240
|
-
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
10092
|
+
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10093
|
+
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule });
|
|
10094
|
+
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, providers: [
|
|
10241
10095
|
{
|
|
10242
10096
|
provide: HTTP_INTERCEPTORS,
|
|
10243
10097
|
useClass: CorelogicInterceptor,
|
|
@@ -10275,7 +10129,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
10275
10129
|
multi: true
|
|
10276
10130
|
}
|
|
10277
10131
|
] });
|
|
10278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: InterceptorsModule, decorators: [{
|
|
10279
10133
|
type: NgModule,
|
|
10280
10134
|
args: [{
|
|
10281
10135
|
providers: [
|
|
@@ -10333,12 +10187,12 @@ class TtCoreModule {
|
|
|
10333
10187
|
};
|
|
10334
10188
|
}
|
|
10335
10189
|
}
|
|
10336
|
-
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10337
|
-
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
10190
|
+
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10191
|
+
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
10338
10192
|
InterceptorsModule] });
|
|
10339
|
-
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
10193
|
+
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
10340
10194
|
InterceptorsModule] });
|
|
10341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TtCoreModule, decorators: [{
|
|
10342
10196
|
type: NgModule,
|
|
10343
10197
|
args: [{
|
|
10344
10198
|
declarations: [],
|
|
@@ -11931,9 +11785,7 @@ class AddressService {
|
|
|
11931
11785
|
getCountries() {
|
|
11932
11786
|
if (!this._countries) {
|
|
11933
11787
|
this.http.get(`${this.environment.apiV2}/countries`)
|
|
11934
|
-
.pipe(map((response) =>
|
|
11935
|
-
return response['hydra:member'].map((item) => plainToClass(Country, item));
|
|
11936
|
-
}))
|
|
11788
|
+
.pipe(map((response) => response['hydra:member'].map((item) => plainToClass(Country, item))))
|
|
11937
11789
|
.subscribe((countries) => {
|
|
11938
11790
|
this._countries = countries;
|
|
11939
11791
|
this.countriesSubject.next(countries);
|
|
@@ -11942,9 +11794,9 @@ class AddressService {
|
|
|
11942
11794
|
return this.countriesSubject.asObservable();
|
|
11943
11795
|
}
|
|
11944
11796
|
}
|
|
11945
|
-
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11946
|
-
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11797
|
+
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 });
|
|
11798
|
+
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, providedIn: 'root' });
|
|
11799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AddressService, decorators: [{
|
|
11948
11800
|
type: Injectable,
|
|
11949
11801
|
args: [{
|
|
11950
11802
|
providedIn: 'root'
|
|
@@ -11998,9 +11850,9 @@ class BankAccountService extends RestService$1 {
|
|
|
11998
11850
|
});
|
|
11999
11851
|
}
|
|
12000
11852
|
}
|
|
12001
|
-
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12002
|
-
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12003
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11853
|
+
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11854
|
+
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, providedIn: 'root' });
|
|
11855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountService, decorators: [{
|
|
12004
11856
|
type: Injectable,
|
|
12005
11857
|
args: [{
|
|
12006
11858
|
providedIn: 'root'
|
|
@@ -12021,16 +11873,13 @@ class BankTransactionService extends RestService$1 {
|
|
|
12021
11873
|
listenEvents() {
|
|
12022
11874
|
this.listenBankTransactionsImport();
|
|
12023
11875
|
}
|
|
12024
|
-
;
|
|
12025
11876
|
/**
|
|
12026
11877
|
* Get list of bank transactions for provided financial year
|
|
12027
11878
|
* @TODO VIK/Alex: consider to use one endpoint to get bank transactions for 2 fin years
|
|
12028
11879
|
*/
|
|
12029
11880
|
getByYear(finYear) {
|
|
12030
11881
|
return this.http.get(`${this.environment.apiV2}/bank-transactions?financialYear=${finYear}`)
|
|
12031
|
-
.pipe(map((bankTransactionsBase) =>
|
|
12032
|
-
return bankTransactionsBase.map((bankTransaction) => plainToClass(BankTransaction, bankTransaction));
|
|
12033
|
-
}));
|
|
11882
|
+
.pipe(map((bankTransactionsBase) => bankTransactionsBase.map((bankTransaction) => plainToClass(BankTransaction, bankTransaction))));
|
|
12034
11883
|
}
|
|
12035
11884
|
/**
|
|
12036
11885
|
* import bank transactions from csv file
|
|
@@ -12065,9 +11914,9 @@ class BankTransactionService extends RestService$1 {
|
|
|
12065
11914
|
});
|
|
12066
11915
|
}
|
|
12067
11916
|
}
|
|
12068
|
-
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12069
|
-
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12070
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11917
|
+
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11918
|
+
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
|
|
11919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionService, decorators: [{
|
|
12071
11920
|
type: Injectable,
|
|
12072
11921
|
args: [{
|
|
12073
11922
|
providedIn: 'root'
|
|
@@ -12088,16 +11937,15 @@ class BankService extends RestService$1 {
|
|
|
12088
11937
|
}
|
|
12089
11938
|
get() {
|
|
12090
11939
|
return super.get()
|
|
12091
|
-
.pipe(map((banks) =>
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
}));
|
|
11940
|
+
.pipe(map((banks) =>
|
|
11941
|
+
// exclude basiq banks without login fields (basiq may return broken banks without loginFields)
|
|
11942
|
+
// @TODO Vik/Nikita: do it on backend
|
|
11943
|
+
banks.filter((bank) => bank.isManual || (!!bank.externalId && !!bank.loginFields))));
|
|
12096
11944
|
}
|
|
12097
11945
|
}
|
|
12098
|
-
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12099
|
-
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11946
|
+
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11947
|
+
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, providedIn: 'root' });
|
|
11948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankService, decorators: [{
|
|
12101
11949
|
type: Injectable,
|
|
12102
11950
|
args: [{
|
|
12103
11951
|
providedIn: 'root'
|
|
@@ -12117,9 +11965,9 @@ class ChartAccountsDepreciationService extends RestService$1 {
|
|
|
12117
11965
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
12118
11966
|
}
|
|
12119
11967
|
}
|
|
12120
|
-
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12121
|
-
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11968
|
+
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11969
|
+
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
|
|
11970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
|
|
12123
11971
|
type: Injectable,
|
|
12124
11972
|
args: [{
|
|
12125
11973
|
providedIn: 'root'
|
|
@@ -12159,9 +12007,9 @@ class ChartAccountsService extends RestService$1 {
|
|
|
12159
12007
|
}));
|
|
12160
12008
|
}
|
|
12161
12009
|
}
|
|
12162
|
-
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12163
|
-
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12010
|
+
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12011
|
+
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
|
|
12012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChartAccountsService, decorators: [{
|
|
12165
12013
|
type: Injectable,
|
|
12166
12014
|
args: [{
|
|
12167
12015
|
providedIn: 'root'
|
|
@@ -12191,7 +12039,7 @@ class ChatService extends RestService$1 {
|
|
|
12191
12039
|
*/
|
|
12192
12040
|
listenChats() {
|
|
12193
12041
|
this.sseService.on(`chats`).subscribe((chatBase) => {
|
|
12194
|
-
|
|
12042
|
+
const array = this.cache.toArray();
|
|
12195
12043
|
// chat instance from event
|
|
12196
12044
|
const eventChat = plainToClass(Chat, chatBase);
|
|
12197
12045
|
// chat instance from cache
|
|
@@ -12230,9 +12078,9 @@ class ChatService extends RestService$1 {
|
|
|
12230
12078
|
});
|
|
12231
12079
|
}
|
|
12232
12080
|
}
|
|
12233
|
-
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12234
|
-
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12081
|
+
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 });
|
|
12082
|
+
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, providedIn: 'root' });
|
|
12083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ChatService, decorators: [{
|
|
12236
12084
|
type: Injectable,
|
|
12237
12085
|
args: [{
|
|
12238
12086
|
providedIn: 'root'
|
|
@@ -12289,9 +12137,9 @@ class MessageService extends RestService$1 {
|
|
|
12289
12137
|
});
|
|
12290
12138
|
}
|
|
12291
12139
|
}
|
|
12292
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12293
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12140
|
+
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 });
|
|
12141
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
12142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageService, decorators: [{
|
|
12295
12143
|
type: Injectable,
|
|
12296
12144
|
args: [{
|
|
12297
12145
|
providedIn: 'root'
|
|
@@ -12357,14 +12205,12 @@ class MessageDocumentService extends RestService$1 {
|
|
|
12357
12205
|
* Upload multiple files to chat
|
|
12358
12206
|
*/
|
|
12359
12207
|
addBatch(chatId, files) {
|
|
12360
|
-
return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) =>
|
|
12361
|
-
return docsBase.map((docBase) => plainToClass(MessageDocument, docBase));
|
|
12362
|
-
}));
|
|
12208
|
+
return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
|
|
12363
12209
|
}
|
|
12364
12210
|
}
|
|
12365
|
-
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12366
|
-
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12211
|
+
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12212
|
+
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
|
|
12213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: MessageDocumentService, decorators: [{
|
|
12368
12214
|
type: Injectable,
|
|
12369
12215
|
args: [{
|
|
12370
12216
|
providedIn: 'root'
|
|
@@ -12424,9 +12270,7 @@ class DepreciationService extends RestService$1 {
|
|
|
12424
12270
|
}
|
|
12425
12271
|
getOpenBalance(depreciation) {
|
|
12426
12272
|
return this.http.post(`${this.apiUrl}/opening-balance?financialYear=${new FinancialYear().year}`, depreciation)
|
|
12427
|
-
.pipe(map((response) =>
|
|
12428
|
-
return response || 0;
|
|
12429
|
-
}));
|
|
12273
|
+
.pipe(map((response) => response || 0));
|
|
12430
12274
|
}
|
|
12431
12275
|
listenReceiptAdded() {
|
|
12432
12276
|
this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe((receipt) => {
|
|
@@ -12489,9 +12333,9 @@ class DepreciationService extends RestService$1 {
|
|
|
12489
12333
|
});
|
|
12490
12334
|
}
|
|
12491
12335
|
}
|
|
12492
|
-
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12493
|
-
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12336
|
+
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 });
|
|
12337
|
+
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, providedIn: 'root' });
|
|
12338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationService, decorators: [{
|
|
12495
12339
|
type: Injectable,
|
|
12496
12340
|
args: [{
|
|
12497
12341
|
providedIn: 'root'
|
|
@@ -12514,9 +12358,7 @@ class DepreciationCapitalProjectService {
|
|
|
12514
12358
|
this.cacheSubject.next([]);
|
|
12515
12359
|
this.http.get(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects`)
|
|
12516
12360
|
.subscribe((capitalProjectsBase) => {
|
|
12517
|
-
this.cache = capitalProjectsBase.map((capitalProjectBase) =>
|
|
12518
|
-
return plainToClass(DepreciationCapitalProject, capitalProjectBase);
|
|
12519
|
-
});
|
|
12361
|
+
this.cache = capitalProjectsBase.map((capitalProjectBase) => plainToClass(DepreciationCapitalProject, capitalProjectBase));
|
|
12520
12362
|
this.cacheSubject.next(this.cache);
|
|
12521
12363
|
});
|
|
12522
12364
|
return this.cacheSubject.asObservable();
|
|
@@ -12543,9 +12385,9 @@ class DepreciationCapitalProjectService {
|
|
|
12543
12385
|
}));
|
|
12544
12386
|
}
|
|
12545
12387
|
}
|
|
12546
|
-
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12547
|
-
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12388
|
+
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 });
|
|
12389
|
+
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
|
|
12390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
|
|
12549
12391
|
type: Injectable,
|
|
12550
12392
|
args: [{
|
|
12551
12393
|
providedIn: 'root'
|
|
@@ -12611,9 +12453,9 @@ class ReceiptService {
|
|
|
12611
12453
|
return plainToClass(this.modelClass, data);
|
|
12612
12454
|
}
|
|
12613
12455
|
}
|
|
12614
|
-
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12615
|
-
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12456
|
+
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 });
|
|
12457
|
+
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, providedIn: 'root' });
|
|
12458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ReceiptService, decorators: [{
|
|
12617
12459
|
type: Injectable,
|
|
12618
12460
|
args: [{
|
|
12619
12461
|
providedIn: 'root'
|
|
@@ -12642,9 +12484,9 @@ class DepreciationReceiptService extends ReceiptService {
|
|
|
12642
12484
|
this.listenEvents();
|
|
12643
12485
|
}
|
|
12644
12486
|
}
|
|
12645
|
-
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12646
|
-
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12487
|
+
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 });
|
|
12488
|
+
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
|
|
12489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DepreciationReceiptService, decorators: [{
|
|
12648
12490
|
type: Injectable,
|
|
12649
12491
|
args: [{
|
|
12650
12492
|
providedIn: 'root'
|
|
@@ -12687,9 +12529,7 @@ class RestService {
|
|
|
12687
12529
|
*/
|
|
12688
12530
|
findById(id) {
|
|
12689
12531
|
return this.get()
|
|
12690
|
-
.pipe(map((items) =>
|
|
12691
|
-
return items.find((item) => item['id'] === id);
|
|
12692
|
-
}));
|
|
12532
|
+
.pipe(map((items) => items.find((item) => item['id'] === id)));
|
|
12693
12533
|
}
|
|
12694
12534
|
find(id) {
|
|
12695
12535
|
return this.cache.find((item) => item['id'] === id);
|
|
@@ -12726,7 +12566,7 @@ class RestService {
|
|
|
12726
12566
|
postForm(file, params = {}) {
|
|
12727
12567
|
const formData = new FormData();
|
|
12728
12568
|
formData.append('file', file);
|
|
12729
|
-
for (
|
|
12569
|
+
for (const key in params) {
|
|
12730
12570
|
formData.append(key, params[key]);
|
|
12731
12571
|
}
|
|
12732
12572
|
return this.create(formData);
|
|
@@ -12831,9 +12671,7 @@ class RestService {
|
|
|
12831
12671
|
return this.http.get(`${this.environment.apiV2}/${this.url}`)
|
|
12832
12672
|
.pipe(map((response) => {
|
|
12833
12673
|
const items = (this.isHydra ? response['hydra:member'] : response)
|
|
12834
|
-
.map((item) =>
|
|
12835
|
-
return this.createModelInstance(item);
|
|
12836
|
-
});
|
|
12674
|
+
.map((item) => this.createModelInstance(item));
|
|
12837
12675
|
this.cache = items;
|
|
12838
12676
|
this.updateCache();
|
|
12839
12677
|
return items;
|
|
@@ -12858,9 +12696,9 @@ class RestService {
|
|
|
12858
12696
|
*/
|
|
12859
12697
|
listenEvents() { }
|
|
12860
12698
|
}
|
|
12861
|
-
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12862
|
-
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12699
|
+
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 });
|
|
12700
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
12701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RestService, decorators: [{
|
|
12864
12702
|
type: Injectable,
|
|
12865
12703
|
args: [{
|
|
12866
12704
|
providedIn: 'root'
|
|
@@ -12877,9 +12715,9 @@ class DocumentService extends RestService {
|
|
|
12877
12715
|
this.modelClass = Document;
|
|
12878
12716
|
}
|
|
12879
12717
|
}
|
|
12880
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12881
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12718
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12719
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
12720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentService, decorators: [{
|
|
12883
12721
|
type: Injectable,
|
|
12884
12722
|
args: [{
|
|
12885
12723
|
providedIn: 'root'
|
|
@@ -12945,9 +12783,9 @@ class DocumentFolderService extends RestService {
|
|
|
12945
12783
|
}));
|
|
12946
12784
|
}
|
|
12947
12785
|
}
|
|
12948
|
-
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12949
|
-
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12786
|
+
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12787
|
+
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
|
|
12788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DocumentFolderService, decorators: [{
|
|
12951
12789
|
type: Injectable,
|
|
12952
12790
|
args: [{
|
|
12953
12791
|
providedIn: 'root'
|
|
@@ -13022,9 +12860,9 @@ FacebookService.authOptions = {
|
|
|
13022
12860
|
auth_type: 'rerequest',
|
|
13023
12861
|
return_scopes: true
|
|
13024
12862
|
};
|
|
13025
|
-
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13026
|
-
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12863
|
+
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 });
|
|
12864
|
+
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, providedIn: 'root' });
|
|
12865
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FacebookService, decorators: [{
|
|
13028
12866
|
type: Injectable,
|
|
13029
12867
|
args: [{
|
|
13030
12868
|
providedIn: 'root'
|
|
@@ -13092,9 +12930,9 @@ class GoogleService {
|
|
|
13092
12930
|
google.accounts.id.disableAutoSelect();
|
|
13093
12931
|
}
|
|
13094
12932
|
}
|
|
13095
|
-
GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13096
|
-
GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12933
|
+
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 });
|
|
12934
|
+
GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GoogleService, providedIn: 'root' });
|
|
12935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GoogleService, decorators: [{
|
|
13098
12936
|
type: Injectable,
|
|
13099
12937
|
args: [{
|
|
13100
12938
|
providedIn: 'root'
|
|
@@ -13119,10 +12957,13 @@ class FileService extends RestService$1 {
|
|
|
13119
12957
|
return this.http.post(this.apiUrl, formData)
|
|
13120
12958
|
.pipe(map((fileBase) => plainToClass(AppFile, fileBase)));
|
|
13121
12959
|
}
|
|
12960
|
+
download(file) {
|
|
12961
|
+
return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
|
|
12962
|
+
}
|
|
13122
12963
|
}
|
|
13123
|
-
FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13124
|
-
FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12964
|
+
FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12965
|
+
FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, providedIn: 'root' });
|
|
12966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FileService, decorators: [{
|
|
13126
12967
|
type: Injectable,
|
|
13127
12968
|
args: [{
|
|
13128
12969
|
providedIn: 'root'
|
|
@@ -13139,9 +12980,9 @@ class ClientIncomeTypesService extends RestService$1 {
|
|
|
13139
12980
|
this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
|
|
13140
12981
|
}
|
|
13141
12982
|
}
|
|
13142
|
-
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13143
|
-
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12983
|
+
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12984
|
+
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
|
|
12985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
|
|
13145
12986
|
type: Injectable,
|
|
13146
12987
|
args: [{
|
|
13147
12988
|
providedIn: 'root'
|
|
@@ -13177,9 +13018,7 @@ class ClientInviteService extends RestService {
|
|
|
13177
13018
|
const formData = new FormData();
|
|
13178
13019
|
formData.append('file', file);
|
|
13179
13020
|
return this.http.post(`${this.environment.apiV2}/${this.url}/import`, formData)
|
|
13180
|
-
.pipe(map((clientInvite) =>
|
|
13181
|
-
return clientInvite;
|
|
13182
|
-
}));
|
|
13021
|
+
.pipe(map((clientInvite) => clientInvite));
|
|
13183
13022
|
}
|
|
13184
13023
|
/**
|
|
13185
13024
|
* Accept client invitation from firm to user
|
|
@@ -13256,9 +13095,9 @@ class ClientInviteService extends RestService {
|
|
|
13256
13095
|
});
|
|
13257
13096
|
}
|
|
13258
13097
|
}
|
|
13259
|
-
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13260
|
-
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13098
|
+
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13099
|
+
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
|
|
13100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientInviteService, decorators: [{
|
|
13262
13101
|
type: Injectable,
|
|
13263
13102
|
args: [{
|
|
13264
13103
|
providedIn: 'root'
|
|
@@ -13280,19 +13119,13 @@ class ClientMovementService extends RestService {
|
|
|
13280
13119
|
* @TODO BaseRestService should return collection
|
|
13281
13120
|
*/
|
|
13282
13121
|
getAll() {
|
|
13283
|
-
return this.get().pipe(map((clientMovements) =>
|
|
13284
|
-
return new ClientMovementCollection(clientMovements);
|
|
13285
|
-
}));
|
|
13122
|
+
return this.get().pipe(map((clientMovements) => new ClientMovementCollection(clientMovements)));
|
|
13286
13123
|
}
|
|
13287
13124
|
getActive() {
|
|
13288
|
-
return this.getAll().pipe(map((clientMovements) =>
|
|
13289
|
-
return clientMovements.active;
|
|
13290
|
-
}));
|
|
13125
|
+
return this.getAll().pipe(map((clientMovements) => clientMovements.active));
|
|
13291
13126
|
}
|
|
13292
13127
|
getActiveByFirmType(type) {
|
|
13293
|
-
return this.getActive().pipe(map((clientMovements) =>
|
|
13294
|
-
return clientMovements.getByFirmType(type);
|
|
13295
|
-
}));
|
|
13128
|
+
return this.getActive().pipe(map((clientMovements) => clientMovements.getByFirmType(type)));
|
|
13296
13129
|
}
|
|
13297
13130
|
update(movement) {
|
|
13298
13131
|
// extend base 'add' method and pass into it movement without id
|
|
@@ -13337,9 +13170,9 @@ class ClientMovementService extends RestService {
|
|
|
13337
13170
|
});
|
|
13338
13171
|
}
|
|
13339
13172
|
}
|
|
13340
|
-
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13341
|
-
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13173
|
+
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13174
|
+
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
|
|
13175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientMovementService, decorators: [{
|
|
13343
13176
|
type: Injectable,
|
|
13344
13177
|
args: [{
|
|
13345
13178
|
providedIn: 'root'
|
|
@@ -13368,9 +13201,9 @@ class EmployeeService extends RestService {
|
|
|
13368
13201
|
}));
|
|
13369
13202
|
}
|
|
13370
13203
|
}
|
|
13371
|
-
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13372
|
-
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13204
|
+
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13205
|
+
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, providedIn: 'root' });
|
|
13206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeService, decorators: [{
|
|
13374
13207
|
type: Injectable,
|
|
13375
13208
|
args: [{
|
|
13376
13209
|
providedIn: 'root'
|
|
@@ -13391,9 +13224,7 @@ class EmployeeInviteService extends RestService {
|
|
|
13391
13224
|
const formData = new FormData();
|
|
13392
13225
|
formData.append('file', file);
|
|
13393
13226
|
return this.http.post(`${this.environment.apiV2}/${this.url}/import`, formData)
|
|
13394
|
-
.pipe(map((employeeInvite) =>
|
|
13395
|
-
return employeeInvite;
|
|
13396
|
-
}));
|
|
13227
|
+
.pipe(map((employeeInvite) => employeeInvite));
|
|
13397
13228
|
}
|
|
13398
13229
|
/**
|
|
13399
13230
|
* Resend invitation from firm to client
|
|
@@ -13413,9 +13244,9 @@ class EmployeeInviteService extends RestService {
|
|
|
13413
13244
|
}));
|
|
13414
13245
|
}
|
|
13415
13246
|
}
|
|
13416
|
-
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13417
|
-
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13247
|
+
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13248
|
+
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
|
|
13249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EmployeeInviteService, decorators: [{
|
|
13419
13250
|
type: Injectable,
|
|
13420
13251
|
args: [{
|
|
13421
13252
|
providedIn: 'root'
|
|
@@ -13440,9 +13271,9 @@ class ClientPortfolioReportService {
|
|
|
13440
13271
|
}));
|
|
13441
13272
|
}
|
|
13442
13273
|
}
|
|
13443
|
-
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13444
|
-
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13274
|
+
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 });
|
|
13275
|
+
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
|
|
13276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
|
|
13446
13277
|
type: Injectable,
|
|
13447
13278
|
args: [{
|
|
13448
13279
|
providedIn: 'root'
|
|
@@ -13465,16 +13296,12 @@ class FirmService {
|
|
|
13465
13296
|
*/
|
|
13466
13297
|
register(data) {
|
|
13467
13298
|
return this.http.post(`${this.environment.apiV2}/firms/registration`, data)
|
|
13468
|
-
.pipe(map((firm) =>
|
|
13469
|
-
return plainToClass(Firm, firm);
|
|
13470
|
-
}));
|
|
13299
|
+
.pipe(map((firm) => plainToClass(Firm, firm)));
|
|
13471
13300
|
}
|
|
13472
13301
|
get() {
|
|
13473
13302
|
if (!this.firm) {
|
|
13474
13303
|
this.http.get(`${this.environment.apiV2}/firms/current`)
|
|
13475
|
-
.pipe(map((firm) =>
|
|
13476
|
-
return plainToClass(Firm, firm);
|
|
13477
|
-
}))
|
|
13304
|
+
.pipe(map((firm) => plainToClass(Firm, firm)))
|
|
13478
13305
|
.subscribe((firm) => {
|
|
13479
13306
|
this.firm = firm;
|
|
13480
13307
|
this.firmSubject.next(this.firm);
|
|
@@ -13494,14 +13321,10 @@ class FirmService {
|
|
|
13494
13321
|
*/
|
|
13495
13322
|
getAll() {
|
|
13496
13323
|
return this.http.get(`${this.environment.apiV2}/firms`)
|
|
13497
|
-
.pipe(map((response) =>
|
|
13498
|
-
return response['hydra:member'].map((firmBase) => plainToClass(Firm, firmBase));
|
|
13499
|
-
}));
|
|
13324
|
+
.pipe(map((response) => response['hydra:member'].map((firmBase) => plainToClass(Firm, firmBase))));
|
|
13500
13325
|
}
|
|
13501
13326
|
getByType(type) {
|
|
13502
|
-
return this.getAll().pipe(map((firms) =>
|
|
13503
|
-
return firms.filter((firm) => firm.type === type);
|
|
13504
|
-
}));
|
|
13327
|
+
return this.getAll().pipe(map((firms) => firms.filter((firm) => firm.type === type)));
|
|
13505
13328
|
}
|
|
13506
13329
|
updatePhoto(firm, photo) {
|
|
13507
13330
|
return this.http.post(`${this.environment.apiV2}/firms/photo?_method=PUT`, photo)
|
|
@@ -13512,9 +13335,9 @@ class FirmService {
|
|
|
13512
13335
|
}));
|
|
13513
13336
|
}
|
|
13514
13337
|
}
|
|
13515
|
-
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13516
|
-
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13338
|
+
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 });
|
|
13339
|
+
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, providedIn: 'root' });
|
|
13340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FirmService, decorators: [{
|
|
13518
13341
|
type: Injectable,
|
|
13519
13342
|
args: [{
|
|
13520
13343
|
providedIn: 'root'
|
|
@@ -13587,9 +13410,9 @@ class IncomeSourceForecastService extends RestService {
|
|
|
13587
13410
|
}).flat();
|
|
13588
13411
|
}
|
|
13589
13412
|
}
|
|
13590
|
-
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13591
|
-
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13413
|
+
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13414
|
+
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
|
|
13415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
|
|
13593
13416
|
type: Injectable,
|
|
13594
13417
|
args: [{
|
|
13595
13418
|
providedIn: 'root'
|
|
@@ -13659,9 +13482,9 @@ class SalaryForecastService extends RestService {
|
|
|
13659
13482
|
}).flat();
|
|
13660
13483
|
}
|
|
13661
13484
|
}
|
|
13662
|
-
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13663
|
-
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13485
|
+
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13486
|
+
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
|
|
13487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SalaryForecastService, decorators: [{
|
|
13665
13488
|
type: Injectable,
|
|
13666
13489
|
args: [{
|
|
13667
13490
|
providedIn: 'root'
|
|
@@ -13737,9 +13560,9 @@ class SoleForecastService extends RestService {
|
|
|
13737
13560
|
});
|
|
13738
13561
|
}
|
|
13739
13562
|
}
|
|
13740
|
-
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13741
|
-
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13563
|
+
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13564
|
+
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
|
|
13565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleForecastService, decorators: [{
|
|
13743
13566
|
type: Injectable,
|
|
13744
13567
|
args: [{
|
|
13745
13568
|
providedIn: 'root'
|
|
@@ -13765,9 +13588,7 @@ class IncomeSourceService extends RestService {
|
|
|
13765
13588
|
*/
|
|
13766
13589
|
getTaxCalculation(salaryForecast) {
|
|
13767
13590
|
return this.http.post(`${this.environment.apiV2}/${this.url}/tax-calculation`, salaryForecast)
|
|
13768
|
-
.pipe(map((response) =>
|
|
13769
|
-
return plainToClass(SalaryForecast, response);
|
|
13770
|
-
}));
|
|
13591
|
+
.pipe(map((response) => plainToClass(SalaryForecast, response)));
|
|
13771
13592
|
}
|
|
13772
13593
|
/**
|
|
13773
13594
|
* Add batch of income sources
|
|
@@ -13818,9 +13639,7 @@ class IncomeSourceService extends RestService {
|
|
|
13818
13639
|
if (!this.incomeSourceTypes) {
|
|
13819
13640
|
this.incomeSourceTypes = [];
|
|
13820
13641
|
this.http.get(`${this.environment.apiV2}/income-source-types`)
|
|
13821
|
-
.pipe(map((response) =>
|
|
13822
|
-
return response.map((item) => plainToClass(IncomeSourceType, item));
|
|
13823
|
-
}))
|
|
13642
|
+
.pipe(map((response) => response.map((item) => plainToClass(IncomeSourceType, item))))
|
|
13824
13643
|
.subscribe((otherIncomesTypes) => {
|
|
13825
13644
|
this.incomeSourceTypes = otherIncomesTypes;
|
|
13826
13645
|
this.incomeSourceTypeSubject.next(this.incomeSourceTypes);
|
|
@@ -13838,9 +13657,9 @@ class IncomeSourceService extends RestService {
|
|
|
13838
13657
|
});
|
|
13839
13658
|
}
|
|
13840
13659
|
}
|
|
13841
|
-
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13842
|
-
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13660
|
+
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13661
|
+
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
|
|
13662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IncomeSourceService, decorators: [{
|
|
13844
13663
|
type: Injectable,
|
|
13845
13664
|
args: [{
|
|
13846
13665
|
providedIn: 'root'
|
|
@@ -13862,9 +13681,7 @@ class BorrowingExpenseService {
|
|
|
13862
13681
|
get() {
|
|
13863
13682
|
if (!this._borrowingExpenses) {
|
|
13864
13683
|
this.http.get(`${this.environment.apiV2}/borrowing-expenses`)
|
|
13865
|
-
.pipe(map((response) =>
|
|
13866
|
-
return response.map((item) => plainToClass(BorrowingExpense, item));
|
|
13867
|
-
}))
|
|
13684
|
+
.pipe(map((response) => response.map((item) => plainToClass(BorrowingExpense, item))))
|
|
13868
13685
|
.subscribe((borrowingExpenses) => {
|
|
13869
13686
|
this._borrowingExpenses = borrowingExpenses;
|
|
13870
13687
|
this.borrowingExpensesSubject.next(this._borrowingExpenses);
|
|
@@ -13903,9 +13720,9 @@ class BorrowingExpenseService {
|
|
|
13903
13720
|
}));
|
|
13904
13721
|
}
|
|
13905
13722
|
}
|
|
13906
|
-
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13907
|
-
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13723
|
+
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 });
|
|
13724
|
+
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
|
|
13725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BorrowingExpenseService, decorators: [{
|
|
13909
13726
|
type: Injectable,
|
|
13910
13727
|
args: [{
|
|
13911
13728
|
providedIn: 'root'
|
|
@@ -13942,9 +13759,7 @@ class LoanService extends RestService$1 {
|
|
|
13942
13759
|
* Calculate loan payments
|
|
13943
13760
|
*/
|
|
13944
13761
|
calculateLoanPayments(loan) {
|
|
13945
|
-
return this.http.post(`${this.apiUrl}/calculation`, loan).pipe(map((response) =>
|
|
13946
|
-
return plainToClass(Loan, response);
|
|
13947
|
-
}));
|
|
13762
|
+
return this.http.post(`${this.apiUrl}/calculation`, loan).pipe(map((response) => plainToClass(Loan, response)));
|
|
13948
13763
|
}
|
|
13949
13764
|
/**
|
|
13950
13765
|
* Add new loan payout
|
|
@@ -13987,9 +13802,9 @@ class LoanService extends RestService$1 {
|
|
|
13987
13802
|
}));
|
|
13988
13803
|
}
|
|
13989
13804
|
}
|
|
13990
|
-
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13991
|
-
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13805
|
+
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13806
|
+
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, providedIn: 'root' });
|
|
13807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoanService, decorators: [{
|
|
13993
13808
|
type: Injectable,
|
|
13994
13809
|
args: [{
|
|
13995
13810
|
providedIn: 'root'
|
|
@@ -14008,9 +13823,9 @@ class PropertyCategoryService extends RestService$1 {
|
|
|
14008
13823
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
14009
13824
|
}
|
|
14010
13825
|
}
|
|
14011
|
-
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14012
|
-
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13826
|
+
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13827
|
+
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
|
|
13828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryService, decorators: [{
|
|
14014
13829
|
type: Injectable,
|
|
14015
13830
|
args: [{
|
|
14016
13831
|
providedIn: 'root'
|
|
@@ -14026,9 +13841,9 @@ class PropertyCategoryMovementService extends RestService$1 {
|
|
|
14026
13841
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
14027
13842
|
}
|
|
14028
13843
|
}
|
|
14029
|
-
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14030
|
-
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13844
|
+
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13845
|
+
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
|
|
13846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
|
|
14032
13847
|
type: Injectable,
|
|
14033
13848
|
args: [{
|
|
14034
13849
|
providedIn: 'root'
|
|
@@ -14070,9 +13885,9 @@ class PropertyDocumentService extends RestService$1 {
|
|
|
14070
13885
|
});
|
|
14071
13886
|
}
|
|
14072
13887
|
}
|
|
14073
|
-
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14074
|
-
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13888
|
+
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13889
|
+
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
|
|
13890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyDocumentService, decorators: [{
|
|
14076
13891
|
type: Injectable,
|
|
14077
13892
|
args: [{
|
|
14078
13893
|
providedIn: 'root'
|
|
@@ -14089,9 +13904,9 @@ class TaxExemptionService extends RestService$1 {
|
|
|
14089
13904
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
14090
13905
|
}
|
|
14091
13906
|
}
|
|
14092
|
-
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14093
|
-
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13907
|
+
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13908
|
+
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
|
|
13909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxExemptionService, decorators: [{
|
|
14095
13910
|
type: Injectable,
|
|
14096
13911
|
args: [{
|
|
14097
13912
|
providedIn: 'root'
|
|
@@ -14107,9 +13922,9 @@ class PropertySaleService extends RestService$1 {
|
|
|
14107
13922
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
14108
13923
|
}
|
|
14109
13924
|
}
|
|
14110
|
-
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14111
|
-
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13925
|
+
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13926
|
+
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
|
|
13927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertySaleService, decorators: [{
|
|
14113
13928
|
type: Injectable,
|
|
14114
13929
|
args: [{
|
|
14115
13930
|
providedIn: 'root'
|
|
@@ -14156,9 +13971,9 @@ class PropertyShareService extends RestService$1 {
|
|
|
14156
13971
|
this.listenCSE(PropertySale, ['post', 'delete'], this.resetCache);
|
|
14157
13972
|
}
|
|
14158
13973
|
}
|
|
14159
|
-
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14160
|
-
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13974
|
+
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13975
|
+
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
|
|
13976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyShareService, decorators: [{
|
|
14162
13977
|
type: Injectable,
|
|
14163
13978
|
args: [{
|
|
14164
13979
|
providedIn: 'root'
|
|
@@ -14255,9 +14070,9 @@ class PropertyService extends RestService$1 {
|
|
|
14255
14070
|
}));
|
|
14256
14071
|
}
|
|
14257
14072
|
}
|
|
14258
|
-
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14259
|
-
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14073
|
+
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14074
|
+
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, providedIn: 'root' });
|
|
14075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyService, decorators: [{
|
|
14261
14076
|
type: Injectable,
|
|
14262
14077
|
args: [{
|
|
14263
14078
|
providedIn: 'root'
|
|
@@ -14301,9 +14116,9 @@ class ServiceNotificationService extends RestService {
|
|
|
14301
14116
|
});
|
|
14302
14117
|
}
|
|
14303
14118
|
}
|
|
14304
|
-
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14305
|
-
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14119
|
+
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 });
|
|
14120
|
+
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
|
|
14121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceNotificationService, decorators: [{
|
|
14307
14122
|
type: Injectable,
|
|
14308
14123
|
args: [{
|
|
14309
14124
|
providedIn: 'root'
|
|
@@ -14348,13 +14163,13 @@ class SoleBusinessService extends RestService {
|
|
|
14348
14163
|
if (error.status === 422) {
|
|
14349
14164
|
this.toastService.error(error.error.violations[0].message);
|
|
14350
14165
|
}
|
|
14351
|
-
return throwError
|
|
14166
|
+
return throwError(error);
|
|
14352
14167
|
}));
|
|
14353
14168
|
}
|
|
14354
14169
|
}
|
|
14355
|
-
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14356
|
-
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14170
|
+
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14171
|
+
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
|
|
14172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessService, decorators: [{
|
|
14358
14173
|
type: Injectable,
|
|
14359
14174
|
args: [{
|
|
14360
14175
|
providedIn: 'root'
|
|
@@ -14369,9 +14184,9 @@ class SoleBusinessActivityService extends RestService {
|
|
|
14369
14184
|
this.isHydra = true;
|
|
14370
14185
|
}
|
|
14371
14186
|
}
|
|
14372
|
-
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14373
|
-
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14187
|
+
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14188
|
+
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
|
|
14189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
|
|
14375
14190
|
type: Injectable,
|
|
14376
14191
|
args: [{
|
|
14377
14192
|
providedIn: 'root'
|
|
@@ -14397,9 +14212,9 @@ class SoleBusinessLossService extends RestService {
|
|
|
14397
14212
|
});
|
|
14398
14213
|
}
|
|
14399
14214
|
}
|
|
14400
|
-
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14401
|
-
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14215
|
+
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14216
|
+
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
|
|
14217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossService, decorators: [{
|
|
14403
14218
|
type: Injectable,
|
|
14404
14219
|
args: [{
|
|
14405
14220
|
providedIn: 'root'
|
|
@@ -14417,9 +14232,9 @@ class SoleBusinessLossOffsetRuleService extends RestService {
|
|
|
14417
14232
|
this.isHydra = true;
|
|
14418
14233
|
}
|
|
14419
14234
|
}
|
|
14420
|
-
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14421
|
-
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14235
|
+
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14236
|
+
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
|
|
14237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
|
|
14423
14238
|
type: Injectable,
|
|
14424
14239
|
args: [{
|
|
14425
14240
|
providedIn: 'root'
|
|
@@ -14434,9 +14249,9 @@ class SoleContactService extends RestService {
|
|
|
14434
14249
|
this.isHydra = true;
|
|
14435
14250
|
}
|
|
14436
14251
|
}
|
|
14437
|
-
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14438
|
-
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14252
|
+
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14253
|
+
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, providedIn: 'root' });
|
|
14254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleContactService, decorators: [{
|
|
14440
14255
|
type: Injectable,
|
|
14441
14256
|
args: [{
|
|
14442
14257
|
providedIn: 'root'
|
|
@@ -14481,7 +14296,7 @@ class SoleDepreciationMethodService {
|
|
|
14481
14296
|
return this.cache;
|
|
14482
14297
|
}), catchError((error) => {
|
|
14483
14298
|
this.toastService.error(error.error['hydra:description']);
|
|
14484
|
-
return throwError
|
|
14299
|
+
return throwError(error);
|
|
14485
14300
|
}));
|
|
14486
14301
|
}
|
|
14487
14302
|
listenSoleDetailsChanges() {
|
|
@@ -14492,9 +14307,9 @@ class SoleDepreciationMethodService {
|
|
|
14492
14307
|
});
|
|
14493
14308
|
}
|
|
14494
14309
|
}
|
|
14495
|
-
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14496
|
-
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14310
|
+
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 });
|
|
14311
|
+
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
|
|
14312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
|
|
14498
14313
|
type: Injectable,
|
|
14499
14314
|
args: [{
|
|
14500
14315
|
providedIn: 'root'
|
|
@@ -14547,9 +14362,9 @@ class SoleDetailsService {
|
|
|
14547
14362
|
}));
|
|
14548
14363
|
}
|
|
14549
14364
|
}
|
|
14550
|
-
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14551
|
-
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14365
|
+
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 });
|
|
14366
|
+
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
|
|
14367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleDetailsService, decorators: [{
|
|
14553
14368
|
type: Injectable,
|
|
14554
14369
|
args: [{
|
|
14555
14370
|
providedIn: 'root'
|
|
@@ -14622,9 +14437,9 @@ class SoleInvoiceService extends RestService {
|
|
|
14622
14437
|
});
|
|
14623
14438
|
}
|
|
14624
14439
|
}
|
|
14625
|
-
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14626
|
-
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14440
|
+
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14441
|
+
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
|
|
14442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceService, decorators: [{
|
|
14628
14443
|
type: Injectable,
|
|
14629
14444
|
args: [{
|
|
14630
14445
|
providedIn: 'root'
|
|
@@ -14639,9 +14454,9 @@ class SoleInvoiceTemplateService extends RestService {
|
|
|
14639
14454
|
this.isHydra = true;
|
|
14640
14455
|
}
|
|
14641
14456
|
}
|
|
14642
|
-
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14643
|
-
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14457
|
+
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14458
|
+
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
|
|
14459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
|
|
14645
14460
|
type: Injectable,
|
|
14646
14461
|
args: [{
|
|
14647
14462
|
providedIn: 'root'
|
|
@@ -14656,9 +14471,9 @@ class BasReportService extends RestService {
|
|
|
14656
14471
|
this.isHydra = true;
|
|
14657
14472
|
}
|
|
14658
14473
|
}
|
|
14659
|
-
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14660
|
-
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14474
|
+
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14475
|
+
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, providedIn: 'root' });
|
|
14476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BasReportService, decorators: [{
|
|
14662
14477
|
type: Injectable,
|
|
14663
14478
|
args: [{
|
|
14664
14479
|
providedIn: 'root'
|
|
@@ -14684,9 +14499,9 @@ class ServicePaymentService extends RestService$1 {
|
|
|
14684
14499
|
return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
|
|
14685
14500
|
}
|
|
14686
14501
|
}
|
|
14687
|
-
ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14688
|
-
ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14689
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14502
|
+
ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14503
|
+
ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
|
|
14504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentService, decorators: [{
|
|
14690
14505
|
type: Injectable,
|
|
14691
14506
|
args: [{
|
|
14692
14507
|
providedIn: 'root'
|
|
@@ -14734,9 +14549,9 @@ class ServicePaymentMethodService extends RestService$1 {
|
|
|
14734
14549
|
});
|
|
14735
14550
|
}
|
|
14736
14551
|
}
|
|
14737
|
-
ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14738
|
-
ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14739
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14552
|
+
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 });
|
|
14553
|
+
ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
|
|
14554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
|
|
14740
14555
|
type: Injectable,
|
|
14741
14556
|
args: [{
|
|
14742
14557
|
providedIn: 'root'
|
|
@@ -14759,9 +14574,9 @@ class ServicePriceService extends RestService$1 {
|
|
|
14759
14574
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
14760
14575
|
}
|
|
14761
14576
|
}
|
|
14762
|
-
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14763
|
-
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14577
|
+
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14578
|
+
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
|
|
14579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServicePriceService, decorators: [{
|
|
14765
14580
|
type: Injectable,
|
|
14766
14581
|
args: [{
|
|
14767
14582
|
providedIn: 'root'
|
|
@@ -14837,9 +14652,7 @@ class SubscriptionService extends RestService$1 {
|
|
|
14837
14652
|
* Get difference between current subscription and selected new subscription
|
|
14838
14653
|
*/
|
|
14839
14654
|
getProrationCost(subscription) {
|
|
14840
|
-
return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/proration-cost`, subscription).pipe(map((prorationCost) =>
|
|
14841
|
-
return prorationCost;
|
|
14842
|
-
}));
|
|
14655
|
+
return this.http.put(`${this.environment.apiV2}/service-subscriptions/${subscription.id}/proration-cost`, subscription).pipe(map((prorationCost) => prorationCost));
|
|
14843
14656
|
}
|
|
14844
14657
|
/**
|
|
14845
14658
|
* Change subscription plan
|
|
@@ -14877,9 +14690,9 @@ class SubscriptionService extends RestService$1 {
|
|
|
14877
14690
|
});
|
|
14878
14691
|
}
|
|
14879
14692
|
}
|
|
14880
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14881
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14693
|
+
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 });
|
|
14694
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
|
|
14695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
14883
14696
|
type: Injectable,
|
|
14884
14697
|
args: [{
|
|
14885
14698
|
providedIn: 'root'
|
|
@@ -14899,9 +14712,9 @@ class ServiceProductService extends RestService$1 {
|
|
|
14899
14712
|
this.isApiPlatform = true;
|
|
14900
14713
|
}
|
|
14901
14714
|
}
|
|
14902
|
-
ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14903
|
-
ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14715
|
+
ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14716
|
+
ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
|
|
14717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ServiceProductService, decorators: [{
|
|
14905
14718
|
type: Injectable,
|
|
14906
14719
|
args: [{
|
|
14907
14720
|
providedIn: 'root'
|
|
@@ -14933,9 +14746,9 @@ class TaxReviewHistoryService extends RestService {
|
|
|
14933
14746
|
});
|
|
14934
14747
|
}
|
|
14935
14748
|
}
|
|
14936
|
-
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14937
|
-
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14749
|
+
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14750
|
+
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
|
|
14751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
|
|
14939
14752
|
type: Injectable,
|
|
14940
14753
|
args: [{
|
|
14941
14754
|
providedIn: 'root'
|
|
@@ -15024,9 +14837,9 @@ class TaxReviewService extends RestService {
|
|
|
15024
14837
|
});
|
|
15025
14838
|
}
|
|
15026
14839
|
}
|
|
15027
|
-
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15028
|
-
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14840
|
+
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14841
|
+
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
|
|
14842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxReviewService, decorators: [{
|
|
15030
14843
|
type: Injectable,
|
|
15031
14844
|
args: [{
|
|
15032
14845
|
providedIn: 'root'
|
|
@@ -15083,9 +14896,9 @@ class TaxSummaryService {
|
|
|
15083
14896
|
});
|
|
15084
14897
|
}
|
|
15085
14898
|
}
|
|
15086
|
-
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15087
|
-
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14899
|
+
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 });
|
|
14900
|
+
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
|
|
14901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TaxSummaryService, decorators: [{
|
|
15089
14902
|
type: Injectable,
|
|
15090
14903
|
args: [{
|
|
15091
14904
|
providedIn: 'root'
|
|
@@ -15104,9 +14917,9 @@ class AllocationRuleService extends RestService$1 {
|
|
|
15104
14917
|
this.isApiPlatform = true;
|
|
15105
14918
|
}
|
|
15106
14919
|
}
|
|
15107
|
-
AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15108
|
-
AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14920
|
+
AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14921
|
+
AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
|
|
14922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AllocationRuleService, decorators: [{
|
|
15110
14923
|
type: Injectable,
|
|
15111
14924
|
args: [{
|
|
15112
14925
|
providedIn: 'root'
|
|
@@ -15156,9 +14969,7 @@ class TransactionAllocationService extends RestService {
|
|
|
15156
14969
|
getByTransactions(transactions) {
|
|
15157
14970
|
const ids = transactions.map((transaction) => transaction.id);
|
|
15158
14971
|
return this.get()
|
|
15159
|
-
.pipe(map((transactionAllocations) =>
|
|
15160
|
-
return transactionAllocations.filter((allocation) => ids.includes(allocation.transaction.id));
|
|
15161
|
-
}));
|
|
14972
|
+
.pipe(map((transactionAllocations) => transactionAllocations.filter((allocation) => ids.includes(allocation.transaction.id))));
|
|
15162
14973
|
}
|
|
15163
14974
|
listenEvents() {
|
|
15164
14975
|
this.onTransactionsCreated();
|
|
@@ -15197,9 +15008,9 @@ class TransactionAllocationService extends RestService {
|
|
|
15197
15008
|
});
|
|
15198
15009
|
}
|
|
15199
15010
|
}
|
|
15200
|
-
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15201
|
-
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15011
|
+
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15012
|
+
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
|
|
15013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionAllocationService, decorators: [{
|
|
15203
15014
|
type: Injectable,
|
|
15204
15015
|
args: [{
|
|
15205
15016
|
providedIn: 'root'
|
|
@@ -15225,9 +15036,9 @@ class TransactionReceiptService extends ReceiptService {
|
|
|
15225
15036
|
this.listenEvents();
|
|
15226
15037
|
}
|
|
15227
15038
|
}
|
|
15228
|
-
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15229
|
-
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15039
|
+
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 });
|
|
15040
|
+
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
|
|
15041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionReceiptService, decorators: [{
|
|
15231
15042
|
type: Injectable,
|
|
15232
15043
|
args: [{
|
|
15233
15044
|
providedIn: 'root'
|
|
@@ -15308,41 +15119,31 @@ class TransactionService extends RestService {
|
|
|
15308
15119
|
*/
|
|
15309
15120
|
getByPropertyId(propertyId) {
|
|
15310
15121
|
return this.get()
|
|
15311
|
-
.pipe(map((transactions) =>
|
|
15312
|
-
return transactions.filter((transaction) => {
|
|
15313
|
-
return transaction.property?.id === propertyId;
|
|
15314
|
-
});
|
|
15315
|
-
}));
|
|
15122
|
+
.pipe(map((transactions) => transactions.filter((transaction) => transaction.property?.id === propertyId)));
|
|
15316
15123
|
}
|
|
15317
15124
|
/**
|
|
15318
15125
|
* get list of transactions with tank type 'Work'
|
|
15319
15126
|
*/
|
|
15320
15127
|
getWorkTransactions() {
|
|
15321
15128
|
return this.get()
|
|
15322
|
-
.pipe(map((transactions) =>
|
|
15323
|
-
return transactions.filter((transaction) => transaction.isWorkTank());
|
|
15324
|
-
}));
|
|
15129
|
+
.pipe(map((transactions) => transactions.filter((transaction) => transaction.isWorkTank())));
|
|
15325
15130
|
}
|
|
15326
15131
|
/**
|
|
15327
15132
|
* Get list of property holding costs (transactions related to vacant land property)
|
|
15328
15133
|
*/
|
|
15329
15134
|
getPropertyHoldingCosts(propertyId) {
|
|
15330
15135
|
return this.get()
|
|
15331
|
-
.pipe(map((transactions) =>
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
.toArray();
|
|
15336
|
-
}));
|
|
15136
|
+
.pipe(map((transactions) => new TransactionCollection(transactions)
|
|
15137
|
+
.filterBy('property.id', propertyId)
|
|
15138
|
+
.filterBy('property.category.id', PropertyCategoryListEnum.VACANT_LAND)
|
|
15139
|
+
.toArray()));
|
|
15337
15140
|
}
|
|
15338
15141
|
/**
|
|
15339
15142
|
* get list of taxable transactions with tank type 'Work'
|
|
15340
15143
|
*/
|
|
15341
15144
|
getTaxableWorkTransactions() {
|
|
15342
15145
|
return this.getWorkTransactions()
|
|
15343
|
-
.pipe(map((transactions) =>
|
|
15344
|
-
return transactions.filter((transaction) => !!transaction.chartAccounts.taxReturnItem);
|
|
15345
|
-
}));
|
|
15146
|
+
.pipe(map((transactions) => transactions.filter((transaction) => !!transaction.chartAccounts.taxReturnItem)));
|
|
15346
15147
|
}
|
|
15347
15148
|
/**
|
|
15348
15149
|
* add multiple transactions
|
|
@@ -15546,9 +15347,9 @@ class TransactionService extends RestService {
|
|
|
15546
15347
|
});
|
|
15547
15348
|
}
|
|
15548
15349
|
}
|
|
15549
|
-
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15550
|
-
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15551
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15350
|
+
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 });
|
|
15351
|
+
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, providedIn: 'root' });
|
|
15352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionService, decorators: [{
|
|
15552
15353
|
type: Injectable,
|
|
15553
15354
|
args: [{
|
|
15554
15355
|
providedIn: 'root'
|
|
@@ -15577,9 +15378,9 @@ class TutorialVideoService {
|
|
|
15577
15378
|
}
|
|
15578
15379
|
TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
|
|
15579
15380
|
TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
|
|
15580
|
-
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15581
|
-
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15381
|
+
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 });
|
|
15382
|
+
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
|
|
15383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TutorialVideoService, decorators: [{
|
|
15583
15384
|
type: Injectable,
|
|
15584
15385
|
args: [{
|
|
15585
15386
|
providedIn: 'root'
|
|
@@ -15599,9 +15400,9 @@ class VehicleService extends RestService {
|
|
|
15599
15400
|
this.modelClass = Vehicle;
|
|
15600
15401
|
}
|
|
15601
15402
|
}
|
|
15602
|
-
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15603
|
-
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15403
|
+
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15404
|
+
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, providedIn: 'root' });
|
|
15405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleService, decorators: [{
|
|
15605
15406
|
type: Injectable,
|
|
15606
15407
|
args: [{
|
|
15607
15408
|
providedIn: 'root'
|
|
@@ -15673,9 +15474,9 @@ class VehicleClaimService extends RestService {
|
|
|
15673
15474
|
combineLatest(batch$).subscribe();
|
|
15674
15475
|
}
|
|
15675
15476
|
}
|
|
15676
|
-
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15677
|
-
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15477
|
+
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15478
|
+
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
|
|
15479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimService, decorators: [{
|
|
15679
15480
|
type: Injectable,
|
|
15680
15481
|
args: [{
|
|
15681
15482
|
providedIn: 'root'
|
|
@@ -15752,9 +15553,9 @@ class VehicleClaimDetailsService {
|
|
|
15752
15553
|
this.update(vehicleClaimDetails).subscribe();
|
|
15753
15554
|
}
|
|
15754
15555
|
}
|
|
15755
|
-
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15756
|
-
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15556
|
+
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 });
|
|
15557
|
+
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
|
|
15558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
|
|
15758
15559
|
type: Injectable,
|
|
15759
15560
|
args: [{
|
|
15760
15561
|
providedIn: 'root'
|
|
@@ -15774,9 +15575,9 @@ class VehicleLogbookService extends RestService {
|
|
|
15774
15575
|
this.modelClass = VehicleLogbook;
|
|
15775
15576
|
}
|
|
15776
15577
|
}
|
|
15777
|
-
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15778
|
-
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15578
|
+
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15579
|
+
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
|
|
15580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: VehicleLogbookService, decorators: [{
|
|
15780
15581
|
type: Injectable,
|
|
15781
15582
|
args: [{
|
|
15782
15583
|
providedIn: 'root'
|
|
@@ -15793,9 +15594,9 @@ class AnnualClientDetailsService extends RestService$1 {
|
|
|
15793
15594
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
|
|
15794
15595
|
}
|
|
15795
15596
|
}
|
|
15796
|
-
AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15797
|
-
AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15597
|
+
AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15598
|
+
AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
|
|
15599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
|
|
15799
15600
|
type: Injectable,
|
|
15800
15601
|
args: [{
|
|
15801
15602
|
providedIn: 'root'
|
|
@@ -15817,9 +15618,7 @@ class OccupationService {
|
|
|
15817
15618
|
getOccupations() {
|
|
15818
15619
|
if (!this._occupations) {
|
|
15819
15620
|
this.http.get(`${this.environment.apiV2}/occupations`)
|
|
15820
|
-
.pipe(map((response) =>
|
|
15821
|
-
return response.map((item) => plainToClass(Occupation, item));
|
|
15822
|
-
}))
|
|
15621
|
+
.pipe(map((response) => response.map((item) => plainToClass(Occupation, item))))
|
|
15823
15622
|
.subscribe((occupations) => {
|
|
15824
15623
|
this._occupations = occupations;
|
|
15825
15624
|
this.occupationsSubject.next(occupations);
|
|
@@ -15828,9 +15627,9 @@ class OccupationService {
|
|
|
15828
15627
|
return this.occupationsSubject.asObservable();
|
|
15829
15628
|
}
|
|
15830
15629
|
}
|
|
15831
|
-
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15832
|
-
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15630
|
+
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 });
|
|
15631
|
+
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, providedIn: 'root' });
|
|
15632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: OccupationService, decorators: [{
|
|
15834
15633
|
type: Injectable,
|
|
15835
15634
|
args: [{
|
|
15836
15635
|
providedIn: 'root'
|
|
@@ -15874,9 +15673,9 @@ class UserEventSettingService extends RestService {
|
|
|
15874
15673
|
}));
|
|
15875
15674
|
}
|
|
15876
15675
|
}
|
|
15877
|
-
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15878
|
-
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15879
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15676
|
+
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15677
|
+
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
|
|
15678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventSettingService, decorators: [{
|
|
15880
15679
|
type: Injectable,
|
|
15881
15680
|
args: [{
|
|
15882
15681
|
providedIn: 'root'
|
|
@@ -15891,9 +15690,9 @@ class UserEventTypeService extends RestService {
|
|
|
15891
15690
|
this.isHydra = true;
|
|
15892
15691
|
}
|
|
15893
15692
|
}
|
|
15894
|
-
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15895
|
-
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15693
|
+
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15694
|
+
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
|
|
15695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UserEventTypeService, decorators: [{
|
|
15897
15696
|
type: Injectable,
|
|
15898
15697
|
args: [{
|
|
15899
15698
|
providedIn: 'root'
|
|
@@ -15910,9 +15709,9 @@ class UsersInviteService extends RestService {
|
|
|
15910
15709
|
this.url = 'users/invite';
|
|
15911
15710
|
}
|
|
15912
15711
|
}
|
|
15913
|
-
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15914
|
-
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15712
|
+
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15713
|
+
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
|
|
15714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UsersInviteService, decorators: [{
|
|
15916
15715
|
type: Injectable,
|
|
15917
15716
|
args: [{
|
|
15918
15717
|
providedIn: 'root'
|
|
@@ -15929,9 +15728,9 @@ class HoldingService extends RestService$1 {
|
|
|
15929
15728
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
15930
15729
|
}
|
|
15931
15730
|
}
|
|
15932
|
-
HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15933
|
-
HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15731
|
+
HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15732
|
+
HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, providedIn: 'root' });
|
|
15733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingService, decorators: [{
|
|
15935
15734
|
type: Injectable,
|
|
15936
15735
|
args: [{
|
|
15937
15736
|
providedIn: 'root'
|
|
@@ -15948,9 +15747,9 @@ class HoldingTypeService extends RestService$1 {
|
|
|
15948
15747
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
15949
15748
|
}
|
|
15950
15749
|
}
|
|
15951
|
-
HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15952
|
-
HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15750
|
+
HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15751
|
+
HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
|
|
15752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeService, decorators: [{
|
|
15954
15753
|
type: Injectable,
|
|
15955
15754
|
args: [{
|
|
15956
15755
|
providedIn: 'root'
|
|
@@ -15967,9 +15766,9 @@ class HoldingSaleService extends RestService$1 {
|
|
|
15967
15766
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
15968
15767
|
}
|
|
15969
15768
|
}
|
|
15970
|
-
HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15971
|
-
HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15769
|
+
HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15770
|
+
HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
|
|
15771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingSaleService, decorators: [{
|
|
15973
15772
|
type: Injectable,
|
|
15974
15773
|
args: [{
|
|
15975
15774
|
providedIn: 'root'
|
|
@@ -16064,9 +15863,9 @@ class HoldingTypeExchangeService extends DataService {
|
|
|
16064
15863
|
this.setCache(HoldingTypeExchanges);
|
|
16065
15864
|
}
|
|
16066
15865
|
}
|
|
16067
|
-
HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16068
|
-
HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15866
|
+
HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15867
|
+
HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
|
|
15868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
|
|
16070
15869
|
type: Injectable,
|
|
16071
15870
|
args: [{
|
|
16072
15871
|
providedIn: 'root'
|
|
@@ -16297,9 +16096,9 @@ class AccountSetupService {
|
|
|
16297
16096
|
}));
|
|
16298
16097
|
}
|
|
16299
16098
|
}
|
|
16300
|
-
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16301
|
-
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16099
|
+
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 });
|
|
16100
|
+
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
|
|
16101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AccountSetupService, decorators: [{
|
|
16303
16102
|
type: Injectable,
|
|
16304
16103
|
args: [{
|
|
16305
16104
|
providedIn: 'root'
|
|
@@ -16325,9 +16124,9 @@ class RewardfulService {
|
|
|
16325
16124
|
});
|
|
16326
16125
|
}
|
|
16327
16126
|
}
|
|
16328
|
-
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16329
|
-
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16127
|
+
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16128
|
+
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, providedIn: 'root' });
|
|
16129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: RewardfulService, decorators: [{
|
|
16331
16130
|
type: Injectable,
|
|
16332
16131
|
args: [{
|
|
16333
16132
|
providedIn: 'root'
|
|
@@ -16372,9 +16171,9 @@ class AssetsService {
|
|
|
16372
16171
|
return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
|
|
16373
16172
|
}
|
|
16374
16173
|
}
|
|
16375
|
-
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16376
|
-
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16174
|
+
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 });
|
|
16175
|
+
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, providedIn: 'root' });
|
|
16176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AssetsService, decorators: [{
|
|
16378
16177
|
type: Injectable,
|
|
16379
16178
|
args: [{
|
|
16380
16179
|
providedIn: 'root'
|
|
@@ -16411,18 +16210,14 @@ class BankTransactionCalculationService {
|
|
|
16411
16210
|
* @TODO Alex: consider to move to collection
|
|
16412
16211
|
*/
|
|
16413
16212
|
getAllocatedBankTransactions(bankTransactions, allocations) {
|
|
16414
|
-
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) =>
|
|
16415
|
-
return this.isAllocated(bankTransaction, allocations);
|
|
16416
|
-
}));
|
|
16213
|
+
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => this.isAllocated(bankTransaction, allocations)));
|
|
16417
16214
|
}
|
|
16418
16215
|
/**
|
|
16419
16216
|
* Get collection of unallocated bank transactions
|
|
16420
16217
|
* @TODO Alex: consider to move to collection
|
|
16421
16218
|
*/
|
|
16422
16219
|
getUnallocated(bankTransactions, allocations) {
|
|
16423
|
-
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) =>
|
|
16424
|
-
return !this.isAllocated(bankTransaction, allocations);
|
|
16425
|
-
}));
|
|
16220
|
+
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => !this.isAllocated(bankTransaction, allocations)));
|
|
16426
16221
|
}
|
|
16427
16222
|
/**
|
|
16428
16223
|
* Allocated sum of credit transactions
|
|
@@ -16437,9 +16232,9 @@ class BankTransactionCalculationService {
|
|
|
16437
16232
|
return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
|
|
16438
16233
|
}
|
|
16439
16234
|
}
|
|
16440
|
-
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16441
|
-
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16235
|
+
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16236
|
+
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
|
|
16237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
|
|
16443
16238
|
type: Injectable,
|
|
16444
16239
|
args: [{
|
|
16445
16240
|
providedIn: 'root'
|
|
@@ -16468,9 +16263,9 @@ class BankAccountCalculationService {
|
|
|
16468
16263
|
return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
|
|
16469
16264
|
}
|
|
16470
16265
|
}
|
|
16471
|
-
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16472
|
-
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16266
|
+
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16267
|
+
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
|
|
16268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BankAccountCalculationService, decorators: [{
|
|
16474
16269
|
type: Injectable,
|
|
16475
16270
|
args: [{
|
|
16476
16271
|
providedIn: 'root'
|
|
@@ -16495,9 +16290,9 @@ class ExportFormatterService {
|
|
|
16495
16290
|
}));
|
|
16496
16291
|
}
|
|
16497
16292
|
}
|
|
16498
|
-
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16499
|
-
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16293
|
+
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 });
|
|
16294
|
+
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
|
|
16295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ExportFormatterService, decorators: [{
|
|
16501
16296
|
type: Injectable,
|
|
16502
16297
|
args: [{
|
|
16503
16298
|
providedIn: 'root'
|
|
@@ -16518,9 +16313,9 @@ class HeaderTitleService {
|
|
|
16518
16313
|
}), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
|
|
16519
16314
|
}
|
|
16520
16315
|
}
|
|
16521
|
-
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16522
|
-
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16316
|
+
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 });
|
|
16317
|
+
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
|
|
16318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HeaderTitleService, decorators: [{
|
|
16524
16319
|
type: Injectable,
|
|
16525
16320
|
args: [{
|
|
16526
16321
|
providedIn: 'root'
|
|
@@ -16554,9 +16349,9 @@ class IntercomService {
|
|
|
16554
16349
|
window.Intercom('boot', connectionCredentials);
|
|
16555
16350
|
}
|
|
16556
16351
|
}
|
|
16557
|
-
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16558
|
-
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16352
|
+
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16353
|
+
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, providedIn: 'root' });
|
|
16354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IntercomService, decorators: [{
|
|
16560
16355
|
type: Injectable,
|
|
16561
16356
|
args: [{
|
|
16562
16357
|
providedIn: 'root'
|
|
@@ -16626,9 +16421,9 @@ class PdfFromDomElementService {
|
|
|
16626
16421
|
.then((blob) => new File([blob], filename, { type: 'application/pdf' })));
|
|
16627
16422
|
}
|
|
16628
16423
|
}
|
|
16629
|
-
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16630
|
-
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16424
|
+
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16425
|
+
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
|
|
16426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDomElementService, decorators: [{
|
|
16632
16427
|
type: Injectable,
|
|
16633
16428
|
args: [{
|
|
16634
16429
|
providedIn: 'root'
|
|
@@ -16707,9 +16502,9 @@ class PdfFromTableService {
|
|
|
16707
16502
|
doc.addImage(logo, 'PNG', doc.internal.pageSize.width - FILE_SETTINGS.logo.positionX, FILE_SETTINGS.logo.positionY, FILE_SETTINGS.logo.width, FILE_SETTINGS.logo.height);
|
|
16708
16503
|
}
|
|
16709
16504
|
}
|
|
16710
|
-
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16711
|
-
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16505
|
+
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16506
|
+
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
|
|
16507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromTableService, decorators: [{
|
|
16713
16508
|
type: Injectable,
|
|
16714
16509
|
args: [{
|
|
16715
16510
|
providedIn: 'root'
|
|
@@ -16746,9 +16541,9 @@ class PdfFromDataTableService extends PdfFromTableService {
|
|
|
16746
16541
|
return pdf;
|
|
16747
16542
|
}
|
|
16748
16543
|
}
|
|
16749
|
-
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16750
|
-
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16544
|
+
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16545
|
+
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
|
|
16546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromDataTableService, decorators: [{
|
|
16752
16547
|
type: Injectable,
|
|
16753
16548
|
args: [{
|
|
16754
16549
|
providedIn: 'root'
|
|
@@ -16784,9 +16579,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
|
|
|
16784
16579
|
return pdf;
|
|
16785
16580
|
}
|
|
16786
16581
|
}
|
|
16787
|
-
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16788
|
-
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16582
|
+
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
16583
|
+
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
|
|
16584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
|
|
16790
16585
|
type: Injectable,
|
|
16791
16586
|
args: [{
|
|
16792
16587
|
providedIn: 'root'
|
|
@@ -16804,24 +16599,18 @@ class EquityPositionChartService {
|
|
|
16804
16599
|
get() {
|
|
16805
16600
|
// @TODO refactor backend
|
|
16806
16601
|
return this.http.get(`${this.environment.apiV2}/properties/categories/equity`)
|
|
16807
|
-
.pipe(map((response) => {
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
|
|
16812
|
-
|
|
16813
|
-
|
|
16814
|
-
value: serie.amount
|
|
16815
|
-
});
|
|
16816
|
-
})
|
|
16817
|
-
});
|
|
16818
|
-
});
|
|
16819
|
-
}));
|
|
16602
|
+
.pipe(map((response) => response.map((item) => plainToClass(ChartData, {
|
|
16603
|
+
name: item.category.name,
|
|
16604
|
+
data: item.equity.map((serie) => plainToClass(ChartSerie, {
|
|
16605
|
+
label: serie.date,
|
|
16606
|
+
value: serie.amount
|
|
16607
|
+
}))
|
|
16608
|
+
}))));
|
|
16820
16609
|
}
|
|
16821
16610
|
}
|
|
16822
|
-
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16823
|
-
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16611
|
+
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 });
|
|
16612
|
+
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
|
|
16613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EquityPositionChartService, decorators: [{
|
|
16825
16614
|
type: Injectable,
|
|
16826
16615
|
args: [{
|
|
16827
16616
|
providedIn: 'root'
|
|
@@ -16844,9 +16633,7 @@ class PropertyCalculationService {
|
|
|
16844
16633
|
return combineLatest([
|
|
16845
16634
|
transactions$,
|
|
16846
16635
|
depreciations$
|
|
16847
|
-
]).pipe(map(([transactions, depreciations]) =>
|
|
16848
|
-
return this.getTaxPosition(transactions, depreciations);
|
|
16849
|
-
}));
|
|
16636
|
+
]).pipe(map(([transactions, depreciations]) => this.getTaxPosition(transactions, depreciations)));
|
|
16850
16637
|
}
|
|
16851
16638
|
taxPositionGrowth(properties, transactions, depreciations) {
|
|
16852
16639
|
const forecastedTaxPosition = properties.sumBy('forecastedTaxPosition');
|
|
@@ -16861,28 +16648,18 @@ class PropertyCalculationService {
|
|
|
16861
16648
|
properties$,
|
|
16862
16649
|
transactions$,
|
|
16863
16650
|
depreciations$
|
|
16864
|
-
]).pipe(map(([properties, transactions, depreciations]) =>
|
|
16865
|
-
return this.taxPositionGrowth(properties, transactions, depreciations);
|
|
16866
|
-
}));
|
|
16651
|
+
]).pipe(map(([properties, transactions, depreciations]) => this.taxPositionGrowth(properties, transactions, depreciations)));
|
|
16867
16652
|
}
|
|
16868
16653
|
getRentalReturn(properties, transactions) {
|
|
16869
16654
|
return transactions.claimIncome / properties.marketValue;
|
|
16870
16655
|
}
|
|
16871
16656
|
getLoanAmount(properties, bankAccounts, loans) {
|
|
16872
|
-
return properties.items.reduce((totalAmount, property) =>
|
|
16873
|
-
|
|
16874
|
-
.reduce((propertyAmount, bankAccount) => {
|
|
16875
|
-
return propertyAmount + bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.amount || 0);
|
|
16876
|
-
}, 0);
|
|
16877
|
-
}, 0);
|
|
16657
|
+
return properties.items.reduce((totalAmount, property) => totalAmount + bankAccounts.items
|
|
16658
|
+
.reduce((propertyAmount, bankAccount) => propertyAmount + bankAccount.getPropertyPercentage(property.id) * (loans.getByBankAccountId(bankAccount.id)?.amount || 0), 0), 0);
|
|
16878
16659
|
}
|
|
16879
16660
|
getLoanValue(properties, bankAccounts) {
|
|
16880
|
-
return properties.items.reduce((totalAmount, property) =>
|
|
16881
|
-
|
|
16882
|
-
.reduce((propertyAmount, bankAccount) => {
|
|
16883
|
-
return propertyAmount + bankAccount.getPropertyBalanceAmount(property.id);
|
|
16884
|
-
}, 0);
|
|
16885
|
-
}, 0);
|
|
16661
|
+
return properties.items.reduce((totalAmount, property) => totalAmount + bankAccounts.items
|
|
16662
|
+
.reduce((propertyAmount, bankAccount) => propertyAmount + bankAccount.getPropertyBalanceAmount(property.id), 0), 0);
|
|
16886
16663
|
}
|
|
16887
16664
|
/**
|
|
16888
16665
|
* LVR
|
|
@@ -16895,9 +16672,7 @@ class PropertyCalculationService {
|
|
|
16895
16672
|
return combineLatest([
|
|
16896
16673
|
properties$,
|
|
16897
16674
|
bankAccounts$
|
|
16898
|
-
]).pipe(map(([properties, bankAccounts]) =>
|
|
16899
|
-
return this.getLvr(properties, bankAccounts);
|
|
16900
|
-
}));
|
|
16675
|
+
]).pipe(map(([properties, bankAccounts]) => this.getLvr(properties, bankAccounts)));
|
|
16901
16676
|
}
|
|
16902
16677
|
getLvrCommencement(properties, loans, bankAccounts) {
|
|
16903
16678
|
// Math abs is required for correct percentage calculation
|
|
@@ -16908,9 +16683,7 @@ class PropertyCalculationService {
|
|
|
16908
16683
|
properties$,
|
|
16909
16684
|
bankAccounts$,
|
|
16910
16685
|
loans$
|
|
16911
|
-
]).pipe(map(([properties, bankAccounts, loans]) =>
|
|
16912
|
-
return this.getLvrCommencement(properties, loans, bankAccounts);
|
|
16913
|
-
}));
|
|
16686
|
+
]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrCommencement(properties, loans, bankAccounts)));
|
|
16914
16687
|
}
|
|
16915
16688
|
getLvrGrowth(properties, bankAccounts, loans) {
|
|
16916
16689
|
const lvr = this.getLvr(properties, bankAccounts);
|
|
@@ -16926,9 +16699,7 @@ class PropertyCalculationService {
|
|
|
16926
16699
|
properties$,
|
|
16927
16700
|
bankAccounts$,
|
|
16928
16701
|
loans$
|
|
16929
|
-
]).pipe(map(([properties, bankAccounts, loans]) =>
|
|
16930
|
-
return this.getLvrGrowth(properties, bankAccounts, loans);
|
|
16931
|
-
}));
|
|
16702
|
+
]).pipe(map(([properties, bankAccounts, loans]) => this.getLvrGrowth(properties, bankAccounts, loans)));
|
|
16932
16703
|
}
|
|
16933
16704
|
/**
|
|
16934
16705
|
* Equity position = Market value - current loan value
|
|
@@ -16992,9 +16763,9 @@ class PropertyCalculationService {
|
|
|
16992
16763
|
}
|
|
16993
16764
|
}
|
|
16994
16765
|
}
|
|
16995
|
-
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16996
|
-
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16766
|
+
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16767
|
+
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
|
|
16768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyCalculationService, decorators: [{
|
|
16998
16769
|
type: Injectable,
|
|
16999
16770
|
args: [{
|
|
17000
16771
|
providedIn: 'root'
|
|
@@ -17020,9 +16791,7 @@ class PropertyTransactionReportService {
|
|
|
17020
16791
|
this.getTransactions(),
|
|
17021
16792
|
this.getDepreciations(),
|
|
17022
16793
|
this.chartAccountsService.get()
|
|
17023
|
-
]).pipe(map(([properties, transactions, depreciations, chartAccounts]) =>
|
|
17024
|
-
return new CollectionDictionary(this.create(transactions, depreciations, properties, chartAccounts), 'propertyId');
|
|
17025
|
-
}));
|
|
16794
|
+
]).pipe(map(([properties, transactions, depreciations, chartAccounts]) => new CollectionDictionary(this.create(transactions, depreciations, properties, chartAccounts), 'propertyId')));
|
|
17026
16795
|
}
|
|
17027
16796
|
create(transactions, depreciations, properties, chartAccounts) {
|
|
17028
16797
|
return new PropertyReportItemCollection([
|
|
@@ -17034,26 +16803,22 @@ class PropertyTransactionReportService {
|
|
|
17034
16803
|
* Get collection of property transactions
|
|
17035
16804
|
*/
|
|
17036
16805
|
getTransactions() {
|
|
17037
|
-
return this.transactionService.get().pipe(map((transactions) =>
|
|
17038
|
-
|
|
17039
|
-
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property);
|
|
17040
|
-
}));
|
|
16806
|
+
return this.transactionService.get().pipe(map((transactions) => new TransactionCollection(transactions)
|
|
16807
|
+
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)));
|
|
17041
16808
|
}
|
|
17042
16809
|
/**
|
|
17043
16810
|
* Get list of asset & capital property depreciations
|
|
17044
16811
|
*/
|
|
17045
16812
|
getDepreciations() {
|
|
17046
|
-
return this.depreciationService.get().pipe(map((depreciations) =>
|
|
17047
|
-
|
|
17048
|
-
|
|
17049
|
-
|
|
17050
|
-
.getWithoutBorrowingExpenses();
|
|
17051
|
-
}));
|
|
16813
|
+
return this.depreciationService.get().pipe(map((depreciations) => depreciations
|
|
16814
|
+
.getByChartAccountsCategories(CHART_ACCOUNTS_CATEGORIES.property)
|
|
16815
|
+
// we don't need borrowing expenses for this report
|
|
16816
|
+
.getWithoutBorrowingExpenses()));
|
|
17052
16817
|
}
|
|
17053
16818
|
}
|
|
17054
|
-
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17055
|
-
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16819
|
+
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 });
|
|
16820
|
+
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
|
|
16821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
|
|
17057
16822
|
type: Injectable,
|
|
17058
16823
|
args: [{
|
|
17059
16824
|
providedIn: 'root'
|
|
@@ -17081,9 +16846,7 @@ class TransactionCalculationService {
|
|
|
17081
16846
|
* @TODO Alex: consider to move to collection
|
|
17082
16847
|
*/
|
|
17083
16848
|
getAllocatedTransactions(transactions, allocations) {
|
|
17084
|
-
return new TransactionCollection(transactions.items.filter((transaction) =>
|
|
17085
|
-
return transaction.isAllocated(allocations);
|
|
17086
|
-
}));
|
|
16849
|
+
return new TransactionCollection(transactions.items.filter((transaction) => transaction.isAllocated(allocations)));
|
|
17087
16850
|
}
|
|
17088
16851
|
getUnallocatedInvoices(invoices, allocations) {
|
|
17089
16852
|
return invoices.filter((invoice) => {
|
|
@@ -17123,9 +16886,9 @@ class TransactionCalculationService {
|
|
|
17123
16886
|
return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
|
|
17124
16887
|
}
|
|
17125
16888
|
}
|
|
17126
|
-
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17127
|
-
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16889
|
+
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16890
|
+
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
|
|
16891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TransactionCalculationService, decorators: [{
|
|
17129
16892
|
type: Injectable,
|
|
17130
16893
|
args: [{
|
|
17131
16894
|
providedIn: 'root'
|
|
@@ -17185,9 +16948,9 @@ class LogbookBestPeriodService {
|
|
|
17185
16948
|
});
|
|
17186
16949
|
}
|
|
17187
16950
|
}
|
|
17188
|
-
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17189
|
-
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16951
|
+
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 });
|
|
16952
|
+
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
|
|
16953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
|
|
17191
16954
|
type: Injectable,
|
|
17192
16955
|
args: [{
|
|
17193
16956
|
providedIn: 'root'
|
|
@@ -17228,9 +16991,9 @@ class XlsxService {
|
|
|
17228
16991
|
return xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
|
|
17229
16992
|
}
|
|
17230
16993
|
}
|
|
17231
|
-
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
17232
|
-
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
17233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
16994
|
+
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16995
|
+
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, providedIn: 'root' });
|
|
16996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: XlsxService, decorators: [{
|
|
17234
16997
|
type: Injectable,
|
|
17235
16998
|
args: [{
|
|
17236
16999
|
providedIn: 'root'
|
|
@@ -17382,6 +17145,9 @@ class AbstractForm extends UntypedFormGroup {
|
|
|
17382
17145
|
*/
|
|
17383
17146
|
emitValues() {
|
|
17384
17147
|
Object.values(this.controls).forEach((control) => {
|
|
17148
|
+
if ([null, undefined].includes(control.value)) {
|
|
17149
|
+
return;
|
|
17150
|
+
}
|
|
17385
17151
|
control.updateValueAndValidity({ onlySelf: false, emitEvent: true });
|
|
17386
17152
|
});
|
|
17387
17153
|
}
|
|
@@ -17626,7 +17392,7 @@ class LoanForm extends AbstractForm {
|
|
|
17626
17392
|
listenEvents() {
|
|
17627
17393
|
// We need to set term automatically only for bank loans.
|
|
17628
17394
|
// For vehicle loans user should fill it manually with validation depended of frequency
|
|
17629
|
-
if (
|
|
17395
|
+
if (this.loan.bankAccount) {
|
|
17630
17396
|
this.listenTypeChanges();
|
|
17631
17397
|
}
|
|
17632
17398
|
else {
|
|
@@ -17654,7 +17420,7 @@ class LoanForm extends AbstractForm {
|
|
|
17654
17420
|
*/
|
|
17655
17421
|
updateTermValidation() {
|
|
17656
17422
|
// no need terms for bank loans
|
|
17657
|
-
if (
|
|
17423
|
+
if (this.loan.bankAccount) {
|
|
17658
17424
|
return;
|
|
17659
17425
|
}
|
|
17660
17426
|
const currentRepaymentFrequency = this.get('repaymentFrequency').value;
|
|
@@ -17676,10 +17442,8 @@ LoanForm.mortgageLoanTypes = [LoanTypeEnum.MORTGAGE, LoanTypeEnum.HOME_EQUITY_LI
|
|
|
17676
17442
|
* Use with groups of boolean form controls (checkbox, toggle, etc.)
|
|
17677
17443
|
*/
|
|
17678
17444
|
function atLeastOneCheckedValidator() {
|
|
17679
|
-
return (formGroup) =>
|
|
17680
|
-
|
|
17681
|
-
.find((control) => control.value) ? null : { nothingChecked: true };
|
|
17682
|
-
};
|
|
17445
|
+
return (formGroup) => Object.values(formGroup.controls)
|
|
17446
|
+
.find((control) => control.value) ? null : { nothingChecked: true };
|
|
17683
17447
|
}
|
|
17684
17448
|
|
|
17685
17449
|
/**
|
|
@@ -17687,9 +17451,7 @@ function atLeastOneCheckedValidator() {
|
|
|
17687
17451
|
* @TODO Alex: create class AppValidators with static methods and move there all custom validators (line Angular Validators)
|
|
17688
17452
|
*/
|
|
17689
17453
|
function autocompleteValidator() {
|
|
17690
|
-
return (control) => {
|
|
17691
|
-
return (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
|
|
17692
|
-
};
|
|
17454
|
+
return (control) => (!control.value || (typeof control.value === 'object')) ? null : { notFromList: true };
|
|
17693
17455
|
}
|
|
17694
17456
|
|
|
17695
17457
|
function conditionalValidator(condition, validator) {
|
|
@@ -17789,15 +17551,13 @@ function fieldsSumValidator(field, summary = 100, fieldAlias) {
|
|
|
17789
17551
|
if (fieldsSum <= summary) {
|
|
17790
17552
|
return null;
|
|
17791
17553
|
}
|
|
17792
|
-
|
|
17793
|
-
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
};
|
|
17800
|
-
}
|
|
17554
|
+
return {
|
|
17555
|
+
fieldsSum: {
|
|
17556
|
+
name: field,
|
|
17557
|
+
alias: fieldAlias,
|
|
17558
|
+
summary
|
|
17559
|
+
}
|
|
17560
|
+
};
|
|
17801
17561
|
};
|
|
17802
17562
|
}
|
|
17803
17563
|
|
|
@@ -17855,12 +17615,10 @@ class FileValidator {
|
|
|
17855
17615
|
class BankAccountPropertiesForm extends UntypedFormArray {
|
|
17856
17616
|
constructor(bankAccountProperties) {
|
|
17857
17617
|
super((bankAccountProperties?.length ? bankAccountProperties : [plainToClass(BankAccountProperty, {})])
|
|
17858
|
-
.map((bankAccountProperty) => {
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
});
|
|
17863
|
-
}), [
|
|
17618
|
+
.map((bankAccountProperty) => new UntypedFormGroup({
|
|
17619
|
+
property: new UntypedFormControl(bankAccountProperty?.property, Validators.required),
|
|
17620
|
+
percent: new UntypedFormControl(bankAccountProperty.percent, Validators.required)
|
|
17621
|
+
})), [
|
|
17864
17622
|
conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.PROPERTY, Validators.required),
|
|
17865
17623
|
fieldsSumValidator('percent', 100)
|
|
17866
17624
|
]);
|
|
@@ -17979,12 +17737,10 @@ class SoleBusinessForm extends AbstractForm {
|
|
|
17979
17737
|
class SoleBusinessAllocationsForm extends UntypedFormArray {
|
|
17980
17738
|
constructor(businessAllocations) {
|
|
17981
17739
|
super((businessAllocations?.length ? businessAllocations : [plainToClass(SoleBusinessAllocation, {})])
|
|
17982
|
-
.map((businessAllocation) => {
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
});
|
|
17987
|
-
}), [
|
|
17740
|
+
.map((businessAllocation) => new UntypedFormGroup({
|
|
17741
|
+
business: new UntypedFormControl(businessAllocation?.business, Validators.required),
|
|
17742
|
+
percent: new UntypedFormControl(businessAllocation.percent, Validators.required)
|
|
17743
|
+
})), [
|
|
17988
17744
|
conditionalValidator((control) => control.get('tankType').value === TankTypeEnum.SOLE, Validators.required),
|
|
17989
17745
|
fieldsSumValidator('percent', 100)
|
|
17990
17746
|
]);
|
|
@@ -18460,11 +18216,9 @@ function dateRangeValidator(dateStart, dateEnd) {
|
|
|
18460
18216
|
* Validator check if at least one control in formArray is enabled
|
|
18461
18217
|
*/
|
|
18462
18218
|
function atLeastOneEnabledValidator(arrayName) {
|
|
18463
|
-
return (formGroup) =>
|
|
18464
|
-
|
|
18465
|
-
|
|
18466
|
-
: { arrayControlsDisabled: true };
|
|
18467
|
-
};
|
|
18219
|
+
return (formGroup) => formGroup.get(arrayName).controls.find((control) => control.enabled)
|
|
18220
|
+
? null
|
|
18221
|
+
: { arrayControlsDisabled: true };
|
|
18468
18222
|
}
|
|
18469
18223
|
|
|
18470
18224
|
/**
|
|
@@ -18488,7 +18242,7 @@ class BankAccountsImportForm extends AbstractForm {
|
|
|
18488
18242
|
}
|
|
18489
18243
|
const bankAccounts = [];
|
|
18490
18244
|
// form is valid when all selected bank accounts forms are valid
|
|
18491
|
-
for (
|
|
18245
|
+
for (const bankAccountImportForm of this.get('bankAccounts').controls) {
|
|
18492
18246
|
// skip disabled forms
|
|
18493
18247
|
if (bankAccountImportForm.disabled) {
|
|
18494
18248
|
continue;
|
|
@@ -18585,9 +18339,7 @@ const phonePattern = /^(((\s*)?([- ()]?\d[- ()]?){0,30}(\s*)?)|)$/;
|
|
|
18585
18339
|
* Allowed special symbols"-", "(", ")"
|
|
18586
18340
|
*/
|
|
18587
18341
|
function phoneNumberValidator() {
|
|
18588
|
-
return (control) => {
|
|
18589
|
-
return phonePattern.test(control.value) ? null : { phoneInvalid: true };
|
|
18590
|
-
};
|
|
18342
|
+
return (control) => phonePattern.test(control.value) ? null : { phoneInvalid: true };
|
|
18591
18343
|
}
|
|
18592
18344
|
|
|
18593
18345
|
class PhoneForm extends AbstractForm {
|
|
@@ -20002,7 +19754,7 @@ function checkDividends(metaFields, formGroup) {
|
|
|
20002
19754
|
const frankedAndUnfrankedControls = (formGroup.get('metaFields')).controls
|
|
20003
19755
|
.filter((control) => frankedAndUnfrankedIds.includes(control.get('chartAccountsMetaField').value.id));
|
|
20004
19756
|
const frankedAndUnfrankedAmount = frankedAndUnfrankedControls.reduce((sum, control) => sum + (+control.get('value').value), 0);
|
|
20005
|
-
for (
|
|
19757
|
+
for (const control of frankedAndUnfrankedControls) {
|
|
20006
19758
|
if (control.get('value').value !== null && frankedAndUnfrankedAmount !== amount) {
|
|
20007
19759
|
return { metaFields: `Field ${control.get('chartAccountsMetaField').value.label} is required` };
|
|
20008
19760
|
}
|
|
@@ -20014,12 +19766,10 @@ class WorkTransactionForm extends TransactionForm {
|
|
|
20014
19766
|
constructor(transaction, registeredForGst, allocations, controls = {}) {
|
|
20015
19767
|
super(transaction, registeredForGst, allocations, Object.assign(controls, {
|
|
20016
19768
|
// additional data related to work (like tax instalments)
|
|
20017
|
-
metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => {
|
|
20018
|
-
|
|
20019
|
-
|
|
20020
|
-
|
|
20021
|
-
});
|
|
20022
|
-
}))
|
|
19769
|
+
metaFields: new FormArray((transaction.metaFields || []).map((transactionMetaField) => new FormGroup({
|
|
19770
|
+
value: new FormControl(transactionMetaField.value),
|
|
19771
|
+
chartAccountsMetaField: new FormControl(transactionMetaField.chartAccountsMetaField)
|
|
19772
|
+
})))
|
|
20023
19773
|
}));
|
|
20024
19774
|
this.setValidators(transactionsMetaFieldsValidator());
|
|
20025
19775
|
this.listenEvents();
|
|
@@ -20201,31 +19951,36 @@ class HoldingSaleForm extends AbstractForm {
|
|
|
20201
19951
|
file: new UntypedFormControl(sale.file)
|
|
20202
19952
|
}, sale);
|
|
20203
19953
|
this.holding = holding;
|
|
20204
|
-
if (sale.id) {
|
|
20205
|
-
this.emitValues();
|
|
20206
|
-
}
|
|
20207
19954
|
this.listenEvents();
|
|
19955
|
+
this.emitValues();
|
|
20208
19956
|
}
|
|
20209
19957
|
listenEvents() {
|
|
20210
|
-
this.
|
|
20211
|
-
|
|
19958
|
+
combineLatest(['date', 'price', 'quantity', 'fee'].map((field) => this.get(field).valueChanges))
|
|
19959
|
+
.subscribe(([date, price, quantity, fee]) => {
|
|
19960
|
+
this.updateGainFields(date, price, quantity, fee);
|
|
19961
|
+
});
|
|
20212
19962
|
}
|
|
20213
19963
|
submit() {
|
|
20214
19964
|
return super.submit({}, true);
|
|
20215
19965
|
}
|
|
20216
|
-
|
|
20217
|
-
this.
|
|
20218
|
-
|
|
20219
|
-
|
|
19966
|
+
updateGainFields(date, price, quantity, fee) {
|
|
19967
|
+
const capitalGain = this.calculateGrossCapitalGain(price, quantity, fee);
|
|
19968
|
+
this.get('grossCapitalGain').setValue(capitalGain);
|
|
19969
|
+
this.get('netCapitalGain').setValue(this.calculateNetCapitalGain(capitalGain, date));
|
|
20220
19970
|
}
|
|
20221
|
-
|
|
20222
|
-
this.
|
|
20223
|
-
|
|
20224
|
-
|
|
19971
|
+
calculateGrossCapitalGain(price, quantity, fee) {
|
|
19972
|
+
const capitalGain = (price - this.holding.price) * quantity - this.holding.fee - fee;
|
|
19973
|
+
return capitalGain < 0 ? 0 : capitalGain;
|
|
19974
|
+
}
|
|
19975
|
+
calculateNetCapitalGain(capitalGain, date) {
|
|
19976
|
+
let netCapitalGain = (capitalGain * this.holding.ownershipPercent) / 100;
|
|
19977
|
+
if (this.isOneYearExemptionApplicable(netCapitalGain, date)) {
|
|
19978
|
+
netCapitalGain = netCapitalGain / 2;
|
|
19979
|
+
}
|
|
19980
|
+
return round(netCapitalGain, 2);
|
|
20225
19981
|
}
|
|
20226
|
-
|
|
20227
|
-
|
|
20228
|
-
this.get('netCapitalGain').setValue(this.currentValue.getNetCapitalGain(this.holding));
|
|
19982
|
+
isOneYearExemptionApplicable(netCapitalGain, date) {
|
|
19983
|
+
return netCapitalGain > 0 && moment(date).diff(moment(this.holding.date), 'year') > 0;
|
|
20229
19984
|
}
|
|
20230
19985
|
}
|
|
20231
19986
|
|