skyeye-sdk-js 1.4.10 → 1.4.11

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.
@@ -7,6 +7,7 @@ import { GetRunningStateResponse } from './response/GetRunningStateResponse';
7
7
  import { Register } from './models/Register';
8
8
  import { GetDeviceTreeResponse } from './response/GetDeviceTreeResponse';
9
9
  import { GetAllDeviceInfoResponse } from './response/GetAllDeviceInfoResponse';
10
+ import { GetAllDeviceInfoResponse2 } from './response/GetAllDeviceInfoResponse2';
10
11
  import { GetRamAddrInfoResponse } from './response/GetRamAddrInfoResponse';
11
12
  import { Device } from './models/Device';
12
13
  import { FaultInjectType } from './models/FaultInjectType';
@@ -68,6 +69,7 @@ export declare class SkyEyeClient extends JSONTransmissionClient {
68
69
  getModuleStatus(): Promise<BaseResponse>;
69
70
  getCurrentRunningState(): Promise<GetRunningStateResponse>;
70
71
  getAllDeviceInfo(): Promise<GetAllDeviceInfoResponse>;
72
+ getAllDeviceInfo2(): Promise<GetAllDeviceInfoResponse2>;
71
73
  getRamAddrInfo(machName: string, addr: string): Promise<GetRamAddrInfoResponse>;
72
74
  setRamFaultInjectDefault(device: Device, addr: string, bit: string, mode: FaultInjectType): Promise<any>;
73
75
  setRamFaultInject(boardName: string, deviceName: string, addr: string, bit: string, mode: FaultInjectType): Promise<any>;
@@ -45,6 +45,7 @@ const Register_1 = require("./models/Register");
45
45
  const GetDeviceTreeResponse_1 = require("./response/GetDeviceTreeResponse");
46
46
  const ParseBoardUtils_1 = require("./utils/ParseBoardUtils");
47
47
  const GetAllDeviceInfoResponse_1 = require("./response/GetAllDeviceInfoResponse");
48
+ const GetAllDeviceInfoResponse2_1 = require("./response/GetAllDeviceInfoResponse2");
48
49
  const GetRamAddrInfoResponse_1 = require("./response/GetRamAddrInfoResponse");
49
50
  const Device_1 = require("./models/Device");
50
51
  const FaultInjectType_1 = require("./models/FaultInjectType");
@@ -887,6 +888,26 @@ class SkyEyeClient extends skyeye_rpc_grpc_pb_1.JSONTransmissionClient {
887
888
  return response;
888
889
  });
889
890
  }
891
+ getAllDeviceInfo2() {
892
+ return __awaiter(this, void 0, void 0, function* () {
893
+ const response = new GetAllDeviceInfoResponse2_1.GetAllDeviceInfoResponse2();
894
+ try {
895
+ const call = yield this.call(RequestFactory_1.RequestFactory.getInstance().getAllDeviceInfo());
896
+ if (call != null) {
897
+ response.isSuccess = true;
898
+ response.result = call;
899
+ }
900
+ else {
901
+ throw new SkyEyeSDKException_1.SkyEyeSDKException(String(call.error));
902
+ }
903
+ }
904
+ catch (error) {
905
+ console.error("Error during getAllDeviceInfo:", error);
906
+ throw error;
907
+ }
908
+ return response;
909
+ });
910
+ }
890
911
  getRamAddrInfo(machName, addr) {
891
912
  return __awaiter(this, void 0, void 0, function* () {
892
913
  const response = new GetRamAddrInfoResponse_1.GetRamAddrInfoResponse();
@@ -0,0 +1,4 @@
1
+ import { BaseResponse } from "./BaseResponse";
2
+ export declare class GetAllDeviceInfoResponse2 extends BaseResponse {
3
+ result: object;
4
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAllDeviceInfoResponse2 = void 0;
4
+ const BaseResponse_1 = require("./BaseResponse");
5
+ class GetAllDeviceInfoResponse2 extends BaseResponse_1.BaseResponse {
6
+ }
7
+ exports.GetAllDeviceInfoResponse2 = GetAllDeviceInfoResponse2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skyeye-sdk-js",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "description": "gRPC to SkyEye",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,6 +12,7 @@ import { Register } from './models/Register';
12
12
  import { GetDeviceTreeResponse } from './response/GetDeviceTreeResponse';
13
13
  import { ParseBoardUtils } from './utils/ParseBoardUtils';
14
14
  import { GetAllDeviceInfoResponse } from './response/GetAllDeviceInfoResponse';
15
+ import { GetAllDeviceInfoResponse2 } from './response/GetAllDeviceInfoResponse2';
15
16
  import { GetRamAddrInfoResponse } from './response/GetRamAddrInfoResponse';
16
17
  import { Device } from './models/Device';
17
18
  import { FaultInjectType } from './models/FaultInjectType';
@@ -803,6 +804,24 @@ export class SkyEyeClient extends JSONTransmissionClient {
803
804
  }
804
805
 
805
806
 
807
+ public async getAllDeviceInfo2() {
808
+ const response = new GetAllDeviceInfoResponse2();
809
+ try {
810
+ const call = await this.call(RequestFactory.getInstance().getAllDeviceInfo());
811
+ if (call != null) {
812
+ response.isSuccess = true;
813
+ response.result = call;
814
+ } else {
815
+ throw new SkyEyeSDKException(String(call.error));
816
+ }
817
+ } catch (error) {
818
+ console.error("Error during getAllDeviceInfo:", error);
819
+ throw error;
820
+ }
821
+ return response;
822
+ }
823
+
824
+
806
825
  public async getRamAddrInfo(machName: string, addr: string) {
807
826
  const response = new GetRamAddrInfoResponse();
808
827
  try {
@@ -0,0 +1,6 @@
1
+ import { Board } from "../models/Board";
2
+ import { BaseResponse } from "./BaseResponse";
3
+
4
+ export class GetAllDeviceInfoResponse2 extends BaseResponse{
5
+ result: object;
6
+ }