@movalib/movalib-commons 1.0.91 → 1.0.93

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.
@@ -1,6 +1,7 @@
1
1
  import Operation from "./Operation";
2
2
  export default class Prestation {
3
3
  id: number;
4
+ code: string;
4
5
  name: string;
5
6
  description: string;
6
7
  category: string;
@@ -16,5 +17,9 @@ export default class Prestation {
16
17
  * Opérations inhérentes à cette prestation
17
18
  */
18
19
  operations?: Operation[];
19
- constructor(id: number, name: string, description: string, category: string, downtime: number, appointmentDelay: number, operations?: Operation[]);
20
+ /**
21
+ * La notion d'ordre peut être utile à l'affichage d'une liste de prestation par exemple
22
+ */
23
+ order: number;
24
+ constructor(id: number, code: string, name: string, description: string, category: string, downtime: number, appointmentDelay: number, order: number, operations?: Operation[]);
20
25
  }
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var Prestation = /** @class */ (function () {
4
- function Prestation(id, name, description, category, downtime, appointmentDelay, operations) {
4
+ function Prestation(id, code, name, description, category, downtime, appointmentDelay, order, operations) {
5
5
  this.id = id;
6
+ this.code = code;
6
7
  this.name = name;
7
8
  this.description = description;
8
9
  this.category = category;
9
10
  this.downtime = downtime;
10
11
  this.appointmentDelay = appointmentDelay;
12
+ this.order = order;
11
13
  this.operations = operations;
12
14
  }
13
15
  return Prestation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
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",
@@ -4,6 +4,7 @@ export default class Prestation {
4
4
 
5
5
  // Properties
6
6
  id: number;
7
+ code: string;
7
8
  name: string;
8
9
  description: string;
9
10
  category: string;
@@ -19,15 +20,21 @@ export default class Prestation {
19
20
  * Opérations inhérentes à cette prestation
20
21
  */
21
22
  operations?: Operation[];
23
+ /**
24
+ * La notion d'ordre peut être utile à l'affichage d'une liste de prestation par exemple
25
+ */
26
+ order: number;
22
27
 
23
- constructor(id:number, name:string, description: string, category:string,
24
- downtime:number, appointmentDelay: number, operations?: Operation[]) {
28
+ constructor(id:number, code: string, name:string, description: string, category:string,
29
+ downtime:number, appointmentDelay: number, order: number, operations?: Operation[]) {
25
30
  this.id = id;
31
+ this.code = code;
26
32
  this.name = name;
27
33
  this.description = description;
28
34
  this.category = category;
29
35
  this.downtime = downtime;
30
36
  this.appointmentDelay = appointmentDelay;
37
+ this.order = order;
31
38
  this.operations = operations;
32
39
  }
33
40
  }