@movalib/movalib-commons 1.64.5 → 1.64.6

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 CHANGED
@@ -1,62 +1,62 @@
1
- export { default as VehicleService } from './src/services/VehicleService';
2
- export { default as AuthenticationService } from './src/services/AuthenticationService';
3
- export { default as GarageService } from './src/services/GarageService';
4
- export { default as UserService } from './src/services/UserService';
5
- export { default as DialogForgotPassword } from './src/DialogForgotPassword';
6
- export { default as IbanInput } from './src/IbanInput';
7
- export { default as GaragePLV } from './src/GaragePLV';
8
- export { default as AccountValidation } from './src/AccountValidation';
9
- export { default as AddressFields } from './src/AddressFields';
10
- export { default as ScheduleFields } from './src/ScheduleFields';
11
- export { default as VehicleFullCard } from './src/components/vehicle/VehicleFullCard';
12
- export { default as MovaDigitalPassport } from './src/MovaDigitalPassport';
13
- export { default as Loader } from './src/Loader';
14
- export { default as MovaDialog } from './src/MovaDialog';
15
- export { default as QRCode } from './src/QRCode';
16
- export { default as VehiclePlateField, regexPlate, oldRegexPlate } from './src/components/vehicle/VehiclePlateField';
17
- export { default as TestButton } from './src/TestButton';
18
- export { default as MovaSnackbar } from './src/MovaSnackbar';
19
- export { default as MovaLogin } from './src/MovaLogin';
20
- export { default as MovaSignUp } from './src/MovaSignUp';
21
- export { default as MovaCopyright } from './src/MovaCopyright';
22
- export { default as MovaVehicleTireField } from './src/MovaVehicleTireField';
23
- export { default as ConfirmationDialog } from './src/ConfirmationDialog';
24
- export { default as GenderSelector } from './src/GenderSelector';
25
- export { default as ActivateAccount } from './src/components/singup/ActivateAccount';
26
- export { QrCodePLVContainer } from './src/components/QrCodePLVContainer/QrCodePLVContainer';
27
- export { PLVComponent, PrintSize } from './src/components/QrCodePLVContainer/PLVComponent';
28
- export { LinkedDocumentDialog } from './src/components/LinkedDocumentDialog';
29
- export { default as MovaTable } from './src/components/MovaTable/MovaTable';
1
+ export { default as AuthenticationService } from "./src/services/AuthenticationService";
2
+ export { default as GarageService } from "./src/services/GarageService";
3
+ export { default as UserService } from "./src/services/UserService";
4
+ export { default as VehicleService } from "./src/services/VehicleService";
5
+ export { default as AccountValidation } from "./src/AccountValidation";
6
+ export { default as AddressFields } from "./src/AddressFields";
7
+ export { LinkedDocumentDialog } from "./src/components/LinkedDocumentDialog";
8
+ export { default as MovaTable } from "./src/components/MovaTable/MovaTable";
30
9
  export { default as MovaTableBack } from "./src/components/MovaTableBack/MovaTableBack";
31
- export { default as Subscription } from './src/models/Subscription';
32
- export { default as Absence } from './src/models/Absence';
33
- export { default as Employee } from './src/models/Employee';
34
- export { default as Supplier } from './src/models/Supplier';
35
- export { default as Product } from './src/models/Product';
36
- export { default as Prestation } from './src/models/Prestation';
37
- export { default as Operation } from './src/models/Operation';
38
- export { default as Logger } from './src/helpers/Logger';
39
- export { default as Customer } from './src/models/Customer';
40
- export { default as User } from './src/models/User';
41
- export { default as Role } from './src/models/Role';
42
- export { default as Address } from './src/models/Address';
43
- export { default as Vehicle } from './src/models/Vehicle';
44
- export { default as Document } from './src/models/Document';
45
- export { default as Garage } from './src/models/Garage';
46
- export { default as VehicleGarage } from './src/models/VehicleGarage';
47
- export { default as Schedule } from './src/models/Schedule';
48
- export { default as Event } from './src/models/Event';
49
- export { default as VehicleTire } from './src/models/VehicleTire';
50
- export { default as CategoryPrestation } from './src/models/CategoryPrestation';
51
- export type { APIRequest, APIResponse } from './src/helpers/ApiHelper';
52
- export type { DaySchedule, DayInterval } from './src/ScheduleFields';
53
- export type { MovaFormField, MovaLoginForm, MovaUserSignUpForm, MovaInterval, MovaVehicleForm, AddressFieldName, } from './src/helpers/Types';
54
- export { readCookie, deleteCookie } from './src/helpers/CookieUtils';
55
- export { validateField, formatVehicleTire, formatVehiclePlate, isEmpty, getApplicationShortLabel, capitalizeFirstLetter, flexLeftRow, formatPhoneNumber, getFormattedSchedule, getFormattedIntervals, findScheduleByDayOfWeek, getDayOfWeekLabel, isSafariOniOS, getApplicationsShortLabels, } from './src/helpers/Tools';
56
- export { validatePhoneNumber, validateText, validateEmail } from './src/helpers/Validator';
57
- export { formatDateByTimezone, getLongFormattedDateTime } from './src/helpers/DateUtils';
58
- export { request, API_BASE_URL } from './src/helpers/ApiHelper';
59
- export { CustomerType, RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType, DigitalPassportIndex, DocumentState, Gender, DateFormatTypes, PartsApplicationType, ProductType, OrderPreference, OrderState, SlotAlgorithm, VehiclePlateFormat as VehiclePlateType, SubscriptionPaymentInterval, RegistrationState, PrestationType, PrestationState, CountryCode, SubscriptionState, SubscriptionType, APIMethod, } from './src/helpers/Enums';
60
- export { openDialogPrint } from './src/utils/DialogPrint';
61
- export { getQrCodeBase64 } from './src/utils/getQRCodeBase64';
62
- export { StyledToggleButton, StyledToggleButtonGroup } from './src/style/styled';
10
+ export { PLVComponent, PrintSize, } from "./src/components/QrCodePLVContainer/PLVComponent";
11
+ export { QrCodePLVContainer } from "./src/components/QrCodePLVContainer/QrCodePLVContainer";
12
+ export { default as ActivateAccount } from "./src/components/singup/ActivateAccount";
13
+ export { default as VehicleFullCard } from "./src/components/vehicle/VehicleFullCard";
14
+ export { default as VehiclePlateField, oldRegexPlate, regexPlate, } from "./src/components/vehicle/VehiclePlateField";
15
+ export { default as ConfirmationDialog } from "./src/ConfirmationDialog";
16
+ export { default as DialogForgotPassword } from "./src/DialogForgotPassword";
17
+ export { default as GaragePLV } from "./src/GaragePLV";
18
+ export { default as GenderSelector } from "./src/GenderSelector";
19
+ export { default as IbanInput } from "./src/IbanInput";
20
+ export { default as Loader } from "./src/Loader";
21
+ export { default as MovaCopyright } from "./src/MovaCopyright";
22
+ export { default as MovaDialog } from "./src/MovaDialog";
23
+ export { default as MovaDigitalPassport } from "./src/MovaDigitalPassport";
24
+ export { default as MovaLogin } from "./src/MovaLogin";
25
+ export { default as MovaSignUp } from "./src/MovaSignUp";
26
+ export { default as MovaSnackbar } from "./src/MovaSnackbar";
27
+ export { default as MovaVehicleTireField } from "./src/MovaVehicleTireField";
28
+ export { default as QRCode } from "./src/QRCode";
29
+ export { default as ScheduleFields } from "./src/ScheduleFields";
30
+ export { default as TestButton } from "./src/TestButton";
31
+ export { default as Logger } from "./src/helpers/Logger";
32
+ export { default as Absence } from "./src/models/Absence";
33
+ export { default as Address } from "./src/models/Address";
34
+ export { default as CategoryPrestation } from "./src/models/CategoryPrestation";
35
+ export { default as Customer } from "./src/models/Customer";
36
+ export { default as Document } from "./src/models/Document";
37
+ export { default as Employee } from "./src/models/Employee";
38
+ export { default as Event } from "./src/models/Event";
39
+ export { default as Garage } from "./src/models/Garage";
40
+ export { default as Operation } from "./src/models/Operation";
41
+ export { default as Prestation } from "./src/models/Prestation";
42
+ export { default as Product } from "./src/models/Product";
43
+ export { default as Role } from "./src/models/Role";
44
+ export { default as Schedule } from "./src/models/Schedule";
45
+ export { default as Subscription } from "./src/models/Subscription";
46
+ export { default as Supplier } from "./src/models/Supplier";
47
+ export { default as User } from "./src/models/User";
48
+ export { default as Vehicle } from "./src/models/Vehicle";
49
+ export { default as VehicleGarage } from "./src/models/VehicleGarage";
50
+ export { default as VehicleTire } from "./src/models/VehicleTire";
51
+ export type { APIRequest, APIResponse } from "./src/helpers/ApiHelper";
52
+ export type { AddressFieldName, MovaFormField, MovaInterval, MovaLoginForm, MovaUserSignUpForm, MovaVehicleForm, } from "./src/helpers/Types";
53
+ export type { DayInterval, DaySchedule } from "./src/ScheduleFields";
54
+ export { API_BASE_URL, request } from "./src/helpers/ApiHelper";
55
+ export { deleteCookie, readCookie } from "./src/helpers/CookieUtils";
56
+ export { formatDateByTimezone, getLongFormattedDateTime, } from "./src/helpers/DateUtils";
57
+ export { capitalizeFirstLetter, findScheduleByDayOfWeek, flexLeftRow, formatPhoneNumber, formatVehiclePlate, formatVehicleTire, getApplicationShortLabel, getApplicationsShortLabels, getDayOfWeekLabel, getFormattedIntervals, getFormattedSchedule, isEmpty, isSafariOniOS, validateField, } from "./src/helpers/Tools";
58
+ export { validateEmail, validatePhoneNumber, validateText, } from "./src/helpers/Validator";
59
+ export { APIMethod, CountryCode, CustomerType, DateFormatTypes, DayOfWeek, DigitalPassportIndex, DocumentState, DocumentType, EventState, EventType, Gender, MovaAppType, OrderPreference, OrderState, PartsApplicationType, PrestationState, PrestationType, ProductType, RegistrationState, RoleType, SecondaryPartsApplicationType, SlotAlgorithm, SubscriptionPaymentInterval, SubscriptionState, SubscriptionType, VehiclePlateFormat as VehiclePlateType, } from "./src/helpers/Enums";
60
+ export { openDialogPrint } from "./src/utils/DialogPrint";
61
+ export { getQrCodeBase64 } from "./src/utils/getQRCodeBase64";
62
+ export { StyledToggleButton, StyledToggleButtonGroup, } from "./src/style/styled";
package/dist/index.js CHANGED
@@ -4,171 +4,172 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.Schedule = exports.VehicleGarage = 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.Employee = exports.Absence = exports.Subscription = exports.MovaTableBack = exports.MovaTable = exports.LinkedDocumentDialog = exports.PrintSize = exports.PLVComponent = exports.QrCodePLVContainer = exports.ActivateAccount = exports.GenderSelector = exports.ConfirmationDialog = exports.MovaVehicleTireField = exports.MovaCopyright = exports.MovaSignUp = exports.MovaLogin = exports.MovaSnackbar = exports.TestButton = exports.oldRegexPlate = exports.regexPlate = exports.VehiclePlateField = exports.QRCode = exports.MovaDialog = exports.Loader = exports.MovaDigitalPassport = exports.VehicleFullCard = exports.ScheduleFields = exports.AddressFields = exports.AccountValidation = exports.GaragePLV = exports.IbanInput = exports.DialogForgotPassword = exports.UserService = exports.GarageService = exports.AuthenticationService = exports.VehicleService = void 0;
8
- exports.SubscriptionType = exports.SubscriptionState = exports.CountryCode = exports.PrestationState = exports.PrestationType = 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.CustomerType = exports.API_BASE_URL = exports.request = exports.getLongFormattedDateTime = exports.formatDateByTimezone = exports.validateEmail = exports.validateText = exports.validatePhoneNumber = exports.getApplicationsShortLabels = exports.isSafariOniOS = exports.getDayOfWeekLabel = exports.findScheduleByDayOfWeek = exports.getFormattedIntervals = exports.getFormattedSchedule = exports.formatPhoneNumber = exports.flexLeftRow = exports.capitalizeFirstLetter = exports.getApplicationShortLabel = exports.isEmpty = exports.formatVehiclePlate = exports.formatVehicleTire = exports.validateField = exports.deleteCookie = exports.readCookie = exports.CategoryPrestation = exports.VehicleTire = exports.Event = void 0;
9
- exports.StyledToggleButtonGroup = exports.StyledToggleButton = exports.getQrCodeBase64 = exports.openDialogPrint = exports.APIMethod = void 0;
7
+ exports.User = exports.Supplier = exports.Subscription = exports.Schedule = exports.Role = exports.Product = exports.Prestation = exports.Operation = exports.Garage = exports.Event = exports.Employee = exports.Document = exports.Customer = exports.CategoryPrestation = exports.Address = exports.Absence = exports.Logger = exports.TestButton = exports.ScheduleFields = exports.QRCode = exports.MovaVehicleTireField = exports.MovaSnackbar = exports.MovaSignUp = exports.MovaLogin = exports.MovaDigitalPassport = exports.MovaDialog = exports.MovaCopyright = exports.Loader = exports.IbanInput = exports.GenderSelector = exports.GaragePLV = exports.DialogForgotPassword = exports.ConfirmationDialog = exports.regexPlate = exports.oldRegexPlate = exports.VehiclePlateField = exports.VehicleFullCard = exports.ActivateAccount = exports.QrCodePLVContainer = exports.PrintSize = exports.PLVComponent = exports.MovaTableBack = exports.MovaTable = exports.LinkedDocumentDialog = exports.AddressFields = exports.AccountValidation = exports.VehicleService = exports.UserService = exports.GarageService = exports.AuthenticationService = void 0;
8
+ exports.SubscriptionState = exports.SubscriptionPaymentInterval = exports.SlotAlgorithm = exports.SecondaryPartsApplicationType = exports.RoleType = exports.RegistrationState = exports.ProductType = exports.PrestationType = exports.PrestationState = exports.PartsApplicationType = exports.OrderState = exports.OrderPreference = exports.MovaAppType = exports.Gender = exports.EventType = exports.EventState = exports.DocumentType = exports.DocumentState = exports.DigitalPassportIndex = exports.DayOfWeek = exports.DateFormatTypes = exports.CustomerType = exports.CountryCode = exports.APIMethod = exports.validateText = exports.validatePhoneNumber = exports.validateEmail = exports.validateField = exports.isSafariOniOS = exports.isEmpty = exports.getFormattedSchedule = exports.getFormattedIntervals = exports.getDayOfWeekLabel = exports.getApplicationsShortLabels = exports.getApplicationShortLabel = exports.formatVehicleTire = exports.formatVehiclePlate = exports.formatPhoneNumber = exports.flexLeftRow = exports.findScheduleByDayOfWeek = exports.capitalizeFirstLetter = exports.getLongFormattedDateTime = exports.formatDateByTimezone = exports.readCookie = exports.deleteCookie = exports.request = exports.API_BASE_URL = exports.VehicleTire = exports.VehicleGarage = exports.Vehicle = void 0;
9
+ exports.StyledToggleButtonGroup = exports.StyledToggleButton = exports.getQrCodeBase64 = exports.openDialogPrint = exports.VehiclePlateType = exports.SubscriptionType = void 0;
10
10
  // Export des services
11
- var VehicleService_1 = require("./src/services/VehicleService");
12
- Object.defineProperty(exports, "VehicleService", { enumerable: true, get: function () { return __importDefault(VehicleService_1).default; } });
13
11
  var AuthenticationService_1 = require("./src/services/AuthenticationService");
14
12
  Object.defineProperty(exports, "AuthenticationService", { enumerable: true, get: function () { return __importDefault(AuthenticationService_1).default; } });
15
13
  var GarageService_1 = require("./src/services/GarageService");
16
14
  Object.defineProperty(exports, "GarageService", { enumerable: true, get: function () { return __importDefault(GarageService_1).default; } });
17
15
  var UserService_1 = require("./src/services/UserService");
18
16
  Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return __importDefault(UserService_1).default; } });
17
+ var VehicleService_1 = require("./src/services/VehicleService");
18
+ Object.defineProperty(exports, "VehicleService", { enumerable: true, get: function () { return __importDefault(VehicleService_1).default; } });
19
19
  // Export des composants
20
- var DialogForgotPassword_1 = require("./src/DialogForgotPassword");
21
- Object.defineProperty(exports, "DialogForgotPassword", { enumerable: true, get: function () { return __importDefault(DialogForgotPassword_1).default; } });
22
- var IbanInput_1 = require("./src/IbanInput");
23
- Object.defineProperty(exports, "IbanInput", { enumerable: true, get: function () { return __importDefault(IbanInput_1).default; } });
24
- var GaragePLV_1 = require("./src/GaragePLV");
25
- Object.defineProperty(exports, "GaragePLV", { enumerable: true, get: function () { return __importDefault(GaragePLV_1).default; } });
26
20
  var AccountValidation_1 = require("./src/AccountValidation");
27
21
  Object.defineProperty(exports, "AccountValidation", { enumerable: true, get: function () { return __importDefault(AccountValidation_1).default; } });
28
22
  var AddressFields_1 = require("./src/AddressFields");
29
23
  Object.defineProperty(exports, "AddressFields", { enumerable: true, get: function () { return __importDefault(AddressFields_1).default; } });
30
- var ScheduleFields_1 = require("./src/ScheduleFields");
31
- Object.defineProperty(exports, "ScheduleFields", { enumerable: true, get: function () { return __importDefault(ScheduleFields_1).default; } });
24
+ var LinkedDocumentDialog_1 = require("./src/components/LinkedDocumentDialog");
25
+ Object.defineProperty(exports, "LinkedDocumentDialog", { enumerable: true, get: function () { return LinkedDocumentDialog_1.LinkedDocumentDialog; } });
26
+ var MovaTable_1 = require("./src/components/MovaTable/MovaTable");
27
+ Object.defineProperty(exports, "MovaTable", { enumerable: true, get: function () { return __importDefault(MovaTable_1).default; } });
28
+ var MovaTableBack_1 = require("./src/components/MovaTableBack/MovaTableBack");
29
+ Object.defineProperty(exports, "MovaTableBack", { enumerable: true, get: function () { return __importDefault(MovaTableBack_1).default; } });
30
+ var PLVComponent_1 = require("./src/components/QrCodePLVContainer/PLVComponent");
31
+ Object.defineProperty(exports, "PLVComponent", { enumerable: true, get: function () { return PLVComponent_1.PLVComponent; } });
32
+ Object.defineProperty(exports, "PrintSize", { enumerable: true, get: function () { return PLVComponent_1.PrintSize; } });
33
+ var QrCodePLVContainer_1 = require("./src/components/QrCodePLVContainer/QrCodePLVContainer");
34
+ Object.defineProperty(exports, "QrCodePLVContainer", { enumerable: true, get: function () { return QrCodePLVContainer_1.QrCodePLVContainer; } });
35
+ var ActivateAccount_1 = require("./src/components/singup/ActivateAccount");
36
+ Object.defineProperty(exports, "ActivateAccount", { enumerable: true, get: function () { return __importDefault(ActivateAccount_1).default; } });
32
37
  var VehicleFullCard_1 = require("./src/components/vehicle/VehicleFullCard");
33
38
  Object.defineProperty(exports, "VehicleFullCard", { enumerable: true, get: function () { return __importDefault(VehicleFullCard_1).default; } });
34
- var MovaDigitalPassport_1 = require("./src/MovaDigitalPassport");
35
- Object.defineProperty(exports, "MovaDigitalPassport", { enumerable: true, get: function () { return __importDefault(MovaDigitalPassport_1).default; } });
39
+ var VehiclePlateField_1 = require("./src/components/vehicle/VehiclePlateField");
40
+ Object.defineProperty(exports, "VehiclePlateField", { enumerable: true, get: function () { return __importDefault(VehiclePlateField_1).default; } });
41
+ Object.defineProperty(exports, "oldRegexPlate", { enumerable: true, get: function () { return VehiclePlateField_1.oldRegexPlate; } });
42
+ Object.defineProperty(exports, "regexPlate", { enumerable: true, get: function () { return VehiclePlateField_1.regexPlate; } });
43
+ var ConfirmationDialog_1 = require("./src/ConfirmationDialog");
44
+ Object.defineProperty(exports, "ConfirmationDialog", { enumerable: true, get: function () { return __importDefault(ConfirmationDialog_1).default; } });
45
+ var DialogForgotPassword_1 = require("./src/DialogForgotPassword");
46
+ Object.defineProperty(exports, "DialogForgotPassword", { enumerable: true, get: function () { return __importDefault(DialogForgotPassword_1).default; } });
47
+ var GaragePLV_1 = require("./src/GaragePLV");
48
+ Object.defineProperty(exports, "GaragePLV", { enumerable: true, get: function () { return __importDefault(GaragePLV_1).default; } });
49
+ var GenderSelector_1 = require("./src/GenderSelector");
50
+ Object.defineProperty(exports, "GenderSelector", { enumerable: true, get: function () { return __importDefault(GenderSelector_1).default; } });
51
+ var IbanInput_1 = require("./src/IbanInput");
52
+ Object.defineProperty(exports, "IbanInput", { enumerable: true, get: function () { return __importDefault(IbanInput_1).default; } });
36
53
  var Loader_1 = require("./src/Loader");
37
54
  Object.defineProperty(exports, "Loader", { enumerable: true, get: function () { return __importDefault(Loader_1).default; } });
55
+ var MovaCopyright_1 = require("./src/MovaCopyright");
56
+ Object.defineProperty(exports, "MovaCopyright", { enumerable: true, get: function () { return __importDefault(MovaCopyright_1).default; } });
38
57
  var MovaDialog_1 = require("./src/MovaDialog");
39
58
  Object.defineProperty(exports, "MovaDialog", { enumerable: true, get: function () { return __importDefault(MovaDialog_1).default; } });
40
- var QRCode_1 = require("./src/QRCode");
41
- Object.defineProperty(exports, "QRCode", { enumerable: true, get: function () { return __importDefault(QRCode_1).default; } });
42
- var VehiclePlateField_1 = require("./src/components/vehicle/VehiclePlateField");
43
- Object.defineProperty(exports, "VehiclePlateField", { enumerable: true, get: function () { return __importDefault(VehiclePlateField_1).default; } });
44
- Object.defineProperty(exports, "regexPlate", { enumerable: true, get: function () { return VehiclePlateField_1.regexPlate; } });
45
- Object.defineProperty(exports, "oldRegexPlate", { enumerable: true, get: function () { return VehiclePlateField_1.oldRegexPlate; } });
46
- var TestButton_1 = require("./src/TestButton");
47
- Object.defineProperty(exports, "TestButton", { enumerable: true, get: function () { return __importDefault(TestButton_1).default; } });
48
- var MovaSnackbar_1 = require("./src/MovaSnackbar");
49
- Object.defineProperty(exports, "MovaSnackbar", { enumerable: true, get: function () { return __importDefault(MovaSnackbar_1).default; } });
59
+ var MovaDigitalPassport_1 = require("./src/MovaDigitalPassport");
60
+ Object.defineProperty(exports, "MovaDigitalPassport", { enumerable: true, get: function () { return __importDefault(MovaDigitalPassport_1).default; } });
50
61
  var MovaLogin_1 = require("./src/MovaLogin");
51
62
  Object.defineProperty(exports, "MovaLogin", { enumerable: true, get: function () { return __importDefault(MovaLogin_1).default; } });
52
63
  var MovaSignUp_1 = require("./src/MovaSignUp");
53
64
  Object.defineProperty(exports, "MovaSignUp", { enumerable: true, get: function () { return __importDefault(MovaSignUp_1).default; } });
54
- var MovaCopyright_1 = require("./src/MovaCopyright");
55
- Object.defineProperty(exports, "MovaCopyright", { enumerable: true, get: function () { return __importDefault(MovaCopyright_1).default; } });
65
+ var MovaSnackbar_1 = require("./src/MovaSnackbar");
66
+ Object.defineProperty(exports, "MovaSnackbar", { enumerable: true, get: function () { return __importDefault(MovaSnackbar_1).default; } });
56
67
  var MovaVehicleTireField_1 = require("./src/MovaVehicleTireField");
57
68
  Object.defineProperty(exports, "MovaVehicleTireField", { enumerable: true, get: function () { return __importDefault(MovaVehicleTireField_1).default; } });
58
- var ConfirmationDialog_1 = require("./src/ConfirmationDialog");
59
- Object.defineProperty(exports, "ConfirmationDialog", { enumerable: true, get: function () { return __importDefault(ConfirmationDialog_1).default; } });
60
- var GenderSelector_1 = require("./src/GenderSelector");
61
- Object.defineProperty(exports, "GenderSelector", { enumerable: true, get: function () { return __importDefault(GenderSelector_1).default; } });
62
- var ActivateAccount_1 = require("./src/components/singup/ActivateAccount");
63
- Object.defineProperty(exports, "ActivateAccount", { enumerable: true, get: function () { return __importDefault(ActivateAccount_1).default; } });
64
- var QrCodePLVContainer_1 = require("./src/components/QrCodePLVContainer/QrCodePLVContainer");
65
- Object.defineProperty(exports, "QrCodePLVContainer", { enumerable: true, get: function () { return QrCodePLVContainer_1.QrCodePLVContainer; } });
66
- var PLVComponent_1 = require("./src/components/QrCodePLVContainer/PLVComponent");
67
- Object.defineProperty(exports, "PLVComponent", { enumerable: true, get: function () { return PLVComponent_1.PLVComponent; } });
68
- Object.defineProperty(exports, "PrintSize", { enumerable: true, get: function () { return PLVComponent_1.PrintSize; } });
69
- var LinkedDocumentDialog_1 = require("./src/components/LinkedDocumentDialog");
70
- Object.defineProperty(exports, "LinkedDocumentDialog", { enumerable: true, get: function () { return LinkedDocumentDialog_1.LinkedDocumentDialog; } });
71
- var MovaTable_1 = require("./src/components/MovaTable/MovaTable");
72
- Object.defineProperty(exports, "MovaTable", { enumerable: true, get: function () { return __importDefault(MovaTable_1).default; } });
73
- var MovaTableBack_1 = require("./src/components/MovaTableBack/MovaTableBack");
74
- Object.defineProperty(exports, "MovaTableBack", { enumerable: true, get: function () { return __importDefault(MovaTableBack_1).default; } });
69
+ var QRCode_1 = require("./src/QRCode");
70
+ Object.defineProperty(exports, "QRCode", { enumerable: true, get: function () { return __importDefault(QRCode_1).default; } });
71
+ var ScheduleFields_1 = require("./src/ScheduleFields");
72
+ Object.defineProperty(exports, "ScheduleFields", { enumerable: true, get: function () { return __importDefault(ScheduleFields_1).default; } });
73
+ var TestButton_1 = require("./src/TestButton");
74
+ Object.defineProperty(exports, "TestButton", { enumerable: true, get: function () { return __importDefault(TestButton_1).default; } });
75
75
  // Export des classes
76
- var Subscription_1 = require("./src/models/Subscription");
77
- Object.defineProperty(exports, "Subscription", { enumerable: true, get: function () { return __importDefault(Subscription_1).default; } });
76
+ var Logger_1 = require("./src/helpers/Logger");
77
+ Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return __importDefault(Logger_1).default; } });
78
78
  var Absence_1 = require("./src/models/Absence");
79
79
  Object.defineProperty(exports, "Absence", { enumerable: true, get: function () { return __importDefault(Absence_1).default; } });
80
+ var Address_1 = require("./src/models/Address");
81
+ Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return __importDefault(Address_1).default; } });
82
+ var CategoryPrestation_1 = require("./src/models/CategoryPrestation");
83
+ Object.defineProperty(exports, "CategoryPrestation", { enumerable: true, get: function () { return __importDefault(CategoryPrestation_1).default; } });
84
+ var Customer_1 = require("./src/models/Customer");
85
+ Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return __importDefault(Customer_1).default; } });
86
+ var Document_1 = require("./src/models/Document");
87
+ Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return __importDefault(Document_1).default; } });
80
88
  var Employee_1 = require("./src/models/Employee");
81
89
  Object.defineProperty(exports, "Employee", { enumerable: true, get: function () { return __importDefault(Employee_1).default; } });
82
- var Supplier_1 = require("./src/models/Supplier");
83
- Object.defineProperty(exports, "Supplier", { enumerable: true, get: function () { return __importDefault(Supplier_1).default; } });
84
- var Product_1 = require("./src/models/Product");
85
- Object.defineProperty(exports, "Product", { enumerable: true, get: function () { return __importDefault(Product_1).default; } });
86
- var Prestation_1 = require("./src/models/Prestation");
87
- Object.defineProperty(exports, "Prestation", { enumerable: true, get: function () { return __importDefault(Prestation_1).default; } });
90
+ var Event_1 = require("./src/models/Event");
91
+ Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return __importDefault(Event_1).default; } });
92
+ var Garage_1 = require("./src/models/Garage");
93
+ Object.defineProperty(exports, "Garage", { enumerable: true, get: function () { return __importDefault(Garage_1).default; } });
88
94
  var Operation_1 = require("./src/models/Operation");
89
95
  Object.defineProperty(exports, "Operation", { enumerable: true, get: function () { return __importDefault(Operation_1).default; } });
90
- var Logger_1 = require("./src/helpers/Logger");
91
- Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return __importDefault(Logger_1).default; } });
92
- var Customer_1 = require("./src/models/Customer");
93
- Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return __importDefault(Customer_1).default; } });
94
- var User_1 = require("./src/models/User");
95
- Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(User_1).default; } });
96
+ var Prestation_1 = require("./src/models/Prestation");
97
+ Object.defineProperty(exports, "Prestation", { enumerable: true, get: function () { return __importDefault(Prestation_1).default; } });
98
+ var Product_1 = require("./src/models/Product");
99
+ Object.defineProperty(exports, "Product", { enumerable: true, get: function () { return __importDefault(Product_1).default; } });
96
100
  var Role_1 = require("./src/models/Role");
97
101
  Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return __importDefault(Role_1).default; } });
98
- var Address_1 = require("./src/models/Address");
99
- Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return __importDefault(Address_1).default; } });
102
+ var Schedule_1 = require("./src/models/Schedule");
103
+ Object.defineProperty(exports, "Schedule", { enumerable: true, get: function () { return __importDefault(Schedule_1).default; } });
104
+ var Subscription_1 = require("./src/models/Subscription");
105
+ Object.defineProperty(exports, "Subscription", { enumerable: true, get: function () { return __importDefault(Subscription_1).default; } });
106
+ var Supplier_1 = require("./src/models/Supplier");
107
+ Object.defineProperty(exports, "Supplier", { enumerable: true, get: function () { return __importDefault(Supplier_1).default; } });
108
+ var User_1 = require("./src/models/User");
109
+ Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(User_1).default; } });
100
110
  var Vehicle_1 = require("./src/models/Vehicle");
101
111
  Object.defineProperty(exports, "Vehicle", { enumerable: true, get: function () { return __importDefault(Vehicle_1).default; } });
102
- var Document_1 = require("./src/models/Document");
103
- Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return __importDefault(Document_1).default; } });
104
- var Garage_1 = require("./src/models/Garage");
105
- Object.defineProperty(exports, "Garage", { enumerable: true, get: function () { return __importDefault(Garage_1).default; } });
106
112
  var VehicleGarage_1 = require("./src/models/VehicleGarage");
107
113
  Object.defineProperty(exports, "VehicleGarage", { enumerable: true, get: function () { return __importDefault(VehicleGarage_1).default; } });
108
- var Schedule_1 = require("./src/models/Schedule");
109
- Object.defineProperty(exports, "Schedule", { enumerable: true, get: function () { return __importDefault(Schedule_1).default; } });
110
- var Event_1 = require("./src/models/Event");
111
- Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return __importDefault(Event_1).default; } });
112
114
  var VehicleTire_1 = require("./src/models/VehicleTire");
113
115
  Object.defineProperty(exports, "VehicleTire", { enumerable: true, get: function () { return __importDefault(VehicleTire_1).default; } });
114
- var CategoryPrestation_1 = require("./src/models/CategoryPrestation");
115
- Object.defineProperty(exports, "CategoryPrestation", { enumerable: true, get: function () { return __importDefault(CategoryPrestation_1).default; } });
116
116
  // Export des méthodes utilitaires
117
+ var ApiHelper_1 = require("./src/helpers/ApiHelper");
118
+ Object.defineProperty(exports, "API_BASE_URL", { enumerable: true, get: function () { return ApiHelper_1.API_BASE_URL; } });
119
+ Object.defineProperty(exports, "request", { enumerable: true, get: function () { return ApiHelper_1.request; } });
117
120
  var CookieUtils_1 = require("./src/helpers/CookieUtils");
118
- Object.defineProperty(exports, "readCookie", { enumerable: true, get: function () { return CookieUtils_1.readCookie; } });
119
121
  Object.defineProperty(exports, "deleteCookie", { enumerable: true, get: function () { return CookieUtils_1.deleteCookie; } });
122
+ Object.defineProperty(exports, "readCookie", { enumerable: true, get: function () { return CookieUtils_1.readCookie; } });
123
+ var DateUtils_1 = require("./src/helpers/DateUtils");
124
+ Object.defineProperty(exports, "formatDateByTimezone", { enumerable: true, get: function () { return DateUtils_1.formatDateByTimezone; } });
125
+ Object.defineProperty(exports, "getLongFormattedDateTime", { enumerable: true, get: function () { return DateUtils_1.getLongFormattedDateTime; } });
120
126
  var Tools_1 = require("./src/helpers/Tools");
121
- Object.defineProperty(exports, "validateField", { enumerable: true, get: function () { return Tools_1.validateField; } });
122
- Object.defineProperty(exports, "formatVehicleTire", { enumerable: true, get: function () { return Tools_1.formatVehicleTire; } });
123
- Object.defineProperty(exports, "formatVehiclePlate", { enumerable: true, get: function () { return Tools_1.formatVehiclePlate; } });
124
- Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return Tools_1.isEmpty; } });
125
- Object.defineProperty(exports, "getApplicationShortLabel", { enumerable: true, get: function () { return Tools_1.getApplicationShortLabel; } });
126
127
  Object.defineProperty(exports, "capitalizeFirstLetter", { enumerable: true, get: function () { return Tools_1.capitalizeFirstLetter; } });
128
+ Object.defineProperty(exports, "findScheduleByDayOfWeek", { enumerable: true, get: function () { return Tools_1.findScheduleByDayOfWeek; } });
127
129
  Object.defineProperty(exports, "flexLeftRow", { enumerable: true, get: function () { return Tools_1.flexLeftRow; } });
128
130
  Object.defineProperty(exports, "formatPhoneNumber", { enumerable: true, get: function () { return Tools_1.formatPhoneNumber; } });
129
- Object.defineProperty(exports, "getFormattedSchedule", { enumerable: true, get: function () { return Tools_1.getFormattedSchedule; } });
130
- Object.defineProperty(exports, "getFormattedIntervals", { enumerable: true, get: function () { return Tools_1.getFormattedIntervals; } });
131
- Object.defineProperty(exports, "findScheduleByDayOfWeek", { enumerable: true, get: function () { return Tools_1.findScheduleByDayOfWeek; } });
131
+ Object.defineProperty(exports, "formatVehiclePlate", { enumerable: true, get: function () { return Tools_1.formatVehiclePlate; } });
132
+ Object.defineProperty(exports, "formatVehicleTire", { enumerable: true, get: function () { return Tools_1.formatVehicleTire; } });
133
+ Object.defineProperty(exports, "getApplicationShortLabel", { enumerable: true, get: function () { return Tools_1.getApplicationShortLabel; } });
134
+ Object.defineProperty(exports, "getApplicationsShortLabels", { enumerable: true, get: function () { return Tools_1.getApplicationsShortLabels; } });
132
135
  Object.defineProperty(exports, "getDayOfWeekLabel", { enumerable: true, get: function () { return Tools_1.getDayOfWeekLabel; } });
136
+ Object.defineProperty(exports, "getFormattedIntervals", { enumerable: true, get: function () { return Tools_1.getFormattedIntervals; } });
137
+ Object.defineProperty(exports, "getFormattedSchedule", { enumerable: true, get: function () { return Tools_1.getFormattedSchedule; } });
138
+ Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return Tools_1.isEmpty; } });
133
139
  Object.defineProperty(exports, "isSafariOniOS", { enumerable: true, get: function () { return Tools_1.isSafariOniOS; } });
134
- Object.defineProperty(exports, "getApplicationsShortLabels", { enumerable: true, get: function () { return Tools_1.getApplicationsShortLabels; } });
140
+ Object.defineProperty(exports, "validateField", { enumerable: true, get: function () { return Tools_1.validateField; } });
135
141
  var Validator_1 = require("./src/helpers/Validator");
142
+ Object.defineProperty(exports, "validateEmail", { enumerable: true, get: function () { return Validator_1.validateEmail; } });
136
143
  Object.defineProperty(exports, "validatePhoneNumber", { enumerable: true, get: function () { return Validator_1.validatePhoneNumber; } });
137
144
  Object.defineProperty(exports, "validateText", { enumerable: true, get: function () { return Validator_1.validateText; } });
138
- Object.defineProperty(exports, "validateEmail", { enumerable: true, get: function () { return Validator_1.validateEmail; } });
139
- var DateUtils_1 = require("./src/helpers/DateUtils");
140
- Object.defineProperty(exports, "formatDateByTimezone", { enumerable: true, get: function () { return DateUtils_1.formatDateByTimezone; } });
141
- Object.defineProperty(exports, "getLongFormattedDateTime", { enumerable: true, get: function () { return DateUtils_1.getLongFormattedDateTime; } });
142
- var ApiHelper_1 = require("./src/helpers/ApiHelper");
143
- Object.defineProperty(exports, "request", { enumerable: true, get: function () { return ApiHelper_1.request; } });
144
- Object.defineProperty(exports, "API_BASE_URL", { enumerable: true, get: function () { return ApiHelper_1.API_BASE_URL; } });
145
145
  // Export des enums
146
146
  var Enums_1 = require("./src/helpers/Enums");
147
+ Object.defineProperty(exports, "APIMethod", { enumerable: true, get: function () { return Enums_1.APIMethod; } });
148
+ Object.defineProperty(exports, "CountryCode", { enumerable: true, get: function () { return Enums_1.CountryCode; } });
147
149
  Object.defineProperty(exports, "CustomerType", { enumerable: true, get: function () { return Enums_1.CustomerType; } });
148
- Object.defineProperty(exports, "RoleType", { enumerable: true, get: function () { return Enums_1.RoleType; } });
149
- Object.defineProperty(exports, "MovaAppType", { enumerable: true, get: function () { return Enums_1.MovaAppType; } });
150
+ Object.defineProperty(exports, "DateFormatTypes", { enumerable: true, get: function () { return Enums_1.DateFormatTypes; } });
150
151
  Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return Enums_1.DayOfWeek; } });
151
- Object.defineProperty(exports, "EventState", { enumerable: true, get: function () { return Enums_1.EventState; } });
152
- Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return Enums_1.EventType; } });
153
- Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return Enums_1.DocumentType; } });
154
152
  Object.defineProperty(exports, "DigitalPassportIndex", { enumerable: true, get: function () { return Enums_1.DigitalPassportIndex; } });
155
153
  Object.defineProperty(exports, "DocumentState", { enumerable: true, get: function () { return Enums_1.DocumentState; } });
154
+ Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return Enums_1.DocumentType; } });
155
+ Object.defineProperty(exports, "EventState", { enumerable: true, get: function () { return Enums_1.EventState; } });
156
+ Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return Enums_1.EventType; } });
156
157
  Object.defineProperty(exports, "Gender", { enumerable: true, get: function () { return Enums_1.Gender; } });
157
- Object.defineProperty(exports, "DateFormatTypes", { enumerable: true, get: function () { return Enums_1.DateFormatTypes; } });
158
- Object.defineProperty(exports, "PartsApplicationType", { enumerable: true, get: function () { return Enums_1.PartsApplicationType; } });
159
- Object.defineProperty(exports, "ProductType", { enumerable: true, get: function () { return Enums_1.ProductType; } });
158
+ Object.defineProperty(exports, "MovaAppType", { enumerable: true, get: function () { return Enums_1.MovaAppType; } });
160
159
  Object.defineProperty(exports, "OrderPreference", { enumerable: true, get: function () { return Enums_1.OrderPreference; } });
161
160
  Object.defineProperty(exports, "OrderState", { enumerable: true, get: function () { return Enums_1.OrderState; } });
161
+ Object.defineProperty(exports, "PartsApplicationType", { enumerable: true, get: function () { return Enums_1.PartsApplicationType; } });
162
+ Object.defineProperty(exports, "PrestationState", { enumerable: true, get: function () { return Enums_1.PrestationState; } });
163
+ Object.defineProperty(exports, "PrestationType", { enumerable: true, get: function () { return Enums_1.PrestationType; } });
164
+ Object.defineProperty(exports, "ProductType", { enumerable: true, get: function () { return Enums_1.ProductType; } });
165
+ Object.defineProperty(exports, "RegistrationState", { enumerable: true, get: function () { return Enums_1.RegistrationState; } });
166
+ Object.defineProperty(exports, "RoleType", { enumerable: true, get: function () { return Enums_1.RoleType; } });
167
+ Object.defineProperty(exports, "SecondaryPartsApplicationType", { enumerable: true, get: function () { return Enums_1.SecondaryPartsApplicationType; } });
162
168
  Object.defineProperty(exports, "SlotAlgorithm", { enumerable: true, get: function () { return Enums_1.SlotAlgorithm; } });
163
- Object.defineProperty(exports, "VehiclePlateType", { enumerable: true, get: function () { return Enums_1.VehiclePlateFormat; } });
164
169
  Object.defineProperty(exports, "SubscriptionPaymentInterval", { enumerable: true, get: function () { return Enums_1.SubscriptionPaymentInterval; } });
165
- Object.defineProperty(exports, "RegistrationState", { enumerable: true, get: function () { return Enums_1.RegistrationState; } });
166
- Object.defineProperty(exports, "PrestationType", { enumerable: true, get: function () { return Enums_1.PrestationType; } });
167
- Object.defineProperty(exports, "PrestationState", { enumerable: true, get: function () { return Enums_1.PrestationState; } });
168
- Object.defineProperty(exports, "CountryCode", { enumerable: true, get: function () { return Enums_1.CountryCode; } });
169
170
  Object.defineProperty(exports, "SubscriptionState", { enumerable: true, get: function () { return Enums_1.SubscriptionState; } });
170
171
  Object.defineProperty(exports, "SubscriptionType", { enumerable: true, get: function () { return Enums_1.SubscriptionType; } });
171
- Object.defineProperty(exports, "APIMethod", { enumerable: true, get: function () { return Enums_1.APIMethod; } });
172
+ Object.defineProperty(exports, "VehiclePlateType", { enumerable: true, get: function () { return Enums_1.VehiclePlateFormat; } });
172
173
  // Export des utils
173
174
  var DialogPrint_1 = require("./src/utils/DialogPrint");
174
175
  Object.defineProperty(exports, "openDialogPrint", { enumerable: true, get: function () { return DialogPrint_1.openDialogPrint; } });
@@ -12,6 +12,16 @@ export declare enum SubscriptionState {
12
12
  PAUSED = "PAUSED",
13
13
  CANCELED = "CANCELED"
14
14
  }
15
+ export declare enum SecondaryPartsApplicationType {
16
+ HOOD = "HOOD",
17
+ ROOF = "ROOF",
18
+ DOOR = "DOOR",
19
+ FENDER = "FENDER",
20
+ JAMB = "JAMB",
21
+ UNDERBODY = "UNDERBODY",
22
+ BUMPER = "BUMPER",
23
+ TRUNK = "TRUNK"
24
+ }
15
25
  export declare enum CountryCode {
16
26
  FR = "FR"
17
27
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RoleType = exports.MovaAppType = exports.DocumentType = exports.QuoteState = 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 = exports.PrestationType = exports.PrestationState = exports.CountryCode = exports.SubscriptionState = exports.SubscriptionType = exports.CustomerType = void 0;
3
+ exports.RoleType = exports.MovaAppType = exports.DocumentType = exports.QuoteState = 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 = exports.PrestationType = exports.PrestationState = exports.CountryCode = exports.SecondaryPartsApplicationType = exports.SubscriptionState = exports.SubscriptionType = exports.CustomerType = void 0;
4
4
  var CustomerType;
5
5
  (function (CustomerType) {
6
6
  CustomerType["INDIVIDUAL"] = "INDIVIDUAL";
@@ -18,6 +18,17 @@ var SubscriptionState;
18
18
  SubscriptionState["PAUSED"] = "PAUSED";
19
19
  SubscriptionState["CANCELED"] = "CANCELED";
20
20
  })(SubscriptionState = exports.SubscriptionState || (exports.SubscriptionState = {}));
21
+ var SecondaryPartsApplicationType;
22
+ (function (SecondaryPartsApplicationType) {
23
+ SecondaryPartsApplicationType["HOOD"] = "HOOD";
24
+ SecondaryPartsApplicationType["ROOF"] = "ROOF";
25
+ SecondaryPartsApplicationType["DOOR"] = "DOOR";
26
+ SecondaryPartsApplicationType["FENDER"] = "FENDER";
27
+ SecondaryPartsApplicationType["JAMB"] = "JAMB";
28
+ SecondaryPartsApplicationType["UNDERBODY"] = "UNDERBODY";
29
+ SecondaryPartsApplicationType["BUMPER"] = "BUMPER";
30
+ SecondaryPartsApplicationType["TRUNK"] = "TRUNK";
31
+ })(SecondaryPartsApplicationType = exports.SecondaryPartsApplicationType || (exports.SecondaryPartsApplicationType = {}));
21
32
  var CountryCode;
22
33
  (function (CountryCode) {
23
34
  CountryCode["FR"] = "FR";
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties } from "react";
2
2
  import Schedule from "../models/Schedule";
3
3
  import VehicleTire from "../models/VehicleTire";
4
- import { DayOfWeek, PartsApplicationType } from "./Enums";
4
+ import { DayOfWeek, PartsApplicationType, SecondaryPartsApplicationType } from "./Enums";
5
5
  import { MovaFormField, MovaInterval } from "./Types";
6
6
  export declare const getApplicationsShortLabels: (applications: PartsApplicationType[] | undefined) => string;
7
7
  export declare const flexStart: CSSProperties;
@@ -21,6 +21,7 @@ export declare const getFrenchDayLabel: (day: DayOfWeek | undefined) => "Lundi"
21
21
  export declare const flexLeftRow: CSSProperties;
22
22
  export declare const capitalizeFirstLetter: (str: string) => string;
23
23
  export declare const getApplicationShortLabel: (application: PartsApplicationType | undefined) => "" | "AV" | "AR" | "AV + AR" | "G" | "D" | "G + D" | "AVG" | "AVD" | "ARG" | "ARD";
24
+ export declare const getApplicationSecondaryLabel: (secondaryApplication: SecondaryPartsApplicationType) => string;
24
25
  export declare const flexEnd: CSSProperties;
25
26
  export declare const flexCenter: CSSProperties;
26
27
  export declare const isEmpty: (data: Object) => boolean;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.validateField = exports.formatVehicleTireStr = exports.formatVehicleTire = exports.formatVehiclePlate = exports.isEmpty = exports.flexCenter = exports.flexEnd = exports.getApplicationShortLabel = exports.capitalizeFirstLetter = exports.flexLeftRow = exports.getFrenchDayLabel = exports.getDayOfWeek = exports.findScheduleByDayOfWeek = exports.formatTime = exports.getFormattedIntervals = exports.getFormattedSchedule = exports.formatPhoneNumber = exports.getDayOfWeekIndex = exports.getDayOfWeekLabel = exports.FR_WEEK_DAYS = exports.isInvalidPhoneNumber = exports.isInvalidMobileNumber = exports.isSafariOniOS = exports.flexStart = exports.getApplicationsShortLabels = void 0;
6
+ exports.validateField = exports.formatVehicleTireStr = exports.formatVehicleTire = exports.formatVehiclePlate = exports.isEmpty = exports.flexCenter = exports.flexEnd = exports.getApplicationSecondaryLabel = exports.getApplicationShortLabel = exports.capitalizeFirstLetter = exports.flexLeftRow = exports.getFrenchDayLabel = exports.getDayOfWeek = exports.findScheduleByDayOfWeek = exports.formatTime = exports.getFormattedIntervals = exports.getFormattedSchedule = exports.formatPhoneNumber = exports.getDayOfWeekIndex = exports.getDayOfWeekLabel = exports.FR_WEEK_DAYS = exports.isInvalidPhoneNumber = exports.isInvalidMobileNumber = exports.isSafariOniOS = exports.flexStart = exports.getApplicationsShortLabels = void 0;
7
7
  var max_1 = __importDefault(require("libphonenumber-js/max"));
8
8
  var Enums_1 = require("./Enums");
9
9
  var getApplicationsShortLabels = function (applications) {
@@ -252,6 +252,27 @@ var getApplicationShortLabel = function (application) {
252
252
  return "";
253
253
  };
254
254
  exports.getApplicationShortLabel = getApplicationShortLabel;
255
+ var getApplicationSecondaryLabel = function (secondaryApplication) {
256
+ switch (secondaryApplication) {
257
+ case Enums_1.SecondaryPartsApplicationType.HOOD:
258
+ return "Capot";
259
+ case Enums_1.SecondaryPartsApplicationType.ROOF:
260
+ return "Toit";
261
+ case Enums_1.SecondaryPartsApplicationType.DOOR:
262
+ return "Portière";
263
+ case Enums_1.SecondaryPartsApplicationType.TRUNK:
264
+ return "Coffre";
265
+ case Enums_1.SecondaryPartsApplicationType.FENDER:
266
+ return "Aile";
267
+ case Enums_1.SecondaryPartsApplicationType.JAMB:
268
+ return "Montant";
269
+ case Enums_1.SecondaryPartsApplicationType.UNDERBODY:
270
+ return "Bas de caisse";
271
+ case Enums_1.SecondaryPartsApplicationType.BUMPER:
272
+ return "Pare-chocs";
273
+ }
274
+ };
275
+ exports.getApplicationSecondaryLabel = getApplicationSecondaryLabel;
255
276
  exports.flexEnd = {
256
277
  display: "flex",
257
278
  justifyContent: "end",
@@ -1,4 +1,4 @@
1
- import { PartsApplicationType } from "../helpers/Enums";
1
+ import { PartsApplicationType, SecondaryPartsApplicationType } from "../helpers/Enums";
2
2
  import Product from "./Product";
3
3
  export default class Operation {
4
4
  id: number;
@@ -7,5 +7,6 @@ export default class Operation {
7
7
  description: string;
8
8
  application?: PartsApplicationType;
9
9
  products?: Product[];
10
- constructor(id: number, code: string, name: string, description: string, application: PartsApplicationType, products: Product[]);
10
+ secondaryApplication?: SecondaryPartsApplicationType;
11
+ constructor(id: number, code: string, name: string, description: string, application: PartsApplicationType, products: Product[], secondaryApplication?: SecondaryPartsApplicationType);
11
12
  }
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var Operation = /** @class */ (function () {
4
- function Operation(id, code, name, description, application, products) {
4
+ function Operation(id, code, name, description, application, products, secondaryApplication) {
5
5
  this.id = id;
6
6
  this.code = code;
7
7
  this.name = name;
8
8
  this.description = description;
9
9
  this.application = application;
10
10
  this.products = products;
11
+ this.secondaryApplication = secondaryApplication;
11
12
  }
12
13
  return Operation;
13
14
  }());
@@ -28,5 +28,6 @@ export default class Prestation {
28
28
  multipleApplication: boolean;
29
29
  operationsVisible: boolean;
30
30
  categoryCode: string;
31
- constructor(id: number, code: string, name: string, description: string, category: string, downtime: number, appointmentDelay: number, position: number, active: boolean, state: PrestationState, multipleApplication: boolean, operationsVisible: boolean, categoryCode: string, availableOnline: boolean, operations?: Operation[]);
31
+ secondaryMultipleApplication: boolean;
32
+ constructor(id: number, code: string, name: string, description: string, category: string, downtime: number, appointmentDelay: number, position: number, active: boolean, state: PrestationState, multipleApplication: boolean, operationsVisible: boolean, categoryCode: string, availableOnline: boolean, operations?: Operation[], secondaryMultipleApplication?: boolean);
32
33
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var Prestation = /** @class */ (function () {
4
- function Prestation(id, code, name, description, category, downtime, appointmentDelay, position, active, state, multipleApplication, operationsVisible, categoryCode, availableOnline, operations) {
4
+ function Prestation(id, code, name, description, category, downtime, appointmentDelay, position, active, state, multipleApplication, operationsVisible, categoryCode, availableOnline, operations, secondaryMultipleApplication) {
5
+ if (secondaryMultipleApplication === void 0) { secondaryMultipleApplication = false; }
5
6
  this.id = id;
6
7
  this.code = code;
7
8
  this.name = name;
@@ -17,6 +18,7 @@ var Prestation = /** @class */ (function () {
17
18
  this.state = state;
18
19
  this.categoryCode = categoryCode;
19
20
  this.availableOnline = availableOnline;
21
+ this.secondaryMultipleApplication = secondaryMultipleApplication;
20
22
  }
21
23
  return Prestation;
22
24
  }());
package/index.ts CHANGED
@@ -2,125 +2,143 @@
2
2
 
3
3
  // Export des services
4
4
 
5
- export { default as VehicleService } from './src/services/VehicleService';
6
- export { default as AuthenticationService } from './src/services/AuthenticationService';
7
- export { default as GarageService } from './src/services/GarageService';
8
- export { default as UserService } from './src/services/UserService';
5
+ export { default as AuthenticationService } from "./src/services/AuthenticationService";
6
+ export { default as GarageService } from "./src/services/GarageService";
7
+ export { default as UserService } from "./src/services/UserService";
8
+ export { default as VehicleService } from "./src/services/VehicleService";
9
9
  // Export des composants
10
- export { default as DialogForgotPassword } from './src/DialogForgotPassword';
11
- export { default as IbanInput } from './src/IbanInput';
12
- export { default as GaragePLV } from './src/GaragePLV';
13
- export { default as AccountValidation } from './src/AccountValidation';
14
- export { default as AddressFields } from './src/AddressFields';
15
- export { default as ScheduleFields } from './src/ScheduleFields';
16
- export { default as VehicleFullCard } from './src/components/vehicle/VehicleFullCard';
17
- export { default as MovaDigitalPassport } from './src/MovaDigitalPassport';
18
- export { default as Loader } from './src/Loader';
19
- export { default as MovaDialog } from './src/MovaDialog';
20
- export { default as QRCode } from './src/QRCode';
21
- export { default as VehiclePlateField, regexPlate, oldRegexPlate } from './src/components/vehicle/VehiclePlateField';
22
- export { default as TestButton } from './src/TestButton';
23
- export { default as MovaSnackbar } from './src/MovaSnackbar';
24
- export { default as MovaLogin } from './src/MovaLogin';
25
- export { default as MovaSignUp } from './src/MovaSignUp';
26
- export { default as MovaCopyright } from './src/MovaCopyright';
27
- export { default as MovaVehicleTireField } from './src/MovaVehicleTireField';
28
- export { default as ConfirmationDialog } from './src/ConfirmationDialog';
29
- export { default as GenderSelector } from './src/GenderSelector';
30
- export { default as ActivateAccount } from './src/components/singup/ActivateAccount';
31
- export { QrCodePLVContainer } from './src/components/QrCodePLVContainer/QrCodePLVContainer';
32
- export { PLVComponent, PrintSize } from './src/components/QrCodePLVContainer/PLVComponent';
33
- export {LinkedDocumentDialog} from './src/components/LinkedDocumentDialog';
34
- export { default as MovaTable } from './src/components/MovaTable/MovaTable';
35
- export {default as MovaTableBack} from "./src/components/MovaTableBack/MovaTableBack"
10
+ export { default as AccountValidation } from "./src/AccountValidation";
11
+ export { default as AddressFields } from "./src/AddressFields";
12
+ export { LinkedDocumentDialog } from "./src/components/LinkedDocumentDialog";
13
+ export { default as MovaTable } from "./src/components/MovaTable/MovaTable";
14
+ export { default as MovaTableBack } from "./src/components/MovaTableBack/MovaTableBack";
15
+ export {
16
+ PLVComponent,
17
+ PrintSize,
18
+ } from "./src/components/QrCodePLVContainer/PLVComponent";
19
+ export { QrCodePLVContainer } from "./src/components/QrCodePLVContainer/QrCodePLVContainer";
20
+ export { default as ActivateAccount } from "./src/components/singup/ActivateAccount";
21
+ export { default as VehicleFullCard } from "./src/components/vehicle/VehicleFullCard";
22
+ export {
23
+ default as VehiclePlateField,
24
+ oldRegexPlate,
25
+ regexPlate,
26
+ } from "./src/components/vehicle/VehiclePlateField";
27
+ export { default as ConfirmationDialog } from "./src/ConfirmationDialog";
28
+ export { default as DialogForgotPassword } from "./src/DialogForgotPassword";
29
+ export { default as GaragePLV } from "./src/GaragePLV";
30
+ export { default as GenderSelector } from "./src/GenderSelector";
31
+ export { default as IbanInput } from "./src/IbanInput";
32
+ export { default as Loader } from "./src/Loader";
33
+ export { default as MovaCopyright } from "./src/MovaCopyright";
34
+ export { default as MovaDialog } from "./src/MovaDialog";
35
+ export { default as MovaDigitalPassport } from "./src/MovaDigitalPassport";
36
+ export { default as MovaLogin } from "./src/MovaLogin";
37
+ export { default as MovaSignUp } from "./src/MovaSignUp";
38
+ export { default as MovaSnackbar } from "./src/MovaSnackbar";
39
+ export { default as MovaVehicleTireField } from "./src/MovaVehicleTireField";
40
+ export { default as QRCode } from "./src/QRCode";
41
+ export { default as ScheduleFields } from "./src/ScheduleFields";
42
+ export { default as TestButton } from "./src/TestButton";
36
43
 
37
44
  // Export des classes
38
- export { default as Subscription } from './src/models/Subscription';
39
- export { default as Absence } from './src/models/Absence';
40
- export { default as Employee } from './src/models/Employee';
41
- export { default as Supplier } from './src/models/Supplier';
42
- export { default as Product } from './src/models/Product';
43
- export { default as Prestation } from './src/models/Prestation';
44
- export { default as Operation } from './src/models/Operation';
45
- export { default as Logger } from './src/helpers/Logger';
46
- export { default as Customer } from './src/models/Customer';
47
- export { default as User } from './src/models/User';
48
- export { default as Role } from './src/models/Role';
49
- export { default as Address } from './src/models/Address';
50
- export { default as Vehicle } from './src/models/Vehicle';
51
- export { default as Document } from './src/models/Document';
52
- export { default as Garage } from './src/models/Garage';
53
- export { default as VehicleGarage } from './src/models/VehicleGarage';
54
- export { default as Schedule } from './src/models/Schedule';
55
- export { default as Event } from './src/models/Event';
56
- export { default as VehicleTire } from './src/models/VehicleTire';
57
- export {default as CategoryPrestation} from './src/models/CategoryPrestation';
45
+ export { default as Logger } from "./src/helpers/Logger";
46
+ export { default as Absence } from "./src/models/Absence";
47
+ export { default as Address } from "./src/models/Address";
48
+ export { default as CategoryPrestation } from "./src/models/CategoryPrestation";
49
+ export { default as Customer } from "./src/models/Customer";
50
+ export { default as Document } from "./src/models/Document";
51
+ export { default as Employee } from "./src/models/Employee";
52
+ export { default as Event } from "./src/models/Event";
53
+ export { default as Garage } from "./src/models/Garage";
54
+ export { default as Operation } from "./src/models/Operation";
55
+ export { default as Prestation } from "./src/models/Prestation";
56
+ export { default as Product } from "./src/models/Product";
57
+ export { default as Role } from "./src/models/Role";
58
+ export { default as Schedule } from "./src/models/Schedule";
59
+ export { default as Subscription } from "./src/models/Subscription";
60
+ export { default as Supplier } from "./src/models/Supplier";
61
+ export { default as User } from "./src/models/User";
62
+ export { default as Vehicle } from "./src/models/Vehicle";
63
+ export { default as VehicleGarage } from "./src/models/VehicleGarage";
64
+ export { default as VehicleTire } from "./src/models/VehicleTire";
58
65
  // Export des types
59
- export type { APIRequest, APIResponse } from './src/helpers/ApiHelper';
60
- export type { DaySchedule, DayInterval } from './src/ScheduleFields';
66
+ export type { APIRequest, APIResponse } from "./src/helpers/ApiHelper";
61
67
  export type {
68
+ AddressFieldName,
62
69
  MovaFormField,
70
+ MovaInterval,
63
71
  MovaLoginForm,
64
72
  MovaUserSignUpForm,
65
- MovaInterval,
66
73
  MovaVehicleForm,
67
- AddressFieldName,
68
- } from './src/helpers/Types';
74
+ } from "./src/helpers/Types";
75
+ export type { DayInterval, DaySchedule } from "./src/ScheduleFields";
69
76
 
70
77
  // Export des méthodes utilitaires
71
- export { readCookie, deleteCookie } from './src/helpers/CookieUtils';
78
+ export { API_BASE_URL, request } from "./src/helpers/ApiHelper";
79
+ export { deleteCookie, readCookie } from "./src/helpers/CookieUtils";
80
+ export {
81
+ formatDateByTimezone,
82
+ getLongFormattedDateTime,
83
+ } from "./src/helpers/DateUtils";
72
84
  export {
73
- validateField,
74
- formatVehicleTire,
75
- formatVehiclePlate,
76
- isEmpty,
77
- getApplicationShortLabel,
78
85
  capitalizeFirstLetter,
86
+ findScheduleByDayOfWeek,
79
87
  flexLeftRow,
80
88
  formatPhoneNumber,
81
- getFormattedSchedule,
82
- getFormattedIntervals,
83
- findScheduleByDayOfWeek,
89
+ formatVehiclePlate,
90
+ formatVehicleTire,
91
+ getApplicationShortLabel,
92
+ getApplicationsShortLabels,
84
93
  getDayOfWeekLabel,
94
+ getFormattedIntervals,
95
+ getFormattedSchedule,
96
+ isEmpty,
85
97
  isSafariOniOS,
86
- getApplicationsShortLabels,
87
- } from './src/helpers/Tools';
88
- export { validatePhoneNumber, validateText, validateEmail } from './src/helpers/Validator';
89
- export { formatDateByTimezone, getLongFormattedDateTime } from './src/helpers/DateUtils';
90
- export { request, API_BASE_URL } from './src/helpers/ApiHelper';
98
+ validateField,
99
+ } from "./src/helpers/Tools";
100
+ export {
101
+ validateEmail,
102
+ validatePhoneNumber,
103
+ validateText,
104
+ } from "./src/helpers/Validator";
91
105
 
92
106
  // Export des enums
93
107
  export {
108
+ APIMethod,
109
+ CountryCode,
94
110
  CustomerType,
95
- RoleType,
96
- MovaAppType,
111
+ DateFormatTypes,
97
112
  DayOfWeek,
98
- EventState,
99
- EventType,
100
- DocumentType,
101
113
  DigitalPassportIndex,
102
114
  DocumentState,
115
+ DocumentType,
116
+ EventState,
117
+ EventType,
103
118
  Gender,
104
- DateFormatTypes,
105
- PartsApplicationType,
106
- ProductType,
119
+ MovaAppType,
107
120
  OrderPreference,
108
121
  OrderState,
122
+ PartsApplicationType,
123
+ PrestationState,
124
+ PrestationType,
125
+ ProductType,
126
+ RegistrationState,
127
+ RoleType,
128
+ SecondaryPartsApplicationType,
109
129
  SlotAlgorithm,
110
- VehiclePlateFormat as VehiclePlateType,
111
130
  SubscriptionPaymentInterval,
112
- RegistrationState,
113
- PrestationType,
114
- PrestationState,
115
- CountryCode,
116
131
  SubscriptionState,
117
132
  SubscriptionType,
118
- APIMethod,
119
- } from './src/helpers/Enums';
133
+ VehiclePlateFormat as VehiclePlateType,
134
+ } from "./src/helpers/Enums";
120
135
 
121
136
  // Export des utils
122
- export { openDialogPrint } from './src/utils/DialogPrint';
123
- export { getQrCodeBase64} from './src/utils/getQRCodeBase64';
137
+ export { openDialogPrint } from "./src/utils/DialogPrint";
138
+ export { getQrCodeBase64 } from "./src/utils/getQRCodeBase64";
124
139
 
125
140
  // Export des styles
126
- export { StyledToggleButton, StyledToggleButtonGroup} from './src/style/styled';
141
+ export {
142
+ StyledToggleButton,
143
+ StyledToggleButtonGroup,
144
+ } from "./src/style/styled";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.64.5",
3
+ "version": "1.64.6",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,7 +14,16 @@ export enum SubscriptionState {
14
14
  PAUSED = "PAUSED",
15
15
  CANCELED = "CANCELED",
16
16
  }
17
-
17
+ export enum SecondaryPartsApplicationType {
18
+ HOOD = "HOOD",
19
+ ROOF = "ROOF",
20
+ DOOR = "DOOR",
21
+ FENDER = "FENDER",
22
+ JAMB = "JAMB",
23
+ UNDERBODY = "UNDERBODY",
24
+ BUMPER = "BUMPER",
25
+ TRUNK = "TRUNK",
26
+ }
18
27
  export enum CountryCode {
19
28
  FR = "FR",
20
29
  }
@@ -239,7 +248,7 @@ export enum QuoteState {
239
248
  QUOTE_SENT = "QUOTE_SENT",
240
249
  QUOTE_ACCEPTED = "QUOTE_ACCEPTED",
241
250
  QUOTE_REJECTED = "QUOTE_REJECTED",
242
- QUOTE_CANCELLED = "CANCELLED"
251
+ QUOTE_CANCELLED = "CANCELLED",
243
252
  }
244
253
 
245
254
  export enum DocumentType {
@@ -2,7 +2,12 @@ import parsePhoneNumberFromString from "libphonenumber-js/max";
2
2
  import { CSSProperties } from "react";
3
3
  import Schedule from "../models/Schedule";
4
4
  import VehicleTire from "../models/VehicleTire";
5
- import { DayOfWeek, PartsApplicationType, VehiclePlateFormat } from "./Enums";
5
+ import {
6
+ DayOfWeek,
7
+ PartsApplicationType,
8
+ SecondaryPartsApplicationType,
9
+ VehiclePlateFormat,
10
+ } from "./Enums";
6
11
  import { MovaFormField, MovaInterval } from "./Types";
7
12
 
8
13
  export const getApplicationsShortLabels = (
@@ -278,6 +283,29 @@ export const getApplicationShortLabel = (
278
283
  return "";
279
284
  };
280
285
 
286
+ export const getApplicationSecondaryLabel = (
287
+ secondaryApplication: SecondaryPartsApplicationType
288
+ ): string => {
289
+ switch (secondaryApplication) {
290
+ case SecondaryPartsApplicationType.HOOD:
291
+ return "Capot";
292
+ case SecondaryPartsApplicationType.ROOF:
293
+ return "Toit";
294
+ case SecondaryPartsApplicationType.DOOR:
295
+ return "Portière";
296
+ case SecondaryPartsApplicationType.TRUNK:
297
+ return "Coffre";
298
+ case SecondaryPartsApplicationType.FENDER:
299
+ return "Aile";
300
+ case SecondaryPartsApplicationType.JAMB:
301
+ return "Montant";
302
+ case SecondaryPartsApplicationType.UNDERBODY:
303
+ return "Bas de caisse";
304
+ case SecondaryPartsApplicationType.BUMPER:
305
+ return "Pare-chocs";
306
+ }
307
+ };
308
+
281
309
  export const flexEnd: CSSProperties = {
282
310
  display: "flex",
283
311
  justifyContent: "end",
@@ -294,12 +322,14 @@ export const isEmpty = (data: Object): boolean => {
294
322
  return Object.keys(data).length === 0;
295
323
  };
296
324
 
297
- export const formatVehiclePlate = (input: string | undefined, isForeignPlate: boolean): string => {
325
+ export const formatVehiclePlate = (
326
+ input: string | undefined,
327
+ isForeignPlate: boolean
328
+ ): string => {
298
329
  if (input) {
299
-
300
330
  let plateFormat: VehiclePlateFormat | null = null;
301
331
 
302
- if(isForeignPlate) {
332
+ if (isForeignPlate) {
303
333
  // Plaque étrangère
304
334
  plateFormat = VehiclePlateFormat.FOREIGN;
305
335
  } else if (/^[A-Za-z]/.test(input)) {
@@ -338,7 +368,6 @@ export const formatVehiclePlate = (input: string | undefined, isForeignPlate: bo
338
368
 
339
369
  case VehiclePlateFormat.FOREIGN: {
340
370
  // On retourne la plaque telle qu'enregistrée par l'utilisateur, ras
341
-
342
371
  }
343
372
  }
344
373
  return cleanedInput;
@@ -1,23 +1,35 @@
1
- import { PartsApplicationType } from "../helpers/Enums";
1
+ import {
2
+ PartsApplicationType,
3
+ SecondaryPartsApplicationType,
4
+ } from "../helpers/Enums";
2
5
  import Product from "./Product";
3
6
 
4
7
  export default class Operation {
8
+ // Properties
9
+ id: number;
10
+ code: string;
11
+ name: string;
12
+ description: string;
13
+ // Eventuelle application de l'opération (avant, arrière)
14
+ application?: PartsApplicationType;
15
+ products?: Product[];
16
+ secondaryApplication?: SecondaryPartsApplicationType;
5
17
 
6
- // Properties
7
- id: number;
8
- code: string;
9
- name: string;
10
- description: string;
11
- // Eventuelle application de l'opération (avant, arrière)
12
- application?: PartsApplicationType;
13
- products?: Product[];
14
-
15
- constructor(id:number, code: string, name:string, description: string, application: PartsApplicationType, products: Product[]) {
16
- this.id = id;
17
- this.code = code;
18
- this.name = name;
19
- this.description = description;
20
- this.application = application;
21
- this.products = products;
22
- }
23
- }
18
+ constructor(
19
+ id: number,
20
+ code: string,
21
+ name: string,
22
+ description: string,
23
+ application: PartsApplicationType,
24
+ products: Product[],
25
+ secondaryApplication?: SecondaryPartsApplicationType
26
+ ) {
27
+ this.id = id;
28
+ this.code = code;
29
+ this.name = name;
30
+ this.description = description;
31
+ this.application = application;
32
+ this.products = products;
33
+ this.secondaryApplication = secondaryApplication;
34
+ }
35
+ }
@@ -2,57 +2,73 @@ import { PrestationState } from "../helpers/Enums";
2
2
  import Operation from "./Operation";
3
3
 
4
4
  export default class Prestation {
5
+ // Properties
6
+ id: number;
7
+ code: string;
8
+ name: string;
9
+ description: string;
10
+ category: string;
11
+ /**
12
+ * Durée d'immobilisation pour cette prestation (en jours)
13
+ */
14
+ downtime: number;
15
+ /**
16
+ * Délai avant prise de rendez-vous pour cette prestation (en jours)
17
+ */
18
+ appointmentDelay: number;
19
+ /**
20
+ * Opérations inhérentes à cette prestation
21
+ */
22
+ operations?: Operation[];
23
+ /**
24
+ * La notion de position (ou d'ordre) peut être utile à l'affichage d'une liste de prestation par exemple
25
+ */
26
+ position: number;
27
+ availableOnline: boolean;
5
28
 
6
- // Properties
7
- id: number;
8
- code: string;
9
- name: string;
10
- description: string;
11
- category: string;
12
- /**
13
- * Durée d'immobilisation pour cette prestation (en jours)
14
- */
15
- downtime: number;
16
- /**
17
- * Délai avant prise de rendez-vous pour cette prestation (en jours)
18
- */
19
- appointmentDelay: number;
20
- /**
21
- * Opérations inhérentes à cette prestation
22
- */
23
- operations?: Operation[];
24
- /**
25
- * La notion de position (ou d'ordre) peut être utile à l'affichage d'une liste de prestation par exemple
26
- */
27
- position: number;
28
- availableOnline: boolean;
29
+ active: boolean;
29
30
 
30
- active:boolean;
31
+ state: PrestationState;
31
32
 
32
- state: PrestationState;
33
+ multipleApplication: boolean;
33
34
 
34
- multipleApplication: boolean;
35
+ operationsVisible: boolean;
36
+ categoryCode: string;
37
+ secondaryMultipleApplication: boolean;
35
38
 
36
- operationsVisible: boolean;
37
- categoryCode: string;
38
-
39
- constructor(id:number, code: string, name:string, description: string, category:string,
40
- downtime:number, appointmentDelay: number, position: number, active: boolean, state: PrestationState,
41
- multipleApplication: boolean, operationsVisible: boolean,categoryCode: string, availableOnline:boolean, operations?: Operation[]) {
42
- this.id = id;
43
- this.code = code;
44
- this.name = name;
45
- this.description = description;
46
- this.category = category;
47
- this.downtime = downtime;
48
- this.appointmentDelay = appointmentDelay;
49
- this.position = position;
50
- this.active = active;
51
- this.multipleApplication = multipleApplication;
52
- this.operationsVisible = operationsVisible;
53
- this.operations = operations;
54
- this.state = state;
55
- this.categoryCode = categoryCode;
56
- this.availableOnline = availableOnline;
57
- }
58
- }
39
+ constructor(
40
+ id: number,
41
+ code: string,
42
+ name: string,
43
+ description: string,
44
+ category: string,
45
+ downtime: number,
46
+ appointmentDelay: number,
47
+ position: number,
48
+ active: boolean,
49
+ state: PrestationState,
50
+ multipleApplication: boolean,
51
+ operationsVisible: boolean,
52
+ categoryCode: string,
53
+ availableOnline: boolean,
54
+ operations?: Operation[],
55
+ secondaryMultipleApplication: boolean = false
56
+ ) {
57
+ this.id = id;
58
+ this.code = code;
59
+ this.name = name;
60
+ this.description = description;
61
+ this.category = category;
62
+ this.downtime = downtime;
63
+ this.appointmentDelay = appointmentDelay;
64
+ this.position = position;
65
+ this.active = active;
66
+ this.multipleApplication = multipleApplication;
67
+ this.operationsVisible = operationsVisible;
68
+ this.operations = operations;
69
+ this.state = state;
70
+ this.categoryCode = categoryCode;
71
+ this.availableOnline = availableOnline;
72
+ this.secondaryMultipleApplication = secondaryMultipleApplication;
73
+ }
74
+ }