droidline 0.1.10 → 0.1.12
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/generated.d.ts +1138 -12
- package/dist/generated.js +43 -4
- package/package.json +1 -1
package/dist/generated.js
CHANGED
|
@@ -78,25 +78,55 @@ export class DeviceCommands {
|
|
|
78
78
|
return this._run("record", "none", collect("record", args, ["on"], ["minutes"]));
|
|
79
79
|
}
|
|
80
80
|
async find_image(...args) {
|
|
81
|
-
const params = collect("find_image", args, ["image"], ["threshold", "timeout"]);
|
|
81
|
+
const params = collect("find_image", args, ["image"], ["threshold", "timeout", "region", "scales", "color"]);
|
|
82
82
|
params["image"] = await this._loadImage(params["image"]);
|
|
83
83
|
return this._run("find_image", "fields", params);
|
|
84
84
|
}
|
|
85
85
|
async findImage(...args) {
|
|
86
|
-
const params = collect("find_image", args, ["image"], ["threshold", "timeout"]);
|
|
86
|
+
const params = collect("find_image", args, ["image"], ["threshold", "timeout", "region", "scales", "color"]);
|
|
87
87
|
params["image"] = await this._loadImage(params["image"]);
|
|
88
88
|
return this._run("find_image", "fields", params);
|
|
89
89
|
}
|
|
90
90
|
async tap_image(...args) {
|
|
91
|
-
const params = collect("tap_image", args, ["image"], ["threshold", "timeout"]);
|
|
91
|
+
const params = collect("tap_image", args, ["image"], ["threshold", "timeout", "region", "scales", "color"]);
|
|
92
92
|
params["image"] = await this._loadImage(params["image"]);
|
|
93
93
|
return this._run("tap_image", "fields", params);
|
|
94
94
|
}
|
|
95
95
|
async tapImage(...args) {
|
|
96
|
-
const params = collect("tap_image", args, ["image"], ["threshold", "timeout"]);
|
|
96
|
+
const params = collect("tap_image", args, ["image"], ["threshold", "timeout", "region", "scales", "color"]);
|
|
97
97
|
params["image"] = await this._loadImage(params["image"]);
|
|
98
98
|
return this._run("tap_image", "fields", params);
|
|
99
99
|
}
|
|
100
|
+
async image_exists(...args) {
|
|
101
|
+
const params = collect("image_exists", args, ["image"], ["threshold", "region", "scales", "color"]);
|
|
102
|
+
params["image"] = await this._loadImage(params["image"]);
|
|
103
|
+
return this._run("image_exists", "value", params);
|
|
104
|
+
}
|
|
105
|
+
async imageExists(...args) {
|
|
106
|
+
const params = collect("image_exists", args, ["image"], ["threshold", "region", "scales", "color"]);
|
|
107
|
+
params["image"] = await this._loadImage(params["image"]);
|
|
108
|
+
return this._run("image_exists", "value", params);
|
|
109
|
+
}
|
|
110
|
+
async find_images(...args) {
|
|
111
|
+
const params = collect("find_images", args, ["image"], ["threshold", "timeout", "region", "scales", "color", "max"]);
|
|
112
|
+
params["image"] = await this._loadImage(params["image"]);
|
|
113
|
+
return this._run("find_images", "value", params);
|
|
114
|
+
}
|
|
115
|
+
async findImages(...args) {
|
|
116
|
+
const params = collect("find_images", args, ["image"], ["threshold", "timeout", "region", "scales", "color", "max"]);
|
|
117
|
+
params["image"] = await this._loadImage(params["image"]);
|
|
118
|
+
return this._run("find_images", "value", params);
|
|
119
|
+
}
|
|
120
|
+
async wait_image_gone(...args) {
|
|
121
|
+
const params = collect("wait_image_gone", args, ["image"], ["threshold", "timeout", "region", "scales", "color"]);
|
|
122
|
+
params["image"] = await this._loadImage(params["image"]);
|
|
123
|
+
return this._run("wait_image_gone", "fields", params);
|
|
124
|
+
}
|
|
125
|
+
async waitImageGone(...args) {
|
|
126
|
+
const params = collect("wait_image_gone", args, ["image"], ["threshold", "timeout", "region", "scales", "color"]);
|
|
127
|
+
params["image"] = await this._loadImage(params["image"]);
|
|
128
|
+
return this._run("wait_image_gone", "fields", params);
|
|
129
|
+
}
|
|
100
130
|
async ocr(...args) {
|
|
101
131
|
return this._run("ocr", "fields", collect("ocr", args, [], ["lang"]));
|
|
102
132
|
}
|
|
@@ -355,6 +385,15 @@ export class DeviceCommands {
|
|
|
355
385
|
async notifyFilter(...args) {
|
|
356
386
|
return this._run("notify_filter", "value", collect("notify_filter", args, [], ["packages"]));
|
|
357
387
|
}
|
|
388
|
+
async sms(...args) {
|
|
389
|
+
return this._run("sms", "value", collect("sms", args, [], ["box", "address", "contains", "within", "max"]));
|
|
390
|
+
}
|
|
391
|
+
async calls(...args) {
|
|
392
|
+
return this._run("calls", "value", collect("calls", args, [], ["type", "number", "within", "max"]));
|
|
393
|
+
}
|
|
394
|
+
async contacts(...args) {
|
|
395
|
+
return this._run("contacts", "value", collect("contacts", args, [], ["query", "max"]));
|
|
396
|
+
}
|
|
358
397
|
}
|
|
359
398
|
/** Commands the PC server answers itself. Droidline extends this and implements _run. */
|
|
360
399
|
export class ClientCommands extends EventEmitter {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "droidline",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Android automation from Node.js: test your apps on real phones, script the tasks you repeat and run many phones at once. No ADB, no USB cable, no root.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|