taxtank-core 1.0.9 → 1.0.12
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/fesm2022/taxtank-core.mjs +92 -65
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/collection.d.ts +1 -0
- package/src/lib/models/client/index.d.ts +0 -1
- package/src/lib/models/index.d.ts +1 -0
- package/src/lib/models/{client/sharesight → sharesight}/index.d.ts +1 -0
- package/src/lib/models/{client/sharesight → sharesight}/sharesight-details.d.ts +2 -2
- package/src/lib/models/{client/sharesight → sharesight}/sharesight-details.interface.d.ts +1 -1
- package/src/lib/models/sharesight/sharesight-portfolio/index.d.ts +3 -0
- package/src/lib/models/sharesight/sharesight-portfolio/sharesight-portfolio.d.ts +8 -0
- package/src/lib/models/sharesight/sharesight-portfolio/sharesight-portfolio.interface.d.ts +6 -0
- package/src/lib/models/sharesight/sharesight-portfolio/sharesight-portfolio.messages.d.ts +3 -0
- package/src/lib/services/http/client/index.d.ts +0 -1
- package/src/lib/services/http/index.d.ts +1 -0
- package/src/lib/services/http/sharesight/index.d.ts +2 -0
- package/src/lib/services/http/sharesight/sharesight-portfolio.service.d.ts +14 -0
- package/src/lib/services/http/vehicle/vehicle-claim.service.d.ts +1 -7
- /package/src/lib/models/{client/sharesight → sharesight}/sharesight-details-messages.enum.d.ts +0 -0
- /package/src/lib/services/http/{client → sharesight}/sharesight-details.service.d.ts +0 -0
package/package.json
CHANGED
@@ -47,6 +47,7 @@ export declare class Collection<Model extends object> implements Iterable<Model>
|
|
47
47
|
*/
|
48
48
|
unshift(...items: Model[]): this;
|
49
49
|
remove(items: Model[], path?: string): this;
|
50
|
+
toggle(item: Model, path?: string): this;
|
50
51
|
/**
|
51
52
|
* @TODO it's filter, not remove
|
52
53
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { AbstractModel } from '
|
2
|
-
import { ClientDetails } from '../client
|
1
|
+
import { AbstractModel } from '../../db/Models';
|
2
|
+
import { ClientDetails } from '../client';
|
3
3
|
import { SharesightDetailsInterface } from './sharesight-details.interface';
|
4
4
|
export declare class SharesightDetails extends AbstractModel implements SharesightDetailsInterface {
|
5
5
|
clientDetails: ClientDetails;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { SharesightPortfolioInterface } from './sharesight-portfolio.interface';
|
2
|
+
import { SharesightDetails } from '../sharesight-details';
|
3
|
+
import { AbstractModel } from '../../../db/Models';
|
4
|
+
export declare class SharesightPortfolio extends AbstractModel implements SharesightPortfolioInterface {
|
5
|
+
sharesightDetails: SharesightDetails;
|
6
|
+
name: string;
|
7
|
+
externalId: string;
|
8
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { RestMethod, RestService } from '../rest';
|
2
|
+
import { Collection } from '../../../collections';
|
3
|
+
import { SharesightPortfolio, SharesightPortfolioInterface } from '../../../models';
|
4
|
+
import { Observable } from 'rxjs';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class SharesightPortfolioService extends RestService<SharesightPortfolioInterface, SharesightPortfolio, Collection<SharesightPortfolio>> {
|
7
|
+
modelClass: typeof SharesightPortfolio;
|
8
|
+
collectionClass: typeof Collection;
|
9
|
+
endpointUri: string;
|
10
|
+
disabledMethods: RestMethod[];
|
11
|
+
getExternal(): Observable<Collection<SharesightPortfolio>>;
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharesightPortfolioService, never>;
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SharesightPortfolioService>;
|
14
|
+
}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { VehicleClaim as VehicleClaimBase } from '../../../db/Models/vehicle/vehicle-claim';
|
2
2
|
import { VehicleClaim } from '../../../models';
|
3
3
|
import { RestService } from '../rest';
|
4
|
-
import { Observable } from 'rxjs';
|
5
4
|
import { UserRolesEnum } from 'taxtank-core/common';
|
6
|
-
import {
|
5
|
+
import { VehicleClaimCollection } from '../../../collections';
|
7
6
|
import { IEventListener } from '../../../interfaces';
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
export declare class VehicleClaimService extends RestService<VehicleClaimBase, VehicleClaim, VehicleClaimCollection> implements IEventListener {
|
@@ -14,11 +13,6 @@ export declare class VehicleClaimService extends RestService<VehicleClaimBase, V
|
|
14
13
|
roles: UserRolesEnum[];
|
15
14
|
constructor(environment: any);
|
16
15
|
listenEvents(): void;
|
17
|
-
/**
|
18
|
-
* Update workUsage for all vehicle claims if logbook best period changed
|
19
|
-
* @TODO Vik: Best period move this and related logic to backend
|
20
|
-
*/
|
21
|
-
updateWorkUsage(bestLogbooks: BestVehicleLogbookCollection): Observable<VehicleClaim[]>;
|
22
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<VehicleClaimService, never>;
|
23
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<VehicleClaimService>;
|
24
18
|
}
|
/package/src/lib/models/{client/sharesight → sharesight}/sharesight-details-messages.enum.d.ts
RENAMED
File without changes
|
File without changes
|