@movalib/movalib-commons 1.0.59 → 1.0.60

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.
@@ -11,8 +11,8 @@ export default class Event {
11
11
  title: string;
12
12
  garageName: string;
13
13
  garageId: number;
14
- startDate?: Date;
15
- endDate?: Date;
14
+ start?: Date;
15
+ end?: Date;
16
16
  state: EventState;
17
17
  prestations?: Prestation[];
18
18
  /**
@@ -36,7 +36,7 @@ export default class Event {
36
36
  * MVP : pour l'instant les références sont transmises sous cette forme classique
37
37
  */
38
38
  originReferences?: OriginReference[];
39
- constructor({ id, notes, ownerId, type, title, garageName, garageId, state, startDate, endDate, prestations, guestsId, vehicleId, quoteId, originReferences }: {
39
+ constructor({ id, notes, ownerId, type, title, garageName, garageId, state, start, end, prestations, guestsId, vehicleId, quoteId, originReferences }: {
40
40
  id: string;
41
41
  notes?: string;
42
42
  ownerId: number;
@@ -45,8 +45,8 @@ export default class Event {
45
45
  garageName: string;
46
46
  garageId: number;
47
47
  state: EventState;
48
- startDate?: Date;
49
- endDate?: Date;
48
+ start?: Date;
49
+ end?: Date;
50
50
  prestations?: Prestation[];
51
51
  guestsId?: string[];
52
52
  vehicleId?: number;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var Event = /** @class */ (function () {
4
4
  function Event(_a) {
5
- var id = _a.id, notes = _a.notes, ownerId = _a.ownerId, type = _a.type, title = _a.title, garageName = _a.garageName, garageId = _a.garageId, state = _a.state, startDate = _a.startDate, endDate = _a.endDate, prestations = _a.prestations, guestsId = _a.guestsId, vehicleId = _a.vehicleId, quoteId = _a.quoteId, originReferences = _a.originReferences;
5
+ var id = _a.id, notes = _a.notes, ownerId = _a.ownerId, type = _a.type, title = _a.title, garageName = _a.garageName, garageId = _a.garageId, state = _a.state, start = _a.start, end = _a.end, prestations = _a.prestations, guestsId = _a.guestsId, vehicleId = _a.vehicleId, quoteId = _a.quoteId, originReferences = _a.originReferences;
6
6
  this.id = id;
7
7
  this.notes = notes;
8
8
  this.ownerId = ownerId;
@@ -11,8 +11,8 @@ var Event = /** @class */ (function () {
11
11
  this.garageName = garageName;
12
12
  this.garageId = garageId;
13
13
  this.state = state;
14
- this.startDate = startDate ? new Date(startDate) : undefined;
15
- this.endDate = endDate ? new Date(endDate) : undefined;
14
+ this.start = start ? new Date(start) : undefined;
15
+ this.end = end ? new Date(end) : undefined;
16
16
  this.prestations = prestations;
17
17
  this.guestsId = guestsId;
18
18
  this.vehicleId = vehicleId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
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",
@@ -14,8 +14,8 @@ export default class Event {
14
14
  title: string;
15
15
  garageName: string;
16
16
  garageId: number;
17
- startDate?: Date;
18
- endDate?: Date;
17
+ start?: Date;
18
+ end?: Date;
19
19
  state: EventState;
20
20
  prestations?: Prestation[];
21
21
  /**
@@ -41,9 +41,9 @@ export default class Event {
41
41
  */
42
42
  originReferences?: OriginReference[];
43
43
 
44
- constructor({ id, notes, ownerId, type, title, garageName, garageId, state, startDate, endDate, prestations, guestsId, vehicleId, quoteId, originReferences }
44
+ constructor({ id, notes, ownerId, type, title, garageName, garageId, state, start, end, prestations, guestsId, vehicleId, quoteId, originReferences }
45
45
  : { id: string; notes?: string; ownerId: number; type : EventType; title: string; garageName: string; garageId: number;
46
- state: EventState; startDate?: Date; endDate?: Date, prestations?: Prestation[],
46
+ state: EventState; start?: Date; end?: Date, prestations?: Prestation[],
47
47
  guestsId?: string[], vehicleId?: number, quoteId?: number, originReferences?: OriginReference[]})
48
48
  {
49
49
  this.id = id;
@@ -54,8 +54,8 @@ export default class Event {
54
54
  this.garageName = garageName;
55
55
  this.garageId = garageId;
56
56
  this.state = state;
57
- this.startDate = startDate ? new Date(startDate) : undefined;
58
- this.endDate = endDate ? new Date(endDate) : undefined;
57
+ this.start = start ? new Date(start) : undefined;
58
+ this.end = end ? new Date(end) : undefined;
59
59
  this.prestations = prestations;
60
60
  this.guestsId = guestsId;
61
61
  this.vehicleId = vehicleId;