diff --git a/dist/CRMSDK.js b/dist/CRMSDK.js index 657f20e..3119568 100644 --- a/dist/CRMSDK.js +++ b/dist/CRMSDK.js @@ -1,8 +1,8 @@ -/*! crm-sdk 2.2.0 | (c) Dynamics Software | MIT license - https://github.com/dys-solutions/crm-sdk/blob/develop/LICENSE */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("CRMSDK",[],e):"object"==typeof exports?exports.CRMSDK=e():t.CRMSDK=e()}(this,function(){return function(t){function __webpack_require__(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}var e={};return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.i=function(t){return t},__webpack_require__.d=function(t,e,n){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,"a",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=378)}([function(t,e,n){var r=n(2),o=n(23),i=n(12),a=n(13),u=n(20),s=function(t,e,n){var c,f,l,p,h=t&s.F,d=t&s.G,v=t&s.S,y=t&s.P,g=t&s.B,b=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,_=d?o:o[e]||(o[e]={}),m=_.prototype||(_.prototype={});d&&(n=e);for(c in n)f=!h&&b&&void 0!==b[c],l=(f?b:n)[c],p=g&&f?u(l,r):y&&"function"==typeof l?u(Function.call,l):l,b&&a(b,c,l,t&s.U),_[c]!=l&&i(_,c,p),y&&m[c]!=l&&(m[c]=l)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(67)("wks"),o=n(42),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(117),i=n(27),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(26),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(24);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(7),o=n(38);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2),o=n(12),i=n(11),a=n(42)("src"),u=Function.toString,s=(""+u).split("toString");n(23).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e,n){var r=n(0),o=n(3),i=n(24),a=/"/g,u=function(t,e,n,r){var o=String(i(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+String(r).replace(a,""")+'"'),u+">"+o+""};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _asyncToGenerator(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function step(r,o){try{var i=e[r](o),a=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(a).then(function(t){step("next",t)},function(t){step("throw",t)});t(a)}return step("next")})}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r;Object.defineProperty(e,"__esModule",{value:!0}),e.WebAPI=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function defineProperties(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=[];if("string"==typeof t)e.push(t);else{if(t.select){var n=void 0;n="object"===o(t.select)?t.select.join(","):t.select,e.push("$select="+n)}t.top&&e.push("$top="+t.top),t.count&&e.push("$count="+t.count)}return e.length?"?"+e.join("&"):""}},{key:"webAPIPath",get:function(){var t=h.default.version;return h.default.clientUrl+"/api/data/"+t}},{key:"bearer",get:function(){return R.get(this)},set:function(t){R.set(this,t)}}]),WebAPI}((0,u.default)((0,c.default)((0,v.default)((0,g.default)((0,_.default)((0,k.default)((0,O.default)((0,S.default)(l.default)))))))));e.WebAPI=C,e.default=C,void 0!==(r=function(){return C}.call(e,n,e,t))&&(t.exports=r)},function(t,e,n){var r=n(52),o=n(38),i=n(18),a=n(27),u=n(11),s=n(117),c=Object.getOwnPropertyDescriptor;e.f=n(6)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(11),o=n(9),i=n(98)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(51),o=n(24);t.exports=function(t){return r(o(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(10);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(20),o=n(51),i=n(9),a=n(8),u=n(83);t.exports=function(t,e){var n=1==t,s=2==t,c=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,d){for(var v,y,g=i(e),b=o(g),_=r(u,d,3),m=a(b.length),w=0,x=n?h(e,m):s?h(e,0):void 0;m>w;w++)if((p||w in b)&&(v=b[w],y=_(v,w,g),t))if(n)x[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(f)return!1;return l?-1:c||f?f:x}}},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(23),i=n(3);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(138),o=n(0),i=n(67)("metadata"),a=i.store||(i.store=new(n(141))),u=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i},s=function(t,e,n){var r=u(e,n,!1);return void 0!==r&&r.has(t)},c=function(t,e,n){var r=u(e,n,!1);return void 0===r?void 0:r.get(t)},f=function(t,e,n,r){u(n,r,!0).set(t,e)},l=function(t,e){var n=u(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},h=function(t){o(o.S,"Reflect",t)};t.exports={store:a,map:u,has:s,get:c,set:f,keys:l,key:p,exp:h}},function(t,e,n){"use strict";if(n(6)){var r=n(34),o=n(2),i=n(3),a=n(0),u=n(69),s=n(104),c=n(20),f=n(32),l=n(38),p=n(12),h=n(39),d=n(26),v=n(8),y=n(136),g=n(41),b=n(27),_=n(11),m=n(50),w=n(4),x=n(9),k=n(90),P=n(35),O=n(17),E=n(36).f,S=n(106),R=n(42),C=n(5),j=n(22),A=n(56),T=n(68),M=n(107),B=n(45),I=n(62),N=n(40),L=n(82),D=n(109),F=n(7),U=n(16),q=F.f,G=U.f,W=o.RangeError,V=o.TypeError,H=o.Uint8Array,Y=Array.prototype,z=s.ArrayBuffer,X=s.DataView,K=j(0),$=j(2),J=j(3),Q=j(4),Z=j(5),tt=j(6),et=A(!0),nt=A(!1),rt=M.values,ot=M.keys,it=M.entries,at=Y.lastIndexOf,ut=Y.reduce,st=Y.reduceRight,ct=Y.join,ft=Y.sort,lt=Y.slice,pt=Y.toString,ht=Y.toLocaleString,dt=C("iterator"),vt=C("toStringTag"),yt=R("typed_constructor"),gt=R("def_constructor"),bt=u.CONSTR,_t=u.TYPED,mt=u.VIEW,wt=j(1,function(t,e){return Et(T(t,t[gt]),e)}),xt=i(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),kt=!!H&&!!H.prototype.set&&i(function(){new H(1).set({})}),Pt=function(t,e){var n=d(t);if(n<0||n%e)throw W("Wrong offset!");return n},Ot=function(t){if(w(t)&&_t in t)return t;throw V(t+" is not a typed array!")},Et=function(t,e){if(!(w(t)&&yt in t))throw V("It is not a typed array constructor!");return new t(e)},St=function(t,e){return Rt(T(t,t[gt]),e)},Rt=function(t,e){for(var n=0,r=e.length,o=Et(t,r);r>n;)o[n]=e[n++];return o},Ct=function(t,e,n){q(t,e,{get:function(){return this._d[n]}})},jt=function(t){var e,n,r,o,i,a,u=x(t),s=arguments.length,f=s>1?arguments[1]:void 0,l=void 0!==f,p=S(u);if(void 0!=p&&!k(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(l&&s>2&&(f=c(f,arguments[2],2)),e=0,n=v(u.length),o=Et(this,n);n>e;e++)o[e]=l?f(u[e],e):u[e];return o},At=function(){for(var t=0,e=arguments.length,n=Et(this,e);e>t;)n[t]=arguments[t++];return n},Tt=!!H&&i(function(){ht.call(new H(1))}),Mt=function(){return ht.apply(Tt?lt.call(Ot(this)):Ot(this),arguments)},Bt={copyWithin:function(t,e){return D.call(Ot(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Ot(this),arguments)},filter:function(t){return St(this,$(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(Ot(this),arguments)},lastIndexOf:function(t){return at.apply(Ot(this),arguments)},map:function(t){return wt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ut.apply(Ot(this),arguments)},reduceRight:function(t){return st.apply(Ot(this),arguments)},reverse:function(){for(var t,e=this,n=Ot(e).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return ft.call(Ot(this),t)},subarray:function(t,e){var n=Ot(this),r=n.length,o=g(t,r);return new(T(n,n[gt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:g(e,r))-o))}},It=function(t,e){return St(this,lt.call(Ot(this),t,e))},Nt=function(t){Ot(this);var e=Pt(arguments[1],1),n=this.length,r=x(t),o=v(r.length),i=0;if(o+e>n)throw W("Wrong length!");for(;i255?255:255&r),o.v[h](n*e+o.o,r,xt)},C=function(t,e){q(t,e,{get:function(){return S(this,e)},set:function(t){return R(this,e,t)},enumerable:!0})};_?(d=n(function(t,n,r,o){f(t,d,c,"_d");var i,a,u,s,l=0,h=0;if(w(n)){if(!(n instanceof z||"ArrayBuffer"==(s=m(n))||"SharedArrayBuffer"==s))return _t in n?Rt(d,n):jt.call(d,n);i=n,h=Pt(r,e);var g=n.byteLength;if(void 0===o){if(g%e)throw W("Wrong length!");if((a=g-h)<0)throw W("Wrong length!")}else if((a=v(o)*e)+h>g)throw W("Wrong length!");u=a/e}else u=y(n),a=u*e,i=new z(a);for(p(t,"_d",{b:i,o:h,l:a,e:u,v:new X(i)});l_;_++)if((y=e?b(a(d=t[_])[0],d[1]):b(t[_]))===c||y===f)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,b,d.value,e))===c||y===f)return y};e.BREAK=c,e.RETURN=f},function(t,e){t.exports=!1},function(t,e,n){var r=n(1),o=n(126),i=n(86),a=n(98)("IE_PROTO"),u=function(){},s=function(){var t,e=n(85)("iframe"),r=i.length;for(e.style.display="none",n(88).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("