epii-types-rpa 1.0.2 → 1.0.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rpa.d.ts +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -13,7 +13,7 @@ namespace rpa {
13
13
  }
14
14
 
15
15
  namespace ajax {
16
- function post(url:String, data:Object = {}, headers:Object = {}):Promise;
16
+ function post(url:String, data:Object|String = "", headers:Object = {}):Promise;
17
17
  function get(url:String, headers:Object = {}):Promise;
18
18
  }
19
19
 
@@ -30,7 +30,8 @@ namespace rpa {
30
30
  function fileGetContent(path:String):Promise;
31
31
  function fileGetContentBase64(path:String):Promise;
32
32
  function download(url:String, path:String):Promise;
33
-
33
+ function sleep(time:Number):Promise;
34
+ function setInterval(callback:Function,interval:Number):Promise;
34
35
  }
35
36
  namespace page {
36
37
 
@@ -42,6 +43,7 @@ namespace rpa {
42
43
  function waitForXPath(xpath);
43
44
  function waitForTimeout(timeout);
44
45
  function script(func, data = {});
46
+ function newIframeAndEvaluate(url:String,func:Function):Promise;
45
47
 
46
48
  }
47
49
  namespace browser {