taxtank-core 0.30.139 → 0.30.142
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/db/Models/transaction/transaction-base.mjs +3 -2
- package/esm2020/lib/db/Models/user/user.mjs +3 -3
- package/esm2020/lib/forms/address/address.form.mjs +2 -2
- package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +5 -5
- package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
- package/esm2020/lib/interceptors/financial-year-interceptor.mjs +4 -4
- 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/event/app-event-type.enum.mjs +9 -10
- package/esm2020/lib/services/account-setup/account-setup.service.mjs +7 -7
- 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 +6 -22
- 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 +10 -4
- 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 +9 -9
- package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +5 -5
- package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +5 -5
- package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
- package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +5 -5
- package/esm2020/lib/services/http/budget/budget.service.mjs +3 -3
- 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 +10 -10
- 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 +5 -5
- package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +6 -6
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
- package/esm2020/lib/services/http/loan/loan.service.mjs +9 -9
- package/esm2020/lib/services/http/property/borrowing-report/borrowing-report.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 +8 -9
- package/esm2020/lib/services/http/property/property.service.mjs +7 -7
- package/esm2020/lib/services/http/receipt/receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/rest/rest-old.service.mjs +19 -15
- package/esm2020/lib/services/http/rest/rest.service.mjs +32 -31
- 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 +5 -5
- 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 +6 -7
- package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +7 -5
- 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 +6 -6
- 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 +7 -7
- package/esm2020/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.mjs +3 -3
- package/esm2020/lib/services/http/transaction/transaction.service.mjs +10 -23
- package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
- package/esm2020/lib/services/http/user/financial-year/financial-year.service.mjs +29 -0
- package/esm2020/lib/services/http/user/index.mjs +2 -1
- package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +4 -4
- 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 +34 -137
- 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 +5 -5
- 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/chart-accounts/chart-accounts-value.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/json/tax-return/tax-return-item.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/esm2020/lib/validators/address-corelogic.validator.mjs +5 -1
- package/fesm2015/taxtank-core.mjs +575 -658
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +572 -657
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/db/Models/user/user.d.ts +2 -2
- package/lib/models/event/app-event-type.enum.d.ts +8 -9
- package/lib/services/auth/auth.service.d.ts +3 -14
- package/lib/services/data.service.d.ts +4 -0
- package/lib/services/http/rest/rest-old.service.d.ts +2 -1
- package/lib/services/http/rest/rest.service.d.ts +10 -10
- package/lib/services/http/sole/sole-details/sole-details.service.d.ts +1 -1
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +2 -0
- package/lib/services/http/user/financial-year/financial-year.service.d.ts +11 -0
- package/lib/services/http/user/index.d.ts +1 -0
- package/lib/services/http/user/user.service.d.ts +17 -68
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { CommonModule, DatePipe } from '@angular/common';
|
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
6
|
import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
7
7
|
import { map, mergeMap, filter, first as first$1, catchError, skip, take, switchMap, finalize, debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
|
8
|
-
import { ReplaySubject,
|
|
8
|
+
import { ReplaySubject, BehaviorSubject, Subject, Observable, throwError, combineLatest, forkJoin, of, from, merge as merge$1 } from 'rxjs';
|
|
9
9
|
import { plainToClass, Type, Transform, Exclude, Expose, classToPlain } from 'class-transformer';
|
|
10
10
|
import get from 'lodash/get';
|
|
11
11
|
import { __decorate, __awaiter } from 'tslib';
|
|
@@ -72,9 +72,9 @@ class CorelogicService {
|
|
|
72
72
|
.pipe(map((response) => response.suggestions.map((item) => plainToClass(CorelogicSuggestion, item))));
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
76
|
-
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
75
|
+
CorelogicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
76
|
+
CorelogicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, providedIn: 'root' });
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicService, decorators: [{
|
|
78
78
|
type: Injectable,
|
|
79
79
|
args: [{
|
|
80
80
|
providedIn: 'root'
|
|
@@ -114,9 +114,9 @@ class CorelogicInterceptor {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
118
|
-
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
117
|
+
CorelogicInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor, deps: [{ token: CorelogicService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
118
|
+
CorelogicInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor });
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CorelogicInterceptor, decorators: [{
|
|
120
120
|
type: Injectable
|
|
121
121
|
}], ctorParameters: function () {
|
|
122
122
|
return [{ type: CorelogicService }, { type: undefined, decorators: [{
|
|
@@ -155,9 +155,9 @@ class FinancialYearInterceptor {
|
|
|
155
155
|
return next.handle(clonedReq);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
159
|
-
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
158
|
+
FinancialYearInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
159
|
+
FinancialYearInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor });
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearInterceptor, decorators: [{
|
|
161
161
|
type: Injectable
|
|
162
162
|
}], ctorParameters: function () {
|
|
163
163
|
return [{ type: undefined, decorators: [{
|
|
@@ -212,9 +212,9 @@ class AddressService {
|
|
|
212
212
|
return this.countriesSubject.asObservable();
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
216
|
-
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
215
|
+
AddressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
216
|
+
AddressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, providedIn: 'root' });
|
|
217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddressService, decorators: [{
|
|
218
218
|
type: Injectable,
|
|
219
219
|
args: [{
|
|
220
220
|
providedIn: 'root'
|
|
@@ -434,7 +434,8 @@ class TransactionBase extends ObservableModel {
|
|
|
434
434
|
/**
|
|
435
435
|
* @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
|
|
436
436
|
*/
|
|
437
|
-
set tankType(tankType) {
|
|
437
|
+
set tankType(tankType) {
|
|
438
|
+
}
|
|
438
439
|
/**
|
|
439
440
|
* Check if current tank is Property
|
|
440
441
|
*/
|
|
@@ -777,7 +778,7 @@ let UserEventType$1 = class UserEventType extends AbstractModel {
|
|
|
777
778
|
class UserEvent extends AbstractModel {
|
|
778
779
|
}
|
|
779
780
|
|
|
780
|
-
let User$1 = class User extends
|
|
781
|
+
let User$1 = class User extends ObservableModel {
|
|
781
782
|
};
|
|
782
783
|
|
|
783
784
|
let VehicleClaimDetails$1 = class VehicleClaimDetails extends AbstractModel {
|
|
@@ -9799,15 +9800,14 @@ var AppEventTypeEnum;
|
|
|
9799
9800
|
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 58] = "TRANSACTION_RECEIPT_CREATED";
|
|
9800
9801
|
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 59] = "TRANSACTION_RECEIPT_DELETED";
|
|
9801
9802
|
AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 60] = "TRANSACTIONS_CREATED";
|
|
9802
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9803
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9804
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9805
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9806
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9807
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9808
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9809
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
9810
|
-
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 69] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
|
9803
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 61] = "VEHICLE_CLAIM_UPDATED";
|
|
9804
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 62] = "VEHICLE_CLAIM_CREATED";
|
|
9805
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 63] = "VEHICLE_CLAIM_DETAILS_UPDATED";
|
|
9806
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 64] = "VEHICLE_CLAIM_DETAILS_CREATED";
|
|
9807
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 65] = "VEHICLE_LOGBOOK_CREATED";
|
|
9808
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 66] = "VEHICLE_LOGBOOK_UPDATED";
|
|
9809
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 67] = "VEHICLE_LOGBOOK_DELETED";
|
|
9810
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 68] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
|
9811
9811
|
})(AppEventTypeEnum || (AppEventTypeEnum = {}));
|
|
9812
9812
|
|
|
9813
9813
|
/**
|
|
@@ -10252,6 +10252,13 @@ class DataService {
|
|
|
10252
10252
|
getCache() {
|
|
10253
10253
|
return clone(this.cache);
|
|
10254
10254
|
}
|
|
10255
|
+
/**
|
|
10256
|
+
* never return cache directly to prevent update
|
|
10257
|
+
*/
|
|
10258
|
+
getCacheFirst() {
|
|
10259
|
+
var _a;
|
|
10260
|
+
return clone((_a = this.cache) === null || _a === void 0 ? void 0 : _a.first);
|
|
10261
|
+
}
|
|
10255
10262
|
/**
|
|
10256
10263
|
* @TODO vik any[] because of problems with base models extending abstractModel
|
|
10257
10264
|
*/
|
|
@@ -10259,9 +10266,9 @@ class DataService {
|
|
|
10259
10266
|
this.cache = this.createCollectionInstance(this.collectionClass, data.map((item) => this.createModelInstance(item)));
|
|
10260
10267
|
}
|
|
10261
10268
|
}
|
|
10262
|
-
DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10263
|
-
DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10269
|
+
DataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10270
|
+
DataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, providedIn: 'root' });
|
|
10271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DataService, decorators: [{
|
|
10265
10272
|
type: Injectable,
|
|
10266
10273
|
args: [{
|
|
10267
10274
|
providedIn: 'root'
|
|
@@ -10296,46 +10303,9 @@ class JwtService extends JwtHelperService {
|
|
|
10296
10303
|
return this.getUser().id === userId;
|
|
10297
10304
|
}
|
|
10298
10305
|
}
|
|
10299
|
-
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10300
|
-
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10302
|
-
type: Injectable,
|
|
10303
|
-
args: [{
|
|
10304
|
-
providedIn: 'root'
|
|
10305
|
-
}]
|
|
10306
|
-
}] });
|
|
10307
|
-
|
|
10308
|
-
/**
|
|
10309
|
-
* @TODO Alex (TT-1777): replace old logic with the new when all services ready
|
|
10310
|
-
* @TODO Alex (TT-1777): rename old logic and keep it for custom events
|
|
10311
|
-
*/
|
|
10312
|
-
class EventDispatcherService {
|
|
10313
|
-
constructor() {
|
|
10314
|
-
this.eventSubject = new Subject();
|
|
10315
|
-
this.eventSubject2 = new Subject();
|
|
10316
|
-
}
|
|
10317
|
-
/**
|
|
10318
|
-
* subscription to specific event type
|
|
10319
|
-
*/
|
|
10320
|
-
on(eventType) {
|
|
10321
|
-
return this.eventSubject.pipe(filter((event) => [].concat(eventType).includes(event.type)), map((event) => event.payload));
|
|
10322
|
-
}
|
|
10323
|
-
on2(...names) {
|
|
10324
|
-
return this.eventSubject2.pipe(filter((event) => [].concat(names).includes(event.name)), map((event) => event.items));
|
|
10325
|
-
}
|
|
10326
|
-
/**
|
|
10327
|
-
* deliver new event
|
|
10328
|
-
*/
|
|
10329
|
-
dispatch(event) {
|
|
10330
|
-
this.eventSubject.next(event);
|
|
10331
|
-
}
|
|
10332
|
-
dispatch2(event) {
|
|
10333
|
-
this.eventSubject2.next(event);
|
|
10334
|
-
}
|
|
10335
|
-
}
|
|
10336
|
-
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10337
|
-
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
|
|
10338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: EventDispatcherService, decorators: [{
|
|
10306
|
+
JwtService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
10307
|
+
JwtService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, providedIn: 'root' });
|
|
10308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtService, decorators: [{
|
|
10339
10309
|
type: Injectable,
|
|
10340
10310
|
args: [{
|
|
10341
10311
|
providedIn: 'root'
|
|
@@ -10343,26 +10313,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
10343
10313
|
}] });
|
|
10344
10314
|
|
|
10345
10315
|
class AuthService {
|
|
10346
|
-
constructor(http, jwtService,
|
|
10316
|
+
constructor(http, jwtService, environment) {
|
|
10347
10317
|
this.http = http;
|
|
10348
10318
|
this.jwtService = jwtService;
|
|
10349
|
-
this.eventDispatcherService = eventDispatcherService;
|
|
10350
10319
|
this.environment = environment;
|
|
10351
|
-
this.listenEvents();
|
|
10352
10320
|
this.isLoggedInSubject = new BehaviorSubject(!this.jwtService.isTokenExpired());
|
|
10353
10321
|
}
|
|
10354
|
-
/**
|
|
10355
|
-
* Listen to Event Dispatcher events
|
|
10356
|
-
*/
|
|
10357
|
-
listenEvents() {
|
|
10358
|
-
this.listenUserGetFailed();
|
|
10359
|
-
}
|
|
10360
|
-
/**
|
|
10361
|
-
* User logout if failed current user get
|
|
10362
|
-
*/
|
|
10363
|
-
listenUserGetFailed() {
|
|
10364
|
-
this.eventDispatcherService.on(AppEventTypeEnum.CURRENT_USER_GET_FAILED).subscribe(() => this.logoutFront());
|
|
10365
|
-
}
|
|
10366
10322
|
setAuth(response) {
|
|
10367
10323
|
this.jwtService.saveTokens(response);
|
|
10368
10324
|
this.isLoggedInSubject.next(true);
|
|
@@ -10384,20 +10340,57 @@ class AuthService {
|
|
|
10384
10340
|
location.replace(url);
|
|
10385
10341
|
}
|
|
10386
10342
|
}
|
|
10387
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10388
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10343
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10344
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
10345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AuthService, decorators: [{
|
|
10390
10346
|
type: Injectable,
|
|
10391
10347
|
args: [{
|
|
10392
10348
|
providedIn: 'root'
|
|
10393
10349
|
}]
|
|
10394
10350
|
}], ctorParameters: function () {
|
|
10395
|
-
return [{ type: i1.HttpClient }, { type: JwtService }, { type:
|
|
10351
|
+
return [{ type: i1.HttpClient }, { type: JwtService }, { type: undefined, decorators: [{
|
|
10396
10352
|
type: Inject,
|
|
10397
10353
|
args: ['environment']
|
|
10398
10354
|
}] }];
|
|
10399
10355
|
} });
|
|
10400
10356
|
|
|
10357
|
+
/**
|
|
10358
|
+
* @TODO Alex (TT-1777): replace old logic with the new when all services ready
|
|
10359
|
+
* @TODO Alex (TT-1777): rename old logic and keep it for custom events
|
|
10360
|
+
*/
|
|
10361
|
+
class EventDispatcherService {
|
|
10362
|
+
constructor() {
|
|
10363
|
+
this.eventSubject = new Subject();
|
|
10364
|
+
this.eventSubject2 = new Subject();
|
|
10365
|
+
}
|
|
10366
|
+
/**
|
|
10367
|
+
* subscription to specific event type
|
|
10368
|
+
*/
|
|
10369
|
+
on(eventType) {
|
|
10370
|
+
return this.eventSubject.pipe(filter((event) => [].concat(eventType).includes(event.type)), map((event) => event.payload));
|
|
10371
|
+
}
|
|
10372
|
+
on2(...names) {
|
|
10373
|
+
return this.eventSubject2.pipe(filter((event) => [].concat(names).includes(event.name)), map((event) => event.items));
|
|
10374
|
+
}
|
|
10375
|
+
/**
|
|
10376
|
+
* deliver new event
|
|
10377
|
+
*/
|
|
10378
|
+
dispatch(event) {
|
|
10379
|
+
this.eventSubject.next(event);
|
|
10380
|
+
}
|
|
10381
|
+
dispatch2(event) {
|
|
10382
|
+
this.eventSubject2.next(event);
|
|
10383
|
+
}
|
|
10384
|
+
}
|
|
10385
|
+
EventDispatcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10386
|
+
EventDispatcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, providedIn: 'root' });
|
|
10387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EventDispatcherService, decorators: [{
|
|
10388
|
+
type: Injectable,
|
|
10389
|
+
args: [{
|
|
10390
|
+
providedIn: 'root'
|
|
10391
|
+
}]
|
|
10392
|
+
}] });
|
|
10393
|
+
|
|
10401
10394
|
/**
|
|
10402
10395
|
* server sent events service
|
|
10403
10396
|
* https://symfony.com/doc/current/mercure.html
|
|
@@ -10428,9 +10421,9 @@ class SseService {
|
|
|
10428
10421
|
.pipe(map((messageEvent) => JSON.parse(messageEvent.data)));
|
|
10429
10422
|
}
|
|
10430
10423
|
}
|
|
10431
|
-
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10432
|
-
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10424
|
+
SseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, deps: [{ token: i0.NgZone }, { token: JwtService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10425
|
+
SseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, providedIn: 'root' });
|
|
10426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SseService, decorators: [{
|
|
10434
10427
|
type: Injectable,
|
|
10435
10428
|
args: [{
|
|
10436
10429
|
providedIn: 'root'
|
|
@@ -10473,16 +10466,39 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10473
10466
|
get apiUrl() {
|
|
10474
10467
|
return `${this.environment.apiV2}/${this.endpointUri}`;
|
|
10475
10468
|
}
|
|
10476
|
-
|
|
10469
|
+
setCache(data, next = false) {
|
|
10470
|
+
super.setCache(data);
|
|
10471
|
+
if (next) {
|
|
10472
|
+
this.cacheSubject.next(this.cache);
|
|
10473
|
+
}
|
|
10474
|
+
}
|
|
10475
|
+
/**
|
|
10476
|
+
* Refresh cache with actual backend data
|
|
10477
|
+
*/
|
|
10478
|
+
refreshCache() {
|
|
10479
|
+
this.cache = undefined;
|
|
10480
|
+
this.get();
|
|
10481
|
+
}
|
|
10482
|
+
/**
|
|
10483
|
+
* Get data from backend and fill the cache
|
|
10484
|
+
*/
|
|
10485
|
+
fetch(path = this.apiUrl) {
|
|
10477
10486
|
this.handleAccessError('get');
|
|
10487
|
+
// Set cache as empty collection to avoid multiple requests before cache filled
|
|
10488
|
+
this.setCache([]);
|
|
10489
|
+
return this.http.get(path)
|
|
10490
|
+
.pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
|
|
10491
|
+
this.setCache(response, true);
|
|
10492
|
+
return this.cache;
|
|
10493
|
+
}));
|
|
10494
|
+
}
|
|
10495
|
+
get() {
|
|
10478
10496
|
if (!this.cache) {
|
|
10479
|
-
|
|
10480
|
-
this.setCache([], false);
|
|
10481
|
-
this.jwtService.getUser().hasRoles(this.roles) ? this.resetCache() : this.setCache([]);
|
|
10497
|
+
this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
|
|
10482
10498
|
}
|
|
10483
10499
|
return this.cacheSubject.asObservable();
|
|
10484
10500
|
}
|
|
10485
|
-
|
|
10501
|
+
getFirst() {
|
|
10486
10502
|
this.handleAccessError('get');
|
|
10487
10503
|
return this.get().pipe(map((collection) => collection.first));
|
|
10488
10504
|
}
|
|
@@ -10557,22 +10573,6 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10557
10573
|
this.handleResponse(models, 'delete');
|
|
10558
10574
|
}));
|
|
10559
10575
|
}
|
|
10560
|
-
/**
|
|
10561
|
-
* Refresh cache with actual backend data
|
|
10562
|
-
*/
|
|
10563
|
-
resetCache() {
|
|
10564
|
-
this.fetch().pipe(first$1()).subscribe();
|
|
10565
|
-
}
|
|
10566
|
-
/**
|
|
10567
|
-
* Get data from backend and fill the cache
|
|
10568
|
-
*/
|
|
10569
|
-
fetch() {
|
|
10570
|
-
return this.http.get(this.apiUrl)
|
|
10571
|
-
.pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
|
|
10572
|
-
this.setCache(response);
|
|
10573
|
-
return this.cache;
|
|
10574
|
-
}));
|
|
10575
|
-
}
|
|
10576
10576
|
/**
|
|
10577
10577
|
* Handle response data - update cache and dispatch event if it is needed
|
|
10578
10578
|
*/
|
|
@@ -10640,21 +10640,15 @@ let RestService$1 = class RestService extends DataService {
|
|
|
10640
10640
|
});
|
|
10641
10641
|
});
|
|
10642
10642
|
}
|
|
10643
|
-
setCache(data, next = true) {
|
|
10644
|
-
super.setCache(data);
|
|
10645
|
-
if (next) {
|
|
10646
|
-
this.cacheSubject.next(this.cache);
|
|
10647
|
-
}
|
|
10648
|
-
}
|
|
10649
10643
|
/**
|
|
10650
10644
|
* // @TODO Alex remove
|
|
10651
10645
|
* Method that call all listeners. Empty by default. Should be redefined by child services if required
|
|
10652
10646
|
*/
|
|
10653
10647
|
listenEvents() { }
|
|
10654
10648
|
};
|
|
10655
|
-
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10656
|
-
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10649
|
+
RestService$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10650
|
+
RestService$1.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, providedIn: 'root' });
|
|
10651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService$1, decorators: [{
|
|
10658
10652
|
type: Injectable,
|
|
10659
10653
|
args: [{
|
|
10660
10654
|
providedIn: 'root'
|
|
@@ -10687,9 +10681,9 @@ class BankAccountService extends RestService$1 {
|
|
|
10687
10681
|
*/
|
|
10688
10682
|
listenEvents() {
|
|
10689
10683
|
this.listenToEventDispatcherChanges();
|
|
10690
|
-
this.listenCSE(BankTransaction, ['post', 'delete'], this.
|
|
10691
|
-
this.listenCSE(PropertyShare, ['put'], this.
|
|
10692
|
-
this.listenCSE(BankConnection, ['post'], this.
|
|
10684
|
+
this.listenCSE(BankTransaction, ['post', 'delete'], this.refreshCache);
|
|
10685
|
+
this.listenCSE(PropertyShare, ['put'], this.refreshCache);
|
|
10686
|
+
this.listenCSE(BankConnection, ['post'], this.refreshCache);
|
|
10693
10687
|
}
|
|
10694
10688
|
/**
|
|
10695
10689
|
* Update bank account current balance
|
|
@@ -10711,7 +10705,7 @@ class BankAccountService extends RestService$1 {
|
|
|
10711
10705
|
AppEventTypeEnum.LOAN_PAYOUT_UPDATED,
|
|
10712
10706
|
AppEventTypeEnum.BANK_TRANSACTIONS_ADDED
|
|
10713
10707
|
]).subscribe(() => {
|
|
10714
|
-
this.
|
|
10708
|
+
this.refreshCache();
|
|
10715
10709
|
});
|
|
10716
10710
|
}
|
|
10717
10711
|
/**
|
|
@@ -10720,13 +10714,13 @@ class BankAccountService extends RestService$1 {
|
|
|
10720
10714
|
*/
|
|
10721
10715
|
listenConnections() {
|
|
10722
10716
|
this.sseService.on(`bankConnections`).subscribe((connection) => {
|
|
10723
|
-
this.
|
|
10717
|
+
this.refreshCache();
|
|
10724
10718
|
});
|
|
10725
10719
|
}
|
|
10726
10720
|
}
|
|
10727
|
-
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10728
|
-
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10721
|
+
BankAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10722
|
+
BankAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, providedIn: 'root' });
|
|
10723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountService, decorators: [{
|
|
10730
10724
|
type: Injectable,
|
|
10731
10725
|
args: [{
|
|
10732
10726
|
providedIn: 'root'
|
|
@@ -10823,9 +10817,9 @@ class ToastService {
|
|
|
10823
10817
|
}));
|
|
10824
10818
|
}
|
|
10825
10819
|
}
|
|
10826
|
-
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10827
|
-
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10820
|
+
ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10821
|
+
ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, providedIn: 'root' });
|
|
10822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ToastService, decorators: [{
|
|
10829
10823
|
type: Injectable,
|
|
10830
10824
|
args: [{
|
|
10831
10825
|
providedIn: 'root'
|
|
@@ -10899,13 +10893,13 @@ class BankConnectionService extends RestService$1 {
|
|
|
10899
10893
|
*/
|
|
10900
10894
|
listenBankConnections() {
|
|
10901
10895
|
this.sseService.on(`bankConnections`).subscribe((bankConnection) => {
|
|
10902
|
-
this.
|
|
10896
|
+
this.refreshCache();
|
|
10903
10897
|
});
|
|
10904
10898
|
}
|
|
10905
10899
|
}
|
|
10906
|
-
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
10907
|
-
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
10908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
10900
|
+
BankConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10901
|
+
BankConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, providedIn: 'root' });
|
|
10902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankConnectionService, decorators: [{
|
|
10909
10903
|
type: Injectable,
|
|
10910
10904
|
args: [{
|
|
10911
10905
|
providedIn: 'root'
|
|
@@ -11015,14 +11009,14 @@ class BankTransactionService extends RestService$1 {
|
|
|
11015
11009
|
this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
|
|
11016
11010
|
if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.BASIQ_FIRST_IMPORT_COMPLETE) {
|
|
11017
11011
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.BANK_TRANSACTIONS_ADDED, []));
|
|
11018
|
-
this.
|
|
11012
|
+
this.refreshCache();
|
|
11019
11013
|
}
|
|
11020
11014
|
});
|
|
11021
11015
|
}
|
|
11022
11016
|
}
|
|
11023
|
-
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11024
|
-
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11017
|
+
BankTransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11018
|
+
BankTransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, providedIn: 'root' });
|
|
11019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionService, decorators: [{
|
|
11026
11020
|
type: Injectable,
|
|
11027
11021
|
args: [{
|
|
11028
11022
|
providedIn: 'root'
|
|
@@ -11054,9 +11048,9 @@ class BasiqTokenService extends RestService$1 {
|
|
|
11054
11048
|
return new BasiqToken(tokenResponse['access_token'], new Date(now + tokenResponse['expires_in'] * 1000));
|
|
11055
11049
|
}
|
|
11056
11050
|
}
|
|
11057
|
-
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11058
|
-
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11051
|
+
BasiqTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11052
|
+
BasiqTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, providedIn: 'root' });
|
|
11053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenService, decorators: [{
|
|
11060
11054
|
type: Injectable,
|
|
11061
11055
|
args: [{
|
|
11062
11056
|
providedIn: 'root'
|
|
@@ -11167,7 +11161,7 @@ class BasiqService extends RestService$1 {
|
|
|
11167
11161
|
listenNotifications() {
|
|
11168
11162
|
this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
|
|
11169
11163
|
if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.BASIQ_NEW_ACCOUNTS) {
|
|
11170
|
-
this.
|
|
11164
|
+
this.refreshCache();
|
|
11171
11165
|
}
|
|
11172
11166
|
});
|
|
11173
11167
|
}
|
|
@@ -11182,9 +11176,9 @@ BasiqService.retrieveAccountsCheckInterval = 3000;
|
|
|
11182
11176
|
* How long we will wait accounts retrieving, break after timeout if not retireved
|
|
11183
11177
|
*/
|
|
11184
11178
|
BasiqService.retrieveAccountsTimeout = 20000;
|
|
11185
|
-
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11186
|
-
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11179
|
+
BasiqService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: BankConnectionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11180
|
+
BasiqService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, providedIn: 'root' });
|
|
11181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqService, decorators: [{
|
|
11188
11182
|
type: Injectable,
|
|
11189
11183
|
args: [{
|
|
11190
11184
|
providedIn: 'root'
|
|
@@ -11216,9 +11210,9 @@ class BankService extends RestService$1 {
|
|
|
11216
11210
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
11217
11211
|
}
|
|
11218
11212
|
}
|
|
11219
|
-
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11220
|
-
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11213
|
+
BankService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11214
|
+
BankService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, providedIn: 'root' });
|
|
11215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankService, decorators: [{
|
|
11222
11216
|
type: Injectable,
|
|
11223
11217
|
args: [{
|
|
11224
11218
|
providedIn: 'root'
|
|
@@ -11235,9 +11229,9 @@ class BudgetService extends RestService$1 {
|
|
|
11235
11229
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
11236
11230
|
}
|
|
11237
11231
|
}
|
|
11238
|
-
BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11239
|
-
BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11232
|
+
BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11233
|
+
BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, providedIn: 'root' });
|
|
11234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BudgetService, decorators: [{
|
|
11241
11235
|
type: Injectable,
|
|
11242
11236
|
args: [{
|
|
11243
11237
|
providedIn: 'root'
|
|
@@ -11265,9 +11259,9 @@ class ChartAccountsDepreciationService extends RestService$1 {
|
|
|
11265
11259
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
11266
11260
|
}
|
|
11267
11261
|
}
|
|
11268
|
-
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11269
|
-
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11262
|
+
ChartAccountsDepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11263
|
+
ChartAccountsDepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, providedIn: 'root' });
|
|
11264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsDepreciationService, decorators: [{
|
|
11271
11265
|
type: Injectable,
|
|
11272
11266
|
args: [{
|
|
11273
11267
|
providedIn: 'root'
|
|
@@ -11307,9 +11301,9 @@ class ChartAccountsService extends RestService$1 {
|
|
|
11307
11301
|
}));
|
|
11308
11302
|
}
|
|
11309
11303
|
}
|
|
11310
|
-
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11311
|
-
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11304
|
+
ChartAccountsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11305
|
+
ChartAccountsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, providedIn: 'root' });
|
|
11306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsService, decorators: [{
|
|
11313
11307
|
type: Injectable,
|
|
11314
11308
|
args: [{
|
|
11315
11309
|
providedIn: 'root'
|
|
@@ -11378,9 +11372,9 @@ class ChatService extends RestService$1 {
|
|
|
11378
11372
|
});
|
|
11379
11373
|
}
|
|
11380
11374
|
}
|
|
11381
|
-
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11382
|
-
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11375
|
+
ChatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11376
|
+
ChatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, providedIn: 'root' });
|
|
11377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChatService, decorators: [{
|
|
11384
11378
|
type: Injectable,
|
|
11385
11379
|
args: [{
|
|
11386
11380
|
providedIn: 'root'
|
|
@@ -11439,9 +11433,9 @@ class MessageService extends RestService$1 {
|
|
|
11439
11433
|
});
|
|
11440
11434
|
}
|
|
11441
11435
|
}
|
|
11442
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11443
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11436
|
+
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11437
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
11438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageService, decorators: [{
|
|
11445
11439
|
type: Injectable,
|
|
11446
11440
|
args: [{
|
|
11447
11441
|
providedIn: 'root'
|
|
@@ -11513,9 +11507,9 @@ class MessageDocumentService extends RestService$1 {
|
|
|
11513
11507
|
return combineLatest(files.map((file) => this.add(chatId, file))).pipe(map((docsBase) => docsBase.map((docBase) => plainToClass(MessageDocument, docBase))));
|
|
11514
11508
|
}
|
|
11515
11509
|
}
|
|
11516
|
-
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11517
|
-
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11518
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11510
|
+
MessageDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11511
|
+
MessageDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, providedIn: 'root' });
|
|
11512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MessageDocumentService, decorators: [{
|
|
11519
11513
|
type: Injectable,
|
|
11520
11514
|
args: [{
|
|
11521
11515
|
providedIn: 'root'
|
|
@@ -11578,9 +11572,9 @@ class ReceiptService {
|
|
|
11578
11572
|
return plainToClass(this.modelClass, data);
|
|
11579
11573
|
}
|
|
11580
11574
|
}
|
|
11581
|
-
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11582
|
-
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11575
|
+
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11576
|
+
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, providedIn: 'root' });
|
|
11577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ReceiptService, decorators: [{
|
|
11584
11578
|
type: Injectable,
|
|
11585
11579
|
args: [{
|
|
11586
11580
|
providedIn: 'root'
|
|
@@ -11611,9 +11605,9 @@ class DepreciationReceiptService extends ReceiptService {
|
|
|
11611
11605
|
this.listenEvents();
|
|
11612
11606
|
}
|
|
11613
11607
|
}
|
|
11614
|
-
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11615
|
-
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11608
|
+
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11609
|
+
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
|
|
11610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationReceiptService, decorators: [{
|
|
11617
11611
|
type: Injectable,
|
|
11618
11612
|
args: [{
|
|
11619
11613
|
providedIn: 'root'
|
|
@@ -11701,7 +11695,7 @@ class DepreciationService extends RestService$1 {
|
|
|
11701
11695
|
* Listen to EventDispatcherService event related to updated bank loan
|
|
11702
11696
|
*/
|
|
11703
11697
|
listenToUpdatedLoan() {
|
|
11704
|
-
this.listenCSE(Loan, ['put'], this.
|
|
11698
|
+
this.listenCSE(Loan, ['put'], this.refreshCache);
|
|
11705
11699
|
}
|
|
11706
11700
|
/**
|
|
11707
11701
|
* Listen to EventDispatcherService event related to updated bank account
|
|
@@ -11709,7 +11703,7 @@ class DepreciationService extends RestService$1 {
|
|
|
11709
11703
|
listenToUpdatedBankAccount() {
|
|
11710
11704
|
this.listenCSE(BankAccount, ['put'], (bankAccounts) => {
|
|
11711
11705
|
if (bankAccounts.find(ba => ba.isPropertyTank())) {
|
|
11712
|
-
this.
|
|
11706
|
+
this.refreshCache();
|
|
11713
11707
|
}
|
|
11714
11708
|
});
|
|
11715
11709
|
}
|
|
@@ -11722,7 +11716,7 @@ class DepreciationService extends RestService$1 {
|
|
|
11722
11716
|
AppEventTypeEnum.VEHICLE_CLAIM_UPDATED,
|
|
11723
11717
|
AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED
|
|
11724
11718
|
]).subscribe(() => {
|
|
11725
|
-
this.
|
|
11719
|
+
this.refreshCache();
|
|
11726
11720
|
});
|
|
11727
11721
|
}
|
|
11728
11722
|
/**
|
|
@@ -11730,7 +11724,7 @@ class DepreciationService extends RestService$1 {
|
|
|
11730
11724
|
*/
|
|
11731
11725
|
listenSoleDepreciationMethodChanges() {
|
|
11732
11726
|
this.eventDispatcherService.on(AppEventTypeEnum.SOLE_DEPRECIATION_METHOD_UPDATED).subscribe(() => {
|
|
11733
|
-
this.
|
|
11727
|
+
this.refreshCache();
|
|
11734
11728
|
});
|
|
11735
11729
|
}
|
|
11736
11730
|
/**
|
|
@@ -11738,19 +11732,19 @@ class DepreciationService extends RestService$1 {
|
|
|
11738
11732
|
*/
|
|
11739
11733
|
listenPropertyDepreciationCalculationChanges() {
|
|
11740
11734
|
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_DEPRECIATION_CALCULATION_UPDATED).subscribe(() => {
|
|
11741
|
-
this.
|
|
11735
|
+
this.refreshCache();
|
|
11742
11736
|
});
|
|
11743
11737
|
}
|
|
11744
11738
|
listenTransactions() {
|
|
11745
11739
|
// @TODO reset cache only when required (transaction has depreciation)
|
|
11746
11740
|
this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_DELETED).subscribe(() => {
|
|
11747
|
-
this.
|
|
11741
|
+
this.refreshCache();
|
|
11748
11742
|
});
|
|
11749
11743
|
}
|
|
11750
11744
|
}
|
|
11751
|
-
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11752
|
-
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11745
|
+
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11746
|
+
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, providedIn: 'root' });
|
|
11747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationService, decorators: [{
|
|
11754
11748
|
type: Injectable,
|
|
11755
11749
|
args: [{
|
|
11756
11750
|
providedIn: 'root'
|
|
@@ -11802,9 +11796,9 @@ class DepreciationCapitalProjectService {
|
|
|
11802
11796
|
}));
|
|
11803
11797
|
}
|
|
11804
11798
|
}
|
|
11805
|
-
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
11806
|
-
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
11807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
11799
|
+
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11800
|
+
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
|
|
11801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
|
|
11808
11802
|
type: Injectable,
|
|
11809
11803
|
args: [{
|
|
11810
11804
|
providedIn: 'root'
|
|
@@ -11839,12 +11833,12 @@ class RestService {
|
|
|
11839
11833
|
* get list of base class instances directly from backend
|
|
11840
11834
|
*/
|
|
11841
11835
|
fetch() {
|
|
11836
|
+
this.setCache([]);
|
|
11842
11837
|
return this.http.get(`${this.environment.apiV2}/${this.url}`)
|
|
11843
11838
|
.pipe(map((response) => {
|
|
11844
11839
|
const items = (this.isHydra ? response['hydra:member'] : response)
|
|
11845
11840
|
.map((item) => this.createModelInstance(item));
|
|
11846
|
-
this.
|
|
11847
|
-
this.updateCache();
|
|
11841
|
+
this.setCache(items, true);
|
|
11848
11842
|
return items;
|
|
11849
11843
|
}));
|
|
11850
11844
|
}
|
|
@@ -11853,8 +11847,7 @@ class RestService {
|
|
|
11853
11847
|
*/
|
|
11854
11848
|
get() {
|
|
11855
11849
|
if (!this.cache) {
|
|
11856
|
-
this.
|
|
11857
|
-
this.jwtService.getUser().hasRoles(this.roles) ? this.resetCache() : this.updateCache();
|
|
11850
|
+
this.jwtService.getUser().hasRoles(this.roles) ? this.fetch().pipe(first$1()).subscribe() : this.setCache([], true);
|
|
11858
11851
|
}
|
|
11859
11852
|
return this.cacheSubject.asObservable();
|
|
11860
11853
|
}
|
|
@@ -11971,8 +11964,7 @@ class RestService {
|
|
|
11971
11964
|
delete(model) {
|
|
11972
11965
|
return this.http.delete(`${this.environment.apiV2}/${this.url}/${model['id']}`)
|
|
11973
11966
|
.pipe(map(() => {
|
|
11974
|
-
this.
|
|
11975
|
-
this.updateCache();
|
|
11967
|
+
this.setCache(this.cache.filter((item) => item['id'] !== model['id']), true);
|
|
11976
11968
|
if (this.messageDeleted) {
|
|
11977
11969
|
this.toastService.success(this.messageDeleted);
|
|
11978
11970
|
}
|
|
@@ -11986,8 +11978,7 @@ class RestService {
|
|
|
11986
11978
|
return this.http.post(`${this.environment.apiV2}/${this.url}/delete`, classToPlain(models))
|
|
11987
11979
|
.pipe(map(() => {
|
|
11988
11980
|
const ids = models.map((model) => model['id']);
|
|
11989
|
-
this.
|
|
11990
|
-
this.updateCache();
|
|
11981
|
+
this.setCache(this.cache.filter((item) => !ids.includes(item['id'])), true);
|
|
11991
11982
|
if (this.messageDeletedBatch) {
|
|
11992
11983
|
this.toastService.success(this.messageDeletedBatch);
|
|
11993
11984
|
}
|
|
@@ -11996,8 +11987,15 @@ class RestService {
|
|
|
11996
11987
|
/**
|
|
11997
11988
|
* clear service cache
|
|
11998
11989
|
*/
|
|
11999
|
-
|
|
12000
|
-
this.
|
|
11990
|
+
refreshCache() {
|
|
11991
|
+
this.setCache(undefined);
|
|
11992
|
+
this.get();
|
|
11993
|
+
}
|
|
11994
|
+
setCache(data, next = false) {
|
|
11995
|
+
this.cache = data;
|
|
11996
|
+
if (next) {
|
|
11997
|
+
this.updateCache();
|
|
11998
|
+
}
|
|
12001
11999
|
}
|
|
12002
12000
|
/**
|
|
12003
12001
|
* Update cache subject with current cache array value
|
|
@@ -12018,9 +12016,9 @@ class RestService {
|
|
|
12018
12016
|
*/
|
|
12019
12017
|
listenEvents() { }
|
|
12020
12018
|
}
|
|
12021
|
-
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12022
|
-
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12023
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12019
|
+
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12020
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
12021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RestService, decorators: [{
|
|
12024
12022
|
type: Injectable,
|
|
12025
12023
|
args: [{
|
|
12026
12024
|
providedIn: 'root'
|
|
@@ -12039,9 +12037,9 @@ class DocumentService extends RestService {
|
|
|
12039
12037
|
this.modelClass = Document;
|
|
12040
12038
|
}
|
|
12041
12039
|
}
|
|
12042
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12043
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12040
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12041
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
12042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentService, decorators: [{
|
|
12045
12043
|
type: Injectable,
|
|
12046
12044
|
args: [{
|
|
12047
12045
|
providedIn: 'root'
|
|
@@ -12107,9 +12105,9 @@ class DocumentFolderService extends RestService {
|
|
|
12107
12105
|
}));
|
|
12108
12106
|
}
|
|
12109
12107
|
}
|
|
12110
|
-
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12111
|
-
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12108
|
+
DocumentFolderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12109
|
+
DocumentFolderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, providedIn: 'root' });
|
|
12110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentFolderService, decorators: [{
|
|
12113
12111
|
type: Injectable,
|
|
12114
12112
|
args: [{
|
|
12115
12113
|
providedIn: 'root'
|
|
@@ -12186,9 +12184,9 @@ FacebookService.authOptions = {
|
|
|
12186
12184
|
auth_type: 'rerequest',
|
|
12187
12185
|
return_scopes: true
|
|
12188
12186
|
};
|
|
12189
|
-
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12190
|
-
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12187
|
+
FacebookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12188
|
+
FacebookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, providedIn: 'root' });
|
|
12189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FacebookService, decorators: [{
|
|
12192
12190
|
type: Injectable,
|
|
12193
12191
|
args: [{
|
|
12194
12192
|
providedIn: 'root'
|
|
@@ -12258,9 +12256,9 @@ class GoogleService {
|
|
|
12258
12256
|
google.accounts.id.disableAutoSelect();
|
|
12259
12257
|
}
|
|
12260
12258
|
}
|
|
12261
|
-
GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12262
|
-
GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12259
|
+
GoogleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, deps: [{ token: i1.HttpClient }, { token: ToastService }, { token: JwtService }, { token: i4.Router }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12260
|
+
GoogleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, providedIn: 'root' });
|
|
12261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GoogleService, decorators: [{
|
|
12264
12262
|
type: Injectable,
|
|
12265
12263
|
args: [{
|
|
12266
12264
|
providedIn: 'root'
|
|
@@ -12291,9 +12289,9 @@ class FileService extends RestService$1 {
|
|
|
12291
12289
|
return this.http.get(`${this.apiUrl}/${file.id}/download`, { responseType: 'blob' });
|
|
12292
12290
|
}
|
|
12293
12291
|
}
|
|
12294
|
-
FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12295
|
-
FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12292
|
+
FileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12293
|
+
FileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, providedIn: 'root' });
|
|
12294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileService, decorators: [{
|
|
12297
12295
|
type: Injectable,
|
|
12298
12296
|
args: [{
|
|
12299
12297
|
providedIn: 'root'
|
|
@@ -12310,9 +12308,9 @@ class ClientIncomeTypesService extends RestService$1 {
|
|
|
12310
12308
|
this.disabledMethods = ['postBatch', 'putBatch', 'delete', 'deleteBatch'];
|
|
12311
12309
|
}
|
|
12312
12310
|
}
|
|
12313
|
-
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12314
|
-
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12311
|
+
ClientIncomeTypesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12312
|
+
ClientIncomeTypesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, providedIn: 'root' });
|
|
12313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientIncomeTypesService, decorators: [{
|
|
12316
12314
|
type: Injectable,
|
|
12317
12315
|
args: [{
|
|
12318
12316
|
providedIn: 'root'
|
|
@@ -12424,14 +12422,14 @@ class ClientInviteService extends RestService {
|
|
|
12424
12422
|
listenNotifications() {
|
|
12425
12423
|
this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
|
|
12426
12424
|
if (!notification.isRead && (notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED || notification.eventType === UserEventTypeTypeEnum.CLIENT_INVITE)) {
|
|
12427
|
-
this.
|
|
12425
|
+
this.refreshCache();
|
|
12428
12426
|
}
|
|
12429
12427
|
});
|
|
12430
12428
|
}
|
|
12431
12429
|
}
|
|
12432
|
-
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12433
|
-
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12430
|
+
ClientInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12431
|
+
ClientInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, providedIn: 'root' });
|
|
12432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientInviteService, decorators: [{
|
|
12435
12433
|
type: Injectable,
|
|
12436
12434
|
args: [{
|
|
12437
12435
|
providedIn: 'root'
|
|
@@ -12504,7 +12502,7 @@ class ClientMovementService extends RestService {
|
|
|
12504
12502
|
listenNotifications() {
|
|
12505
12503
|
this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
|
|
12506
12504
|
if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED) {
|
|
12507
|
-
this.
|
|
12505
|
+
this.refreshCache();
|
|
12508
12506
|
}
|
|
12509
12507
|
});
|
|
12510
12508
|
}
|
|
@@ -12514,13 +12512,13 @@ class ClientMovementService extends RestService {
|
|
|
12514
12512
|
listenClientInvites() {
|
|
12515
12513
|
this.eventDispatcherService.on(AppEventTypeEnum.CLIENT_INVITE_ACCEPTED)
|
|
12516
12514
|
.subscribe(() => {
|
|
12517
|
-
this.
|
|
12515
|
+
this.refreshCache();
|
|
12518
12516
|
});
|
|
12519
12517
|
}
|
|
12520
12518
|
}
|
|
12521
|
-
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12522
|
-
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12519
|
+
ClientMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12520
|
+
ClientMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, providedIn: 'root' });
|
|
12521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientMovementService, decorators: [{
|
|
12524
12522
|
type: Injectable,
|
|
12525
12523
|
args: [{
|
|
12526
12524
|
providedIn: 'root'
|
|
@@ -12571,9 +12569,9 @@ class EmployeeService extends RestService {
|
|
|
12571
12569
|
}));
|
|
12572
12570
|
}
|
|
12573
12571
|
}
|
|
12574
|
-
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12575
|
-
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12572
|
+
EmployeeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12573
|
+
EmployeeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, providedIn: 'root' });
|
|
12574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeService, decorators: [{
|
|
12577
12575
|
type: Injectable,
|
|
12578
12576
|
args: [{
|
|
12579
12577
|
providedIn: 'root'
|
|
@@ -12635,9 +12633,9 @@ class EmployeeInviteService extends RestService {
|
|
|
12635
12633
|
}));
|
|
12636
12634
|
}
|
|
12637
12635
|
}
|
|
12638
|
-
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12639
|
-
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12636
|
+
EmployeeInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12637
|
+
EmployeeInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, providedIn: 'root' });
|
|
12638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EmployeeInviteService, decorators: [{
|
|
12641
12639
|
type: Injectable,
|
|
12642
12640
|
args: [{
|
|
12643
12641
|
providedIn: 'root'
|
|
@@ -12662,9 +12660,9 @@ class ClientPortfolioReportService {
|
|
|
12662
12660
|
}));
|
|
12663
12661
|
}
|
|
12664
12662
|
}
|
|
12665
|
-
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12666
|
-
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12667
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12663
|
+
ClientPortfolioReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12664
|
+
ClientPortfolioReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, providedIn: 'root' });
|
|
12665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ClientPortfolioReportService, decorators: [{
|
|
12668
12666
|
type: Injectable,
|
|
12669
12667
|
args: [{
|
|
12670
12668
|
providedIn: 'root'
|
|
@@ -12728,9 +12726,9 @@ class FirmService {
|
|
|
12728
12726
|
}));
|
|
12729
12727
|
}
|
|
12730
12728
|
}
|
|
12731
|
-
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12732
|
-
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12729
|
+
FirmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
12730
|
+
FirmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, providedIn: 'root' });
|
|
12731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FirmService, decorators: [{
|
|
12734
12732
|
type: Injectable,
|
|
12735
12733
|
args: [{
|
|
12736
12734
|
providedIn: 'root'
|
|
@@ -12806,9 +12804,9 @@ class IncomeSourceForecastService extends RestService {
|
|
|
12806
12804
|
}).flat();
|
|
12807
12805
|
}
|
|
12808
12806
|
}
|
|
12809
|
-
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12810
|
-
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12807
|
+
IncomeSourceForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12808
|
+
IncomeSourceForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, providedIn: 'root' });
|
|
12809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceForecastService, decorators: [{
|
|
12812
12810
|
type: Injectable,
|
|
12813
12811
|
args: [{
|
|
12814
12812
|
providedIn: 'root'
|
|
@@ -12878,9 +12876,9 @@ class SalaryForecastService extends RestService {
|
|
|
12878
12876
|
}).flat();
|
|
12879
12877
|
}
|
|
12880
12878
|
}
|
|
12881
|
-
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12882
|
-
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12879
|
+
SalaryForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12880
|
+
SalaryForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, providedIn: 'root' });
|
|
12881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalaryForecastService, decorators: [{
|
|
12884
12882
|
type: Injectable,
|
|
12885
12883
|
args: [{
|
|
12886
12884
|
providedIn: 'root'
|
|
@@ -12952,13 +12950,13 @@ class SoleForecastService extends RestService {
|
|
|
12952
12950
|
*/
|
|
12953
12951
|
listenBusinessCreated() {
|
|
12954
12952
|
this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
|
|
12955
|
-
this.
|
|
12953
|
+
this.refreshCache();
|
|
12956
12954
|
});
|
|
12957
12955
|
}
|
|
12958
12956
|
}
|
|
12959
|
-
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
12960
|
-
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
12961
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
12957
|
+
SoleForecastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12958
|
+
SoleForecastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, providedIn: 'root' });
|
|
12959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleForecastService, decorators: [{
|
|
12962
12960
|
type: Injectable,
|
|
12963
12961
|
args: [{
|
|
12964
12962
|
providedIn: 'root'
|
|
@@ -13033,13 +13031,13 @@ class IncomeSourceService extends RestService {
|
|
|
13033
13031
|
listenSoleBusinessCreated() {
|
|
13034
13032
|
this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
|
|
13035
13033
|
// @TODO Alex/Vik (TT-1777): we clear cache a lot, a better and easier way required, add todo and task to refactor
|
|
13036
|
-
this.
|
|
13034
|
+
this.refreshCache();
|
|
13037
13035
|
});
|
|
13038
13036
|
}
|
|
13039
13037
|
}
|
|
13040
|
-
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13041
|
-
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13038
|
+
IncomeSourceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13039
|
+
IncomeSourceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, providedIn: 'root' });
|
|
13040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceService, decorators: [{
|
|
13043
13041
|
type: Injectable,
|
|
13044
13042
|
args: [{
|
|
13045
13043
|
providedIn: 'root'
|
|
@@ -13100,9 +13098,9 @@ class BorrowingExpenseService {
|
|
|
13100
13098
|
}));
|
|
13101
13099
|
}
|
|
13102
13100
|
}
|
|
13103
|
-
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13104
|
-
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13101
|
+
BorrowingExpenseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13102
|
+
BorrowingExpenseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, providedIn: 'root' });
|
|
13103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingExpenseService, decorators: [{
|
|
13106
13104
|
type: Injectable,
|
|
13107
13105
|
args: [{
|
|
13108
13106
|
providedIn: 'root'
|
|
@@ -13132,10 +13130,10 @@ class LoanService extends RestService$1 {
|
|
|
13132
13130
|
// Update list of loans when added/changed loan bank account
|
|
13133
13131
|
this.listenCSE(BankAccount, ['post', 'put'], (bankAccounts) => {
|
|
13134
13132
|
if (bankAccounts.find(ba => !!ba.loan)) {
|
|
13135
|
-
this.
|
|
13133
|
+
this.refreshCache();
|
|
13136
13134
|
}
|
|
13137
13135
|
});
|
|
13138
|
-
this.listenCSE(LoanPayout, ['post', 'put', 'delete'], this.
|
|
13136
|
+
this.listenCSE(LoanPayout, ['post', 'put', 'delete'], this.refreshCache);
|
|
13139
13137
|
}
|
|
13140
13138
|
/**
|
|
13141
13139
|
* Calculate loan payments
|
|
@@ -13153,7 +13151,7 @@ class LoanService extends RestService$1 {
|
|
|
13153
13151
|
loan.payout = plainToClass(LoanPayout, response);
|
|
13154
13152
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
|
|
13155
13153
|
// reset cache to fetch loans with updated data
|
|
13156
|
-
this.
|
|
13154
|
+
this.refreshCache();
|
|
13157
13155
|
}));
|
|
13158
13156
|
}
|
|
13159
13157
|
/**
|
|
@@ -13166,7 +13164,7 @@ class LoanService extends RestService$1 {
|
|
|
13166
13164
|
loan.payout = null;
|
|
13167
13165
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
|
|
13168
13166
|
// reset cache to fetch loans with updated data
|
|
13169
|
-
this.
|
|
13167
|
+
this.refreshCache();
|
|
13170
13168
|
}));
|
|
13171
13169
|
}
|
|
13172
13170
|
/**
|
|
@@ -13180,13 +13178,13 @@ class LoanService extends RestService$1 {
|
|
|
13180
13178
|
loan.payout = plainToClass(LoanPayout, response);
|
|
13181
13179
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.LOAN_PAYOUT_UPDATED, null));
|
|
13182
13180
|
// reset cache to fetch loans with updated data
|
|
13183
|
-
this.
|
|
13181
|
+
this.refreshCache();
|
|
13184
13182
|
}));
|
|
13185
13183
|
}
|
|
13186
13184
|
}
|
|
13187
|
-
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13188
|
-
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13185
|
+
LoanService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13186
|
+
LoanService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, providedIn: 'root' });
|
|
13187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LoanService, decorators: [{
|
|
13190
13188
|
type: Injectable,
|
|
13191
13189
|
args: [{
|
|
13192
13190
|
providedIn: 'root'
|
|
@@ -13203,9 +13201,9 @@ class BorrowingReportService extends RestService$1 {
|
|
|
13203
13201
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
13204
13202
|
}
|
|
13205
13203
|
}
|
|
13206
|
-
BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13207
|
-
BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13204
|
+
BorrowingReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13205
|
+
BorrowingReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, providedIn: 'root' });
|
|
13206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BorrowingReportService, decorators: [{
|
|
13209
13207
|
type: Injectable,
|
|
13210
13208
|
args: [{
|
|
13211
13209
|
providedIn: 'root'
|
|
@@ -13231,9 +13229,9 @@ class PropertyCategoryService extends RestService$1 {
|
|
|
13231
13229
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
13232
13230
|
}
|
|
13233
13231
|
}
|
|
13234
|
-
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13235
|
-
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13232
|
+
PropertyCategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13233
|
+
PropertyCategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, providedIn: 'root' });
|
|
13234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryService, decorators: [{
|
|
13237
13235
|
type: Injectable,
|
|
13238
13236
|
args: [{
|
|
13239
13237
|
providedIn: 'root'
|
|
@@ -13249,9 +13247,9 @@ class PropertyCategoryMovementService extends RestService$1 {
|
|
|
13249
13247
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
13250
13248
|
}
|
|
13251
13249
|
}
|
|
13252
|
-
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13253
|
-
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13250
|
+
PropertyCategoryMovementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13251
|
+
PropertyCategoryMovementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, providedIn: 'root' });
|
|
13252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCategoryMovementService, decorators: [{
|
|
13255
13253
|
type: Injectable,
|
|
13256
13254
|
args: [{
|
|
13257
13255
|
providedIn: 'root'
|
|
@@ -13293,9 +13291,9 @@ class PropertyDocumentService extends RestService$1 {
|
|
|
13293
13291
|
});
|
|
13294
13292
|
}
|
|
13295
13293
|
}
|
|
13296
|
-
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13297
|
-
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13294
|
+
PropertyDocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13295
|
+
PropertyDocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, providedIn: 'root' });
|
|
13296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyDocumentService, decorators: [{
|
|
13299
13297
|
type: Injectable,
|
|
13300
13298
|
args: [{
|
|
13301
13299
|
providedIn: 'root'
|
|
@@ -13369,9 +13367,9 @@ class TaxExemptionService extends DataService {
|
|
|
13369
13367
|
this.setCache(TaxExemptions);
|
|
13370
13368
|
}
|
|
13371
13369
|
}
|
|
13372
|
-
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13373
|
-
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13370
|
+
TaxExemptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13371
|
+
TaxExemptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, providedIn: 'root' });
|
|
13372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxExemptionService, decorators: [{
|
|
13375
13373
|
type: Injectable,
|
|
13376
13374
|
args: [{
|
|
13377
13375
|
providedIn: 'root'
|
|
@@ -13387,9 +13385,9 @@ class PropertySaleService extends RestService$1 {
|
|
|
13387
13385
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
13388
13386
|
}
|
|
13389
13387
|
}
|
|
13390
|
-
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13391
|
-
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13388
|
+
PropertySaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13389
|
+
PropertySaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, providedIn: 'root' });
|
|
13390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertySaleService, decorators: [{
|
|
13393
13391
|
type: Injectable,
|
|
13394
13392
|
args: [{
|
|
13395
13393
|
providedIn: 'root'
|
|
@@ -13424,21 +13422,20 @@ class PropertyShareService extends RestService$1 {
|
|
|
13424
13422
|
* Listen to User updated event
|
|
13425
13423
|
*/
|
|
13426
13424
|
listenUserUpdated() {
|
|
13427
|
-
this.eventDispatcherService.
|
|
13428
|
-
.
|
|
13429
|
-
this.resetCache();
|
|
13425
|
+
this.eventDispatcherService.on2(User.getEventName('put')).subscribe(() => {
|
|
13426
|
+
this.refreshCache();
|
|
13430
13427
|
});
|
|
13431
13428
|
}
|
|
13432
13429
|
/**
|
|
13433
13430
|
* @Todo Alex refactor after PropertyShare functionality in PropertyService will be cleared up
|
|
13434
13431
|
*/
|
|
13435
13432
|
listenSalesChanges() {
|
|
13436
|
-
this.listenCSE(PropertySale, ['post', 'delete'], this.
|
|
13433
|
+
this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
|
|
13437
13434
|
}
|
|
13438
13435
|
}
|
|
13439
|
-
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13440
|
-
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13436
|
+
PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13437
|
+
PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
|
|
13438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyShareService, decorators: [{
|
|
13442
13439
|
type: Injectable,
|
|
13443
13440
|
args: [{
|
|
13444
13441
|
providedIn: 'root'
|
|
@@ -13481,19 +13478,19 @@ class PropertyService extends RestService$1 {
|
|
|
13481
13478
|
* Update cache when share invitation accepted
|
|
13482
13479
|
*/
|
|
13483
13480
|
listenShareInviteAccepted() {
|
|
13484
|
-
this.listenCSE(PropertyShare, ['put'], this.
|
|
13481
|
+
this.listenCSE(PropertyShare, ['put'], this.refreshCache);
|
|
13485
13482
|
}
|
|
13486
13483
|
/**
|
|
13487
13484
|
* Update cache when property category changed
|
|
13488
13485
|
*/
|
|
13489
13486
|
listenMovementsChanges() {
|
|
13490
|
-
this.listenCSE(PropertyCategoryMovement, ['post', 'put', 'delete'], this.
|
|
13487
|
+
this.listenCSE(PropertyCategoryMovement, ['post', 'put', 'delete'], this.refreshCache);
|
|
13491
13488
|
}
|
|
13492
13489
|
/**
|
|
13493
13490
|
* Update cache when property sales changed
|
|
13494
13491
|
*/
|
|
13495
13492
|
listenSalesChanges() {
|
|
13496
|
-
this.listenCSE(PropertySale, ['post', 'delete'], this.
|
|
13493
|
+
this.listenCSE(PropertySale, ['post', 'delete'], this.refreshCache);
|
|
13497
13494
|
}
|
|
13498
13495
|
updateDepreciationCalculation(property) {
|
|
13499
13496
|
const propertyToUpdate = plainToClass(Property, { id: property.id, depreciationCalculation: property.depreciationCalculation });
|
|
@@ -13535,9 +13532,9 @@ class PropertyService extends RestService$1 {
|
|
|
13535
13532
|
}));
|
|
13536
13533
|
}
|
|
13537
13534
|
}
|
|
13538
|
-
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13539
|
-
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13535
|
+
PropertyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13536
|
+
PropertyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, providedIn: 'root' });
|
|
13537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyService, decorators: [{
|
|
13541
13538
|
type: Injectable,
|
|
13542
13539
|
args: [{
|
|
13543
13540
|
providedIn: 'root'
|
|
@@ -13591,9 +13588,9 @@ class ServiceNotificationService extends RestService {
|
|
|
13591
13588
|
});
|
|
13592
13589
|
}
|
|
13593
13590
|
}
|
|
13594
|
-
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13595
|
-
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13591
|
+
ServiceNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13592
|
+
ServiceNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, providedIn: 'root' });
|
|
13593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceNotificationService, decorators: [{
|
|
13597
13594
|
type: Injectable,
|
|
13598
13595
|
args: [{
|
|
13599
13596
|
providedIn: 'root'
|
|
@@ -13644,9 +13641,9 @@ class SoleBusinessService extends RestService {
|
|
|
13644
13641
|
}));
|
|
13645
13642
|
}
|
|
13646
13643
|
}
|
|
13647
|
-
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13648
|
-
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13644
|
+
SoleBusinessService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13645
|
+
SoleBusinessService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, providedIn: 'root' });
|
|
13646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessService, decorators: [{
|
|
13650
13647
|
type: Injectable,
|
|
13651
13648
|
args: [{
|
|
13652
13649
|
providedIn: 'root'
|
|
@@ -13661,9 +13658,9 @@ class SoleBusinessActivityService extends RestService {
|
|
|
13661
13658
|
this.isHydra = true;
|
|
13662
13659
|
}
|
|
13663
13660
|
}
|
|
13664
|
-
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13665
|
-
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13661
|
+
SoleBusinessActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13662
|
+
SoleBusinessActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, providedIn: 'root' });
|
|
13663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessActivityService, decorators: [{
|
|
13667
13664
|
type: Injectable,
|
|
13668
13665
|
args: [{
|
|
13669
13666
|
providedIn: 'root'
|
|
@@ -13685,13 +13682,13 @@ class SoleBusinessLossService extends RestService {
|
|
|
13685
13682
|
*/
|
|
13686
13683
|
listenBusinessCreated() {
|
|
13687
13684
|
this.eventDispatcherService.on(AppEventTypeEnum.SOLE_BUSINESS_CREATED).subscribe(() => {
|
|
13688
|
-
this.
|
|
13685
|
+
this.refreshCache();
|
|
13689
13686
|
});
|
|
13690
13687
|
}
|
|
13691
13688
|
}
|
|
13692
|
-
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13693
|
-
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13689
|
+
SoleBusinessLossService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13690
|
+
SoleBusinessLossService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, providedIn: 'root' });
|
|
13691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossService, decorators: [{
|
|
13695
13692
|
type: Injectable,
|
|
13696
13693
|
args: [{
|
|
13697
13694
|
providedIn: 'root'
|
|
@@ -13709,9 +13706,9 @@ class SoleBusinessLossOffsetRuleService extends RestService {
|
|
|
13709
13706
|
this.isHydra = true;
|
|
13710
13707
|
}
|
|
13711
13708
|
}
|
|
13712
|
-
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13713
|
-
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13709
|
+
SoleBusinessLossOffsetRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13710
|
+
SoleBusinessLossOffsetRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, providedIn: 'root' });
|
|
13711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleBusinessLossOffsetRuleService, decorators: [{
|
|
13715
13712
|
type: Injectable,
|
|
13716
13713
|
args: [{
|
|
13717
13714
|
providedIn: 'root'
|
|
@@ -13726,9 +13723,9 @@ class SoleContactService extends RestService {
|
|
|
13726
13723
|
this.isHydra = true;
|
|
13727
13724
|
}
|
|
13728
13725
|
}
|
|
13729
|
-
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13730
|
-
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13726
|
+
SoleContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13727
|
+
SoleContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, providedIn: 'root' });
|
|
13728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleContactService, decorators: [{
|
|
13732
13729
|
type: Injectable,
|
|
13733
13730
|
args: [{
|
|
13734
13731
|
providedIn: 'root'
|
|
@@ -13784,9 +13781,9 @@ class SoleDepreciationMethodService {
|
|
|
13784
13781
|
});
|
|
13785
13782
|
}
|
|
13786
13783
|
}
|
|
13787
|
-
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13788
|
-
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13784
|
+
SoleDepreciationMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13785
|
+
SoleDepreciationMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, providedIn: 'root' });
|
|
13786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDepreciationMethodService, decorators: [{
|
|
13790
13787
|
type: Injectable,
|
|
13791
13788
|
args: [{
|
|
13792
13789
|
providedIn: 'root'
|
|
@@ -13841,9 +13838,9 @@ class SoleDetailsService {
|
|
|
13841
13838
|
}));
|
|
13842
13839
|
}
|
|
13843
13840
|
}
|
|
13844
|
-
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13845
|
-
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13841
|
+
SoleDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, deps: [{ token: i1.HttpClient }, { token: 'environment' }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13842
|
+
SoleDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, providedIn: 'root' });
|
|
13843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleDetailsService, decorators: [{
|
|
13847
13844
|
type: Injectable,
|
|
13848
13845
|
args: [{
|
|
13849
13846
|
providedIn: 'root'
|
|
@@ -13861,6 +13858,7 @@ class SoleInvoiceService extends RestService {
|
|
|
13861
13858
|
this.modelClass = SoleInvoice;
|
|
13862
13859
|
this.url = 'sole-invoices';
|
|
13863
13860
|
this.isHydra = true;
|
|
13861
|
+
this.roles = [UserRolesEnum.SOLE_TANK];
|
|
13864
13862
|
}
|
|
13865
13863
|
listenEvents() {
|
|
13866
13864
|
this.listenAllocations();
|
|
@@ -13915,13 +13913,13 @@ class SoleInvoiceService extends RestService {
|
|
|
13915
13913
|
AppEventTypeEnum.TRANSACTION_ALLOCATION_CREATED,
|
|
13916
13914
|
AppEventTypeEnum.TRANSACTION_ALLOCATION_DELETED
|
|
13917
13915
|
]).subscribe(() => {
|
|
13918
|
-
this.
|
|
13916
|
+
this.refreshCache();
|
|
13919
13917
|
});
|
|
13920
13918
|
}
|
|
13921
13919
|
}
|
|
13922
|
-
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13923
|
-
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13920
|
+
SoleInvoiceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13921
|
+
SoleInvoiceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, providedIn: 'root' });
|
|
13922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceService, decorators: [{
|
|
13925
13923
|
type: Injectable,
|
|
13926
13924
|
args: [{
|
|
13927
13925
|
providedIn: 'root'
|
|
@@ -13936,9 +13934,9 @@ class SoleInvoiceTemplateService extends RestService {
|
|
|
13936
13934
|
this.isHydra = true;
|
|
13937
13935
|
}
|
|
13938
13936
|
}
|
|
13939
|
-
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13940
|
-
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13937
|
+
SoleInvoiceTemplateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13938
|
+
SoleInvoiceTemplateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, providedIn: 'root' });
|
|
13939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SoleInvoiceTemplateService, decorators: [{
|
|
13942
13940
|
type: Injectable,
|
|
13943
13941
|
args: [{
|
|
13944
13942
|
providedIn: 'root'
|
|
@@ -13953,9 +13951,9 @@ class BasReportService extends RestService {
|
|
|
13953
13951
|
this.isHydra = true;
|
|
13954
13952
|
}
|
|
13955
13953
|
}
|
|
13956
|
-
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13957
|
-
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13954
|
+
BasReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13955
|
+
BasReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, providedIn: 'root' });
|
|
13956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasReportService, decorators: [{
|
|
13959
13957
|
type: Injectable,
|
|
13960
13958
|
args: [{
|
|
13961
13959
|
providedIn: 'root'
|
|
@@ -13981,9 +13979,9 @@ class ServicePaymentService extends RestService$1 {
|
|
|
13981
13979
|
return this.http.get(`${this.environment.apiV2}/service-payments/${payment.id}/invoice-url`);
|
|
13982
13980
|
}
|
|
13983
13981
|
}
|
|
13984
|
-
ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
13985
|
-
ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
13986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
13982
|
+
ServicePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13983
|
+
ServicePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, providedIn: 'root' });
|
|
13984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentService, decorators: [{
|
|
13987
13985
|
type: Injectable,
|
|
13988
13986
|
args: [{
|
|
13989
13987
|
providedIn: 'root'
|
|
@@ -14031,9 +14029,9 @@ class ServicePaymentMethodService extends RestService$1 {
|
|
|
14031
14029
|
});
|
|
14032
14030
|
}
|
|
14033
14031
|
}
|
|
14034
|
-
ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14035
|
-
ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14032
|
+
ServicePaymentMethodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: SseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14033
|
+
ServicePaymentMethodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, providedIn: 'root' });
|
|
14034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePaymentMethodService, decorators: [{
|
|
14037
14035
|
type: Injectable,
|
|
14038
14036
|
args: [{
|
|
14039
14037
|
providedIn: 'root'
|
|
@@ -14058,9 +14056,9 @@ class ServicePriceService extends RestService$1 {
|
|
|
14058
14056
|
this.disabledMethods = ['post', 'postBatch', 'put', 'putBatch', 'delete', 'deleteBatch'];
|
|
14059
14057
|
}
|
|
14060
14058
|
}
|
|
14061
|
-
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14062
|
-
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14059
|
+
ServicePriceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14060
|
+
ServicePriceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, providedIn: 'root' });
|
|
14061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServicePriceService, decorators: [{
|
|
14064
14062
|
type: Injectable,
|
|
14065
14063
|
args: [{
|
|
14066
14064
|
providedIn: 'root'
|
|
@@ -14177,9 +14175,9 @@ class SubscriptionService extends RestService$1 {
|
|
|
14177
14175
|
});
|
|
14178
14176
|
}
|
|
14179
14177
|
}
|
|
14180
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14181
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14178
|
+
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: ToastService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14179
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
|
|
14180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
14183
14181
|
type: Injectable,
|
|
14184
14182
|
args: [{
|
|
14185
14183
|
providedIn: 'root'
|
|
@@ -14201,9 +14199,9 @@ class ServiceProductService extends RestService$1 {
|
|
|
14201
14199
|
this.isApiPlatform = true;
|
|
14202
14200
|
}
|
|
14203
14201
|
}
|
|
14204
|
-
ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14205
|
-
ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14202
|
+
ServiceProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14203
|
+
ServiceProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, providedIn: 'root' });
|
|
14204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ServiceProductService, decorators: [{
|
|
14207
14205
|
type: Injectable,
|
|
14208
14206
|
args: [{
|
|
14209
14207
|
providedIn: 'root'
|
|
@@ -14329,9 +14327,9 @@ class TaxReviewHistoryService extends RestService {
|
|
|
14329
14327
|
});
|
|
14330
14328
|
}
|
|
14331
14329
|
}
|
|
14332
|
-
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14333
|
-
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14330
|
+
TaxReviewHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14331
|
+
TaxReviewHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, providedIn: 'root' });
|
|
14332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewHistoryService, decorators: [{
|
|
14335
14333
|
type: Injectable,
|
|
14336
14334
|
args: [{
|
|
14337
14335
|
providedIn: 'root'
|
|
@@ -14392,7 +14390,7 @@ class TaxReviewService extends RestService {
|
|
|
14392
14390
|
listenFirmChanges() {
|
|
14393
14391
|
this.eventDispatcherService.on([AppEventTypeEnum.CLIENT_MOVEMENT_CLOSED, AppEventTypeEnum.CLIENT_INVITE_ACCEPTED])
|
|
14394
14392
|
.subscribe(() => {
|
|
14395
|
-
this.
|
|
14393
|
+
this.refreshCache();
|
|
14396
14394
|
});
|
|
14397
14395
|
}
|
|
14398
14396
|
/**
|
|
@@ -14415,14 +14413,14 @@ class TaxReviewService extends RestService {
|
|
|
14415
14413
|
listenNotifications() {
|
|
14416
14414
|
this.eventDispatcherService.on(AppEventTypeEnum.NOTIFICATION_ADDED).subscribe((notification) => {
|
|
14417
14415
|
if (!notification.isRead && notification.eventType === UserEventTypeTypeEnum.FIRM_INVITE_ACCEPTED) {
|
|
14418
|
-
this.
|
|
14416
|
+
this.refreshCache();
|
|
14419
14417
|
}
|
|
14420
14418
|
});
|
|
14421
14419
|
}
|
|
14422
14420
|
}
|
|
14423
|
-
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14424
|
-
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14421
|
+
TaxReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14422
|
+
TaxReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, providedIn: 'root' });
|
|
14423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReviewService, decorators: [{
|
|
14426
14424
|
type: Injectable,
|
|
14427
14425
|
args: [{
|
|
14428
14426
|
providedIn: 'root'
|
|
@@ -14696,9 +14694,9 @@ class TaxSummaryService {
|
|
|
14696
14694
|
});
|
|
14697
14695
|
}
|
|
14698
14696
|
}
|
|
14699
|
-
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14700
|
-
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14701
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14697
|
+
TaxSummaryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14698
|
+
TaxSummaryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, providedIn: 'root' });
|
|
14699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxSummaryService, decorators: [{
|
|
14702
14700
|
type: Injectable,
|
|
14703
14701
|
args: [{
|
|
14704
14702
|
providedIn: 'root'
|
|
@@ -14719,9 +14717,9 @@ class AllocationRuleService extends RestService$1 {
|
|
|
14719
14717
|
this.isApiPlatform = true;
|
|
14720
14718
|
}
|
|
14721
14719
|
}
|
|
14722
|
-
AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14723
|
-
AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14720
|
+
AllocationRuleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14721
|
+
AllocationRuleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, providedIn: 'root' });
|
|
14722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllocationRuleService, decorators: [{
|
|
14725
14723
|
type: Injectable,
|
|
14726
14724
|
args: [{
|
|
14727
14725
|
providedIn: 'root'
|
|
@@ -14788,7 +14786,7 @@ class TransactionAllocationService extends RestService {
|
|
|
14788
14786
|
return;
|
|
14789
14787
|
}
|
|
14790
14788
|
// Update allocations cache to synchronize data and fire subscriptions
|
|
14791
|
-
this.
|
|
14789
|
+
this.refreshCache();
|
|
14792
14790
|
});
|
|
14793
14791
|
}
|
|
14794
14792
|
/**
|
|
@@ -14797,7 +14795,7 @@ class TransactionAllocationService extends RestService {
|
|
|
14797
14795
|
watchDepreciations() {
|
|
14798
14796
|
// @TODO reset cache only when required (depreciation has transaction with allocations)
|
|
14799
14797
|
this.eventDispatcherService.on2(...Depreciation.getEventNames('post', 'delete')).subscribe(() => {
|
|
14800
|
-
this.
|
|
14798
|
+
this.refreshCache();
|
|
14801
14799
|
});
|
|
14802
14800
|
}
|
|
14803
14801
|
/**
|
|
@@ -14807,13 +14805,13 @@ class TransactionAllocationService extends RestService {
|
|
|
14807
14805
|
this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_DELETED).subscribe(() => {
|
|
14808
14806
|
// @TODO Alex hack: research and refactor cache update logic, dont reset cache each time transactions changed
|
|
14809
14807
|
// Update allocations cache to synchronize data and fire subscriptions
|
|
14810
|
-
this.
|
|
14808
|
+
this.refreshCache();
|
|
14811
14809
|
});
|
|
14812
14810
|
}
|
|
14813
14811
|
}
|
|
14814
|
-
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14815
|
-
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14816
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14812
|
+
TransactionAllocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
14813
|
+
TransactionAllocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, providedIn: 'root' });
|
|
14814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionAllocationService, decorators: [{
|
|
14817
14815
|
type: Injectable,
|
|
14818
14816
|
args: [{
|
|
14819
14817
|
providedIn: 'root'
|
|
@@ -14839,9 +14837,9 @@ class TransactionReceiptService extends ReceiptService {
|
|
|
14839
14837
|
this.listenEvents();
|
|
14840
14838
|
}
|
|
14841
14839
|
}
|
|
14842
|
-
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
14843
|
-
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
14844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
14840
|
+
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14841
|
+
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
|
|
14842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionReceiptService, decorators: [{
|
|
14845
14843
|
type: Injectable,
|
|
14846
14844
|
args: [{
|
|
14847
14845
|
providedIn: 'root'
|
|
@@ -14885,16 +14883,7 @@ class TransactionService extends RestService {
|
|
|
14885
14883
|
* get list of all user's TaxTank transactions
|
|
14886
14884
|
*/
|
|
14887
14885
|
get() {
|
|
14888
|
-
|
|
14889
|
-
// set cache as default empty array to avoid multiple backend requests
|
|
14890
|
-
this.cache = [];
|
|
14891
|
-
this.fetch()
|
|
14892
|
-
.subscribe((transactions) => {
|
|
14893
|
-
this.cache = transactions;
|
|
14894
|
-
this.updateCache();
|
|
14895
|
-
});
|
|
14896
|
-
}
|
|
14897
|
-
return this.cacheSubject.asObservable().pipe(
|
|
14886
|
+
return super.get().pipe(
|
|
14898
14887
|
// assign child transactions (fees) to parent transactions
|
|
14899
14888
|
map((transactions) => {
|
|
14900
14889
|
transactions.forEach((transaction) => {
|
|
@@ -15096,18 +15085,14 @@ class TransactionService extends RestService {
|
|
|
15096
15085
|
listenDepreciationChange() {
|
|
15097
15086
|
// @TODO reset cache only when required (depreciation has transaction)
|
|
15098
15087
|
this.eventDispatcherService.on2(...Depreciation.getEventNames('post', 'delete')).subscribe(() => {
|
|
15099
|
-
this.
|
|
15100
|
-
.subscribe((transactions) => {
|
|
15101
|
-
this.cache = transactions;
|
|
15102
|
-
this.updateCache();
|
|
15103
|
-
});
|
|
15088
|
+
this.refreshCache();
|
|
15104
15089
|
});
|
|
15105
15090
|
}
|
|
15106
15091
|
/**
|
|
15107
15092
|
* Listen to EventDispatcherService event related to Property Share changing
|
|
15108
15093
|
*/
|
|
15109
15094
|
listenPropertyShareUpdate() {
|
|
15110
|
-
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.
|
|
15095
|
+
this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.refreshCache());
|
|
15111
15096
|
}
|
|
15112
15097
|
listenReceiptAdded() {
|
|
15113
15098
|
this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED).subscribe((transactionReceipt) => {
|
|
@@ -15131,7 +15116,7 @@ class TransactionService extends RestService {
|
|
|
15131
15116
|
AppEventTypeEnum.VEHICLE_CLAIM_UPDATED,
|
|
15132
15117
|
AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED
|
|
15133
15118
|
]).subscribe(() => {
|
|
15134
|
-
this.
|
|
15119
|
+
this.refreshCache();
|
|
15135
15120
|
});
|
|
15136
15121
|
}
|
|
15137
15122
|
/**
|
|
@@ -15140,7 +15125,7 @@ class TransactionService extends RestService {
|
|
|
15140
15125
|
*/
|
|
15141
15126
|
listenPropertyForecastUpdate() {
|
|
15142
15127
|
this.eventDispatcherService.on([AppEventTypeEnum.PROPERTY_UPDATED]).subscribe(() => {
|
|
15143
|
-
this.
|
|
15128
|
+
this.refreshCache();
|
|
15144
15129
|
});
|
|
15145
15130
|
}
|
|
15146
15131
|
replaceInCache(transactionToReplace) {
|
|
@@ -15149,13 +15134,13 @@ class TransactionService extends RestService {
|
|
|
15149
15134
|
}
|
|
15150
15135
|
listenInvoicesPublish() {
|
|
15151
15136
|
this.eventDispatcherService.on(AppEventTypeEnum.SOLE_INVOICE_PUBLISHED).subscribe(() => {
|
|
15152
|
-
this.
|
|
15137
|
+
this.refreshCache();
|
|
15153
15138
|
});
|
|
15154
15139
|
}
|
|
15155
15140
|
}
|
|
15156
|
-
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15157
|
-
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15141
|
+
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15142
|
+
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, providedIn: 'root' });
|
|
15143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionService, decorators: [{
|
|
15159
15144
|
type: Injectable,
|
|
15160
15145
|
args: [{
|
|
15161
15146
|
providedIn: 'root'
|
|
@@ -15186,9 +15171,9 @@ class TutorialVideoService {
|
|
|
15186
15171
|
}
|
|
15187
15172
|
TutorialVideoService.googleUrl = `https://www.googleapis.com/drive/v3/files?fields=*&mimeType='video/mp4'&orderBy=name`;
|
|
15188
15173
|
TutorialVideoService.parents = '1uLMLzi8WUy2go9xhfzJEwgFwOM43dukM';
|
|
15189
|
-
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15190
|
-
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15174
|
+
TutorialVideoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15175
|
+
TutorialVideoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, providedIn: 'root' });
|
|
15176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TutorialVideoService, decorators: [{
|
|
15192
15177
|
type: Injectable,
|
|
15193
15178
|
args: [{
|
|
15194
15179
|
providedIn: 'root'
|
|
@@ -15210,9 +15195,9 @@ class VehicleService extends RestService {
|
|
|
15210
15195
|
this.modelClass = Vehicle;
|
|
15211
15196
|
}
|
|
15212
15197
|
}
|
|
15213
|
-
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15214
|
-
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15198
|
+
VehicleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15199
|
+
VehicleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, providedIn: 'root' });
|
|
15200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleService, decorators: [{
|
|
15216
15201
|
type: Injectable,
|
|
15217
15202
|
args: [{
|
|
15218
15203
|
providedIn: 'root'
|
|
@@ -15249,7 +15234,7 @@ class VehicleClaimService extends RestService {
|
|
|
15249
15234
|
listenVehicleClaimDetailsChanges() {
|
|
15250
15235
|
this.eventDispatcherService.on(AppEventTypeEnum.VEHICLE_CLAIM_DETAILS_UPDATED)
|
|
15251
15236
|
.subscribe(() => {
|
|
15252
|
-
this.
|
|
15237
|
+
this.refreshCache();
|
|
15253
15238
|
});
|
|
15254
15239
|
}
|
|
15255
15240
|
/**
|
|
@@ -15285,9 +15270,9 @@ class VehicleClaimService extends RestService {
|
|
|
15285
15270
|
combineLatest(batch$).subscribe();
|
|
15286
15271
|
}
|
|
15287
15272
|
}
|
|
15288
|
-
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15289
|
-
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15273
|
+
VehicleClaimService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15274
|
+
VehicleClaimService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, providedIn: 'root' });
|
|
15275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimService, decorators: [{
|
|
15291
15276
|
type: Injectable,
|
|
15292
15277
|
args: [{
|
|
15293
15278
|
providedIn: 'root'
|
|
@@ -15364,9 +15349,9 @@ class VehicleClaimDetailsService {
|
|
|
15364
15349
|
this.update(vehicleClaimDetails).subscribe();
|
|
15365
15350
|
}
|
|
15366
15351
|
}
|
|
15367
|
-
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15368
|
-
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15352
|
+
VehicleClaimDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, deps: [{ token: 'environment' }, { token: i1.HttpClient }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15353
|
+
VehicleClaimDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, providedIn: 'root' });
|
|
15354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleClaimDetailsService, decorators: [{
|
|
15370
15355
|
type: Injectable,
|
|
15371
15356
|
args: [{
|
|
15372
15357
|
providedIn: 'root'
|
|
@@ -15388,9 +15373,9 @@ class VehicleLogbookService extends RestService {
|
|
|
15388
15373
|
this.modelClass = VehicleLogbook;
|
|
15389
15374
|
}
|
|
15390
15375
|
}
|
|
15391
|
-
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15392
|
-
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15376
|
+
VehicleLogbookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15377
|
+
VehicleLogbookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, providedIn: 'root' });
|
|
15378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VehicleLogbookService, decorators: [{
|
|
15394
15379
|
type: Injectable,
|
|
15395
15380
|
args: [{
|
|
15396
15381
|
providedIn: 'root'
|
|
@@ -15407,9 +15392,9 @@ class AnnualClientDetailsService extends RestService$1 {
|
|
|
15407
15392
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
|
|
15408
15393
|
}
|
|
15409
15394
|
}
|
|
15410
|
-
AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15411
|
-
AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15395
|
+
AnnualClientDetailsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15396
|
+
AnnualClientDetailsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, providedIn: 'root' });
|
|
15397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AnnualClientDetailsService, decorators: [{
|
|
15413
15398
|
type: Injectable,
|
|
15414
15399
|
args: [{
|
|
15415
15400
|
providedIn: 'root'
|
|
@@ -15440,9 +15425,9 @@ class OccupationService {
|
|
|
15440
15425
|
return this.occupationsSubject.asObservable();
|
|
15441
15426
|
}
|
|
15442
15427
|
}
|
|
15443
|
-
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15444
|
-
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15428
|
+
OccupationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15429
|
+
OccupationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, providedIn: 'root' });
|
|
15430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OccupationService, decorators: [{
|
|
15446
15431
|
type: Injectable,
|
|
15447
15432
|
args: [{
|
|
15448
15433
|
providedIn: 'root'
|
|
@@ -15519,9 +15504,9 @@ class UserEventSettingService extends RestService {
|
|
|
15519
15504
|
}));
|
|
15520
15505
|
}
|
|
15521
15506
|
}
|
|
15522
|
-
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15523
|
-
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15507
|
+
UserEventSettingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15508
|
+
UserEventSettingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, providedIn: 'root' });
|
|
15509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventSettingService, decorators: [{
|
|
15525
15510
|
type: Injectable,
|
|
15526
15511
|
args: [{
|
|
15527
15512
|
providedIn: 'root'
|
|
@@ -15536,9 +15521,9 @@ class UserEventTypeService extends RestService {
|
|
|
15536
15521
|
this.isHydra = true;
|
|
15537
15522
|
}
|
|
15538
15523
|
}
|
|
15539
|
-
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15540
|
-
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15524
|
+
UserEventTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15525
|
+
UserEventTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, providedIn: 'root' });
|
|
15526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserEventTypeService, decorators: [{
|
|
15542
15527
|
type: Injectable,
|
|
15543
15528
|
args: [{
|
|
15544
15529
|
providedIn: 'root'
|
|
@@ -15555,162 +15540,77 @@ class UsersInviteService extends RestService {
|
|
|
15555
15540
|
this.url = 'users/invite';
|
|
15556
15541
|
}
|
|
15557
15542
|
}
|
|
15558
|
-
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15559
|
-
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15543
|
+
UsersInviteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15544
|
+
UsersInviteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, providedIn: 'root' });
|
|
15545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersInviteService, decorators: [{
|
|
15561
15546
|
type: Injectable,
|
|
15562
15547
|
args: [{
|
|
15563
15548
|
providedIn: 'root'
|
|
15564
15549
|
}]
|
|
15565
15550
|
}] });
|
|
15566
15551
|
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
class UserService {
|
|
15571
|
-
constructor(http, jwtService, eventDispatcherService, sseService, environment) {
|
|
15552
|
+
class UserService extends RestService$1 {
|
|
15553
|
+
constructor(http, eventDispatcherService, environment) {
|
|
15554
|
+
super(http, eventDispatcherService, environment);
|
|
15572
15555
|
this.http = http;
|
|
15573
|
-
this.jwtService = jwtService;
|
|
15574
15556
|
this.eventDispatcherService = eventDispatcherService;
|
|
15575
|
-
this.sseService = sseService;
|
|
15576
15557
|
this.environment = environment;
|
|
15577
|
-
this.
|
|
15578
|
-
this.
|
|
15579
|
-
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
*/
|
|
15583
|
-
getCache() {
|
|
15584
|
-
return clone(this.cache);
|
|
15558
|
+
this.modelClass = User;
|
|
15559
|
+
this.collectionClass = Collection;
|
|
15560
|
+
this.endpointUri = 'users';
|
|
15561
|
+
this.isApiPlatform = false;
|
|
15562
|
+
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
|
|
15585
15563
|
}
|
|
15586
15564
|
listenEvents() {
|
|
15587
15565
|
this.listenServiceSubscriptionUpdated();
|
|
15588
15566
|
this.listenBasiqConsentUpdated();
|
|
15589
15567
|
}
|
|
15590
|
-
get() {
|
|
15591
|
-
if (!this.cache) {
|
|
15592
|
-
this.fetch().subscribe(() => { }, (error) => {
|
|
15593
|
-
// force logout user (clear localStorage) when get current user return error
|
|
15594
|
-
if (error.status === 500) {
|
|
15595
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.CURRENT_USER_GET_FAILED, null));
|
|
15596
|
-
}
|
|
15597
|
-
});
|
|
15598
|
-
}
|
|
15599
|
-
return this.cacheSubject.asObservable();
|
|
15600
|
-
}
|
|
15601
|
-
/**
|
|
15602
|
-
* Get current user
|
|
15603
|
-
*/
|
|
15604
15568
|
fetch() {
|
|
15605
|
-
return
|
|
15606
|
-
.
|
|
15607
|
-
|
|
15608
|
-
|
|
15609
|
-
localStorage.setItem('userId', user.id.toString());
|
|
15610
|
-
localStorage.setItem('financialYear', user.financialYear.toString());
|
|
15611
|
-
this.cache = user;
|
|
15612
|
-
this.cacheSubject.next(this.cache);
|
|
15613
|
-
return user;
|
|
15569
|
+
return super.fetch(`${this.apiUrl}/current`).pipe(map((users) => {
|
|
15570
|
+
localStorage.setItem('userId', this.getCacheFirst().id.toString());
|
|
15571
|
+
localStorage.setItem('financialYear', this.getCacheFirst().financialYear.toString());
|
|
15572
|
+
return users;
|
|
15614
15573
|
}));
|
|
15615
15574
|
}
|
|
15616
|
-
/**
|
|
15617
|
-
* Register new user
|
|
15618
|
-
*/
|
|
15619
15575
|
register(data) {
|
|
15620
|
-
return this.http.post(`${this.
|
|
15576
|
+
return this.http.post(`${this.apiUrl}/registration`, data);
|
|
15621
15577
|
}
|
|
15622
|
-
/**
|
|
15623
|
-
* Update user
|
|
15624
|
-
*/
|
|
15625
|
-
update(user) {
|
|
15626
|
-
return this.http.put(`${this.environment.apiV2}/users/${user.id}`, user)
|
|
15627
|
-
.pipe(map((userBase) => {
|
|
15628
|
-
this.cache = plainToClass(User, userBase);
|
|
15629
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.USER_UPDATED, null));
|
|
15630
|
-
this.cacheSubject.next(this.cache);
|
|
15631
|
-
}));
|
|
15632
|
-
}
|
|
15633
|
-
/**
|
|
15634
|
-
* Change user password
|
|
15635
|
-
*/
|
|
15636
15578
|
changePassword(currentPassword, newPassword) {
|
|
15637
|
-
return this.http.put(`${this.
|
|
15579
|
+
return this.http.put(`${this.apiUrl}/password/change`, { currentPassword, newPassword });
|
|
15638
15580
|
}
|
|
15639
|
-
/**
|
|
15640
|
-
* Recovery user password
|
|
15641
|
-
*/
|
|
15642
15581
|
recoveryPassword(email) {
|
|
15643
|
-
return this.http.put(`${this.
|
|
15582
|
+
return this.http.put(`${this.apiUrl}/password/recovery`, { email });
|
|
15644
15583
|
}
|
|
15645
|
-
/**
|
|
15646
|
-
* Reset user password
|
|
15647
|
-
*/
|
|
15648
15584
|
resetPassword(newPassword, resetToken) {
|
|
15649
|
-
return this.http.put(`${this.
|
|
15585
|
+
return this.http.put(`${this.apiUrl}/password/reset`, { newPassword, resetToken });
|
|
15650
15586
|
}
|
|
15651
15587
|
resendConfirmationEmail(email) {
|
|
15652
|
-
return this.http.post(`${this.
|
|
15588
|
+
return this.http.post(`${this.apiUrl}/confirmation/resend`, { email });
|
|
15653
15589
|
}
|
|
15654
15590
|
/**
|
|
15655
15591
|
* Confirm registered user
|
|
15656
15592
|
*/
|
|
15657
15593
|
confirm(verificationCode) {
|
|
15658
|
-
return this.http.post(`${this.
|
|
15594
|
+
return this.http.post(`${this.apiUrl}/confirmation`, { verificationCode });
|
|
15659
15595
|
}
|
|
15660
15596
|
/**
|
|
15661
15597
|
* Search existing user
|
|
15662
15598
|
*/
|
|
15663
15599
|
search(email) {
|
|
15664
|
-
return this.http.get(`${this.
|
|
15665
|
-
.pipe(map((userBase) => plainToClass(User, userBase)));
|
|
15600
|
+
return this.http.get(`${this.apiUrl}/search?email=${email}`).pipe(map((userBase) => this.createModelInstance(userBase)));
|
|
15666
15601
|
}
|
|
15667
|
-
/**
|
|
15668
|
-
* Finish onboarding process
|
|
15669
|
-
*/
|
|
15670
15602
|
finishOnboarding(user) {
|
|
15671
|
-
return this.
|
|
15672
|
-
.pipe(map(() => {
|
|
15673
|
-
this.cache = user;
|
|
15674
|
-
this.cacheSubject.next(this.cache);
|
|
15675
|
-
}));
|
|
15603
|
+
return this.put(user, `${this.apiUrl}/status`);
|
|
15676
15604
|
}
|
|
15677
|
-
/**
|
|
15678
|
-
* Update user photo
|
|
15679
|
-
*/
|
|
15680
15605
|
updatePhoto(photo) {
|
|
15681
|
-
return this.http.post(`${this.
|
|
15682
|
-
.
|
|
15683
|
-
this.cache = plainToClass(User, Object.assign(this.cache, { photo: photoUrl }));
|
|
15684
|
-
this.cacheSubject.next(this.cache);
|
|
15606
|
+
return this.http.post(`${this.apiUrl}/photo?_method=PUT`, photo).pipe(map((photoUrl) => {
|
|
15607
|
+
this.setCache([Object.assign(this.cache, { photo: photoUrl })], true);
|
|
15685
15608
|
}));
|
|
15686
15609
|
}
|
|
15687
|
-
switchFinancialYear(year) {
|
|
15688
|
-
return this.http.get(`${this.environment.apiV2}/financial-year/switch`, { params: new HttpParams({ fromString: `financialYear=${year}` }) }).pipe(map(() => {
|
|
15689
|
-
localStorage.setItem('financialYear', year.toString());
|
|
15690
|
-
window.location.reload();
|
|
15691
|
-
}));
|
|
15692
|
-
}
|
|
15693
|
-
/**
|
|
15694
|
-
* clear service cache
|
|
15695
|
-
*/
|
|
15696
|
-
resetCache() {
|
|
15697
|
-
this.fetch().subscribe();
|
|
15698
|
-
}
|
|
15699
|
-
/**
|
|
15700
|
-
* @TODO Alex refactor, it's not createBasiq
|
|
15701
|
-
* Create basiq (if not exist yet) to provide access to basiq api
|
|
15702
|
-
*/
|
|
15703
15610
|
createBasiq() {
|
|
15704
|
-
var _a;
|
|
15705
|
-
// no need to create basiqId if already exist
|
|
15706
|
-
// @TODO Alex (TT-2431): move this check to component or separated method
|
|
15707
|
-
if ((_a = this.cache) === null || _a === void 0 ? void 0 : _a.basiqId) {
|
|
15708
|
-
return of(this.cache.basiqId);
|
|
15709
|
-
}
|
|
15710
15611
|
return this.http.post(`${this.environment.apiV2}/basiq/user`, {})
|
|
15711
15612
|
.pipe(map((basiqId) => {
|
|
15712
|
-
this.
|
|
15713
|
-
this.cacheSubject.next(this.cache);
|
|
15613
|
+
this.setCache([Object.assign(this.cache, { basiqId })], true);
|
|
15714
15614
|
return basiqId;
|
|
15715
15615
|
}));
|
|
15716
15616
|
}
|
|
@@ -15718,40 +15618,50 @@ class UserService {
|
|
|
15718
15618
|
* Update cache when user's service subscription is updated
|
|
15719
15619
|
*/
|
|
15720
15620
|
listenServiceSubscriptionUpdated() {
|
|
15721
|
-
this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.
|
|
15621
|
+
this.eventDispatcherService.on(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED).subscribe(() => this.refreshCache());
|
|
15722
15622
|
}
|
|
15723
15623
|
/**
|
|
15724
15624
|
* Update cache when user's basiq consent flag is updated
|
|
15725
15625
|
*/
|
|
15726
15626
|
listenBasiqConsentUpdated() {
|
|
15727
|
-
this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.
|
|
15627
|
+
this.eventDispatcherService.on(AppEventTypeEnum.BASIQ_CONSENT_UPDATED).subscribe(() => this.refreshCache());
|
|
15728
15628
|
}
|
|
15729
|
-
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
|
|
15733
|
-
|
|
15734
|
-
|
|
15735
|
-
|
|
15736
|
-
|
|
15737
|
-
|
|
15738
|
-
|
|
15739
|
-
|
|
15740
|
-
|
|
15741
|
-
|
|
15742
|
-
|
|
15743
|
-
|
|
15629
|
+
}
|
|
15630
|
+
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15631
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
15632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserService, decorators: [{
|
|
15633
|
+
type: Injectable,
|
|
15634
|
+
args: [{
|
|
15635
|
+
providedIn: 'root'
|
|
15636
|
+
}]
|
|
15637
|
+
}], ctorParameters: function () {
|
|
15638
|
+
return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
|
|
15639
|
+
type: Inject,
|
|
15640
|
+
args: ['environment']
|
|
15641
|
+
}] }];
|
|
15642
|
+
} });
|
|
15643
|
+
|
|
15644
|
+
class FinancialYearService {
|
|
15645
|
+
constructor(http, environment) {
|
|
15646
|
+
this.http = http;
|
|
15647
|
+
this.environment = environment;
|
|
15648
|
+
}
|
|
15649
|
+
switch(year) {
|
|
15650
|
+
return this.http.get(`${this.environment.apiV2}/financial-year/switch`, { params: new HttpParams({ fromString: `financialYear=${year}` }) }).pipe(map(() => {
|
|
15651
|
+
localStorage.setItem('financialYear', year.toString());
|
|
15652
|
+
window.location.reload();
|
|
15653
|
+
}));
|
|
15744
15654
|
}
|
|
15745
15655
|
}
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15656
|
+
FinancialYearService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15657
|
+
FinancialYearService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, providedIn: 'root' });
|
|
15658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FinancialYearService, decorators: [{
|
|
15749
15659
|
type: Injectable,
|
|
15750
15660
|
args: [{
|
|
15751
15661
|
providedIn: 'root'
|
|
15752
15662
|
}]
|
|
15753
15663
|
}], ctorParameters: function () {
|
|
15754
|
-
return [{ type: i1.HttpClient }, { type:
|
|
15664
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
15755
15665
|
type: Inject,
|
|
15756
15666
|
args: ['environment']
|
|
15757
15667
|
}] }];
|
|
@@ -15768,12 +15678,12 @@ class HoldingService extends RestService$1 {
|
|
|
15768
15678
|
this.roles = [UserRolesEnum.HOLDING_TANK];
|
|
15769
15679
|
}
|
|
15770
15680
|
listenEvents() {
|
|
15771
|
-
this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.
|
|
15681
|
+
this.listenCSE(HoldingSale, ['post', 'put', 'delete'], this.refreshCache);
|
|
15772
15682
|
}
|
|
15773
15683
|
}
|
|
15774
|
-
HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15775
|
-
HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15684
|
+
HoldingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15685
|
+
HoldingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, providedIn: 'root' });
|
|
15686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingService, decorators: [{
|
|
15777
15687
|
type: Injectable,
|
|
15778
15688
|
args: [{
|
|
15779
15689
|
providedIn: 'root'
|
|
@@ -15790,9 +15700,9 @@ class HoldingTypeService extends RestService$1 {
|
|
|
15790
15700
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
15791
15701
|
}
|
|
15792
15702
|
}
|
|
15793
|
-
HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15794
|
-
HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15703
|
+
HoldingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15704
|
+
HoldingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, providedIn: 'root' });
|
|
15705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeService, decorators: [{
|
|
15796
15706
|
type: Injectable,
|
|
15797
15707
|
args: [{
|
|
15798
15708
|
providedIn: 'root'
|
|
@@ -15809,9 +15719,9 @@ class HoldingSaleService extends RestService$1 {
|
|
|
15809
15719
|
this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
|
|
15810
15720
|
}
|
|
15811
15721
|
}
|
|
15812
|
-
HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15813
|
-
HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15814
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15722
|
+
HoldingSaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
15723
|
+
HoldingSaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, providedIn: 'root' });
|
|
15724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingSaleService, decorators: [{
|
|
15815
15725
|
type: Injectable,
|
|
15816
15726
|
args: [{
|
|
15817
15727
|
providedIn: 'root'
|
|
@@ -15906,9 +15816,9 @@ class HoldingTypeExchangeService extends DataService {
|
|
|
15906
15816
|
this.setCache(HoldingTypeExchanges);
|
|
15907
15817
|
}
|
|
15908
15818
|
}
|
|
15909
|
-
HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
15910
|
-
HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
15911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15819
|
+
HoldingTypeExchangeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15820
|
+
HoldingTypeExchangeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, providedIn: 'root' });
|
|
15821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HoldingTypeExchangeService, decorators: [{
|
|
15912
15822
|
type: Injectable,
|
|
15913
15823
|
args: [{
|
|
15914
15824
|
providedIn: 'root'
|
|
@@ -16012,9 +15922,9 @@ class IncomeSourceTypeService extends DataService {
|
|
|
16012
15922
|
this.setCache(IncomeSourceTypes);
|
|
16013
15923
|
}
|
|
16014
15924
|
}
|
|
16015
|
-
IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16016
|
-
IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15925
|
+
IncomeSourceTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15926
|
+
IncomeSourceTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, providedIn: 'root' });
|
|
15927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IncomeSourceTypeService, decorators: [{
|
|
16018
15928
|
type: Injectable,
|
|
16019
15929
|
args: [{
|
|
16020
15930
|
providedIn: 'root'
|
|
@@ -16036,9 +15946,9 @@ class ChartAccountsValueService extends DataService {
|
|
|
16036
15946
|
return this.getCache().find((ca) => ca.chartAccounts.id === chartAccountsId && new FinancialYear().year === ca.financialYear).value;
|
|
16037
15947
|
}
|
|
16038
15948
|
}
|
|
16039
|
-
ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
16040
|
-
ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
16041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
15949
|
+
ChartAccountsValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15950
|
+
ChartAccountsValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, providedIn: 'root' });
|
|
15951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChartAccountsValueService, decorators: [{
|
|
16042
15952
|
type: Injectable,
|
|
16043
15953
|
args: [{
|
|
16044
15954
|
providedIn: 'root'
|
|
@@ -18128,9 +18038,9 @@ class TaxReturnItemService extends DataService {
|
|
|
18128
18038
|
this.setCache(TaxReturnItems);
|
|
18129
18039
|
}
|
|
18130
18040
|
}
|
|
18131
|
-
TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18132
|
-
TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18041
|
+
TaxReturnItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18042
|
+
TaxReturnItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, providedIn: 'root' });
|
|
18043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TaxReturnItemService, decorators: [{
|
|
18134
18044
|
type: Injectable,
|
|
18135
18045
|
args: [{
|
|
18136
18046
|
providedIn: 'root'
|
|
@@ -18248,7 +18158,7 @@ class AccountSetupService {
|
|
|
18248
18158
|
get() {
|
|
18249
18159
|
if (!this.cache) {
|
|
18250
18160
|
this.cache = new AccountSetupItemCollection([]);
|
|
18251
|
-
this.clientIncomeTypesService.
|
|
18161
|
+
this.clientIncomeTypesService.getFirst()
|
|
18252
18162
|
.pipe(mergeMap((incomeTypes) => {
|
|
18253
18163
|
this.clientIncomeTypesId = incomeTypes.id;
|
|
18254
18164
|
return this.createBatch(incomeTypes);
|
|
@@ -18292,7 +18202,7 @@ class AccountSetupService {
|
|
|
18292
18202
|
*/
|
|
18293
18203
|
createBatch(incomeTypes) {
|
|
18294
18204
|
const batch = [];
|
|
18295
|
-
const user = this.userService.
|
|
18205
|
+
const user = this.userService.getCacheFirst();
|
|
18296
18206
|
// Salary item is completed when user added salary income source
|
|
18297
18207
|
if (incomeTypes.work && user.hasRoles(UserRolesEnum.WORK_TANK)) {
|
|
18298
18208
|
batch.push(this.create(AccountSetupItemsEnum.SALARY, this.getIncomeSources(true)),
|
|
@@ -18352,7 +18262,7 @@ class AccountSetupService {
|
|
|
18352
18262
|
* Show bank feeds item when user has only holding tank
|
|
18353
18263
|
*/
|
|
18354
18264
|
getBankFeedsItem() {
|
|
18355
|
-
const userRoles = this.userService.
|
|
18265
|
+
const userRoles = this.userService.getCacheFirst().roles;
|
|
18356
18266
|
const bankFeedsRoles = [UserRolesEnum.PROPERTY_TANK, UserRolesEnum.WORK_TANK, UserRolesEnum.SOLE_TANK];
|
|
18357
18267
|
if (!intersection(bankFeedsRoles, userRoles).length) {
|
|
18358
18268
|
return of(null);
|
|
@@ -18360,9 +18270,9 @@ class AccountSetupService {
|
|
|
18360
18270
|
return this.create(AccountSetupItemsEnum.BANK_FEEDS, this.bankAccountsService.getArray());
|
|
18361
18271
|
}
|
|
18362
18272
|
}
|
|
18363
|
-
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18364
|
-
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18273
|
+
AccountSetupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, deps: [{ token: ClientIncomeTypesService }, { token: PropertyService }, { token: IncomeSourceService }, { token: BankAccountService }, { token: TransactionAllocationService }, { token: VehicleClaimService }, { token: TransactionService }, { token: SoleBusinessService }, { token: HoldingService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18274
|
+
AccountSetupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, providedIn: 'root' });
|
|
18275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountSetupService, decorators: [{
|
|
18366
18276
|
type: Injectable,
|
|
18367
18277
|
args: [{
|
|
18368
18278
|
providedIn: 'root'
|
|
@@ -18388,9 +18298,9 @@ class RewardfulService {
|
|
|
18388
18298
|
});
|
|
18389
18299
|
}
|
|
18390
18300
|
}
|
|
18391
|
-
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18392
|
-
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18301
|
+
RewardfulService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18302
|
+
RewardfulService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, providedIn: 'root' });
|
|
18303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RewardfulService, decorators: [{
|
|
18394
18304
|
type: Injectable,
|
|
18395
18305
|
args: [{
|
|
18396
18306
|
providedIn: 'root'
|
|
@@ -18428,9 +18338,9 @@ class UserSwitcherService {
|
|
|
18428
18338
|
window.location.replace('/firm/dashboard');
|
|
18429
18339
|
}
|
|
18430
18340
|
}
|
|
18431
|
-
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18432
|
-
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18341
|
+
UserSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18342
|
+
UserSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, providedIn: 'root' });
|
|
18343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherService, decorators: [{
|
|
18434
18344
|
type: Injectable,
|
|
18435
18345
|
args: [{
|
|
18436
18346
|
providedIn: 'root'
|
|
@@ -18472,9 +18382,9 @@ class AssetsService {
|
|
|
18472
18382
|
return this.http.delete(`${this.environment.apiV2}/${asset.entityType}/${entityId}/${asset.type}/${asset.id}`);
|
|
18473
18383
|
}
|
|
18474
18384
|
}
|
|
18475
|
-
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18476
|
-
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18385
|
+
AssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, deps: [{ token: i1.HttpClient }, { token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18386
|
+
AssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, providedIn: 'root' });
|
|
18387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AssetsService, decorators: [{
|
|
18478
18388
|
type: Injectable,
|
|
18479
18389
|
args: [{
|
|
18480
18390
|
providedIn: 'root'
|
|
@@ -18535,9 +18445,9 @@ class BankTransactionCalculationService {
|
|
|
18535
18445
|
return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
|
|
18536
18446
|
}
|
|
18537
18447
|
}
|
|
18538
|
-
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18539
|
-
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18448
|
+
BankTransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18449
|
+
BankTransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' });
|
|
18450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
|
|
18541
18451
|
type: Injectable,
|
|
18542
18452
|
args: [{
|
|
18543
18453
|
providedIn: 'root'
|
|
@@ -18566,9 +18476,9 @@ class BankAccountCalculationService {
|
|
|
18566
18476
|
return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
|
|
18567
18477
|
}
|
|
18568
18478
|
}
|
|
18569
|
-
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18570
|
-
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18479
|
+
BankAccountCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, deps: [{ token: BankTransactionCalculationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18480
|
+
BankAccountCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' });
|
|
18481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BankAccountCalculationService, decorators: [{
|
|
18572
18482
|
type: Injectable,
|
|
18573
18483
|
args: [{
|
|
18574
18484
|
providedIn: 'root'
|
|
@@ -18596,9 +18506,9 @@ class ExportFormatterService {
|
|
|
18596
18506
|
}));
|
|
18597
18507
|
}
|
|
18598
18508
|
}
|
|
18599
|
-
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18600
|
-
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18509
|
+
ExportFormatterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, deps: [{ token: i1$1.CurrencyPipe }, { token: i1$1.PercentPipe }, { token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18510
|
+
ExportFormatterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, providedIn: 'root' });
|
|
18511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ExportFormatterService, decorators: [{
|
|
18602
18512
|
type: Injectable,
|
|
18603
18513
|
args: [{
|
|
18604
18514
|
providedIn: 'root'
|
|
@@ -18619,9 +18529,9 @@ class HeaderTitleService {
|
|
|
18619
18529
|
}), filter((route) => route.outlet === 'primary'), mergeMap((route) => route.data));
|
|
18620
18530
|
}
|
|
18621
18531
|
}
|
|
18622
|
-
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18623
|
-
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18532
|
+
HeaderTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, deps: [{ token: i4.Router }, { token: i4.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18533
|
+
HeaderTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, providedIn: 'root' });
|
|
18534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderTitleService, decorators: [{
|
|
18625
18535
|
type: Injectable,
|
|
18626
18536
|
args: [{
|
|
18627
18537
|
providedIn: 'root'
|
|
@@ -18655,9 +18565,9 @@ class IntercomService {
|
|
|
18655
18565
|
window.Intercom('boot', connectionCredentials);
|
|
18656
18566
|
}
|
|
18657
18567
|
}
|
|
18658
|
-
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18659
|
-
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18568
|
+
IntercomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18569
|
+
IntercomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, providedIn: 'root' });
|
|
18570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IntercomService, decorators: [{
|
|
18661
18571
|
type: Injectable,
|
|
18662
18572
|
args: [{
|
|
18663
18573
|
providedIn: 'root'
|
|
@@ -18729,9 +18639,9 @@ class PdfFromDomElementService {
|
|
|
18729
18639
|
.then((blob) => new File([blob], filename, { type: 'application/pdf' })));
|
|
18730
18640
|
}
|
|
18731
18641
|
}
|
|
18732
|
-
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18733
|
-
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18734
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18642
|
+
PdfFromDomElementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18643
|
+
PdfFromDomElementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, providedIn: 'root' });
|
|
18644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDomElementService, decorators: [{
|
|
18735
18645
|
type: Injectable,
|
|
18736
18646
|
args: [{
|
|
18737
18647
|
providedIn: 'root'
|
|
@@ -18825,9 +18735,9 @@ class PdfFromTableService {
|
|
|
18825
18735
|
.setTextColor(FILE_SETTINGS.text.colorPrimary);
|
|
18826
18736
|
}
|
|
18827
18737
|
}
|
|
18828
|
-
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18829
|
-
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18738
|
+
PdfFromTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18739
|
+
PdfFromTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, providedIn: 'root' });
|
|
18740
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromTableService, decorators: [{
|
|
18831
18741
|
type: Injectable,
|
|
18832
18742
|
args: [{
|
|
18833
18743
|
providedIn: 'root'
|
|
@@ -18861,9 +18771,9 @@ class PdfFromDataTableService extends PdfFromTableService {
|
|
|
18861
18771
|
return pdf;
|
|
18862
18772
|
}
|
|
18863
18773
|
}
|
|
18864
|
-
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18865
|
-
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18774
|
+
PdfFromDataTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, deps: [{ token: ExportFormatterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18775
|
+
PdfFromDataTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, providedIn: 'root' });
|
|
18776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromDataTableService, decorators: [{
|
|
18867
18777
|
type: Injectable,
|
|
18868
18778
|
args: [{
|
|
18869
18779
|
providedIn: 'root'
|
|
@@ -18896,9 +18806,9 @@ class PdfFromHtmlTableService extends PdfFromTableService {
|
|
|
18896
18806
|
return pdf;
|
|
18897
18807
|
}
|
|
18898
18808
|
}
|
|
18899
|
-
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18900
|
-
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18809
|
+
PdfFromHtmlTableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
18810
|
+
PdfFromHtmlTableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, providedIn: 'root' });
|
|
18811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PdfFromHtmlTableService, decorators: [{
|
|
18902
18812
|
type: Injectable,
|
|
18903
18813
|
args: [{
|
|
18904
18814
|
providedIn: 'root'
|
|
@@ -18923,9 +18833,9 @@ class PreloaderService {
|
|
|
18923
18833
|
this.activePreloaders.next(activePreloaders);
|
|
18924
18834
|
}
|
|
18925
18835
|
}
|
|
18926
|
-
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18927
|
-
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18928
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18836
|
+
PreloaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18837
|
+
PreloaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, providedIn: 'root' });
|
|
18838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderService, decorators: [{
|
|
18929
18839
|
type: Injectable,
|
|
18930
18840
|
args: [{
|
|
18931
18841
|
providedIn: 'root'
|
|
@@ -18952,9 +18862,9 @@ class EquityPositionChartService {
|
|
|
18952
18862
|
}))));
|
|
18953
18863
|
}
|
|
18954
18864
|
}
|
|
18955
|
-
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
18956
|
-
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
18957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
18865
|
+
EquityPositionChartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18866
|
+
EquityPositionChartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, providedIn: 'root' });
|
|
18867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EquityPositionChartService, decorators: [{
|
|
18958
18868
|
type: Injectable,
|
|
18959
18869
|
args: [{
|
|
18960
18870
|
providedIn: 'root'
|
|
@@ -19129,9 +19039,9 @@ class PropertyCalculationService {
|
|
|
19129
19039
|
}
|
|
19130
19040
|
}
|
|
19131
19041
|
}
|
|
19132
|
-
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19133
|
-
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19042
|
+
PropertyCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19043
|
+
PropertyCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, providedIn: 'root' });
|
|
19044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyCalculationService, decorators: [{
|
|
19135
19045
|
type: Injectable,
|
|
19136
19046
|
args: [{
|
|
19137
19047
|
providedIn: 'root'
|
|
@@ -19184,9 +19094,9 @@ class PropertyTransactionReportService {
|
|
|
19184
19094
|
.getWithoutBorrowingExpenses()));
|
|
19185
19095
|
}
|
|
19186
19096
|
}
|
|
19187
|
-
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19188
|
-
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19097
|
+
PropertyTransactionReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, deps: [{ token: PropertyService }, { token: TransactionService }, { token: DepreciationService }, { token: ChartAccountsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19098
|
+
PropertyTransactionReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, providedIn: 'root' });
|
|
19099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PropertyTransactionReportService, decorators: [{
|
|
19190
19100
|
type: Injectable,
|
|
19191
19101
|
args: [{
|
|
19192
19102
|
providedIn: 'root'
|
|
@@ -19257,9 +19167,9 @@ class TransactionCalculationService {
|
|
|
19257
19167
|
return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
|
|
19258
19168
|
}
|
|
19259
19169
|
}
|
|
19260
|
-
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19261
|
-
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19170
|
+
TransactionCalculationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19171
|
+
TransactionCalculationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' });
|
|
19172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TransactionCalculationService, decorators: [{
|
|
19263
19173
|
type: Injectable,
|
|
19264
19174
|
args: [{
|
|
19265
19175
|
providedIn: 'root'
|
|
@@ -19319,9 +19229,9 @@ class LogbookBestPeriodService {
|
|
|
19319
19229
|
});
|
|
19320
19230
|
}
|
|
19321
19231
|
}
|
|
19322
|
-
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19323
|
-
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19232
|
+
LogbookBestPeriodService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, deps: [{ token: VehicleClaimDetailsService }, { token: VehicleClaimService }, { token: VehicleLogbookService }, { token: EventDispatcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19233
|
+
LogbookBestPeriodService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, providedIn: 'root' });
|
|
19234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LogbookBestPeriodService, decorators: [{
|
|
19325
19235
|
type: Injectable,
|
|
19326
19236
|
args: [{
|
|
19327
19237
|
providedIn: 'root'
|
|
@@ -19400,9 +19310,9 @@ class XlsxService {
|
|
|
19400
19310
|
FileSaver.saveAs(data, `${fileName}.xlsx`);
|
|
19401
19311
|
}
|
|
19402
19312
|
}
|
|
19403
|
-
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19404
|
-
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19313
|
+
XlsxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19314
|
+
XlsxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, providedIn: 'root' });
|
|
19315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: XlsxService, decorators: [{
|
|
19406
19316
|
type: Injectable,
|
|
19407
19317
|
args: [{
|
|
19408
19318
|
providedIn: 'root'
|
|
@@ -19533,9 +19443,9 @@ class JwtInterceptor {
|
|
|
19533
19443
|
});
|
|
19534
19444
|
}
|
|
19535
19445
|
}
|
|
19536
|
-
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19537
|
-
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19446
|
+
JwtInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor, deps: [{ token: JwtService }, { token: AuthService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19447
|
+
JwtInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor });
|
|
19448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JwtInterceptor, decorators: [{
|
|
19539
19449
|
type: Injectable
|
|
19540
19450
|
}], ctorParameters: function () {
|
|
19541
19451
|
return [{ type: JwtService }, { type: AuthService }, { type: undefined, decorators: [{
|
|
@@ -19583,9 +19493,9 @@ class UserSwitcherInterceptor {
|
|
|
19583
19493
|
return next.handle(this.switch(request, this.userSwitcherService.get()));
|
|
19584
19494
|
}
|
|
19585
19495
|
}
|
|
19586
|
-
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19587
|
-
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19496
|
+
UserSwitcherInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor, deps: [{ token: UserSwitcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19497
|
+
UserSwitcherInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor });
|
|
19498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UserSwitcherInterceptor, decorators: [{
|
|
19589
19499
|
type: Injectable
|
|
19590
19500
|
}], ctorParameters: function () {
|
|
19591
19501
|
return [{ type: UserSwitcherService }, { type: undefined, decorators: [{
|
|
@@ -19874,9 +19784,9 @@ class PreloaderInterceptor {
|
|
|
19874
19784
|
return Object.values(ENDPOINTS).find((endpoint) => endpoint.test(requestPath));
|
|
19875
19785
|
}
|
|
19876
19786
|
}
|
|
19877
|
-
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19878
|
-
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19879
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19787
|
+
PreloaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, deps: [{ token: PreloaderService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19788
|
+
PreloaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor });
|
|
19789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PreloaderInterceptor, decorators: [{
|
|
19880
19790
|
type: Injectable
|
|
19881
19791
|
}], ctorParameters: function () { return [{ type: PreloaderService }]; } });
|
|
19882
19792
|
|
|
@@ -19892,7 +19802,7 @@ class BasiqTokenInterceptor {
|
|
|
19892
19802
|
if (!request.url.includes(BasiqService.basiqApiUrl)) {
|
|
19893
19803
|
return next.handle(request);
|
|
19894
19804
|
}
|
|
19895
|
-
return this.basiqTokenService.
|
|
19805
|
+
return this.basiqTokenService.getFirst().pipe(mergeMap((token) => next.handle(this.addToken(request, token))));
|
|
19896
19806
|
}
|
|
19897
19807
|
addToken(request, token) {
|
|
19898
19808
|
return request.clone({
|
|
@@ -19902,9 +19812,9 @@ class BasiqTokenInterceptor {
|
|
|
19902
19812
|
});
|
|
19903
19813
|
}
|
|
19904
19814
|
}
|
|
19905
|
-
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19906
|
-
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19907
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19815
|
+
BasiqTokenInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, deps: [{ token: BasiqTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19816
|
+
BasiqTokenInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor });
|
|
19817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqTokenInterceptor, decorators: [{
|
|
19908
19818
|
type: Injectable
|
|
19909
19819
|
}], ctorParameters: function () { return [{ type: BasiqTokenService }]; } });
|
|
19910
19820
|
|
|
@@ -19928,17 +19838,17 @@ class BasiqClientIdInterceptor {
|
|
|
19928
19838
|
});
|
|
19929
19839
|
}
|
|
19930
19840
|
}
|
|
19931
|
-
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19932
|
-
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
|
19933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19841
|
+
BasiqClientIdInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19842
|
+
BasiqClientIdInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor });
|
|
19843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BasiqClientIdInterceptor, decorators: [{
|
|
19934
19844
|
type: Injectable
|
|
19935
19845
|
}], ctorParameters: function () { return [{ type: UserService }]; } });
|
|
19936
19846
|
|
|
19937
19847
|
class InterceptorsModule {
|
|
19938
19848
|
}
|
|
19939
|
-
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
19940
|
-
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
19941
|
-
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
19849
|
+
InterceptorsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19850
|
+
InterceptorsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule });
|
|
19851
|
+
InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, providers: [
|
|
19942
19852
|
{
|
|
19943
19853
|
provide: HTTP_INTERCEPTORS,
|
|
19944
19854
|
useClass: CorelogicInterceptor,
|
|
@@ -19976,7 +19886,7 @@ InterceptorsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
19976
19886
|
multi: true
|
|
19977
19887
|
}
|
|
19978
19888
|
] });
|
|
19979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InterceptorsModule, decorators: [{
|
|
19980
19890
|
type: NgModule,
|
|
19981
19891
|
args: [{
|
|
19982
19892
|
providers: [
|
|
@@ -20034,12 +19944,12 @@ class TtCoreModule {
|
|
|
20034
19944
|
};
|
|
20035
19945
|
}
|
|
20036
19946
|
}
|
|
20037
|
-
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
|
20038
|
-
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
19947
|
+
TtCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19948
|
+
TtCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
20039
19949
|
InterceptorsModule] });
|
|
20040
|
-
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
19950
|
+
TtCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, imports: [CommonModule,
|
|
20041
19951
|
InterceptorsModule] });
|
|
20042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
|
19952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TtCoreModule, decorators: [{
|
|
20043
19953
|
type: NgModule,
|
|
20044
19954
|
args: [{
|
|
20045
19955
|
declarations: [],
|
|
@@ -20591,9 +20501,13 @@ function addressCorelogicValidator() {
|
|
|
20591
20501
|
}
|
|
20592
20502
|
// we need at least corelogic locality id to get growth percent
|
|
20593
20503
|
const locIdControl = form.get('corelogicLocId');
|
|
20504
|
+
const refIdControl = form.get('corelogicRefId');
|
|
20594
20505
|
if (locIdControl.enabled && locIdControl.hasError('required')) {
|
|
20595
20506
|
return { address: 'City, state or postal code not specified' };
|
|
20596
20507
|
}
|
|
20508
|
+
if (refIdControl.enabled && refIdControl.hasError('required')) {
|
|
20509
|
+
return { address: 'Street number not specified' };
|
|
20510
|
+
}
|
|
20597
20511
|
return null;
|
|
20598
20512
|
};
|
|
20599
20513
|
}
|
|
@@ -20612,7 +20526,7 @@ class AddressForm extends AbstractForm {
|
|
|
20612
20526
|
type: new UntypedFormControl((address === null || address === void 0 ? void 0 : address.type) || AddressTypeEnum.STREET, Validators.required),
|
|
20613
20527
|
// corelogic fields (required for Australia and disabled for other countries)
|
|
20614
20528
|
corelogicLocId: new UntypedFormControl({ value: address === null || address === void 0 ? void 0 : address.corelogicLocId, disabled: true }, Validators.required),
|
|
20615
|
-
corelogicRefId: new UntypedFormControl({ value: address === null || address === void 0 ? void 0 : address.corelogicRefId, disabled: true }),
|
|
20529
|
+
corelogicRefId: new UntypedFormControl({ value: address === null || address === void 0 ? void 0 : address.corelogicRefId, disabled: true }, Validators.required),
|
|
20616
20530
|
// manual fields (using when address not found in corelogic)
|
|
20617
20531
|
unitNumber: new UntypedFormControl({ value: address === null || address === void 0 ? void 0 : address.unitNumber, disabled: true }),
|
|
20618
20532
|
address: new UntypedFormControl({ value: address === null || address === void 0 ? void 0 : address.address, disabled: true }, Validators.required),
|
|
@@ -23662,10 +23576,13 @@ var MessagesEnum;
|
|
|
23662
23576
|
})(MessagesEnum || (MessagesEnum = {}));
|
|
23663
23577
|
|
|
23664
23578
|
// @TODO Alex: Create indexes everywhere and break this file to imports from indexes
|
|
23579
|
+
/**
|
|
23580
|
+
* Public API Surface of tt-core
|
|
23581
|
+
*/
|
|
23665
23582
|
|
|
23666
23583
|
/**
|
|
23667
23584
|
* Generated bundle index. Do not edit.
|
|
23668
23585
|
*/
|
|
23669
23586
|
|
|
23670
|
-
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
23587
|
+
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, ReceiptService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionReceipt, TransactionReceiptService, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
23671
23588
|
//# sourceMappingURL=taxtank-core.mjs.map
|