assistsx-js 0.0.1352 → 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.
- package/dist/AssistsX.d.ts +1 -0
- package/dist/AssistsX.js +4 -0
- package/dist/CallMethod.d.ts +1 -0
- package/dist/CallMethod.js +1 -0
- package/package.json +1 -1
- package/src/AssistsX.ts +4 -0
- package/src/CallMethod.ts +1 -0
package/dist/AssistsX.d.ts
CHANGED
|
@@ -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("");
|
package/dist/CallMethod.d.ts
CHANGED
|
@@ -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];
|
package/dist/CallMethod.js
CHANGED
package/package.json
CHANGED
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("");
|