@monkvision/network 5.1.7 → 5.1.8
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.1.
|
|
3
|
+
"version": "5.1.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": "5.1.
|
|
32
|
-
"@monkvision/sights": "5.1.
|
|
31
|
+
"@monkvision/common": "5.1.7",
|
|
32
|
+
"@monkvision/sights": "5.1.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": "5.1.
|
|
46
|
-
"@monkvision/eslint-config-typescript": "5.1.
|
|
47
|
-
"@monkvision/jest-config": "5.1.
|
|
48
|
-
"@monkvision/prettier-config": "5.1.
|
|
49
|
-
"@monkvision/types": "5.1.
|
|
50
|
-
"@monkvision/typescript-config": "5.1.
|
|
45
|
+
"@monkvision/eslint-config-base": "5.1.7",
|
|
46
|
+
"@monkvision/eslint-config-typescript": "5.1.7",
|
|
47
|
+
"@monkvision/jest-config": "5.1.7",
|
|
48
|
+
"@monkvision/prettier-config": "5.1.7",
|
|
49
|
+
"@monkvision/types": "5.1.7",
|
|
50
|
+
"@monkvision/typescript-config": "5.1.7",
|
|
51
51
|
"@types/jest": "^29.2.2",
|
|
52
52
|
"@types/jsonwebtoken": "^9.0.5",
|
|
53
53
|
"@types/node": "^18.11.9",
|
|
@@ -56,3 +56,4 @@ export interface GetAllInspectionsOptions {
|
|
|
56
56
|
sort?: SortRequestParams;
|
|
57
57
|
}
|
|
58
58
|
export declare function mapApiAllInspectionsUrlParamsGet(options: GetAllInspectionsOptions, verbose: boolean | null, showDeleted: boolean): string;
|
|
59
|
+
export declare function mapApiInspectionUrlParamsGet(light?: boolean): string;
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.mapApiAllInspectionsUrlParamsGet = exports.mapApiInspectionPost = exports.mapApiInspectionGet = exports.mapApiAllInspectionsVerboseGet = void 0;
|
|
14
|
+
exports.mapApiInspectionUrlParamsGet = exports.mapApiAllInspectionsUrlParamsGet = exports.mapApiInspectionPost = exports.mapApiInspectionGet = exports.mapApiAllInspectionsVerboseGet = void 0;
|
|
15
15
|
var types_1 = require("@monkvision/types");
|
|
16
16
|
var mappers_1 = require("../image/mappers");
|
|
17
17
|
var config_1 = require("../config");
|
|
@@ -552,3 +552,10 @@ function mapApiAllInspectionsUrlParamsGet(options, verbose, showDeleted) {
|
|
|
552
552
|
return "".concat(paramsStr.length > 0 ? '?' : '').concat(paramsStr);
|
|
553
553
|
}
|
|
554
554
|
exports.mapApiAllInspectionsUrlParamsGet = mapApiAllInspectionsUrlParamsGet;
|
|
555
|
+
function mapApiInspectionUrlParamsGet(light) {
|
|
556
|
+
if (!light) {
|
|
557
|
+
return '';
|
|
558
|
+
}
|
|
559
|
+
return '?verbose=light';
|
|
560
|
+
}
|
|
561
|
+
exports.mapApiInspectionUrlParamsGet = mapApiInspectionUrlParamsGet;
|
|
@@ -17,6 +17,13 @@ export interface GetInspectionOptions {
|
|
|
17
17
|
* Additional options used to configure the compliance locally.
|
|
18
18
|
*/
|
|
19
19
|
compliance?: ComplianceOptions;
|
|
20
|
+
/**
|
|
21
|
+
* If true, polygons are excluded from the inspection response,
|
|
22
|
+
* reducing payload size and improving request speed.
|
|
23
|
+
*
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
light?: boolean;
|
|
20
27
|
}
|
|
21
28
|
/**
|
|
22
29
|
* Type definition for the result of the `getInspection` API request.
|
|
@@ -70,7 +70,7 @@ function getInspection(options, config, dispatch) {
|
|
|
70
70
|
switch (_a.label) {
|
|
71
71
|
case 0:
|
|
72
72
|
kyOptions = (0, config_1.getDefaultOptions)(config);
|
|
73
|
-
return [4 /*yield*/, ky_1.default.get("inspections/".concat(options.id), kyOptions)];
|
|
73
|
+
return [4 /*yield*/, ky_1.default.get("inspections/".concat(options.id).concat((0, mappers_1.mapApiInspectionUrlParamsGet)(options.light)), kyOptions)];
|
|
74
74
|
case 1:
|
|
75
75
|
response = _a.sent();
|
|
76
76
|
return [4 /*yield*/, response.json()];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkvision/network",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.8",
|
|
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.1.
|
|
32
|
-
"@monkvision/sights": "5.1.
|
|
31
|
+
"@monkvision/common": "5.1.8",
|
|
32
|
+
"@monkvision/sights": "5.1.8",
|
|
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.1.
|
|
46
|
-
"@monkvision/eslint-config-typescript": "5.1.
|
|
47
|
-
"@monkvision/jest-config": "5.1.
|
|
48
|
-
"@monkvision/prettier-config": "5.1.
|
|
49
|
-
"@monkvision/types": "5.1.
|
|
50
|
-
"@monkvision/typescript-config": "5.1.
|
|
45
|
+
"@monkvision/eslint-config-base": "5.1.8",
|
|
46
|
+
"@monkvision/eslint-config-typescript": "5.1.8",
|
|
47
|
+
"@monkvision/jest-config": "5.1.8",
|
|
48
|
+
"@monkvision/prettier-config": "5.1.8",
|
|
49
|
+
"@monkvision/types": "5.1.8",
|
|
50
|
+
"@monkvision/typescript-config": "5.1.8",
|
|
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": "ce18560b389d2fd97602f0730c96872f5ff93421"
|
|
88
88
|
}
|