@movalib/movalib-commons 1.59.25 → 1.59.27
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.
|
@@ -68,7 +68,6 @@ var ScheduleFields = function (_a) {
|
|
|
68
68
|
Logger_1.default.info(mergedSchedules);
|
|
69
69
|
return mergedSchedules;
|
|
70
70
|
};
|
|
71
|
-
console.log('build componetns');
|
|
72
71
|
/**
|
|
73
72
|
* Cette fonction renvoie une liste de DaySchedule depuis une liste de Schedule
|
|
74
73
|
* @returns
|
|
@@ -96,7 +95,6 @@ var ScheduleFields = function (_a) {
|
|
|
96
95
|
// Chargement initial des données du garage
|
|
97
96
|
(0, react_1.useEffect)(function () {
|
|
98
97
|
if (schedules && schedules.length > 0) {
|
|
99
|
-
console.log('trouver le coupable');
|
|
100
98
|
setSchedule(mergeSchedules(schedules));
|
|
101
99
|
}
|
|
102
100
|
}, [schedules]); // Exécute le hook à chaque fois que les schedules transmis en props changent
|
|
@@ -15,6 +15,8 @@ interface roiInterface {
|
|
|
15
15
|
comment: string;
|
|
16
16
|
workforce: number;
|
|
17
17
|
workingTimePerEmployee: number;
|
|
18
|
+
partialWorkforce: number;
|
|
19
|
+
workingTimePerPartialEmployee: number;
|
|
18
20
|
}
|
|
19
21
|
export default class Subscription {
|
|
20
22
|
id: string;
|
|
@@ -35,10 +37,11 @@ export default class Subscription {
|
|
|
35
37
|
additionalFormationQuantity: number;
|
|
36
38
|
additionalFormationFree: boolean;
|
|
37
39
|
webPage: boolean;
|
|
40
|
+
webcam: boolean;
|
|
38
41
|
plvQuantity: number;
|
|
39
42
|
plvFree: boolean;
|
|
40
43
|
trainingOptionalOne: Date;
|
|
41
44
|
trainingOptionalTwo: Date;
|
|
42
|
-
constructor(id: string, garageId: string, type: SubscriptionType, state: SubscriptionState, companyName: string, companyEmail: string, companySiren: string, companyLegalForm: string, trialDays: number, startDate: Date, activationDate: Date, cancellationDate: Date, paymentInterval: SubscriptionPaymentInterval, paymentIban: string, roi: roiInterface, additionalFormationQuantity: number, additionalFormationFree: boolean, webPage: boolean, plvQuantity: number, plvFree: boolean, trainingOptionalOne: Date, trainingOptionalTwo: Date);
|
|
45
|
+
constructor(id: string, garageId: string, type: SubscriptionType, state: SubscriptionState, companyName: string, companyEmail: string, companySiren: string, companyLegalForm: string, trialDays: number, startDate: Date, activationDate: Date, cancellationDate: Date, paymentInterval: SubscriptionPaymentInterval, paymentIban: string, roi: roiInterface, additionalFormationQuantity: number, additionalFormationFree: boolean, webPage: boolean, plvQuantity: number, plvFree: boolean, trainingOptionalOne: Date, trainingOptionalTwo: Date, webcam: boolean);
|
|
43
46
|
}
|
|
44
47
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Subscription = /** @class */ (function () {
|
|
4
|
-
function Subscription(id, garageId, type, state, companyName, companyEmail, companySiren, companyLegalForm, trialDays, startDate, activationDate, cancellationDate, paymentInterval, paymentIban, roi, additionalFormationQuantity, additionalFormationFree, webPage, plvQuantity, plvFree, trainingOptionalOne, trainingOptionalTwo) {
|
|
4
|
+
function Subscription(id, garageId, type, state, companyName, companyEmail, companySiren, companyLegalForm, trialDays, startDate, activationDate, cancellationDate, paymentInterval, paymentIban, roi, additionalFormationQuantity, additionalFormationFree, webPage, plvQuantity, plvFree, trainingOptionalOne, trainingOptionalTwo, webcam) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.garageId = garageId;
|
|
7
7
|
this.type = type;
|
|
@@ -22,6 +22,7 @@ var Subscription = /** @class */ (function () {
|
|
|
22
22
|
this.additionalFormationFree = additionalFormationFree;
|
|
23
23
|
this.plvQuantity = plvQuantity;
|
|
24
24
|
this.plvFree = plvFree;
|
|
25
|
+
this.webcam = webcam;
|
|
25
26
|
this.trainingOptionalOne = trainingOptionalOne;
|
|
26
27
|
this.trainingOptionalTwo = trainingOptionalTwo;
|
|
27
28
|
}
|
package/package.json
CHANGED
package/src/models/Product.ts
CHANGED
|
@@ -7,6 +7,7 @@ export default class Product {
|
|
|
7
7
|
// Properties
|
|
8
8
|
id: string; //UUID
|
|
9
9
|
name: string;
|
|
10
|
+
code:string;
|
|
10
11
|
type: ProductType;
|
|
11
12
|
orderPreference?: OrderPreference;
|
|
12
13
|
originReferences?: string[];
|
|
@@ -22,6 +23,7 @@ export default class Product {
|
|
|
22
23
|
constructor(id:string, code: string, name:string, type: ProductType, orderPreference: OrderPreference, originReferences: string[]) {
|
|
23
24
|
this.id = id;
|
|
24
25
|
this.name = name;
|
|
26
|
+
this.code = code;
|
|
25
27
|
this.type = type;
|
|
26
28
|
this.orderPreference = orderPreference;
|
|
27
29
|
this.originReferences = originReferences;
|
|
@@ -14,7 +14,9 @@ interface roiInterface {
|
|
|
14
14
|
moThree: number,
|
|
15
15
|
comment: string,
|
|
16
16
|
workforce: number,
|
|
17
|
-
workingTimePerEmployee: number
|
|
17
|
+
workingTimePerEmployee: number,
|
|
18
|
+
partialWorkforce:number,
|
|
19
|
+
workingTimePerPartialEmployee: number
|
|
18
20
|
}
|
|
19
21
|
export default class Subscription {
|
|
20
22
|
|
|
@@ -38,6 +40,7 @@ export default class Subscription {
|
|
|
38
40
|
additionalFormationQuantity: number;
|
|
39
41
|
additionalFormationFree: boolean;
|
|
40
42
|
webPage: boolean;
|
|
43
|
+
webcam: boolean;
|
|
41
44
|
plvQuantity: number;
|
|
42
45
|
plvFree: boolean;
|
|
43
46
|
trainingOptionalOne: Date;
|
|
@@ -51,7 +54,8 @@ export default class Subscription {
|
|
|
51
54
|
plvQuantity: number,
|
|
52
55
|
plvFree: boolean,
|
|
53
56
|
trainingOptionalOne: Date,
|
|
54
|
-
trainingOptionalTwo: Date
|
|
57
|
+
trainingOptionalTwo: Date,
|
|
58
|
+
webcam: boolean
|
|
55
59
|
) {
|
|
56
60
|
this.id = id;
|
|
57
61
|
this.garageId = garageId;
|
|
@@ -73,6 +77,7 @@ export default class Subscription {
|
|
|
73
77
|
this.additionalFormationFree = additionalFormationFree;
|
|
74
78
|
this.plvQuantity = plvQuantity;
|
|
75
79
|
this.plvFree = plvFree;
|
|
80
|
+
this.webcam = webcam;
|
|
76
81
|
this.trainingOptionalOne = trainingOptionalOne;
|
|
77
82
|
this.trainingOptionalTwo = trainingOptionalTwo;
|
|
78
83
|
}
|
|
@@ -2,6 +2,8 @@ import { APIResponse, API_BASE_URL, request } from "../helpers/ApiHelper";
|
|
|
2
2
|
import { APIMethod, MovaAppType } from "../helpers/Enums";
|
|
3
3
|
import Employee from "../models/Employee";
|
|
4
4
|
import Garage from "../models/Garage";
|
|
5
|
+
import Operation from "../models/Operation";
|
|
6
|
+
import Product from "../models/Product";
|
|
5
7
|
import {
|
|
6
8
|
AddCustomerVehicleParams,
|
|
7
9
|
DeleteCustomerVehicleParams,
|
|
@@ -633,4 +635,20 @@ export default class GarageService {
|
|
|
633
635
|
appType: MovaAppType.GARAGE,
|
|
634
636
|
});
|
|
635
637
|
}
|
|
638
|
+
|
|
639
|
+
static getAllOperations(garageId:string): Promise<APIResponse<Operation>> {
|
|
640
|
+
return request({
|
|
641
|
+
url: `${API_BASE_URL}/garage/${garageId}/operations/all`,
|
|
642
|
+
method: APIMethod.GET,
|
|
643
|
+
appType: MovaAppType.GARAGE,
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
static getAllProducts(garageId:string): Promise<APIResponse<Product>> {
|
|
648
|
+
return request({
|
|
649
|
+
url: `${API_BASE_URL}/garage/${garageId}/products/all`,
|
|
650
|
+
method: APIMethod.GET,
|
|
651
|
+
appType: MovaAppType.GARAGE,
|
|
652
|
+
});
|
|
653
|
+
}
|
|
636
654
|
}
|