epii-types-rpa 1.0.4 → 1.0.7
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/package.json +1 -1
- package/rpa.d.ts +7 -1
package/package.json
CHANGED
package/rpa.d.ts
CHANGED
|
@@ -13,8 +13,10 @@ namespace rpa {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
namespace ajax {
|
|
16
|
-
function post(url:String, data:Object =
|
|
16
|
+
function post(url:String, data:Object|String = "", headers:Object = {}):Promise;
|
|
17
17
|
function get(url:String, headers:Object = {}):Promise;
|
|
18
|
+
function getBase64(url:String, headers:Object = {}):Promise;
|
|
19
|
+
function download(url:String, path:String):Promise
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
namespace console {
|
|
@@ -32,6 +34,9 @@ namespace rpa {
|
|
|
32
34
|
function download(url:String, path:String):Promise;
|
|
33
35
|
function sleep(time:Number):Promise;
|
|
34
36
|
function setInterval(callback:Function,interval:Number):Promise;
|
|
37
|
+
function writeFile(filePath:String, content:String, isBase64 :boolean= false):Promise;
|
|
38
|
+
function forEach(list:Array, callback:Function):Promise;
|
|
39
|
+
function mkdir(path:String):Promise
|
|
35
40
|
}
|
|
36
41
|
namespace page {
|
|
37
42
|
|
|
@@ -44,6 +49,7 @@ namespace rpa {
|
|
|
44
49
|
function waitForTimeout(timeout);
|
|
45
50
|
function script(func, data = {});
|
|
46
51
|
function newIframeAndEvaluate(url:String,func:Function):Promise;
|
|
52
|
+
function download(url:String, path:String):Promise
|
|
47
53
|
|
|
48
54
|
}
|
|
49
55
|
namespace browser {
|