assistsx-js 0.0.12 → 0.0.131

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.
@@ -53,6 +53,8 @@ export declare class AssistsX {
53
53
  * @returns 截图路径数组
54
54
  */
55
55
  static takeScreenshotNodes(nodes: Node[], overlayHiddenScreenshotDelayMillis?: number): Promise<string[]>;
56
+ static scanQR(): Promise<string>;
57
+ static addWebFloatingWindow(url: string): Promise<any>;
56
58
  /**
57
59
  * 点击节点
58
60
  * @param node 要点击的节点
package/dist/AssistsX.js CHANGED
@@ -114,6 +114,16 @@ export class AssistsX {
114
114
  const data = response.getDataOrDefault("");
115
115
  return data.images;
116
116
  }
117
+ static async scanQR() {
118
+ const response = await this.asyncCall(CallMethod.scanQR);
119
+ const data = response.getDataOrDefault({ value: "" });
120
+ return data.value;
121
+ }
122
+ static async addWebFloatingWindow(url) {
123
+ const response = await this.asyncCall(CallMethod.addWebFloatingWindow, { args: { url } });
124
+ const data = response.getDataOrDefault({});
125
+ return data;
126
+ }
117
127
  /**
118
128
  * 点击节点
119
129
  * @param node 要点击的节点
@@ -34,5 +34,7 @@ export declare const CallMethod: {
34
34
  readonly nodeGestureClickByDouble: "nodeGestureClickByDouble";
35
35
  readonly scrollBackward: "scrollBackward";
36
36
  readonly setOverlayFlags: "setOverlayFlags";
37
+ readonly scanQR: "scanQR";
38
+ readonly addWebFloatingWindow: "addWebFloatingWindow";
37
39
  };
38
40
  export type CallMethodType = typeof CallMethod[keyof typeof CallMethod];
@@ -34,5 +34,7 @@ export const CallMethod = {
34
34
  nodeGestureClick: "nodeGestureClick",
35
35
  nodeGestureClickByDouble: "nodeGestureClickByDouble",
36
36
  scrollBackward: "scrollBackward",
37
- setOverlayFlags: "setOverlayFlags"
37
+ setOverlayFlags: "setOverlayFlags",
38
+ scanQR: "scanQR",
39
+ addWebFloatingWindow: "addWebFloatingWindow"
38
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.12",
3
+ "version": "0.0.131",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/AssistsX.ts CHANGED
@@ -131,6 +131,16 @@ export class AssistsX {
131
131
  const data = response.getDataOrDefault("");
132
132
  return data.images;
133
133
  }
134
+ public static async scanQR(): Promise<string> {
135
+ const response = await this.asyncCall(CallMethod.scanQR);
136
+ const data = response.getDataOrDefault({ value: "" });
137
+ return data.value;
138
+ }
139
+ public static async addWebFloatingWindow(url: string): Promise<any> {
140
+ const response = await this.asyncCall(CallMethod.addWebFloatingWindow, { args: { url } });
141
+ const data = response.getDataOrDefault({});
142
+ return data;
143
+ }
134
144
 
135
145
  /**
136
146
  * 点击节点
package/src/CallMethod.ts CHANGED
@@ -34,7 +34,9 @@ export const CallMethod = {
34
34
  nodeGestureClick: "nodeGestureClick",
35
35
  nodeGestureClickByDouble: "nodeGestureClickByDouble",
36
36
  scrollBackward: "scrollBackward",
37
- setOverlayFlags: "setOverlayFlags"
37
+ setOverlayFlags: "setOverlayFlags",
38
+ scanQR: "scanQR",
39
+ addWebFloatingWindow: "addWebFloatingWindow"
38
40
  } as const;
39
41
 
40
42
  // 导出类型定义