@monkvision/network 4.5.2 → 4.5.4

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.5.1",
3
+ "version": "4.5.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": "4.5.1",
32
- "@monkvision/sights": "4.5.1",
31
+ "@monkvision/common": "4.5.3",
32
+ "@monkvision/sights": "4.5.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": "4.5.1",
46
- "@monkvision/eslint-config-typescript": "4.5.1",
47
- "@monkvision/jest-config": "4.5.1",
48
- "@monkvision/prettier-config": "4.5.1",
49
- "@monkvision/types": "4.5.1",
50
- "@monkvision/typescript-config": "4.5.1",
45
+ "@monkvision/eslint-config-base": "4.5.3",
46
+ "@monkvision/eslint-config-typescript": "4.5.3",
47
+ "@monkvision/jest-config": "4.5.3",
48
+ "@monkvision/prettier-config": "4.5.3",
49
+ "@monkvision/types": "4.5.3",
50
+ "@monkvision/typescript-config": "4.5.3",
51
51
  "@types/jest": "^29.2.2",
52
52
  "@types/jsonwebtoken": "^9.0.5",
53
53
  "@types/node": "^18.11.9",
@@ -45,7 +45,7 @@ export interface GetAllInspectionsOptions {
45
45
  /**
46
46
  * The filter request parameters.
47
47
  */
48
- filters?: Record<string, string | number>;
48
+ filters?: Record<string, string | number | boolean>;
49
49
  /**
50
50
  * The pagination request parameters.
51
51
  */
@@ -55,4 +55,4 @@ export interface GetAllInspectionsOptions {
55
55
  */
56
56
  sort?: SortRequestParams;
57
57
  }
58
- export declare function mapApiAllInspectionsUrlParamsGet(options: GetAllInspectionsOptions, verbose: boolean | null): string;
58
+ export declare function mapApiAllInspectionsUrlParamsGet(options: GetAllInspectionsOptions, verbose: boolean | null, showDeleted: boolean): string;
@@ -499,13 +499,14 @@ function mapApiInspectionPost(options) {
499
499
  };
500
500
  }
501
501
  exports.mapApiInspectionPost = mapApiInspectionPost;
502
- function mapApiAllInspectionsUrlParamsGet(options, verbose) {
502
+ function mapApiAllInspectionsUrlParamsGet(options, verbose, showDeleted) {
503
503
  var _a, _b;
504
504
  var params = new URLSearchParams();
505
505
  if (verbose !== null) {
506
506
  params.append('verbose', verbose ? '1' : '0');
507
507
  }
508
- var ignoredFilters = ['verbose'];
508
+ params.append('show_deleted', showDeleted ? 'true' : 'false');
509
+ var ignoredFilters = ['verbose', 'show_deleted'];
509
510
  if (options.filters) {
510
511
  Object.entries(options.filters).forEach(function (_a) {
511
512
  var key = _a[0], value = _a[1];
@@ -181,7 +181,7 @@ function getAllInspections(options, config, dispatch) {
181
181
  switch (_a.label) {
182
182
  case 0:
183
183
  kyOptions = (0, config_1.getDefaultOptions)(config);
184
- return [4 /*yield*/, ky_1.default.get("inspections".concat((0, mappers_1.mapApiAllInspectionsUrlParamsGet)(options, true)), kyOptions)];
184
+ return [4 /*yield*/, ky_1.default.get("inspections".concat((0, mappers_1.mapApiAllInspectionsUrlParamsGet)(options, true, false)), kyOptions)];
185
185
  case 1:
186
186
  response = _a.sent();
187
187
  return [4 /*yield*/, response.json()];
@@ -217,7 +217,7 @@ function getAllInspectionsCount(options, config, _dispatch) {
217
217
  switch (_a.label) {
218
218
  case 0:
219
219
  kyOptions = (0, config_1.getDefaultOptions)(config);
220
- return [4 /*yield*/, ky_1.default.get("inspections/count".concat((0, mappers_1.mapApiAllInspectionsUrlParamsGet)(options, null)), kyOptions)];
220
+ return [4 /*yield*/, ky_1.default.get("inspections/count".concat((0, mappers_1.mapApiAllInspectionsUrlParamsGet)(options, null, false)), kyOptions)];
221
221
  case 1:
222
222
  response = _a.sent();
223
223
  return [4 /*yield*/, response.json()];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/network",
3
- "version": "4.5.2",
3
+ "version": "4.5.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": "4.5.2",
32
- "@monkvision/sights": "4.5.2",
31
+ "@monkvision/common": "4.5.4",
32
+ "@monkvision/sights": "4.5.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": "4.5.2",
46
- "@monkvision/eslint-config-typescript": "4.5.2",
47
- "@monkvision/jest-config": "4.5.2",
48
- "@monkvision/prettier-config": "4.5.2",
49
- "@monkvision/types": "4.5.2",
50
- "@monkvision/typescript-config": "4.5.2",
45
+ "@monkvision/eslint-config-base": "4.5.4",
46
+ "@monkvision/eslint-config-typescript": "4.5.4",
47
+ "@monkvision/jest-config": "4.5.4",
48
+ "@monkvision/prettier-config": "4.5.4",
49
+ "@monkvision/types": "4.5.4",
50
+ "@monkvision/typescript-config": "4.5.4",
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": "ac01573175a01bb107b121fd1636ed2bc94c9a62"
87
+ "gitHead": "3ab8df6902e23f1b966210f07e2e0827b7e6870c"
88
88
  }