@movalib/movalib-commons 1.63.4 → 1.63.5
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.
- package/dist/src/helpers/Enums.d.ts +2 -1
- package/dist/src/helpers/Enums.js +1 -0
- package/dist/src/models/Garage.d.ts +3 -1
- package/dist/src/models/Garage.js +3 -1
- package/dist/src/models/Subscription.d.ts +7 -4
- package/dist/src/models/Subscription.js +6 -4
- package/package.json +1 -1
- package/src/helpers/Enums.ts +2 -1
- package/src/models/Garage.ts +7 -2
- package/src/models/Subscription.ts +57 -34
|
@@ -68,6 +68,7 @@ var SubscriptionPaymentInterval;
|
|
|
68
68
|
* Paiement 24 Mois
|
|
69
69
|
*/
|
|
70
70
|
SubscriptionPaymentInterval["TWO_YEARS"] = "TWO_YEARS";
|
|
71
|
+
SubscriptionPaymentInterval["THREE_YEARS"] = "THREE_YEARS";
|
|
71
72
|
})(SubscriptionPaymentInterval = exports.SubscriptionPaymentInterval || (exports.SubscriptionPaymentInterval = {}));
|
|
72
73
|
var RegistrationState;
|
|
73
74
|
(function (RegistrationState) {
|
|
@@ -59,5 +59,7 @@ export default class Garage {
|
|
|
59
59
|
billingToken?: string;
|
|
60
60
|
billingSimulationActive?: boolean;
|
|
61
61
|
appId?: number;
|
|
62
|
-
|
|
62
|
+
companyRegistrationNumber?: string;
|
|
63
|
+
establishmentRegistrationNumber?: string;
|
|
64
|
+
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, prestationCategories: CategoryPrestation[], dayPeriodFastServiceExcluded: boolean, loanerVehicleFastServiceExcluded: boolean, fastServiceThreshold: number, timezone: string, vehicles?: VehicleGarage[], contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[], subscriptions?: Subscription[], loanerVehicleActive?: boolean, loanerVehicleRequestActive?: boolean, customStyle?: string, subscription?: Subscription, partialWorkforce?: number, mailCustomization?: boolean, billingActive?: boolean, billingToken?: string, billingSimulationActive?: boolean, appId?: number, establishmentRegistrationNumber?: string, companyRegistrationNumber?: string);
|
|
63
65
|
}
|
|
@@ -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, dayPeriodFastServiceExcluded, loanerVehicleFastServiceExcluded, fastServiceThreshold, timezone, vehicles, contactEmail, logo, suppliers, documents, subscriptions, loanerVehicleActive, loanerVehicleRequestActive, customStyle, subscription, partialWorkforce, mailCustomization, billingActive, billingToken, billingSimulationActive, appId) {
|
|
4
|
+
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, prestationCategories, dayPeriodFastServiceExcluded, loanerVehicleFastServiceExcluded, fastServiceThreshold, timezone, vehicles, contactEmail, logo, suppliers, documents, subscriptions, loanerVehicleActive, loanerVehicleRequestActive, customStyle, subscription, partialWorkforce, mailCustomization, billingActive, billingToken, billingSimulationActive, appId, establishmentRegistrationNumber, companyRegistrationNumber) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.adminId = adminId;
|
|
7
7
|
this.name = name;
|
|
@@ -31,6 +31,8 @@ var Garage = /** @class */ (function () {
|
|
|
31
31
|
this.billingToken = billingToken;
|
|
32
32
|
this.billingSimulationActive = billingSimulationActive;
|
|
33
33
|
this.appId = appId;
|
|
34
|
+
this.companyRegistrationNumber = companyRegistrationNumber;
|
|
35
|
+
this.establishmentRegistrationNumber = establishmentRegistrationNumber;
|
|
34
36
|
}
|
|
35
37
|
return Garage;
|
|
36
38
|
}());
|
|
@@ -17,6 +17,7 @@ interface roiInterface {
|
|
|
17
17
|
workingTimePerEmployee: number;
|
|
18
18
|
partialWorkforce: number;
|
|
19
19
|
workingTimePerPartialEmployee: number;
|
|
20
|
+
smsCampaign: boolean;
|
|
20
21
|
}
|
|
21
22
|
export default class Subscription {
|
|
22
23
|
id: string;
|
|
@@ -35,13 +36,15 @@ export default class Subscription {
|
|
|
35
36
|
paymentIban: string;
|
|
36
37
|
roi: roiInterface;
|
|
37
38
|
additionalFormationQuantity: number;
|
|
38
|
-
additionalFormationFree: boolean;
|
|
39
39
|
webPage: boolean;
|
|
40
40
|
webcam: boolean;
|
|
41
|
-
|
|
42
|
-
plvFree: boolean;
|
|
41
|
+
billing: boolean;
|
|
43
42
|
trainingOptionalOne: Date;
|
|
44
43
|
trainingOptionalTwo: Date;
|
|
45
|
-
|
|
44
|
+
movaPackage: string;
|
|
45
|
+
packInfo: boolean;
|
|
46
|
+
smsCampaign: boolean;
|
|
47
|
+
checkList: any;
|
|
48
|
+
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, webPage: boolean, smsCampaign: boolean, trainingOptionalOne: Date, trainingOptionalTwo: Date, webcam: boolean, billing: boolean, movaPackage: string, packInfo: boolean, checkList: any);
|
|
46
49
|
}
|
|
47
50
|
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,
|
|
4
|
+
function Subscription(id, garageId, type, state, companyName, companyEmail, companySiren, companyLegalForm, trialDays, startDate, activationDate, cancellationDate, paymentInterval, paymentIban, roi, additionalFormationQuantity, webPage, smsCampaign, trainingOptionalOne, trainingOptionalTwo, webcam, billing, movaPackage, packInfo, checkList) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.garageId = garageId;
|
|
7
7
|
this.type = type;
|
|
@@ -19,12 +19,14 @@ var Subscription = /** @class */ (function () {
|
|
|
19
19
|
this.roi = roi;
|
|
20
20
|
this.webPage = webPage;
|
|
21
21
|
this.additionalFormationQuantity = additionalFormationQuantity;
|
|
22
|
-
this.additionalFormationFree = additionalFormationFree;
|
|
23
|
-
this.plvQuantity = plvQuantity;
|
|
24
|
-
this.plvFree = plvFree;
|
|
25
22
|
this.webcam = webcam;
|
|
23
|
+
this.billing = billing;
|
|
26
24
|
this.trainingOptionalOne = trainingOptionalOne;
|
|
27
25
|
this.trainingOptionalTwo = trainingOptionalTwo;
|
|
26
|
+
this.movaPackage = movaPackage;
|
|
27
|
+
this.packInfo = packInfo;
|
|
28
|
+
this.smsCampaign = smsCampaign;
|
|
29
|
+
this.checkList = checkList;
|
|
28
30
|
}
|
|
29
31
|
return Subscription;
|
|
30
32
|
}());
|
package/package.json
CHANGED
package/src/helpers/Enums.ts
CHANGED
|
@@ -64,6 +64,7 @@ export enum SubscriptionPaymentInterval {
|
|
|
64
64
|
* Paiement 24 Mois
|
|
65
65
|
*/
|
|
66
66
|
TWO_YEARS = "TWO_YEARS",
|
|
67
|
+
THREE_YEARS = "THREE_YEARS",
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
export enum RegistrationState {
|
|
@@ -92,7 +93,7 @@ export enum RegistrationState {
|
|
|
92
93
|
export enum VehiclePlateFormat {
|
|
93
94
|
FRENCH_NEW = "FRENCH_NEW",
|
|
94
95
|
FRENCH_OLD = "FRENCH_OLD",
|
|
95
|
-
FOREIGN = "FOREIGN"
|
|
96
|
+
FOREIGN = "FOREIGN",
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
export enum SlotAlgorithm {
|
package/src/models/Garage.ts
CHANGED
|
@@ -65,7 +65,8 @@ export default class Garage {
|
|
|
65
65
|
billingToken?: string;
|
|
66
66
|
billingSimulationActive?: boolean;
|
|
67
67
|
appId?: number;
|
|
68
|
-
|
|
68
|
+
companyRegistrationNumber?: string;
|
|
69
|
+
establishmentRegistrationNumber?: string;
|
|
69
70
|
constructor(
|
|
70
71
|
id: string,
|
|
71
72
|
adminId: string,
|
|
@@ -95,7 +96,9 @@ export default class Garage {
|
|
|
95
96
|
billingActive?: boolean,
|
|
96
97
|
billingToken?: string,
|
|
97
98
|
billingSimulationActive?: boolean,
|
|
98
|
-
appId?: number
|
|
99
|
+
appId?: number,
|
|
100
|
+
establishmentRegistrationNumber?: string,
|
|
101
|
+
companyRegistrationNumber?: string
|
|
99
102
|
) {
|
|
100
103
|
this.id = id;
|
|
101
104
|
this.adminId = adminId;
|
|
@@ -126,5 +129,7 @@ export default class Garage {
|
|
|
126
129
|
this.billingToken = billingToken;
|
|
127
130
|
this.billingSimulationActive = billingSimulationActive;
|
|
128
131
|
this.appId = appId;
|
|
132
|
+
this.companyRegistrationNumber = companyRegistrationNumber;
|
|
133
|
+
this.establishmentRegistrationNumber = establishmentRegistrationNumber;
|
|
129
134
|
}
|
|
130
135
|
}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
SubscriptionPaymentInterval,
|
|
3
|
+
SubscriptionState,
|
|
4
|
+
SubscriptionType,
|
|
5
|
+
} from "../helpers/Enums";
|
|
2
6
|
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
|
-
workforce: number
|
|
17
|
-
workingTimePerEmployee: number
|
|
18
|
-
partialWorkforce:number
|
|
19
|
-
workingTimePerPartialEmployee: number
|
|
7
|
+
period: string;
|
|
8
|
+
turnover: number;
|
|
9
|
+
nbInvoice: number;
|
|
10
|
+
nbQuote: number;
|
|
11
|
+
nbNoShow: number;
|
|
12
|
+
nbLostQuote: number;
|
|
13
|
+
moRateOne: number;
|
|
14
|
+
moRateTwo: number;
|
|
15
|
+
moRateThree: number;
|
|
16
|
+
moOne: number;
|
|
17
|
+
moTwo: number;
|
|
18
|
+
moThree: number;
|
|
19
|
+
comment: string;
|
|
20
|
+
workforce: number;
|
|
21
|
+
workingTimePerEmployee: number;
|
|
22
|
+
partialWorkforce: number;
|
|
23
|
+
workingTimePerPartialEmployee: number;
|
|
24
|
+
smsCampaign: boolean;
|
|
20
25
|
}
|
|
21
26
|
export default class Subscription {
|
|
22
|
-
|
|
23
|
-
|
|
24
27
|
// Properties
|
|
25
28
|
id: string;
|
|
26
29
|
garageId: string;
|
|
@@ -38,24 +41,42 @@ export default class Subscription {
|
|
|
38
41
|
paymentIban: string;
|
|
39
42
|
roi: roiInterface;
|
|
40
43
|
additionalFormationQuantity: number;
|
|
41
|
-
additionalFormationFree: boolean;
|
|
42
44
|
webPage: boolean;
|
|
43
45
|
webcam: boolean;
|
|
44
|
-
|
|
45
|
-
plvFree: boolean;
|
|
46
|
+
billing: boolean;
|
|
46
47
|
trainingOptionalOne: Date;
|
|
47
48
|
trainingOptionalTwo: Date;
|
|
49
|
+
movaPackage: string;
|
|
50
|
+
packInfo: boolean;
|
|
51
|
+
smsCampaign: boolean;
|
|
52
|
+
checkList: any;
|
|
48
53
|
|
|
49
|
-
constructor(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
constructor(
|
|
55
|
+
id: string,
|
|
56
|
+
garageId: string,
|
|
57
|
+
type: SubscriptionType,
|
|
58
|
+
state: SubscriptionState,
|
|
59
|
+
companyName: string,
|
|
60
|
+
companyEmail: string,
|
|
61
|
+
companySiren: string,
|
|
62
|
+
companyLegalForm: string,
|
|
63
|
+
trialDays: number,
|
|
64
|
+
startDate: Date,
|
|
65
|
+
activationDate: Date,
|
|
66
|
+
cancellationDate: Date,
|
|
67
|
+
paymentInterval: SubscriptionPaymentInterval,
|
|
68
|
+
paymentIban: string,
|
|
69
|
+
roi: roiInterface,
|
|
70
|
+
additionalFormationQuantity: number,
|
|
53
71
|
webPage: boolean,
|
|
54
|
-
|
|
55
|
-
plvFree: boolean,
|
|
72
|
+
smsCampaign: boolean,
|
|
56
73
|
trainingOptionalOne: Date,
|
|
57
74
|
trainingOptionalTwo: Date,
|
|
58
|
-
webcam: boolean
|
|
75
|
+
webcam: boolean,
|
|
76
|
+
billing: boolean,
|
|
77
|
+
movaPackage: string,
|
|
78
|
+
packInfo: boolean,
|
|
79
|
+
checkList: any
|
|
59
80
|
) {
|
|
60
81
|
this.id = id;
|
|
61
82
|
this.garageId = garageId;
|
|
@@ -74,11 +95,13 @@ export default class Subscription {
|
|
|
74
95
|
this.roi = roi;
|
|
75
96
|
this.webPage = webPage;
|
|
76
97
|
this.additionalFormationQuantity = additionalFormationQuantity;
|
|
77
|
-
this.additionalFormationFree = additionalFormationFree;
|
|
78
|
-
this.plvQuantity = plvQuantity;
|
|
79
|
-
this.plvFree = plvFree;
|
|
80
98
|
this.webcam = webcam;
|
|
99
|
+
this.billing = billing;
|
|
81
100
|
this.trainingOptionalOne = trainingOptionalOne;
|
|
82
101
|
this.trainingOptionalTwo = trainingOptionalTwo;
|
|
102
|
+
this.movaPackage = movaPackage;
|
|
103
|
+
this.packInfo = packInfo;
|
|
104
|
+
this.smsCampaign = smsCampaign;
|
|
105
|
+
this.checkList = checkList;
|
|
83
106
|
}
|
|
84
|
-
}
|
|
107
|
+
}
|