@monkvision/network 5.2.3 → 5.2.5
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": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
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": "5.2.
|
|
32
|
-
"@monkvision/sights": "5.2.
|
|
31
|
+
"@monkvision/common": "5.2.4",
|
|
32
|
+
"@monkvision/sights": "5.2.4",
|
|
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": "5.2.
|
|
46
|
-
"@monkvision/eslint-config-typescript": "5.2.
|
|
47
|
-
"@monkvision/jest-config": "5.2.
|
|
48
|
-
"@monkvision/prettier-config": "5.2.
|
|
49
|
-
"@monkvision/types": "5.2.
|
|
50
|
-
"@monkvision/typescript-config": "5.2.
|
|
45
|
+
"@monkvision/eslint-config-base": "5.2.4",
|
|
46
|
+
"@monkvision/eslint-config-typescript": "5.2.4",
|
|
47
|
+
"@monkvision/jest-config": "5.2.4",
|
|
48
|
+
"@monkvision/prettier-config": "5.2.4",
|
|
49
|
+
"@monkvision/types": "5.2.4",
|
|
50
|
+
"@monkvision/typescript-config": "5.2.4",
|
|
51
51
|
"@types/jest": "^29.2.2",
|
|
52
52
|
"@types/jsonwebtoken": "^9.0.5",
|
|
53
53
|
"@types/node": "^18.11.9",
|
|
@@ -278,20 +278,9 @@ function mapWheelAnalysis(response) {
|
|
|
278
278
|
: [])) !== null && _b !== void 0 ? _b : []);
|
|
279
279
|
}
|
|
280
280
|
function mapInspection(response, ids) {
|
|
281
|
-
return {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
tasks: ids.taskIds,
|
|
285
|
-
images: ids.imageIds,
|
|
286
|
-
damages: ids.damageIds,
|
|
287
|
-
parts: ids.partIds,
|
|
288
|
-
vehicle: ids.vehicleId,
|
|
289
|
-
wheelAnalysis: mapWheelAnalysis(response),
|
|
290
|
-
severityResults: ids.severityResultIds,
|
|
291
|
-
pricings: ids.pricingIds,
|
|
292
|
-
pdfUrl: 'pdf_url' in response ? response.pdf_url : undefined,
|
|
293
|
-
additionalData: response.additional_data,
|
|
294
|
-
};
|
|
281
|
+
return __assign(__assign({ id: response.id, entityType: types_1.MonkEntityType.INSPECTION, tasks: ids.taskIds, images: ids.imageIds, damages: ids.damageIds, parts: ids.partIds, vehicle: ids.vehicleId, wheelAnalysis: mapWheelAnalysis(response), severityResults: ids.severityResultIds, pricings: ids.pricingIds, pdfUrl: 'pdf_url' in response ? response.pdf_url : undefined }, (response.inspection_type && {
|
|
282
|
+
type: response.inspection_type,
|
|
283
|
+
})), { additionalData: response.additional_data });
|
|
295
284
|
}
|
|
296
285
|
function mapApiAllInspectionsVerboseGet(data, thumbnailDomain) {
|
|
297
286
|
var state = {
|
|
@@ -516,6 +505,7 @@ function mapApiInspectionPost(options) {
|
|
|
516
505
|
}
|
|
517
506
|
: undefined,
|
|
518
507
|
damage_severity: options.enablePricingV1 === false ? undefined : { output_format: 'default' },
|
|
508
|
+
inspection_type: options.type,
|
|
519
509
|
additional_data: __assign({ user_agent: navigator.userAgent, connection: navigator.connection, monk_sdk_version: config_1.sdkVersion, damage_detection_version: 'v2', use_dynamic_crops: (_a = options.useDynamicCrops) !== null && _a !== void 0 ? _a : true, is_video_capture: (_b = options.isVideoCapture) !== null && _b !== void 0 ? _b : false }, options.additionalData),
|
|
520
510
|
};
|
|
521
511
|
}
|
|
@@ -14,7 +14,6 @@ export interface ApiInspectioAdditionalData extends ApiAdditionalData {
|
|
|
14
14
|
use_3d_projection?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export interface ApiInspectionGet {
|
|
17
|
-
additional_data?: ApiInspectioAdditionalData;
|
|
18
17
|
damages: ApiDamages;
|
|
19
18
|
id: string;
|
|
20
19
|
images: ApiImages;
|
|
@@ -25,6 +24,8 @@ export interface ApiInspectionGet {
|
|
|
25
24
|
tasks: ApiTasks;
|
|
26
25
|
vehicle?: ApiVehicleComponent;
|
|
27
26
|
wheel_analysis?: ApiWheelAnalysis;
|
|
27
|
+
inspection_type?: string;
|
|
28
|
+
additional_data?: ApiInspectioAdditionalData;
|
|
28
29
|
}
|
|
29
30
|
export type ApiPaginationOrder = 'asc' | 'desc';
|
|
30
31
|
export interface ApiPaginationParameters {
|
|
@@ -61,6 +62,7 @@ export interface ApiAllInspectionsVerboseGet extends ApiAllInspectionsGet {
|
|
|
61
62
|
plate?: string;
|
|
62
63
|
damages: ApiDamageSimplifiedGet[];
|
|
63
64
|
parts: ApiPartSimplifiedGet[];
|
|
65
|
+
inspection_type?: string;
|
|
64
66
|
vehicle?: ApiVehicleComponent;
|
|
65
67
|
}
|
|
66
68
|
export interface ApiInspectionsCountGet {
|
|
@@ -76,4 +78,5 @@ export interface ApiInspectionPost {
|
|
|
76
78
|
images?: ApiImagePost[];
|
|
77
79
|
vehicle?: ApiVehiclePostPatch;
|
|
78
80
|
damage_severity?: ApiDamageSeverity;
|
|
81
|
+
inspection_type?: string;
|
|
79
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkvision/network",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.5",
|
|
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": "5.2.
|
|
32
|
-
"@monkvision/sights": "5.2.
|
|
31
|
+
"@monkvision/common": "5.2.5",
|
|
32
|
+
"@monkvision/sights": "5.2.5",
|
|
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": "5.2.
|
|
46
|
-
"@monkvision/eslint-config-typescript": "5.2.
|
|
47
|
-
"@monkvision/jest-config": "5.2.
|
|
48
|
-
"@monkvision/prettier-config": "5.2.
|
|
49
|
-
"@monkvision/types": "5.2.
|
|
50
|
-
"@monkvision/typescript-config": "5.2.
|
|
45
|
+
"@monkvision/eslint-config-base": "5.2.5",
|
|
46
|
+
"@monkvision/eslint-config-typescript": "5.2.5",
|
|
47
|
+
"@monkvision/jest-config": "5.2.5",
|
|
48
|
+
"@monkvision/prettier-config": "5.2.5",
|
|
49
|
+
"@monkvision/types": "5.2.5",
|
|
50
|
+
"@monkvision/typescript-config": "5.2.5",
|
|
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": "0e1d8f131227954e588e0cd014ff141de1060343"
|
|
88
88
|
}
|