@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.
Files changed (41) hide show
  1. package/cjs/lib/entity/vas-form.model.js +1 -1
  2. package/cjs/lib/entity/vas-form.model.js.map +1 -1
  3. package/cjs/lib/entity/vas-job.dto.d.ts +3 -0
  4. package/cjs/lib/entity/vas-job.dto.d.ts.map +1 -1
  5. package/cjs/lib/entity/vas-job.dto.js.map +1 -1
  6. package/cjs/lib/entity/vas-job.model.d.ts +7 -2
  7. package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
  8. package/cjs/lib/entity/vas-job.model.js +150 -21
  9. package/cjs/lib/entity/vas-job.model.js.map +1 -1
  10. package/cjs/lib/model/estimate-control/estimate-item.dto.d.ts +1 -0
  11. package/cjs/lib/model/estimate-control/estimate-item.dto.d.ts.map +1 -1
  12. package/cjs/lib/model/estimate-control/estimate-item.dto.js.map +1 -1
  13. package/cjs/lib/model/estimate-control/estimate-item.model.d.ts +3 -2
  14. package/cjs/lib/model/estimate-control/estimate-item.model.d.ts.map +1 -1
  15. package/cjs/lib/model/estimate-control/estimate-item.model.js +13 -6
  16. package/cjs/lib/model/estimate-control/estimate-item.model.js.map +1 -1
  17. package/cjs/lib/model/estimate-control/estimate-source.d.ts +2 -0
  18. package/cjs/lib/model/estimate-control/estimate-source.d.ts.map +1 -0
  19. package/cjs/lib/model/estimate-control/estimate-source.js +3 -0
  20. package/cjs/lib/model/estimate-control/estimate-source.js.map +1 -0
  21. package/cjs/lib/model/estimate-control/estimate.dto.d.ts +2 -1
  22. package/cjs/lib/model/estimate-control/estimate.dto.d.ts.map +1 -1
  23. package/cjs/lib/model/estimate-control/estimate.dto.js.map +1 -1
  24. package/cjs/lib/model/estimate-control/estimate.model.d.ts +2 -3
  25. package/cjs/lib/model/estimate-control/estimate.model.d.ts.map +1 -1
  26. package/cjs/lib/model/estimate-control/estimate.model.js +31 -18
  27. package/cjs/lib/model/estimate-control/estimate.model.js.map +1 -1
  28. package/cjs/lib/model/estimate-control/index.d.ts +1 -0
  29. package/cjs/lib/model/estimate-control/index.d.ts.map +1 -1
  30. package/cjs/lib/model/estimate-control/index.js.map +1 -1
  31. package/fesm2022/ironcode-vas-lib.mjs +241 -87
  32. package/fesm2022/ironcode-vas-lib.mjs.map +1 -1
  33. package/lib/entity/vas-job.dto.d.ts +3 -0
  34. package/lib/entity/vas-job.model.d.ts +7 -2
  35. package/lib/model/estimate-control/estimate-item.dto.d.ts +1 -0
  36. package/lib/model/estimate-control/estimate-item.model.d.ts +3 -2
  37. package/lib/model/estimate-control/estimate-source.d.ts +1 -0
  38. package/lib/model/estimate-control/estimate.dto.d.ts +2 -1
  39. package/lib/model/estimate-control/estimate.model.d.ts +2 -3
  40. package/lib/model/estimate-control/index.d.ts +1 -0
  41. 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>): VasJobDocumentModel;
120
+ static fromDto(dto: Partial<VasJobDocumentDto>, options?: {
121
+ disableMigrateCheck: boolean;
122
+ }): VasJobDocumentModel;
118
123
  static empty(): VasJobDocumentModel;
119
124
  toDto(): VasJobDocumentDto;
120
125
  }
@@ -9,6 +9,7 @@ export interface EstimateItemDto {
9
9
  workCategory: EstimateWorkCategory;
10
10
  costCategory: EstimateCostCategory;
11
11
  comment: string;
12
+ vatExcluded: boolean;
12
13
  quantityAdjusted: number;
13
14
  unitsAdjusted: number;
14
15
  priceAdjusted: string;
@@ -13,9 +13,10 @@ export declare class EstimateItemModel {
13
13
  workCategory: EstimateWorkCategory;
14
14
  costCategory: EstimateCostCategory;
15
15
  comment: string;
16
- 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);
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 { EstimateSource, EstimateSundryMethod } from './estimate.model';
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
- export declare type EstimateSundryMethod = 'percentage' | 'percentage-with-max' | 'fixed';
5
- export declare type EstimateSource = 'audatex' | 'glassmatix' | 'gtmotive' | 'manual' | 'ibody';
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;
@@ -5,3 +5,4 @@ export * from './estimate-control-value.dto';
5
5
  export * from './estimate-control-value.model';
6
6
  export * from './estimate-item.dto';
7
7
  export * from './estimate-item.model';
8
+ export { EstimateSource } from './estimate-source';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironcode/vas-lib",
3
- "version": "3.0.0-alpha.8",
3
+ "version": "3.0.0",
4
4
  "peerDependencies": {
5
5
  "angular2-uuid": "^1.1.1",
6
6
  "moment": "^2.0.0",