taxtank-core 0.32.4 → 0.32.5
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/esm2022/lib/collections/vehicle/best-vehicle-logbook.collection.mjs +8 -8
- package/esm2022/lib/collections/vehicle/vehicle-logbook.collection.mjs +2 -2
- package/esm2022/lib/services/http/vehicle/vehicle-claim.service.mjs +10 -10
- package/fesm2022/taxtank-core.mjs +15 -17
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/services/http/vehicle/vehicle-claim.service.d.ts +5 -6
- package/package.json +1 -1
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { VehicleClaim as VehicleClaimBase } from '../../../db/Models/vehicle/vehicle-claim';
|
|
2
2
|
import { VehicleClaim } from '../../../models';
|
|
3
3
|
import { RestService } from '../rest/rest-old.service';
|
|
4
|
-
import { IEventListener } from '../../../interfaces';
|
|
5
4
|
import { Observable } from 'rxjs';
|
|
6
5
|
import { UserRolesEnum } from '../../../db/Enums/user-roles.enum';
|
|
6
|
+
import { BestVehicleLogbookCollection } from '../../../collections';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class VehicleClaimService extends RestService<VehicleClaimBase, VehicleClaim>
|
|
8
|
+
export declare class VehicleClaimService extends RestService<VehicleClaimBase, VehicleClaim> {
|
|
9
9
|
modelClass: typeof VehicleClaim;
|
|
10
10
|
url: string;
|
|
11
11
|
roles: UserRolesEnum[];
|
|
12
|
-
listenEvents(): void;
|
|
13
12
|
add(model: VehicleClaim): Observable<VehicleClaim>;
|
|
14
13
|
update(model: VehicleClaim, queryParams?: object): Observable<VehicleClaim>;
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Update workUsage for all vehicle claims if logbook best period changed
|
|
16
|
+
* @TODO Vik: Best period move this and related logic to backend
|
|
18
17
|
*/
|
|
19
|
-
|
|
18
|
+
updateWorkUsage(bestLogbooks: BestVehicleLogbookCollection): Observable<VehicleClaim[]>;
|
|
20
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<VehicleClaimService, never>;
|
|
21
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<VehicleClaimService>;
|
|
22
21
|
}
|