epii-types-rpa 1.0.7 → 1.0.9
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 +18 -2
package/package.json
CHANGED
package/rpa.d.ts
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
namespace rpa {
|
|
2
|
+
function args(key,dvalue);
|
|
3
|
+
function args(key);
|
|
2
4
|
function require(path:String):Promise;
|
|
3
5
|
function success(data:any, exit:boolean);
|
|
4
6
|
function exec(script:String, params:Object = {});
|
|
5
7
|
function execPuppeteer(script:String, params:Object = {});
|
|
6
8
|
function error(msg:String, code:number = - 1);
|
|
7
9
|
function exit();
|
|
10
|
+
function restartAndExecRpa();
|
|
11
|
+
function restartRpa();
|
|
12
|
+
|
|
8
13
|
function onDialog(callback:Function);
|
|
9
14
|
namespace http {
|
|
10
15
|
function get(url:String):Promise;
|
|
11
16
|
function post(url:String, data:Object):Promise;
|
|
12
17
|
function getBase64(url:String):Promise;
|
|
18
|
+
namespace api {
|
|
19
|
+
function post(url:String, data:Object):Promise;
|
|
20
|
+
}
|
|
13
21
|
}
|
|
14
22
|
|
|
15
23
|
namespace ajax {
|
|
@@ -36,7 +44,9 @@ namespace rpa {
|
|
|
36
44
|
function setInterval(callback:Function,interval:Number):Promise;
|
|
37
45
|
function writeFile(filePath:String, content:String, isBase64 :boolean= false):Promise;
|
|
38
46
|
function forEach(list:Array, callback:Function):Promise;
|
|
39
|
-
function mkdir(path:String):Promise
|
|
47
|
+
function mkdir(path:String):Promise;
|
|
48
|
+
function randomString(len:Number):Promise;
|
|
49
|
+
|
|
40
50
|
}
|
|
41
51
|
namespace page {
|
|
42
52
|
|
|
@@ -49,11 +59,16 @@ namespace rpa {
|
|
|
49
59
|
function waitForTimeout(timeout);
|
|
50
60
|
function script(func, data = {});
|
|
51
61
|
function newIframeAndEvaluate(url:String,func:Function):Promise;
|
|
62
|
+
function newIframeAndEvaluate(iframeHandler:Function,func:Function):Promise;
|
|
63
|
+
|
|
52
64
|
function download(url:String, path:String):Promise
|
|
53
65
|
|
|
54
66
|
}
|
|
55
67
|
namespace browser {
|
|
56
68
|
function newPageAndEvaluate(url:String, func:Function, data:Object = {}):Promise;
|
|
69
|
+
function getNextWindowOpenUrl(beforFunc:Function,cancel:boolean):Promise;
|
|
70
|
+
function getNextWindowOpenUrl(beforFunc:Function):Promise
|
|
71
|
+
|
|
57
72
|
}
|
|
58
73
|
namespace runtime {
|
|
59
74
|
function get(key:String = null):Promise;
|
|
@@ -61,4 +76,5 @@ namespace rpa {
|
|
|
61
76
|
}
|
|
62
77
|
}
|
|
63
78
|
|
|
64
|
-
declare function require(path:String):Promise
|
|
79
|
+
declare function require(path:String):Promise;
|
|
80
|
+
declare let args:Object;
|