taxtank-core 0.32.116 → 0.32.117
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/collection.mjs +8 -1
- package/esm2022/lib/services/http/rest/rest.service.mjs +7 -2
- package/esm2022/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +3 -2
- package/fesm2022/taxtank-core.mjs +14 -1
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/collections/collection.d.ts +4 -0
- package/lib/services/http/rest/rest.service.d.ts +5 -0
- package/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.d.ts +2 -1
- package/package.json +1 -1
@@ -43,6 +43,10 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
|
|
43
43
|
findBy(path: string, value: any): Model | null;
|
44
44
|
findIndexBy(path: string, value: any): number;
|
45
45
|
push(...items: Model[]): this;
|
46
|
+
/**
|
47
|
+
* @TODO performance check this.create performance and why we do it instead of changing collection
|
48
|
+
*/
|
49
|
+
unshift(...items: Model[]): this;
|
46
50
|
remove(...items: Model[]): this;
|
47
51
|
/**
|
48
52
|
* @TODO it's filter, not remove
|
@@ -36,6 +36,11 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
36
36
|
protected toastService: ToastService;
|
37
37
|
protected http: HttpClient;
|
38
38
|
protected eventDispatcherService: EventDispatcherService;
|
39
|
+
/**
|
40
|
+
* adds new entities to the beginning when true
|
41
|
+
* @TODO make true by default when all services refactored
|
42
|
+
*/
|
43
|
+
protected orderByDesc: boolean;
|
39
44
|
roles: UserRolesEnum[];
|
40
45
|
mercureTopic: string;
|
41
46
|
constructor(environment: any);
|
@@ -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
|
3
|
+
import { RestService } from '../../rest';
|
4
4
|
import { VehicleLogbookCollection } from '../../../../collections';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
/**
|
@@ -8,6 +8,7 @@ import * as i0 from "@angular/core";
|
|
8
8
|
*/
|
9
9
|
export declare class VehicleLogbookService extends RestService<VehicleLogbookBase, VehicleLogbook, VehicleLogbookCollection> {
|
10
10
|
protected endpointUri: string;
|
11
|
+
protected orderByDesc: boolean;
|
11
12
|
collectionClass: typeof VehicleLogbookCollection;
|
12
13
|
modelClass: typeof VehicleLogbook;
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<VehicleLogbookService, never>;
|