@movalib/movalib-commons 1.59.10 → 1.59.11
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.
|
@@ -15,6 +15,7 @@ export default class Garage {
|
|
|
15
15
|
name: string;
|
|
16
16
|
address: Address;
|
|
17
17
|
workforce: number;
|
|
18
|
+
partialWorkforce?: number;
|
|
18
19
|
contactPhone: string;
|
|
19
20
|
prestationCategories: CategoryPrestation[];
|
|
20
21
|
prestations: Prestation[];
|
|
@@ -41,11 +42,12 @@ export default class Garage {
|
|
|
41
42
|
teamManagementActive?: boolean;
|
|
42
43
|
documents?: Document[];
|
|
43
44
|
subscriptions?: Subscription[];
|
|
45
|
+
subscription?: Subscription;
|
|
44
46
|
supportPhoneNumber?: string;
|
|
45
47
|
operatorsActive?: boolean;
|
|
46
48
|
employees?: Employee[];
|
|
47
49
|
defaultView?: string;
|
|
48
50
|
loanerVehicleActive?: boolean;
|
|
49
51
|
loanerVehicleRequestActive?: boolean;
|
|
50
|
-
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, prestationCategories: CategoryPrestation[], vehicles?: VehicleGarage[], contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[], subscriptions?: Subscription[], loanerVehicleActive?: boolean, loanerVehicleRequestActive?: boolean);
|
|
52
|
+
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, prestationCategories: CategoryPrestation[], vehicles?: VehicleGarage[], contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[], subscriptions?: Subscription[], loanerVehicleActive?: boolean, loanerVehicleRequestActive?: boolean, subscription?: Subscription, partialWorkforce?: number);
|
|
51
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Garage = /** @class */ (function () {
|
|
4
|
-
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, prestationCategories, vehicles, contactEmail, logo, suppliers, documents, subscriptions, loanerVehicleActive, loanerVehicleRequestActive) {
|
|
4
|
+
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, prestationCategories, vehicles, contactEmail, logo, suppliers, documents, subscriptions, loanerVehicleActive, loanerVehicleRequestActive, subscription, partialWorkforce) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.adminId = adminId;
|
|
7
7
|
this.name = name;
|
|
@@ -19,6 +19,8 @@ var Garage = /** @class */ (function () {
|
|
|
19
19
|
this.vehicles = vehicles;
|
|
20
20
|
this.loanerVehicleActive = loanerVehicleActive;
|
|
21
21
|
this.loanerVehicleRequestActive = loanerVehicleRequestActive;
|
|
22
|
+
this.subscription = subscription;
|
|
23
|
+
this.partialWorkforce = partialWorkforce;
|
|
22
24
|
}
|
|
23
25
|
return Garage;
|
|
24
26
|
}());
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { SubscriptionPaymentInterval, SubscriptionState, SubscriptionType } from "../helpers/Enums";
|
|
2
|
+
interface roiInterface {
|
|
3
|
+
period: string;
|
|
4
|
+
turnover: number;
|
|
5
|
+
nbInvoice: number;
|
|
6
|
+
nbQuote: number;
|
|
7
|
+
nbNoShow: number;
|
|
8
|
+
nbLostQuote: number;
|
|
9
|
+
moRateOne: number;
|
|
10
|
+
moRateTwo: number;
|
|
11
|
+
moRateThree: number;
|
|
12
|
+
moOne: number;
|
|
13
|
+
moTwo: number;
|
|
14
|
+
moThree: number;
|
|
15
|
+
comment: string;
|
|
16
|
+
}
|
|
2
17
|
export default class Subscription {
|
|
3
18
|
id: string;
|
|
4
19
|
garageId: string;
|
|
@@ -14,5 +29,14 @@ export default class Subscription {
|
|
|
14
29
|
cancellationDate: Date;
|
|
15
30
|
paymentInterval: SubscriptionPaymentInterval;
|
|
16
31
|
paymentIban: string;
|
|
17
|
-
|
|
32
|
+
roi: roiInterface;
|
|
33
|
+
additionalFormationQuantity: number;
|
|
34
|
+
additionalFormationFree: boolean;
|
|
35
|
+
webPage: boolean;
|
|
36
|
+
plvQuantity: number;
|
|
37
|
+
plvFree: boolean;
|
|
38
|
+
trainingOptionalOne: Date;
|
|
39
|
+
trainingOptionalTwo: Date;
|
|
40
|
+
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);
|
|
18
41
|
}
|
|
42
|
+
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) {
|
|
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) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.garageId = garageId;
|
|
7
7
|
this.type = type;
|
|
@@ -16,6 +16,14 @@ var Subscription = /** @class */ (function () {
|
|
|
16
16
|
this.cancellationDate = cancellationDate;
|
|
17
17
|
this.paymentInterval = paymentInterval;
|
|
18
18
|
this.paymentIban = paymentIban;
|
|
19
|
+
this.roi = roi;
|
|
20
|
+
this.webPage = webPage;
|
|
21
|
+
this.additionalFormationQuantity = additionalFormationQuantity;
|
|
22
|
+
this.additionalFormationFree = additionalFormationFree;
|
|
23
|
+
this.plvQuantity = plvQuantity;
|
|
24
|
+
this.plvFree = plvFree;
|
|
25
|
+
this.trainingOptionalOne = trainingOptionalOne;
|
|
26
|
+
this.trainingOptionalTwo = trainingOptionalTwo;
|
|
19
27
|
}
|
|
20
28
|
return Subscription;
|
|
21
29
|
}());
|
package/package.json
CHANGED
package/src/models/Garage.ts
CHANGED
|
@@ -17,6 +17,7 @@ export default class Garage {
|
|
|
17
17
|
name:string;
|
|
18
18
|
address:Address;
|
|
19
19
|
workforce: number;
|
|
20
|
+
partialWorkforce?: number;
|
|
20
21
|
contactPhone: string;
|
|
21
22
|
prestationCategories: CategoryPrestation[];
|
|
22
23
|
prestations: Prestation[];
|
|
@@ -43,6 +44,7 @@ export default class Garage {
|
|
|
43
44
|
teamManagementActive?: boolean;
|
|
44
45
|
documents?: Document[];
|
|
45
46
|
subscriptions?: Subscription[];
|
|
47
|
+
subscription?: Subscription;
|
|
46
48
|
supportPhoneNumber?: string;
|
|
47
49
|
operatorsActive?: boolean;
|
|
48
50
|
employees?: Employee[];
|
|
@@ -67,7 +69,9 @@ export default class Garage {
|
|
|
67
69
|
documents?: Document[],
|
|
68
70
|
subscriptions?: Subscription[],
|
|
69
71
|
loanerVehicleActive?: boolean,
|
|
70
|
-
loanerVehicleRequestActive?: boolean
|
|
72
|
+
loanerVehicleRequestActive?: boolean,
|
|
73
|
+
subscription?: Subscription,
|
|
74
|
+
partialWorkforce?: number
|
|
71
75
|
) {
|
|
72
76
|
this.id = id;
|
|
73
77
|
this.adminId = adminId;
|
|
@@ -86,5 +90,7 @@ export default class Garage {
|
|
|
86
90
|
this.vehicles = vehicles;
|
|
87
91
|
this.loanerVehicleActive = loanerVehicleActive;
|
|
88
92
|
this.loanerVehicleRequestActive = loanerVehicleRequestActive;
|
|
93
|
+
this.subscription = subscription;
|
|
94
|
+
this.partialWorkforce = partialWorkforce;
|
|
89
95
|
}
|
|
90
96
|
}
|
|
@@ -1,40 +1,77 @@
|
|
|
1
1
|
import { SubscriptionPaymentInterval, SubscriptionState, SubscriptionType } from "../helpers/Enums";
|
|
2
|
-
|
|
2
|
+
interface roiInterface {
|
|
3
|
+
period: string,
|
|
4
|
+
turnover: number,
|
|
5
|
+
nbInvoice: number,
|
|
6
|
+
nbQuote: number,
|
|
7
|
+
nbNoShow: number,
|
|
8
|
+
nbLostQuote: number,
|
|
9
|
+
moRateOne: number,
|
|
10
|
+
moRateTwo: number,
|
|
11
|
+
moRateThree: number,
|
|
12
|
+
moOne: number,
|
|
13
|
+
moTwo: number,
|
|
14
|
+
moThree: number,
|
|
15
|
+
comment: string
|
|
16
|
+
}
|
|
3
17
|
export default class Subscription {
|
|
4
18
|
|
|
5
|
-
// Properties
|
|
6
|
-
id: string;
|
|
7
|
-
garageId: string;
|
|
8
|
-
type: SubscriptionType;
|
|
9
|
-
state: SubscriptionState;
|
|
10
|
-
companyName: string;
|
|
11
|
-
companyEmail: string;
|
|
12
|
-
companySiren: string;
|
|
13
|
-
companyLegalForm: string;
|
|
14
|
-
trialDays: number;
|
|
15
|
-
startDate: Date;
|
|
16
|
-
activationDate: Date;
|
|
17
|
-
cancellationDate: Date;
|
|
18
|
-
paymentInterval: SubscriptionPaymentInterval;
|
|
19
|
-
paymentIban: string;
|
|
20
|
-
|
|
21
|
-
constructor(id: string, garageId: string, type: SubscriptionType, state: SubscriptionState, companyName: string,
|
|
22
|
-
companyEmail: string, companySiren: string, companyLegalForm: string, trialDays: number, startDate: Date, activationDate: Date,
|
|
23
|
-
cancellationDate: Date, paymentInterval: SubscriptionPaymentInterval, paymentIban : string) {
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
20
|
+
// Properties
|
|
21
|
+
id: string;
|
|
22
|
+
garageId: string;
|
|
23
|
+
type: SubscriptionType;
|
|
24
|
+
state: SubscriptionState;
|
|
25
|
+
companyName: string;
|
|
26
|
+
companyEmail: string;
|
|
27
|
+
companySiren: string;
|
|
28
|
+
companyLegalForm: string;
|
|
29
|
+
trialDays: number;
|
|
30
|
+
startDate: Date;
|
|
31
|
+
activationDate: Date;
|
|
32
|
+
cancellationDate: Date;
|
|
33
|
+
paymentInterval: SubscriptionPaymentInterval;
|
|
34
|
+
paymentIban: string;
|
|
35
|
+
roi: roiInterface;
|
|
36
|
+
additionalFormationQuantity: number;
|
|
37
|
+
additionalFormationFree: boolean;
|
|
38
|
+
webPage: boolean;
|
|
39
|
+
plvQuantity: number;
|
|
40
|
+
plvFree: boolean;
|
|
41
|
+
trainingOptionalOne: Date;
|
|
42
|
+
trainingOptionalTwo: Date;
|
|
43
|
+
|
|
44
|
+
constructor(id: string, garageId: string, type: SubscriptionType, state: SubscriptionState, companyName: string,
|
|
45
|
+
companyEmail: string, companySiren: string, companyLegalForm: string, trialDays: number, startDate: Date, activationDate: Date,
|
|
46
|
+
cancellationDate: Date, paymentInterval: SubscriptionPaymentInterval, paymentIban: string, roi: roiInterface, additionalFormationQuantity: number,
|
|
47
|
+
additionalFormationFree: boolean,
|
|
48
|
+
webPage: boolean,
|
|
49
|
+
plvQuantity: number,
|
|
50
|
+
plvFree: boolean,
|
|
51
|
+
trainingOptionalOne: Date,
|
|
52
|
+
trainingOptionalTwo: Date
|
|
53
|
+
) {
|
|
54
|
+
this.id = id;
|
|
55
|
+
this.garageId = garageId;
|
|
56
|
+
this.type = type;
|
|
57
|
+
this.state = state;
|
|
58
|
+
this.companyName = companyName;
|
|
59
|
+
this.companyEmail = companyEmail;
|
|
60
|
+
this.companySiren = companySiren;
|
|
61
|
+
this.companyLegalForm = companyLegalForm;
|
|
62
|
+
this.trialDays = trialDays;
|
|
63
|
+
this.startDate = startDate;
|
|
64
|
+
this.activationDate = activationDate;
|
|
65
|
+
this.cancellationDate = cancellationDate;
|
|
66
|
+
this.paymentInterval = paymentInterval;
|
|
67
|
+
this.paymentIban = paymentIban;
|
|
68
|
+
this.roi = roi;
|
|
69
|
+
this.webPage = webPage;
|
|
70
|
+
this.additionalFormationQuantity = additionalFormationQuantity;
|
|
71
|
+
this.additionalFormationFree = additionalFormationFree;
|
|
72
|
+
this.plvQuantity = plvQuantity;
|
|
73
|
+
this.plvFree = plvFree;
|
|
74
|
+
this.trainingOptionalOne = trainingOptionalOne;
|
|
75
|
+
this.trainingOptionalTwo = trainingOptionalTwo;
|
|
76
|
+
}
|
|
40
77
|
}
|