taxtank-core 0.33.2 → 0.33.4
Sign up to get free protection for your applications and to get access to all the features.
- package/common/src/db/enums/user/user-roles.enum.d.ts +1 -0
- package/common/src/services/mixpanel.service.d.ts +1 -0
- package/esm2022/common/src/common.module.mjs +7 -5
- package/esm2022/common/src/db/enums/user/user-roles.enum.mjs +2 -1
- package/esm2022/common/src/interceptors/interceptors.module.mjs +5 -5
- package/esm2022/common/src/interceptors/jwt-interceptor.mjs +6 -6
- package/esm2022/common/src/services/auth/auth.service.mjs +6 -6
- package/esm2022/common/src/services/auth/jwt.service.mjs +4 -4
- package/esm2022/common/src/services/mixpanel.service.mjs +13 -7
- package/esm2022/public-api.mjs +2 -3
- package/esm2022/src/lib/collections/bank-transaction.collection.mjs +2 -2
- package/esm2022/src/lib/collections/chat/chat.collection.mjs +1 -19
- package/esm2022/src/lib/collections/client-movement.collection.mjs +5 -4
- package/esm2022/src/lib/collections/client.collection.mjs +1 -1
- package/esm2022/src/lib/collections/collection-dictionary.mjs +4 -1
- package/esm2022/src/lib/collections/collection.mjs +14 -3
- package/esm2022/src/lib/collections/firm/employee-invite.collection.mjs +10 -0
- package/esm2022/src/lib/collections/firm/employee.collection.mjs +18 -0
- package/esm2022/src/lib/collections/firm/index.mjs +3 -0
- package/esm2022/src/lib/collections/holding/holding-sale.collection.mjs +2 -2
- package/esm2022/src/lib/collections/income-source/income-source.collection.mjs +2 -2
- package/esm2022/src/lib/collections/index.mjs +3 -2
- package/esm2022/src/lib/collections/property/property-valuation.collection.mjs +11 -1
- package/esm2022/src/lib/collections/report/property/property-report-item-depreciation.collection.mjs +2 -2
- package/esm2022/src/lib/collections/report/property/property-report-item-transaction.collection.mjs +2 -2
- package/esm2022/src/lib/collections/report/property/property-report-item.collection.mjs +1 -1
- package/esm2022/src/lib/collections/tax-review.collection.mjs +1 -7
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +4 -1
- package/esm2022/src/lib/collections/user/user.collection.mjs +4 -0
- package/esm2022/src/lib/collections/vehicle/vehicle-logbook.collection.mjs +13 -1
- package/esm2022/src/lib/core.module.mjs +6 -5
- package/esm2022/src/lib/db/Enums/bank/bank-connection-status.enum.mjs +2 -1
- package/esm2022/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.mjs +2 -2
- package/esm2022/src/lib/db/Enums/firm/employee-invite-role.enum.mjs +6 -0
- package/esm2022/src/lib/db/Enums/firm/firm-type.enum.mjs +6 -0
- package/esm2022/src/lib/db/Enums/firm/index.mjs +3 -0
- package/esm2022/src/lib/db/Enums/holding/holding-type-exchange-list.enum.mjs +6 -5
- package/esm2022/src/lib/db/Enums/index.mjs +3 -1
- package/esm2022/src/lib/db/Enums/user/gender.enum.mjs +14 -0
- package/esm2022/src/lib/db/Enums/user/index.mjs +2 -0
- package/esm2022/src/lib/db/Json/chart-accounts/chart-accounts-value.json +59 -4
- package/esm2022/src/lib/db/Models/bank/bank-account.mjs +1 -1
- package/esm2022/src/lib/db/Models/bank/bank-connection.mjs +1 -1
- package/esm2022/src/lib/db/Models/client/annual-client-details.mjs +1 -1
- package/esm2022/src/lib/db/Models/client/client-details.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/accountant/tax-review.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/chat.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/client-invite.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/client-movement.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/employee-invite.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/firm.mjs +1 -1
- package/esm2022/src/lib/db/Models/firm/message-document.mjs +1 -1
- package/esm2022/src/lib/db/Models/incomeSource/income-source-forecast.mjs +1 -1
- package/esm2022/src/lib/db/Models/incomeSource/income-source.mjs +1 -1
- package/esm2022/src/lib/db/Models/incomeSource/salary-forecast.mjs +1 -1
- package/esm2022/src/lib/db/Models/property/property-forecast.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-business-loss.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-business.mjs +3 -3
- package/esm2022/src/lib/db/Models/sole/sole-forecast.mjs +1 -1
- package/esm2022/src/lib/db/Models/transaction/transaction-base.mjs +3 -4
- package/esm2022/src/lib/db/Models/user/employee-details.mjs +1 -1
- package/esm2022/src/lib/db/Models/user/user.mjs +1 -1
- package/esm2022/src/lib/db/Models/vehicle/vehicle-claim-details.mjs +1 -1
- package/esm2022/src/lib/forms/abstract.form.mjs +9 -4
- package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
- package/esm2022/src/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +2 -2
- package/esm2022/src/lib/forms/chat/chat-filter.form.mjs +36 -0
- package/esm2022/src/lib/forms/chat/index.mjs +2 -0
- package/esm2022/src/lib/forms/client/annual-client-details.form.mjs +1 -2
- package/esm2022/src/lib/forms/client/capital-loss.form.mjs +13 -0
- package/esm2022/src/lib/forms/client/index.mjs +2 -1
- package/esm2022/src/lib/forms/collection.form.mjs +29 -0
- package/esm2022/src/lib/forms/firm/client-invite-put.form.mjs +13 -0
- package/esm2022/src/lib/forms/firm/client-invite.form.mjs +18 -0
- package/esm2022/src/lib/forms/firm/client-movement.form.mjs +22 -0
- package/esm2022/src/lib/forms/firm/employee-details.form.mjs +21 -0
- package/esm2022/src/lib/forms/firm/employee-invite.form.mjs +24 -0
- package/esm2022/src/lib/forms/firm/firm-branch.form.mjs +13 -0
- package/esm2022/src/lib/forms/firm/firm-invite.form.mjs +18 -0
- package/esm2022/src/lib/forms/firm/index.mjs +8 -1
- package/esm2022/src/lib/forms/holding/holding-reinvest.form.mjs +30 -4
- package/esm2022/src/lib/forms/index.mjs +4 -1
- package/esm2022/src/lib/forms/loan/loan.form.mjs +3 -7
- package/esm2022/src/lib/forms/register/register-client.form.mjs +9 -6
- package/esm2022/src/lib/forms/register/register-firm.form.mjs +4 -4
- package/esm2022/src/lib/forms/report/my-tax/my-tax-deductions.form.mjs +1 -1
- package/esm2022/src/lib/forms/report/my-tax/my-tax-rent.form.mjs +1 -1
- package/esm2022/src/lib/forms/sole/bas-report.form.mjs +3 -2
- package/esm2022/src/lib/forms/sole/sole-contact.form.mjs +4 -3
- package/esm2022/src/lib/forms/sole/sole-invoice.form.mjs +3 -2
- package/esm2022/src/lib/forms/tax-review/index.mjs +3 -0
- package/esm2022/src/lib/forms/tax-review/tax-review-filter-status.enum.mjs +6 -0
- package/esm2022/src/lib/forms/tax-review/tax-review-filter.form.mjs +49 -0
- package/esm2022/src/lib/forms/transaction/holding/holding-income.form.mjs +19 -9
- package/esm2022/src/lib/forms/transaction/index.mjs +2 -1
- package/esm2022/src/lib/forms/transaction/sole/sole-income.form.mjs +1 -1
- package/esm2022/src/lib/forms/transaction/transaction-base-filter.form.mjs +35 -0
- package/esm2022/src/lib/forms/transaction/transaction.form.mjs +1 -1
- package/esm2022/src/lib/forms/transaction/work/work-transaction.form.mjs +2 -4
- package/esm2022/src/lib/forms/user/client-details.form.mjs +2 -2
- package/esm2022/src/lib/forms/user/user-invite.form.mjs +3 -2
- package/esm2022/src/lib/forms/user/user.form.mjs +11 -8
- package/esm2022/src/lib/forms/vehicle/vehicle-claim-details.form.mjs +1 -1
- package/esm2022/src/lib/forms/vehicle/vehicle-claim.form.mjs +1 -3
- package/esm2022/src/lib/forms/vehicle/vehicle-logbook.form.mjs +3 -4
- package/esm2022/src/lib/interceptors/basiq-client-id.interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/basiq-token.interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/corelogic-interceptor.mjs +6 -6
- package/esm2022/src/lib/interceptors/financial-year-interceptor.mjs +6 -6
- package/esm2022/src/lib/interceptors/interceptors.module.mjs +5 -5
- package/esm2022/src/lib/interceptors/preloader.interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/rewardful.interceptor.mjs +7 -6
- package/esm2022/src/lib/interceptors/user-switcher-interceptor.mjs +6 -6
- package/esm2022/src/lib/models/bank/bank-connection.mjs +22 -1
- package/esm2022/src/lib/models/chat/chat.mjs +6 -2
- package/esm2022/src/lib/models/chat/message-document.mjs +4 -4
- package/esm2022/src/lib/models/client/annual-client-details.mjs +1 -1
- package/esm2022/src/lib/models/client/capital-loss.interface.mjs +2 -0
- package/esm2022/src/lib/models/client/capital-loss.mjs +15 -0
- package/esm2022/src/lib/models/client/client-details.mjs +27 -1
- package/esm2022/src/lib/models/client/client-invite.mjs +8 -5
- package/esm2022/src/lib/models/client/client-movement.mjs +8 -5
- package/esm2022/src/lib/models/client/index.mjs +3 -1
- package/esm2022/src/lib/models/depreciation/depreciation.mjs +4 -2
- package/esm2022/src/lib/models/employee/employee-details.mjs +8 -2
- package/esm2022/src/lib/models/employee/employee-invite.mjs +18 -2
- package/esm2022/src/lib/models/endpoint/endpoints.const.mjs +22 -13
- package/esm2022/src/lib/models/event/app-event-type.enum.mjs +20 -21
- package/esm2022/src/lib/models/file/file.mjs +4 -1
- package/esm2022/src/lib/models/financial-year/financial-year.mjs +3 -3
- package/esm2022/src/lib/models/firm/firm-branch.interface.mjs +2 -0
- package/esm2022/src/lib/models/firm/firm-branch.mjs +22 -0
- package/esm2022/src/lib/models/firm/firm.mjs +2 -2
- package/esm2022/src/lib/models/firm/index.mjs +3 -0
- package/esm2022/src/lib/models/holding/holding.mjs +4 -4
- package/esm2022/src/lib/models/income-source/salary-forecast.mjs +1 -1
- package/esm2022/src/lib/models/income-source/sole-forecast.mjs +1 -1
- package/esm2022/src/lib/models/index.mjs +2 -1
- package/esm2022/src/lib/models/property/property-equity-chart-data.mjs +11 -7
- package/esm2022/src/lib/models/property/property-forecast.mjs +1 -7
- package/esm2022/src/lib/models/property/property.mjs +6 -2
- package/esm2022/src/lib/models/registration-invite/registration-invite.mjs +5 -1
- package/esm2022/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.mjs +4 -4
- package/esm2022/src/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.mjs +2 -1
- package/esm2022/src/lib/models/report/my-tax/my-tax-rent/my-tax-rent.mjs +4 -9
- package/esm2022/src/lib/models/report/property/property-report-item-transaction.mjs +1 -1
- package/esm2022/src/lib/models/sole/bas-report.mjs +4 -1
- package/esm2022/src/lib/models/sole/sole-business-loss.mjs +1 -1
- package/esm2022/src/lib/models/sole/sole-invoice.mjs +7 -6
- package/esm2022/src/lib/models/tax-review/tax-review.mjs +12 -2
- package/esm2022/src/lib/models/tax-summary/tax-summary.mjs +3 -2
- package/esm2022/src/lib/models/transaction/transaction.mjs +1 -1
- package/esm2022/src/lib/models/user/user.mjs +8 -5
- package/esm2022/src/lib/models/vehicle/vehicle-claim-details.mjs +3 -3
- package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +1 -1
- package/esm2022/src/lib/pipes/app-currency.pipe.mjs +4 -4
- package/esm2022/src/lib/pipes/safe-url.pipe.mjs +5 -5
- package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +9 -9
- package/esm2022/src/lib/services/asset/assets.service.mjs +6 -6
- package/esm2022/src/lib/services/bank/bank-account-calculation.service.mjs +4 -4
- package/esm2022/src/lib/services/data.service.mjs +4 -4
- package/esm2022/src/lib/services/event/event-dispatcher.service.mjs +4 -4
- package/esm2022/src/lib/services/event/sse.service.mjs +6 -6
- package/esm2022/src/lib/services/export/export-formatter.service.mjs +5 -5
- package/esm2022/src/lib/services/firm/current-firm-branch.service.mjs +26 -0
- package/esm2022/src/lib/services/firm/index.mjs +2 -0
- package/esm2022/src/lib/services/header-title/header-title.service.mjs +5 -5
- package/esm2022/src/lib/services/http/address/address.service.mjs +6 -6
- package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +6 -6
- package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.mjs +5 -2
- package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +11 -7
- package/esm2022/src/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +6 -6
- package/esm2022/src/lib/services/http/bank/bank.service.mjs +4 -4
- package/esm2022/src/lib/services/http/bank/basiq/basiq-token.service.mjs +4 -4
- package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +22 -6
- package/esm2022/src/lib/services/http/budget/budget.service.mjs +4 -4
- package/esm2022/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +4 -4
- package/esm2022/src/lib/services/http/chart-accounts/chart-accounts.service.mjs +4 -4
- package/esm2022/src/lib/services/http/chat/chat.service.mjs +10 -10
- package/esm2022/src/lib/services/http/chat/message-document.service.mjs +6 -6
- package/esm2022/src/lib/services/http/chat/message.service.mjs +10 -6
- package/esm2022/src/lib/services/http/client/annual-client-details.service.mjs +23 -0
- package/esm2022/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.mjs +7 -0
- package/esm2022/src/lib/services/http/client/capital-loss/capital-loss.service.mjs +23 -0
- package/esm2022/src/lib/services/http/client/capital-loss/index.mjs +3 -0
- package/esm2022/src/lib/services/http/client/client-coupon.service.mjs +4 -4
- package/esm2022/src/lib/services/http/client/index.mjs +3 -2
- package/esm2022/src/lib/services/http/client/occupation/occupation.service.mjs +6 -6
- package/esm2022/src/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +4 -4
- package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +6 -6
- package/esm2022/src/lib/services/http/document/document-folder/document-folder.service.mjs +4 -4
- package/esm2022/src/lib/services/http/document/document.service.mjs +4 -4
- package/esm2022/src/lib/services/http/facebook/facebook.service.mjs +6 -6
- package/esm2022/src/lib/services/http/file/file.service.mjs +4 -4
- package/esm2022/src/lib/services/http/firm/client-invite/client-invite-messages.enum.mjs +2 -2
- package/esm2022/src/lib/services/http/firm/client-invite/client-invite.service.mjs +9 -12
- package/esm2022/src/lib/services/http/firm/client-movement/client-movement-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/firm/client-movement/client-movement.service.mjs +8 -7
- package/esm2022/src/lib/services/http/firm/client-movement/index.mjs +2 -1
- package/esm2022/src/lib/services/http/firm/employee/employee-messages.enum.mjs +2 -1
- package/esm2022/src/lib/services/http/firm/employee/employee.service.mjs +14 -8
- package/esm2022/src/lib/services/http/firm/employee-invite/employee-invite.service.mjs +9 -9
- package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.mjs +9 -0
- package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch.service.mjs +23 -0
- package/esm2022/src/lib/services/http/firm/firm-branch/index.mjs +3 -0
- package/esm2022/src/lib/services/http/firm/firm.service.mjs +7 -7
- package/esm2022/src/lib/services/http/firm/index.mjs +2 -1
- package/esm2022/src/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +6 -6
- package/esm2022/src/lib/services/http/google/google.service.mjs +6 -6
- package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +4 -4
- package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +4 -4
- package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +4 -4
- package/esm2022/src/lib/services/http/holding/holding.service.mjs +7 -7
- package/esm2022/src/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +6 -6
- package/esm2022/src/lib/services/http/income-source/income-source.service.mjs +8 -8
- package/esm2022/src/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +6 -6
- package/esm2022/src/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +9 -8
- package/esm2022/src/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +6 -6
- package/esm2022/src/lib/services/http/loan/loan.service.mjs +6 -6
- package/esm2022/src/lib/services/http/pdf/pdf.service.mjs +6 -6
- package/esm2022/src/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-category/property-category.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-document/property-document.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +4 -4
- package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +6 -6
- package/esm2022/src/lib/services/http/property/property-valuation/property-valuation.service.mjs +6 -6
- package/esm2022/src/lib/services/http/property/property.service.mjs +7 -6
- package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +6 -6
- package/esm2022/src/lib/services/http/rest/rest.service.mjs +12 -7
- package/esm2022/src/lib/services/http/service-notification/service-notification.service.mjs +6 -6
- package/esm2022/src/lib/services/http/setup-item/setup-item.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/bas-report/bas-report-messages.enum.mjs +8 -0
- package/esm2022/src/lib/services/http/sole/bas-report/bas-report.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/bas-report/index.mjs +3 -0
- package/esm2022/src/lib/services/http/sole/index.mjs +2 -2
- package/esm2022/src/lib/services/http/sole/sole-business/sole-business.service.mjs +10 -14
- package/esm2022/src/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +8 -9
- package/esm2022/src/lib/services/http/sole/sole-contact/sole-contact.service.mjs +4 -4
- package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +6 -6
- package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +6 -6
- package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +6 -6
- package/esm2022/src/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +4 -4
- package/esm2022/src/lib/services/http/subscription/service-payment/service-payment.service.mjs +4 -4
- package/esm2022/src/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +6 -6
- package/esm2022/src/lib/services/http/subscription/service-price/service-price.service.mjs +4 -4
- package/esm2022/src/lib/services/http/subscription/service-product/service-product.service.mjs +4 -4
- package/esm2022/src/lib/services/http/subscription/service-subscription/subscription.service.mjs +6 -6
- package/esm2022/src/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +6 -6
- package/esm2022/src/lib/services/http/tax-review/tax-review.service.mjs +6 -6
- package/esm2022/src/lib/services/http/tax-summary/tax-summary.service.mjs +6 -6
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +4 -4
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +6 -6
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +6 -6
- package/esm2022/src/lib/services/http/user/financial-year/financial-year.service.mjs +6 -6
- package/esm2022/src/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +4 -4
- package/esm2022/src/lib/services/http/user/user-event-type/user-event-type.service.mjs +4 -4
- package/esm2022/src/lib/services/http/user/user.service.mjs +6 -6
- package/esm2022/src/lib/services/http/user/users-invite/users-invite.service.mjs +4 -4
- package/esm2022/src/lib/services/http/vehicle/vehicle-claim-details.service.mjs +6 -6
- package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +19 -8
- package/esm2022/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +6 -5
- package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +4 -4
- package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +6 -6
- package/esm2022/src/lib/services/index.mjs +2 -1
- package/esm2022/src/lib/services/intercom/intercom.service.mjs +6 -6
- package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +5 -5
- package/esm2022/src/lib/services/json/holding/holding-type-exchange.service.mjs +5 -5
- package/esm2022/src/lib/services/json/income-source/income-source-type.service.mjs +5 -5
- package/esm2022/src/lib/services/json/tax-exemption/tax-exemption.service.mjs +5 -5
- package/esm2022/src/lib/services/json/tax-return/tax-return-item.service.mjs +5 -5
- package/esm2022/src/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +4 -4
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +5 -5
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +4 -4
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +4 -4
- package/esm2022/src/lib/services/preloader/preloader.service.mjs +5 -5
- package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +6 -6
- package/esm2022/src/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +6 -6
- package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +4 -4
- package/esm2022/src/lib/services/report/property/property-transaction-report.service.mjs +17 -12
- package/esm2022/src/lib/services/toast/toast.service.mjs +4 -4
- package/esm2022/src/lib/services/user/user-switcher.service.mjs +4 -4
- package/esm2022/src/lib/services/xlsx/xlsx.service.mjs +4 -4
- package/esm2022/src/lib/validators/date-range.validator.mjs +1 -1
- package/esm2022/src/lib/validators/fields-sum.validator.mjs +1 -1
- package/esm2022/src/lib/validators/greater-than.validator.mjs +1 -1
- package/esm2022/src/lib/validators/index.mjs +3 -1
- package/esm2022/src/lib/validators/match-sum.validator.mjs +16 -0
- package/esm2022/src/lib/validators/string/alpha-space.validator.mjs +10 -0
- package/esm2022/src/lib/validators/unique-email.validator.mjs +5 -5
- package/fesm2022/taxtank-core-common.mjs +36 -27
- package/fesm2022/taxtank-core-common.mjs.map +1 -1
- package/fesm2022/taxtank-core.mjs +1544 -869
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
- package/src/lib/collections/bank-transaction.collection.d.ts +3 -2
- package/src/lib/collections/chat/chat.collection.d.ts +1 -5
- package/src/lib/collections/client-movement.collection.d.ts +2 -2
- package/src/lib/collections/client.collection.d.ts +1 -1
- package/src/lib/collections/collection-dictionary.d.ts +1 -0
- package/src/lib/collections/collection.d.ts +5 -1
- package/src/lib/collections/firm/employee-invite.collection.d.ts +5 -0
- package/src/lib/collections/firm/employee.collection.d.ts +6 -0
- package/src/lib/collections/firm/index.d.ts +2 -0
- package/src/lib/collections/income-source/income-source.collection.d.ts +1 -1
- package/src/lib/collections/index.d.ts +2 -1
- package/src/lib/collections/property/property-valuation.collection.d.ts +4 -0
- package/src/lib/collections/report/property/property-report-item-depreciation.collection.d.ts +2 -2
- package/src/lib/collections/report/property/property-report-item-transaction.collection.d.ts +3 -3
- package/src/lib/collections/report/property/property-report-item.collection.d.ts +1 -1
- package/src/lib/collections/tax-review.collection.d.ts +0 -4
- package/src/lib/collections/transaction/transaction.collection.d.ts +1 -0
- package/src/lib/collections/user/user.collection.d.ts +4 -0
- package/src/lib/collections/vehicle/vehicle-logbook.collection.d.ts +6 -0
- package/src/lib/core.module.d.ts +2 -1
- package/src/lib/db/Enums/bank/bank-connection-status.enum.d.ts +1 -0
- package/src/lib/db/Enums/chart-accounts/chart-accounts-property-adjustments-list.enum.d.ts +1 -1
- package/src/lib/db/Enums/firm/employee-invite-role.enum.d.ts +4 -0
- package/src/lib/db/Enums/firm/index.d.ts +2 -0
- package/src/lib/db/Enums/holding/holding-type-exchange-list.enum.d.ts +5 -4
- package/src/lib/db/Enums/index.d.ts +2 -0
- package/src/lib/db/Enums/user/gender.enum.d.ts +12 -0
- package/src/lib/db/Enums/user/index.d.ts +1 -0
- package/src/lib/db/Models/bank/bank-connection.d.ts +1 -0
- package/src/lib/db/Models/client/annual-client-details.d.ts +0 -1
- package/src/lib/db/Models/client/client-details.d.ts +1 -0
- package/src/lib/db/Models/firm/accountant/tax-review.d.ts +2 -0
- package/src/lib/db/Models/firm/chat.d.ts +2 -0
- package/src/lib/db/Models/firm/client-invite.d.ts +5 -2
- package/src/lib/db/Models/firm/client-movement.d.ts +2 -2
- package/src/lib/db/Models/firm/employee-invite.d.ts +4 -2
- package/src/lib/db/Models/firm/firm.d.ts +1 -1
- package/src/lib/db/Models/firm/message-document.d.ts +2 -6
- package/src/lib/db/Models/incomeSource/income-source-forecast.d.ts +2 -1
- package/src/lib/db/Models/incomeSource/income-source.d.ts +1 -1
- package/src/lib/db/Models/incomeSource/salary-forecast.d.ts +1 -0
- package/src/lib/db/Models/property/property-forecast.d.ts +1 -0
- package/src/lib/db/Models/sole/sole-business-loss.d.ts +1 -0
- package/src/lib/db/Models/sole/sole-business.d.ts +2 -2
- package/src/lib/db/Models/sole/sole-forecast.d.ts +1 -0
- package/src/lib/db/Models/user/employee-details.d.ts +2 -0
- package/src/lib/db/Models/user/user.d.ts +2 -0
- package/src/lib/db/Models/vehicle/vehicle-claim-details.d.ts +1 -1
- package/src/lib/forms/abstract.form.d.ts +14 -7
- package/src/lib/forms/bank/bank-account/bank-accounts-import.form.d.ts +1 -1
- package/src/lib/forms/chat/chat-filter.form.d.ts +18 -0
- package/src/lib/forms/chat/index.d.ts +1 -0
- package/src/lib/forms/client/capital-loss.form.d.ts +6 -0
- package/src/lib/forms/client/index.d.ts +1 -0
- package/src/lib/forms/collection.form.d.ts +14 -0
- package/src/lib/forms/firm/client-invite-put.form.d.ts +11 -0
- package/src/lib/forms/firm/client-invite.form.d.ts +15 -0
- package/src/lib/forms/firm/client-movement.form.d.ts +14 -0
- package/src/lib/forms/firm/employee-details.form.d.ts +14 -0
- package/src/lib/forms/firm/employee-invite.form.d.ts +17 -0
- package/src/lib/forms/firm/firm-branch.form.d.ts +5 -0
- package/src/lib/forms/firm/firm-invite.form.d.ts +15 -0
- package/src/lib/forms/firm/index.d.ts +7 -0
- package/src/lib/forms/holding/holding-reinvest.form.d.ts +7 -0
- package/src/lib/forms/index.d.ts +3 -0
- package/src/lib/forms/loan/loan.form.d.ts +2 -2
- package/src/lib/forms/register/register-client.form.d.ts +1 -1
- package/src/lib/forms/register/register-firm.form.d.ts +2 -2
- package/src/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +1 -1
- package/src/lib/forms/report/my-tax/my-tax-rent.form.d.ts +1 -1
- package/src/lib/forms/tax-review/index.d.ts +2 -0
- package/src/lib/forms/tax-review/tax-review-filter-status.enum.d.ts +4 -0
- package/src/lib/forms/tax-review/tax-review-filter.form.d.ts +21 -0
- package/src/lib/forms/transaction/holding/holding-income.form.d.ts +8 -1
- package/src/lib/forms/transaction/index.d.ts +1 -0
- package/src/lib/forms/transaction/transaction-base-filter.form.d.ts +19 -0
- package/src/lib/forms/transaction/work/work-transaction.form.d.ts +1 -1
- package/src/lib/forms/user/user.form.d.ts +15 -3
- package/src/lib/forms/vehicle/vehicle-claim.form.d.ts +0 -2
- package/src/lib/models/bank/bank-connection.d.ts +8 -0
- package/src/lib/models/chat/chat.d.ts +3 -1
- package/src/lib/models/chat/message-document.d.ts +4 -4
- package/src/lib/models/client/annual-client-details.d.ts +0 -1
- package/src/lib/models/client/capital-loss.d.ts +9 -0
- package/src/lib/models/client/capital-loss.interface.d.ts +6 -0
- package/src/lib/models/client/client-details.d.ts +8 -0
- package/src/lib/models/client/client-invite.d.ts +3 -2
- package/src/lib/models/client/client-movement.d.ts +3 -2
- package/src/lib/models/client/index.d.ts +2 -0
- package/src/lib/models/employee/employee-details.d.ts +3 -1
- package/src/lib/models/employee/employee-invite.d.ts +7 -1
- package/src/lib/models/event/app-event-type.enum.d.ts +19 -20
- package/src/lib/models/file/file.d.ts +1 -0
- package/src/lib/models/firm/firm-branch.d.ts +12 -0
- package/src/lib/models/firm/firm-branch.interface.d.ts +7 -0
- package/src/lib/models/firm/index.d.ts +2 -0
- package/src/lib/models/holding/holding.d.ts +0 -1
- package/src/lib/models/index.d.ts +1 -0
- package/src/lib/models/property/property-equity-chart-data.d.ts +7 -7
- package/src/lib/models/property/property-forecast.d.ts +0 -4
- package/src/lib/models/registration-invite/registration-invite.d.ts +2 -0
- package/src/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +1 -1
- package/src/lib/models/report/property/property-report-item-transaction.d.ts +3 -3
- package/src/lib/models/tax-review/tax-review.d.ts +5 -1
- package/src/lib/models/user/user.d.ts +2 -3
- package/src/lib/models/vehicle/vehicle-claim-details.d.ts +1 -1
- package/src/lib/services/firm/current-firm-branch.service.d.ts +11 -0
- package/src/lib/services/firm/index.d.ts +1 -0
- package/src/lib/services/http/bank/bank-connection/bank-connection-messages.enum.d.ts +5 -2
- package/src/lib/services/http/bank/basiq/basiq.service.d.ts +8 -0
- package/src/lib/services/http/chat/message.service.d.ts +2 -0
- package/src/lib/services/http/client/{capital-gain/annual-client-details.service.d.ts → annual-client-details.service.d.ts} +4 -4
- package/src/lib/services/http/client/capital-loss/capital-loss-messages.enum.d.ts +5 -0
- package/src/lib/services/http/client/capital-loss/capital-loss.service.d.ts +12 -0
- package/src/lib/services/http/client/capital-loss/index.d.ts +2 -0
- package/src/lib/services/http/client/index.d.ts +2 -1
- package/src/lib/services/http/firm/client-invite/client-invite-messages.enum.d.ts +1 -1
- package/src/lib/services/http/firm/client-invite/client-invite.service.d.ts +0 -1
- package/src/lib/services/http/firm/client-movement/client-movement-messages.enum.d.ts +6 -0
- package/src/lib/services/http/firm/client-movement/client-movement.service.d.ts +2 -1
- package/src/lib/services/http/firm/client-movement/index.d.ts +1 -0
- package/src/lib/services/http/firm/employee/employee-messages.enum.d.ts +2 -1
- package/src/lib/services/http/firm/employee/employee.service.d.ts +4 -3
- package/src/lib/services/http/firm/employee-invite/employee-invite.service.d.ts +3 -3
- package/src/lib/services/http/firm/firm-branch/firm-branch-messages.enum.d.ts +7 -0
- package/src/lib/services/http/firm/firm-branch/firm-branch.service.d.ts +13 -0
- package/src/lib/services/http/firm/firm-branch/index.d.ts +2 -0
- package/src/lib/services/http/firm/firm.service.d.ts +2 -2
- package/src/lib/services/http/firm/index.d.ts +1 -0
- package/src/lib/services/http/holding/holding-sale.service.d.ts +1 -2
- package/src/lib/services/http/property/property-valuation/property-valuation.service.d.ts +1 -2
- package/src/lib/services/http/rest/rest.service.d.ts +5 -0
- package/src/lib/services/http/sole/bas-report/bas-report-messages.enum.d.ts +6 -0
- package/src/lib/services/http/sole/bas-report/index.d.ts +2 -0
- package/src/lib/services/http/sole/index.d.ts +1 -1
- package/src/lib/services/http/sole/sole-business/sole-business.service.d.ts +7 -5
- package/src/lib/services/http/vehicle/vehicle-claim.service.d.ts +5 -1
- package/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.d.ts +2 -1
- package/src/lib/services/index.d.ts +1 -0
- package/src/lib/services/report/property/property-transaction-report.service.d.ts +4 -7
- package/src/lib/validators/index.d.ts +2 -0
- package/src/lib/validators/match-sum.validator.d.ts +6 -0
- package/src/lib/validators/string/alpha-space.validator.d.ts +5 -0
- package/esm2022/src/lib/collections/employee.collection.mjs +0 -11
- package/esm2022/src/lib/db/Enums/firm-type.enum.mjs +0 -6
- package/esm2022/src/lib/functions/tax-review-filter-predicate.mjs +0 -10
- package/esm2022/src/lib/services/http/client/capital-gain/annual-client-details.service.mjs +0 -23
- package/esm2022/src/lib/validators/transactions-meta-fields.validator.mjs +0 -33
- package/src/lib/collections/employee.collection.d.ts +0 -6
- package/src/lib/functions/tax-review-filter-predicate.d.ts +0 -7
- package/src/lib/validators/transactions-meta-fields.validator.d.ts +0 -5
- /package/src/lib/db/Enums/{firm-type.enum.d.ts → firm/firm-type.enum.d.ts} +0 -0
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -39,7 +39,7 @@ export * from './src/lib/db/Enums/depreciation-calculation.enum';
|
|
39
39
|
export * from './src/lib/db/Enums/depreciation-calculation-percent.enum';
|
40
40
|
export * from './src/lib/db/Enums/depreciation-type.enum';
|
41
41
|
export * from './src/lib/db/Enums/depreciation-write-off-amount.enum';
|
42
|
-
export * from './src/lib/db/Enums/firm-type.enum';
|
42
|
+
export * from './src/lib/db/Enums/firm/firm-type.enum';
|
43
43
|
export * from './src/lib/db/Enums/income-source';
|
44
44
|
export * from './src/lib/db/Enums/invite-status.enum';
|
45
45
|
export * from './src/lib/db/Enums/bank/loan';
|
@@ -173,7 +173,6 @@ export * from './src/lib/functions/enum-to-list';
|
|
173
173
|
export * from './src/lib/functions/get-doc-icon';
|
174
174
|
export * from './src/lib/functions/mat-options-functions';
|
175
175
|
export * from './src/lib/functions/mat-sort-options';
|
176
|
-
export * from './src/lib/functions/tax-review-filter-predicate';
|
177
176
|
export * from './src/lib/functions/array';
|
178
177
|
/**
|
179
178
|
* Interceptors
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { BankTransaction, IncomeSource, MonthNumberEnum } from '../models';
|
2
2
|
import { Collection } from './collection';
|
3
3
|
import { CollectionDictionary } from './collection-dictionary';
|
4
4
|
import { TransactionAllocationCollection } from './transaction';
|
5
|
+
import { BankAccountCollection } from './bank-account.collection';
|
5
6
|
/**
|
6
7
|
* Collection of bank transactions.
|
7
8
|
* IMPORTANT: Create this collection based on bank transactions from TransactionAllocationService
|
@@ -40,7 +41,7 @@ export declare class BankTransactionCollection extends Collection<BankTransactio
|
|
40
41
|
* get list of transactions by provided bank accounts
|
41
42
|
* @param bankAccounts by which transactions should be returned
|
42
43
|
*/
|
43
|
-
getByBankAccounts(bankAccounts:
|
44
|
+
getByBankAccounts(bankAccounts: BankAccountCollection): BankTransactionCollection;
|
44
45
|
/**
|
45
46
|
* get list of transactions by provided ids of bank accounts
|
46
47
|
* @param ids of bank accounts
|
@@ -1,9 +1,5 @@
|
|
1
1
|
import { Collection } from '../collection';
|
2
|
-
import { Chat
|
2
|
+
import { Chat } from '../../models';
|
3
3
|
export declare class ChatCollection extends Collection<Chat> {
|
4
|
-
/**
|
5
|
-
* Sort chats by last messages (newest first) + empty chats in the end
|
6
|
-
*/
|
7
|
-
getSortedByNewest(messages: Message[]): this;
|
8
4
|
getActive(): this;
|
9
5
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Collection } from './collection';
|
2
2
|
import { ClientMovement } from '../models';
|
3
|
-
import { EmployeeCollection } from './
|
3
|
+
import { EmployeeCollection } from './firm';
|
4
4
|
import { ClientCollection } from './client.collection';
|
5
|
-
import { FirmTypeEnum } from '../db/Enums
|
5
|
+
import { FirmTypeEnum } from '../db/Enums';
|
6
6
|
import { CollectionDictionary } from './collection-dictionary';
|
7
7
|
/**
|
8
8
|
* Collection of tax review
|
@@ -36,13 +36,17 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
|
|
36
36
|
groupBy(path?: string): CollectionDictionary<this>;
|
37
37
|
indexBy(path?: string): Dictionary<Model>;
|
38
38
|
filter(callback: (item: Model) => boolean): this;
|
39
|
-
filterBy(path: string, values: any): this;
|
39
|
+
filterBy(path: string, values: any, skipIfEmpty?: boolean): this;
|
40
40
|
filterByRange(path: string, from: any, to: any): this;
|
41
41
|
filterByFinancialYear(pathFrom: string, pathTo?: string, financialYear?: FinancialYear): this;
|
42
42
|
find(callback: (item: Model) => boolean): Model | null;
|
43
43
|
findBy(path: string, value: any): Model | null;
|
44
44
|
findIndexBy(path: string, value: any): number;
|
45
45
|
push(...items: Model[]): this;
|
46
|
+
/**
|
47
|
+
* @TODO performance check this.create performance and why we do it instead of changing collection
|
48
|
+
*/
|
49
|
+
unshift(...items: Model[]): this;
|
46
50
|
remove(...items: Model[]): this;
|
47
51
|
/**
|
48
52
|
* @TODO it's filter, not remove
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { UserCollection } from '../user/user.collection';
|
2
|
+
import { CollectionDictionary } from '../collection-dictionary';
|
3
|
+
export declare class EmployeeCollection extends UserCollection {
|
4
|
+
groupByBranch(): CollectionDictionary<EmployeeCollection>;
|
5
|
+
filterByBranchIds(firmBranchIds: number[]): this;
|
6
|
+
}
|
@@ -9,7 +9,7 @@ import { IIncomeSourceForecast } from '../../interfaces';
|
|
9
9
|
export declare class IncomeSourceCollection extends Collection<IncomeSource> {
|
10
10
|
filterByTank(tank: TankTypeEnum): IncomeSource[];
|
11
11
|
/**
|
12
|
-
* Filter income sources by provided
|
12
|
+
* Filter income sources by provided types
|
13
13
|
* @param types
|
14
14
|
*/
|
15
15
|
filterByTypes(types: IncomeSourceTypeEnum[]): IncomeSource[];
|
@@ -21,7 +21,7 @@ export * from './client-portfolio-report.collection';
|
|
21
21
|
export * from './client.collection';
|
22
22
|
export * from './depreciation-forecast.collection';
|
23
23
|
export * from './depreciation.collection';
|
24
|
-
export * from './
|
24
|
+
export * from './firm';
|
25
25
|
export * from './exportable.collection';
|
26
26
|
export * from './income-source';
|
27
27
|
export * from './tax-review.collection';
|
@@ -29,3 +29,4 @@ export * from './user-event-setting.collection';
|
|
29
29
|
export * from './user-event-type-collection';
|
30
30
|
export * from './holding';
|
31
31
|
export * from './asset-sale.collection';
|
32
|
+
export * from './user/user.collection';
|
@@ -1,4 +1,8 @@
|
|
1
1
|
import { Collection } from '../collection';
|
2
2
|
import { PropertyValuation } from '../../models';
|
3
3
|
export declare class PropertyValuationCollection extends Collection<PropertyValuation> {
|
4
|
+
/**
|
5
|
+
* @TODO vik find by year when backend refactored (all years would exist)
|
6
|
+
*/
|
7
|
+
getMarketValue(date: Date): number;
|
4
8
|
}
|
package/src/lib/collections/report/property/property-report-item-depreciation.collection.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Collection } from '../../collection';
|
2
|
-
import { ChartAccounts } from '../../../models
|
2
|
+
import { ChartAccounts } from '../../../models';
|
3
3
|
import { DepreciationCollection } from '../../depreciation.collection';
|
4
4
|
import { PropertyReportItemCollection } from './property-report-item.collection';
|
5
|
-
import { PropertyCollection } from '../../property
|
5
|
+
import { PropertyCollection } from '../../property';
|
6
6
|
/**
|
7
7
|
* Collection to work with depreciation-based property report items
|
8
8
|
*/
|
package/src/lib/collections/report/property/property-report-item-transaction.collection.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Collection } from '../../collection';
|
2
|
-
import { TransactionCollection } from '../../transaction
|
3
|
-
import { ChartAccounts } from '../../../models
|
2
|
+
import { TransactionCollection } from '../../transaction';
|
3
|
+
import { ChartAccounts } from '../../../models';
|
4
4
|
import { PropertyReportItemCollection } from './property-report-item.collection';
|
5
|
-
import { PropertyCollection } from '../../property
|
5
|
+
import { PropertyCollection } from '../../property';
|
6
6
|
/**
|
7
7
|
* Collection to work with transaction-based property report items
|
8
8
|
*/
|
@@ -18,10 +18,6 @@ export declare class TaxReviewCollection extends Collection<TaxReview> {
|
|
18
18
|
* Get tax reviews items in work (In progress, Waiting for client, Waiting for Approval, Is approved)
|
19
19
|
*/
|
20
20
|
getInWork(): TaxReview[];
|
21
|
-
/**
|
22
|
-
* Get percentage of completed reviews of the total review amount
|
23
|
-
*/
|
24
|
-
getCompletedPercentage(): number;
|
25
21
|
/**
|
26
22
|
* get list of items filtered by status
|
27
23
|
* @param status
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import { Collection } from '../collection';
|
2
2
|
import { VehicleClaim, VehicleLogbook } from '../../models';
|
3
3
|
import { BestVehicleLogbookCollection } from './best-vehicle-logbook.collection';
|
4
|
+
/**
|
5
|
+
* this collection sorted by date desc, that's why first/last methods works different
|
6
|
+
*/
|
4
7
|
export declare class VehicleLogbookCollection extends Collection<VehicleLogbook> {
|
5
8
|
/**
|
6
9
|
* Calculate total kilometers traveled
|
@@ -12,4 +15,7 @@ export declare class VehicleLogbookCollection extends Collection<VehicleLogbook>
|
|
12
15
|
* get collection of logbooks with the biggest work usage for {@link BestVehicleLogbookCollection.periodDuration}
|
13
16
|
*/
|
14
17
|
getBest(): BestVehicleLogbookCollection | null;
|
18
|
+
get first(): VehicleLogbook;
|
19
|
+
get last(): VehicleLogbook;
|
20
|
+
get preLast(): VehicleLogbook;
|
15
21
|
}
|
package/src/lib/core.module.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
2
3
|
import * as i0 from "@angular/core";
|
3
4
|
import * as i1 from "@angular/common";
|
4
5
|
import * as i2 from "./interceptors/interceptors.module";
|
@@ -6,7 +7,7 @@ import * as i2 from "./interceptors/interceptors.module";
|
|
6
7
|
* https://angular.io/guide/creating-libraries
|
7
8
|
*/
|
8
9
|
export declare class CoreModule {
|
9
|
-
static forRoot(environment: object): ModuleWithProviders<
|
10
|
+
static forRoot(environment: object): ModuleWithProviders<CommonModule>;
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
|
11
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, [typeof i1.CommonModule, typeof i2.InterceptorsModule], never>;
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export declare enum ChartAccountsPropertyAdjustmentsListEnum {
|
2
2
|
INTEREST_ON_LOAN = 302,
|
3
3
|
ADVERTISING_FOR_TENANTS = 308,
|
4
|
-
BODY_CORPORATE_FEES =
|
4
|
+
BODY_CORPORATE_FEES = 310,
|
5
5
|
SPECIAL_LEVY = 311,
|
6
6
|
BORROWING_EXPENSES_BANK_FEES = 313,
|
7
7
|
BORROWING_EXPENSES = 315,
|
@@ -3,9 +3,11 @@ export * from './allocation-rule-condition-field.enum';
|
|
3
3
|
export * from './allocation-rule-condition-operator.enum';
|
4
4
|
export * from './allocation-rule-type.enum';
|
5
5
|
export * from './bank';
|
6
|
+
export * from './firm';
|
6
7
|
export * from './annual-frequency.enum';
|
7
8
|
export * from './chart-accounts';
|
8
9
|
export * from './document-type.enum';
|
9
10
|
export * from './holding';
|
10
11
|
export * from './tax-return';
|
11
12
|
export * from './subscription';
|
13
|
+
export * from './user';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './gender.enum';
|
@@ -2,6 +2,7 @@ import { TaxReviewStatusEnum } from '../../../Enums/tax-review-status.enum';
|
|
2
2
|
import { User } from '../../user/user';
|
3
3
|
import { Firm } from '../firm';
|
4
4
|
import { AbstractModel } from '../../abstract-model';
|
5
|
+
import { FirmBranch } from '../../../../models';
|
5
6
|
export declare class TaxReview extends AbstractModel {
|
6
7
|
id?: number;
|
7
8
|
financialYear?: number;
|
@@ -11,4 +12,5 @@ export declare class TaxReview extends AbstractModel {
|
|
11
12
|
client?: User;
|
12
13
|
employee?: User;
|
13
14
|
firm?: Firm;
|
15
|
+
firmBranch?: FirmBranch;
|
14
16
|
}
|
@@ -4,6 +4,7 @@ import { User } from '../user/user';
|
|
4
4
|
import { Message } from './message';
|
5
5
|
import { MessageDocument } from './message-document';
|
6
6
|
import { AbstractModel } from '../abstract-model';
|
7
|
+
import { FirmBranch } from '../../../models';
|
7
8
|
export declare class Chat extends AbstractModel {
|
8
9
|
status?: ChatStatusEnum;
|
9
10
|
createdAt?: Date;
|
@@ -14,4 +15,5 @@ export declare class Chat extends AbstractModel {
|
|
14
15
|
client?: User;
|
15
16
|
messages?: Message[];
|
16
17
|
documents?: MessageDocument[];
|
18
|
+
firmBranch?: FirmBranch;
|
17
19
|
}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { ClientInviteTypeEnum } from '../../Enums/client-invite-type.enum';
|
2
2
|
import { ClientInviteStatusEnum } from '../../Enums/client-invite-status.enum';
|
3
3
|
import { User } from '../user/user';
|
4
|
-
import { Firm } from './firm';
|
5
4
|
import { RegistrationInvite } from '../user/registration-invite';
|
6
5
|
import { ObservableModel } from '../observable-model';
|
6
|
+
import { FirmBranchInterface } from '../../../models/firm/firm-branch.interface';
|
7
|
+
import { Firm } from './firm';
|
7
8
|
export declare class ClientInvite extends ObservableModel {
|
8
9
|
static className: string;
|
9
10
|
type?: ClientInviteTypeEnum;
|
@@ -12,6 +13,8 @@ export declare class ClientInvite extends ObservableModel {
|
|
12
13
|
updatedAt?: Date;
|
13
14
|
employee?: User;
|
14
15
|
client?: User;
|
15
|
-
firm?: Firm;
|
16
16
|
registrationInvite?: RegistrationInvite;
|
17
|
+
address?: string;
|
18
|
+
firm?: Firm;
|
19
|
+
firmBranch?: FirmBranchInterface;
|
17
20
|
}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { Firm } from './firm';
|
2
1
|
import { User } from '../user/user';
|
3
2
|
import { ObservableModel } from '../observable-model';
|
3
|
+
import { FirmBranch } from '../../../models';
|
4
4
|
export declare class ClientMovement extends ObservableModel {
|
5
5
|
static className: string;
|
6
6
|
dateFrom?: Date;
|
7
7
|
dateTo?: Date;
|
8
|
-
firm?: Firm;
|
9
8
|
client?: User;
|
10
9
|
employee?: User;
|
10
|
+
firmBranch?: FirmBranch;
|
11
11
|
}
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import { User } from '../user/user';
|
2
|
-
import { Firm } from './firm';
|
3
2
|
import { RegistrationInvite } from '../user/registration-invite';
|
4
3
|
import { AbstractModel } from '../abstract-model';
|
4
|
+
import { FirmBranch } from '../../../models';
|
5
|
+
import { EmployeeInviteRoleEnum } from '../../Enums';
|
5
6
|
export declare class EmployeeInvite extends AbstractModel {
|
6
7
|
employee?: User;
|
7
|
-
firm?: Firm;
|
8
8
|
registrationInvite?: RegistrationInvite;
|
9
|
+
firmBranches?: FirmBranch[];
|
10
|
+
role?: EmployeeInviteRoleEnum;
|
9
11
|
}
|
@@ -2,14 +2,10 @@ import { Chat } from './chat';
|
|
2
2
|
import { Message } from './message';
|
3
3
|
import { User } from '../user/user';
|
4
4
|
import { AbstractModel } from '../abstract-model';
|
5
|
+
import { File } from '../file';
|
5
6
|
export declare class MessageDocument extends AbstractModel {
|
6
|
-
name?: string;
|
7
|
-
originalName?: string;
|
8
|
-
size?: number;
|
9
|
-
mimeType?: string;
|
10
|
-
createdAt?: Date;
|
11
|
-
updatedAt?: Date;
|
12
7
|
chat?: Chat;
|
13
8
|
message?: Message;
|
14
9
|
user?: User;
|
10
|
+
file: File;
|
15
11
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IncomeSourceForecastTrustTypeEnum } from '../../Enums/income-source
|
1
|
+
import { IncomeSourceForecastTrustTypeEnum } from '../../Enums/income-source';
|
2
2
|
import { IncomeSource } from './income-source';
|
3
3
|
import { IncomeSourceType } from './income-source-type';
|
4
4
|
import { AbstractModel } from '../abstract-model';
|
@@ -11,4 +11,5 @@ export declare class IncomeSourceForecast extends AbstractModel {
|
|
11
11
|
trustType?: IncomeSourceForecastTrustTypeEnum;
|
12
12
|
incomeSource?: IncomeSource;
|
13
13
|
incomeSourceType?: IncomeSourceType;
|
14
|
+
isManual?: boolean;
|
14
15
|
}
|
@@ -2,7 +2,7 @@ import { User } from '../user/user';
|
|
2
2
|
import { SalaryForecast } from './salary-forecast';
|
3
3
|
import { SoleForecast } from '../sole/sole-forecast';
|
4
4
|
import { IncomeSourceForecast } from './income-source-forecast';
|
5
|
-
import { IncomeSourceTypeEnum } from '../../Enums/income-source
|
5
|
+
import { IncomeSourceTypeEnum } from '../../Enums/income-source';
|
6
6
|
import { AbstractModel } from '../abstract-model';
|
7
7
|
export declare class IncomeSource extends AbstractModel {
|
8
8
|
name?: string;
|
@@ -6,12 +6,12 @@ import { SoleInvoiceTemplate } from './sole-invoice-template';
|
|
6
6
|
import { VehicleClaim } from '../vehicle/vehicle-claim';
|
7
7
|
import { Transaction } from '../transaction/transaction';
|
8
8
|
import { Depreciation } from '../depreciation/depreciation';
|
9
|
-
import { AbstractModel } from '../abstract-model';
|
10
9
|
import { VehicleLogbook } from '../vehicle/vehicle-logbook';
|
11
10
|
import { SoleBusinessActivity } from './sole-business-activity';
|
12
11
|
import { IncomeSource } from '../incomeSource/income-source';
|
13
12
|
import { File } from '../file';
|
14
|
-
|
13
|
+
import { ObservableModel } from '../observable-model';
|
14
|
+
export declare class SoleBusiness extends ObservableModel {
|
15
15
|
name?: string;
|
16
16
|
description?: string;
|
17
17
|
website?: string;
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { User } from './user';
|
2
2
|
import { Firm } from '../firm/firm';
|
3
3
|
import { AbstractModel } from '../abstract-model';
|
4
|
+
import { FirmBranchInterface } from '../../../models/firm/firm-branch.interface';
|
4
5
|
export declare class EmployeeDetails extends AbstractModel {
|
5
6
|
user?: User;
|
6
7
|
firm?: Firm;
|
8
|
+
firmBranches: FirmBranchInterface[];
|
7
9
|
}
|
@@ -17,6 +17,7 @@ import { SoleDetails } from '../sole/sole-details';
|
|
17
17
|
import { File } from '../file';
|
18
18
|
import { ObservableModel } from '../observable-model';
|
19
19
|
import { SetupItem } from '../setup-item';
|
20
|
+
import { GenderEnum } from '../../Enums/user/gender.enum';
|
20
21
|
export declare class User extends ObservableModel {
|
21
22
|
static className: string;
|
22
23
|
intercomId?: number;
|
@@ -28,6 +29,7 @@ export declare class User extends ObservableModel {
|
|
28
29
|
firstName?: string;
|
29
30
|
lastName?: string;
|
30
31
|
title?: UserTitleEnum;
|
32
|
+
gender?: GenderEnum;
|
31
33
|
status?: UserStatusEnum;
|
32
34
|
isConfirmed?: boolean;
|
33
35
|
verificationCode?: string;
|
@@ -1,16 +1,24 @@
|
|
1
|
-
import { AbstractControl, AbstractControlOptions, AsyncValidatorFn,
|
1
|
+
import { AbstractControl, AbstractControlOptions, AsyncValidatorFn, FormGroup, ValidatorFn } from '@angular/forms';
|
2
2
|
import { EventEmitter, Type } from '@angular/core';
|
3
|
+
/**
|
4
|
+
* Default Controls Interface with loose typing
|
5
|
+
*/
|
6
|
+
export interface ControlsInterface {
|
7
|
+
[key: string]: AbstractControl<any, any>;
|
8
|
+
}
|
3
9
|
/**
|
4
10
|
* Abstract form class
|
5
11
|
* @TODO rename to AbstractFormGroup
|
6
12
|
* @TODO Alex TT-2190: refactor: check and improve logic
|
13
|
+
* @TODO Model extends AbstractModel
|
7
14
|
*/
|
8
|
-
export declare abstract class AbstractForm<Model> extends
|
15
|
+
export declare abstract class AbstractForm<Model, Controls extends ControlsInterface = ControlsInterface> extends FormGroup<Controls> {
|
9
16
|
static inputMaxLength: number;
|
10
17
|
/**
|
11
18
|
* Initial form value for comparison with changes to check saved/unsaved state
|
19
|
+
* @TODO typehint to model interface when all db/models migrated to interfaces
|
12
20
|
*/
|
13
|
-
initialValue:
|
21
|
+
initialValue: any;
|
14
22
|
protected excludeExtraneousValues: boolean;
|
15
23
|
protected modelClass: Type<Model>;
|
16
24
|
model: Model;
|
@@ -21,11 +29,10 @@ export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
|
|
21
29
|
*/
|
22
30
|
unsaved: boolean;
|
23
31
|
onSubmit: EventEmitter<Model>;
|
24
|
-
protected constructor(controls:
|
25
|
-
[key: string]: AbstractControl;
|
26
|
-
}, model?: Model, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
|
32
|
+
protected constructor(controls: Controls, model?: Model, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
|
27
33
|
get saved(): boolean;
|
28
34
|
get currentValue(): Model;
|
35
|
+
toggleEnabledState(): void;
|
29
36
|
/**
|
30
37
|
* Check validation and return a new instance of generic model.
|
31
38
|
* Merge form value to initial object
|
@@ -33,7 +40,7 @@ export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
|
|
33
40
|
* @param includeDisabledFields ignore disabled fields
|
34
41
|
*/
|
35
42
|
submit(data?: object, includeDisabledFields?: boolean): Model;
|
36
|
-
addControl(name: string, control:
|
43
|
+
addControl(name: string, control: Controls[string], options?: {
|
37
44
|
emitEvent?: boolean;
|
38
45
|
}): this;
|
39
46
|
markAsUnsaved(): void;
|