@movalib/movalib-commons 1.53.1 → 1.54.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.
@@ -54,6 +54,8 @@ export default class Event {
54
54
  /** Eventuels opérateurs associés à l'event */
55
55
  employees?: Employee[];
56
56
  resourceId?: number;
57
+ /** Quand l'event contient la prestation "Autres" alors ce champs est obligatoire et précise la prestation */
58
+ otherReason?: string;
57
59
  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, resourceId?: number);
58
60
  static getPrestationsList(event: Event): string[];
59
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.53.1",
3
+ "version": "1.54.0",
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",
@@ -60,6 +60,9 @@ export default class Event {
60
60
  employees?: Employee[];
61
61
  resourceId?: number;
62
62
 
63
+ /** Quand l'event contient la prestation "Autres" alors ce champs est obligatoire et précise la prestation */
64
+ otherReason?: string;
65
+
63
66
  constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,
64
67
  state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[],
65
68
  guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean, resourceId?: number)