@movalib/movalib-commons 1.1.55 → 1.1.57
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/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/src/helpers/Enums.d.ts +32 -0
- package/dist/src/helpers/Enums.js +35 -1
- package/dist/src/models/Garage.d.ts +5 -1
- package/index.ts +2 -1
- package/package.json +1 -1
- package/src/helpers/Enums.ts +35 -0
- package/src/models/Garage.ts +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -42,4 +42,4 @@ export { readCookie, deleteCookie } from './src/helpers/CookieUtils';
|
|
|
42
42
|
export { validateField, formatVehicleTire, formatFrenchVehiclePlate, isEmpty, getApplicationShortLabel, capitalizeFirstLetter, flexLeftRow, formatPhoneNumber, getFormattedSchedule, getFormattedIntervals, findScheduleByDayOfWeek } from './src/helpers/Tools';
|
|
43
43
|
export { validatePhoneNumber, validateText, validateEmail } from './src/helpers/Validator';
|
|
44
44
|
export { formatDateByCountryCode, getLongFormattedDateTime } from './src/helpers/DateUtils';
|
|
45
|
-
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType, DigitalPassportIndex, DocumentState, Gender, DateFormatTypes, PartsApplicationType, ProductType, OrderPreference, OrderState, SlotAlgorithm, VehiclePlateFormat as VehiclePlateType } from './src/helpers/Enums';
|
|
45
|
+
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType, DigitalPassportIndex, DocumentState, Gender, DateFormatTypes, PartsApplicationType, ProductType, OrderPreference, OrderState, SlotAlgorithm, VehiclePlateFormat as VehiclePlateType, SubscriptionPaymentInterval, RegistrationState } from './src/helpers/Enums';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.findScheduleByDayOfWeek = exports.getFormattedIntervals = exports.getFormattedSchedule = exports.formatPhoneNumber = exports.flexLeftRow = exports.capitalizeFirstLetter = exports.getApplicationShortLabel = exports.isEmpty = exports.formatFrenchVehiclePlate = exports.formatVehicleTire = exports.validateField = exports.deleteCookie = exports.readCookie = exports.VehicleTire = exports.Event = exports.Schedule = exports.Garage = exports.Document = exports.Vehicle = exports.Address = exports.Role = exports.User = exports.Customer = exports.Logger = exports.Operation = exports.Prestation = exports.Product = exports.Supplier = exports.GenderSelector = exports.ConfirmationDialog = exports.MovaVehicleTireField = exports.MovaCopyright = exports.MovaSignUp = exports.MovaLogin = exports.MovaSnackbar = exports.TestButton = exports.VehiclePlateField = exports.QRCode = exports.MovaDialog = exports.Loader = exports.MovaDigitalPassport = exports.VehicleFullCard = exports.ScheduleFields = exports.AddressFields = exports.AccountValidation = exports.GaragePLV = exports.IbanInput = exports.UserService = exports.GarageService = exports.AuthenticationService = void 0;
|
|
8
|
-
exports.VehiclePlateType = exports.SlotAlgorithm = exports.OrderState = exports.OrderPreference = exports.ProductType = exports.PartsApplicationType = exports.DateFormatTypes = exports.Gender = exports.DocumentState = exports.DigitalPassportIndex = exports.DocumentType = exports.EventType = exports.EventState = exports.DayOfWeek = exports.MovaAppType = exports.RoleType = exports.getLongFormattedDateTime = exports.formatDateByCountryCode = exports.validateEmail = exports.validateText = exports.validatePhoneNumber = void 0;
|
|
8
|
+
exports.RegistrationState = exports.SubscriptionPaymentInterval = exports.VehiclePlateType = exports.SlotAlgorithm = exports.OrderState = exports.OrderPreference = exports.ProductType = exports.PartsApplicationType = exports.DateFormatTypes = exports.Gender = exports.DocumentState = exports.DigitalPassportIndex = exports.DocumentType = exports.EventType = exports.EventState = exports.DayOfWeek = exports.MovaAppType = exports.RoleType = exports.getLongFormattedDateTime = exports.formatDateByCountryCode = exports.validateEmail = exports.validateText = exports.validatePhoneNumber = void 0;
|
|
9
9
|
// Export des services
|
|
10
10
|
var AuthenticationService_1 = require("./src/services/AuthenticationService");
|
|
11
11
|
Object.defineProperty(exports, "AuthenticationService", { enumerable: true, get: function () { return __importDefault(AuthenticationService_1).default; } });
|
|
@@ -124,3 +124,5 @@ Object.defineProperty(exports, "OrderPreference", { enumerable: true, get: funct
|
|
|
124
124
|
Object.defineProperty(exports, "OrderState", { enumerable: true, get: function () { return Enums_1.OrderState; } });
|
|
125
125
|
Object.defineProperty(exports, "SlotAlgorithm", { enumerable: true, get: function () { return Enums_1.SlotAlgorithm; } });
|
|
126
126
|
Object.defineProperty(exports, "VehiclePlateType", { enumerable: true, get: function () { return Enums_1.VehiclePlateFormat; } });
|
|
127
|
+
Object.defineProperty(exports, "SubscriptionPaymentInterval", { enumerable: true, get: function () { return Enums_1.SubscriptionPaymentInterval; } });
|
|
128
|
+
Object.defineProperty(exports, "RegistrationState", { enumerable: true, get: function () { return Enums_1.RegistrationState; } });
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
export declare enum SubscriptionPaymentInterval {
|
|
2
|
+
/**
|
|
3
|
+
* Paiement Mensuel
|
|
4
|
+
*/
|
|
5
|
+
MONTH = "MONTH",
|
|
6
|
+
/**
|
|
7
|
+
* Paiement Annuel
|
|
8
|
+
*/
|
|
9
|
+
YEAR = "YEAR"
|
|
10
|
+
}
|
|
11
|
+
export declare enum RegistrationState {
|
|
12
|
+
/**
|
|
13
|
+
* Nouvelle inscription (inscription en cours, non finalisée)
|
|
14
|
+
*/
|
|
15
|
+
NEW = "NEW",
|
|
16
|
+
/**
|
|
17
|
+
* Inscription complète, en de validation (équipe Admin Movalib)
|
|
18
|
+
*/
|
|
19
|
+
COMPLETED = "COMPLETED",
|
|
20
|
+
/**
|
|
21
|
+
* Inscription rejetée par l'équipe Admin Movalib
|
|
22
|
+
*/
|
|
23
|
+
REJECTED = "REJECTED",
|
|
24
|
+
/**
|
|
25
|
+
* Inscription validée par l'équipe Admin Movalib
|
|
26
|
+
*/
|
|
27
|
+
VALIDATED = "VALIDATED",
|
|
28
|
+
/**
|
|
29
|
+
* Inscription active, le compte est opérationnel
|
|
30
|
+
*/
|
|
31
|
+
ACTIVATED = "ACTIVATED"
|
|
32
|
+
}
|
|
1
33
|
export declare enum VehiclePlateFormat {
|
|
2
34
|
FRENCH_NEW = "FRENCH_NEW",
|
|
3
35
|
FRENCH_OLD = "FRENCH_OLD"
|
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RoleType = exports.MovaAppType = exports.DocumentType = exports.DocumentState = exports.DayOfWeek = exports.EventType = exports.EventState = exports.DigitalPassportIndex = exports.Gender = exports.DateFormatTypes = exports.APIMethod = exports.PartsApplicationType = exports.ProductType = exports.OrderPreference = exports.OrderState = exports.SlotAlgorithm = exports.VehiclePlateFormat = void 0;
|
|
3
|
+
exports.RoleType = exports.MovaAppType = exports.DocumentType = exports.DocumentState = exports.DayOfWeek = exports.EventType = exports.EventState = exports.DigitalPassportIndex = exports.Gender = exports.DateFormatTypes = exports.APIMethod = exports.PartsApplicationType = exports.ProductType = exports.OrderPreference = exports.OrderState = exports.SlotAlgorithm = exports.VehiclePlateFormat = exports.RegistrationState = exports.SubscriptionPaymentInterval = void 0;
|
|
4
|
+
var SubscriptionPaymentInterval;
|
|
5
|
+
(function (SubscriptionPaymentInterval) {
|
|
6
|
+
/**
|
|
7
|
+
* Paiement Mensuel
|
|
8
|
+
*/
|
|
9
|
+
SubscriptionPaymentInterval["MONTH"] = "MONTH";
|
|
10
|
+
/**
|
|
11
|
+
* Paiement Annuel
|
|
12
|
+
*/
|
|
13
|
+
SubscriptionPaymentInterval["YEAR"] = "YEAR";
|
|
14
|
+
})(SubscriptionPaymentInterval = exports.SubscriptionPaymentInterval || (exports.SubscriptionPaymentInterval = {}));
|
|
15
|
+
var RegistrationState;
|
|
16
|
+
(function (RegistrationState) {
|
|
17
|
+
/**
|
|
18
|
+
* Nouvelle inscription (inscription en cours, non finalisée)
|
|
19
|
+
*/
|
|
20
|
+
RegistrationState["NEW"] = "NEW";
|
|
21
|
+
/**
|
|
22
|
+
* Inscription complète, en de validation (équipe Admin Movalib)
|
|
23
|
+
*/
|
|
24
|
+
RegistrationState["COMPLETED"] = "COMPLETED";
|
|
25
|
+
/**
|
|
26
|
+
* Inscription rejetée par l'équipe Admin Movalib
|
|
27
|
+
*/
|
|
28
|
+
RegistrationState["REJECTED"] = "REJECTED";
|
|
29
|
+
/**
|
|
30
|
+
* Inscription validée par l'équipe Admin Movalib
|
|
31
|
+
*/
|
|
32
|
+
RegistrationState["VALIDATED"] = "VALIDATED";
|
|
33
|
+
/**
|
|
34
|
+
* Inscription active, le compte est opérationnel
|
|
35
|
+
*/
|
|
36
|
+
RegistrationState["ACTIVATED"] = "ACTIVATED";
|
|
37
|
+
})(RegistrationState = exports.RegistrationState || (exports.RegistrationState = {}));
|
|
4
38
|
var VehiclePlateFormat;
|
|
5
39
|
(function (VehiclePlateFormat) {
|
|
6
40
|
VehiclePlateFormat["FRENCH_NEW"] = "FRENCH_NEW";
|
|
@@ -2,7 +2,7 @@ import Address from "./Address";
|
|
|
2
2
|
import Schedule from "./Schedule";
|
|
3
3
|
import Prestation from "./Prestation";
|
|
4
4
|
import Supplier from "./Supplier";
|
|
5
|
-
import { OrderPreference, SlotAlgorithm } from "../helpers/Enums";
|
|
5
|
+
import { OrderPreference, RegistrationState, SlotAlgorithm, SubscriptionPaymentInterval } from "../helpers/Enums";
|
|
6
6
|
export default class Garage {
|
|
7
7
|
id: string;
|
|
8
8
|
adminId: string;
|
|
@@ -22,5 +22,9 @@ export default class Garage {
|
|
|
22
22
|
slotAlgorithm?: SlotAlgorithm;
|
|
23
23
|
customerQuoteActive?: boolean;
|
|
24
24
|
supplierOrderActive?: boolean;
|
|
25
|
+
registrationState?: RegistrationState;
|
|
26
|
+
subscriptionIban?: string;
|
|
27
|
+
subscriptionPaymentInterval?: SubscriptionPaymentInterval;
|
|
28
|
+
creationDate?: Date;
|
|
25
29
|
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, contactEmail?: string, logo?: string, suppliers?: Supplier[]);
|
|
26
30
|
}
|
package/index.ts
CHANGED
|
@@ -59,5 +59,6 @@ export { formatDateByCountryCode, getLongFormattedDateTime } from './src/helpers
|
|
|
59
59
|
// Export des enums
|
|
60
60
|
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType,
|
|
61
61
|
DigitalPassportIndex, DocumentState, Gender, DateFormatTypes, PartsApplicationType,
|
|
62
|
-
ProductType, OrderPreference, OrderState, SlotAlgorithm, VehiclePlateFormat as VehiclePlateType
|
|
62
|
+
ProductType, OrderPreference, OrderState, SlotAlgorithm, VehiclePlateFormat as VehiclePlateType,
|
|
63
|
+
SubscriptionPaymentInterval, RegistrationState } from './src/helpers/Enums';
|
|
63
64
|
|
package/package.json
CHANGED
package/src/helpers/Enums.ts
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
export enum SubscriptionPaymentInterval {
|
|
2
|
+
/**
|
|
3
|
+
* Paiement Mensuel
|
|
4
|
+
*/
|
|
5
|
+
MONTH = "MONTH",
|
|
6
|
+
/**
|
|
7
|
+
* Paiement Annuel
|
|
8
|
+
*/
|
|
9
|
+
YEAR = "YEAR"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export enum RegistrationState {
|
|
14
|
+
/**
|
|
15
|
+
* Nouvelle inscription (inscription en cours, non finalisée)
|
|
16
|
+
*/
|
|
17
|
+
NEW = "NEW",
|
|
18
|
+
/**
|
|
19
|
+
* Inscription complète, en de validation (équipe Admin Movalib)
|
|
20
|
+
*/
|
|
21
|
+
COMPLETED = "COMPLETED",
|
|
22
|
+
/**
|
|
23
|
+
* Inscription rejetée par l'équipe Admin Movalib
|
|
24
|
+
*/
|
|
25
|
+
REJECTED = "REJECTED",
|
|
26
|
+
/**
|
|
27
|
+
* Inscription validée par l'équipe Admin Movalib
|
|
28
|
+
*/
|
|
29
|
+
VALIDATED = "VALIDATED",
|
|
30
|
+
/**
|
|
31
|
+
* Inscription active, le compte est opérationnel
|
|
32
|
+
*/
|
|
33
|
+
ACTIVATED = "ACTIVATED"
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
export enum VehiclePlateFormat {
|
|
2
37
|
FRENCH_NEW = "FRENCH_NEW",
|
|
3
38
|
FRENCH_OLD ="FRENCH_OLD"
|
package/src/models/Garage.ts
CHANGED
|
@@ -2,7 +2,7 @@ import Address from "./Address";
|
|
|
2
2
|
import Schedule from "./Schedule";
|
|
3
3
|
import Prestation from "./Prestation";
|
|
4
4
|
import Supplier from "./Supplier";
|
|
5
|
-
import { OrderPreference, SlotAlgorithm } from "../helpers/Enums";
|
|
5
|
+
import { OrderPreference, RegistrationState, SlotAlgorithm, SubscriptionPaymentInterval } from "../helpers/Enums";
|
|
6
6
|
|
|
7
7
|
export default class Garage {
|
|
8
8
|
|
|
@@ -24,6 +24,10 @@ export default class Garage {
|
|
|
24
24
|
slotAlgorithm?: SlotAlgorithm;
|
|
25
25
|
customerQuoteActive?: boolean;
|
|
26
26
|
supplierOrderActive?: boolean;
|
|
27
|
+
registrationState?: RegistrationState;
|
|
28
|
+
subscriptionIban?: string;
|
|
29
|
+
subscriptionPaymentInterval?: SubscriptionPaymentInterval;
|
|
30
|
+
creationDate?: Date;
|
|
27
31
|
|
|
28
32
|
constructor(
|
|
29
33
|
id:string,
|