scheduler-node-models 1.2.32 → 1.2.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.2.32",
3
+ "version": "1.2.34",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -634,6 +634,14 @@ class Employee {
634
634
  throw new Error('Assignment schedule and/or workday id not provided');
635
635
  }
636
636
  break;
637
+ case "addlaborcode":
638
+ const vparts = value.split('|');
639
+ asgmt.addLaborCode(vparts[0], vparts[1]);
640
+ break;
641
+ case "removelaborcode":
642
+ const rparts = value.split('|');
643
+ asgmt.removeLaborCode(rparts[0], rparts[1]);
644
+ break;
637
645
  }
638
646
  this.assignments[i] = asgmt;
639
647
  }
@@ -51,3 +51,14 @@ export interface NewEmployeeLeaveRequest {
51
51
  enddate: Date;
52
52
  comment?: string;
53
53
  }
54
+ export interface EmployeeContactSpecialtyUpdate {
55
+ employee: string;
56
+ typeid: number;
57
+ contactid: number;
58
+ value: string;
59
+ }
60
+ export interface EmployeeSpecialtiesUpdate {
61
+ employee: string;
62
+ action: string;
63
+ specialties: number[];
64
+ }