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.
@@ -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
- TRANSACTION_CREATED = 52,
55
- TRANSACTION_DELETED = 53,
56
- TRANSACTION_UPDATED = 54,
57
- TRANSACTION_UPDATED_WITH_RECEIPT = 55,
58
- TRANSACTION_UPDATED_WITH_DELETED_RECEIPT = 56,
59
- TRANSACTION_RECEIPT_CREATED = 57,
60
- TRANSACTION_RECEIPT_DELETED = 58,
61
- TRANSACTIONS_CREATED = 59,
62
- USER_UPDATED = 60,
63
- VEHICLE_CLAIM_UPDATED = 61,
64
- VEHICLE_CLAIM_CREATED = 62,
65
- VEHICLE_CLAIM_DETAILS_UPDATED = 63,
66
- VEHICLE_CLAIM_DETAILS_CREATED = 64,
67
- VEHICLE_LOGBOOK_CREATED = 65,
68
- VEHICLE_LOGBOOK_UPDATED = 66,
69
- VEHICLE_LOGBOOK_DELETED = 67,
70
- VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED = 68
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
  }
@@ -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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.86",
3
+ "version": "0.28.88",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",