@movalib/movalib-commons 1.0.84 → 1.0.86

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
  export declare enum OrderState {
2
2
  NEW = "NEW",
3
- SENT = "SENT",
3
+ QUOTE_REQUESTED = "QUOTE_REQUESTED",
4
+ ORDERED = "ORDERED",
4
5
  DONE = "DONE",
5
6
  CANCELLED = "CANCELLED"
6
7
  }
@@ -10,8 +11,8 @@ export declare enum OrderPreference {
10
11
  HIGH_RANGE = "HIGH_RANGE"
11
12
  }
12
13
  export declare enum ProductType {
13
- FRONT = "PART",
14
- REAR = "CONSUMABLE"
14
+ PART = "PART",
15
+ CONSUMABLE = "CONSUMABLE"
15
16
  }
16
17
  export declare enum PartsApplicationType {
17
18
  FRONT = "FRONT",
@@ -4,7 +4,8 @@ exports.RoleType = exports.MovaAppType = exports.DocumentType = exports.Document
4
4
  var OrderState;
5
5
  (function (OrderState) {
6
6
  OrderState["NEW"] = "NEW";
7
- OrderState["SENT"] = "SENT";
7
+ OrderState["QUOTE_REQUESTED"] = "QUOTE_REQUESTED";
8
+ OrderState["ORDERED"] = "ORDERED";
8
9
  OrderState["DONE"] = "DONE";
9
10
  OrderState["CANCELLED"] = "CANCELLED";
10
11
  })(OrderState = exports.OrderState || (exports.OrderState = {}));
@@ -16,8 +17,8 @@ var OrderPreference;
16
17
  })(OrderPreference = exports.OrderPreference || (exports.OrderPreference = {}));
17
18
  var ProductType;
18
19
  (function (ProductType) {
19
- ProductType["FRONT"] = "PART";
20
- ProductType["REAR"] = "CONSUMABLE";
20
+ ProductType["PART"] = "PART";
21
+ ProductType["CONSUMABLE"] = "CONSUMABLE";
21
22
  })(ProductType = exports.ProductType || (exports.ProductType = {}));
22
23
  var PartsApplicationType;
23
24
  (function (PartsApplicationType) {
@@ -1,10 +1,11 @@
1
1
  import User from "./User";
2
- import { EventState, EventType } from "../helpers/Enums";
2
+ import { EventState, EventType, OrderPreference } from "../helpers/Enums";
3
3
  import Prestation from "./Prestation";
4
4
  import Customer from "./Customer";
5
5
  import Vehicle from "./Vehicle";
6
6
  import Operation from "./Operation";
7
7
  import Product from "./Product";
8
+ import Supplier from "./Supplier";
8
9
  export default class Event {
9
10
  id: string;
10
11
  ownerId: number;
@@ -35,6 +36,8 @@ export default class Event {
35
36
  * Eventuel numéro de devis rattaché à l'évent
36
37
  */
37
38
  quoteId?: number;
39
+ orderPreference?: OrderPreference;
40
+ supplier?: Supplier;
38
41
  constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, state: EventState, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[], guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string);
39
42
  static getPrestationsList(event: Event): string[];
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
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",
@@ -1,6 +1,7 @@
1
1
  export enum OrderState {
2
2
  NEW = 'NEW',
3
- SENT = 'SENT',
3
+ QUOTE_REQUESTED = 'QUOTE_REQUESTED',
4
+ ORDERED = 'ORDERED',
4
5
  DONE = 'DONE',
5
6
  CANCELLED = 'CANCELLED'
6
7
  }
@@ -12,8 +13,8 @@ export enum OrderPreference {
12
13
  }
13
14
 
14
15
  export enum ProductType {
15
- FRONT = 'PART',
16
- REAR = 'CONSUMABLE',
16
+ PART = 'PART',
17
+ CONSUMABLE = 'CONSUMABLE',
17
18
  }
18
19
 
19
20
  export enum PartsApplicationType {
@@ -1,10 +1,11 @@
1
1
  import User from "./User";
2
- import { EventState, EventType } from "../helpers/Enums";
2
+ import { EventState, EventType, OrderPreference } from "../helpers/Enums";
3
3
  import Prestation from "./Prestation";
4
4
  import Customer from "./Customer";
5
5
  import Vehicle from "./Vehicle";
6
6
  import Operation from "./Operation";
7
7
  import Product from "./Product";
8
+ import Supplier from "./Supplier";
8
9
 
9
10
  export default class Event {
10
11
 
@@ -38,6 +39,8 @@ export default class Event {
38
39
  * Eventuel numéro de devis rattaché à l'évent
39
40
  */
40
41
  quoteId?: number;
42
+ orderPreference?: OrderPreference;
43
+ supplier?: Supplier;
41
44
 
42
45
  constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,
43
46
  state: EventState, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[],