assistsx-js 0.0.1351 → 0.0.1353

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.
@@ -325,6 +325,7 @@ export declare class AssistsX {
325
325
  longPressDuration?: number;
326
326
  }): Promise<boolean>;
327
327
  static getAppInfo(packageName: string): Promise<any>;
328
+ static getUniqueDeviceId(): any;
328
329
  static getAndroidID(): any;
329
330
  static getMacAddress(): Promise<any>;
330
331
  /**
package/dist/AssistsX.js CHANGED
@@ -448,6 +448,10 @@ export class AssistsX {
448
448
  const response = await this.asyncCall(CallMethod.getAppInfo, { args: { packageName } });
449
449
  return response.getDataOrDefault({});
450
450
  }
451
+ static getUniqueDeviceId() {
452
+ const response = this.call(CallMethod.getUniqueDeviceId);
453
+ return response.getDataOrDefault("");
454
+ }
451
455
  static getAndroidID() {
452
456
  const response = this.call(CallMethod.getAndroidID);
453
457
  return response.getDataOrDefault("");
@@ -40,5 +40,6 @@ export declare const CallMethod: {
40
40
  readonly getAppInfo: "getAppInfo";
41
41
  readonly getMacAddress: "getMacAddress";
42
42
  readonly getAndroidID: "getAndroidID";
43
+ readonly getUniqueDeviceId: "getUniqueDeviceId";
43
44
  };
44
45
  export type CallMethodType = typeof CallMethod[keyof typeof CallMethod];
@@ -41,4 +41,5 @@ export const CallMethod = {
41
41
  getAppInfo: "getAppInfo",
42
42
  getMacAddress: "getMacAddress",
43
43
  getAndroidID: "getAndroidID",
44
+ getUniqueDeviceId: "getUniqueDeviceId",
44
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.1351",
3
+ "version": "0.0.1353",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/AssistsX.ts CHANGED
@@ -522,6 +522,10 @@ export class AssistsX {
522
522
  const response = await this.asyncCall(CallMethod.getAppInfo, { args: { packageName } });
523
523
  return response.getDataOrDefault({});
524
524
  }
525
+ public static getUniqueDeviceId(): any {
526
+ const response = this.call(CallMethod.getUniqueDeviceId);
527
+ return response.getDataOrDefault("");
528
+ }
525
529
  public static getAndroidID(): any {
526
530
  const response = this.call(CallMethod.getAndroidID);
527
531
  return response.getDataOrDefault("");
package/src/CallMethod.ts CHANGED
@@ -43,6 +43,7 @@ export const CallMethod = {
43
43
  getAppInfo: "getAppInfo",
44
44
  getMacAddress: "getMacAddress",
45
45
  getAndroidID: "getAndroidID",
46
+ getUniqueDeviceId: "getUniqueDeviceId",
46
47
  } as const;
47
48
 
48
49
  // 导出类型定义