@monkvision/network 4.3.6 → 4.3.7
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/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkvision/network",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.6",
|
|
4
4
|
"license": "BSD-3-Clause-Clear",
|
|
5
5
|
"packageManager": "yarn@3.2.4",
|
|
6
6
|
"description": "MonkJs core package used to communicate with the API",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@monkvision/common": "4.3.
|
|
32
|
-
"@monkvision/sights": "4.3.
|
|
31
|
+
"@monkvision/common": "4.3.6",
|
|
32
|
+
"@monkvision/sights": "4.3.6",
|
|
33
33
|
"jsonwebtoken": "^9.0.2",
|
|
34
34
|
"jwt-decode": "^4.0.0",
|
|
35
35
|
"ky": "^1.2.0",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"react-router-dom": "^6.22.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@monkvision/eslint-config-base": "4.3.
|
|
46
|
-
"@monkvision/eslint-config-typescript": "4.3.
|
|
47
|
-
"@monkvision/jest-config": "4.3.
|
|
48
|
-
"@monkvision/prettier-config": "4.3.
|
|
49
|
-
"@monkvision/types": "4.3.
|
|
50
|
-
"@monkvision/typescript-config": "4.3.
|
|
45
|
+
"@monkvision/eslint-config-base": "4.3.6",
|
|
46
|
+
"@monkvision/eslint-config-typescript": "4.3.6",
|
|
47
|
+
"@monkvision/jest-config": "4.3.6",
|
|
48
|
+
"@monkvision/prettier-config": "4.3.6",
|
|
49
|
+
"@monkvision/types": "4.3.6",
|
|
50
|
+
"@monkvision/typescript-config": "4.3.6",
|
|
51
51
|
"@types/jest": "^29.2.2",
|
|
52
52
|
"@types/jsonwebtoken": "^9.0.5",
|
|
53
53
|
"@types/node": "^18.11.9",
|
|
@@ -221,6 +221,7 @@ function mapTasks(response) {
|
|
|
221
221
|
return { taskIds: taskIds, tasks: tasks };
|
|
222
222
|
}
|
|
223
223
|
function mapVehicle(response) {
|
|
224
|
+
var _a, _b, _c, _d;
|
|
224
225
|
return (response === null || response === void 0 ? void 0 : response.vehicle)
|
|
225
226
|
? {
|
|
226
227
|
id: response.vehicle.id,
|
|
@@ -231,10 +232,10 @@ function mapVehicle(response) {
|
|
|
231
232
|
serie: response.vehicle.serie,
|
|
232
233
|
plate: response.vehicle.plate,
|
|
233
234
|
type: response.vehicle.vehicle_type,
|
|
234
|
-
mileageUnit: response.vehicle.mileage_unit,
|
|
235
|
-
mileageValue: response.vehicle.mileage_value,
|
|
236
|
-
marketValueUnit: response.vehicle.market_value_unit,
|
|
237
|
-
marketValue: response.vehicle.market_value_value,
|
|
235
|
+
mileageUnit: (_a = response.vehicle.mileage) === null || _a === void 0 ? void 0 : _a.mileage_unit,
|
|
236
|
+
mileageValue: (_b = response.vehicle.mileage) === null || _b === void 0 ? void 0 : _b.mileage_value,
|
|
237
|
+
marketValueUnit: (_c = response.vehicle.market_value) === null || _c === void 0 ? void 0 : _c.market_value_unit,
|
|
238
|
+
marketValue: (_d = response.vehicle.market_value) === null || _d === void 0 ? void 0 : _d.market_value_value,
|
|
238
239
|
vin: response.vehicle.vin,
|
|
239
240
|
color: response.vehicle.color,
|
|
240
241
|
exteriorCleanliness: response.vehicle.exterior_cleanliness,
|
|
@@ -454,14 +455,14 @@ function mapApiInspectionPost(options) {
|
|
|
454
455
|
vehicle_type: options.vehicle.type,
|
|
455
456
|
mileage: options.vehicle.mileageUnit && options.vehicle.mileageValue
|
|
456
457
|
? {
|
|
457
|
-
|
|
458
|
-
|
|
458
|
+
mileage_value: options.vehicle.mileageValue,
|
|
459
|
+
mileage_unit: options.vehicle.mileageUnit,
|
|
459
460
|
}
|
|
460
461
|
: undefined,
|
|
461
462
|
market_value: options.vehicle.marketValueUnit && options.vehicle.marketValue
|
|
462
463
|
? {
|
|
463
|
-
|
|
464
|
-
|
|
464
|
+
market_value_value: options.vehicle.marketValue,
|
|
465
|
+
market_value_unit: options.vehicle.marketValueUnit,
|
|
465
466
|
}
|
|
466
467
|
: undefined,
|
|
467
468
|
vin: options.vehicle.vin,
|
|
@@ -2,6 +2,14 @@ import type { ApiAdditionalData } from './common';
|
|
|
2
2
|
export type ApiOwnerInfo = Record<string, unknown>;
|
|
3
3
|
export type ApiMileageUnit = 'km' | 'miles';
|
|
4
4
|
export type ApiMarketValueUnit = 'USD' | 'EUR';
|
|
5
|
+
export interface ApiMileage {
|
|
6
|
+
mileage_value: number;
|
|
7
|
+
mileage_unit: ApiMileageUnit;
|
|
8
|
+
}
|
|
9
|
+
export interface ApiMarketValue {
|
|
10
|
+
market_value_value: number;
|
|
11
|
+
market_value_unit: ApiMarketValueUnit;
|
|
12
|
+
}
|
|
5
13
|
export interface ApiVehicleComponent {
|
|
6
14
|
additional_data?: ApiAdditionalData;
|
|
7
15
|
brand?: string;
|
|
@@ -14,10 +22,8 @@ export interface ApiVehicleComponent {
|
|
|
14
22
|
exterior_cleanliness?: string;
|
|
15
23
|
id: string;
|
|
16
24
|
interior_cleanliness?: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
mileage_unit?: ApiMileageUnit;
|
|
20
|
-
mileage_value?: number;
|
|
25
|
+
mileage?: ApiMileage;
|
|
26
|
+
market_value?: ApiMarketValue;
|
|
21
27
|
model?: string;
|
|
22
28
|
serie?: string;
|
|
23
29
|
owner_info?: ApiOwnerInfo;
|
|
@@ -27,14 +33,6 @@ export interface ApiVehicleComponent {
|
|
|
27
33
|
vehicle_type?: string;
|
|
28
34
|
vin?: string;
|
|
29
35
|
}
|
|
30
|
-
export interface ApiMileage {
|
|
31
|
-
value: number;
|
|
32
|
-
unit: ApiMileageUnit;
|
|
33
|
-
}
|
|
34
|
-
export interface ApiMarketValue {
|
|
35
|
-
value: number;
|
|
36
|
-
unit: ApiMarketValueUnit;
|
|
37
|
-
}
|
|
38
36
|
export interface ApiVehiclePostPatch {
|
|
39
37
|
brand?: string;
|
|
40
38
|
model?: string;
|
|
@@ -9,12 +9,12 @@ function mapApiVehiclePatch(options) {
|
|
|
9
9
|
vehicle_type: options.type,
|
|
10
10
|
mileage: options.mileageValue && options.mileageUnit
|
|
11
11
|
? {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
mileage_value: options.mileageValue,
|
|
13
|
+
mileage_unit: options.mileageUnit,
|
|
14
14
|
}
|
|
15
15
|
: undefined,
|
|
16
16
|
market_value: options.marketValue && options.marketValueUnit
|
|
17
|
-
? {
|
|
17
|
+
? { market_value_value: options.marketValue, market_value_unit: options.marketValueUnit }
|
|
18
18
|
: undefined,
|
|
19
19
|
vin: options.vin,
|
|
20
20
|
color: options.color,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkvision/network",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.7",
|
|
4
4
|
"license": "BSD-3-Clause-Clear",
|
|
5
5
|
"packageManager": "yarn@3.2.4",
|
|
6
6
|
"description": "MonkJs core package used to communicate with the API",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@monkvision/common": "4.3.
|
|
32
|
-
"@monkvision/sights": "4.3.
|
|
31
|
+
"@monkvision/common": "4.3.7",
|
|
32
|
+
"@monkvision/sights": "4.3.7",
|
|
33
33
|
"jsonwebtoken": "^9.0.2",
|
|
34
34
|
"jwt-decode": "^4.0.0",
|
|
35
35
|
"ky": "^1.2.0",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"react-router-dom": "^6.22.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@monkvision/eslint-config-base": "4.3.
|
|
46
|
-
"@monkvision/eslint-config-typescript": "4.3.
|
|
47
|
-
"@monkvision/jest-config": "4.3.
|
|
48
|
-
"@monkvision/prettier-config": "4.3.
|
|
49
|
-
"@monkvision/types": "4.3.
|
|
50
|
-
"@monkvision/typescript-config": "4.3.
|
|
45
|
+
"@monkvision/eslint-config-base": "4.3.7",
|
|
46
|
+
"@monkvision/eslint-config-typescript": "4.3.7",
|
|
47
|
+
"@monkvision/jest-config": "4.3.7",
|
|
48
|
+
"@monkvision/prettier-config": "4.3.7",
|
|
49
|
+
"@monkvision/types": "4.3.7",
|
|
50
|
+
"@monkvision/typescript-config": "4.3.7",
|
|
51
51
|
"@types/jest": "^29.2.2",
|
|
52
52
|
"@types/jsonwebtoken": "^9.0.5",
|
|
53
53
|
"@types/node": "^18.11.9",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"url": "https://github.com/monkvision/monkjs/issues"
|
|
85
85
|
},
|
|
86
86
|
"homepage": "https://github.com/monkvision/monkjs",
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "04dad018a2eab4da78912e328670e9b9b55cde94"
|
|
88
88
|
}
|