taxtank-core 0.0.1 → 0.1.1
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/.browserslistrc +16 -0
- package/karma.conf.js +44 -0
- package/ng-package.json +12 -0
- package/package.json +13 -12
- package/src/lib/collections/abstract.collection.ts +83 -0
- package/src/lib/collections/bank-account.collection.ts +171 -0
- package/src/lib/collections/bank-transaction.collection.ts +153 -0
- package/src/lib/collections/client-movement.collection.ts +42 -0
- package/src/lib/collections/client-portfolio-report.collection.ts +47 -0
- package/src/lib/collections/client.collection.ts +5 -0
- package/src/lib/collections/collection-dictionary.ts +112 -0
- package/src/lib/collections/depreciation-forecast.collection.ts +25 -0
- package/src/lib/collections/depreciation.collection.ts +113 -0
- package/src/lib/collections/employee.collection.ts +14 -0
- package/src/lib/collections/income-source.collection.ts +44 -0
- package/src/lib/collections/loan.collection.ts +22 -0
- package/src/lib/collections/logbook.collection.ts +129 -0
- package/src/lib/collections/message-document.collection.ts +16 -0
- package/src/lib/collections/message.collection.ts +27 -0
- package/src/lib/collections/property.collection.ts +88 -0
- package/src/lib/collections/service-price.collection.ts +13 -0
- package/src/lib/collections/service-subscription.collection.ts +20 -0
- package/src/lib/collections/tax-return-category-item.collection.ts +148 -0
- package/src/lib/collections/tax-review.collection.ts +64 -0
- package/src/lib/collections/transaction-allocation.collection.ts +54 -0
- package/src/lib/collections/transaction.collection.ts +170 -0
- package/src/lib/collections/user-event-setting.collection.ts +70 -0
- package/src/lib/db/Enums/address-type.enum.ts +4 -0
- package/src/lib/db/Enums/bank-account-status.enum.ts +4 -0
- package/src/lib/db/Enums/bank-account-type.enum.ts +10 -0
- package/src/lib/db/Enums/bank-connection-status.enum.ts +5 -0
- package/src/lib/db/Enums/bank-transaction-type.enum.ts +4 -0
- package/src/lib/db/Enums/chart-accounts-category.enum.ts +13 -0
- package/src/lib/db/Enums/chart-accounts-etp.enum.ts +7 -0
- package/src/lib/db/Enums/chart-accounts-heading-tax-deductible.enum.ts +6 -0
- package/src/lib/db/Enums/chart-accounts-heading-taxable.enum.ts +6 -0
- package/src/lib/db/Enums/chart-accounts-heading-vehicle-list.enum.ts +4 -0
- package/src/lib/db/Enums/chart-accounts-list.enum.ts +19 -0
- package/src/lib/db/Enums/chart-accounts-metadata-list.enum.ts +14 -0
- package/src/lib/db/Enums/chart-accounts-metadata-type.enum.ts +4 -0
- package/src/lib/db/Enums/chart-accounts-type.enum.ts +4 -0
- package/src/lib/db/Enums/chat-status.enum.ts +4 -0
- package/src/lib/db/Enums/client-details-medicare-exemption.enum.ts +5 -0
- package/src/lib/db/Enums/client-details-work-depreciation-calculation.enum.ts +4 -0
- package/src/lib/db/Enums/client-details-working-holiday-maker.enum.ts +5 -0
- package/src/lib/db/Enums/client-invite-status.enum.ts +4 -0
- package/src/lib/db/Enums/client-invite-type.enum.ts +4 -0
- package/src/lib/db/Enums/depreciation-calculation-percent.enum.ts +7 -0
- package/src/lib/db/Enums/depreciation-calculation.enum.ts +7 -0
- package/src/lib/db/Enums/depreciation-type.enum.ts +6 -0
- package/src/lib/db/Enums/depreciation-write-off-amount.enum.ts +4 -0
- package/src/lib/db/Enums/firm-type.enum.ts +4 -0
- package/src/lib/db/Enums/income-source-type-list-other.enum.ts +6 -0
- package/src/lib/db/Enums/income-source-type-list-salary.enum.ts +3 -0
- package/src/lib/db/Enums/income-source-type-list-work.enum.ts +8 -0
- package/src/lib/db/Enums/income-source-type.enum.ts +5 -0
- package/src/lib/db/Enums/invite-status.enum.ts +5 -0
- package/src/lib/db/Enums/loan-bank-type.enum.ts +10 -0
- package/src/lib/db/Enums/loan-frequency.enum.ts +6 -0
- package/src/lib/db/Enums/loan-interest-type.enum.ts +4 -0
- package/src/lib/db/Enums/loan-payout-type.enum.ts +4 -0
- package/src/lib/db/Enums/loan-repayment-frequency.enum.ts +5 -0
- package/src/lib/db/Enums/loan-repayment-type.enum.ts +4 -0
- package/src/lib/db/Enums/loan-type.enum.ts +12 -0
- package/src/lib/db/Enums/loan-vehicle-type.enum.ts +5 -0
- package/src/lib/db/Enums/phone-type.enum.ts +4 -0
- package/src/lib/db/Enums/property-depreciation-calculation.enum.ts +4 -0
- package/src/lib/db/Enums/property-owner-access.enum.ts +4 -0
- package/src/lib/db/Enums/property-owner-status.enum.ts +5 -0
- package/src/lib/db/Enums/registration-invite-status.enum.ts +4 -0
- package/src/lib/db/Enums/salary-forecast-frequency.enum.ts +6 -0
- package/src/lib/db/Enums/service-notification-status.enum.ts +5 -0
- package/src/lib/db/Enums/service-notification-type.enum.ts +4 -0
- package/src/lib/db/Enums/service-payment-status.enum.ts +4 -0
- package/src/lib/db/Enums/service-price-recurring-interval.enum.ts +6 -0
- package/src/lib/db/Enums/service-price-type.enum.ts +4 -0
- package/src/lib/db/Enums/service-subscription-status.enum.ts +8 -0
- package/src/lib/db/Enums/spare-document-spare-type.enum.ts +4 -0
- package/src/lib/db/Enums/tank-type.enum.ts +5 -0
- package/src/lib/db/Enums/tax-calculation-medicare-exemption.enum.ts +4 -0
- package/src/lib/db/Enums/tax-calculation-type.enum.ts +12 -0
- package/src/lib/db/Enums/tax-return-category-list.enum.ts +26 -0
- package/src/lib/db/Enums/tax-return-category-section.enum.ts +6 -0
- package/src/lib/db/Enums/tax-review-status.enum.ts +11 -0
- package/src/lib/db/Enums/tax-summary-list.enum.ts +15 -0
- package/src/lib/db/Enums/tax-summary-section.enum.ts +6 -0
- package/src/lib/db/Enums/tax-summary-tax-summary.enum.ts +15 -0
- package/src/lib/db/Enums/ticket-feedback.enum.ts +4 -0
- package/src/lib/db/Enums/ticket-status.enum.ts +7 -0
- package/src/lib/db/Enums/ticket-types.enum.ts +3 -0
- package/src/lib/db/Enums/transaction-operation.enum.ts +5 -0
- package/src/lib/db/Enums/transaction-source.enum.ts +4 -0
- package/src/lib/db/Enums/transaction-type.enum.ts +4 -0
- package/src/lib/db/Enums/user-event-status.enum.ts +6 -0
- package/src/lib/db/Enums/user-event-type-frequency.enum.ts +6 -0
- package/src/lib/db/Enums/user-event-type-reminder-type.enum.ts +6 -0
- package/src/lib/db/Enums/user-event-type-reminder.enum.ts +5 -0
- package/src/lib/db/Enums/user-event-type-type.enum.ts +33 -0
- package/src/lib/db/Enums/user-medicare-exemption.enum.ts +5 -0
- package/src/lib/db/Enums/user-roles.enum.ts +13 -0
- package/src/lib/db/Enums/user-status.enum.ts +6 -0
- package/src/lib/db/Enums/user-title.enum.ts +7 -0
- package/src/lib/db/Enums/user-work-depreciation-calculation.enum.ts +4 -0
- package/src/lib/db/Enums/user-working-holiday-maker.enum.ts +5 -0
- package/src/lib/db/Enums/vehicle-claim-method.enum.ts +4 -0
- package/src/lib/db/Enums/vehicle-logbook-purpose.enum.ts +4 -0
- package/src/lib/db/Models/address.ts +20 -0
- package/src/lib/db/Models/bank-account-balance.ts +13 -0
- package/src/lib/db/Models/bank-account-property.ts +9 -0
- package/src/lib/db/Models/bank-account.ts +34 -0
- package/src/lib/db/Models/bank-connection.ts +15 -0
- package/src/lib/db/Models/bank-provider-account.ts +13 -0
- package/src/lib/db/Models/bank-transaction-import.ts +12 -0
- package/src/lib/db/Models/bank-transaction-rule.ts +26 -0
- package/src/lib/db/Models/bank-transaction.ts +17 -0
- package/src/lib/db/Models/bank.ts +12 -0
- package/src/lib/db/Models/basiq-job.ts +9 -0
- package/src/lib/db/Models/borrowing-expense-loan.ts +15 -0
- package/src/lib/db/Models/borrowing-expense.ts +7 -0
- package/src/lib/db/Models/capital-cost-property.ts +14 -0
- package/src/lib/db/Models/capital-cost.ts +4 -0
- package/src/lib/db/Models/chart-accounts-depreciation.ts +11 -0
- package/src/lib/db/Models/chart-accounts-heading.ts +7 -0
- package/src/lib/db/Models/chart-accounts-metadata.ts +12 -0
- package/src/lib/db/Models/chart-accounts-value.ts +13 -0
- package/src/lib/db/Models/chart-accounts.ts +24 -0
- package/src/lib/db/Models/chat.ts +18 -0
- package/src/lib/db/Models/client-details.ts +30 -0
- package/src/lib/db/Models/client-invite.ts +17 -0
- package/src/lib/db/Models/client-movement.ts +13 -0
- package/src/lib/db/Models/country.ts +5 -0
- package/src/lib/db/Models/depreciation-capital-project.ts +14 -0
- package/src/lib/db/Models/depreciation-forecast.ts +19 -0
- package/src/lib/db/Models/depreciation-receipt.ts +12 -0
- package/src/lib/db/Models/depreciation.ts +43 -0
- package/src/lib/db/Models/document-base.ts +10 -0
- package/src/lib/db/Models/document-folder.ts +10 -0
- package/src/lib/db/Models/document.ts +12 -0
- package/src/lib/db/Models/employee-details.ts +8 -0
- package/src/lib/db/Models/employee-invite.ts +10 -0
- package/src/lib/db/Models/financial-data-system.ts +10 -0
- package/src/lib/db/Models/firm-invite.ts +15 -0
- package/src/lib/db/Models/firm.ts +29 -0
- package/src/lib/db/Models/income-source-forecast.ts +13 -0
- package/src/lib/db/Models/income-source-type.ts +9 -0
- package/src/lib/db/Models/income-source.ts +21 -0
- package/src/lib/db/Models/loan-payout.ts +13 -0
- package/src/lib/db/Models/loan.ts +34 -0
- package/src/lib/db/Models/message-document.ts +16 -0
- package/src/lib/db/Models/message.ts +16 -0
- package/src/lib/db/Models/occupation.ts +5 -0
- package/src/lib/db/Models/phone.ts +13 -0
- package/src/lib/db/Models/property-capital-cost.ts +14 -0
- package/src/lib/db/Models/property-category-movement.ts +18 -0
- package/src/lib/db/Models/property-category.ts +14 -0
- package/src/lib/db/Models/property-document.ts +14 -0
- package/src/lib/db/Models/property-forecast.ts +15 -0
- package/src/lib/db/Models/property-owner.ts +21 -0
- package/src/lib/db/Models/property-sold.ts +13 -0
- package/src/lib/db/Models/property-subscription.ts +10 -0
- package/src/lib/db/Models/property-valuation.ts +13 -0
- package/src/lib/db/Models/property.ts +42 -0
- package/src/lib/db/Models/registration-invite.ts +13 -0
- package/src/lib/db/Models/salary-forecast.ts +16 -0
- package/src/lib/db/Models/service-notification.ts +14 -0
- package/src/lib/db/Models/service-payment.ts +12 -0
- package/src/lib/db/Models/service-price.ts +16 -0
- package/src/lib/db/Models/service-product.ts +13 -0
- package/src/lib/db/Models/service-subscription-item.ts +10 -0
- package/src/lib/db/Models/service-subscription.ts +15 -0
- package/src/lib/db/Models/spare-document-category.ts +6 -0
- package/src/lib/db/Models/spare-document.ts +16 -0
- package/src/lib/db/Models/tax-calculation.ts +19 -0
- package/src/lib/db/Models/tax-return-category.ts +13 -0
- package/src/lib/db/Models/tax-return-item.ts +16 -0
- package/src/lib/db/Models/tax-return.ts +9 -0
- package/src/lib/db/Models/tax-review.ts +14 -0
- package/src/lib/db/Models/ticket.ts +20 -0
- package/src/lib/db/Models/transaction-allocation.ts +9 -0
- package/src/lib/db/Models/transaction-base.ts +33 -0
- package/src/lib/db/Models/transaction-metadata.ts +12 -0
- package/src/lib/db/Models/transaction-receipt.ts +12 -0
- package/src/lib/db/Models/transaction.ts +44 -0
- package/src/lib/db/Models/user-event-setting.ts +11 -0
- package/src/lib/db/Models/user-event-type.ts +16 -0
- package/src/lib/db/Models/user-event.ts +14 -0
- package/src/lib/db/Models/user.ts +52 -0
- package/src/lib/db/Models/vehicle-claim.ts +12 -0
- package/src/lib/db/Models/vehicle-logbook.ts +17 -0
- package/src/lib/db/Models/vehicle.ts +9 -0
- package/src/lib/functions/array/index.ts +3 -0
- package/src/lib/functions/array/replace.ts +5 -0
- package/src/lib/functions/array/sort-deep.ts +19 -0
- package/src/lib/functions/array/sort.ts +8 -0
- package/src/lib/functions/clone-deep.ts +4 -0
- package/src/lib/functions/create-date.ts +7 -0
- package/src/lib/functions/enum-to-list.ts +16 -0
- package/src/lib/functions/get-doc-icon.ts +21 -0
- package/src/lib/functions/mat-options-functions.ts +11 -0
- package/src/lib/functions/mat-sort-options.ts +9 -0
- package/src/lib/functions/round-to.ts +9 -0
- package/src/lib/functions/tax-review-filter-predicate.ts +11 -0
- package/src/lib/interfaces/asset-entity-type.enum.ts +10 -0
- package/src/lib/interfaces/asset-type.enum.ts +9 -0
- package/src/lib/interfaces/asset.interface.ts +18 -0
- package/src/lib/interfaces/chart-data.interface.ts +11 -0
- package/src/lib/interfaces/chart-serie.interface.ts +8 -0
- package/src/lib/interfaces/document.interface.ts +20 -0
- package/src/lib/interfaces/documentable.interface.ts +9 -0
- package/src/lib/interfaces/event-listener.interface.ts +9 -0
- package/src/lib/interfaces/income-source-forecast.interface.ts +7 -0
- package/src/lib/interfaces/option.interface.ts +4 -0
- package/src/lib/interfaces/photoable.ts +14 -0
- package/src/lib/interfaces/receipt.interface.ts +13 -0
- package/src/lib/interfaces/salary-forecast.interface.ts +17 -0
- package/src/lib/interfaces/tank.interface.ts +9 -0
- package/src/lib/models/address/address.ts +24 -0
- package/src/lib/models/address/country.ts +17 -0
- package/src/lib/models/bank/bank-account-chart-data.ts +42 -0
- package/src/lib/models/bank/bank-account-property.ts +8 -0
- package/src/lib/models/bank/bank-account-types.const.ts +15 -0
- package/src/lib/models/bank/bank-account.ts +136 -0
- package/src/lib/models/bank/bank-connection.ts +12 -0
- package/src/lib/models/bank/bank-transaction-chart-data.ts +132 -0
- package/src/lib/models/bank/bank-transaction-summary-fields.enum.ts +4 -0
- package/src/lib/models/bank/bank-transaction.ts +74 -0
- package/src/lib/models/bank/bank.ts +21 -0
- package/src/lib/models/bank/basiq-job.ts +4 -0
- package/src/lib/models/bank/basiq-token.ts +16 -0
- package/src/lib/models/bank/type-loan.const.ts +7 -0
- package/src/lib/models/borrowing-expense/borrowing-expense-loan.ts +4 -0
- package/src/lib/models/borrowing-expense/borrowing-expense.ts +4 -0
- package/src/lib/models/chart/chart-data.ts +13 -0
- package/src/lib/models/chart/chart-serie.ts +8 -0
- package/src/lib/models/chart-accounts/chart-accounts-categories.const.ts +85 -0
- package/src/lib/models/chart-accounts/chart-accounts-depreciation.ts +14 -0
- package/src/lib/models/chart-accounts/chart-accounts-heading.ts +6 -0
- package/src/lib/models/chart-accounts/chart-accounts-metadata.ts +15 -0
- package/src/lib/models/chart-accounts/chart-accounts-tax-labels.enum.ts +5 -0
- package/src/lib/models/chart-accounts/chart-accounts.ts +137 -0
- package/src/lib/models/chat/chat-view-type.enum.ts +4 -0
- package/src/lib/models/chat/chat.ts +23 -0
- package/src/lib/models/chat/message-document.ts +18 -0
- package/src/lib/models/chat/message.ts +40 -0
- package/src/lib/models/client/client-details.ts +4 -0
- package/src/lib/models/client/client-invite.ts +70 -0
- package/src/lib/models/client/client-movement.ts +25 -0
- package/src/lib/models/client/client-portfolio-chart-data.ts +65 -0
- package/src/lib/models/client/client-portfolio-report.ts +10 -0
- package/src/lib/models/depreciation/depreciation-capital-project.ts +10 -0
- package/src/lib/models/depreciation/depreciation-forecast.ts +31 -0
- package/src/lib/models/depreciation/depreciation-group-item.ts +20 -0
- package/src/lib/models/depreciation/depreciation-group.enum.ts +7 -0
- package/src/lib/models/depreciation/depreciation-group.ts +25 -0
- package/src/lib/models/depreciation/depreciation-groups.const.ts +35 -0
- package/src/lib/models/depreciation/depreciation-receipt.ts +9 -0
- package/src/lib/models/depreciation/depreciation.ts +174 -0
- package/src/lib/models/document/document-api-url-prefix.enum.ts +7 -0
- package/src/lib/models/document/document-file-types.const.ts +22 -0
- package/src/lib/models/document/document-folder.ts +11 -0
- package/src/lib/models/document/document.ts +29 -0
- package/src/lib/models/employee/employee-details.ts +8 -0
- package/src/lib/models/employee/employee-invite.ts +12 -0
- package/src/lib/models/endpoint/endpoint.ts +35 -0
- package/src/lib/models/endpoint/endpoints.const.ts +157 -0
- package/src/lib/models/event/app-event-type.enum.ts +37 -0
- package/src/lib/models/event/app-event.ts +9 -0
- package/src/lib/models/file/icons-file.enum.ts +5 -0
- package/src/lib/models/financial-year/financial-year.ts +57 -0
- package/src/lib/models/financial-year/month-name-short.enum.ts +19 -0
- package/src/lib/models/financial-year/month-number.enum.ts +19 -0
- package/src/lib/models/financial-year/months.const.ts +1 -0
- package/src/lib/models/firm/firm.ts +31 -0
- package/src/lib/models/income-position/income-position.ts +13 -0
- package/src/lib/models/income-source/income-source-chart-data.ts +57 -0
- package/src/lib/models/income-source/income-source-forecast.ts +35 -0
- package/src/lib/models/income-source/income-source-type.ts +30 -0
- package/src/lib/models/income-source/income-source.ts +57 -0
- package/src/lib/models/income-source/salary-forecast.ts +23 -0
- package/src/lib/models/loan/loan-max-number-of-payments.enum.ts +8 -0
- package/src/lib/models/loan/loan-payment.ts +17 -0
- package/src/lib/models/loan/loan-payout.ts +13 -0
- package/src/lib/models/loan/loan.ts +38 -0
- package/src/lib/models/logbook/default-vehicle-expense.ts +20 -0
- package/src/lib/models/logbook/logbook-period.ts +12 -0
- package/src/lib/models/logbook/logbook-purpose-options.const.ts +6 -0
- package/src/lib/models/logbook/vehicle-claim.ts +27 -0
- package/src/lib/models/logbook/vehicle-logbook.ts +16 -0
- package/src/lib/models/logbook/vehicle.ts +46 -0
- package/src/lib/models/notification/notification-event-types.const.ts +43 -0
- package/src/lib/models/notification/notification.ts +66 -0
- package/src/lib/models/phone/phone.ts +10 -0
- package/src/lib/models/property/calculation-form-item.ts +24 -0
- package/src/lib/models/property/calculation-form-type.enum.ts +7 -0
- package/src/lib/models/property/capital-costs-itmes.const.ts +57 -0
- package/src/lib/models/property/corelogic-suggestion.ts +18 -0
- package/src/lib/models/property/ownership-filter-options.enum.ts +8 -0
- package/src/lib/models/property/property-capital-cost.ts +4 -0
- package/src/lib/models/property/property-category-movement.ts +18 -0
- package/src/lib/models/property/property-category.ts +9 -0
- package/src/lib/models/property/property-document.ts +21 -0
- package/src/lib/models/property/property-equity-chart-data.ts +188 -0
- package/src/lib/models/property/property-equity-chart-item.ts +35 -0
- package/src/lib/models/property/property-equity-chart-type.enum.ts +4 -0
- package/src/lib/models/property/property-forecast.ts +55 -0
- package/src/lib/models/property/property-owner.ts +50 -0
- package/src/lib/models/property/property-sold.ts +10 -0
- package/src/lib/models/property/property-subscription.ts +11 -0
- package/src/lib/models/property/property-valuation.ts +24 -0
- package/src/lib/models/property/property.ts +157 -0
- package/src/lib/models/registration-invite/registration-invite.ts +12 -0
- package/src/lib/models/service-subscription/module-url-list.const.ts +11 -0
- package/src/lib/models/service-subscription/service-payment.ts +8 -0
- package/src/lib/models/service-subscription/service-price.ts +8 -0
- package/src/lib/models/service-subscription/service-product.ts +11 -0
- package/src/lib/models/service-subscription/service-subscription-item.ts +12 -0
- package/src/lib/models/service-subscription/service-subscription.ts +151 -0
- package/src/lib/models/service-subscription/subscription-description.const.ts +8 -0
- package/src/lib/models/service-subscription/subscription-title.const.ts +8 -0
- package/src/lib/models/service-subscription/subscription-type.enum.ts +6 -0
- package/src/lib/models/tax-review/tax-review.ts +96 -0
- package/src/lib/models/tax-summary/tax-return-category-item-details.ts +14 -0
- package/src/lib/models/tax-summary/tax-return-category-item.ts +22 -0
- package/src/lib/models/tax-summary/tax-summary-section.ts +32 -0
- package/src/lib/models/tax-summary/tax-summary-type.enum.ts +7 -0
- package/src/lib/models/tax-summary/tax-summary.ts +79 -0
- package/src/lib/models/transaction/income-amount-type.enum.ts +7 -0
- package/src/lib/models/transaction/transaction-allocation.ts +20 -0
- package/src/lib/models/transaction/transaction-metadata.ts +8 -0
- package/src/lib/models/transaction/transaction-receipt.ts +9 -0
- package/src/lib/models/transaction/transaction.ts +241 -0
- package/src/lib/models/user/my-account-history-initiated-by.enum.ts +4 -0
- package/src/lib/models/user/my-account-history-status.enum.ts +4 -0
- package/src/lib/models/user/my-account-history-type.enum.ts +5 -0
- package/src/lib/models/user/my-account-history.ts +12 -0
- package/src/lib/models/user/occupation.ts +4 -0
- package/src/lib/models/user/user-roles.const.ts +13 -0
- package/src/lib/models/user/user-to-register.ts +7 -0
- package/src/lib/models/user/user-work-position.const.ts +7 -0
- package/src/lib/models/user/user.ts +160 -0
- package/src/lib/models/user-event/user-event-category.enum.ts +9 -0
- package/src/lib/models/user-event/user-event-category.ts +9 -0
- package/src/lib/models/user-event/user-event-setting-field.enum.ts +8 -0
- package/src/lib/models/user-event/user-event-setting.ts +11 -0
- package/src/lib/models/user-event/user-event-type.ts +22 -0
- package/src/lib/services/address/address.service.spec.ts +12 -0
- package/src/lib/services/address/address.service.ts +36 -0
- package/src/lib/services/asset/assets.service.spec.ts +12 -0
- package/src/lib/services/asset/assets.service.ts +51 -0
- package/src/lib/services/auth/auth.service.ts +48 -0
- package/src/lib/services/auth/jwt.service.ts +37 -0
- package/src/lib/services/bank/bank-account-calculation.service.spec.ts +16 -0
- package/src/lib/services/bank/bank-account-calculation.service.ts +38 -0
- package/src/lib/services/bank/bank-account.service.spec.ts +12 -0
- package/src/lib/services/bank/bank-account.service.ts +120 -0
- package/src/lib/services/bank/bank-connection.service.spec.ts +12 -0
- package/src/lib/services/bank/bank-connection.service.ts +42 -0
- package/src/lib/services/bank/bank-transaction-calculation.service.spec.ts +16 -0
- package/src/lib/services/bank/bank-transaction-calculation.service.ts +71 -0
- package/src/lib/services/bank/bank-transaction.service.spec.ts +12 -0
- package/src/lib/services/bank/bank-transaction.service.ts +97 -0
- package/src/lib/services/bank/bank.service.spec.ts +12 -0
- package/src/lib/services/bank/bank.service.ts +16 -0
- package/src/lib/services/bank/basiq.service.spec.ts +12 -0
- package/src/lib/services/bank/basiq.service.ts +103 -0
- package/src/lib/services/base-rest.service.spec.ts +13 -0
- package/src/lib/services/base-rest.service.ts +229 -0
- package/src/lib/services/borrowing-expense/borrowing-expense.service.spec.ts +12 -0
- package/src/lib/services/borrowing-expense/borrowing-expense.service.ts +82 -0
- package/src/lib/services/chart-accounts/chart-accounts-depreciations.service.spec.ts +16 -0
- package/src/lib/services/chart-accounts/chart-accounts-depreciations.service.ts +34 -0
- package/src/lib/services/chart-accounts/chart-accounts.service.spec.ts +12 -0
- package/src/lib/services/chart-accounts/chart-accounts.service.ts +101 -0
- package/src/lib/services/chat/chat.service.spec.ts +16 -0
- package/src/lib/services/chat/chat.service.ts +79 -0
- package/src/lib/services/chat/message-document.service.spec.ts +16 -0
- package/src/lib/services/chat/message-document.service.ts +133 -0
- package/src/lib/services/chat/message.service.spec.ts +16 -0
- package/src/lib/services/chat/message.service.ts +61 -0
- package/src/lib/services/client/client-invite.service.spec.ts +16 -0
- package/src/lib/services/client/client-invite.service.ts +111 -0
- package/src/lib/services/client/client-movement.service.spec.ts +16 -0
- package/src/lib/services/client/client-movement.service.ts +114 -0
- package/src/lib/services/client/client-portfolio-report.service.spec.ts +16 -0
- package/src/lib/services/client/client-portfolio-report.service.ts +34 -0
- package/src/lib/services/depreciation/capital-project.service.spec.ts +16 -0
- package/src/lib/services/depreciation/capital-project.service.ts +69 -0
- package/src/lib/services/depreciation/depreciation.service.spec.ts +12 -0
- package/src/lib/services/depreciation/depreciation.service.ts +171 -0
- package/src/lib/services/document/document-folder.service.spec.ts +16 -0
- package/src/lib/services/document/document-folder.service.ts +95 -0
- package/src/lib/services/employee/employee-invite.service.spec.ts +16 -0
- package/src/lib/services/employee/employee-invite.service.ts +53 -0
- package/src/lib/services/employee/employee.service.spec.ts +16 -0
- package/src/lib/services/employee/employee.service.ts +35 -0
- package/src/lib/services/event/event-dispatcher.service.spec.ts +16 -0
- package/src/lib/services/event/event-dispatcher.service.ts +29 -0
- package/src/lib/services/event/sse.service.spec.ts +16 -0
- package/src/lib/services/event/sse.service.ts +42 -0
- package/src/lib/services/firm/firm.service.spec.ts +16 -0
- package/src/lib/services/firm/firm.service.ts +93 -0
- package/src/lib/services/header-title/header-title.service.spec.ts +12 -0
- package/src/lib/services/header-title/header-title.service.ts +31 -0
- package/src/lib/services/income-source/income-source-forecast.service.spec.ts +16 -0
- package/src/lib/services/income-source/income-source-forecast.service.ts +91 -0
- package/src/lib/services/income-source/income-source.service.spec.ts +12 -0
- package/src/lib/services/income-source/income-source.service.ts +127 -0
- package/src/lib/services/income-source/salary-forecast.service.spec.ts +16 -0
- package/src/lib/services/income-source/salary-forecast.service.ts +92 -0
- package/src/lib/services/intercom/intercom.service.spec.ts +16 -0
- package/src/lib/services/intercom/intercom.service.ts +37 -0
- package/src/lib/services/loan/loan.service.spec.ts +12 -0
- package/src/lib/services/loan/loan.service.ts +166 -0
- package/src/lib/services/notification/notification.service.spec.ts +12 -0
- package/src/lib/services/notification/notification.service.ts +60 -0
- package/src/lib/services/preloader/preloader.service.spec.ts +16 -0
- package/src/lib/services/preloader/preloader.service.ts +28 -0
- package/src/lib/services/property/corelogic.service.spec.ts +12 -0
- package/src/lib/services/property/corelogic.service.ts +47 -0
- package/src/lib/services/property/property-calculation.service.spec.ts +16 -0
- package/src/lib/services/property/property-calculation.service.ts +166 -0
- package/src/lib/services/property/property-capital-cost.service.ts +42 -0
- package/src/lib/services/property/property-category.service.spec.ts +16 -0
- package/src/lib/services/property/property-category.service.ts +15 -0
- package/src/lib/services/property/property-document.service.spec.ts +16 -0
- package/src/lib/services/property/property-document.service.ts +74 -0
- package/src/lib/services/property/property-owner.service.spec.ts +12 -0
- package/src/lib/services/property/property-owner.service.ts +134 -0
- package/src/lib/services/property/property-sold.service.spec.ts +16 -0
- package/src/lib/services/property/property-sold.service.ts +15 -0
- package/src/lib/services/property/property.service.spec.ts +12 -0
- package/src/lib/services/property/property.service.ts +136 -0
- package/src/lib/services/subscription/subscription.service.spec.ts +12 -0
- package/src/lib/services/subscription/subscription.service.ts +153 -0
- package/src/lib/services/tax-review/tax-review-history.service.spec.ts +16 -0
- package/src/lib/services/tax-review/tax-review-history.service.ts +35 -0
- package/src/lib/services/tax-review/tax-review.service.spec.ts +16 -0
- package/src/lib/services/tax-review/tax-review.service.ts +114 -0
- package/src/lib/services/tax-summary/tax-summary.service.ts +70 -0
- package/src/lib/services/transaction/transaction-allocation.service.spec.ts +12 -0
- package/src/lib/services/transaction/transaction-allocation.service.ts +92 -0
- package/src/lib/services/transaction/transaction-calculation.service.spec.ts +16 -0
- package/src/lib/services/transaction/transaction-calculation.service.ts +50 -0
- package/src/lib/services/transaction/transaction.service.spec.ts +12 -0
- package/src/lib/services/transaction/transaction.service.ts +374 -0
- package/src/lib/services/user/occupation.service.spec.ts +12 -0
- package/src/lib/services/user/occupation.service.ts +42 -0
- package/src/lib/services/user/user-switcher.service.ts +34 -0
- package/src/lib/services/user/user.service.spec.ts +12 -0
- package/src/lib/services/user/user.service.ts +140 -0
- package/src/lib/services/user-event/user-event-setting.service.spec.ts +16 -0
- package/src/lib/services/user-event/user-event-setting.service.ts +60 -0
- package/src/lib/services/user-event/user-event-type.service.spec.ts +16 -0
- package/src/lib/services/user-event/user-event-type.service.ts +24 -0
- package/src/lib/services/work/work-tank.service.spec.ts +12 -0
- package/src/lib/services/work/work-tank.service.ts +277 -0
- package/src/lib/tt-core.module.ts +22 -0
- package/src/lib/tt-core.service.spec.ts +16 -0
- package/src/lib/tt-core.service.ts +17 -0
- package/src/public-api.ts +425 -0
- package/src/test.ts +27 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/bundles/taxtank-core.umd.js +0 -97
- package/bundles/taxtank-core.umd.js.map +0 -1
- package/esm2015/lib/tt-core.module.js +0 -33
- package/esm2015/lib/tt-core.service.js +0 -23
- package/esm2015/public-api.js +0 -6
- package/esm2015/taxtank-core.js +0 -5
- package/fesm2015/taxtank-core.js +0 -64
- package/fesm2015/taxtank-core.js.map +0 -1
- package/lib/tt-core.module.d.ts +0 -9
- package/lib/tt-core.service.d.ts +0 -8
- package/public-api.d.ts +0 -2
- package/taxtank-core.d.ts +0 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Property } from './property';
|
|
2
|
+
import { PropertyCategory } from './property-category';
|
|
3
|
+
import { PropertyValuation } from './property-valuation';
|
|
4
|
+
import { User } from './user';
|
|
5
|
+
|
|
6
|
+
export class PropertyCategoryMovement {
|
|
7
|
+
id?: number;
|
|
8
|
+
fromDate?: Date;
|
|
9
|
+
toDate?: Date;
|
|
10
|
+
deletedAt?: Date;
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
updatedAt?: Date;
|
|
13
|
+
property?: Property;
|
|
14
|
+
propertyCategory?: PropertyCategory;
|
|
15
|
+
valuation?: PropertyValuation;
|
|
16
|
+
createdBy?: User;
|
|
17
|
+
updatedBy?: User;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { User } from './user';
|
|
2
|
+
import { Property } from './property';
|
|
3
|
+
|
|
4
|
+
export class PropertyCategory {
|
|
5
|
+
id?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
isTaxInclusive?: boolean;
|
|
8
|
+
isPropertyShare?: boolean;
|
|
9
|
+
deletedAt?: Date;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
user?: User;
|
|
13
|
+
properties?: Property[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Property } from './property';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
|
|
4
|
+
export class PropertyDocument {
|
|
5
|
+
id?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
originalName?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
mimeType?: string;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
property?: Property;
|
|
13
|
+
createdBy?: User;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Property } from './property';
|
|
2
|
+
|
|
3
|
+
export class PropertyForecast {
|
|
4
|
+
id?: number;
|
|
5
|
+
financialYear?: number;
|
|
6
|
+
marketValue?: number;
|
|
7
|
+
expense?: number;
|
|
8
|
+
income?: number;
|
|
9
|
+
depreciation?: number;
|
|
10
|
+
interest?: number;
|
|
11
|
+
deletedAt?: Date;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
property?: Property;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PropertyOwnerStatusEnum } from '../Enums/property-owner-status.enum';
|
|
2
|
+
import { PropertyOwnerAccessEnum } from '../Enums/property-owner-access.enum';
|
|
3
|
+
import { Property } from './property';
|
|
4
|
+
import { User } from './user';
|
|
5
|
+
import { RegistrationInvite } from './registration-invite';
|
|
6
|
+
|
|
7
|
+
export class PropertyOwner {
|
|
8
|
+
id?: number;
|
|
9
|
+
email?: string;
|
|
10
|
+
firstName?: string;
|
|
11
|
+
ownershipPercent?: number;
|
|
12
|
+
fromDate?: Date;
|
|
13
|
+
toDate?: Date;
|
|
14
|
+
status?: PropertyOwnerStatusEnum;
|
|
15
|
+
access?: PropertyOwnerAccessEnum;
|
|
16
|
+
createdAt?: Date;
|
|
17
|
+
updatedAt?: Date;
|
|
18
|
+
property?: Property;
|
|
19
|
+
user?: User;
|
|
20
|
+
invite?: RegistrationInvite;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Property } from './property';
|
|
2
|
+
import { PropertyDocument } from './property-document';
|
|
3
|
+
|
|
4
|
+
export class PropertyValuation {
|
|
5
|
+
id?: number;
|
|
6
|
+
date?: Date;
|
|
7
|
+
marketValue?: number;
|
|
8
|
+
deletedAt?: Date;
|
|
9
|
+
createdAt?: Date;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
property?: Property;
|
|
12
|
+
document?: PropertyDocument;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PropertyDepreciationCalculationEnum } from '../Enums/property-depreciation-calculation.enum';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
import { Address } from './address';
|
|
4
|
+
import { PropertyCategory } from './property-category';
|
|
5
|
+
import { PropertyForecast } from './property-forecast';
|
|
6
|
+
import { PropertyOwner } from './property-owner';
|
|
7
|
+
import { PropertyValuation } from './property-valuation';
|
|
8
|
+
import { PropertyCategoryMovement } from './property-category-movement';
|
|
9
|
+
import { CapitalCostProperty } from './capital-cost-property';
|
|
10
|
+
import { BankAccountProperty } from './bank-account-property';
|
|
11
|
+
import { PropertyDocument } from './property-document';
|
|
12
|
+
import { Depreciation } from './depreciation';
|
|
13
|
+
import { PropertySubscription } from './property-subscription';
|
|
14
|
+
|
|
15
|
+
export class Property {
|
|
16
|
+
id?: number;
|
|
17
|
+
photo?: string;
|
|
18
|
+
purchasePrice?: number;
|
|
19
|
+
purchaseDate?: Date;
|
|
20
|
+
settlementDate?: Date;
|
|
21
|
+
depreciationCalculation?: PropertyDepreciationCalculationEnum;
|
|
22
|
+
shareWith?: string;
|
|
23
|
+
claimPercent?: number;
|
|
24
|
+
growthPercent?: number;
|
|
25
|
+
subscriptions?: PropertySubscription[];
|
|
26
|
+
deletedAt?: Date;
|
|
27
|
+
createdAt?: Date;
|
|
28
|
+
updatedAt?: Date;
|
|
29
|
+
user?: User;
|
|
30
|
+
address?: Address;
|
|
31
|
+
category?: PropertyCategory;
|
|
32
|
+
forecasts?: PropertyForecast[];
|
|
33
|
+
owners?: PropertyOwner[];
|
|
34
|
+
valuations?: PropertyValuation[];
|
|
35
|
+
categoryMovements?: PropertyCategoryMovement[];
|
|
36
|
+
capitalCosts?: CapitalCostProperty[];
|
|
37
|
+
propertyBankAccounts?: BankAccountProperty[];
|
|
38
|
+
createdBy?: User;
|
|
39
|
+
updatedBy?: User;
|
|
40
|
+
documents?: PropertyDocument[];
|
|
41
|
+
depreciations?: Depreciation[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RegistrationInviteStatusEnum } from '../Enums/registration-invite-status.enum';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
|
|
4
|
+
export class RegistrationInvite {
|
|
5
|
+
id?: number;
|
|
6
|
+
email?: string;
|
|
7
|
+
firstName?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
status?: RegistrationInviteStatusEnum;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
user?: User;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SalaryForecastFrequencyEnum } from '../Enums/salary-forecast-frequency.enum';
|
|
2
|
+
import { IncomeSource } from './income-source';
|
|
3
|
+
|
|
4
|
+
export class SalaryForecast {
|
|
5
|
+
id?: number;
|
|
6
|
+
financialYear?: number;
|
|
7
|
+
paygIncome?: number;
|
|
8
|
+
frequency?: SalaryForecastFrequencyEnum;
|
|
9
|
+
netPay?: number;
|
|
10
|
+
tax?: number;
|
|
11
|
+
isTaxFree?: boolean;
|
|
12
|
+
deletedAt?: Date;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
incomeSource?: IncomeSource;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { User } from './user';
|
|
2
|
+
import { UserEvent } from './user-event';
|
|
3
|
+
|
|
4
|
+
export class ServiceNotification {
|
|
5
|
+
id?: number;
|
|
6
|
+
message?: string;
|
|
7
|
+
isRead?: boolean;
|
|
8
|
+
createdAt?: Date;
|
|
9
|
+
updatedAt?: Date;
|
|
10
|
+
deletedAt?: Date;
|
|
11
|
+
sender?: User;
|
|
12
|
+
recipient?: User;
|
|
13
|
+
userEvent?: UserEvent;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ServicePaymentStatusEnum } from '../Enums/service-payment-status.enum';
|
|
2
|
+
import { ServiceSubscription } from './service-subscription';
|
|
3
|
+
|
|
4
|
+
export class ServicePayment {
|
|
5
|
+
id?: number;
|
|
6
|
+
amount?: number;
|
|
7
|
+
status?: ServicePaymentStatusEnum;
|
|
8
|
+
stripeId?: string;
|
|
9
|
+
date?: Date;
|
|
10
|
+
receipt?: string;
|
|
11
|
+
subscription?: ServiceSubscription;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ServicePriceTypeEnum } from '../Enums/service-price-type.enum';
|
|
2
|
+
import { ServicePriceRecurringIntervalEnum } from '../Enums/service-price-recurring-interval.enum';
|
|
3
|
+
import { ServiceProduct } from './service-product';
|
|
4
|
+
|
|
5
|
+
export class ServicePrice {
|
|
6
|
+
id?: number;
|
|
7
|
+
stripeId?: string;
|
|
8
|
+
amount?: number;
|
|
9
|
+
type?: ServicePriceTypeEnum;
|
|
10
|
+
recurringInterval?: ServicePriceRecurringIntervalEnum;
|
|
11
|
+
recurringIntervalCount?: number;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
product?: ServiceProduct;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServicePrice } from './service-price';
|
|
2
|
+
|
|
3
|
+
export class ServiceProduct {
|
|
4
|
+
id?: number;
|
|
5
|
+
stripeId?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
deletedAt?: Date;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
prices?: ServicePrice[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServicePrice } from './service-price';
|
|
2
|
+
import { ServiceSubscription } from './service-subscription';
|
|
3
|
+
|
|
4
|
+
export class ServiceSubscriptionItem {
|
|
5
|
+
stripeId?: string;
|
|
6
|
+
quantity?: number;
|
|
7
|
+
id?: number;
|
|
8
|
+
price?: ServicePrice;
|
|
9
|
+
subscription?: ServiceSubscription;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ServiceSubscriptionStatusEnum } from '../Enums/service-subscription-status.enum';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
import { ServiceSubscriptionItem } from './service-subscription-item';
|
|
4
|
+
import { ServicePayment } from './service-payment';
|
|
5
|
+
|
|
6
|
+
export class ServiceSubscription {
|
|
7
|
+
id?: number;
|
|
8
|
+
stripeId?: string;
|
|
9
|
+
startDate?: Date;
|
|
10
|
+
endDate?: Date;
|
|
11
|
+
status?: ServiceSubscriptionStatusEnum;
|
|
12
|
+
user?: User;
|
|
13
|
+
items?: ServiceSubscriptionItem[];
|
|
14
|
+
payments?: ServicePayment[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SpareDocumentSpareTypeEnum } from '../Enums/spare-document-spare-type.enum';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
import { SpareDocumentCategory } from './spare-document-category';
|
|
4
|
+
|
|
5
|
+
export class SpareDocument {
|
|
6
|
+
spareType?: SpareDocumentSpareTypeEnum;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
originalName?: string;
|
|
10
|
+
id?: number;
|
|
11
|
+
deletedAt?: Date;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
user?: User;
|
|
15
|
+
spareDocumentCategory?: SpareDocumentCategory;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TaxCalculationTypeEnum } from '../Enums/tax-calculation-type.enum';
|
|
2
|
+
import { TaxCalculationMedicareExemptionEnum } from '../Enums/tax-calculation-medicare-exemption.enum';
|
|
3
|
+
|
|
4
|
+
export class TaxCalculation {
|
|
5
|
+
type?: TaxCalculationTypeEnum;
|
|
6
|
+
financialYear?: number;
|
|
7
|
+
fromDate?: Date;
|
|
8
|
+
amount?: number;
|
|
9
|
+
percent?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
isAustralianResident?: boolean;
|
|
12
|
+
isTaxFreeThreshold?: boolean;
|
|
13
|
+
medicareExemption?: TaxCalculationMedicareExemptionEnum;
|
|
14
|
+
isUnderPreservationAge?: boolean;
|
|
15
|
+
id?: number;
|
|
16
|
+
deletedAt?: Date;
|
|
17
|
+
createdAt?: Date;
|
|
18
|
+
updatedAt?: Date;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TaxSummarySectionEnum } from '../Enums/tax-summary-section.enum';
|
|
2
|
+
import { TaxReturnItem } from './tax-return-item';
|
|
3
|
+
|
|
4
|
+
export class TaxReturnCategory {
|
|
5
|
+
id?: number;
|
|
6
|
+
section?: TaxSummarySectionEnum;
|
|
7
|
+
name?: string;
|
|
8
|
+
seq?: number;
|
|
9
|
+
createdAt?: Date;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
taxReturnItems?: TaxReturnItem[];
|
|
12
|
+
parent?: TaxReturnCategory;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TaxReturnCategory } from './tax-return-category';
|
|
2
|
+
import { TaxReturn } from './tax-return';
|
|
3
|
+
|
|
4
|
+
export class TaxReturnItem {
|
|
5
|
+
id?: number;
|
|
6
|
+
code?: string;
|
|
7
|
+
subCode?: string;
|
|
8
|
+
taxReturnCode?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
seq?: number;
|
|
11
|
+
isOtherIncome?: boolean;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
taxSummary?: TaxReturnCategory;
|
|
15
|
+
taxReturns?: TaxReturn[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TaxReviewStatusEnum } from '../Enums/tax-review-status.enum';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
import { Firm } from './firm';
|
|
4
|
+
|
|
5
|
+
export class TaxReview {
|
|
6
|
+
id?: number;
|
|
7
|
+
financialYear?: number;
|
|
8
|
+
status?: TaxReviewStatusEnum;
|
|
9
|
+
createdAt?: Date;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
client?: User;
|
|
12
|
+
employee?: User;
|
|
13
|
+
firm?: Firm;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TicketStatusEnum } from '../Enums/ticket-status.enum';
|
|
2
|
+
import { TicketFeedbackEnum } from '../Enums/ticket-feedback.enum';
|
|
3
|
+
import { Firm } from './firm';
|
|
4
|
+
import { User } from './user';
|
|
5
|
+
import { Message } from './message';
|
|
6
|
+
|
|
7
|
+
export class Ticket {
|
|
8
|
+
id?: number;
|
|
9
|
+
description?: string;
|
|
10
|
+
status?: TicketStatusEnum;
|
|
11
|
+
type?: number;
|
|
12
|
+
timeInProgress?: number;
|
|
13
|
+
feedback?: TicketFeedbackEnum;
|
|
14
|
+
createdAt?: Date;
|
|
15
|
+
updatedAt?: Date;
|
|
16
|
+
firm?: Firm;
|
|
17
|
+
employee?: User;
|
|
18
|
+
client?: User;
|
|
19
|
+
messages?: Message[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Property } from './property';
|
|
2
|
+
import { ChartAccounts } from './chart-accounts';
|
|
3
|
+
import { CHART_ACCOUNTS_CATEGORIES } from '../../models/chart-accounts/chart-accounts-categories.const';
|
|
4
|
+
import { TankTypeEnum } from '../Enums/tank-type.enum';
|
|
5
|
+
|
|
6
|
+
export class TransactionBase {
|
|
7
|
+
id?: number;
|
|
8
|
+
amount?: number;
|
|
9
|
+
property?: Property;
|
|
10
|
+
date?: Date;
|
|
11
|
+
chartAccounts?: ChartAccounts;
|
|
12
|
+
description?: string;
|
|
13
|
+
file?: File;
|
|
14
|
+
claimPercent?: number;
|
|
15
|
+
tankType: TankTypeEnum;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Check if current tank is Property
|
|
19
|
+
*/
|
|
20
|
+
isPropertyTank(): boolean {
|
|
21
|
+
return !!this.property;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if current tank is Work
|
|
26
|
+
*/
|
|
27
|
+
isWorkTank(): boolean {
|
|
28
|
+
if (this.tankType) {
|
|
29
|
+
return this.tankType === TankTypeEnum.WORK;
|
|
30
|
+
}
|
|
31
|
+
return CHART_ACCOUNTS_CATEGORIES.work.includes(this.chartAccounts.category);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Transaction } from './transaction';
|
|
2
|
+
import { ChartAccountsMetadata } from './chart-accounts-metadata';
|
|
3
|
+
|
|
4
|
+
export class TransactionMetadata {
|
|
5
|
+
value?: string;
|
|
6
|
+
id?: number;
|
|
7
|
+
deletedAt?: Date;
|
|
8
|
+
createdAt?: Date;
|
|
9
|
+
updatedAt?: Date;
|
|
10
|
+
transaction?: Transaction;
|
|
11
|
+
chartAccountsMetadata?: ChartAccountsMetadata;
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TransactionTypeEnum } from '../Enums/transaction-type.enum';
|
|
2
|
+
import { TransactionSourceEnum } from '../Enums/transaction-source.enum';
|
|
3
|
+
import { TransactionOperationEnum } from '../Enums/transaction-operation.enum';
|
|
4
|
+
import { User } from './user';
|
|
5
|
+
import { ChartAccounts } from './chart-accounts';
|
|
6
|
+
import { IncomeSource } from './income-source';
|
|
7
|
+
import { TransactionReceipt } from './transaction-receipt';
|
|
8
|
+
import { TransactionMetadata } from './transaction-metadata';
|
|
9
|
+
import { TransactionAllocation } from './transaction-allocation';
|
|
10
|
+
import { Loan } from './loan';
|
|
11
|
+
import { TransactionBase } from './transaction-base';
|
|
12
|
+
import { Property } from './property';
|
|
13
|
+
import { Depreciation } from './depreciation';
|
|
14
|
+
|
|
15
|
+
export class Transaction extends TransactionBase {
|
|
16
|
+
id?: number;
|
|
17
|
+
type?: TransactionTypeEnum;
|
|
18
|
+
source?: TransactionSourceEnum;
|
|
19
|
+
date?: Date;
|
|
20
|
+
amount?: number;
|
|
21
|
+
description?: string;
|
|
22
|
+
tax?: number;
|
|
23
|
+
claimPercent?: number;
|
|
24
|
+
claimAmount?: number;
|
|
25
|
+
taxPayable?: number;
|
|
26
|
+
operation?: TransactionOperationEnum;
|
|
27
|
+
createdAt?: Date;
|
|
28
|
+
updatedAt?: Date;
|
|
29
|
+
deletedAt?: Date;
|
|
30
|
+
user?: User;
|
|
31
|
+
chartAccounts?: ChartAccounts;
|
|
32
|
+
incomeSource?: IncomeSource;
|
|
33
|
+
parentTransaction?: Transaction;
|
|
34
|
+
childTransactions?: Transaction[];
|
|
35
|
+
receipt?: TransactionReceipt;
|
|
36
|
+
property?: Property;
|
|
37
|
+
metadata?: TransactionMetadata[];
|
|
38
|
+
transfer?: Transaction;
|
|
39
|
+
allocations?: TransactionAllocation[];
|
|
40
|
+
loan?: Loan;
|
|
41
|
+
depreciation?: Depreciation;
|
|
42
|
+
createdBy?: User;
|
|
43
|
+
updatedBy?: User;
|
|
44
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { User } from './user';
|
|
2
|
+
import { UserEventType } from './user-event-type';
|
|
3
|
+
|
|
4
|
+
export class UserEventSetting {
|
|
5
|
+
byEmail?: boolean;
|
|
6
|
+
byNotification?: boolean;
|
|
7
|
+
frequency?: number;
|
|
8
|
+
id?: number;
|
|
9
|
+
user?: User;
|
|
10
|
+
userEventType?: UserEventType;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UserEventTypeTypeEnum } from '../Enums/user-event-type-type.enum';
|
|
2
|
+
import { UserEventTypeFrequencyEnum } from '../Enums/user-event-type-frequency.enum';
|
|
3
|
+
import { UserEventSetting } from './user-event-setting';
|
|
4
|
+
|
|
5
|
+
export class UserEventType {
|
|
6
|
+
type?: UserEventTypeTypeEnum;
|
|
7
|
+
name?: string;
|
|
8
|
+
byEmail?: boolean;
|
|
9
|
+
byNotification?: boolean;
|
|
10
|
+
frequency?: UserEventTypeFrequencyEnum;
|
|
11
|
+
counter?: number;
|
|
12
|
+
status?: number;
|
|
13
|
+
emailTemplate?: string;
|
|
14
|
+
id?: number;
|
|
15
|
+
settings?: UserEventSetting[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UserEventStatusEnum } from '../Enums/user-event-status.enum';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
import { UserEventType } from './user-event-type';
|
|
4
|
+
|
|
5
|
+
export class UserEvent {
|
|
6
|
+
id?: number;
|
|
7
|
+
status?: UserEventStatusEnum;
|
|
8
|
+
counter?: number;
|
|
9
|
+
entityId?: number;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
user?: User;
|
|
13
|
+
userEventType?: UserEventType;
|
|
14
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { UserTitleEnum } from '../Enums/user-title.enum';
|
|
2
|
+
import { UserStatusEnum } from '../Enums/user-status.enum';
|
|
3
|
+
import { UserRolesEnum } from '../Enums/user-roles.enum';
|
|
4
|
+
import { Property } from './property';
|
|
5
|
+
import { PropertySubscription } from './property-subscription';
|
|
6
|
+
import { ServiceSubscription } from './service-subscription';
|
|
7
|
+
import { UserEventSetting } from './user-event-setting';
|
|
8
|
+
import { BankConnection } from './bank-connection';
|
|
9
|
+
import { TaxReview } from './tax-review';
|
|
10
|
+
import { PropertyOwner } from './property-owner';
|
|
11
|
+
import { Address } from './address';
|
|
12
|
+
import { Phone } from './phone';
|
|
13
|
+
import { ClientMovement } from './client-movement';
|
|
14
|
+
import { ClientDetails } from './client-details';
|
|
15
|
+
import { EmployeeDetails } from './employee-details';
|
|
16
|
+
|
|
17
|
+
export class User {
|
|
18
|
+
id?: number;
|
|
19
|
+
intercomId?: number;
|
|
20
|
+
createdAt?: Date;
|
|
21
|
+
updatedAt?: Date;
|
|
22
|
+
email?: string;
|
|
23
|
+
hashedEmail?: string;
|
|
24
|
+
password?: string;
|
|
25
|
+
firstName?: string;
|
|
26
|
+
lastName?: string;
|
|
27
|
+
title?: UserTitleEnum;
|
|
28
|
+
photo?: string;
|
|
29
|
+
status?: UserStatusEnum;
|
|
30
|
+
isConfirmed?: boolean;
|
|
31
|
+
verificationCode?: string;
|
|
32
|
+
referer?: User;
|
|
33
|
+
referenceCode?: string;
|
|
34
|
+
stripeId?: string;
|
|
35
|
+
basiqId?: string;
|
|
36
|
+
roles?: UserRolesEnum;
|
|
37
|
+
financialYear?: number;
|
|
38
|
+
dateOfBirth?: Date;
|
|
39
|
+
deletedAt?: Date;
|
|
40
|
+
properties?: Property[];
|
|
41
|
+
propertySubscriptions?: PropertySubscription[];
|
|
42
|
+
subscriptions?: ServiceSubscription[];
|
|
43
|
+
eventSettings?: UserEventSetting[];
|
|
44
|
+
bankConnections?: BankConnection[];
|
|
45
|
+
taxReviews?: TaxReview[];
|
|
46
|
+
ownerships?: PropertyOwner[];
|
|
47
|
+
address?: Address;
|
|
48
|
+
phone?: Phone;
|
|
49
|
+
clientMovements?: ClientMovement[];
|
|
50
|
+
clientDetails?: ClientDetails;
|
|
51
|
+
employeeDetails?: EmployeeDetails;
|
|
52
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VehicleClaimMethodEnum } from '../Enums/vehicle-claim-method.enum';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
|
|
4
|
+
export class VehicleClaim {
|
|
5
|
+
financialYear?: number;
|
|
6
|
+
method?: VehicleClaimMethodEnum;
|
|
7
|
+
kilometers?: number;
|
|
8
|
+
workUsage?: number;
|
|
9
|
+
isManual?: boolean;
|
|
10
|
+
id?: number;
|
|
11
|
+
user?: User;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VehicleLogbookPurposeEnum } from '../Enums/vehicle-logbook-purpose.enum';
|
|
2
|
+
import { Vehicle } from './vehicle';
|
|
3
|
+
import { User } from './user';
|
|
4
|
+
|
|
5
|
+
export class VehicleLogbook {
|
|
6
|
+
date?: Date;
|
|
7
|
+
odometerStart?: number;
|
|
8
|
+
odometerEnd?: number;
|
|
9
|
+
purpose?: VehicleLogbookPurposeEnum;
|
|
10
|
+
description?: string;
|
|
11
|
+
id?: number;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
vehicle?: Vehicle;
|
|
15
|
+
createdBy?: User;
|
|
16
|
+
updatedBy?: User;
|
|
17
|
+
}
|