taxtank-core 0.28.118 → 0.29.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/bundles/taxtank-core.umd.js +8560 -8748
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/bank-account.collection.js +5 -1
- package/esm2015/lib/collections/chart-accounts.collection.js +13 -2
- package/esm2015/lib/collections/chat/chat.collection.js +26 -0
- package/esm2015/lib/collections/chat/index.js +4 -0
- package/esm2015/lib/collections/chat/message-document.collection.js +13 -0
- package/esm2015/lib/collections/chat/message.collection.js +33 -0
- package/esm2015/lib/collections/collection.js +5 -1
- package/esm2015/lib/collections/index.js +25 -3
- package/esm2015/lib/collections/loan/index.js +3 -0
- package/esm2015/lib/collections/loan/loan.collection.js +7 -1
- package/esm2015/lib/collections/property/index.js +2 -1
- package/esm2015/lib/collections/property/property-share.collection.js +23 -0
- package/esm2015/lib/collections/report/index.js +7 -0
- package/esm2015/lib/collections/sole/index.js +2 -1
- package/esm2015/lib/collections/subscription/index.js +2 -0
- package/esm2015/lib/collections/tax-summary/index.js +3 -0
- package/esm2015/lib/collections/user-event-type-collection.js +7 -0
- package/esm2015/lib/db/Models/bank/bank-account.js +3 -3
- package/esm2015/lib/db/Models/bank/bank-connection.js +3 -3
- package/esm2015/lib/db/Models/bank/bank-transaction-rule.js +4 -0
- package/esm2015/lib/db/Models/bank/bank-transaction.js +3 -3
- package/esm2015/lib/db/Models/document/document-base.js +4 -0
- package/esm2015/lib/db/Models/firm/firm-invite.js +4 -0
- package/esm2015/lib/db/Models/firm/message.js +3 -3
- package/esm2015/lib/db/Models/index.js +102 -0
- package/esm2015/lib/db/Models/loan/loan-payout.js +3 -3
- package/esm2015/lib/db/Models/loan/loan.js +3 -3
- package/esm2015/lib/db/Models/property/property-category-movement.js +3 -3
- package/esm2015/lib/db/Models/property/property-category.js +3 -3
- package/esm2015/lib/db/Models/property/property-sale/property-sale.js +3 -3
- package/esm2015/lib/db/Models/property/property-share.js +3 -3
- package/esm2015/lib/db/Models/spare/spare-document-category.js +4 -0
- package/esm2015/lib/db/Models/spare/spare-document.js +4 -0
- package/esm2015/lib/db/Models/tax-calculation.js +4 -0
- package/esm2015/lib/db/Models/transaction/transaction-base.js +3 -3
- package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
- package/esm2015/lib/interceptors/basiq-token.interceptor.js +5 -5
- package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
- package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
- package/esm2015/lib/interceptors/interceptors.module.js +4 -4
- 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/interfaces/index.js +18 -0
- package/esm2015/lib/models/bank/basiq/basiq-token.js +4 -2
- package/esm2015/lib/models/borrowing-expense/index.js +3 -0
- package/esm2015/lib/models/chart-accounts/index.js +2 -2
- package/esm2015/lib/models/chat/index.js +5 -0
- package/esm2015/lib/models/depreciation/depreciation-lvp-rate.enum.js +9 -0
- package/esm2015/lib/models/depreciation/index.js +10 -0
- package/esm2015/lib/models/dictionary/index.js +2 -0
- package/esm2015/lib/models/event/app-event-type.enum.js +68 -70
- package/esm2015/lib/models/event/index.js +3 -0
- package/esm2015/lib/models/financial-year/index.js +5 -0
- package/esm2015/lib/models/index.js +12 -2
- package/esm2015/lib/models/loan/index.js +5 -0
- package/esm2015/lib/models/notification/index.js +2 -0
- package/esm2015/lib/models/property/index.js +18 -0
- package/esm2015/lib/models/property/property.js +1 -3
- package/esm2015/lib/models/user/index.js +10 -0
- package/esm2015/lib/services/account-setup/account-setup.service.js +6 -7
- package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
- 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 +3 -3
- 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 +16 -71
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +42 -42
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +17 -33
- package/esm2015/lib/services/http/bank/bank.service.js +15 -10
- package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +18 -20
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +15 -27
- package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +10 -21
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +20 -64
- package/esm2015/lib/services/http/chat/chat.service.js +24 -30
- package/esm2015/lib/services/http/chat/index.js +3 -3
- package/esm2015/lib/services/http/chat/message-document.service.js +78 -0
- package/esm2015/lib/services/http/chat/message.service.js +68 -0
- package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +29 -57
- package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +3 -3
- package/esm2015/lib/services/http/document/document.service.js +3 -3
- package/esm2015/lib/services/http/facebook/facebook.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 +7 -4
- package/esm2015/lib/services/http/loan/index.js +1 -1
- package/esm2015/lib/services/http/loan/loan.service.js +21 -69
- package/esm2015/lib/services/http/property/property-category/property-category.service.js +10 -7
- package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +10 -34
- package/esm2015/lib/services/http/property/property-document/property-document.service.js +11 -21
- package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +10 -27
- package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +11 -8
- package/esm2015/lib/services/http/property/property-share/property-share.service.js +15 -89
- package/esm2015/lib/services/http/property/property.service.js +16 -34
- package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest-old.service.js +3 -3
- package/esm2015/lib/services/http/rest/rest.service.js +17 -10
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +3 -3
- package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.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 +6 -7
- package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction.service.js +3 -3
- package/esm2015/lib/services/http/tutorial-video/tutorial-video.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 +3 -3
- package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
- 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/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
- 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 +7 -9
- 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/vehicle/logbook-best-period.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/public-api.js +1 -85
- package/fesm2015/taxtank-core.js +7002 -7248
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/bank-account.collection.d.ts +1 -0
- package/lib/collections/chart-accounts.collection.d.ts +1 -0
- package/lib/collections/{chat.collection.d.ts → chat/chat.collection.d.ts} +2 -3
- package/lib/collections/chat/index.d.ts +3 -0
- package/lib/collections/{message-document.collection.d.ts → chat/message-document.collection.d.ts} +2 -2
- package/lib/collections/{message.collection.d.ts → chat/message.collection.d.ts} +2 -3
- package/lib/collections/collection.d.ts +1 -0
- package/lib/collections/index.d.ts +23 -2
- package/lib/collections/loan/index.d.ts +2 -0
- package/lib/collections/loan/loan.collection.d.ts +4 -0
- package/lib/collections/property/index.d.ts +1 -0
- package/lib/collections/property/property-share.collection.d.ts +16 -0
- package/lib/collections/report/index.d.ts +6 -0
- package/lib/collections/sole/index.d.ts +1 -0
- package/lib/collections/subscription/index.d.ts +1 -0
- package/lib/collections/tax-summary/index.d.ts +2 -0
- package/lib/collections/user-event-type-collection.d.ts +7 -0
- package/lib/db/Models/bank/bank-account.d.ts +2 -2
- package/lib/db/Models/bank/bank-connection.d.ts +2 -2
- package/lib/db/Models/bank/bank-transaction-rule.d.ts +26 -0
- package/lib/db/Models/bank/bank-transaction.d.ts +2 -2
- package/lib/db/Models/document/document-base.d.ts +11 -0
- package/lib/db/Models/firm/firm-invite.d.ts +15 -0
- package/lib/db/Models/firm/message.d.ts +2 -2
- package/lib/db/Models/index.d.ts +101 -0
- package/lib/db/Models/loan/loan-payout.d.ts +2 -2
- package/lib/db/Models/loan/loan.d.ts +2 -2
- package/lib/db/Models/property/property-category-movement.d.ts +2 -2
- package/lib/db/Models/property/property-category.d.ts +2 -2
- package/lib/db/Models/property/property-sale/property-sale.d.ts +2 -2
- package/lib/db/Models/property/property-share.d.ts +2 -2
- package/lib/db/Models/spare/spare-document-category.d.ts +7 -0
- package/lib/db/Models/spare/spare-document.d.ts +16 -0
- package/lib/db/Models/tax-calculation.d.ts +19 -0
- package/lib/db/Models/transaction/transaction-base.d.ts +2 -2
- package/lib/interfaces/index.d.ts +17 -0
- package/lib/models/bank/basiq/basiq-token.d.ts +2 -1
- package/lib/models/borrowing-expense/index.d.ts +2 -0
- package/lib/models/chart-accounts/index.d.ts +1 -1
- package/lib/models/chat/index.d.ts +4 -0
- package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts +7 -0
- package/lib/models/depreciation/index.d.ts +9 -0
- package/lib/models/dictionary/index.d.ts +1 -0
- package/lib/models/event/app-event-type.enum.d.ts +67 -69
- package/lib/models/event/index.d.ts +2 -0
- package/lib/models/financial-year/index.d.ts +4 -0
- package/lib/models/index.d.ts +11 -1
- package/lib/models/loan/index.d.ts +4 -0
- package/lib/models/notification/index.d.ts +1 -0
- package/lib/models/property/index.d.ts +17 -0
- package/lib/models/property/property.d.ts +0 -2
- package/lib/models/user/index.d.ts +9 -0
- package/lib/services/http/bank/bank-account/bank-account.service.d.ts +10 -25
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +21 -8
- package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts +10 -13
- package/lib/services/http/bank/bank.service.d.ts +10 -7
- package/lib/services/http/bank/basiq/basiq-token.service.d.ts +10 -9
- package/lib/services/http/bank/basiq/basiq.service.d.ts +12 -15
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts +8 -10
- package/lib/services/http/chart-accounts/chart-accounts.service.d.ts +11 -24
- package/lib/services/http/chat/chat.service.d.ts +12 -11
- package/lib/services/http/chat/index.d.ts +2 -2
- package/lib/services/http/chat/message-document.service.d.ts +35 -0
- package/lib/services/http/chat/message.service.d.ts +38 -0
- package/lib/services/http/depreciation/depreciation.service.d.ts +12 -23
- package/lib/services/http/loan/borrowing-expense/borrowing-expense.service.d.ts +3 -0
- package/lib/services/http/loan/loan.service.d.ts +16 -29
- package/lib/services/http/property/property-category/property-category.service.d.ts +8 -5
- package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts +8 -10
- package/lib/services/http/property/property-document/property-document.service.d.ts +9 -11
- package/lib/services/http/property/property-sale/property-sale.service.d.ts +8 -14
- package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts +9 -6
- package/lib/services/http/property/property-share/property-share.service.d.ts +10 -22
- package/lib/services/http/property/property.service.d.ts +9 -9
- package/lib/services/http/rest/rest.service.d.ts +7 -4
- package/lib/services/report/property/property-transaction-report.service.d.ts +2 -3
- package/package.json +1 -1
- package/public-api.d.ts +0 -84
- package/esm2015/lib/collections/chat.collection.js +0 -26
- package/esm2015/lib/collections/message-document.collection.js +0 -13
- package/esm2015/lib/collections/message.collection.js +0 -33
- package/esm2015/lib/services/http/chat/message/index.js +0 -2
- package/esm2015/lib/services/http/chat/message/message.service.js +0 -61
- package/esm2015/lib/services/http/chat/message-document/index.js +0 -2
- package/esm2015/lib/services/http/chat/message-document/message-document.service.js +0 -118
- package/lib/services/http/chat/message/index.d.ts +0 -1
- package/lib/services/http/chat/message/message.service.d.ts +0 -28
- package/lib/services/http/chat/message-document/index.d.ts +0 -1
- package/lib/services/http/chat/message-document/message-document.service.d.ts +0 -50
|
@@ -1,73 +1,71 @@
|
|
|
1
1
|
export declare enum AppEventTypeEnum {
|
|
2
2
|
CLIENT_MOVEMENT_CLOSED = 0,
|
|
3
3
|
BANK_CONNECTION_ADDED = 1,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
VEHICLE_LOGBOOK_DELETED = 69,
|
|
72
|
-
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 70
|
|
4
|
+
BANK_TRANSACTION_ALLOCATED = 2,
|
|
5
|
+
BANK_TRANSACTIONS_ADDED = 3,
|
|
6
|
+
BANK_TRANSACTIONS_DELETED = 4,
|
|
7
|
+
BASIQ_CONSENT_UPDATED = 5,
|
|
8
|
+
BASIQ_CONNECTION_UPDATED = 6,
|
|
9
|
+
BASIQ_JOB_CREATED = 7,
|
|
10
|
+
BASIQ_LOGIN_SUCCESS = 8,
|
|
11
|
+
BASIQ_LOGIN_FAILED = 9,
|
|
12
|
+
CLIENT_INVITE_ACCEPTED = 10,
|
|
13
|
+
CLIENT_OPEN_CHAT = 11,
|
|
14
|
+
CLIENT_TRANSFER_TO_OTHER_EMPLOYEE = 12,
|
|
15
|
+
CURRENT_USER_GET_FAILED = 13,
|
|
16
|
+
DEPRECIATION_DELETED = 14,
|
|
17
|
+
DEPRECIATIONS_CREATED = 15,
|
|
18
|
+
DEPRECIATION_UPDATED_WITH_RECEIPT = 16,
|
|
19
|
+
DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT = 17,
|
|
20
|
+
DEPRECIATION_RECEIPT_CREATED = 18,
|
|
21
|
+
DEPRECIATION_RECEIPT_DELETED = 19,
|
|
22
|
+
INCOME_SOURCES_CREATED = 20,
|
|
23
|
+
INCOME_SOURCES_UPDATED = 21,
|
|
24
|
+
INCOME_SOURCES_FORECASTS_CREATED = 22,
|
|
25
|
+
INCOME_SOURCES_FORECASTS_UPDATED = 23,
|
|
26
|
+
LOAN_UPDATED = 24,
|
|
27
|
+
LOAN_PAYOUT_UPDATED = 25,
|
|
28
|
+
MESSAGE_CREATED = 26,
|
|
29
|
+
MESSAGE_FILE_CREATED = 27,
|
|
30
|
+
MESSAGE_FILE_DELETED = 28,
|
|
31
|
+
NOTIFICATION_ADDED = 29,
|
|
32
|
+
PROPERTY_DEPRECIATION_CALCULATION_UPDATED = 30,
|
|
33
|
+
PROPERTY_UPDATED = 31,
|
|
34
|
+
PROPERTY_UPDATED_WITH_DOCUMENT = 32,
|
|
35
|
+
PROPERTY_DOCUMENT_ADDED = 33,
|
|
36
|
+
PROPERTY_MOVEMENT_CREATED = 34,
|
|
37
|
+
PROPERTY_MOVEMENT_UPDATED = 35,
|
|
38
|
+
PROPERTY_MOVEMENT_DELETED = 36,
|
|
39
|
+
PROPERTY_SHARE_UPDATED = 37,
|
|
40
|
+
PROPERTY_SALE_ADDED = 38,
|
|
41
|
+
PROPERTY_SALE_DELETED = 39,
|
|
42
|
+
PROPERTY_SUBSCRIPTION_ADDED = 40,
|
|
43
|
+
PROPERTY_SUBSCRIPTION_DELETED = 41,
|
|
44
|
+
PROPERTY_VALUATION_DOCUMENT_CREATED = 42,
|
|
45
|
+
SERVICE_SUBSCRIPTION_UPDATED = 43,
|
|
46
|
+
SOLE_BUSINESS_CREATED = 44,
|
|
47
|
+
SOLE_DEPRECIATION_METHOD_UPDATED = 45,
|
|
48
|
+
SOLE_DETAILS_CREATED = 46,
|
|
49
|
+
SOLE_DETAILS_UPDATED = 47,
|
|
50
|
+
SOLE_INVOICE_PUBLISHED = 48,
|
|
51
|
+
TAX_REVIEW_UPDATED = 49,
|
|
52
|
+
TRANSACTION_ALLOCATION_CREATED = 50,
|
|
53
|
+
TRANSACTION_ALLOCATION_DELETED = 51,
|
|
54
|
+
TRANSACTION_CREATED = 52,
|
|
55
|
+
TRANSACTION_DELETED = 53,
|
|
56
|
+
TRANSACTION_UPDATED = 54,
|
|
57
|
+
TRANSACTION_UPDATED_WITH_RECEIPT = 55,
|
|
58
|
+
TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 56,
|
|
59
|
+
TRANSACTION_RECEIPT_CREATED = 57,
|
|
60
|
+
TRANSACTION_RECEIPT_DELETED = 58,
|
|
61
|
+
TRANSACTIONS_CREATED = 59,
|
|
62
|
+
USER_UPDATED = 60,
|
|
63
|
+
VEHICLE_CLAIM_UPDATED = 61,
|
|
64
|
+
VEHICLE_CLAIM_CREATED = 62,
|
|
65
|
+
VEHICLE_CLAIM_DETAILS_UPDATED = 63,
|
|
66
|
+
VEHICLE_CLAIM_DETAILS_CREATED = 64,
|
|
67
|
+
VEHICLE_LOGBOOK_CREATED = 65,
|
|
68
|
+
VEHICLE_LOGBOOK_UPDATED = 66,
|
|
69
|
+
VEHICLE_LOGBOOK_DELETED = 67,
|
|
70
|
+
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 68
|
|
73
71
|
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
export * from './address';
|
|
2
2
|
export * from './bank';
|
|
3
|
+
export * from './borrowing-expense';
|
|
4
|
+
export * from './chart-accounts';
|
|
5
|
+
export * from './chat';
|
|
6
|
+
export * from './depreciation';
|
|
7
|
+
export * from './dictionary';
|
|
8
|
+
export * from './event';
|
|
9
|
+
export * from './financial-year';
|
|
10
|
+
export * from './loan';
|
|
11
|
+
export * from './notification';
|
|
3
12
|
export * from './sole';
|
|
4
13
|
export * from './vehicle';
|
|
5
14
|
export * from './document';
|
|
6
|
-
export * from './
|
|
15
|
+
export * from './property';
|
|
7
16
|
export * from './transaction';
|
|
17
|
+
export * from './user';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './notification';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './property-sale';
|
|
2
|
+
export * from './calculation-form-item';
|
|
3
|
+
export * from './calculation-form-type.enum';
|
|
4
|
+
export * from './capital-costs-itmes.const';
|
|
5
|
+
export * from './corelogic-suggestion';
|
|
6
|
+
export * from './property-category-movement';
|
|
7
|
+
export * from './property-category';
|
|
8
|
+
export * from './property-document';
|
|
9
|
+
export * from './property-equity-chart-data';
|
|
10
|
+
export * from './property-equity-chart-item';
|
|
11
|
+
export * from './property-equity-chart-type.enum';
|
|
12
|
+
export * from './property-forecast';
|
|
13
|
+
export * from './property-share';
|
|
14
|
+
export * from './property-subscription';
|
|
15
|
+
export * from './property-valuation';
|
|
16
|
+
export * from './property';
|
|
17
|
+
export * from './share-filter-options.enum';
|
|
@@ -14,7 +14,6 @@ import { PropertySale } from './property-sale/property-sale';
|
|
|
14
14
|
import { unitOfTime } from 'moment';
|
|
15
15
|
import { TransactionCollection } from '../../collections/transaction/transaction.collection';
|
|
16
16
|
import { DepreciationCollection } from '../../collections/depreciation.collection';
|
|
17
|
-
import { PropertyCollection } from '../../collections';
|
|
18
17
|
/**
|
|
19
18
|
* propertySale docs - https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4209508353/Property+Sold+button
|
|
20
19
|
*/
|
|
@@ -24,7 +23,6 @@ export declare class Property extends PropertyBase implements Photoable, Documen
|
|
|
24
23
|
* Any assets acquired before this day are CGT exempt (because the tax didn't exist before this date).
|
|
25
24
|
*/
|
|
26
25
|
static preCGTAssetDate: Date;
|
|
27
|
-
static collectionClass: typeof PropertyCollection;
|
|
28
26
|
contractDate: Date;
|
|
29
27
|
settlementDate: Date;
|
|
30
28
|
address: Address;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './my-account-history-initiated-by.enum';
|
|
2
|
+
export * from './my-account-history-status.enum';
|
|
3
|
+
export * from './my-account-history-type.enum';
|
|
4
|
+
export * from './my-account-history';
|
|
5
|
+
export * from './occupation';
|
|
6
|
+
export * from './user-roles.const';
|
|
7
|
+
export * from './user-to-register';
|
|
8
|
+
export * from './user-work-position.const';
|
|
9
|
+
export * from './user';
|
|
@@ -1,42 +1,27 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { BankAccount as BankAccountBase } from '../../../../db/Models
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { IEventListener } from '../../../../interfaces
|
|
6
|
-
import {
|
|
7
|
-
import { BankAccountCollection } from '../../../../collections/bank-account.collection';
|
|
2
|
+
import { BankAccount as BankAccountBase } from '../../../../db/Models';
|
|
3
|
+
import { BankAccount } from '../../../../models';
|
|
4
|
+
import { RestMethod, RestService } from '../../rest';
|
|
5
|
+
import { IEventListener } from '../../../../interfaces';
|
|
6
|
+
import { BankAccountCollection } from '../../../../collections';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
/**
|
|
10
9
|
* Service that handling user's bank accounts logic
|
|
11
10
|
*/
|
|
12
|
-
export declare class BankAccountService extends RestService<BankAccountBase, BankAccount> implements IEventListener {
|
|
13
|
-
|
|
11
|
+
export declare class BankAccountService extends RestService<BankAccountBase, BankAccount, BankAccountCollection> implements IEventListener {
|
|
12
|
+
endpointUri: string;
|
|
14
13
|
modelClass: typeof BankAccount;
|
|
14
|
+
collectionClass: typeof BankAccountCollection;
|
|
15
|
+
disabledMethods: RestMethod[];
|
|
15
16
|
/**
|
|
16
17
|
* Listen system notifications and update cache when got basiq notification received
|
|
17
18
|
*/
|
|
18
19
|
listenEvents(): void;
|
|
19
|
-
/**
|
|
20
|
-
* Created manual bank account
|
|
21
|
-
* @param bankAccounts
|
|
22
|
-
* @param queryParams
|
|
23
|
-
*/
|
|
24
|
-
addBatch(bankAccounts: BankAccount[], queryParams?: object): Observable<BankAccount[]>;
|
|
25
|
-
/**
|
|
26
|
-
* Update bank account and fire event
|
|
27
|
-
*/
|
|
28
|
-
update(bankAccount: BankAccount): Observable<BankAccount>;
|
|
29
|
-
/**
|
|
30
|
-
* Update bank account opening balance
|
|
31
|
-
* @param bankAccount Bank account for balance updating
|
|
32
|
-
*/
|
|
33
|
-
updateOpeningBalance(bankAccount: BankAccount): Observable<any>;
|
|
34
20
|
/**
|
|
35
21
|
* Update bank account current balance
|
|
22
|
+
* @TODO Vik: refactor once backend updated (should be separated endpoint for BankAccountBalance entity)
|
|
36
23
|
*/
|
|
37
24
|
updateCurrentBalance(bankAccount: BankAccount): Observable<BankAccount>;
|
|
38
|
-
getOwn(): Observable<BankAccount[]>;
|
|
39
|
-
getByConnection(connection: BankConnection): Observable<BankAccountCollection>;
|
|
40
25
|
/**
|
|
41
26
|
* Listen to EventDispatcherService events
|
|
42
27
|
*/
|
|
@@ -1,21 +1,34 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { BankConnection as BankConnectionBase } from '../../../../db/Models
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { IEventListener } from '../../../../interfaces
|
|
2
|
+
import { BankConnection as BankConnectionBase } from '../../../../db/Models';
|
|
3
|
+
import { RestMethod, RestService } from '../../rest';
|
|
4
|
+
import { BankConnection } from '../../../../models';
|
|
5
|
+
import { IEventListener } from '../../../../interfaces';
|
|
6
6
|
import { UserEventTypeTypeEnum } from '../../../../db/Enums/user-event-type-type.enum';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import { Collection } from '../../../../collections';
|
|
9
|
+
import { ToastService } from '../../../toast';
|
|
10
|
+
import { EventDispatcherService } from '../../../event';
|
|
7
11
|
import * as i0 from "@angular/core";
|
|
8
12
|
/**
|
|
9
13
|
* BankConnection means user account at specific bank (usually each user has only one at the same bank)
|
|
10
14
|
* service handles BankConnection management
|
|
11
15
|
*/
|
|
12
|
-
export declare class BankConnectionService extends RestService<BankConnectionBase, BankConnection
|
|
16
|
+
export declare class BankConnectionService extends RestService<BankConnectionBase, BankConnection, Collection<BankConnection>> implements IEventListener {
|
|
17
|
+
protected http: HttpClient;
|
|
18
|
+
protected eventDispatcherService: EventDispatcherService;
|
|
19
|
+
protected environment: any;
|
|
20
|
+
private toastService;
|
|
13
21
|
static userEventTypes: UserEventTypeTypeEnum[];
|
|
14
22
|
modelClass: typeof BankConnection;
|
|
15
|
-
|
|
23
|
+
collectionClass: typeof Collection;
|
|
24
|
+
endpointUri: string;
|
|
25
|
+
disabledMethods: RestMethod[];
|
|
26
|
+
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService);
|
|
16
27
|
listenEvents(): void;
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
/**
|
|
29
|
+
* POST endpoint is using for create and for update.
|
|
30
|
+
*/
|
|
31
|
+
post(bankConnection: BankConnection): Observable<BankConnection>;
|
|
19
32
|
/**
|
|
20
33
|
* Update cache when basiq accounts were retrieved or login to basic was failed to get actual connections statuses
|
|
21
34
|
*/
|
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
import { BankTransaction as BankTransactionBase } from '../../../../db/Models
|
|
1
|
+
import { BankTransaction as BankTransactionBase } from '../../../../db/Models';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { RestService } from '../../rest
|
|
4
|
-
import { BankTransaction } from '../../../../models
|
|
5
|
-
import { IEventListener } from '../../../../interfaces
|
|
3
|
+
import { RestMethod, RestService } from '../../rest';
|
|
4
|
+
import { BankTransaction } from '../../../../models';
|
|
5
|
+
import { IEventListener } from '../../../../interfaces';
|
|
6
|
+
import { BankTransactionCollection } from '../../../../collections';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Service for bank transactions business logic
|
|
9
10
|
*/
|
|
10
|
-
export declare class BankTransactionService extends RestService<BankTransactionBase, BankTransaction> implements IEventListener {
|
|
11
|
-
|
|
11
|
+
export declare class BankTransactionService extends RestService<BankTransactionBase, BankTransaction, BankTransactionCollection> implements IEventListener {
|
|
12
|
+
endpointUri: string;
|
|
12
13
|
modelClass: typeof BankTransaction;
|
|
14
|
+
collectionClass: typeof BankTransactionCollection;
|
|
15
|
+
disabledMethods: RestMethod[];
|
|
13
16
|
listenEvents(): void;
|
|
14
|
-
/**
|
|
15
|
-
* get list of bank transactions for passed bank account id
|
|
16
|
-
* @param bankAccountId Id of bank account we search bank transactions for
|
|
17
|
-
*/
|
|
18
|
-
getByBankAccountId(bankAccountId: number): Observable<BankTransaction[]>;
|
|
19
17
|
/**
|
|
20
18
|
* Get list of bank transactions for provided financial year
|
|
21
19
|
* @TODO VIK/Alex: consider to use one endpoint to get bank transactions for 2 fin years
|
|
22
20
|
*/
|
|
23
|
-
|
|
21
|
+
getByYear(finYear: number): Observable<BankTransaction[]>;
|
|
24
22
|
/**
|
|
25
23
|
* import bank transactions from csv file
|
|
26
24
|
* @param bankAccountId Bank account id we import bank transactions for
|
|
27
25
|
* @param file File with bank transactions for import
|
|
28
26
|
*/
|
|
29
27
|
import(bankAccountId: number, file: File): Observable<BankTransaction[]>;
|
|
30
|
-
delete(model: BankTransaction): Observable<void>;
|
|
31
28
|
/**
|
|
32
29
|
* @TODO move to sse when backend send mercure event
|
|
33
30
|
*/
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { Bank as BankBase } from '../../../db/Models
|
|
2
|
-
import { Bank } from '../../../models
|
|
3
|
-
import { RestService } from '../rest
|
|
1
|
+
import { Bank as BankBase } from '../../../db/Models';
|
|
2
|
+
import { Bank } from '../../../models';
|
|
3
|
+
import { RestService, RestMethod } from '../rest';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
+
import { Collection } from '../../../collections';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Service that handling banks logic
|
|
8
9
|
*/
|
|
9
|
-
export declare class BankService extends RestService<BankBase, Bank
|
|
10
|
+
export declare class BankService extends RestService<BankBase, Bank, Collection<Bank>> {
|
|
10
11
|
modelClass: typeof Bank;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
collectionClass: typeof Collection;
|
|
13
|
+
endpointUri: string;
|
|
14
|
+
isApiPlatform: boolean;
|
|
15
|
+
disabledMethods: RestMethod[];
|
|
16
|
+
get(): Observable<Collection<Bank>>;
|
|
14
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<BankService, never>;
|
|
15
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<BankService>;
|
|
16
19
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AbstractModel } from '../../../../db/Models';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
3
|
import { BasiqToken } from '../../../../models';
|
|
4
|
+
import { RestMethod, RestService } from '../../rest';
|
|
5
|
+
import { Collection } from '../../../../collections';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BasiqTokenService {
|
|
6
|
-
protected
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
constructor(http: HttpClient, environment: any);
|
|
7
|
+
export declare class BasiqTokenService extends RestService<AbstractModel, BasiqToken, Collection<BasiqToken>> {
|
|
8
|
+
protected endpointUri: string;
|
|
9
|
+
modelClass: typeof BasiqToken;
|
|
10
|
+
collectionClass: typeof Collection;
|
|
11
|
+
disabledMethods: RestMethod[];
|
|
11
12
|
/**
|
|
12
13
|
* Access token to use basiq flow
|
|
13
14
|
*/
|
|
14
|
-
get(): Observable<BasiqToken
|
|
15
|
+
get(): Observable<Collection<BasiqToken>>;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BasiqTokenService, never>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<BasiqTokenService>;
|
|
17
18
|
}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
1
|
+
import { BankAccount as BankAccountBase } from '../../../../db/Models';
|
|
2
|
+
import { RestMethod, RestService } from '../../rest';
|
|
3
|
+
import { IEventListener } from '../../../../interfaces';
|
|
5
4
|
import { HttpClient } from '@angular/common/http';
|
|
6
|
-
import { EventDispatcherService } from '../../../event
|
|
7
|
-
import { BankConnectionService } from '../bank-connection
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { BankAccount, BankConnection, BankLoginData } from '../../../../models';
|
|
5
|
+
import { EventDispatcherService } from '../../../event';
|
|
6
|
+
import { BankConnectionService } from '../bank-connection';
|
|
7
|
+
import { BankAccountCollection } from '../../../../collections';
|
|
8
|
+
import { BankAccount, BankLoginData } from '../../../../models';
|
|
11
9
|
import * as i0 from "@angular/core";
|
|
12
10
|
/**
|
|
13
11
|
* basiq is a middleman between bank and user
|
|
14
12
|
* service is responsible for fetching bank related information
|
|
15
13
|
*/
|
|
16
|
-
export declare class BasiqService extends RestService<BankAccountBase, BankAccount> implements IEventListener {
|
|
14
|
+
export declare class BasiqService extends RestService<BankAccountBase, BankAccount, BankAccountCollection> implements IEventListener {
|
|
17
15
|
protected http: HttpClient;
|
|
18
16
|
protected eventDispatcherService: EventDispatcherService;
|
|
19
17
|
protected environment: any;
|
|
20
|
-
protected toastService: ToastService;
|
|
21
18
|
private bankConnectionService;
|
|
22
19
|
static basiqApiUrl: string;
|
|
23
20
|
/**
|
|
24
21
|
* Basiq does not provide a hook, so we have to check job status manually every x seconds
|
|
25
22
|
*/
|
|
26
23
|
static bankCredintialsCheckInterval: number;
|
|
27
|
-
|
|
24
|
+
protected endpointUri: string;
|
|
25
|
+
collectionClass: typeof BankAccountCollection;
|
|
28
26
|
modelClass: typeof BankAccount;
|
|
29
|
-
|
|
27
|
+
disabledMethods: RestMethod[];
|
|
28
|
+
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, bankConnectionService: BankConnectionService);
|
|
30
29
|
/**
|
|
31
30
|
* Listen events from Event Dispatcher service
|
|
32
31
|
*/
|
|
@@ -37,8 +36,6 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
|
|
|
37
36
|
* We can not see login result immediately, because it may take some time (average 10-20 sec)
|
|
38
37
|
*/
|
|
39
38
|
login(loginData: BankLoginData, userId: string): void;
|
|
40
|
-
getByConnection(connection: BankConnection): Observable<BankAccountCollection>;
|
|
41
|
-
getNotImportedByConnection(savedAccounts: BankAccountCollection, connection: BankConnection): Observable<BankAccountCollection>;
|
|
42
39
|
/**
|
|
43
40
|
* Get status of credentials verifying. Expected statuses: 'in-progress', 'failed' or 'success'
|
|
44
41
|
* We send this request by interval until basiq return success or failed.
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { RestService } from '../../rest
|
|
2
|
-
import { ChartAccountsDepreciation as ChartAccountsDepreciationBase } from '../../../../db/Models
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { RestMethod, RestService } from '../../rest';
|
|
2
|
+
import { ChartAccountsDepreciation as ChartAccountsDepreciationBase } from '../../../../db/Models';
|
|
4
3
|
import { ChartAccountsDepreciation } from '../../../../models';
|
|
4
|
+
import { Collection } from '../../../../collections';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Service to work with depreciation chart accounts
|
|
8
8
|
*/
|
|
9
|
-
export declare class ChartAccountsDepreciationService extends RestService<ChartAccountsDepreciationBase, ChartAccountsDepreciation
|
|
10
|
-
|
|
9
|
+
export declare class ChartAccountsDepreciationService extends RestService<ChartAccountsDepreciationBase, ChartAccountsDepreciation, Collection<ChartAccountsDepreciation>> {
|
|
10
|
+
endpointUri: string;
|
|
11
11
|
modelClass: typeof ChartAccountsDepreciation;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
getCurrent(): Observable<ChartAccountsDepreciation>;
|
|
12
|
+
collectionClass: typeof Collection;
|
|
13
|
+
isApiPlatform: boolean;
|
|
14
|
+
disabledMethods: RestMethod[];
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartAccountsDepreciationService, never>;
|
|
18
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChartAccountsDepreciationService>;
|
|
19
17
|
}
|
|
@@ -1,35 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Observable, ReplaySubject } from 'rxjs';
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
3
2
|
import { ChartAccountsCategoryEnum } from '../../../db/Enums';
|
|
3
|
+
import { ChartAccounts as ChartAccountsBase } from '../../../db/Models';
|
|
4
4
|
import { ChartAccounts, ChartAccountsHeading } from '../../../models';
|
|
5
|
+
import { RestMethod, RestService } from '../rest';
|
|
6
|
+
import { ChartAccountsCollection } from '../../../collections';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* Chart accounts service
|
|
8
10
|
*/
|
|
9
|
-
export declare class ChartAccountsService {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
constructor(http: HttpClient, environment: any);
|
|
11
|
+
export declare class ChartAccountsService extends RestService<ChartAccountsBase, ChartAccounts, ChartAccountsCollection> {
|
|
12
|
+
protected endpointUri: string;
|
|
13
|
+
modelClass: typeof ChartAccounts;
|
|
14
|
+
collectionClass: typeof ChartAccountsCollection;
|
|
15
|
+
disabledMethods: RestMethod[];
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* Get list of chart accounts headings by catogory with chart accounts inside
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Get list of chart accounts heading
|
|
21
|
-
*/
|
|
22
|
-
getChartAccountsHeadings(categories?: ChartAccountsCategoryEnum[], chartAccountsIds?: number[]): Observable<ChartAccountsHeading[]>;
|
|
23
|
-
/**
|
|
24
|
-
* Get heading of chart accounts by it Id
|
|
25
|
-
* @param id
|
|
26
|
-
*/
|
|
27
|
-
getHeadingByChartAccountsId(id: number): Observable<ChartAccountsHeading>;
|
|
28
|
-
/**
|
|
29
|
-
* Get chart accounts by Id
|
|
30
|
-
* @param id
|
|
31
|
-
*/
|
|
32
|
-
getChartAccountsById(id: number): Observable<ChartAccounts>;
|
|
19
|
+
getChartAccountsHeadings(categories?: ChartAccountsCategoryEnum[]): Observable<ChartAccountsHeading[]>;
|
|
33
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartAccountsService, never>;
|
|
34
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChartAccountsService>;
|
|
35
22
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { Chat as ChatBase } from '../../../db/Models
|
|
1
|
+
import { Chat as ChatBase } from '../../../db/Models';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { SseService } from '../../event
|
|
4
|
-
import { RestService } from '../rest
|
|
5
|
-
import { Chat } from '../../../models
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { SseService, EventDispatcherService } from '../../event';
|
|
4
|
+
import { RestMethod, RestService } from '../rest';
|
|
5
|
+
import { Chat } from '../../../models';
|
|
6
|
+
import { ChatCollection } from '../../../collections';
|
|
7
|
+
import { IEventListener } from '../../../interfaces';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* Service for work with chats
|
|
11
11
|
*/
|
|
12
|
-
export declare class ChatService extends RestService<ChatBase, Chat> {
|
|
12
|
+
export declare class ChatService extends RestService<ChatBase, Chat, ChatCollection> implements IEventListener {
|
|
13
13
|
protected http: HttpClient;
|
|
14
14
|
protected eventDispatcherService: EventDispatcherService;
|
|
15
15
|
protected environment: any;
|
|
16
|
-
protected toastService: ToastService;
|
|
17
16
|
private sseService;
|
|
18
17
|
modelClass: typeof Chat;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
collectionClass: typeof ChatCollection;
|
|
19
|
+
endpointUri: string;
|
|
20
|
+
isApiPlatform: boolean;
|
|
21
|
+
disabledMethods: RestMethod[];
|
|
22
|
+
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, sseService: SseService);
|
|
22
23
|
/**
|
|
23
24
|
* Listen chats events
|
|
24
25
|
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { MessageDocument as MessageDocumentBase } from '../../../db/Models';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IEventListener } from '../../../interfaces';
|
|
4
|
+
import { MessageDocument } from '../../../models';
|
|
5
|
+
import { RestMethod, RestService } from '../rest';
|
|
6
|
+
import { MessageDocumentCollection } from '../../../collections';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Service for work with Message Documents
|
|
10
|
+
*/
|
|
11
|
+
export declare class MessageDocumentService extends RestService<MessageDocumentBase, MessageDocument, MessageDocumentCollection> implements IEventListener {
|
|
12
|
+
modelClass: typeof MessageDocument;
|
|
13
|
+
collectionClass: typeof MessageDocumentCollection;
|
|
14
|
+
endpointUri: string;
|
|
15
|
+
disabledMethods: RestMethod[];
|
|
16
|
+
isApiPlatform: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* SSE and Event Dispatcher Services listeners
|
|
19
|
+
*/
|
|
20
|
+
listenEvents(): void;
|
|
21
|
+
/**
|
|
22
|
+
* listen new messages event to update documents cache
|
|
23
|
+
*/
|
|
24
|
+
listenMessages(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Upload file to chat
|
|
27
|
+
*/
|
|
28
|
+
add(chatId: number, file: File): Observable<MessageDocument>;
|
|
29
|
+
/**
|
|
30
|
+
* Upload multiple files to chat
|
|
31
|
+
*/
|
|
32
|
+
addBatch(chatId: number, files: File[]): Observable<MessageDocument[]>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageDocumentService, never>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MessageDocumentService>;
|
|
35
|
+
}
|