@azrico/webobject 1.1.25 → 1.1.27

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.
@@ -80,6 +80,6 @@ export declare class WebObject extends SimpleObject {
80
80
  * @param readonly
81
81
  * @param fetchID this can be used to prevent loading the same data twice
82
82
  */
83
- static get_list<T extends WebObject>(search: any, readonly?: boolean, fetchID?: string): Promise<T[]>;
83
+ static get_list(search: any, readonly?: boolean, fetchID?: string): Promise<WebObject[]>;
84
84
  }
85
85
  export default WebObject;
@@ -32,7 +32,7 @@
32
32
  * @param o
33
33
  * @param key
34
34
  * @returns value or undefined
35
- */},{key:"getMetaValue",value:function getMetaValue(a,c){var d;return null===(d=b.getMeta(a,c))||void 0===d?void 0:d.value}},{key:"isResultValid",value:function isResultValid(a){return!(0,_object.object_isEmpty)(a)&&!!(0,_object.object_isTrue)(a.acknowledged)}},{key:"get_single",value:function(){function a(a){return c.apply(this,arguments)}var c=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function c(a){var d,e,f,g,h=arguments;return _regeneratorRuntime().wrap(function i(c){for(;1;)switch(c.prev=c.next){case 0:if(d=!!(1<h.length&&void 0!==h[1])&&h[1],e=2<h.length&&void 0!==h[2]?h[2]:"",!(0,_object.object_isEmpty)(a)){c.next=4;break}return c.abrupt("return",void 0);case 4:g={},g.context=d?"view":"edit",c.t0=_typeof(a),c.next="string"===c.t0?9:"number"===c.t0?9:"object"===c.t0?17:17;break;case 9:return a+="",c.t1=this,c.t2=this,c.next=14,_global.gfunc.run_action("get",this.__web_path+"/"+a,g);case 14:return c.t3=c.sent,f=c.t1.ensure.call(c.t1,c.t2,c.t3),c.abrupt("break",23);case 17:return c.t4=_object.object_first,c.next=20,this.get_list(a,d);case 20:return c.t5=c.sent,f=(0,c.t4)(c.t5),c.abrupt("break",23);case 23:return b.setReadonly(f,d),c.abrupt("return",f);case 25:case"end":return c.stop();}},c,this)}));return a}()/**
35
+ */},{key:"getMetaValue",value:function getMetaValue(a,c){var d;return null===(d=b.getMeta(a,c))||void 0===d?void 0:d.value}},{key:"isResultValid",value:function isResultValid(a){return!(0,_object.object_isEmpty)(a)&&!!(0,_object.object_isTrue)(a.acknowledged)}},{key:"get_single",value:function(){function a(a){return c.apply(this,arguments)}var c=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function c(a){var d,e,f,g,h=arguments;return _regeneratorRuntime().wrap(function i(c){for(;1;)switch(c.prev=c.next){case 0:if(d=!!(1<h.length&&void 0!==h[1])&&h[1],e=2<h.length&&void 0!==h[2]?h[2]:"",!(0,_object.object_isEmpty)(a)){c.next=4;break}return c.abrupt("return",void 0);case 4:g={},g.context=d?"view":"edit",c.t0=_typeof(a),c.next="string"===c.t0?9:"number"===c.t0?9:"object"===c.t0?17:17;break;case 9:return a+="",c.t1=this,c.t2=this,c.next=14,_global.gfunc.run_action("get",this.__web_path+"/"+a,g,{fetchID:e});case 14:return c.t3=c.sent,f=c.t1.ensure.call(c.t1,c.t2,c.t3),c.abrupt("break",23);case 17:return c.t4=_object.object_first,c.next=20,this.get_list(a,d,e);case 20:return c.t5=c.sent,f=(0,c.t4)(c.t5),c.abrupt("break",23);case 23:return b.setReadonly(f,d),c.abrupt("return",f);case 25:case"end":return c.stop();}},c,this)}));return a}()/**
36
36
  * Get a list of web objects
37
37
  * @param search
38
38
  * @param readonly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.1.25",
3
+ "version": "1.1.27",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",