@movalib/movalib-commons 1.51.2 → 1.51.4

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.
@@ -4,6 +4,7 @@ import Role from "./Role";
4
4
  import Schedule from "./Schedule";
5
5
  import User from "./User";
6
6
  export default class Employee extends User {
7
+ avatar: string;
7
8
  firstname: string;
8
9
  lastname: string;
9
10
  absences: Absence[];
@@ -29,6 +29,7 @@ var Employee = /** @class */ (function (_super) {
29
29
  if (prestations === void 0) { prestations = []; }
30
30
  if (schedules === void 0) { schedules = []; }
31
31
  var _this = _super.call(this, id, roles, firstname, lastname, avatar) || this;
32
+ _this.avatar = '';
32
33
  _this.firstname = '';
33
34
  _this.lastname = '';
34
35
  _this.absences = absences;
@@ -8,6 +8,7 @@ import Product from "./Product";
8
8
  import Supplier from "./Supplier";
9
9
  import Document from "./Document";
10
10
  import Address from "./Address";
11
+ import Employee from "./Employee";
11
12
  export default class Event {
12
13
  id: string;
13
14
  ownerId: number;
@@ -50,6 +51,8 @@ export default class Event {
50
51
  vehicleDepositDateRequest?: Date;
51
52
  /** Propriété calculée pas toujours présent, pour savoir si les produits de cet event on été commandé au grossistes */
52
53
  hasProductOrdered?: boolean;
54
+ /** Eventuels opérateurs associés à l'event */
55
+ employees?: Employee[];
53
56
  constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[], guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean);
54
57
  static getPrestationsList(event: Event): string[];
55
58
  }
@@ -6,6 +6,7 @@ import Document from "./Document";
6
6
  import { OrderPreference, RegistrationState, SlotAlgorithm, SubscriptionPaymentInterval } from "../helpers/Enums";
7
7
  import User from "./User";
8
8
  import Subscription from "./Subscription";
9
+ import Employee from "./Employee";
9
10
  export default class Garage {
10
11
  id: string;
11
12
  adminId: string;
@@ -38,5 +39,6 @@ export default class Garage {
38
39
  subscriptions?: Subscription[];
39
40
  supportPhoneNumber?: string;
40
41
  operatorsActive?: boolean;
42
+ employees?: Employee[];
41
43
  constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[], subscriptions?: Subscription[]);
42
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.51.2",
3
+ "version": "1.51.4",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,7 @@ import User from "./User";
8
8
 
9
9
 
10
10
  export default class Employee extends User {
11
+ avatar: string = '';
11
12
  firstname: string = '';
12
13
  lastname: string = '';
13
14
  // Liste des périodes de congés du collab
@@ -8,6 +8,7 @@ import Product from "./Product";
8
8
  import Supplier from "./Supplier";
9
9
  import Document from "./Document";
10
10
  import Address from "./Address";
11
+ import Employee from "./Employee";
11
12
 
12
13
  export default class Event {
13
14
 
@@ -55,6 +56,9 @@ export default class Event {
55
56
  /** Propriété calculée pas toujours présent, pour savoir si les produits de cet event on été commandé au grossistes */
56
57
  hasProductOrdered?: boolean;
57
58
 
59
+ /** Eventuels opérateurs associés à l'event */
60
+ employees?: Employee[];
61
+
58
62
  constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,
59
63
  state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[],
60
64
  guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean)
@@ -6,6 +6,7 @@ import Document from "./Document";
6
6
  import { OrderPreference, RegistrationState, SlotAlgorithm, SubscriptionPaymentInterval } from "../helpers/Enums";
7
7
  import User from "./User";
8
8
  import Subscription from "./Subscription";
9
+ import Employee from "./Employee";
9
10
 
10
11
  export default class Garage {
11
12
 
@@ -40,6 +41,7 @@ export default class Garage {
40
41
  subscriptions?: Subscription[];
41
42
  supportPhoneNumber?: string;
42
43
  operatorsActive?: boolean;
44
+ employees?: Employee[];
43
45
 
44
46
  constructor(
45
47
  id:string,