@movalib/movalib-commons 1.24.0 → 1.26.0
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 +2 -2
- package/dist/index.js +3 -1
- package/dist/src/models/Event.d.ts +2 -1
- package/dist/src/models/Event.js +2 -1
- package/dist/src/models/Subscription.d.ts +9 -2
- package/dist/src/models/Subscription.js +8 -1
- package/index.ts +2 -2
- package/package.json +1 -1
- package/src/models/Event.ts +3 -1
- package/src/models/Subscription.ts +17 -2
package/dist/index.d.ts
CHANGED
|
@@ -47,5 +47,5 @@ export { readCookie, deleteCookie } from './src/helpers/CookieUtils';
|
|
|
47
47
|
export { validateField, formatVehicleTire, formatFrenchVehiclePlate, isEmpty, getApplicationShortLabel, capitalizeFirstLetter, flexLeftRow, formatPhoneNumber, getFormattedSchedule, getFormattedIntervals, findScheduleByDayOfWeek, getDayOfWeekLabel, isSafariOniOS } from './src/helpers/Tools';
|
|
48
48
|
export { validatePhoneNumber, validateText, validateEmail } from './src/helpers/Validator';
|
|
49
49
|
export { formatDateByCountryCode, getLongFormattedDateTime } from './src/helpers/DateUtils';
|
|
50
|
-
export { request } from './src/helpers/ApiHelper';
|
|
51
|
-
export { 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 } from './src/helpers/Enums';
|
|
50
|
+
export { request, API_BASE_URL, } from './src/helpers/ApiHelper';
|
|
51
|
+
export { 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';
|
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.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.Employee = exports.Absence = exports.Subscription = 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.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.request = exports.getLongFormattedDateTime = exports.formatDateByCountryCode = exports.validateEmail = exports.validateText = exports.validatePhoneNumber = exports.isSafariOniOS = exports.getDayOfWeekLabel = exports.findScheduleByDayOfWeek = exports.getFormattedIntervals = exports.getFormattedSchedule = exports.formatPhoneNumber = exports.flexLeftRow = void 0;
|
|
8
|
+
exports.APIMethod = 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.API_BASE_URL = exports.request = exports.getLongFormattedDateTime = exports.formatDateByCountryCode = exports.validateEmail = exports.validateText = exports.validatePhoneNumber = exports.isSafariOniOS = exports.getDayOfWeekLabel = exports.findScheduleByDayOfWeek = exports.getFormattedIntervals = exports.getFormattedSchedule = exports.formatPhoneNumber = exports.flexLeftRow = void 0;
|
|
9
9
|
// Export des services
|
|
10
10
|
var VehicleService_1 = require("./src/services/VehicleService");
|
|
11
11
|
Object.defineProperty(exports, "VehicleService", { enumerable: true, get: function () { return __importDefault(VehicleService_1).default; } });
|
|
@@ -120,6 +120,7 @@ Object.defineProperty(exports, "formatDateByCountryCode", { enumerable: true, ge
|
|
|
120
120
|
Object.defineProperty(exports, "getLongFormattedDateTime", { enumerable: true, get: function () { return DateUtils_1.getLongFormattedDateTime; } });
|
|
121
121
|
var ApiHelper_1 = require("./src/helpers/ApiHelper");
|
|
122
122
|
Object.defineProperty(exports, "request", { enumerable: true, get: function () { return ApiHelper_1.request; } });
|
|
123
|
+
Object.defineProperty(exports, "API_BASE_URL", { enumerable: true, get: function () { return ApiHelper_1.API_BASE_URL; } });
|
|
123
124
|
// Export des enums
|
|
124
125
|
var Enums_1 = require("./src/helpers/Enums");
|
|
125
126
|
Object.defineProperty(exports, "RoleType", { enumerable: true, get: function () { return Enums_1.RoleType; } });
|
|
@@ -145,3 +146,4 @@ Object.defineProperty(exports, "PrestationState", { enumerable: true, get: funct
|
|
|
145
146
|
Object.defineProperty(exports, "CountryCode", { enumerable: true, get: function () { return Enums_1.CountryCode; } });
|
|
146
147
|
Object.defineProperty(exports, "SubscriptionState", { enumerable: true, get: function () { return Enums_1.SubscriptionState; } });
|
|
147
148
|
Object.defineProperty(exports, "SubscriptionType", { enumerable: true, get: function () { return Enums_1.SubscriptionType; } });
|
|
149
|
+
Object.defineProperty(exports, "APIMethod", { enumerable: true, get: function () { return Enums_1.APIMethod; } });
|
|
@@ -45,6 +45,7 @@ export default class Event {
|
|
|
45
45
|
documents?: Document[];
|
|
46
46
|
customerReminders?: number;
|
|
47
47
|
vehicleAvailableNotified?: boolean;
|
|
48
|
-
|
|
48
|
+
editable?: boolean;
|
|
49
|
+
constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[], guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean);
|
|
49
50
|
static getPrestationsList(event: Event): string[];
|
|
50
51
|
}
|
package/dist/src/models/Event.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Event = /** @class */ (function () {
|
|
4
|
-
function Event(id, ownerId, type, title, garageName, garageId, state, garageAddress, start, end, prestations, operations, products, guestsId, vehicleId, quoteId, notes, vehicleAvailableNotified) {
|
|
4
|
+
function Event(id, ownerId, type, title, garageName, garageId, state, garageAddress, start, end, prestations, operations, products, guestsId, vehicleId, quoteId, notes, vehicleAvailableNotified, editable) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.notes = notes;
|
|
7
7
|
this.ownerId = ownerId;
|
|
@@ -20,6 +20,7 @@ var Event = /** @class */ (function () {
|
|
|
20
20
|
this.vehicleId = vehicleId;
|
|
21
21
|
this.quoteId = quoteId;
|
|
22
22
|
this.vehicleAvailableNotified = vehicleAvailableNotified;
|
|
23
|
+
this.editable = editable;
|
|
23
24
|
}
|
|
24
25
|
Event.getPrestationsList = function (event) {
|
|
25
26
|
if (event && event.prestations) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscriptionState, SubscriptionType } from "../helpers/Enums";
|
|
1
|
+
import { SubscriptionPaymentInterval, SubscriptionState, SubscriptionType } from "../helpers/Enums";
|
|
2
2
|
export default class Subscription {
|
|
3
3
|
id: string;
|
|
4
4
|
garageId: string;
|
|
@@ -6,6 +6,13 @@ export default class Subscription {
|
|
|
6
6
|
state: SubscriptionState;
|
|
7
7
|
companyName: string;
|
|
8
8
|
companyEmail: string;
|
|
9
|
+
companySiren: string;
|
|
10
|
+
companyLegalForm: string;
|
|
11
|
+
trialDays: number;
|
|
12
|
+
startDate: Date;
|
|
13
|
+
activationDate: Date;
|
|
14
|
+
cancellationDate: Date;
|
|
15
|
+
paymentInterval: SubscriptionPaymentInterval;
|
|
9
16
|
paymentIban: string;
|
|
10
|
-
constructor(id: string, garageId: string, type: SubscriptionType, state: SubscriptionState, companyName: string, companyEmail: string, paymentIban: string);
|
|
17
|
+
constructor(id: string, garageId: string, type: SubscriptionType, state: SubscriptionState, companyName: string, companyEmail: string, companySiren: string, companyLegalForm: string, trialDays: number, startDate: Date, activationDate: Date, cancellationDate: Date, paymentInterval: SubscriptionPaymentInterval, paymentIban: string);
|
|
11
18
|
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Subscription = /** @class */ (function () {
|
|
4
|
-
function Subscription(id, garageId, type, state, companyName, companyEmail, paymentIban) {
|
|
4
|
+
function Subscription(id, garageId, type, state, companyName, companyEmail, companySiren, companyLegalForm, trialDays, startDate, activationDate, cancellationDate, paymentInterval, paymentIban) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.garageId = garageId;
|
|
7
7
|
this.type = type;
|
|
8
8
|
this.state = state;
|
|
9
9
|
this.companyName = companyName;
|
|
10
10
|
this.companyEmail = companyEmail;
|
|
11
|
+
this.companySiren = companySiren;
|
|
12
|
+
this.companyLegalForm = companyLegalForm;
|
|
13
|
+
this.trialDays = trialDays;
|
|
14
|
+
this.startDate = startDate;
|
|
15
|
+
this.activationDate = activationDate;
|
|
16
|
+
this.cancellationDate = cancellationDate;
|
|
17
|
+
this.paymentInterval = paymentInterval;
|
|
11
18
|
this.paymentIban = paymentIban;
|
|
12
19
|
}
|
|
13
20
|
return Subscription;
|
package/index.ts
CHANGED
|
@@ -61,12 +61,12 @@ export { validateField, formatVehicleTire, formatFrenchVehiclePlate, isEmpty, ge
|
|
|
61
61
|
findScheduleByDayOfWeek, getDayOfWeekLabel, isSafariOniOS } from './src/helpers/Tools';
|
|
62
62
|
export { validatePhoneNumber, validateText, validateEmail } from './src/helpers/Validator';
|
|
63
63
|
export { formatDateByCountryCode, getLongFormattedDateTime } from './src/helpers/DateUtils';
|
|
64
|
-
export { request } from './src/helpers/ApiHelper';
|
|
64
|
+
export { request, API_BASE_URL, } from './src/helpers/ApiHelper';
|
|
65
65
|
|
|
66
66
|
// Export des enums
|
|
67
67
|
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType,
|
|
68
68
|
DigitalPassportIndex, DocumentState, Gender, DateFormatTypes, PartsApplicationType,
|
|
69
69
|
ProductType, OrderPreference, OrderState, SlotAlgorithm, VehiclePlateFormat as VehiclePlateType,
|
|
70
70
|
SubscriptionPaymentInterval, RegistrationState, PrestationType, PrestationState, CountryCode,
|
|
71
|
-
SubscriptionState, SubscriptionType } from './src/helpers/Enums';
|
|
71
|
+
SubscriptionState, SubscriptionType, APIMethod } from './src/helpers/Enums';
|
|
72
72
|
|
package/package.json
CHANGED
package/src/models/Event.ts
CHANGED
|
@@ -48,11 +48,12 @@ export default class Event {
|
|
|
48
48
|
documents?: Document[];
|
|
49
49
|
customerReminders?: number;
|
|
50
50
|
vehicleAvailableNotified?: boolean;
|
|
51
|
+
editable?: boolean;
|
|
51
52
|
|
|
52
53
|
|
|
53
54
|
constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,
|
|
54
55
|
state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[],
|
|
55
|
-
guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean)
|
|
56
|
+
guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean)
|
|
56
57
|
{
|
|
57
58
|
this.id = id;
|
|
58
59
|
this.notes = notes;
|
|
@@ -72,6 +73,7 @@ export default class Event {
|
|
|
72
73
|
this.vehicleId = vehicleId;
|
|
73
74
|
this.quoteId = quoteId;
|
|
74
75
|
this.vehicleAvailableNotified = vehicleAvailableNotified;
|
|
76
|
+
this.editable = editable;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
static getPrestationsList(event: Event) : string[] {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscriptionState, SubscriptionType } from "../helpers/Enums";
|
|
1
|
+
import { SubscriptionPaymentInterval, SubscriptionState, SubscriptionType } from "../helpers/Enums";
|
|
2
2
|
|
|
3
3
|
export default class Subscription {
|
|
4
4
|
|
|
@@ -9,10 +9,18 @@ export default class Subscription {
|
|
|
9
9
|
state: SubscriptionState;
|
|
10
10
|
companyName: string;
|
|
11
11
|
companyEmail: string;
|
|
12
|
+
companySiren: string;
|
|
13
|
+
companyLegalForm: string;
|
|
14
|
+
trialDays: number;
|
|
15
|
+
startDate: Date;
|
|
16
|
+
activationDate: Date;
|
|
17
|
+
cancellationDate: Date;
|
|
18
|
+
paymentInterval: SubscriptionPaymentInterval;
|
|
12
19
|
paymentIban: string;
|
|
13
20
|
|
|
14
21
|
constructor(id: string, garageId: string, type: SubscriptionType, state: SubscriptionState, companyName: string,
|
|
15
|
-
companyEmail: string,
|
|
22
|
+
companyEmail: string, companySiren: string, companyLegalForm: string, trialDays: number, startDate: Date, activationDate: Date,
|
|
23
|
+
cancellationDate: Date, paymentInterval: SubscriptionPaymentInterval, paymentIban : string) {
|
|
16
24
|
|
|
17
25
|
this.id = id;
|
|
18
26
|
this.garageId = garageId;
|
|
@@ -20,6 +28,13 @@ export default class Subscription {
|
|
|
20
28
|
this.state = state;
|
|
21
29
|
this.companyName = companyName;
|
|
22
30
|
this.companyEmail = companyEmail;
|
|
31
|
+
this.companySiren = companySiren;
|
|
32
|
+
this.companyLegalForm = companyLegalForm;
|
|
33
|
+
this.trialDays = trialDays;
|
|
34
|
+
this.startDate = startDate;
|
|
35
|
+
this.activationDate = activationDate;
|
|
36
|
+
this.cancellationDate = cancellationDate;
|
|
37
|
+
this.paymentInterval = paymentInterval;
|
|
23
38
|
this.paymentIban = paymentIban;
|
|
24
39
|
}
|
|
25
40
|
}
|