epii-types-rpa 1.0.8 → 1.1.0

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 +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -1,4 +1,6 @@
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 = {});
@@ -64,6 +66,9 @@ namespace rpa {
64
66
  }
65
67
  namespace browser {
66
68
  function newPageAndEvaluate(url:String, func:Function, data:Object = {}):Promise;
69
+ function waitOpenedPageAndEvaluate(invokeFun:Function, func:Function, data:Object = {}):Promise;
70
+ function waitOpenedPageAndExec(invokeFun:Function, script:String, params:Object = {}):Promise;
71
+
67
72
  function getNextWindowOpenUrl(beforFunc:Function,cancel:boolean):Promise;
68
73
  function getNextWindowOpenUrl(beforFunc:Function):Promise
69
74
 
@@ -72,6 +77,13 @@ namespace rpa {
72
77
  function get(key:String = null):Promise;
73
78
  function set(map:Object):Promise;
74
79
  }
80
+ namespace frame {
81
+ function evaluateCross(name:String, func:Function, data = {}) :Promise;
82
+ function evaluate(name:String, func:Function) :Promise;
83
+ function evaluateOnNextFrame(invokeFun:Function, func:Function,remove:boolean) :Promise;
84
+ function evaluateOnNextFrame(invokeFun:Function, func:Function) :Promise;
85
+
86
+ }
75
87
  }
76
88
 
77
89
  declare function require(path:String):Promise;