taxtank-core 0.33.1 → 0.33.3
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/auth/jwt.service.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 +8 -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 +7 -6
- 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 +56 -44
- package/fesm2022/taxtank-core-common.mjs.map +1 -1
- package/fesm2022/taxtank-core.mjs +1545 -870
- 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
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { ControlsInterface } from '../abstract.form';
|
3
|
+
import { ChatCollection } from '../../collections';
|
4
|
+
import { IEventListener } from '../../interfaces';
|
5
|
+
import { ReplaySubject } from 'rxjs';
|
6
|
+
import { Chat } from '../../models';
|
7
|
+
interface IChatFilterControls extends ControlsInterface {
|
8
|
+
query: FormControl<string>;
|
9
|
+
myChats: FormControl<boolean>;
|
10
|
+
}
|
11
|
+
export declare class ChatFilterForm extends FormGroup<IChatFilterControls> implements IEventListener {
|
12
|
+
private collection;
|
13
|
+
dataChanges: ReplaySubject<Chat[]>;
|
14
|
+
constructor(collection: ChatCollection);
|
15
|
+
listenEvents(): void;
|
16
|
+
filter(source?: ChatCollection): void;
|
17
|
+
}
|
18
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './chat-filter.form';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { FormArray } from '@angular/forms';
|
2
|
+
import { AbstractForm } from './';
|
3
|
+
import { AbstractModel } from '../db/Models';
|
4
|
+
export declare class CollectionForm<Form extends AbstractForm<Model>, Model extends AbstractModel> extends FormArray<Form> {
|
5
|
+
private formConstructor;
|
6
|
+
private args;
|
7
|
+
constructor(formConstructor: new (model?: Model, ...args: any[]) => Form, models?: Model[], ...args: any[]);
|
8
|
+
createFormGroup(model?: Model): Form;
|
9
|
+
add(model?: Model): void;
|
10
|
+
/**
|
11
|
+
* Submit form and return array of properties from form value
|
12
|
+
*/
|
13
|
+
submit(data?: object, includeDisabledFields?: boolean): Model[];
|
14
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
2
|
+
import { AbstractForm, ControlsInterface } from '../abstract.form';
|
3
|
+
import { ClientInvite, FirmBranch, User } from '../../models';
|
4
|
+
interface ClientInvitePutControlsInterface extends ControlsInterface {
|
5
|
+
employee: FormControl<User>;
|
6
|
+
firmBranch: FormControl<FirmBranch>;
|
7
|
+
}
|
8
|
+
export declare class ClientInvitePutForm extends AbstractForm<ClientInvite, ClientInvitePutControlsInterface> {
|
9
|
+
constructor(invite?: ClientInvite);
|
10
|
+
}
|
11
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { AbstractForm, ControlsInterface } from '../abstract.form';
|
3
|
+
import { ClientInvite, User } from '../../models';
|
4
|
+
interface ClientInviteControlsInterface extends ControlsInterface {
|
5
|
+
employee: FormControl<User>;
|
6
|
+
registrationInvite: FormGroup<{
|
7
|
+
firstName: FormControl<string>;
|
8
|
+
lastName: FormControl<string>;
|
9
|
+
email: FormControl<string>;
|
10
|
+
}>;
|
11
|
+
}
|
12
|
+
export declare class ClientInviteForm extends AbstractForm<ClientInvite, ClientInviteControlsInterface> {
|
13
|
+
constructor(invite?: ClientInvite);
|
14
|
+
}
|
15
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
2
|
+
import { AbstractForm, ControlsInterface } from '../abstract.form';
|
3
|
+
import { ClientMovement, FirmBranch, User } from '../../models';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
interface ClientMovementControlsInterface extends ControlsInterface {
|
6
|
+
employee: FormControl<User>;
|
7
|
+
firmBranch: FormControl<FirmBranch>;
|
8
|
+
}
|
9
|
+
export declare class ClientMovementForm extends AbstractForm<ClientMovement, ClientMovementControlsInterface> {
|
10
|
+
constructor(clientMovement: ClientMovement);
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClientMovementForm, never>;
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClientMovementForm>;
|
13
|
+
}
|
14
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
2
|
+
import { AbstractForm, ControlsInterface } from '../abstract.form';
|
3
|
+
import { FirmBranch } from '../../models';
|
4
|
+
import { EmployeeDetails } from '../../models/employee/employee-details';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
interface EmployeeDetailsControlsInterface extends ControlsInterface {
|
7
|
+
firmBranches: FormControl<FirmBranch[]>;
|
8
|
+
}
|
9
|
+
export declare class EmployeeDetailsForm extends AbstractForm<EmployeeDetails, EmployeeDetailsControlsInterface> {
|
10
|
+
constructor(employeeDetails: EmployeeDetails);
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmployeeDetailsForm, never>;
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EmployeeDetailsForm>;
|
13
|
+
}
|
14
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { AbstractForm, ControlsInterface } from '../abstract.form';
|
3
|
+
import { EmployeeInvite } from '../../models/employee/employee-invite';
|
4
|
+
import { UniqueEmailValidator } from '../../validators';
|
5
|
+
import { EmployeeInviteRoleEnum } from '../../db/Enums';
|
6
|
+
interface EmployeeInviteControlsInterface extends ControlsInterface {
|
7
|
+
registrationInvite: FormGroup<{
|
8
|
+
firstName: FormControl<string>;
|
9
|
+
lastName: FormControl<string>;
|
10
|
+
email: FormControl<string>;
|
11
|
+
}>;
|
12
|
+
role: FormControl<EmployeeInviteRoleEnum>;
|
13
|
+
}
|
14
|
+
export declare class EmployeeInviteForm extends AbstractForm<EmployeeInvite, EmployeeInviteControlsInterface> {
|
15
|
+
constructor(invite?: EmployeeInvite, uniqueEmailValidator?: UniqueEmailValidator);
|
16
|
+
}
|
17
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { AbstractForm, ControlsInterface } from '../abstract.form';
|
3
|
+
import { ClientInvite } from '../../models';
|
4
|
+
interface ClientInvitePutControlsInterface extends ControlsInterface {
|
5
|
+
address: FormControl<string>;
|
6
|
+
registrationInvite: FormGroup<{
|
7
|
+
firstName: FormControl<string>;
|
8
|
+
lastName: FormControl<string>;
|
9
|
+
email: FormControl<string>;
|
10
|
+
}>;
|
11
|
+
}
|
12
|
+
export declare class FirmInviteForm extends AbstractForm<ClientInvite, ClientInvitePutControlsInterface> {
|
13
|
+
constructor(invite?: ClientInvite);
|
14
|
+
}
|
15
|
+
export {};
|
@@ -1 +1,8 @@
|
|
1
1
|
export * from './firm.form';
|
2
|
+
export * from './firm-branch.form';
|
3
|
+
export * from './employee-invite.form';
|
4
|
+
export * from './client-movement.form';
|
5
|
+
export * from './employee-details.form';
|
6
|
+
export * from './client-invite.form';
|
7
|
+
export * from './client-invite-put.form';
|
8
|
+
export * from './firm-invite.form';
|
@@ -1,12 +1,19 @@
|
|
1
1
|
import { HoldingReinvest } from '../../models';
|
2
2
|
import { IEventListener } from '../../interfaces';
|
3
3
|
import { AbstractForm } from '../abstract.form';
|
4
|
+
/**
|
5
|
+
* @TODO vik TT-4048
|
6
|
+
*/
|
4
7
|
export declare class HoldingReinvestForm extends AbstractForm<HoldingReinvest> implements IEventListener {
|
5
8
|
private reinvest;
|
6
9
|
constructor(reinvest: HoldingReinvest);
|
7
10
|
listenEvents(): void;
|
8
11
|
private get transactionForm();
|
9
12
|
private get holdingForm();
|
13
|
+
/**
|
14
|
+
* calculated automatically as cashVariance=transactionAmount-frankedAmount-unfrankedAmount
|
15
|
+
*/
|
16
|
+
private listenAmountChanges;
|
10
17
|
/**
|
11
18
|
* Set transaction amount based on holding quantity and price
|
12
19
|
*/
|
package/src/lib/forms/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
export * from './abstract.form';
|
2
|
+
export * from './collection.form';
|
2
3
|
export * from './address';
|
3
4
|
export * from './budget';
|
4
5
|
export * from './document-folder';
|
@@ -24,3 +25,5 @@ export * from './transaction';
|
|
24
25
|
export * from './depreciation';
|
25
26
|
export * from './holding';
|
26
27
|
export * from './chart-accounts';
|
28
|
+
export * from './tax-review';
|
29
|
+
export * from './chat';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
2
|
-
import { Loan } from '../../models
|
3
|
-
import { LoanTypeEnum } from '../../db/Enums/bank/loan
|
2
|
+
import { Loan } from '../../models';
|
3
|
+
import { LoanTypeEnum } from '../../db/Enums/bank/loan';
|
4
4
|
/**
|
5
5
|
* Form with loan details.
|
6
6
|
* Loan could be created from bank account (Bank Loan) or directly from loan page (Vehicle Loan)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AbstractForm } from '../abstract.form';
|
2
|
-
import { FirmTypeEnum } from '../../db/Enums
|
3
|
-
import { Firm } from '../../models
|
2
|
+
import { FirmTypeEnum } from '../../db/Enums';
|
3
|
+
import { Firm } from '../../models';
|
4
4
|
export declare class RegisterFirmForm extends AbstractForm<Firm> {
|
5
5
|
private firmType;
|
6
6
|
constructor(firmType: FirmTypeEnum, referenceCode?: string);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AbstractForm } from '../../abstract.form';
|
2
|
-
import { MyTaxDeductions } from '../../../models/report
|
2
|
+
import { MyTaxDeductions } from '../../../models/report';
|
3
3
|
export declare class MyTaxDeductionsForm extends AbstractForm<MyTaxDeductions> {
|
4
4
|
constructor(deductions: MyTaxDeductions);
|
5
5
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AbstractForm } from '../../abstract.form';
|
2
|
-
import { MyTaxRent } from '../../../models/report
|
2
|
+
import { MyTaxRent } from '../../../models/report';
|
3
3
|
export declare class MyTaxRentForm extends AbstractForm<MyTaxRent> {
|
4
4
|
constructor(rent: MyTaxRent);
|
5
5
|
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { ControlsInterface } from '../abstract.form';
|
3
|
+
import { TaxReviewCollection } from '../../collections';
|
4
|
+
import { IEventListener } from '../../interfaces';
|
5
|
+
import { TaxReviewFilterStatusEnum } from './tax-review-filter-status.enum';
|
6
|
+
import { ReplaySubject } from 'rxjs';
|
7
|
+
import { TaxReview } from '../../models/tax-review/tax-review';
|
8
|
+
interface ITaxReviewFilterControls extends ControlsInterface {
|
9
|
+
query: FormControl<string>;
|
10
|
+
dateFrom: FormControl<Date>;
|
11
|
+
dateTo: FormControl<Date>;
|
12
|
+
status: FormControl<TaxReviewFilterStatusEnum>;
|
13
|
+
}
|
14
|
+
export declare class TaxReviewFilterForm extends FormGroup<ITaxReviewFilterControls> implements IEventListener {
|
15
|
+
private collection;
|
16
|
+
dataChanges: ReplaySubject<TaxReview[]>;
|
17
|
+
constructor(collection: TaxReviewCollection);
|
18
|
+
listenEvents(): void;
|
19
|
+
filter(source?: TaxReviewCollection): void;
|
20
|
+
}
|
21
|
+
export {};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Transaction, TransactionAllocation } from '../../../models';
|
2
|
+
import { AbstractControl, FormArray } from '@angular/forms';
|
2
3
|
import { IEventListener } from '../../../interfaces';
|
3
4
|
import { WorkTransactionForm } from '../work/work-transaction.form';
|
4
5
|
export declare class HoldingIncomeForm extends WorkTransactionForm implements IEventListener {
|
@@ -6,12 +7,18 @@ export declare class HoldingIncomeForm extends WorkTransactionForm implements IE
|
|
6
7
|
* @TODO vik partial copyPast from workIncomeForm
|
7
8
|
*/
|
8
9
|
constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[]);
|
10
|
+
/**
|
11
|
+
* metafields components of transactionAmount
|
12
|
+
*/
|
13
|
+
getAmountComponents(): AbstractControl[];
|
9
14
|
listenEvents(): void;
|
15
|
+
get metaFields(): FormArray;
|
16
|
+
get frankingCredit(): AbstractControl;
|
10
17
|
/**
|
11
18
|
* @TODO Alex/Vik: probably we need some database changes related to metafields.
|
12
19
|
* Now we have the following custom metafields behaviour:
|
13
20
|
* - % of share field should be 100 by default (now handled by WorkTransactionForm)
|
14
|
-
* - Franked and Unfranked sum should be equal to transaction amount
|
21
|
+
* - Franked and Unfranked sum should be equal to transaction amount
|
15
22
|
* - Franked field has custom message (mat-hint) (now handled by HoldingIncomeFormComponent)
|
16
23
|
* - some metafields required, but some not (now handled by HoldingIncomeForm)
|
17
24
|
*/
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { ControlsInterface } from '../abstract.form';
|
3
|
+
import { Collection } from '../../collections';
|
4
|
+
import { TankTypeEnum } from '../../db/Enums/tank-type.enum';
|
5
|
+
import { SoleBusiness } from '../../models';
|
6
|
+
import { IEventListener } from '../../interfaces';
|
7
|
+
import { TransactionBase } from '../../db/Models';
|
8
|
+
interface ITransactionBaseFilterControls extends ControlsInterface {
|
9
|
+
tankType: FormControl<TankTypeEnum>;
|
10
|
+
business: FormControl<SoleBusiness>;
|
11
|
+
dateFrom: FormControl<Date>;
|
12
|
+
dateTo: FormControl<Date>;
|
13
|
+
}
|
14
|
+
export declare class TransactionBaseFilterForm extends FormGroup<ITransactionBaseFilterControls> implements IEventListener {
|
15
|
+
constructor(tankType?: TankTypeEnum, business?: SoleBusiness);
|
16
|
+
listenEvents(): void;
|
17
|
+
filter<ModelClass extends TransactionBase, CollectionClass extends Collection<ModelClass>>(collection: CollectionClass): CollectionClass;
|
18
|
+
}
|
19
|
+
export {};
|
@@ -3,7 +3,7 @@ import { IEventListener } from '../../../interfaces';
|
|
3
3
|
import { Transaction, TransactionAllocation } from '../../../models';
|
4
4
|
import { AbstractControl } from '@angular/forms';
|
5
5
|
export declare abstract class WorkTransactionForm extends TransactionForm implements IEventListener {
|
6
|
-
constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[], controls?: {
|
6
|
+
protected constructor(transaction: Transaction, registeredForGst: boolean, allocations: TransactionAllocation[], controls?: {
|
7
7
|
[key: string]: AbstractControl;
|
8
8
|
});
|
9
9
|
listenEvents(): void;
|
@@ -1,5 +1,17 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { FormControl } from '@angular/forms';
|
2
|
+
import { Address, AppFile, User } from '../../models';
|
3
|
+
import { AbstractForm, ControlsInterface } from '../abstract.form';
|
4
|
+
import { UserTitleEnum } from '../../db/Enums/user-title.enum';
|
5
|
+
import { Phone } from '../../models/phone/phone';
|
6
|
+
interface UserControlsInterface extends ControlsInterface {
|
7
|
+
title: FormControl<UserTitleEnum>;
|
8
|
+
firstName: FormControl<string>;
|
9
|
+
lastName: FormControl<string>;
|
10
|
+
address: FormControl<Address>;
|
11
|
+
phone: FormControl<Phone>;
|
12
|
+
file: FormControl<AppFile>;
|
13
|
+
}
|
14
|
+
export declare class UserForm extends AbstractForm<User, UserControlsInterface> {
|
4
15
|
constructor(user: User);
|
5
16
|
}
|
17
|
+
export {};
|
@@ -5,8 +5,6 @@ import { VehicleClaimDetails } from '../../models';
|
|
5
5
|
* Add/Edit Vehicle Claim form
|
6
6
|
*/
|
7
7
|
export declare class VehicleClaimForm extends AbstractForm<VehicleClaim> {
|
8
|
-
private vehicleClaim;
|
9
|
-
private details;
|
10
8
|
/**
|
11
9
|
* @param vehicleClaim required even for the new claim, because claim needs business for sole tank
|
12
10
|
* @param details required for form controls disabled state management
|
@@ -2,10 +2,16 @@ import { BankConnection as BankConnectionBase } from '../../db/Models/bank/bank-
|
|
2
2
|
import { BasiqJob } from './basiq';
|
3
3
|
import { Bank } from './bank';
|
4
4
|
export declare class BankConnection extends BankConnectionBase {
|
5
|
+
/**
|
6
|
+
* reminder to extend connection agreement
|
7
|
+
*/
|
8
|
+
static expiryReminderDays: number;
|
5
9
|
basiqJob: BasiqJob;
|
6
10
|
bank: Bank;
|
7
11
|
lastSuccessImportDate: Date;
|
12
|
+
expiryDate?: Date;
|
8
13
|
isPending(): boolean;
|
14
|
+
isInvalid(): boolean;
|
9
15
|
isActive(): boolean;
|
10
16
|
isReconnecting(): boolean;
|
11
17
|
setPending(): void;
|
@@ -17,4 +23,6 @@ export declare class BankConnection extends BankConnectionBase {
|
|
17
23
|
isAccountsRetrieved(): boolean;
|
18
24
|
isJobFailed(): boolean;
|
19
25
|
isTemporaryUnavailable(): boolean;
|
26
|
+
isExpiring(): boolean;
|
27
|
+
isExpired(): boolean;
|
20
28
|
}
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import { Chat as ChatBase } from '../../db/Models/firm/chat';
|
2
|
-
import { User } from '../user
|
2
|
+
import { User } from '../user';
|
3
|
+
import { FirmBranch } from '../firm';
|
3
4
|
export declare class Chat extends ChatBase {
|
4
5
|
employee: User;
|
5
6
|
client: User;
|
6
7
|
updatedAt: Date;
|
8
|
+
firmBranch: FirmBranch;
|
7
9
|
/**
|
8
10
|
* Check if chat is active
|
9
11
|
*/
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { MessageDocument as MessageDocumentBase } from '../../db/Models/firm/message-document';
|
2
|
-
import { IAsset } from '../../interfaces
|
3
|
-
import { AssetEntityTypeEnum } from '../../interfaces
|
4
|
-
import { AssetTypeEnum } from '../../interfaces
|
5
|
-
import { User } from '../user
|
2
|
+
import { IAsset } from '../../interfaces';
|
3
|
+
import { AssetEntityTypeEnum } from '../../interfaces';
|
4
|
+
import { AssetTypeEnum } from '../../interfaces';
|
5
|
+
import { User } from '../user';
|
6
6
|
import { AppFile } from '../file';
|
7
7
|
export declare class MessageDocument extends MessageDocumentBase implements IAsset {
|
8
8
|
entityType: AssetEntityTypeEnum;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { AbstractModel } from '../../db/Models';
|
2
2
|
import { ClientDetails } from './client-details';
|
3
3
|
export declare class AnnualClientDetails extends AbstractModel {
|
4
|
-
capitalLoss: number;
|
5
4
|
privateHealthCare: boolean;
|
6
5
|
spouse: boolean;
|
7
6
|
spouseAnnualIncome: number;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { CapitalLossInterface } from './capital-loss.interface';
|
2
|
+
import { ClientDetails } from './client-details';
|
3
|
+
import { AbstractModel } from '../../db/Models';
|
4
|
+
export declare class CapitalLoss extends AbstractModel implements CapitalLossInterface {
|
5
|
+
clientDetails: ClientDetails;
|
6
|
+
financialYear: number;
|
7
|
+
balance: number;
|
8
|
+
isManual: boolean;
|
9
|
+
}
|
@@ -1,3 +1,11 @@
|
|
1
1
|
import { ClientDetails as ClientDetailsBase } from '../../db/Models/client/client-details';
|
2
2
|
export declare class ClientDetails extends ClientDetailsBase {
|
3
|
+
/**
|
4
|
+
* reminder to sign basiq consent after x days before the expiration
|
5
|
+
*/
|
6
|
+
static consentExpiryReminderDays: number;
|
7
|
+
get taxFileNumberMasked(): string;
|
8
|
+
basiqConsentExpiryDate: Date;
|
9
|
+
isBasiqConsentExpiring(): boolean;
|
10
|
+
isBasiqConsentExpired(): boolean;
|
3
11
|
}
|
@@ -1,14 +1,15 @@
|
|
1
1
|
import { ClientInvite as ClientInviteBase } from '../../db/Models/firm/client-invite';
|
2
2
|
import { RegistrationInvite } from '../registration-invite/registration-invite';
|
3
|
-
import { Firm } from '../firm/firm';
|
4
3
|
import { User } from '../user';
|
4
|
+
import { Firm, FirmBranch } from '../firm';
|
5
5
|
export declare class ClientInvite extends ClientInviteBase {
|
6
6
|
sentOn: Date;
|
7
7
|
updatedAt: Date;
|
8
|
-
firm: Firm;
|
9
8
|
client: User;
|
10
9
|
employee: User;
|
11
10
|
registrationInvite: RegistrationInvite;
|
11
|
+
firm: Firm;
|
12
|
+
firmBranch: FirmBranch;
|
12
13
|
/**
|
13
14
|
* Check if client invite status is pending
|
14
15
|
*/
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { ClientMovement as ClientMovementBase } from '../../db/Models/firm/client-movement';
|
2
|
-
import { Firm } from '../firm
|
2
|
+
import { Firm, FirmBranch } from '../firm';
|
3
3
|
import { User } from '../user';
|
4
4
|
export declare class ClientMovement extends ClientMovementBase {
|
5
|
-
firm: Firm;
|
6
5
|
client: User;
|
7
6
|
employee: User;
|
8
7
|
dateFrom: Date;
|
9
8
|
dateTo: Date;
|
9
|
+
firmBranch?: FirmBranch;
|
10
|
+
get firm(): Firm;
|
10
11
|
}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { EmployeeDetails as EmployeeDetailsBase } from '../../db/Models/user/employee-details';
|
2
|
-
import { Firm } from '../firm
|
2
|
+
import { Firm, FirmBranch } from '../firm';
|
3
3
|
export declare class EmployeeDetails extends EmployeeDetailsBase {
|
4
4
|
firm: Firm;
|
5
|
+
firmBranches: FirmBranch[];
|
6
|
+
get firmBranchNames(): string;
|
5
7
|
}
|
@@ -1,7 +1,13 @@
|
|
1
1
|
import { EmployeeInvite as EmployeeInviteBase } from '../../db/Models/firm/employee-invite';
|
2
2
|
import { RegistrationInvite } from '../registration-invite/registration-invite';
|
3
|
-
import { User } from '../user
|
3
|
+
import { User } from '../user';
|
4
|
+
import { FirmBranch } from '../firm';
|
4
5
|
export declare class EmployeeInvite extends EmployeeInviteBase {
|
5
6
|
registrationInvite: RegistrationInvite;
|
6
7
|
employee: User;
|
8
|
+
firmBranches?: FirmBranch[];
|
9
|
+
get firmBranchNames(): string;
|
10
|
+
get invitedFullName(): string;
|
11
|
+
get inviterFullName(): string;
|
12
|
+
get createdAt(): Date;
|
7
13
|
}
|
@@ -41,24 +41,23 @@ export declare enum AppEventTypeEnum {
|
|
41
41
|
PROPERTY_SUBSCRIPTION_ADDED = 36,
|
42
42
|
PROPERTY_SUBSCRIPTION_DELETED = 37,
|
43
43
|
PROPERTY_VALUATION_DOCUMENT_CREATED = 38,
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 58
|
44
|
+
SOLE_DEPRECIATION_METHOD_UPDATED = 39,
|
45
|
+
SOLE_DETAILS_CREATED = 40,
|
46
|
+
SOLE_DETAILS_UPDATED = 41,
|
47
|
+
SOLE_INVOICE_PUBLISHED = 42,
|
48
|
+
TAX_REVIEW_UPDATED = 43,
|
49
|
+
TRANSACTION_ALLOCATION_CREATED = 44,
|
50
|
+
TRANSACTION_ALLOCATION_DELETED = 45,
|
51
|
+
TRANSACTION_CREATED = 46,
|
52
|
+
TRANSACTION_DELETED = 47,
|
53
|
+
TRANSACTION_UPDATED = 48,
|
54
|
+
TRANSACTIONS_CREATED = 49,
|
55
|
+
VEHICLE_CLAIM_UPDATED = 50,
|
56
|
+
VEHICLE_CLAIM_CREATED = 51,
|
57
|
+
VEHICLE_CLAIM_DETAILS_UPDATED = 52,
|
58
|
+
VEHICLE_CLAIM_DETAILS_CREATED = 53,
|
59
|
+
VEHICLE_LOGBOOK_CREATED = 54,
|
60
|
+
VEHICLE_LOGBOOK_UPDATED = 55,
|
61
|
+
VEHICLE_LOGBOOK_DELETED = 56,
|
62
|
+
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 57
|
64
63
|
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Firm } from './firm';
|
2
|
+
import { Address } from '../address';
|
3
|
+
import { AbstractModel } from '../../db/Models';
|
4
|
+
import { FirmBranchInterface } from './firm-branch.interface';
|
5
|
+
import { Phone } from '../phone/phone';
|
6
|
+
export declare class FirmBranch extends AbstractModel implements FirmBranchInterface {
|
7
|
+
name: string;
|
8
|
+
isMain: boolean;
|
9
|
+
firm: Firm;
|
10
|
+
address: Address;
|
11
|
+
phone?: Phone;
|
12
|
+
}
|