assistsx-js 0.0.2022 → 0.0.2023

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.
@@ -384,6 +384,7 @@ export declare class AssistsX {
384
384
  static getAndroidID(): any;
385
385
  static getMacAddress(): Promise<any>;
386
386
  static getDeviceInfo(): Promise<any>;
387
+ static getNetworkInfo(): Promise<any>;
387
388
  static setAccessibilityEventFilters(value: AccessibilityEventFilter[]): Promise<any>;
388
389
  static addAccessibilityEventFilter(value: AccessibilityEventFilter): Promise<any>;
389
390
  /**
package/dist/AssistsX.js CHANGED
@@ -570,6 +570,10 @@ export class AssistsX {
570
570
  const response = await this.asyncCall(CallMethod.getDeviceInfo);
571
571
  return response.getDataOrDefault({});
572
572
  }
573
+ static async getNetworkInfo() {
574
+ const response = await this.asyncCall(CallMethod.getNetworkInfo);
575
+ return response.getDataOrDefault({});
576
+ }
573
577
  static async setAccessibilityEventFilters(value) {
574
578
  const response = this.call(CallMethod.setAccessibilityEventFilters, {
575
579
  args: { value },
@@ -46,5 +46,6 @@ export declare const CallMethod: {
46
46
  readonly setAccessibilityEventFilters: "setAccessibilityEventFilters";
47
47
  readonly httpRequest: "httpRequest";
48
48
  readonly getDeviceInfo: "getDeviceInfo";
49
+ readonly getNetworkInfo: "getNetworkInfo";
49
50
  };
50
51
  export type CallMethodType = (typeof CallMethod)[keyof typeof CallMethod];
@@ -47,4 +47,5 @@ export const CallMethod = {
47
47
  setAccessibilityEventFilters: "setAccessibilityEventFilters",
48
48
  httpRequest: "httpRequest",
49
49
  getDeviceInfo: "getDeviceInfo",
50
+ getNetworkInfo: "getNetworkInfo",
50
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.2022",
3
+ "version": "0.0.2023",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/AssistsX.ts CHANGED
@@ -824,6 +824,10 @@ export class AssistsX {
824
824
  const response = await this.asyncCall(CallMethod.getDeviceInfo);
825
825
  return response.getDataOrDefault({});
826
826
  }
827
+ public static async getNetworkInfo(): Promise<any> {
828
+ const response = await this.asyncCall(CallMethod.getNetworkInfo);
829
+ return response.getDataOrDefault({});
830
+ }
827
831
  public static async setAccessibilityEventFilters(
828
832
  value: AccessibilityEventFilter[]
829
833
  ): Promise<any> {
package/src/CallMethod.ts CHANGED
@@ -51,6 +51,7 @@ export const CallMethod = {
51
51
 
52
52
  httpRequest: "httpRequest",
53
53
  getDeviceInfo: "getDeviceInfo",
54
+ getNetworkInfo: "getNetworkInfo",
54
55
  } as const;
55
56
 
56
57
  // 导出类型定义