@monkvision/network 5.0.2 → 5.0.3
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.0.
|
|
3
|
+
"version": "5.0.2",
|
|
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.0.
|
|
32
|
-
"@monkvision/sights": "5.0.
|
|
31
|
+
"@monkvision/common": "5.0.2",
|
|
32
|
+
"@monkvision/sights": "5.0.2",
|
|
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.0.
|
|
46
|
-
"@monkvision/eslint-config-typescript": "5.0.
|
|
47
|
-
"@monkvision/jest-config": "5.0.
|
|
48
|
-
"@monkvision/prettier-config": "5.0.
|
|
49
|
-
"@monkvision/types": "5.0.
|
|
50
|
-
"@monkvision/typescript-config": "5.0.
|
|
45
|
+
"@monkvision/eslint-config-base": "5.0.2",
|
|
46
|
+
"@monkvision/eslint-config-typescript": "5.0.2",
|
|
47
|
+
"@monkvision/jest-config": "5.0.2",
|
|
48
|
+
"@monkvision/prettier-config": "5.0.2",
|
|
49
|
+
"@monkvision/types": "5.0.2",
|
|
50
|
+
"@monkvision/typescript-config": "5.0.2",
|
|
51
51
|
"@types/jest": "^29.2.2",
|
|
52
52
|
"@types/jsonwebtoken": "^9.0.5",
|
|
53
53
|
"@types/node": "^18.11.9",
|
|
@@ -147,7 +147,9 @@ var MULTIPART_KEY_JSON = 'json';
|
|
|
147
147
|
function createBeautyShotImageData(options, filetype) {
|
|
148
148
|
var _a, _b;
|
|
149
149
|
var filename = "".concat(options.sightId, "-").concat(options.inspectionId, "-").concat(Date.now(), ".").concat(filetype);
|
|
150
|
-
var tasks = options.tasks.filter(function (task) {
|
|
150
|
+
var tasks = options.tasks.filter(function (task) {
|
|
151
|
+
return ![types_1.TaskName.COMPLIANCES, types_1.TaskName.HUMAN_IN_THE_LOOP, types_1.TaskName.IMAGES_OCR].includes(task);
|
|
152
|
+
});
|
|
151
153
|
tasks.push({
|
|
152
154
|
name: types_1.TaskName.COMPLIANCES,
|
|
153
155
|
image_details: { sight_id: options.sightId },
|
|
@@ -159,6 +161,12 @@ function createBeautyShotImageData(options, filetype) {
|
|
|
159
161
|
image_details: { sight_label: sights_1.sights[options.sightId].label },
|
|
160
162
|
});
|
|
161
163
|
}
|
|
164
|
+
if (options.tasks.includes(types_1.TaskName.IMAGES_OCR)) {
|
|
165
|
+
tasks.push({
|
|
166
|
+
name: types_1.TaskName.IMAGES_OCR,
|
|
167
|
+
image_details: { image_type: 'VIN' },
|
|
168
|
+
});
|
|
169
|
+
}
|
|
162
170
|
var body = {
|
|
163
171
|
acquisition: {
|
|
164
172
|
strategy: 'upload_multipart_form_keys',
|
|
@@ -3,7 +3,7 @@ import type { ApiAdditionalData, ApiCenterOnElement, ApiLabelPrediction } from '
|
|
|
3
3
|
import type { ApiRenderedOutputs } from './renderedOutput';
|
|
4
4
|
import type { ApiImageComplianceResults } from './compliance';
|
|
5
5
|
import type { ApiViews } from './view';
|
|
6
|
-
import { ApiBusinessTaskName, ApiHinlTaskPost, ApiImageCompliancesTaskPost } from './task';
|
|
6
|
+
import { ApiBusinessTaskName, ApiHinlTaskPost, ApiImageCompliancesTaskPost, ApiImagesOCRTaskPost } from './task';
|
|
7
7
|
export type ApiImageType = 'unknown' | 'beauty_shot' | 'close_up';
|
|
8
8
|
export type ApiImageSubType = 'close_up_part' | 'close_up_damage';
|
|
9
9
|
export interface ApiRelatedImage {
|
|
@@ -63,7 +63,7 @@ export interface ApiCompliance {
|
|
|
63
63
|
coverage_360?: ApiCoverage360Parameters;
|
|
64
64
|
zoom_level?: ApiComplianceParameters;
|
|
65
65
|
}
|
|
66
|
-
export type ApiImagePostTask = ApiBusinessTaskName | ApiImageCompliancesTaskPost | ApiHinlTaskPost;
|
|
66
|
+
export type ApiImagePostTask = Omit<ApiBusinessTaskName, 'repair_estimate' | 'images_ocr' | 'image_editing' | 'inspection_pdf' | 'pricing' | 'zoom_level' | 'coverage_360' | 'iqa_compliance' | 'human_in_the_loop'> | ApiImageCompliancesTaskPost | ApiHinlTaskPost | ApiImagesOCRTaskPost;
|
|
67
67
|
export interface ApiImagePost {
|
|
68
68
|
acquisition: ApiAcquisition;
|
|
69
69
|
tasks?: ApiImagePostTask[];
|
|
@@ -2,7 +2,7 @@ import { ApiPricingMethodology } from './pricingV2';
|
|
|
2
2
|
export interface ApiImageInTask {
|
|
3
3
|
image_id: string;
|
|
4
4
|
}
|
|
5
|
-
export type ApiBusinessTaskName = 'damage_detection' | 'wheel_analysis' | 'repair_estimate' | 'images_ocr' | 'image_editing' | 'inspection_pdf' | 'pricing' | 'dashboard_ocr' | 'zoom_level' | 'coverage_360' | 'iqa_compliance' | 'compliances';
|
|
5
|
+
export type ApiBusinessTaskName = 'damage_detection' | 'wheel_analysis' | 'repair_estimate' | 'images_ocr' | 'image_editing' | 'inspection_pdf' | 'pricing' | 'dashboard_ocr' | 'zoom_level' | 'coverage_360' | 'iqa_compliance' | 'compliances' | 'human_in_the_loop';
|
|
6
6
|
export interface ApiImageCompliancesDetails {
|
|
7
7
|
sight_id: string;
|
|
8
8
|
}
|
|
@@ -18,6 +18,13 @@ export interface ApiHinlTaskPost {
|
|
|
18
18
|
name: 'human_in_the_loop';
|
|
19
19
|
image_details: ApiHinlImageDetails;
|
|
20
20
|
}
|
|
21
|
+
export interface ApiImagesOCRImageDetails {
|
|
22
|
+
image_type: 'VIN';
|
|
23
|
+
}
|
|
24
|
+
export interface ApiImagesOCRTaskPost {
|
|
25
|
+
name: 'images_ocr';
|
|
26
|
+
image_details: ApiImagesOCRImageDetails;
|
|
27
|
+
}
|
|
21
28
|
export type ApiTaskProgressStatus = 'NOT_STARTED' | 'TODO' | 'IN_PROGRESS' | 'DONE' | 'ERROR' | 'ABORTED' | 'VALIDATED';
|
|
22
29
|
export interface ApiTaskGet {
|
|
23
30
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkvision/network",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
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.0.
|
|
32
|
-
"@monkvision/sights": "5.0.
|
|
31
|
+
"@monkvision/common": "5.0.3",
|
|
32
|
+
"@monkvision/sights": "5.0.3",
|
|
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.0.
|
|
46
|
-
"@monkvision/eslint-config-typescript": "5.0.
|
|
47
|
-
"@monkvision/jest-config": "5.0.
|
|
48
|
-
"@monkvision/prettier-config": "5.0.
|
|
49
|
-
"@monkvision/types": "5.0.
|
|
50
|
-
"@monkvision/typescript-config": "5.0.
|
|
45
|
+
"@monkvision/eslint-config-base": "5.0.3",
|
|
46
|
+
"@monkvision/eslint-config-typescript": "5.0.3",
|
|
47
|
+
"@monkvision/jest-config": "5.0.3",
|
|
48
|
+
"@monkvision/prettier-config": "5.0.3",
|
|
49
|
+
"@monkvision/types": "5.0.3",
|
|
50
|
+
"@monkvision/typescript-config": "5.0.3",
|
|
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": "d7576e6acbe6c891822d9eafaa838414175f64b4"
|
|
88
88
|
}
|