taxtank-core 0.30.67 → 0.30.69
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/esm2020/lib/forms/sole/sole-invoice-item.form.mjs +7 -1
- package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/financial-year-interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
- package/esm2020/lib/interceptors/jwt-interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/preloader.interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +3 -3
- package/esm2020/lib/models/bank/bank-connection.mjs +1 -1
- package/esm2020/lib/models/bank/basiq/basiq-job-response.mjs +4 -1
- package/esm2020/lib/models/bank/basiq/basiq-job-step.mjs +7 -1
- package/esm2020/lib/models/event/app-event-type.enum.mjs +61 -60
- package/esm2020/lib/models/sole/sole-invoice-item.mjs +3 -3
- package/esm2020/lib/models/sole/sole-invoice.mjs +1 -1
- package/esm2020/lib/services/account-setup/account-setup.service.mjs +17 -5
- package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +3 -3
- package/esm2020/lib/services/asset/assets.service.mjs +3 -3
- package/esm2020/lib/services/auth/auth.service.mjs +3 -3
- package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
- package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
- package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -3
- package/esm2020/lib/services/data.service.mjs +3 -3
- package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
- package/esm2020/lib/services/event/sse.service.mjs +3 -3
- package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
- package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
- package/esm2020/lib/services/http/address/address.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +5 -22
- package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +7 -5
- package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +61 -53
- package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
- package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
- package/esm2020/lib/services/http/chat/chat.service.mjs +3 -3
- package/esm2020/lib/services/http/chat/message-document.service.mjs +3 -3
- package/esm2020/lib/services/http/chat/message.service.mjs +3 -3
- package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +3 -3
- package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +3 -3
- package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
- package/esm2020/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +3 -3
- package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +3 -3
- package/esm2020/lib/services/http/document/document.service.mjs +3 -3
- package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -3
- package/esm2020/lib/services/http/file/file.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/firm.service.mjs +3 -3
- package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +3 -3
- package/esm2020/lib/services/http/google/google.service.mjs +3 -3
- package/esm2020/lib/services/http/holding/holding-sale.service.mjs +3 -3
- package/esm2020/lib/services/http/holding/holding-type.service.mjs +3 -3
- package/esm2020/lib/services/http/holding/holding.service.mjs +3 -3
- package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +3 -3
- package/esm2020/lib/services/http/income-source/income-source.service.mjs +3 -3
- package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +3 -3
- package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +3 -3
- package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
- package/esm2020/lib/services/http/loan/loan.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +3 -3
- package/esm2020/lib/services/http/property/property.service.mjs +3 -3
- package/esm2020/lib/services/http/receipt/receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/rest/rest-old.service.mjs +3 -3
- package/esm2020/lib/services/http/rest/rest.service.mjs +8 -6
- package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +3 -3
- package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
- package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +3 -3
- package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +3 -3
- package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +3 -3
- package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction.service.mjs +3 -3
- package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
- package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
- package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
- package/esm2020/lib/services/http/user/user.service.mjs +11 -4
- package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
- package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +3 -3
- package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +3 -3
- package/esm2020/lib/services/http/vehicle/vehicle-logbook.service.mjs +3 -3
- package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +3 -3
- package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
- package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
- package/esm2020/lib/services/json/income-source/income-source-type.service.mjs +3 -3
- package/esm2020/lib/services/json/tax-exemption/tax-exemption.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
- package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
- package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
- package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -3
- package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +3 -3
- package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
- package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +3 -3
- package/esm2020/lib/services/toast/toast.service.mjs +3 -3
- package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +3 -3
- package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
- package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +3 -3
- package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
- package/esm2020/lib/tt-core.module.mjs +4 -4
- package/fesm2015/taxtank-core.mjs +514 -485
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +514 -485
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/models/bank/basiq/basiq-job-response.d.ts +1 -0
- package/lib/models/bank/basiq/basiq-job-step.d.ts +2 -0
- package/lib/models/event/app-event-type.enum.d.ts +60 -59
- package/lib/models/sole/sole-invoice-item.d.ts +2 -2
- package/lib/services/account-setup/account-setup.service.d.ts +4 -0
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +0 -4
- package/lib/services/http/bank/basiq/basiq.service.d.ts +35 -20
- package/lib/services/http/rest/rest.service.d.ts +4 -0
- package/lib/services/http/user/user.service.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ export declare class BasiqJobStep {
|
|
|
2
2
|
title: 'verify-credentials' | 'retrieve-accounts' | 'retrieve-transactions';
|
|
3
3
|
status: 'pending' | 'in-progress' | 'failed' | 'success';
|
|
4
4
|
isVerifyCredentials(): boolean;
|
|
5
|
+
isRetrieveAccounts(): boolean;
|
|
5
6
|
isInProgress(): boolean;
|
|
6
7
|
isSuccess(): boolean;
|
|
8
|
+
isFailed(): boolean;
|
|
7
9
|
}
|
|
@@ -9,63 +9,64 @@ export declare enum AppEventTypeEnum {
|
|
|
9
9
|
BASIQ_JOB_CREATED = 7,
|
|
10
10
|
BASIQ_LOGIN_SUCCESS = 8,
|
|
11
11
|
BASIQ_LOGIN_FAILED = 9,
|
|
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
|
-
|
|
12
|
+
BASIQ_ACCOUNTS_RETRIEVED = 10,
|
|
13
|
+
CLIENT_INVITE_ACCEPTED = 11,
|
|
14
|
+
CLIENT_OPEN_CHAT = 12,
|
|
15
|
+
CLIENT_TRANSFER_TO_OTHER_EMPLOYEE = 13,
|
|
16
|
+
CURRENT_USER_GET_FAILED = 14,
|
|
17
|
+
DEPRECIATION_DELETED = 15,
|
|
18
|
+
DEPRECIATIONS_CREATED = 16,
|
|
19
|
+
DEPRECIATION_UPDATED_WITH_RECEIPT = 17,
|
|
20
|
+
DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT = 18,
|
|
21
|
+
DEPRECIATION_RECEIPT_CREATED = 19,
|
|
22
|
+
DEPRECIATION_RECEIPT_DELETED = 20,
|
|
23
|
+
INCOME_SOURCES_CREATED = 21,
|
|
24
|
+
INCOME_SOURCES_UPDATED = 22,
|
|
25
|
+
INCOME_SOURCES_FORECASTS_CREATED = 23,
|
|
26
|
+
INCOME_SOURCES_FORECASTS_UPDATED = 24,
|
|
27
|
+
LOAN_UPDATED = 25,
|
|
28
|
+
LOAN_PAYOUT_UPDATED = 26,
|
|
29
|
+
MESSAGE_CREATED = 27,
|
|
30
|
+
MESSAGE_FILE_CREATED = 28,
|
|
31
|
+
MESSAGE_FILE_DELETED = 29,
|
|
32
|
+
NOTIFICATION_ADDED = 30,
|
|
33
|
+
PROPERTY_DEPRECIATION_CALCULATION_UPDATED = 31,
|
|
34
|
+
PROPERTY_UPDATED = 32,
|
|
35
|
+
PROPERTY_UPDATED_WITH_DOCUMENT = 33,
|
|
36
|
+
PROPERTY_DOCUMENT_ADDED = 34,
|
|
37
|
+
PROPERTY_MOVEMENT_CREATED = 35,
|
|
38
|
+
PROPERTY_MOVEMENT_UPDATED = 36,
|
|
39
|
+
PROPERTY_MOVEMENT_DELETED = 37,
|
|
40
|
+
PROPERTY_SHARE_UPDATED = 38,
|
|
41
|
+
PROPERTY_SALE_ADDED = 39,
|
|
42
|
+
PROPERTY_SALE_DELETED = 40,
|
|
43
|
+
PROPERTY_SUBSCRIPTION_ADDED = 41,
|
|
44
|
+
PROPERTY_SUBSCRIPTION_DELETED = 42,
|
|
45
|
+
PROPERTY_VALUATION_DOCUMENT_CREATED = 43,
|
|
46
|
+
SERVICE_SUBSCRIPTION_UPDATED = 44,
|
|
47
|
+
SOLE_BUSINESS_CREATED = 45,
|
|
48
|
+
SOLE_DEPRECIATION_METHOD_UPDATED = 46,
|
|
49
|
+
SOLE_DETAILS_CREATED = 47,
|
|
50
|
+
SOLE_DETAILS_UPDATED = 48,
|
|
51
|
+
SOLE_INVOICE_PUBLISHED = 49,
|
|
52
|
+
TAX_REVIEW_UPDATED = 50,
|
|
53
|
+
TRANSACTION_ALLOCATION_CREATED = 51,
|
|
54
|
+
TRANSACTION_ALLOCATION_DELETED = 52,
|
|
55
|
+
TRANSACTION_CREATED = 53,
|
|
56
|
+
TRANSACTION_DELETED = 54,
|
|
57
|
+
TRANSACTION_UPDATED = 55,
|
|
58
|
+
TRANSACTION_UPDATED_WITH_RECEIPT = 56,
|
|
59
|
+
TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 57,
|
|
60
|
+
TRANSACTION_RECEIPT_CREATED = 58,
|
|
61
|
+
TRANSACTION_RECEIPT_DELETED = 59,
|
|
62
|
+
TRANSACTIONS_CREATED = 60,
|
|
63
|
+
USER_UPDATED = 61,
|
|
64
|
+
VEHICLE_CLAIM_UPDATED = 62,
|
|
65
|
+
VEHICLE_CLAIM_CREATED = 63,
|
|
66
|
+
VEHICLE_CLAIM_DETAILS_UPDATED = 64,
|
|
67
|
+
VEHICLE_CLAIM_DETAILS_CREATED = 65,
|
|
68
|
+
VEHICLE_LOGBOOK_CREATED = 66,
|
|
69
|
+
VEHICLE_LOGBOOK_UPDATED = 67,
|
|
70
|
+
VEHICLE_LOGBOOK_DELETED = 68,
|
|
71
|
+
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 69
|
|
71
72
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SoleInvoiceItem as SoleInvoiceItemBase } from '../../db/Models/sole/sole-invoice-item';
|
|
2
2
|
import { SoleInvoice } from './sole-invoice';
|
|
3
|
-
import { ChartAccounts } from '../chart-accounts
|
|
4
|
-
import { Transaction } from '../transaction
|
|
3
|
+
import { ChartAccounts } from '../chart-accounts';
|
|
4
|
+
import { Transaction } from '../transaction';
|
|
5
5
|
export declare class SoleInvoiceItem extends SoleInvoiceItemBase {
|
|
6
6
|
invoice: SoleInvoice;
|
|
7
7
|
chartAccounts: ChartAccounts;
|
|
@@ -56,6 +56,10 @@ export declare class AccountSetupService {
|
|
|
56
56
|
* Show logbook item when user has at least 1 vehicle transaction
|
|
57
57
|
*/
|
|
58
58
|
private getLogbookItem;
|
|
59
|
+
/**
|
|
60
|
+
* Show bank feeds item when user has only holding tank
|
|
61
|
+
*/
|
|
62
|
+
private getBankFeedsItem;
|
|
59
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccountSetupService, never>;
|
|
60
64
|
static ɵprov: i0.ɵɵInjectableDeclaration<AccountSetupService>;
|
|
61
65
|
}
|
|
@@ -33,10 +33,6 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
|
|
|
33
33
|
* Update cache when basiq accounts were retrieved or login to basic was failed to get actual connections statuses
|
|
34
34
|
*/
|
|
35
35
|
listenNotifications(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Create/reconnect bank connection when user successfully logged in to basiq
|
|
38
|
-
*/
|
|
39
|
-
listenBasiqLogin(): void;
|
|
40
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
|
|
41
37
|
static ɵprov: i0.ɵɵInjectableDeclaration<BankConnectionService>;
|
|
42
38
|
}
|
|
@@ -5,7 +5,8 @@ import { HttpClient } from '@angular/common/http';
|
|
|
5
5
|
import { EventDispatcherService } from '../../../event';
|
|
6
6
|
import { BankConnectionService } from '../bank-connection';
|
|
7
7
|
import { BankAccountCollection } from '../../../../collections';
|
|
8
|
-
import { BankAccount,
|
|
8
|
+
import { BankAccount, BasiqJobResponse } from '../../../../models';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* basiq is a middleman between bank and user
|
|
@@ -17,10 +18,24 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
|
|
|
17
18
|
protected environment: any;
|
|
18
19
|
private bankConnectionService;
|
|
19
20
|
static basiqApiUrl: string;
|
|
21
|
+
static basiqConsentUrl: string;
|
|
20
22
|
/**
|
|
21
23
|
* Basiq does not provide a hook, so we have to check job status manually every x seconds
|
|
22
24
|
*/
|
|
23
|
-
static
|
|
25
|
+
static retrieveAccountsCheckInterval: number;
|
|
26
|
+
/**
|
|
27
|
+
* How long we will wait accounts retrieving, break after timeout if not retireved
|
|
28
|
+
*/
|
|
29
|
+
static retrieveAccountsTimeout: number;
|
|
30
|
+
/**
|
|
31
|
+
* Flag shows retrieve accounts time is out
|
|
32
|
+
*/
|
|
33
|
+
isRetrieveAccountsTimeOut: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Timeout for retrieve accounts status checking.
|
|
36
|
+
* Stop watch retrieve accounts status when time is out.
|
|
37
|
+
*/
|
|
38
|
+
retrieveAccountsTimer: any;
|
|
24
39
|
protected endpointUri: string;
|
|
25
40
|
collectionClass: typeof BankAccountCollection;
|
|
26
41
|
modelClass: typeof BankAccount;
|
|
@@ -31,30 +46,30 @@ export declare class BasiqService extends RestService<BankAccountBase, BankAccou
|
|
|
31
46
|
*/
|
|
32
47
|
listenEvents(): void;
|
|
33
48
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
49
|
+
* Open basiq consent ui to allow user to log in to bank
|
|
50
|
+
* @param token User's basiq token
|
|
51
|
+
* @param bankId External id of selected bank
|
|
52
|
+
* @param action 'connect' - for the 1st connection, 'update' - for reconnect, null - for new not 1st connection
|
|
37
53
|
*/
|
|
38
|
-
|
|
54
|
+
redirectToBasiqConsent(token: string, bankId: string, action?: null | 'connect' | 'update'): void;
|
|
39
55
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* Because of Basiq login may take a long time (10-20sec) we have to check job status until it seccess or failed.
|
|
44
|
-
*
|
|
45
|
-
* @TODO Alex (TT-2431): check logic and try to remove subscribe, use pipes instead
|
|
46
|
-
* @TODO Alex (TT-2431): implement some limit and handle (message or something) if basiq stuck
|
|
47
|
-
* @TODO Alex (TT-2431): check logic and handle case when user cancelled loading
|
|
48
|
-
*/
|
|
49
|
-
private checkLoginStatus;
|
|
56
|
+
* Get Basiq job result
|
|
57
|
+
*/
|
|
58
|
+
retrieveJob(jobId: string): Observable<BasiqJobResponse>;
|
|
50
59
|
/**
|
|
51
|
-
*
|
|
60
|
+
* Recoursive method, watch basiq job retrieve accounts status
|
|
61
|
+
* @param jobId id of basiq job to check
|
|
62
|
+
* @returns observable boolean. True - accounts retrieved, false - accounts not retrieved (time is out)
|
|
52
63
|
*/
|
|
53
|
-
|
|
64
|
+
watchBankAccountsRetrieved(jobId: string): Observable<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Ask backend to update user's basiq consent flag
|
|
67
|
+
*/
|
|
68
|
+
updateBasiqConsentAgreement(): void;
|
|
54
69
|
/**
|
|
55
|
-
*
|
|
70
|
+
* listen to notifications to update basiq accounts list
|
|
56
71
|
*/
|
|
57
|
-
private
|
|
72
|
+
private listenNotifications;
|
|
58
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<BasiqService, never>;
|
|
59
74
|
static ɵprov: i0.ɵɵInjectableDeclaration<BasiqService>;
|
|
60
75
|
}
|
|
@@ -36,6 +36,10 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
|
36
36
|
* @TODO Alex: add and handle enabled methods too
|
|
37
37
|
*/
|
|
38
38
|
disabledMethods: RestMethod[];
|
|
39
|
+
/**
|
|
40
|
+
* Flag show data is fetching from backend
|
|
41
|
+
*/
|
|
42
|
+
isPending: boolean;
|
|
39
43
|
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
|
|
40
44
|
protected get apiUrl(): string;
|
|
41
45
|
get(): Observable<CollectionModel>;
|
|
@@ -79,6 +79,10 @@ export declare class UserService implements IEventListener {
|
|
|
79
79
|
* Update cache when user's service subscription is updated
|
|
80
80
|
*/
|
|
81
81
|
private listenServiceSubscriptionUpdated;
|
|
82
|
+
/**
|
|
83
|
+
* Update cache when user's basiq consent flag is updated
|
|
84
|
+
*/
|
|
85
|
+
private listenBasiqConsentUpdated;
|
|
82
86
|
/**
|
|
83
87
|
* @TODO remove when the class refactored on RestService
|
|
84
88
|
* Subscribe to http events and run callback.
|