@ironcode/vas-lib 3.0.0-alpha.8 → 3.0.0
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/cjs/lib/entity/vas-form.model.js +1 -1
- package/cjs/lib/entity/vas-form.model.js.map +1 -1
- package/cjs/lib/entity/vas-job.dto.d.ts +3 -0
- package/cjs/lib/entity/vas-job.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.dto.js.map +1 -1
- package/cjs/lib/entity/vas-job.model.d.ts +7 -2
- package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.js +150 -21
- package/cjs/lib/entity/vas-job.model.js.map +1 -1
- package/cjs/lib/model/estimate-control/estimate-item.dto.d.ts +1 -0
- package/cjs/lib/model/estimate-control/estimate-item.dto.d.ts.map +1 -1
- package/cjs/lib/model/estimate-control/estimate-item.dto.js.map +1 -1
- package/cjs/lib/model/estimate-control/estimate-item.model.d.ts +3 -2
- package/cjs/lib/model/estimate-control/estimate-item.model.d.ts.map +1 -1
- package/cjs/lib/model/estimate-control/estimate-item.model.js +13 -6
- package/cjs/lib/model/estimate-control/estimate-item.model.js.map +1 -1
- package/cjs/lib/model/estimate-control/estimate-source.d.ts +2 -0
- package/cjs/lib/model/estimate-control/estimate-source.d.ts.map +1 -0
- package/cjs/lib/model/estimate-control/estimate-source.js +3 -0
- package/cjs/lib/model/estimate-control/estimate-source.js.map +1 -0
- package/cjs/lib/model/estimate-control/estimate.dto.d.ts +2 -1
- package/cjs/lib/model/estimate-control/estimate.dto.d.ts.map +1 -1
- package/cjs/lib/model/estimate-control/estimate.dto.js.map +1 -1
- package/cjs/lib/model/estimate-control/estimate.model.d.ts +2 -3
- package/cjs/lib/model/estimate-control/estimate.model.d.ts.map +1 -1
- package/cjs/lib/model/estimate-control/estimate.model.js +31 -18
- package/cjs/lib/model/estimate-control/estimate.model.js.map +1 -1
- package/cjs/lib/model/estimate-control/index.d.ts +1 -0
- package/cjs/lib/model/estimate-control/index.d.ts.map +1 -1
- package/cjs/lib/model/estimate-control/index.js.map +1 -1
- package/fesm2022/ironcode-vas-lib.mjs +241 -87
- package/fesm2022/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-job.dto.d.ts +3 -0
- package/lib/entity/vas-job.model.d.ts +7 -2
- package/lib/model/estimate-control/estimate-item.dto.d.ts +1 -0
- package/lib/model/estimate-control/estimate-item.model.d.ts +3 -2
- package/lib/model/estimate-control/estimate-source.d.ts +1 -0
- package/lib/model/estimate-control/estimate.dto.d.ts +2 -1
- package/lib/model/estimate-control/estimate.model.d.ts +2 -3
- package/lib/model/estimate-control/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -19,6 +19,9 @@ export interface VasJobBaseDto extends VasRestrictedAccountObjectDto {
|
|
|
19
19
|
pendingFields: number;
|
|
20
20
|
childModified: string;
|
|
21
21
|
version: number;
|
|
22
|
+
followUpDate: string;
|
|
23
|
+
followUpStatus: string;
|
|
24
|
+
followUpNote: string;
|
|
22
25
|
geoLocation: GeoLocation;
|
|
23
26
|
files: Array<VasFileDto>;
|
|
24
27
|
jobEmails: Array<VasJobEmailDto>;
|
|
@@ -41,6 +41,9 @@ export declare abstract class VasJobBaseModel<FType extends Record<string, Field
|
|
|
41
41
|
pendingFields: number;
|
|
42
42
|
childModified: string;
|
|
43
43
|
version: number;
|
|
44
|
+
followUpDate: string;
|
|
45
|
+
followUpStatus: string;
|
|
46
|
+
followUpNote: string;
|
|
44
47
|
geoLocation: GeoLocation;
|
|
45
48
|
files: Array<VasFileDto>;
|
|
46
49
|
fields: FType;
|
|
@@ -49,7 +52,7 @@ export declare abstract class VasJobBaseModel<FType extends Record<string, Field
|
|
|
49
52
|
reports: Array<VasReportDto>;
|
|
50
53
|
tasks: Array<VasTaskDto>;
|
|
51
54
|
instruction: VasInstructionDto | null;
|
|
52
|
-
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, reference: string, jobDate: string, jobStatus: string, jobStatusLastUpdate: string, jobType: string, assigneeId: string, formId: string, timeZoneOffset: number, pendingFields: number, childModified: string, version: number, geoLocation: GeoLocation, files: Array<VasFileDto>, fields: FType, jobEmails: Array<VasJobEmailDto>, notes: Array<VasNoteDto>, reports: Array<VasReportDto>, tasks: Array<VasTaskDto>, instruction: VasInstructionDto | null);
|
|
55
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, reference: string, jobDate: string, jobStatus: string, jobStatusLastUpdate: string, jobType: string, assigneeId: string, formId: string, timeZoneOffset: number, pendingFields: number, childModified: string, version: number, followUpDate: string, followUpStatus: string, followUpNote: string, geoLocation: GeoLocation, files: Array<VasFileDto>, fields: FType, jobEmails: Array<VasJobEmailDto>, notes: Array<VasNoteDto>, reports: Array<VasReportDto>, tasks: Array<VasTaskDto>, instruction: VasInstructionDto | null);
|
|
53
56
|
get createdByDisplayName(): string;
|
|
54
57
|
get modifiedByDisplayName(): string;
|
|
55
58
|
/**
|
|
@@ -114,7 +117,9 @@ export declare class VasJobRelationalModel extends VasJobBaseModel<Array<VasFiel
|
|
|
114
117
|
}
|
|
115
118
|
export declare class VasJobDocumentModel extends VasJobBaseModel<Record<string, FieldValueType>> {
|
|
116
119
|
static fromRelationalDto(dto: Partial<VasJobRelationalDto>): VasJobDocumentModel;
|
|
117
|
-
static fromDto(dto: Partial<VasJobDocumentDto
|
|
120
|
+
static fromDto(dto: Partial<VasJobDocumentDto>, options?: {
|
|
121
|
+
disableMigrateCheck: boolean;
|
|
122
|
+
}): VasJobDocumentModel;
|
|
118
123
|
static empty(): VasJobDocumentModel;
|
|
119
124
|
toDto(): VasJobDocumentDto;
|
|
120
125
|
}
|
|
@@ -13,9 +13,10 @@ export declare class EstimateItemModel {
|
|
|
13
13
|
workCategory: EstimateWorkCategory;
|
|
14
14
|
costCategory: EstimateCostCategory;
|
|
15
15
|
comment: string;
|
|
16
|
-
|
|
16
|
+
vatExcluded: boolean;
|
|
17
|
+
constructor(id: string, description: string, type: string, quantity: number, quantityAdjusted: number, units: number, unitsAdjusted: number, price: string, priceAdjusted: string, workCategory: EstimateWorkCategory, costCategory: EstimateCostCategory, comment: string, vatExcluded: boolean);
|
|
17
18
|
getTotalUnits(adjusted?: boolean): string;
|
|
18
|
-
getLineValue(labourRate?: string, timeBasis?: string, adjusted?: boolean): string;
|
|
19
|
+
getLineValue(labourRate?: string, timeBasis?: string, adjusted?: boolean, vatExcluded?: boolean): string;
|
|
19
20
|
toDto(): EstimateItemDto;
|
|
20
21
|
static create(): EstimateItemModel;
|
|
21
22
|
static fromDto(dto: Partial<EstimateItemDto>): EstimateItemModel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type EstimateSource = 'audatex' | 'glassmatix' | 'gtmotive' | 'ibody' | 'manual';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EstimateItemDto } from './estimate-item.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { EstimateSundryMethod } from './estimate.model';
|
|
3
3
|
import { EstimateCostCategory } from './estimate.types';
|
|
4
|
+
import { EstimateSource } from './estimate-source';
|
|
4
5
|
export type CostCategorySummary = Record<EstimateCostCategory, string>;
|
|
5
6
|
export interface CostCategorySummaryTotals {
|
|
6
7
|
net: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EstimateItemModel } from './estimate-item.model';
|
|
2
2
|
import { EstimateDto, EstimateSummaryDto } from './estimate.dto';
|
|
3
3
|
import { EstimateItemDto } from './estimate-item.dto';
|
|
4
|
-
|
|
5
|
-
export declare type
|
|
4
|
+
import { EstimateSource } from './estimate-source';
|
|
5
|
+
export declare type EstimateSundryMethod = 'fixed' | 'percentage' | 'percentage-with-max';
|
|
6
6
|
export declare class EstimateModel {
|
|
7
7
|
id: string;
|
|
8
8
|
source: EstimateSource;
|
|
@@ -47,7 +47,6 @@ export declare class EstimateModel {
|
|
|
47
47
|
getSummaryNet(adjusted?: boolean): EstimateSummaryDto;
|
|
48
48
|
/**
|
|
49
49
|
* Applies the sundry and discount values to the net summary.
|
|
50
|
-
|
|
51
50
|
*/
|
|
52
51
|
getSummary(summaryNet: EstimateDto['summary'], sundryRate: string, sundryMax: string, sundryFixed: string, sundryMethod: EstimateSundryMethod, partsDiscount: string, paintDiscount: string, adjusted: boolean): EstimateDto['summary'];
|
|
53
52
|
toDto(): EstimateDto;
|