@movalib/movalib-commons 1.59.34 → 1.59.35

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.
@@ -65,6 +65,7 @@ export default class Event {
65
65
  garageVehicleId?: number;
66
66
  garageVehicleRequest?: boolean;
67
67
  origin?: string;
68
- constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, color: string, 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, garageVehicleId?: number, garageVehicleRequest?: boolean, vehicleAvailableNotificationTime?: Date, interventionEndTime?: Date);
68
+ quoteLastSendingTime?: Date;
69
+ constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, color: string, 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, garageVehicleId?: number, garageVehicleRequest?: boolean, vehicleAvailableNotificationTime?: Date, interventionEndTime?: Date, quoteLastSendingTime?: Date);
69
70
  static getPrestationsList(event: Event): string[];
70
71
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var Event = /** @class */ (function () {
4
- function Event(id, ownerId, type, title, garageName, garageId, color, state, garageAddress, start, end, prestations, operations, products, guestsId, vehicleId, quoteId, notes, vehicleAvailableNotified, editable, resourceId, garageVehicleId, garageVehicleRequest, vehicleAvailableNotificationTime, interventionEndTime) {
4
+ function Event(id, ownerId, type, title, garageName, garageId, color, state, garageAddress, start, end, prestations, operations, products, guestsId, vehicleId, quoteId, notes, vehicleAvailableNotified, editable, resourceId, garageVehicleId, garageVehicleRequest, vehicleAvailableNotificationTime, interventionEndTime, quoteLastSendingTime) {
5
5
  this.id = id;
6
6
  this.notes = notes;
7
7
  this.ownerId = ownerId;
@@ -27,6 +27,7 @@ var Event = /** @class */ (function () {
27
27
  this.garageVehicleRequest = garageVehicleRequest;
28
28
  this.vehicleAvailableNotificationTime = vehicleAvailableNotificationTime ? new Date(vehicleAvailableNotificationTime) : undefined;
29
29
  this.interventionEndTime = interventionEndTime ? new Date(interventionEndTime) : undefined;
30
+ this.quoteLastSendingTime = quoteLastSendingTime ? new Date(quoteLastSendingTime) : undefined;
30
31
  }
31
32
  Event.getPrestationsList = function (event) {
32
33
  if (event && event.prestations) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.59.34",
3
+ "version": "1.59.35",
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",
@@ -71,11 +71,12 @@ export default class Event {
71
71
  garageVehicleId?: number;
72
72
  garageVehicleRequest?: boolean;
73
73
  origin?: string;
74
+ quoteLastSendingTime?: Date;
74
75
 
75
76
  constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,color: string,
76
77
  state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[],
77
78
  guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean,
78
- resourceId?: number, garageVehicleId?: number, garageVehicleRequest?: boolean, vehicleAvailableNotificationTime?: Date, interventionEndTime?: Date)
79
+ resourceId?: number, garageVehicleId?: number, garageVehicleRequest?: boolean, vehicleAvailableNotificationTime?: Date, interventionEndTime?: Date, quoteLastSendingTime?: Date)
79
80
  {
80
81
  this.id = id;
81
82
  this.notes = notes;
@@ -102,6 +103,7 @@ export default class Event {
102
103
  this.garageVehicleRequest = garageVehicleRequest;
103
104
  this.vehicleAvailableNotificationTime = vehicleAvailableNotificationTime ? new Date(vehicleAvailableNotificationTime) : undefined;
104
105
  this.interventionEndTime = interventionEndTime ? new Date(interventionEndTime) : undefined;
106
+ this.quoteLastSendingTime = quoteLastSendingTime ? new Date(quoteLastSendingTime) : undefined;
105
107
  }
106
108
 
107
109
  static getPrestationsList(event: Event) : string[] {