@movalib/movalib-commons 1.0.83 → 1.0.85

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.
@@ -10,8 +10,8 @@ export declare enum OrderPreference {
10
10
  HIGH_RANGE = "HIGH_RANGE"
11
11
  }
12
12
  export declare enum ProductType {
13
- FRONT = "PART",
14
- REAR = "CONSUMABLE"
13
+ PART = "PART",
14
+ CONSUMABLE = "CONSUMABLE"
15
15
  }
16
16
  export declare enum PartsApplicationType {
17
17
  FRONT = "FRONT",
@@ -16,8 +16,8 @@ var OrderPreference;
16
16
  })(OrderPreference = exports.OrderPreference || (exports.OrderPreference = {}));
17
17
  var ProductType;
18
18
  (function (ProductType) {
19
- ProductType["FRONT"] = "PART";
20
- ProductType["REAR"] = "CONSUMABLE";
19
+ ProductType["PART"] = "PART";
20
+ ProductType["CONSUMABLE"] = "CONSUMABLE";
21
21
  })(ProductType = exports.ProductType || (exports.ProductType = {}));
22
22
  var PartsApplicationType;
23
23
  (function (PartsApplicationType) {
@@ -1,5 +1,6 @@
1
1
  import { OrderPreference, OrderState, ProductType } from "../helpers/Enums";
2
2
  import Operation from "./Operation";
3
+ import Supplier from "./Supplier";
3
4
  export default class Product {
4
5
  id: string;
5
6
  name: string;
@@ -8,5 +9,6 @@ export default class Product {
8
9
  originReferences?: string[];
9
10
  operation?: Operation;
10
11
  orderState?: OrderState;
12
+ supplier?: Supplier;
11
13
  constructor(id: string, code: string, name: string, type: ProductType, orderPreference: OrderPreference, originReferences: string[]);
12
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
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",
@@ -12,8 +12,8 @@ export enum OrderPreference {
12
12
  }
13
13
 
14
14
  export enum ProductType {
15
- FRONT = 'PART',
16
- REAR = 'CONSUMABLE',
15
+ PART = 'PART',
16
+ CONSUMABLE = 'CONSUMABLE',
17
17
  }
18
18
 
19
19
  export enum PartsApplicationType {
@@ -1,5 +1,6 @@
1
1
  import { OrderPreference, OrderState, ProductType } from "../helpers/Enums";
2
2
  import Operation from "./Operation";
3
+ import Supplier from "./Supplier";
3
4
 
4
5
  export default class Product {
5
6
 
@@ -13,7 +14,9 @@ export default class Product {
13
14
  operation?: Operation;
14
15
  // Eventuel statut commande associé au produit
15
16
  orderState?: OrderState;
16
-
17
+ // Eventuel fournisseur du produit
18
+ supplier?: Supplier;
19
+
17
20
  constructor(id:string, code: string, name:string, type: ProductType, orderPreference: OrderPreference, originReferences: string[]) {
18
21
  this.id = id;
19
22
  this.name = name;