taxtank-core 0.28.96 → 0.28.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taxtank-core.umd.js +2614 -2325
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/index.js +3 -1
- package/esm2015/lib/db/Models/abstract-model.js +2 -1
- package/esm2015/lib/db/Models/observable-model.js +10 -0
- package/esm2015/lib/db/Models/property/property.js +3 -3
- package/esm2015/lib/db/Models/sole/bas-report.js +3 -2
- package/esm2015/lib/functions/array/index.js +2 -1
- package/esm2015/lib/functions/array/to-array.js +7 -0
- package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
- package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
- package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
- package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
- package/esm2015/lib/interceptors/interceptors.module.js +4 -4
- package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
- package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
- package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
- package/esm2015/lib/models/event/app-event.js +12 -1
- package/esm2015/lib/models/property/property.js +3 -1
- package/esm2015/lib/models/user/user-roles.const.js +9 -6
- package/esm2015/lib/models/user/user.js +15 -4
- package/esm2015/lib/services/account-setup/account-setup.service.js +6 -5
- package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
- package/esm2015/lib/services/asset/assets.service.js +3 -3
- package/esm2015/lib/services/auth/auth.service.js +3 -3
- package/esm2015/lib/services/auth/jwt.service.js +3 -3
- package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
- package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/event/event-dispatcher.service.js +15 -4
- package/esm2015/lib/services/event/sse.service.js +3 -3
- package/esm2015/lib/services/export/export-formatter.service.js +3 -3
- package/esm2015/lib/services/header-title/header-title.service.js +3 -3
- package/esm2015/lib/services/http/address/address.service.js +3 -3
- package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +5 -5
- package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +5 -5
- package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +5 -5
- package/esm2015/lib/services/http/bank/bank.service.js +5 -5
- package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
- package/esm2015/lib/services/http/bank/basiq/basiq.service.js +5 -5
- package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +5 -5
- package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
- package/esm2015/lib/services/http/chat/chat.service.js +5 -5
- package/esm2015/lib/services/http/chat/message/message.service.js +5 -5
- package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +5 -5
- package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +5 -5
- package/esm2015/lib/services/http/document/document.service.js +5 -5
- package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
- package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +5 -5
- package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +5 -5
- package/esm2015/lib/services/http/firm/employee/employee.service.js +5 -5
- package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +5 -5
- package/esm2015/lib/services/http/firm/firm.service.js +3 -3
- package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
- package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +5 -5
- package/esm2015/lib/services/http/income-source/income-source.service.js +5 -5
- package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +5 -5
- package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +5 -5
- package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
- package/esm2015/lib/services/http/loan/loan.service.js +5 -5
- package/esm2015/lib/services/http/property/property-category/property-category.service.js +5 -5
- package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +5 -5
- package/esm2015/lib/services/http/property/property-document/property-document.service.js +5 -5
- package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +5 -5
- package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +5 -5
- package/esm2015/lib/services/http/property/property-share/property-share.service.js +5 -5
- package/esm2015/lib/services/http/property/property.service.js +32 -49
- package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
- package/esm2015/lib/services/http/rest/http-method.type.js +2 -0
- package/esm2015/lib/services/http/rest/index.js +3 -1
- package/esm2015/lib/services/http/rest/rest-method.type.js +2 -0
- package/esm2015/lib/services/http/rest/rest-old.service.js +225 -0
- package/esm2015/lib/services/http/rest/rest.service.js +146 -149
- package/esm2015/lib/services/http/service-notification/service-notification.service.js +5 -5
- package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +5 -5
- package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +5 -5
- package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +5 -5
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +5 -5
- package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +5 -5
- package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +5 -5
- package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +5 -5
- package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +5 -5
- package/esm2015/lib/services/http/subscription/service-price.service.js +5 -5
- package/esm2015/lib/services/http/subscription/subscription.service.js +11 -5
- package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +5 -5
- package/esm2015/lib/services/http/tax-review/tax-review.service.js +5 -5
- package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +5 -5
- package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
- package/esm2015/lib/services/http/transaction/transaction.service.js +5 -5
- package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
- package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
- package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +5 -5
- package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +5 -5
- package/esm2015/lib/services/http/user/user.service.js +3 -3
- package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +5 -5
- package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
- package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +5 -5
- package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +5 -5
- package/esm2015/lib/services/http/vehicle/vehicle.service.js +5 -5
- package/esm2015/lib/services/intercom/intercom.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
- package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
- package/esm2015/lib/services/preloader/preloader.service.js +3 -3
- package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
- package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
- package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
- package/esm2015/lib/services/report/property/property-transaction-report.service.js +5 -6
- package/esm2015/lib/services/toast/toast.service.js +3 -3
- package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
- package/esm2015/lib/services/user/user-switcher.service.js +3 -3
- package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
- package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
- package/esm2015/lib/tt-core.module.js +4 -4
- package/fesm2015/taxtank-core.js +2238 -1985
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/index.d.ts +2 -0
- package/lib/db/Models/observable-model.d.ts +8 -0
- package/lib/db/Models/property/property.d.ts +2 -2
- package/lib/db/Models/sole/bas-report.d.ts +2 -1
- package/lib/functions/array/index.d.ts +1 -0
- package/lib/functions/array/to-array.d.ts +4 -0
- package/lib/models/event/app-event.d.ts +9 -0
- package/lib/models/property/property.d.ts +2 -0
- package/lib/models/user/user-roles.const.d.ts +3 -0
- package/lib/models/user/user.d.ts +5 -2
- package/lib/services/event/event-dispatcher.service.d.ts +9 -1
- package/lib/services/http/bank/bank-account/bank-account.service.d.ts +1 -1
- package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +1 -1
- package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts +1 -1
- package/lib/services/http/bank/bank.service.d.ts +1 -1
- package/lib/services/http/bank/basiq/basiq.service.d.ts +1 -1
- package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts +1 -1
- package/lib/services/http/chat/chat.service.d.ts +1 -1
- package/lib/services/http/chat/message/message.service.d.ts +1 -1
- package/lib/services/http/depreciation/depreciation.service.d.ts +1 -1
- package/lib/services/http/document/document-folder/document-folder.service.d.ts +1 -1
- package/lib/services/http/document/document.service.d.ts +1 -1
- package/lib/services/http/firm/client-invite/client-invite.service.d.ts +1 -1
- package/lib/services/http/firm/client-movement/client-movement.service.d.ts +1 -1
- package/lib/services/http/firm/employee/employee.service.d.ts +1 -1
- package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts +1 -1
- package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts +1 -1
- package/lib/services/http/income-source/income-source.service.d.ts +1 -1
- package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts +1 -1
- package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts +1 -1
- package/lib/services/http/loan/loan.service.d.ts +1 -1
- package/lib/services/http/property/property-category/property-category.service.d.ts +1 -1
- package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts +1 -1
- package/lib/services/http/property/property-document/property-document.service.d.ts +1 -1
- package/lib/services/http/property/property-sale/property-sale.service.d.ts +1 -1
- package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts +1 -1
- package/lib/services/http/property/property-share/property-share.service.d.ts +1 -1
- package/lib/services/http/property/property.service.d.ts +8 -11
- package/lib/services/http/rest/http-method.type.d.ts +1 -0
- package/lib/services/http/rest/index.d.ts +2 -0
- package/lib/services/http/rest/rest-method.type.d.ts +1 -0
- package/lib/services/http/rest/rest-old.service.d.ts +110 -0
- package/lib/services/http/rest/rest.service.d.ts +71 -62
- package/lib/services/http/service-notification/service-notification.service.d.ts +1 -1
- package/lib/services/http/sole/bas-report/bas-report.service.d.ts +1 -1
- package/lib/services/http/sole/sole-business/sole-business.service.d.ts +1 -1
- package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts +1 -1
- package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts +1 -1
- package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts +1 -1
- package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts +1 -1
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +1 -1
- package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts +1 -1
- package/lib/services/http/subscription/service-price.service.d.ts +1 -1
- package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts +1 -1
- package/lib/services/http/tax-review/tax-review.service.d.ts +1 -1
- package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts +1 -1
- package/lib/services/http/transaction/transaction.service.d.ts +1 -1
- package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts +1 -1
- package/lib/services/http/user/user-event-type/user-event-type.service.d.ts +1 -1
- package/lib/services/http/user/users-invite/users-invite.service.d.ts +1 -1
- package/lib/services/http/vehicle/vehicle-claim.service.d.ts +1 -1
- package/lib/services/http/vehicle/vehicle-logbook.service.d.ts +1 -1
- package/lib/services/http/vehicle/vehicle.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,114 +1,123 @@
|
|
|
1
1
|
import { Observable, ReplaySubject } from 'rxjs';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { EventDispatcherService } from '../../event/event-dispatcher.service';
|
|
4
|
-
import { ToastService } from '../../toast/toast.service';
|
|
5
4
|
import { IEventListener } from '../../../interfaces/event-listener.interface';
|
|
5
|
+
import { Collection } from '../../../collections/collection';
|
|
6
|
+
import { AbstractModel } from '../../../db/Models/abstract-model';
|
|
7
|
+
import { ObservableModel } from '../../../db/Models/observable-model';
|
|
8
|
+
import { RestMethod } from './rest-method.type';
|
|
9
|
+
import { HttpMethod } from './http-method.type';
|
|
6
10
|
import * as i0 from "@angular/core";
|
|
7
11
|
/**
|
|
8
12
|
* Abstract base service that implements common services functionality
|
|
9
13
|
* and describe abstract methods/properties that have to be implemented in child services
|
|
10
14
|
* Model - entity service is working with
|
|
11
15
|
* BaseModel - base entity model that extends by Model
|
|
12
|
-
*
|
|
13
|
-
* @TODO TT-1777 Alex: implement smart system of default toast messages
|
|
14
|
-
* @TODO TT-1777 Alex: work not only with array/collection but with single objects
|
|
15
|
-
* @TODO TT-1777 Alex: automatic events generation (eventDispatcher)
|
|
16
|
-
* @TODO TT-1777 Alex: optional rest methods (not all services have all 4 methods)
|
|
16
|
+
* CollectionModel - entity collection class
|
|
17
17
|
*/
|
|
18
|
-
export declare abstract class RestService<BaseModel, Model extends BaseModel
|
|
18
|
+
export declare abstract class RestService<BaseModel extends AbstractModel, Model extends BaseModel, CollectionModel extends Collection<Model>> implements IEventListener {
|
|
19
19
|
protected http: HttpClient;
|
|
20
20
|
protected eventDispatcherService: EventDispatcherService;
|
|
21
21
|
protected environment: any;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Url part for service entity API
|
|
24
|
+
*/
|
|
25
|
+
protected abstract entityUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* Model class for instances creating
|
|
28
|
+
*/
|
|
24
29
|
abstract modelClass: any;
|
|
25
|
-
protected cache: Model[];
|
|
26
|
-
protected cacheSubject: ReplaySubject<Model[]>;
|
|
27
|
-
protected isHydra: boolean;
|
|
28
|
-
messageCreated: string;
|
|
29
|
-
messageCreatedBatch: string;
|
|
30
|
-
messageUpdated: string;
|
|
31
|
-
messageUpdatedBatch: string;
|
|
32
|
-
messageDeleted: string;
|
|
33
|
-
messageDeletedBatch: string;
|
|
34
|
-
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService);
|
|
35
30
|
/**
|
|
36
|
-
*
|
|
31
|
+
* Collection Model class for instances creating
|
|
37
32
|
*/
|
|
38
|
-
|
|
33
|
+
abstract collectionClass: any;
|
|
39
34
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @param id ID of required item
|
|
35
|
+
* Cached array of service class instances
|
|
42
36
|
*/
|
|
43
|
-
|
|
44
|
-
find(id: number): Model;
|
|
37
|
+
protected cache: CollectionModel;
|
|
45
38
|
/**
|
|
46
|
-
*
|
|
39
|
+
* Subject for service cache
|
|
47
40
|
*/
|
|
48
|
-
|
|
41
|
+
protected cacheSubject: ReplaySubject<CollectionModel>;
|
|
49
42
|
/**
|
|
50
|
-
*
|
|
43
|
+
* Flag for work with API platform
|
|
51
44
|
*/
|
|
52
|
-
|
|
45
|
+
protected isApiPlatform: boolean;
|
|
53
46
|
/**
|
|
54
|
-
*
|
|
47
|
+
* List of methods unavailable for current API
|
|
55
48
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
disabledMethods: RestMethod[];
|
|
50
|
+
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
|
|
51
|
+
protected get apiUrl(): string;
|
|
52
|
+
get(): Observable<CollectionModel>;
|
|
53
|
+
getSingle(): Observable<Model>;
|
|
59
54
|
/**
|
|
60
|
-
*
|
|
61
|
-
* @param models Array of new items for saving
|
|
62
|
-
* @param queryParams query parameters for request
|
|
63
|
-
* @TODO Alex TT-1777 rename to postBatch
|
|
55
|
+
* Create a new Model instance in database
|
|
64
56
|
*/
|
|
65
|
-
|
|
57
|
+
post(model: Model): Observable<Model>;
|
|
66
58
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @param model Existing instance for updating
|
|
69
|
-
* @param queryParams query parameters for request
|
|
70
|
-
* @TODO Alex TT-1777 rename to put
|
|
59
|
+
* Create multiple new Model instances in database
|
|
71
60
|
*/
|
|
72
|
-
|
|
61
|
+
postBatch(models: Model[]): Observable<Model[]>;
|
|
73
62
|
/**
|
|
74
|
-
*
|
|
75
|
-
* @param models Array of items for updating
|
|
76
|
-
* @param queryParams query parameters for request
|
|
77
|
-
* TODO Alex TT-1777 rename to putBatch
|
|
63
|
+
* Change an existing Model instance in database
|
|
78
64
|
*/
|
|
79
|
-
|
|
65
|
+
put(model: Model): Observable<Model>;
|
|
80
66
|
/**
|
|
81
|
-
*
|
|
82
|
-
|
|
67
|
+
* Change multiple existing Model instances in database
|
|
68
|
+
*/
|
|
69
|
+
putBatch(models: Model[]): Observable<Model[]>;
|
|
70
|
+
/**
|
|
71
|
+
* Remove a Model instance from database
|
|
83
72
|
*/
|
|
84
73
|
delete(model: Model): Observable<void>;
|
|
85
74
|
/**
|
|
86
|
-
*
|
|
87
|
-
* @param models Class instances array for deleting
|
|
75
|
+
* Remove multiple Model instances from database
|
|
88
76
|
*/
|
|
89
77
|
deleteBatch(models: Model[]): Observable<void>;
|
|
90
78
|
/**
|
|
91
|
-
*
|
|
79
|
+
* Refresh cache with actual backend data
|
|
92
80
|
*/
|
|
93
81
|
resetCache(): void;
|
|
94
82
|
/**
|
|
95
|
-
*
|
|
83
|
+
* Get data from backend and fill the cache
|
|
84
|
+
*/
|
|
85
|
+
protected fetch(): Observable<CollectionModel>;
|
|
86
|
+
/**
|
|
87
|
+
* Handle response data - update cache and dispatch event if it is needed
|
|
88
|
+
*/
|
|
89
|
+
private handleResponse;
|
|
90
|
+
/**
|
|
91
|
+
* Update cache with passed items. Add/Update detects automatically, Delete via optional flag
|
|
96
92
|
*/
|
|
97
|
-
protected
|
|
93
|
+
protected updateCache(items: Model[], method: HttpMethod): void;
|
|
98
94
|
/**
|
|
99
|
-
*
|
|
95
|
+
* Generate and dispatch rest event
|
|
100
96
|
*/
|
|
101
|
-
protected
|
|
97
|
+
protected dispatchEvent(method: HttpMethod, items: Model[]): void;
|
|
102
98
|
/**
|
|
103
99
|
* Create new instance of class
|
|
104
|
-
* @param model The class
|
|
105
|
-
* @param
|
|
100
|
+
* @param model The class whose instance to be created
|
|
101
|
+
* @param plain Single object or array from which will be created model instance(s)
|
|
102
|
+
*/
|
|
103
|
+
protected createModelInstance(model: new (bm: BaseModel) => Model, plain: BaseModel): Model;
|
|
104
|
+
protected createCollectionInstance(collectionClass: new (items: Model[]) => CollectionModel, items: Model[]): CollectionModel;
|
|
105
|
+
/**
|
|
106
|
+
* Check if method is not disabled. Throw exception otherwise.
|
|
107
|
+
* Some entities does not have endpoints for all methods.
|
|
108
|
+
*/
|
|
109
|
+
private handleAccessError;
|
|
110
|
+
/**
|
|
111
|
+
* Subscribe to http events and run callback
|
|
112
|
+
* @param type The class whose changes should be listened for
|
|
113
|
+
* @param methods The list of http methods should be listened for
|
|
114
|
+
* @param callback The function to be called when event triggered
|
|
106
115
|
*/
|
|
107
|
-
protected
|
|
116
|
+
protected listenCSE(modelClass: typeof ObservableModel, methods: RestMethod[], callback: Function): void;
|
|
108
117
|
/**
|
|
109
118
|
* Method that call all listeners. Empty by default. Should be redefined by child services if required
|
|
110
119
|
*/
|
|
111
120
|
listenEvents(): void;
|
|
112
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RestService<any, any>, never>;
|
|
113
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RestService<any, any>>;
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RestService<any, any, any>, never>;
|
|
122
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RestService<any, any, any>>;
|
|
114
123
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServiceNotification as NotificationBase } from '../../../db/Models/service-notification';
|
|
2
2
|
import { Notification } from '../../../models/notification/notification';
|
|
3
3
|
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import { RestService } from '../rest/rest.service';
|
|
4
|
+
import { RestService } from '../rest/rest-old.service';
|
|
5
5
|
import { EventDispatcherService } from '../../event/event-dispatcher.service';
|
|
6
6
|
import { SseService } from '../../event/sse.service';
|
|
7
7
|
import { ToastService } from '../../toast/toast.service';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestService } from '../../rest/rest.service';
|
|
1
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
2
2
|
import { BasReport as BasReportBase } from '../../../../db/Models/sole/bas-report';
|
|
3
3
|
import { BasReport } from '../../../../models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestService } from '../../rest/rest.service';
|
|
1
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
2
2
|
import { SoleBusiness as SoleBusinessBase } from '../../../../db/Models/sole/sole-business';
|
|
3
3
|
import { SoleBusiness } from '../../../../models';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestService } from '../../rest/rest.service';
|
|
1
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
2
2
|
import { SoleBusinessActivity as SoleBusinessActivityBase } from '../../../../db/Models/sole/sole-business-activity';
|
|
3
3
|
import { SoleBusinessActivity } from '../../../../models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestService } from '../../rest/rest.service';
|
|
1
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
2
2
|
import { SoleBusinessLoss as SoleBusinessLossBase } from '../../../../db/Models/sole/sole-business-loss';
|
|
3
3
|
import { SoleBusinessLoss } from '../../../../models';
|
|
4
4
|
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestService } from '../../rest/rest.service';
|
|
1
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
2
2
|
import { SoleContact as SoleContactBase } from '../../../../db/Models/sole/sole-contact';
|
|
3
3
|
import { SoleContact } from '../../../../models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestService } from '../../rest/rest.service';
|
|
1
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
2
2
|
import { SoleInvoice as SoleInvoiceBase } from '../../../../db/Models/sole/sole-invoice';
|
|
3
3
|
import { SoleInvoice } from '../../../../models';
|
|
4
4
|
import { SoleInvoiceStatusesEnum } from '../../../../db/Enums/sole-invoice-statuses.enum';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestService } from '../../rest/rest.service';
|
|
1
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
2
2
|
import { SoleInvoiceTemplate as SoleInvoiceTemplateBase } from '../../../../db/Models/sole/sole-invoice-template';
|
|
3
3
|
import { SoleInvoiceTemplate } from '../../../../models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ServicePrice as ServicePriceBase } from '../../../db/Models/subscription/service-price';
|
|
2
2
|
import { ServicePrice } from '../../../models/service-subscription/service-price';
|
|
3
|
-
import { RestService } from '../rest/rest.service';
|
|
3
|
+
import { RestService } from '../rest/rest-old.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Service that handling banks logic
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TaxReview as TaxReviewBase } from '../../../../db/Models/firm/accountant/tax-review';
|
|
2
|
-
import { RestService } from '../../rest/rest.service';
|
|
2
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
3
3
|
import { TaxReview } from '../../../../models/tax-review/tax-review';
|
|
4
4
|
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TaxReview as TaxReviewBase } from '../../../db/Models/firm/accountant/tax-review';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { RestService } from '../rest/rest.service';
|
|
3
|
+
import { RestService } from '../rest/rest-old.service';
|
|
4
4
|
import { TaxReview } from '../../../models/tax-review/tax-review';
|
|
5
5
|
import { IEventListener } from '../../../interfaces/event-listener.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransactionAllocation as TransactionAllocationBase } from '../../../../db/Models/transaction/transaction-allocation';
|
|
2
2
|
import { TransactionAllocation } from '../../../../models/transaction/transaction-allocation';
|
|
3
3
|
import { Transaction } from '../../../../models/transaction/transaction';
|
|
4
|
-
import { RestService } from '../../rest/rest.service';
|
|
4
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Transaction as TransactionBase } from '../../../db/Models/transaction/transaction';
|
|
4
|
-
import { RestService } from '../rest/rest.service';
|
|
4
|
+
import { RestService } from '../rest/rest-old.service';
|
|
5
5
|
import { Transaction } from '../../../models/transaction/transaction';
|
|
6
6
|
import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
|
|
7
7
|
import { ChartAccountsTaxLabelsEnum } from '../../../models/chart-accounts/chart-accounts-tax-labels.enum';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserEventSetting } from '../../../../models/user-event/user-event-setting';
|
|
2
2
|
import { UserEventSetting as UserEventSettingBase } from '../../../../db/Models/user/user-event-setting';
|
|
3
|
-
import { RestService } from '../../rest/rest.service';
|
|
3
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class UserEventSettingService extends RestService<UserEventSettingBase, UserEventSetting> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserEventType as UserEventTypeBase } from '../../../../db/Models/user/user-event-type';
|
|
2
2
|
import { UserEventType } from '../../../../models/user-event/user-event-type';
|
|
3
|
-
import { RestService } from '../../rest/rest.service';
|
|
3
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class UserEventTypeService extends RestService<UserEventTypeBase, UserEventType> {
|
|
6
6
|
modelClass: typeof UserEventType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RestService } from '../../rest/rest.service';
|
|
1
|
+
import { RestService } from '../../rest/rest-old.service';
|
|
2
2
|
import { RegistrationInvite as RegistrationInviteBase } from '../../../../db/Models/user/registration-invite';
|
|
3
3
|
import { RegistrationInvite } from '../../../../models/registration-invite/registration-invite';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VehicleClaim as VehicleClaimBase } from '../../../db/Models/vehicle/vehicle-claim';
|
|
2
2
|
import { VehicleClaim } from '../../../models';
|
|
3
|
-
import { RestService } from '../rest/rest.service';
|
|
3
|
+
import { RestService } from '../rest/rest-old.service';
|
|
4
4
|
import { IEventListener } from '../../../interfaces/event-listener.interface';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VehicleLogbook as VehicleLogbookBase } from '../../../db/Models/vehicle/vehicle-logbook';
|
|
2
2
|
import { VehicleLogbook } from '../../../models';
|
|
3
|
-
import { RestService } from '../rest/rest.service';
|
|
3
|
+
import { RestService } from '../rest/rest-old.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Vehicle logbook service. Allows user to add, update or delete vehicle trips
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Vehicle as VehicleBase } from '../../../db/Models/vehicle/vehicle';
|
|
2
2
|
import { Vehicle } from '../../../models';
|
|
3
|
-
import { RestService } from '../rest/rest.service';
|
|
3
|
+
import { RestService } from '../rest/rest-old.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Service that allows to work with WorkTank operations
|