@movalib/movalib-commons 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/src/helpers/Enums.d.ts +7 -3
- package/dist/src/helpers/Enums.js +9 -4
- package/dist/src/models/Vehicle.d.ts +3 -2
- package/index.ts +2 -1
- package/package.json +1 -1
- package/src/helpers/Enums.ts +8 -3
- package/src/models/Vehicle.ts +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ export { default as Schedule } from './src/models/Schedule';
|
|
|
14
14
|
export { default as Event } from './src/models/Event';
|
|
15
15
|
export type { MovaFormField, MovaLoginForm, MovaUserSignUpForm, MovaInterval } from './src/helpers/Types';
|
|
16
16
|
export { validateField } from './src/helpers/Tools';
|
|
17
|
-
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType } from './src/helpers/Enums';
|
|
17
|
+
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType, DigitalPassportIndex } from './src/helpers/Enums';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ 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.EventType = exports.EventState = exports.DayOfWeek = exports.MovaAppType = exports.RoleType = exports.validateField = exports.Event = exports.Schedule = exports.Garage = exports.Document = exports.Vehicle = exports.Address = exports.Role = exports.User = exports.MovaCopyright = exports.MovaSignUp = exports.MovaLogin = exports.MovaSnackbar = exports.TestButton = exports.VehiclePlateField = void 0;
|
|
7
|
+
exports.DigitalPassportIndex = exports.DocumentType = exports.EventType = exports.EventState = exports.DayOfWeek = exports.MovaAppType = exports.RoleType = exports.validateField = exports.Event = exports.Schedule = exports.Garage = exports.Document = exports.Vehicle = exports.Address = exports.Role = exports.User = exports.MovaCopyright = exports.MovaSignUp = exports.MovaLogin = exports.MovaSnackbar = exports.TestButton = exports.VehiclePlateField = void 0;
|
|
8
8
|
// Export des composants
|
|
9
9
|
var VehiclePlateField_1 = require("./src/VehiclePlateField");
|
|
10
10
|
Object.defineProperty(exports, "VehiclePlateField", { enumerable: true, get: function () { return __importDefault(VehiclePlateField_1).default; } });
|
|
@@ -45,3 +45,5 @@ Object.defineProperty(exports, "MovaAppType", { enumerable: true, get: function
|
|
|
45
45
|
Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return Enums_1.DayOfWeek; } });
|
|
46
46
|
Object.defineProperty(exports, "EventState", { enumerable: true, get: function () { return Enums_1.EventState; } });
|
|
47
47
|
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return Enums_1.EventType; } });
|
|
48
|
+
Object.defineProperty(exports, "DocumentType", { enumerable: true, get: function () { return Enums_1.DocumentType; } });
|
|
49
|
+
Object.defineProperty(exports, "DigitalPassportIndex", { enumerable: true, get: function () { return Enums_1.DigitalPassportIndex; } });
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export declare enum DigitalPassportIndex {
|
|
2
|
+
A = "A",
|
|
3
|
+
B = "B",
|
|
4
|
+
C = "C"
|
|
5
|
+
}
|
|
1
6
|
export declare enum EventState {
|
|
2
7
|
/**
|
|
3
8
|
* Nouvelle demande de rendez-vous (origine client OU centre)
|
|
@@ -41,9 +46,8 @@ export declare enum DayOfWeek {
|
|
|
41
46
|
SUNDAY = "SUNDAY"
|
|
42
47
|
}
|
|
43
48
|
export declare enum DocumentType {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
CAR_PICTURE = "CAR_PICTURE"
|
|
49
|
+
VEHICLE_MAINTENANCE_INVOICE = "VEHICLE_MAINTENANCE_INVOICE",
|
|
50
|
+
VEHICLE_TIRE_PHOTO = "VEHICLE_TIRE_PHOTO"
|
|
47
51
|
}
|
|
48
52
|
export declare enum MovaAppType {
|
|
49
53
|
/**
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RoleType = exports.MovaAppType = exports.DocumentType = exports.DayOfWeek = exports.EventType = exports.EventState = void 0;
|
|
3
|
+
exports.RoleType = exports.MovaAppType = exports.DocumentType = exports.DayOfWeek = exports.EventType = exports.EventState = exports.DigitalPassportIndex = void 0;
|
|
4
|
+
var DigitalPassportIndex;
|
|
5
|
+
(function (DigitalPassportIndex) {
|
|
6
|
+
DigitalPassportIndex["A"] = "A";
|
|
7
|
+
DigitalPassportIndex["B"] = "B";
|
|
8
|
+
DigitalPassportIndex["C"] = "C";
|
|
9
|
+
})(DigitalPassportIndex = exports.DigitalPassportIndex || (exports.DigitalPassportIndex = {}));
|
|
4
10
|
var EventState;
|
|
5
11
|
(function (EventState) {
|
|
6
12
|
/**
|
|
@@ -48,9 +54,8 @@ var DayOfWeek;
|
|
|
48
54
|
})(DayOfWeek = exports.DayOfWeek || (exports.DayOfWeek = {}));
|
|
49
55
|
var DocumentType;
|
|
50
56
|
(function (DocumentType) {
|
|
51
|
-
DocumentType["
|
|
52
|
-
DocumentType["
|
|
53
|
-
DocumentType["CAR_PICTURE"] = "CAR_PICTURE";
|
|
57
|
+
DocumentType["VEHICLE_MAINTENANCE_INVOICE"] = "VEHICLE_MAINTENANCE_INVOICE";
|
|
58
|
+
DocumentType["VEHICLE_TIRE_PHOTO"] = "VEHICLE_TIRE_PHOTO";
|
|
54
59
|
})(DocumentType = exports.DocumentType || (exports.DocumentType = {}));
|
|
55
60
|
var MovaAppType;
|
|
56
61
|
(function (MovaAppType) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DigitalPassportIndex } from '../helpers/Enums';
|
|
1
2
|
import Document from './Document';
|
|
2
3
|
export default class Vehicle {
|
|
3
4
|
id: number;
|
|
@@ -9,7 +10,7 @@ export default class Vehicle {
|
|
|
9
10
|
version: string;
|
|
10
11
|
vin: string;
|
|
11
12
|
currentMileage: number;
|
|
12
|
-
digitalPassportIndex:
|
|
13
|
+
digitalPassportIndex: DigitalPassportIndex;
|
|
13
14
|
firstRegistrationDate: Date;
|
|
14
15
|
ktype: string;
|
|
15
16
|
tireDiameter: string;
|
|
@@ -17,6 +18,6 @@ export default class Vehicle {
|
|
|
17
18
|
tireSpeedIndex: string;
|
|
18
19
|
tireWidth: string;
|
|
19
20
|
documents: Document[];
|
|
20
|
-
constructor(id: number, ownerId: number, averageMileagePerYear: number, plate: string, brand: string, model: string, version: string, vin: string, currentMileage: number, digitalPassportIndex:
|
|
21
|
+
constructor(id: number, ownerId: number, averageMileagePerYear: number, plate: string, brand: string, model: string, version: string, vin: string, currentMileage: number, digitalPassportIndex: DigitalPassportIndex, firstRegistrationDate: Date, ktype: string, tireDiameter: string, tireHeight: string, tireSpeedIndex: string, tireWidth: string, documents: Document[]);
|
|
21
22
|
getVehicleLabel(): string;
|
|
22
23
|
}
|
package/index.ts
CHANGED
|
@@ -25,4 +25,5 @@ export type { MovaFormField, MovaLoginForm, MovaUserSignUpForm, MovaInterval } f
|
|
|
25
25
|
export { validateField } from './src/helpers/Tools';
|
|
26
26
|
|
|
27
27
|
// Export des enums
|
|
28
|
-
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType
|
|
28
|
+
export { RoleType, MovaAppType, DayOfWeek, EventState, EventType, DocumentType,
|
|
29
|
+
DigitalPassportIndex } from './src/helpers/Enums';
|
package/package.json
CHANGED
package/src/helpers/Enums.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export enum DigitalPassportIndex {
|
|
2
|
+
A = "A",
|
|
3
|
+
B = "B",
|
|
4
|
+
C = "C"
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
export enum EventState {
|
|
2
8
|
/**
|
|
3
9
|
* Nouvelle demande de rendez-vous (origine client OU centre)
|
|
@@ -44,9 +50,8 @@ export enum DayOfWeek {
|
|
|
44
50
|
}
|
|
45
51
|
|
|
46
52
|
export enum DocumentType {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
CAR_PICTURE = 'CAR_PICTURE'
|
|
53
|
+
VEHICLE_MAINTENANCE_INVOICE = 'VEHICLE_MAINTENANCE_INVOICE',
|
|
54
|
+
VEHICLE_TIRE_PHOTO = 'VEHICLE_TIRE_PHOTO'
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
export enum MovaAppType {
|
package/src/models/Vehicle.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DigitalPassportIndex } from '../helpers/Enums';
|
|
1
2
|
import Document from './Document';
|
|
2
3
|
|
|
3
4
|
/* AUDI A5 Sportback (F5A, F5F)
|
|
@@ -23,7 +24,7 @@ export default class Vehicle {
|
|
|
23
24
|
version: string;
|
|
24
25
|
vin: string;
|
|
25
26
|
currentMileage: number;
|
|
26
|
-
digitalPassportIndex:
|
|
27
|
+
digitalPassportIndex: DigitalPassportIndex;
|
|
27
28
|
firstRegistrationDate: Date;
|
|
28
29
|
ktype: string;
|
|
29
30
|
tireDiameter: string;
|
|
@@ -42,7 +43,7 @@ export default class Vehicle {
|
|
|
42
43
|
version: string,
|
|
43
44
|
vin: string,
|
|
44
45
|
currentMileage: number,
|
|
45
|
-
digitalPassportIndex:
|
|
46
|
+
digitalPassportIndex: DigitalPassportIndex,
|
|
46
47
|
firstRegistrationDate: Date,
|
|
47
48
|
ktype: string,
|
|
48
49
|
tireDiameter: string,
|