taxtank-core 0.28.86 → 0.28.88
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 +65 -24
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/property/property-category-movement.collection.js +2 -2
- package/esm2015/lib/models/event/app-event-type.enum.js +20 -18
- package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +12 -1
- package/esm2015/lib/services/http/subscription/subscription.service.js +1 -2
- package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +21 -1
- package/esm2015/lib/services/http/user/user.service.js +8 -1
- package/fesm2015/taxtank-core.js +57 -20
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/event/app-event-type.enum.d.ts +19 -17
- package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +4 -1
- package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts +3 -0
- package/lib/services/http/user/user.service.d.ts +4 -0
- package/package.json +1 -1
|
@@ -51,21 +51,23 @@ export declare enum AppEventTypeEnum {
|
|
|
51
51
|
SOLE_DETAILS_UPDATED = 49,
|
|
52
52
|
SOLE_INVOICE_PUBLISHED = 50,
|
|
53
53
|
TAX_REVIEW_UPDATED = 51,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
TRANSACTION_ALLOCATION_CREATED = 52,
|
|
55
|
+
TRANSACTION_ALLOCATION_DELETED = 53,
|
|
56
|
+
TRANSACTION_CREATED = 54,
|
|
57
|
+
TRANSACTION_DELETED = 55,
|
|
58
|
+
TRANSACTION_UPDATED = 56,
|
|
59
|
+
TRANSACTION_UPDATED_WITH_RECEIPT = 57,
|
|
60
|
+
TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 58,
|
|
61
|
+
TRANSACTION_RECEIPT_CREATED = 59,
|
|
62
|
+
TRANSACTION_RECEIPT_DELETED = 60,
|
|
63
|
+
TRANSACTIONS_CREATED = 61,
|
|
64
|
+
USER_UPDATED = 62,
|
|
65
|
+
VEHICLE_CLAIM_UPDATED = 63,
|
|
66
|
+
VEHICLE_CLAIM_CREATED = 64,
|
|
67
|
+
VEHICLE_CLAIM_DETAILS_UPDATED = 65,
|
|
68
|
+
VEHICLE_CLAIM_DETAILS_CREATED = 66,
|
|
69
|
+
VEHICLE_LOGBOOK_CREATED = 67,
|
|
70
|
+
VEHICLE_LOGBOOK_UPDATED = 68,
|
|
71
|
+
VEHICLE_LOGBOOK_DELETED = 69,
|
|
72
|
+
VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 70
|
|
71
73
|
}
|
|
@@ -3,11 +3,13 @@ import { SoleInvoice as SoleInvoiceBase } from '../../../../db/Models/sole/sole-
|
|
|
3
3
|
import { SoleInvoice } from '../../../../models';
|
|
4
4
|
import { SoleInvoiceStatusesEnum } from '../../../../db/Enums/sole-invoice-statuses.enum';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
|
+
import { IEventListener } from '../../../../interfaces/event-listener.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SoleInvoiceService extends RestService<SoleInvoiceBase, SoleInvoice> {
|
|
8
|
+
export declare class SoleInvoiceService extends RestService<SoleInvoiceBase, SoleInvoice> implements IEventListener {
|
|
8
9
|
modelClass: typeof SoleInvoice;
|
|
9
10
|
url: string;
|
|
10
11
|
isHydra: boolean;
|
|
12
|
+
listenEvents(): void;
|
|
11
13
|
add(invoice: SoleInvoice): Observable<SoleInvoice>;
|
|
12
14
|
update(invoice: SoleInvoice): Observable<SoleInvoice>;
|
|
13
15
|
updateStatus(invoice: SoleInvoice, status: SoleInvoiceStatusesEnum): Observable<SoleInvoice>;
|
|
@@ -18,6 +20,7 @@ export declare class SoleInvoiceService extends RestService<SoleInvoiceBase, Sol
|
|
|
18
20
|
* Basically needed to create a new invoice to show its number when the invoice has not yet been sent to the backend
|
|
19
21
|
*/
|
|
20
22
|
getNewInvoiceNumber(): number;
|
|
23
|
+
private listenAllocations;
|
|
21
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SoleInvoiceService, never>;
|
|
22
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<SoleInvoiceService>;
|
|
23
26
|
}
|
package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export declare class TransactionAllocationService extends RestService<Transactio
|
|
|
16
16
|
* Add single transaction allocation
|
|
17
17
|
*/
|
|
18
18
|
add(allocation: TransactionAllocation): Observable<TransactionAllocation>;
|
|
19
|
+
addBatch(models: TransactionAllocation[], queryParams?: object): Observable<TransactionAllocation[]>;
|
|
20
|
+
delete(model: TransactionAllocation): Observable<void>;
|
|
21
|
+
deleteBatch(models: TransactionAllocation[]): Observable<void>;
|
|
19
22
|
/**
|
|
20
23
|
* get list of transactions allocations related with passed bank transactions list
|
|
21
24
|
*/
|
|
@@ -18,6 +18,10 @@ export declare class UserService implements IEventListener {
|
|
|
18
18
|
cache: User;
|
|
19
19
|
cacheSubject: ReplaySubject<User>;
|
|
20
20
|
constructor(http: HttpClient, jwtService: JwtService, eventDispatcherService: EventDispatcherService, sseService: SseService, environment: any);
|
|
21
|
+
/**
|
|
22
|
+
* never return cache directly to prevent update
|
|
23
|
+
*/
|
|
24
|
+
getCache(): User;
|
|
21
25
|
listenEvents(): void;
|
|
22
26
|
get(): Observable<User>;
|
|
23
27
|
/**
|