@movalib/movalib-commons 1.33.0 → 1.35.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.
@@ -49,7 +49,11 @@ export declare enum SubscriptionPaymentInterval {
49
49
  /**
50
50
  * Paiement Annuel
51
51
  */
52
- YEAR = "YEAR"
52
+ YEAR = "YEAR",
53
+ /**
54
+ * Paiement 24 Mois
55
+ */
56
+ TWO_YEARS = "TWO_YEARS"
53
57
  }
54
58
  export declare enum RegistrationState {
55
59
  /**
@@ -59,6 +59,10 @@ var SubscriptionPaymentInterval;
59
59
  * Paiement Annuel
60
60
  */
61
61
  SubscriptionPaymentInterval["YEAR"] = "YEAR";
62
+ /**
63
+ * Paiement 24 Mois
64
+ */
65
+ SubscriptionPaymentInterval["TWO_YEARS"] = "TWO_YEARS";
62
66
  })(SubscriptionPaymentInterval = exports.SubscriptionPaymentInterval || (exports.SubscriptionPaymentInterval = {}));
63
67
  var RegistrationState;
64
68
  (function (RegistrationState) {
@@ -1,4 +1,4 @@
1
- import { OrderPreference, OrderState, ProductType } from "../helpers/Enums";
1
+ import { OrderPreference, OrderState, PartsApplicationType, ProductType } from "../helpers/Enums";
2
2
  import Operation from "./Operation";
3
3
  import Supplier from "./Supplier";
4
4
  export default class Product {
@@ -10,5 +10,6 @@ export default class Product {
10
10
  operation?: Operation;
11
11
  orderState?: OrderState;
12
12
  supplier?: Supplier;
13
+ application?: PartsApplicationType;
13
14
  constructor(id: string, code: string, name: string, type: ProductType, orderPreference: OrderPreference, originReferences: string[]);
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.33.0",
3
+ "version": "1.35.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",
@@ -56,7 +56,11 @@ export enum SubscriptionPaymentInterval {
56
56
  /**
57
57
  * Paiement Annuel
58
58
  */
59
- YEAR = "YEAR"
59
+ YEAR = "YEAR",
60
+ /**
61
+ * Paiement 24 Mois
62
+ */
63
+ TWO_YEARS = "TWO_YEARS"
60
64
  }
61
65
 
62
66
 
@@ -1,4 +1,4 @@
1
- import { OrderPreference, OrderState, ProductType } from "../helpers/Enums";
1
+ import { OrderPreference, OrderState, PartsApplicationType, ProductType } from "../helpers/Enums";
2
2
  import Operation from "./Operation";
3
3
  import Supplier from "./Supplier";
4
4
 
@@ -16,6 +16,8 @@ export default class Product {
16
16
  orderState?: OrderState;
17
17
  // Eventuel fournisseur du produit
18
18
  supplier?: Supplier;
19
+ // Eventuelle application du produit (avant, arrière)
20
+ application?: PartsApplicationType;
19
21
 
20
22
  constructor(id:string, code: string, name:string, type: ProductType, orderPreference: OrderPreference, originReferences: string[]) {
21
23
  this.id = id;