@ray-js/ray-ipc-utils 1.1.12-beta.2 → 1.1.13-beta.1

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.
@@ -67,9 +67,9 @@ const api = function (a, postData) {
67
67
  * @description: 通用 IPC 标准能力接口基础封装
68
68
  */
69
69
 
70
- const wrapIpcApiCall = async (apiFunc, params) => {
70
+ const wrapIpcApiCall = async (apiFunc, params, options) => {
71
71
  try {
72
- const res = await apiFunc(params);
72
+ const res = await apiFunc(params, options);
73
73
  return {
74
74
  code: 0,
75
75
  data: res
@@ -92,6 +92,9 @@ const wrapIpcApiCall = async (apiFunc, params) => {
92
92
  export const getIpcConfigInfo = async deviceId => {
93
93
  return wrapIpcApiCall(getIpcRtcConfig, {
94
94
  devId: deviceId
95
+ }, {
96
+ toastError: false,
97
+ transError: false
95
98
  });
96
99
  };
97
100
 
@@ -308,6 +311,9 @@ export const getCameraConfigInfo = async function (deviceId) {
308
311
  export const getCollectionPointsInfo = async deviceId => {
309
312
  return wrapIpcApiCall(getIpcPointList, {
310
313
  devId: deviceId
314
+ }, {
315
+ toastError: false,
316
+ transError: false
311
317
  });
312
318
  };
313
319
 
@@ -343,6 +349,9 @@ export const updateCollectionPointsInfo = async (deviceId, id, name) => {
343
349
  devId: deviceId,
344
350
  id,
345
351
  name
352
+ }, {
353
+ toastError: false,
354
+ transError: false
346
355
  });
347
356
  };
348
357
 
@@ -511,7 +520,10 @@ export const getServiceUrl = async function (deviceId, serveType) {
511
520
  params.categoryCode = '';
512
521
  params.path = 'pages/aiInspection/reportDetails/index';
513
522
  }
514
- const result = await wrapIpcApiCall(getVasUrlInfo, params);
523
+ const result = await wrapIpcApiCall(getVasUrlInfo, params, {
524
+ toastError: false,
525
+ transError: false
526
+ });
515
527
  if ((result === null || result === void 0 ? void 0 : result.code) === -1) {
516
528
  return result;
517
529
  }
@@ -553,6 +565,7 @@ export const getServiceIsOpen = async function (deviceId, categoryCode) {
553
565
  uuid
554
566
  }
555
567
  } = await getDevInfo(deviceId);
568
+ console.log(uuid, homeId);
556
569
  const res = await getDeviceDetailsById(_objectSpread({
557
570
  uuid,
558
571
  homeId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray-ipc-utils",
3
- "version": "1.1.12-beta.2",
3
+ "version": "1.1.13-beta.1",
4
4
  "description": "IPC 工具库",
5
5
  "main": "lib/index",
6
6
  "files": [
@@ -32,7 +32,7 @@
32
32
  "test": "yarn jest"
33
33
  },
34
34
  "peerDependencies": {
35
- "@ray-js/ray": "^1.7.14"
35
+ "@ray-js/ray": "^1.7.60"
36
36
  },
37
37
  "dependencies": {
38
38
  "@ray-js/panel-sdk": "^1.13.1",
@@ -42,7 +42,7 @@
42
42
  "@commitlint/cli": "^7.2.1",
43
43
  "@commitlint/config-conventional": "^9.0.1",
44
44
  "@ray-js/cli": "^1.7.14",
45
- "@ray-js/ray": "^1.7.14",
45
+ "@ray-js/ray": "^1.7.60",
46
46
  "@testing-library/react-hooks": "^8.0.1",
47
47
  "@types/jest": "^29.5.14",
48
48
  "core-js": "^3.19.1",