taxtank-core 0.17.16 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taxtank-core.umd.js +6764 -5446
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/account-setup-item.collection.js +2 -2
- package/esm2015/lib/collections/bank.collection.js +15 -0
- package/esm2015/lib/collections/collection-dictionary.js +1 -1
- package/esm2015/lib/collections/collection.js +41 -55
- package/esm2015/lib/collections/depreciation.collection.js +6 -3
- package/esm2015/lib/collections/exportable.collection.js +1 -1
- package/esm2015/lib/collections/property/property.collection.js +3 -3
- package/esm2015/lib/collections/transaction/transaction.collection.js +11 -7
- package/esm2015/lib/collections/vehicle-logbook.collection.js +2 -2
- package/esm2015/lib/db/Enums/chart-accounts-heading-list.enum.js +20 -1
- package/esm2015/lib/db/Enums/chart-accounts-list.enum.js +37 -1
- package/esm2015/lib/db/Enums/chart-accounts-metadata-list.enum.js +4 -1
- package/esm2015/lib/db/Models/abstract-model.js +1 -1
- package/esm2015/lib/db/Models/bank/bank.js +1 -1
- package/esm2015/lib/forms/abstract.form.js +18 -3
- package/esm2015/lib/forms/bank/bank-account-add-manual.form.js +19 -0
- package/esm2015/lib/forms/bank/bank-account-loan.form.js +20 -0
- package/esm2015/lib/forms/bank/bank-account-migrate.form.js +15 -0
- package/esm2015/lib/forms/bank/bank-account-properties.form.js +15 -0
- package/esm2015/lib/forms/bank/bank-account-property.form.js +13 -0
- package/esm2015/lib/forms/bank/bank-account.form.js +53 -0
- package/esm2015/lib/forms/bank/bank-login.form.js +19 -0
- package/esm2015/lib/forms/client/client-income-types.form.js +2 -8
- package/esm2015/lib/forms/index.js +9 -1
- package/esm2015/lib/forms/login/login.form.js +1 -1
- package/esm2015/lib/forms/register/register-client.form.js +4 -3
- package/esm2015/lib/forms/register/register-firm.form.js +2 -9
- package/esm2015/lib/forms/report/my-tax/index.js +14 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-business-or-losses.form.js +10 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-deductions.form.js +75 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-dividends.form.js +23 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-employee-share-schemes.form.js +14 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-income-statements.form.js +92 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-income-tests.form.js +10 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-interest.form.js +12 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-losses.form.js +10 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-medicare.form.js +33 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-offsets.form.js +10 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-other-income.form.js +38 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.js +32 -0
- package/esm2015/lib/forms/report/my-tax/my-tax-rent.form.js +13 -0
- package/esm2015/lib/forms/user/password.form.js +6 -6
- package/esm2015/lib/forms/user/reset-password.form.js +1 -1
- package/esm2015/lib/forms/vehicle/vehicle-claim.form.js +2 -2
- package/esm2015/lib/forms/vehicle/vehicle.form.js +6 -12
- package/esm2015/lib/interceptors/basiq.interceptor.js +35 -0
- package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
- package/esm2015/lib/interceptors/financial-year-interceptor.js +17 -6
- package/esm2015/lib/interceptors/interceptors.module.js +16 -5
- package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
- package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
- package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
- package/esm2015/lib/models/account-setup/account-setup-item.js +4 -2
- package/esm2015/lib/models/bank/bank-account-property.js +6 -2
- package/esm2015/lib/models/bank/bank-account.js +2 -1
- package/esm2015/lib/models/bank/bank-connection.js +18 -3
- package/esm2015/lib/models/bank/bank-login-data.js +6 -0
- package/esm2015/lib/models/bank/bank.js +6 -1
- package/esm2015/lib/models/client/client-portfolio-report.js +3 -2
- package/esm2015/lib/models/endpoint/endpoints.const.js +4 -1
- package/esm2015/lib/models/event/app-event-type.enum.js +39 -38
- package/esm2015/lib/models/loan/loan-payment.js +3 -2
- package/esm2015/lib/models/loan/loan.js +1 -6
- package/esm2015/lib/models/pdf/pdf-settings.js +3 -1
- package/esm2015/lib/models/report/my-tax/ato-links.js +11 -0
- package/esm2015/lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses.js +8 -0
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.js +13 -0
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.js +57 -0
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.js +10 -0
- package/esm2015/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.js +72 -0
- package/esm2015/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.js +18 -0
- package/esm2015/lib/models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes.js +24 -0
- package/esm2015/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.js +68 -0
- package/esm2015/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.js +8 -0
- package/esm2015/lib/models/report/my-tax/my-tax-interest/my-tax-interest.js +11 -0
- package/esm2015/lib/models/report/my-tax/my-tax-losses/my-tax-losses.js +10 -0
- package/esm2015/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.js +8 -0
- package/esm2015/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.js +28 -0
- package/esm2015/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.js +31 -0
- package/esm2015/lib/models/report/my-tax/my-tax-rent/my-tax-rent.js +24 -0
- package/esm2015/lib/models/report/property/property-report-item.js +4 -2
- package/esm2015/lib/models/report/vehicle-expense/vehicle-expense.js +4 -2
- package/esm2015/lib/models/tax-summary/report-item-details.js +3 -2
- package/esm2015/lib/models/tax-summary/report-item.js +3 -2
- package/esm2015/lib/models/transaction/transaction.js +2 -1
- package/esm2015/lib/services/account-setup/account-setup.service.js +5 -5
- package/esm2015/lib/services/asset/assets.service.js +3 -3
- package/esm2015/lib/services/auth/auth.service.js +3 -3
- package/esm2015/lib/services/auth/jwt.service.js +3 -3
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/event/event-dispatcher.service.js +3 -3
- package/esm2015/lib/services/event/sse.service.js +7 -4
- package/esm2015/lib/services/export/export-formatter.service.js +3 -3
- package/esm2015/lib/services/header-title/header-title.service.js +3 -3
- package/esm2015/lib/services/http/address/address.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +5 -8
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +60 -5
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq-connections-response.interface.js +2 -0
- package/esm2015/lib/services/http/bank/basiq/basiq-token-response.interface.js +2 -0
- package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +42 -0
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +37 -46
- package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +3 -3
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
- package/esm2015/lib/services/http/chat/chat.service.js +3 -3
- package/esm2015/lib/services/http/chat/message/message.service.js +3 -3
- package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +3 -3
- package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee/employee.service.js +3 -3
- package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +3 -3
- package/esm2015/lib/services/http/firm/firm.service.js +3 -3
- package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source.service.js +3 -3
- package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +3 -3
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +3 -3
- package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
- package/esm2015/lib/services/http/loan/loan.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category/property-category.service.js +3 -3
- package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +3 -3
- package/esm2015/lib/services/http/property/property-document/property-document.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +3 -3
- package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +3 -3
- package/esm2015/lib/services/http/property/property-share/property-share.service.js +3 -3
- package/esm2015/lib/services/http/property/property.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest.service.js +4 -15
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
- package/esm2015/lib/services/http/subscription/service-price.service.js +3 -3
- package/esm2015/lib/services/http/subscription/subscription.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +3 -3
- package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
- package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
- package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +3 -3
- package/esm2015/lib/services/http/user/user.service.js +4 -17
- package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle.service.js +3 -3
- package/esm2015/lib/services/intercom/intercom.service.js +3 -3
- package/esm2015/lib/services/kompassify/kompassify.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-dom-element/file-settings.js +19 -0
- package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +35 -0
- package/esm2015/lib/services/pdf/pdf-from-table/file-settings.js +31 -0
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +40 -0
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +40 -0
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +53 -0
- package/esm2015/lib/services/preloader/preloader.service.js +3 -3
- package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
- package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +3 -3
- package/esm2015/lib/services/toast/toast.service.js +3 -3
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/user/user-switcher.service.js +3 -3
- package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
- package/esm2015/lib/tt-core.module.js +4 -4
- package/esm2015/lib/validators/date-range.validator.js +22 -0
- package/esm2015/lib/validators/index.js +3 -1
- package/esm2015/lib/validators/require-autocomplete.js +14 -0
- package/esm2015/lib/validators/require-select.validator.js +15 -0
- package/esm2015/public-api.js +27 -2
- package/fesm2015/taxtank-core.js +7135 -5965
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/bank.collection.d.ts +7 -0
- package/lib/collections/collection-dictionary.d.ts +2 -1
- package/lib/collections/collection.d.ts +18 -31
- package/lib/collections/depreciation.collection.d.ts +3 -2
- package/lib/collections/exportable.collection.d.ts +2 -1
- package/lib/collections/transaction/transaction.collection.d.ts +5 -4
- package/lib/db/Enums/chart-accounts-heading-list.enum.d.ts +20 -1
- package/lib/db/Enums/chart-accounts-list.enum.d.ts +37 -1
- package/lib/db/Enums/chart-accounts-metadata-list.enum.d.ts +4 -1
- package/lib/db/Models/abstract-model.d.ts +1 -0
- package/lib/db/Models/bank/bank.d.ts +4 -0
- package/lib/forms/abstract.form.d.ts +18 -3
- package/lib/forms/bank/bank-account-add-manual.form.d.ts +10 -0
- package/lib/forms/bank/bank-account-loan.form.d.ts +5 -0
- package/lib/forms/bank/bank-account-migrate.form.d.ts +9 -0
- package/lib/forms/bank/bank-account-properties.form.d.ts +8 -0
- package/lib/forms/bank/bank-account-property.form.d.ts +5 -0
- package/lib/forms/bank/bank-account.form.d.ts +21 -0
- package/lib/forms/bank/bank-login.form.d.ts +11 -0
- package/lib/forms/client/client-income-types.form.d.ts +1 -2
- package/lib/forms/index.d.ts +8 -0
- package/lib/forms/login/login.form.d.ts +4 -1
- package/lib/forms/register/register-client.form.d.ts +1 -1
- package/lib/forms/register/register-firm.form.d.ts +2 -2
- package/lib/forms/report/my-tax/index.d.ts +13 -0
- package/lib/forms/report/my-tax/my-tax-business-or-losses.form.d.ts +8 -0
- package/lib/forms/report/my-tax/my-tax-deductions.form.d.ts +5 -0
- package/lib/forms/report/my-tax/my-tax-dividends.form.d.ts +5 -0
- package/lib/forms/report/my-tax/my-tax-employee-share-schemes.form.d.ts +5 -0
- package/lib/forms/report/my-tax/my-tax-income-statements.form.d.ts +7 -0
- package/lib/forms/report/my-tax/my-tax-income-tests.form.d.ts +8 -0
- package/lib/forms/report/my-tax/my-tax-interest.form.d.ts +5 -0
- package/lib/forms/report/my-tax/my-tax-losses.form.d.ts +8 -0
- package/lib/forms/report/my-tax/my-tax-medicare.form.d.ts +9 -0
- package/lib/forms/report/my-tax/my-tax-offsets.form.d.ts +8 -0
- package/lib/forms/report/my-tax/my-tax-other-income.form.d.ts +5 -0
- package/lib/forms/report/my-tax/my-tax-partnerships-and-trusts.form.d.ts +5 -0
- package/lib/forms/report/my-tax/my-tax-rent.form.d.ts +5 -0
- package/lib/forms/user/password.form.d.ts +4 -1
- package/lib/forms/user/reset-password.form.d.ts +3 -1
- package/lib/forms/vehicle/vehicle-claim.form.d.ts +1 -1
- package/lib/forms/vehicle/vehicle.form.d.ts +3 -7
- package/lib/interceptors/basiq.interceptor.d.ts +15 -0
- package/lib/interceptors/financial-year-interceptor.d.ts +2 -0
- package/lib/models/account-setup/account-setup-item.d.ts +2 -1
- package/lib/models/bank/bank-account-property.d.ts +1 -0
- package/lib/models/bank/bank-account.d.ts +2 -0
- package/lib/models/bank/bank-connection.d.ts +8 -1
- package/lib/models/bank/bank-login-data.d.ts +17 -0
- package/lib/models/bank/bank.d.ts +1 -0
- package/lib/models/client/client-portfolio-report.d.ts +2 -1
- package/lib/models/event/app-event-type.enum.d.ts +38 -37
- package/lib/models/loan/loan-payment.d.ts +2 -1
- package/lib/models/loan/loan.d.ts +0 -2
- package/lib/models/report/my-tax/ato-links.d.ts +6 -0
- package/lib/models/report/my-tax/my-tax-business-or-losses/my-tax-business-or-losses.d.ts +7 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-clothing-type.enum.d.ts +11 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-fields.const.d.ts +8 -0
- package/lib/models/report/my-tax/my-tax-deductions/deduction-self-education-type.enum.d.ts +8 -0
- package/lib/models/report/my-tax/my-tax-deductions/my-tax-deductions.d.ts +39 -0
- package/lib/models/report/my-tax/my-tax-dividends/my-tax-dividends.d.ts +9 -0
- package/lib/models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes.d.ts +10 -0
- package/lib/models/report/my-tax/my-tax-income-statements/my-tax-income-statements.d.ts +30 -0
- package/lib/models/report/my-tax/my-tax-income-tests/my-tax-income-tests.d.ts +7 -0
- package/lib/models/report/my-tax/my-tax-interest/my-tax-interest.d.ts +9 -0
- package/lib/models/report/my-tax/my-tax-losses/my-tax-losses.d.ts +8 -0
- package/lib/models/report/my-tax/my-tax-offsets/my-tax-offsets.d.ts +7 -0
- package/lib/models/report/my-tax/my-tax-other-income/my-tax-other-income.d.ts +13 -0
- package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts +17 -0
- package/lib/models/report/my-tax/my-tax-rent/my-tax-rent.d.ts +11 -0
- package/lib/models/report/property/property-report-item.d.ts +2 -1
- package/lib/models/report/vehicle-expense/vehicle-expense.d.ts +2 -1
- package/lib/models/tax-summary/report-item-details.d.ts +2 -1
- package/lib/models/tax-summary/report-item.d.ts +2 -1
- package/lib/models/transaction/transaction.d.ts +3 -1
- package/lib/services/event/sse.service.d.ts +3 -0
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +13 -1
- package/lib/services/http/bank/basiq/basiq-connections-response.interface.d.ts +9 -0
- package/lib/services/http/bank/basiq/basiq-token-response.interface.d.ts +9 -0
- package/lib/services/http/bank/basiq/basiq-token.service.d.ts +17 -0
- package/lib/services/http/bank/basiq/basiq.service.d.ts +20 -11
- package/lib/services/http/rest/rest.service.d.ts +0 -5
- package/lib/services/http/user/user.service.d.ts +0 -1
- package/lib/services/pdf/pdf-from-dom-element/file-settings.d.ts +6 -0
- package/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.d.ts +13 -0
- package/lib/services/pdf/pdf-from-table/file-settings.d.ts +8 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.d.ts +19 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.d.ts +15 -0
- package/lib/services/pdf/pdf-from-table/pdf-from-table.service.d.ts +16 -0
- package/lib/validators/date-range.validator.d.ts +5 -0
- package/lib/validators/index.d.ts +2 -0
- package/lib/validators/require-autocomplete.d.ts +5 -0
- package/lib/validators/require-select.validator.d.ts +5 -0
- package/package.json +2 -1
- package/public-api.d.ts +26 -1
- package/esm2015/lib/models/pdf/pdf-config.js +0 -43
- package/esm2015/lib/services/pdf/pdf.service.js +0 -99
- package/lib/models/pdf/pdf-config.d.ts +0 -8
- package/lib/services/pdf/pdf.service.d.ts +0 -29
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BankAccount as BankAccountBase } from '../../db/Models/bank/bank-account';
|
|
2
|
+
import { BankAccountTypeEnum } from '../../db/Enums/bank-account-type.enum';
|
|
2
3
|
import { Loan } from '../loan/loan';
|
|
3
4
|
import { BankAccountBalance } from '../../db/Models/bank/bank-account-balance';
|
|
4
5
|
import { BankAccountProperty } from './bank-account-property';
|
|
5
6
|
import { BankConnection } from './bank-connection';
|
|
6
7
|
export declare class BankAccount extends BankAccountBase {
|
|
8
|
+
static loanTypes: BankAccountTypeEnum[];
|
|
7
9
|
bankAccountProperties: BankAccountProperty[];
|
|
8
10
|
balances: BankAccountBalance[];
|
|
9
11
|
loan: Loan;
|
|
@@ -7,5 +7,12 @@ export declare class BankConnection extends BankConnectionBase {
|
|
|
7
7
|
/**
|
|
8
8
|
* Check if status of connection is inactive (invalid)
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
isInvalid(): boolean;
|
|
11
|
+
isPending(): boolean;
|
|
12
|
+
isActive(): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* login required for new or disconnected external connections
|
|
15
|
+
*/
|
|
16
|
+
isLoginRequired(): boolean;
|
|
17
|
+
setPending(): void;
|
|
11
18
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Login data object for basiq banks
|
|
3
|
+
*/
|
|
4
|
+
export declare class BankLoginData {
|
|
5
|
+
/**
|
|
6
|
+
* Object with bank external id
|
|
7
|
+
*/
|
|
8
|
+
institution: {
|
|
9
|
+
id: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Dynamic login data fields. These fields may be different for different banks
|
|
13
|
+
*/
|
|
14
|
+
[key: string]: string | {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Class describes client's portfolio report information
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import { AbstractModel } from '../../db/Models/abstract-model';
|
|
5
|
+
export declare class ClientPortfolioReport extends AbstractModel {
|
|
5
6
|
category: string;
|
|
6
7
|
count: number;
|
|
7
8
|
marketValue: number;
|
|
@@ -6,41 +6,42 @@ export declare enum AppEventTypeEnum {
|
|
|
6
6
|
BANK_TRANSACTION_ALLOCATED = 4,
|
|
7
7
|
BASIQ_CONSENT_UPDATED = 5,
|
|
8
8
|
BASIQ_CONNECTION_UPDATED = 6,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
9
|
+
BASIQ_JOB_CREATED = 7,
|
|
10
|
+
CLIENT_INVITE_ACCEPTED = 8,
|
|
11
|
+
CLIENT_OPEN_CHAT = 9,
|
|
12
|
+
CLIENT_TRANSFER_TO_OTHER_EMPLOYEE = 10,
|
|
13
|
+
CURRENT_USER_GET_FAILED = 11,
|
|
14
|
+
DEPRECIATION_DELETED = 12,
|
|
15
|
+
DEPRECIATIONS_CREATED = 13,
|
|
16
|
+
INCOME_SOURCES_CREATED = 14,
|
|
17
|
+
INCOME_SOURCES_UPDATED = 15,
|
|
18
|
+
INCOME_SOURCES_FORECASTS_CREATED = 16,
|
|
19
|
+
INCOME_SOURCES_FORECASTS_UPDATED = 17,
|
|
20
|
+
LOAN_UPDATED = 18,
|
|
21
|
+
LOAN_PAYOUT_UPDATED = 19,
|
|
22
|
+
MESSAGE_CREATED = 20,
|
|
23
|
+
MESSAGE_FILE_CREATED = 21,
|
|
24
|
+
MESSAGE_FILE_DELETED = 22,
|
|
25
|
+
NOTIFICATION_ADDED = 23,
|
|
26
|
+
PROPERTY_UPDATED_WITH_DOCUMENT = 24,
|
|
27
|
+
PROPERTY_DOCUMENT_ADDED = 25,
|
|
28
|
+
PROPERTY_MOVEMENT_CREATED = 26,
|
|
29
|
+
PROPERTY_MOVEMENT_UPDATED = 27,
|
|
30
|
+
PROPERTY_MOVEMENT_DELETED = 28,
|
|
31
|
+
PROPERTY_SHARE_UPDATED = 29,
|
|
32
|
+
PROPERTY_SUBSCRIPTION_ADDED = 30,
|
|
33
|
+
PROPERTY_SUBSCRIPTION_DELETED = 31,
|
|
34
|
+
PROPERTY_VALUATION_DOCUMENT_CREATED = 32,
|
|
35
|
+
SERVICE_SUBSCRIPTION_UPDATED = 33,
|
|
36
|
+
TAX_REVIEW_UPDATED = 34,
|
|
37
|
+
TRANSACTION_CREATED = 35,
|
|
38
|
+
TRANSACTION_DELETED = 36,
|
|
39
|
+
TRANSACTION_UPDATED = 37,
|
|
40
|
+
TRANSACTIONS_CREATED = 38,
|
|
41
|
+
USER_UPDATED = 39,
|
|
42
|
+
VEHICLE_CLAIM_UPDATED = 40,
|
|
43
|
+
VEHICLE_CLAIM_CREATED = 41,
|
|
44
|
+
VEHICLE_LOGBOOK_CREATED = 42,
|
|
45
|
+
VEHICLE_LOGBOOK_UPDATED = 43,
|
|
46
|
+
VEHICLE_LOGBOOK_DELETED = 44
|
|
46
47
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Loan as LoanBase } from '../../db/Models/loan/loan';
|
|
2
|
-
import { LoanRepaymentTypeEnum } from '../../db/Enums/loan-repayment-type.enum';
|
|
3
2
|
import { LoanPayment } from './loan-payment';
|
|
4
3
|
import { LoanPayout } from './loan-payout';
|
|
5
4
|
export declare class Loan extends LoanBase {
|
|
6
5
|
payments: LoanPayment[];
|
|
7
6
|
commencementDate: Date;
|
|
8
7
|
payout: LoanPayout;
|
|
9
|
-
repaymentType: LoanRepaymentTypeEnum;
|
|
10
8
|
currentBalance: number;
|
|
11
9
|
/**
|
|
12
10
|
* Check if loan type is related to LoanVehicleTypeEnum
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum with work-related clothing, laundry, dry cleaning expenses types
|
|
3
|
+
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form
|
|
4
|
+
* ("Deductions" section, "D3. Work-related clothing, laundry and dry cleaning expenses" field)
|
|
5
|
+
*/
|
|
6
|
+
export declare enum DeductionClothingTypeEnum {
|
|
7
|
+
COMPULSORY_C = 0,
|
|
8
|
+
NON_COMPULSORY_N = 1,
|
|
9
|
+
PROTECTION_P = 2,
|
|
10
|
+
OCCUPATIONAL_SPECIFIC_S = 3
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Const with the categories for my-tax 'Deductions' report.
|
|
3
|
+
* Grouped by ChartAccountsHeadingListEnum / ChartAccountsListEnum based on rules from documentation
|
|
4
|
+
* https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4644110466/Tax+Return+MyTax+-+Online+Form (section "Deduction")
|
|
5
|
+
*/
|
|
6
|
+
export declare const DEDUCTION_CATEGORIES: {
|
|
7
|
+
[key: string]: number[];
|
|
8
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
import { DepreciationCollection } from '../../../../collections/depreciation.collection';
|
|
3
|
+
import { VehicleClaim } from '../../../logbook/vehicle-claim';
|
|
4
|
+
import { DeductionClothingTypeEnum } from './deduction-clothing-type.enum';
|
|
5
|
+
import { DeductionSelfEducationTypeEnum } from './deduction-self-education-type.enum';
|
|
6
|
+
export declare class MyTaxDeductions {
|
|
7
|
+
transactions: TransactionCollection;
|
|
8
|
+
depreciations: DepreciationCollection;
|
|
9
|
+
vehicleClaim: VehicleClaim;
|
|
10
|
+
vehicleClaimRate: number;
|
|
11
|
+
workRelatedClothingExpenses: TransactionCollection;
|
|
12
|
+
workRelatedSelfEducationExpenses: TransactionCollection;
|
|
13
|
+
personalSuperContributions: TransactionCollection;
|
|
14
|
+
otherWorkRelatedExpensesTotalAmount: number;
|
|
15
|
+
klmsMethodClaimAmount: number;
|
|
16
|
+
totalExpensesAmount: number;
|
|
17
|
+
vehicleExpensesTotalAmount: number;
|
|
18
|
+
workRelatedTravelExpensesTotalAmount: number;
|
|
19
|
+
workRelatedClothingType: DeductionClothingTypeEnum;
|
|
20
|
+
workRelatedClothingTotalAmount: number;
|
|
21
|
+
workRelatedSelfEducationType: DeductionSelfEducationTypeEnum;
|
|
22
|
+
workRelatedSelfEducationTotalAmount: number;
|
|
23
|
+
lowValuePoolDeductionTotalAmount: number;
|
|
24
|
+
interestExpensesTotalAmount: number;
|
|
25
|
+
dividendExpensesTotalAmount: number;
|
|
26
|
+
donationsTotalAmount: number;
|
|
27
|
+
interestsChargedByATOTotalAmount: number;
|
|
28
|
+
litigationCostsTotalAmount: number;
|
|
29
|
+
otherManagingCostsTotalAmount: number;
|
|
30
|
+
personalSuperContributionsTotalAmount: number;
|
|
31
|
+
forestryManagedInvestmentSchemesDeductionsTotalAmount: number;
|
|
32
|
+
otherDeductionsTotalAmount: number;
|
|
33
|
+
constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim, vehicleClaimRate: number);
|
|
34
|
+
private setVehicleClaimData;
|
|
35
|
+
/**
|
|
36
|
+
* Total amount from Other work related expenses and Tools & equipment depreciations
|
|
37
|
+
*/
|
|
38
|
+
private setOtherWorkRelatedExpensesTotalAmount;
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
export declare class MyTaxDividends {
|
|
3
|
+
transactions: TransactionCollection;
|
|
4
|
+
dividendsUnfrankedAmount: number;
|
|
5
|
+
dividendsFrankedAmount: number;
|
|
6
|
+
dividendsFrankingCreditsAmount: number;
|
|
7
|
+
dividendsTotalTax: number;
|
|
8
|
+
constructor(transactions: TransactionCollection);
|
|
9
|
+
}
|
package/lib/models/report/my-tax/my-tax-employee-share-schemes/my-tax-employee-share-schemes.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
export declare class MyTaxEmployeeShareSchemes {
|
|
3
|
+
transactions: TransactionCollection;
|
|
4
|
+
eligibleForReductionAmount: number;
|
|
5
|
+
notEligibleForReductionAmount: number;
|
|
6
|
+
discountFromDeferredSchemeAmount: number;
|
|
7
|
+
totalAssessableDiscountAmount: number;
|
|
8
|
+
shareSchemesTotalTax: number;
|
|
9
|
+
constructor(transactions: TransactionCollection);
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
import { CollectionDictionary } from '../../../../collections/collection-dictionary';
|
|
3
|
+
export declare class MyTaxIncomeStatements {
|
|
4
|
+
transactionsByChartAccounts: CollectionDictionary<TransactionCollection>;
|
|
5
|
+
transactionsByChartAccountsHeadings: CollectionDictionary<TransactionCollection>;
|
|
6
|
+
salaryTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
|
|
7
|
+
etpTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
|
|
8
|
+
superannuationLumpSumTransactionsByIncomeSource: CollectionDictionary<TransactionCollection>;
|
|
9
|
+
allowanceTotalAmount: number;
|
|
10
|
+
allowanceTotalTax: number;
|
|
11
|
+
lumpATransactionsTotalAmount: number;
|
|
12
|
+
lumpATransactionsTotalTax: number;
|
|
13
|
+
hasGenuineLumpATransactions: boolean;
|
|
14
|
+
hasOtherLumpATransactions: boolean;
|
|
15
|
+
lumpBTransactionsTotalAmount: number;
|
|
16
|
+
lumpBTransactionsTotalTax: number;
|
|
17
|
+
australianAllowancesAndPaymentsTotalAmount: number;
|
|
18
|
+
australianAllowancesAndPaymentsTotalTax: number;
|
|
19
|
+
australianPensionsAndAllowancesTotalAmount: number;
|
|
20
|
+
australianPensionsAndAllowancesTotalTax: number;
|
|
21
|
+
australianAnnuitiesSuperannuationIncomesTotalTax: number;
|
|
22
|
+
australianAnnuityPaymentsTaxed: number;
|
|
23
|
+
australianAnnuityPaymentsUntaxed: number;
|
|
24
|
+
assessableCappedDefinedBenefitTotalAmount: number;
|
|
25
|
+
superannuationIncomeStreamsTotalTaxed: number;
|
|
26
|
+
superannuationIncomeStreamsTotalUntaxed: number;
|
|
27
|
+
attributablePsiTransactionsTotalAmount: number;
|
|
28
|
+
attributablePsiTransactionsTotalTax: number;
|
|
29
|
+
constructor(transactions: TransactionCollection);
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
export declare class MyTaxInterest {
|
|
3
|
+
interestEarnedTransactions: TransactionCollection;
|
|
4
|
+
interestPaidTransactions: TransactionCollection;
|
|
5
|
+
interestEarnedTotalAmount: number;
|
|
6
|
+
interestEarnedTotalTax: number;
|
|
7
|
+
interestPaidTotalAmount: number;
|
|
8
|
+
constructor(transactions: TransactionCollection);
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
/**
|
|
3
|
+
* @Todo waiting for Sole tank implementation
|
|
4
|
+
*/
|
|
5
|
+
export declare class MyTaxLosses {
|
|
6
|
+
transactions: TransactionCollection;
|
|
7
|
+
constructor(transactions: TransactionCollection);
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
/**
|
|
3
|
+
* @Todo waiting for new chart accounts implemented (TT-1739 & TT-1740)
|
|
4
|
+
*/
|
|
5
|
+
export declare class MyTaxOffsets {
|
|
6
|
+
constructor(transactions: TransactionCollection);
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
export declare class MyTaxOtherIncome {
|
|
3
|
+
transactions: TransactionCollection;
|
|
4
|
+
lumpSumPaymentsInArrearsTransactions: TransactionCollection;
|
|
5
|
+
bonusesTotalAmount: number;
|
|
6
|
+
forestryManagedInvestmentSchemesIncomeTotalAmount: number;
|
|
7
|
+
lumpSumPaymentsInArrearsTotalTax: number;
|
|
8
|
+
specialProfessionIncomeTotalAmount: number;
|
|
9
|
+
category1TotalIncome: number;
|
|
10
|
+
atoInterestPaidTotalAmount: number;
|
|
11
|
+
gainOnSaleOfVehiclePreviouslyDepreciatedTotalAmount: number;
|
|
12
|
+
constructor(transactions: TransactionCollection);
|
|
13
|
+
}
|
package/lib/models/report/my-tax/my-tax-partnerships-and-trusts/my-tax-partnerships-and-trusts.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
export declare class MyTaxPartnershipsAndTrusts {
|
|
3
|
+
transactions: TransactionCollection;
|
|
4
|
+
partnershipIncomes: TransactionCollection;
|
|
5
|
+
partnershipExpenses: TransactionCollection;
|
|
6
|
+
trustsIncomes: TransactionCollection;
|
|
7
|
+
trustsExpenses: TransactionCollection;
|
|
8
|
+
netNonPrimaryProductionAmount: number;
|
|
9
|
+
partnershipsNetIncome: number;
|
|
10
|
+
trustsNetIncome: number;
|
|
11
|
+
partnershipsSmallBusinessNetIncome: number;
|
|
12
|
+
trustsSmallBusinessNetIncome: number;
|
|
13
|
+
taxPaidTotal: number;
|
|
14
|
+
frankingCreditsTotal: number;
|
|
15
|
+
taxOffsetNRASTotalAmount: number;
|
|
16
|
+
constructor(transactions: TransactionCollection);
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TransactionCollection } from '../../../../collections/transaction/transaction.collection';
|
|
2
|
+
import { DepreciationCollection } from '../../../../collections/depreciation.collection';
|
|
3
|
+
export declare class MyTaxRent {
|
|
4
|
+
propertyExpenses: TransactionCollection;
|
|
5
|
+
grossRentAmount: number;
|
|
6
|
+
interestDeductionsAmount: number;
|
|
7
|
+
capitalWorksDeductionsAmount: number;
|
|
8
|
+
otherRentalDeductionsAmount: number;
|
|
9
|
+
netRent: number;
|
|
10
|
+
constructor(transactions: TransactionCollection, depreciations: DepreciationCollection);
|
|
11
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Property } from '../../property/property';
|
|
2
2
|
import { ChartAccounts } from '../../chart-accounts/chart-accounts';
|
|
3
|
+
import { AbstractModel } from '../../../db/Models/abstract-model';
|
|
3
4
|
/**
|
|
4
5
|
* Class with property transactions report entities
|
|
5
6
|
*/
|
|
6
|
-
export declare class PropertyReportItem {
|
|
7
|
+
export declare class PropertyReportItem extends AbstractModel {
|
|
7
8
|
amount: number;
|
|
8
9
|
description: string;
|
|
9
10
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vehicle expense for logbook section
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import { AbstractModel } from '../../../db/Models/abstract-model';
|
|
5
|
+
export declare class VehicleExpense extends AbstractModel {
|
|
5
6
|
description: string;
|
|
6
7
|
amount: number;
|
|
7
8
|
claimPercent: number;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TaxReturnCategorySectionEnum } from '../../db/Enums/tax-return-category-section.enum';
|
|
2
|
+
import { AbstractModel } from '../../db/Models/abstract-model';
|
|
2
3
|
/**
|
|
3
4
|
* Used in tax summary reports to show specific details relating to an amount in the report.
|
|
4
5
|
* See structure in ReportItem class.
|
|
5
6
|
* Example an amount of $550 for property income could be comprised of 2 different property amounts of $300 and $250.
|
|
6
7
|
* This is useful in providing drill-down information for the tax summary report.
|
|
7
8
|
*/
|
|
8
|
-
export declare class ReportItemDetails {
|
|
9
|
+
export declare class ReportItemDetails extends AbstractModel {
|
|
9
10
|
amount: number;
|
|
10
11
|
name: string;
|
|
11
12
|
type: number;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TaxReturnCategory } from '../../db/Models/tax-return/tax-return-category';
|
|
2
2
|
import { ReportItemDetails } from './report-item-details';
|
|
3
3
|
import { ReportItemCollection } from '../../collections/tax-summary/report-item.collection';
|
|
4
|
+
import { AbstractModel } from '../../db/Models/abstract-model';
|
|
4
5
|
/**
|
|
5
6
|
* Used in tax summary reports to show amounts relating to a tax return category entity and details of what this
|
|
6
7
|
* amount is comprised of. Example here shows an amount of $951.96 and also details of what this amount is comprised of:
|
|
7
8
|
*/
|
|
8
|
-
export declare class ReportItem {
|
|
9
|
+
export declare class ReportItem extends AbstractModel {
|
|
9
10
|
amount: number;
|
|
10
11
|
details: ReportItemDetails[];
|
|
11
12
|
taxReturnCategory: TaxReturnCategory;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Transaction as TransactionBase } from '../../db/Models/transaction/transaction';
|
|
2
2
|
import { ChartAccountsCategoryEnum } from '../../db/Enums/chart-accounts-category.enum';
|
|
3
3
|
import { TransactionOperationEnum } from '../../db/Enums/transaction-operation.enum';
|
|
4
|
+
import { ChartAccountsMetadataListEnum } from '../../db/Enums/chart-accounts-metadata-list.enum';
|
|
4
5
|
import { Property } from '../property/property';
|
|
5
6
|
import { TransactionReceipt } from './transaction-receipt';
|
|
6
7
|
import { ChartAccounts } from '../chart-accounts/chart-accounts';
|
|
@@ -70,8 +71,9 @@ export declare class Transaction extends TransactionBase implements Expense, IRe
|
|
|
70
71
|
/**
|
|
71
72
|
* Get value of transaction metadata field
|
|
72
73
|
* @param field for which value should be returned
|
|
74
|
+
* @Todo modify 'metadata' property from array to Collection
|
|
73
75
|
*/
|
|
74
|
-
|
|
76
|
+
getMetadataFieldValue(field: ChartAccountsMetadataListEnum): number;
|
|
75
77
|
/**
|
|
76
78
|
* Returns Net or Gross income amount based on provided income type
|
|
77
79
|
* @param incomeType by which amount should be returned
|
|
@@ -2,6 +2,9 @@ import { NgZone } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { JwtService } from '../auth/jwt.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* server sent events service
|
|
7
|
+
*/
|
|
5
8
|
export declare class SseService {
|
|
6
9
|
private zone;
|
|
7
10
|
private jwtService;
|
|
@@ -12,8 +12,20 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
|
|
|
12
12
|
modelClass: typeof BankConnection;
|
|
13
13
|
url: string;
|
|
14
14
|
listenEvents(): void;
|
|
15
|
-
|
|
15
|
+
add(bankConnection: BankConnection): Observable<BankConnection>;
|
|
16
16
|
listenToAddedBankAccounts(): void;
|
|
17
|
+
/**
|
|
18
|
+
* When user log in to bank, basiq create a job. We create a bank connection with based on this job
|
|
19
|
+
*/
|
|
20
|
+
listenBasiqJobCreated(): void;
|
|
21
|
+
/**
|
|
22
|
+
* When basiq connection disconnected we create a basiq job and update this connection
|
|
23
|
+
*/
|
|
24
|
+
listenConnectionUpdated(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Update cache when basiq login failed to get actual connections statuses
|
|
27
|
+
*/
|
|
28
|
+
listenNotifications(): void;
|
|
17
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
|
|
18
30
|
static ɵprov: i0.ɵɵInjectableDeclaration<BankConnectionService>;
|
|
19
31
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BasiqToken } from '../../../../models/bank/basiq-token';
|
|
2
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BasiqTokenService {
|
|
6
|
+
protected http: HttpClient;
|
|
7
|
+
protected environment: any;
|
|
8
|
+
cache: BasiqToken;
|
|
9
|
+
cacheSubject: ReplaySubject<BasiqToken>;
|
|
10
|
+
constructor(http: HttpClient, environment: any);
|
|
11
|
+
/**
|
|
12
|
+
* Access token to use basiq flow
|
|
13
|
+
*/
|
|
14
|
+
get(): Observable<BasiqToken>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasiqTokenService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BasiqTokenService>;
|
|
17
|
+
}
|
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
import { Observable
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
2
|
import { BankAccount as BankAccountBase } from '../../../../db/Models/bank/bank-account';
|
|
3
|
-
import { BankAccount } from '../../../../models/bank/bank-account';
|
|
4
3
|
import { RestService } from '../../rest/rest.service';
|
|
5
|
-
import {
|
|
4
|
+
import { BankAccount } from '../../../../models/bank/bank-account';
|
|
6
5
|
import { BankConnection } from '../../../../models/bank/bank-connection';
|
|
6
|
+
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import { EventDispatcherService } from '../../../event/event-dispatcher.service';
|
|
9
|
+
import { BankConnectionService } from '../bank-connection/bank-connection.service';
|
|
10
|
+
import { ToastService } from '../../../toast/toast.service';
|
|
11
|
+
import { BankLoginData } from '../../../../models/bank/bank-login-data';
|
|
7
12
|
import * as i0 from "@angular/core";
|
|
8
13
|
/**
|
|
9
14
|
* basiq is a middleman between bank and user
|
|
10
15
|
* service is responsible for fetching bank related information
|
|
11
16
|
*/
|
|
12
|
-
export declare class BasiqService extends RestService<BankAccountBase, BankAccount> {
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
export declare class BasiqService extends RestService<BankAccountBase, BankAccount> implements IEventListener {
|
|
18
|
+
protected http: HttpClient;
|
|
19
|
+
protected eventDispatcherService: EventDispatcherService;
|
|
20
|
+
protected environment: any;
|
|
21
|
+
protected toastService: ToastService;
|
|
22
|
+
private bankConnectionService;
|
|
23
|
+
static basiqApiUrl: string;
|
|
15
24
|
url: string;
|
|
16
25
|
modelClass: typeof BankAccount;
|
|
26
|
+
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService, bankConnectionService: BankConnectionService);
|
|
17
27
|
/**
|
|
18
28
|
* Listen events from Event Dispatcher service
|
|
19
29
|
*/
|
|
20
30
|
listenEvents(): void;
|
|
21
31
|
/**
|
|
22
|
-
*
|
|
32
|
+
* Create Basiq job for the new bank connection creation
|
|
23
33
|
*/
|
|
24
|
-
|
|
25
|
-
getConnections(): Observable<BankConnection[]>;
|
|
34
|
+
createConnection(data: BankLoginData, userId: string, connection: BankConnection): Observable<string>;
|
|
26
35
|
/**
|
|
27
|
-
*
|
|
36
|
+
* Update disconnected bank connection
|
|
28
37
|
*/
|
|
29
|
-
|
|
38
|
+
updateConnection(data: object, userId: string, connection: BankConnection): Observable<string>;
|
|
30
39
|
/**
|
|
31
40
|
* listen to notifications to update basiq accounts list
|
|
32
41
|
*/
|
|
@@ -38,11 +38,6 @@ export declare abstract class RestService<BaseModel, Model extends BaseModel> im
|
|
|
38
38
|
* @param id ID of required item
|
|
39
39
|
*/
|
|
40
40
|
findById(id: number): Observable<Model>;
|
|
41
|
-
/**
|
|
42
|
-
* get list of items filtered by id.
|
|
43
|
-
* @param models Array of objects contains required items ids
|
|
44
|
-
*/
|
|
45
|
-
getByIds(models: Model[]): Observable<Model[]>;
|
|
46
41
|
/**
|
|
47
42
|
* add new instance and update cache
|
|
48
43
|
* @TODO rename to post
|
|
@@ -72,7 +72,6 @@ export declare class UserService implements IEventListener {
|
|
|
72
72
|
* Update cache when user's service subscription is updated
|
|
73
73
|
*/
|
|
74
74
|
private listenServiceSubscriptionUpdated;
|
|
75
|
-
private listenBasiqConcentUpdated;
|
|
76
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
77
76
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
78
77
|
}
|