@movalib/movalib-commons 1.32.0 → 1.34.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.
|
@@ -47,6 +47,7 @@ export default class Event {
|
|
|
47
47
|
vehicleAvailableNotified?: boolean;
|
|
48
48
|
editable?: boolean;
|
|
49
49
|
vehicleDepositDate?: Date;
|
|
50
|
+
vehicleDepositDateRequest?: Date;
|
|
50
51
|
constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[], guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean);
|
|
51
52
|
static getPrestationsList(event: Event): string[];
|
|
52
53
|
}
|
|
@@ -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
package/src/models/Event.ts
CHANGED
|
@@ -50,6 +50,7 @@ export default class Event {
|
|
|
50
50
|
vehicleAvailableNotified?: boolean;
|
|
51
51
|
editable?: boolean;
|
|
52
52
|
vehicleDepositDate?: Date;
|
|
53
|
+
vehicleDepositDateRequest?: Date;
|
|
53
54
|
|
|
54
55
|
constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,
|
|
55
56
|
state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[],
|
package/src/models/Product.ts
CHANGED
|
@@ -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;
|