@movalib/movalib-commons 1.1.8 → 1.1.9
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 +2 -1
- package/dist/src/helpers/Enums.d.ts +14 -0
- package/dist/src/helpers/Enums.js +16 -1
- package/dist/src/models/Garage.d.ts +7 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/helpers/Enums.ts +15 -0
- package/src/models/Garage.ts +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -40,4 +40,4 @@ export { readCookie, deleteCookie } from './src/helpers/CookieUtils';
|
|
|
40
40
|
export { validateField, formatVehicleTire, formatFrenchVehiclePlate, isEmpty, getApplicationShortLabel } from './src/helpers/Tools';
|
|
41
41
|
export { validatePhoneNumber, validateText, validateEmail } from './src/helpers/Validator';
|
|
42
42
|
export { formatDateByCountryCode, getLongFormattedDateTime, capitalizeFirstLetter } from './src/helpers/DateUtils';
|
|
43
|
-
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType, DigitalPassportIndex, DocumentState, Gender, DateFormatTypes, PartsApplicationType, ProductType, OrderPreference, OrderState } from './src/helpers/Enums';
|
|
43
|
+
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType, DigitalPassportIndex, DocumentState, Gender, DateFormatTypes, PartsApplicationType, ProductType, OrderPreference, OrderState, SlotAlgorithm } 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.MovaAppType = exports.RoleType = exports.capitalizeFirstLetter = exports.getLongFormattedDateTime = exports.formatDateByCountryCode = exports.validateEmail = exports.validateText = exports.validatePhoneNumber = 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.UserService = exports.GarageService = exports.AuthenticationService = void 0;
|
|
8
|
-
exports.OrderState = exports.OrderPreference = exports.ProductType = exports.PartsApplicationType = exports.DateFormatTypes = exports.Gender = exports.DocumentState = exports.DigitalPassportIndex = exports.DocumentType = exports.EventType = exports.EventState = exports.DayOfWeek = void 0;
|
|
8
|
+
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 = 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; } });
|
|
@@ -113,3 +113,4 @@ Object.defineProperty(exports, "PartsApplicationType", { enumerable: true, get:
|
|
|
113
113
|
Object.defineProperty(exports, "ProductType", { enumerable: true, get: function () { return Enums_1.ProductType; } });
|
|
114
114
|
Object.defineProperty(exports, "OrderPreference", { enumerable: true, get: function () { return Enums_1.OrderPreference; } });
|
|
115
115
|
Object.defineProperty(exports, "OrderState", { enumerable: true, get: function () { return Enums_1.OrderState; } });
|
|
116
|
+
Object.defineProperty(exports, "SlotAlgorithm", { enumerable: true, get: function () { return Enums_1.SlotAlgorithm; } });
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
export declare enum SlotAlgorithm {
|
|
2
|
+
/**
|
|
3
|
+
* Calcul des créneaux à l'heure
|
|
4
|
+
*/
|
|
5
|
+
HOUR = "HOUR",
|
|
6
|
+
/**
|
|
7
|
+
* Calcul des créneaux à demi-heure
|
|
8
|
+
*/
|
|
9
|
+
HALF_HOUR = "HALF_HOUR",
|
|
10
|
+
/**
|
|
11
|
+
* Calcul des créneaux à la période du jour (AM/PM)
|
|
12
|
+
*/
|
|
13
|
+
DAY_PERIOD = "DAY_PERIOD"
|
|
14
|
+
}
|
|
1
15
|
export declare enum OrderState {
|
|
2
16
|
NEW = "NEW",
|
|
3
17
|
QUOTE_REQUESTED = "QUOTE_REQUESTED",
|
|
@@ -1,6 +1,21 @@
|
|
|
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 = 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 = void 0;
|
|
4
|
+
var SlotAlgorithm;
|
|
5
|
+
(function (SlotAlgorithm) {
|
|
6
|
+
/**
|
|
7
|
+
* Calcul des créneaux à l'heure
|
|
8
|
+
*/
|
|
9
|
+
SlotAlgorithm["HOUR"] = "HOUR";
|
|
10
|
+
/**
|
|
11
|
+
* Calcul des créneaux à demi-heure
|
|
12
|
+
*/
|
|
13
|
+
SlotAlgorithm["HALF_HOUR"] = "HALF_HOUR";
|
|
14
|
+
/**
|
|
15
|
+
* Calcul des créneaux à la période du jour (AM/PM)
|
|
16
|
+
*/
|
|
17
|
+
SlotAlgorithm["DAY_PERIOD"] = "DAY_PERIOD";
|
|
18
|
+
})(SlotAlgorithm = exports.SlotAlgorithm || (exports.SlotAlgorithm = {}));
|
|
4
19
|
var OrderState;
|
|
5
20
|
(function (OrderState) {
|
|
6
21
|
OrderState["NEW"] = "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 } from "../helpers/Enums";
|
|
5
|
+
import { OrderPreference, SlotAlgorithm } from "../helpers/Enums";
|
|
6
6
|
export default class Garage {
|
|
7
7
|
id: string;
|
|
8
8
|
adminId: string;
|
|
@@ -16,5 +16,11 @@ export default class Garage {
|
|
|
16
16
|
logo?: string;
|
|
17
17
|
suppliers?: Supplier[];
|
|
18
18
|
orderPreference?: OrderPreference;
|
|
19
|
+
amVehicleDeposit?: Date;
|
|
20
|
+
pmVehicleDeposit?: Date;
|
|
21
|
+
appointmentRequestStart?: Date;
|
|
22
|
+
slotAlgorithm?: SlotAlgorithm;
|
|
23
|
+
customerQuoteActive?: boolean;
|
|
24
|
+
supplierOrderActive?: boolean;
|
|
19
25
|
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, contactEmail?: string, logo?: string, suppliers?: Supplier[]);
|
|
20
26
|
}
|
package/index.ts
CHANGED
|
@@ -56,5 +56,5 @@ export { formatDateByCountryCode, getLongFormattedDateTime, capitalizeFirstLette
|
|
|
56
56
|
// Export des enums
|
|
57
57
|
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType,
|
|
58
58
|
DigitalPassportIndex, DocumentState, Gender, DateFormatTypes, PartsApplicationType,
|
|
59
|
-
ProductType, OrderPreference, OrderState } from './src/helpers/Enums';
|
|
59
|
+
ProductType, OrderPreference, OrderState, SlotAlgorithm } from './src/helpers/Enums';
|
|
60
60
|
|
package/package.json
CHANGED
package/src/helpers/Enums.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
export enum SlotAlgorithm {
|
|
2
|
+
/**
|
|
3
|
+
* Calcul des créneaux à l'heure
|
|
4
|
+
*/
|
|
5
|
+
HOUR ="HOUR",
|
|
6
|
+
/**
|
|
7
|
+
* Calcul des créneaux à demi-heure
|
|
8
|
+
*/
|
|
9
|
+
HALF_HOUR ="HALF_HOUR",
|
|
10
|
+
/**
|
|
11
|
+
* Calcul des créneaux à la période du jour (AM/PM)
|
|
12
|
+
*/
|
|
13
|
+
DAY_PERIOD ="DAY_PERIOD"
|
|
14
|
+
}
|
|
15
|
+
|
|
1
16
|
export enum OrderState {
|
|
2
17
|
NEW = 'NEW',
|
|
3
18
|
QUOTE_REQUESTED = 'QUOTE_REQUESTED',
|
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 } from "../helpers/Enums";
|
|
5
|
+
import { OrderPreference, SlotAlgorithm } from "../helpers/Enums";
|
|
6
6
|
|
|
7
7
|
export default class Garage {
|
|
8
8
|
|
|
@@ -18,6 +18,12 @@ export default class Garage {
|
|
|
18
18
|
logo?: string;
|
|
19
19
|
suppliers?: Supplier[];
|
|
20
20
|
orderPreference?: OrderPreference;
|
|
21
|
+
amVehicleDeposit?: Date;
|
|
22
|
+
pmVehicleDeposit?: Date;
|
|
23
|
+
appointmentRequestStart?: Date;
|
|
24
|
+
slotAlgorithm?: SlotAlgorithm;
|
|
25
|
+
customerQuoteActive?: boolean;
|
|
26
|
+
supplierOrderActive?: boolean;
|
|
21
27
|
|
|
22
28
|
constructor(
|
|
23
29
|
id:string,
|