From 476bcff8b86e0883e1179b4a858228de0018e2cd Mon Sep 17 00:00:00 2001 From: Hristo Oskov Date: Tue, 12 Oct 2021 12:44:35 -0700 Subject: [PATCH] releasing v0.95.0 --- build/index.js | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/index.js b/build/index.js index 6b2c21c2..d929ecc5 100644 --- a/build/index.js +++ b/build/index.js @@ -1,10 +1,10 @@ /*! * - * lattice - v0.94.1 + * lattice - v0.95.0 * JavaScript SDK for all OpenLattice REST APIs * https://github.com/openlattice/lattice-js * * Copyright (c) 2017-2021, OpenLattice, Inc. All rights reserved. * */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Lattice=e():t.Lattice=e()}(self,(function(){return(()=>{var t={7766:(t,e,r)=>{t.exports=r(3698)},4804:(t,e,r)=>{t.exports=r(384)},62:(t,e,r)=>{t.exports=r(4825)},7175:(t,e,r)=>{t.exports=r(8587)},8914:(t,e,r)=>{t.exports=r(9143)},8580:(t,e,r)=>{t.exports=r(1436)},3054:(t,e,r)=>{t.exports=r(2107)},2991:(t,e,r)=>{t.exports=r(3839)},9828:(t,e,r)=>{t.exports=r(6350)},6474:(t,e,r)=>{t.exports=r(140)},6902:(t,e,r)=>{t.exports=r(4486)},455:(t,e,r)=>{t.exports=r(5933)},3476:(t,e,r)=>{t.exports=r(3697)},1445:(t,e,r)=>{t.exports=r(2264)},4341:(t,e,r)=>{t.exports=r(8255)},9542:(t,e,r)=>{t.exports=r(8082)},3535:(t,e,r)=>{t.exports=r(4879)},9669:(t,e,r)=>{t.exports=r(1609)},5448:(t,e,r)=>{"use strict";var n=r(4867),i=r(6026),a=r(4372),o=r(5327),s=r(4097),c=r(4109),u=r(7985),l=r(5061);t.exports=function(t){return new Promise((function(e,r){var p=t.data,d=t.headers,h=t.responseType;n.isFormData(p)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+y)}var v=s(t.baseURL,t.url);function g(){if(f){var n="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,a={data:h&&"text"!==h&&"json"!==h?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};i(e,r,a),f=null}}if(f.open(t.method.toUpperCase(),o(v,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(r(l("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){r(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},n.isStandardBrowserEnv()){var b=(t.withCredentials||u(v))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}"setRequestHeader"in f&&n.forEach(d,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),h&&"json"!==h&&(f.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),r(t),f=null)})),p||(p=null),f.send(p)}))}},1609:(t,e,r)=>{"use strict";var n=r(4867),i=r(1849),a=r(321),o=r(7185);function s(t){var e=new a(t),r=i(a.prototype.request,e);return n.extend(r,a.prototype,e),n.extend(r,e),r}var c=s(r(5655));c.Axios=a,c.create=function(t){return s(o(c.defaults,t))},c.Cancel=r(5263),c.CancelToken=r(4972),c.isCancel=r(6502),c.all=function(t){return Promise.all(t)},c.spread=r(8713),c.isAxiosError=r(6268),t.exports=c,t.exports.default=c},5263:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:(t,e,r)=>{"use strict";var n=r(5263);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,r)=>{"use strict";var n=r(4867),i=r(5327),a=r(782),o=r(3572),s=r(7185),c=r(4875),u=c.validators;function l(t){this.defaults=t,this.interceptors={request:new a,response:new a}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!n){var l=[o,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(a),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var p=t;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(t){h(t);break}}try{i=o(p)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},l.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,r,n){return this.request(s(n||{},{method:t,url:e,data:r}))}})),t.exports=l},782:(t,e,r)=>{"use strict";var n=r(4867);function i(){this.handlers=[]}i.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},4097:(t,e,r)=>{"use strict";var n=r(1793),i=r(7303);t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},5061:(t,e,r)=>{"use strict";var n=r(481);t.exports=function(t,e,r,i,a){var o=new Error(t);return n(o,e,r,i,a)}},3572:(t,e,r)=>{"use strict";var n=r(4867),i=r(8527),a=r(6502),o=r(5655);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},7185:(t,e,r)=>{"use strict";var n=r(4867);t.exports=function(t,e){e=e||{};var r={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=c(void 0,t[i])):r[i]=c(t[i],e[i])}n.forEach(i,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(a,u),n.forEach(o,(function(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=c(void 0,t[i])):r[i]=c(void 0,e[i])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var l=i.concat(a).concat(o).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return n.forEach(p,u),r}},6026:(t,e,r)=>{"use strict";var n=r(5061);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8527:(t,e,r)=>{"use strict";var n=r(4867),i=r(5655);t.exports=function(t,e,r){var a=this||i;return n.forEach(r,(function(r){t=r.call(a,t,e)})),t}},5655:(t,e,r)=>{"use strict";var n=r(4867),i=r(6016),a=r(481),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=r(5448)),c),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,r){if(n.isString(t))try{return(e||JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,r=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||i&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw a(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(o)})),t.exports=u},1849:t=>{"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n{"use strict";var n=r(4867);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var a;if(r)a=r(e);else if(n.isURLSearchParams(e))a=e.toString();else{var o=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),o.push(i(e)+"="+i(t))})))})),a=o.join("&")}if(a){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,r)=>{"use strict";var n=r(4867);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,a,o){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,r)=>{"use strict";var n=r(4867);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6016:(t,e,r)=>{"use strict";var n=r(4867);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},4109:(t,e,r)=>{"use strict";var n=r(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,a,o={};return t?(n.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=n.trim(t.substr(0,a)).toLowerCase(),r=n.trim(t.substr(a+1)),e){if(o[e]&&i.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}})),o):o}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,r)=>{"use strict";var n=r(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var a={},o=n.version.split(".");function s(t,e){for(var r=e?e.split("."):o,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]0;){var a=n[i],o=e[a];if(o){var s=t[a],c=void 0===s||o(s,a,t);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:i}},4867:(t,e,r)=>{"use strict";var n=r(1849),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function o(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var r=0,n=t.length;r=0&&r<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(a=r,!1!==n&&l(r),s.call(o,r,t),typeof console===e&&r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t),(e=(0,i.default)(e,o)).allow_trailing_dot&&"."===t[t.length-1]&&(t=t.substring(0,t.length-1));var r=t.split("."),a=r[r.length-1];if(e.require_tld){if(r.length<2)return!1;if(!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20\u00A9\uFFFD]/.test(a))return!1}if(!e.allow_numeric_tld&&/^\d+$/.test(a))return!1;return r.every((function(t){return!(t.length>63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(t)&&(!/[\uff01-\uff5e]/.test(t)&&(!/^-|-$/.test(t)&&!(!e.allow_underscores&&/_/.test(t)))))}))};var n=a(r(5571)),i=a(r(4808));function a(t){return t&&t.__esModule?t:{default:t}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1};t.exports=e.default,t.exports.default=e.default},1028:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,i.default)(e),!(r=String(r)))return t(e,4)||t(e,6);if("4"===r){if(!s.test(e))return!1;var n=e.split(".").sort((function(t,e){return t-e}));return n[3]<=255}if("6"===r)return!!u.test(e);return!1};var n,i=(n=r(5571))&&n.__esModule?n:{default:n};var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(a,"[.]){3}").concat(a),s=new RegExp("^".concat(o,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(o,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(o,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(o,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(o,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(o,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(o,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(o,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");t.exports=e.default,t.exports.default=e.default},2492:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),!t||/[\s<>]/.test(t))return!1;if(0===t.indexOf("mailto:"))return!1;if((e=(0,o.default)(e,c)).validate_length&&t.length>=2083)return!1;var r,s,p,d,h,f,m,y;if(m=t.split("#"),t=m.shift(),m=t.split("?"),t=m.shift(),(m=t.split("://")).length>1){if(r=m.shift().toLowerCase(),e.require_valid_protocol&&-1===e.protocols.indexOf(r))return!1}else{if(e.require_protocol)return!1;if("//"===t.substr(0,2)){if(!e.allow_protocol_relative_urls)return!1;m[0]=t.substr(2)}}if(""===(t=m.join("://")))return!1;if(m=t.split("/"),""===(t=m.shift())&&!e.require_host)return!0;if((m=t.split("@")).length>1){if(e.disallow_auth)return!1;if(""===m[0]||":"===m[0].substr(0,1))return!1;if((s=m.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1}d=m.join("@"),f=null,y=null;var v=d.match(u);v?(p="",y=v[1],f=v[2]||null):(m=d.split(":"),p=m.shift(),m.length&&(f=m.join(":")));if(null!==f){if(h=parseInt(f,10),!/^[0-9]+$/.test(f)||h<=0||h>65535)return!1}else if(e.require_port)return!1;if(!((0,a.default)(p)||(0,i.default)(p,e)||y&&(0,a.default)(y,6)))return!1;if(p=p||y,e.host_whitelist&&!l(p,e.host_whitelist))return!1;if(e.host_blacklist&&l(p,e.host_blacklist))return!1;return!0};var n=s(r(5571)),i=s(r(221)),a=s(r(1028)),o=s(r(4808));function s(t){return t&&t.__esModule?t:{default:t}}var c={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,validate_length:!0},u=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(t,e){for(var r=0;r{"use strict";function r(t){return(r="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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!("string"==typeof t||t instanceof String)){var e=r(t);throw null===t?e="null":"object"===e&&(e=t.constructor.name),new TypeError("Expected a string but received a ".concat(e))}},t.exports=e.default,t.exports.default=e.default},4808:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;for(var r in e)void 0===t[r]&&(t[r]=e[r]);return t},t.exports=e.default,t.exports.default=e.default},2264:t=>{"use strict";t.exports=require("core-js-pure/features/instance/bind")},8255:t=>{"use strict";t.exports=require("core-js-pure/features/object/define-property")},8082:t=>{"use strict";t.exports=require("core-js-pure/features/object/set-prototype-of")},4879:t=>{"use strict";t.exports=require("core-js-pure/features/reflect/construct")},3698:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/concat")},384:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/ends-with")},4825:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/every")},8587:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/flags")},9143:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/for-each")},1436:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/includes")},2107:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/last-index-of")},3839:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/map")},6350:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/starts-with")},140:t=>{"use strict";t.exports=require("core-js-pure/stable/object/freeze")},4486:t=>{"use strict";t.exports=require("core-js-pure/stable/object/keys")},5933:t=>{"use strict";t.exports=require("core-js-pure/stable/object/values")},3697:t=>{"use strict";t.exports=require("core-js-pure/stable/promise")},8593:t=>{"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n].call(a.exports,a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{AppApi:()=>t,AuthorizationsApi:()=>i,CodexApi:()=>a,CollaborationsApi:()=>o,Constants:()=>s,DataApi:()=>c,DataIntegrationApi:()=>u,DataSetMetadataApi:()=>l,DataSetsApi:()=>p,EntityDataModelApi:()=>d,EntitySetsApi:()=>h,Models:()=>f,OrganizationsApi:()=>y,PermissionsApi:()=>m,PersistentSearchApi:()=>v,PrincipalsApi:()=>g,SearchApi:()=>b,Types:()=>e,configure:()=>Ye,default:()=>Xo,version:()=>Zo});var t={};r.r(t),r.d(t,{getAllApps:()=>lr,getApp:()=>pr,getAppConfigs:()=>dr,getAppType:()=>hr,getAppTypes:()=>fr,installApp:()=>mr});var e={};r.r(e),r.d(e,{ActionTypes:()=>Ir,AnalyzerTypes:()=>jr,DeleteTypes:()=>Tr,EntitySetFlagTypes:()=>wr,GrantTypes:()=>Er,IndexTypes:()=>Sr,PermissionTypes:()=>Ur,PrincipalTypes:()=>Dr,RequestStateTypes:()=>Ar,SecurableTypes:()=>kr,SortTypes:()=>Or,UpdateTypes:()=>xr});var i={};r.r(i),r.d(i,{getAuthorizations:()=>qr});var a={};r.r(a),r.d(a,{sendOutgoingText:()=>Mr});var o={};r.r(o),r.d(o,{addDataSetToCollaboration:()=>$r,addOrganizationsToCollaboration:()=>Gr,createCollaboration:()=>Br,deleteCollaboration:()=>Vr,getCollaboration:()=>Fr,getCollaborationDataSets:()=>Yr,getCollaborationDatabaseInfo:()=>Hr,getCollaborations:()=>Kr,getCollaborationsWithDataSets:()=>tn,getCollaborationsWithOrganization:()=>Jr,getOrganizationCollaborationDataSets:()=>Xr,removeDataSetFromCollaboration:()=>Zr,removeOrganizationsFromCollaboration:()=>Qr,renameCollaborationDatabase:()=>Wr});var s={};r.r(s),r.d(s,{AT_CLASS:()=>en,AT_ID:()=>rn,OPENLATTICE_COUNT_FQN:()=>nn,OPENLATTICE_ID_FQN:()=>an,OPENLATTICE_LAST_INDEX_FQN:()=>on,OPENLATTICE_LAST_LINK_FQN:()=>sn,OPENLATTICE_LAST_WRITE_FQN:()=>cn,OPENLATTICE_VERSION_FQN:()=>un});var c={};r.r(c),r.d(c,{createAssociations:()=>Tn,createEntityAndAssociationData:()=>wn,createOrMergeEntityData:()=>En,deleteEntityAndNeighborData:()=>Sn,deleteEntityData:()=>Un,deleteEntitySetData:()=>Dn,getBinaryProperties:()=>zn,getEntityData:()=>An,getEntitySetData:()=>kn,getEntitySetSize:()=>On,getLinkedEntitySetBreakdown:()=>xn,updateEntityData:()=>Cn});var u={};r.r(u),r.d(u,{getEntityKeyIds:()=>Pn});var l={};r.r(l),r.d(l,{getDataSetColumnMetadata:()=>Mn,getDataSetColumnsMetadata:()=>Ln,getDataSetMetadata:()=>qn,getDataSetsMetadata:()=>_n,getOrganizationDataSetsMetadata:()=>Kn,updateDataSetColumnMetadata:()=>Jn,updateDataSetMetadata:()=>Fn});var p={};r.r(p),r.d(p,{getOrganizationDataSet:()=>Qn,getOrganizationDataSetData:()=>Wn,getOrganizationDataSetSchema:()=>$n,getOrganizationDataSets:()=>Hn});var d={};r.r(d),r.d(d,{addDestinationEntityTypeToAssociationType:()=>mi,addPropertyTypeToEntityType:()=>yi,addSourceEntityTypeToAssociationType:()=>vi,createAssociationType:()=>gi,createEntityType:()=>bi,createPropertyType:()=>Ii,createSchema:()=>ji,deleteAssociationType:()=>Ti,deleteEntityType:()=>wi,deletePropertyType:()=>Ei,getAllAssociationEntityTypes:()=>Si,getAllAssociationTypes:()=>Ui,getAllEntityTypes:()=>Di,getAllPropertyTypes:()=>Ai,getAllSchemas:()=>ki,getAssociationType:()=>Oi,getEntityDataModel:()=>xi,getEntityDataModelProjection:()=>Ci,getEntityType:()=>zi,getPropertyType:()=>Ni,getSchema:()=>Pi,removeDestinationEntityTypeFromAssociationType:()=>Ri,removePropertyTypeFromEntityType:()=>qi,removeSourceEntityTypeFromAssociationType:()=>_i,updateEntityTypeMetaData:()=>Mi,updatePropertyTypeMetaData:()=>Li,updateSchema:()=>Ki});var h={};r.r(h),r.d(h,{createEntitySets:()=>Wi,deleteEntitySet:()=>$i,getAllEntitySets:()=>Zi,getEntitySet:()=>Xi,getEntitySetId:()=>Yi,getEntitySetIds:()=>ta,getEntitySets:()=>ea,getPropertyTypeMetaDataForEntitySet:()=>ra,getPropertyTypeMetaDataForEntitySets:()=>na,updateEntitySetMetaData:()=>ia});var f={};r.r(f),r.d(f,{AccessCheckBuilder:()=>Nr,AceBuilder:()=>ua,AclBuilder:()=>pa,AclDataBuilder:()=>fa,AppBuilder:()=>va,AppTypeBuilder:()=>ba,AssociationTypeBuilder:()=>oi,DataGraphBuilder:()=>In,EntityDataKeyBuilder:()=>ja,EntitySetBuilder:()=>Gi,EntityTypeBuilder:()=>ni,FQN:()=>Et,GrantBuilder:()=>Aa,OrganizationBuilder:()=>Ma,PrincipalBuilder:()=>sa,PropertyTypeBuilder:()=>ui,RoleBuilder:()=>Ra,SchemaBuilder:()=>di});var m={};r.r(m),r.d(m,{getAcl:()=>Ka,getAclExplanation:()=>Ja,getAcls:()=>Fa,updateAcl:()=>Ba,updateAcls:()=>Va});var y={};r.r(y),r.d(y,{addConnectionsToOrganization:()=>Wa,addDomainsToOrganization:()=>$a,addMemberToOrganization:()=>Za,addRoleToMember:()=>Xa,createOrganization:()=>Ya,createRole:()=>to,deleteOrganization:()=>eo,deleteRole:()=>ro,destroyTransportedOrganizationEntitySet:()=>no,getAllOrganizations:()=>io,getOrganization:()=>ao,getOrganizationDataSources:()=>oo,getOrganizationDatabaseName:()=>so,getOrganizationEntitySets:()=>co,getOrganizationIntegrationAccount:()=>uo,getOrganizationMembers:()=>lo,getOrganizationRoles:()=>po,getRole:()=>ho,getUsersWithRole:()=>fo,grantTrustToOrganization:()=>mo,promoteStagingTable:()=>bo,registerOrganizationDataSource:()=>yo,removeConnectionsFromOrganization:()=>vo,removeDomainsFromOrganization:()=>go,removeMemberFromOrganization:()=>Io,removeRoleFromMember:()=>jo,renameOrganizationDatabase:()=>To,revokeTrustFromOrganization:()=>wo,transportOrganizationEntitySet:()=>Eo,updateOrganizationDataSource:()=>So,updateOrganizationDescription:()=>Uo,updateOrganizationTitle:()=>Do,updateRoleDescription:()=>Ao,updateRoleGrant:()=>ko,updateRoleTitle:()=>Oo});var v={};r.r(v),r.d(v,{createPersistentSearch:()=>Co,expirePersistentSearch:()=>zo,getPersistentSearches:()=>No,updatePersistentSearchExpiration:()=>Po});var g={};r.r(g),r.d(g,{getAllRoles:()=>qo,getAllUsers:()=>_o,getAtlasCredentials:()=>Mo,getCurrentRoles:()=>Lo,getSecurablePrincipal:()=>Ko,getUser:()=>Fo,getUsers:()=>Jo,regenerateCredential:()=>Bo,searchUsers:()=>Vo,syncUser:()=>Go});var b={};r.r(b),r.d(b,{searchDataSetMetadata:()=>Ho,searchEntityNeighborsWithFilter:()=>Wo,searchEntitySetData:()=>$o});var I=r(3476),j=r.n(I),T=r(7766),w=r.n(T),E=r(3535),S=r(1445),U=r(9542);function D(t,e){return(D=U||function(t,e){return t.__proto__=e,t})(t,e)}function A(){if("undefined"==typeof Reflect||!E)return!1;if(E.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(E(Boolean,[],(function(){}))),!0}catch(t){return!1}}function k(t,e,r){return(k=A()?E:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(S(Function).apply(t,n));return r&&D(i,r.prototype),i}).apply(null,arguments)}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var x=r(4341);function C(t,e){for(var r=0;r2?a-2:0),s=2;s0&&(n=this.logger)[t].apply(n,o)}},{key:"trace",value:function(t){this.log(H,t)}},{key:"debug",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i2&&void 0!==arguments[2]&&arguments[2],n="";if(gt(t))if(gt(e)){var i,a=w()(i="".concat(t,".")).call(i,e);if(a.length<=63)return a;n="invalid FQN: FQNs must be <= ".concat(63," characters, got ").concat(a.length)}else n="invalid FQN: name must be a non-empty string";else n="invalid FQN: namespace must be a non-empty string";if(!0===r)throw It.error(n),new Error(n);return""}var Et=function(){function t(){if(O(this,t),N(this,"namespace",void 0),N(this,"name",void 0),1!==arguments.length&&2!==arguments.length){var e="invalid parameter count: FQN takes only 1 or 2 parameters, got ".concat(arguments.length);throw It.error(e),new Error(e)}var r=Tt.apply(void 0,arguments),n=r.namespace,i=r.name;wt(n,i,!0),this.namespace=n,this.name=i}return z(t,[{key:"getNamespace",value:function(){return this.namespace}},{key:"getName",value:function(){return this.name}},{key:"toObject",value:function(){var t=this.namespace,e=this.name;return""===wt(t,e)?{namespace:"",name:""}:{namespace:t,name:e}}},{key:"toString",value:function(){return wt(this.namespace,this.name)}},{key:"valueOf",value:function(){return this.toString()}}]),t}();N(Et,"of",(function(){for(var t=arguments.length,e=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:Tr.SOFT,s="",c={};if(!Ue(t))return s="invalid parameter: entitySetId must be a valid UUID",jn.error(s,t),j().reject(s);if(!vt(e))return s="invalid parameter: filter must be a non-empty object",jn.error(s,t),j().reject(s);if(!De(e.entityKeyIds))return s="invalid parameter: filter.".concat(yn," must be a non-empty set of valid UUIDs"),jn.error(s,e.entityKeyIds),j().reject(s);var u,l,p=(0,K.Set)().withMutations((function(t){var r;return pn()(r=e.entityKeyIds).call(r,(function(e){return t.add(e)}))})).toJS();if(c.entityKeyIds=p,ht(e[fn])||De(e[fn]))u=(0,K.Set)().withMutations((function(t){var r;return pn()(r=e[fn]).call(r,(function(e){return t.add(e)}))})).toJS(),c.dst=u;else if(dt(e[fn]))return s="invalid parameter: filter.".concat(fn," must be a set of valid UUIDs"),jn.error(s,e[fn]),j().reject(s);if(ht(e[vn])||De(e[vn]))l=(0,K.Set)().withMutations((function(t){var r;return pn()(r=e[vn]).call(r,(function(e){return t.add(e)}))})).toJS(),c.src=l;else if(dt(e[vn]))return s="invalid parameter: filter.".concat(vn," must be a set of valid UUIDs"),jn.error(s,e[vn]),j().reject(s);return gt(o)&&Tr[o]?cr(kt).post(w()(r=w()(n=w()(i=w()(a="/".concat(ve,"/")).call(a,t,"/")).call(i,ue,"?")).call(n,be,"=")).call(r,o),c).then((function(t){return t.data})).catch((function(t){return jn.error(t),j().reject(t)})):(s="invalid parameter: deleteType must be a valid DeleteType",jn.error(s,o),j().reject(s))}function Un(t,e){var r,n,i,a,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tr.SOFT,c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u="";if(!Ue(t))return u="invalid parameter: entitySetId must be a valid UUID",jn.error(u,t),j().reject(u);if(!Ue(e)&&!De(e))return u="invalid parameter: entityKeyIds must be a valid UUID or array of UUIDs",jn.error(u,e),j().reject(u);if(!Tr[s])return u="invalid parameter: deleteType must be a valid DeleteType",jn.error(u,s),j().reject(u);if(!hn()(c))return u="invalid parameter: block must be a boolean",jn.error(u,c),j().reject(u);var l=e;return"string"==typeof e&&(l=[e]),cr(kt).delete(w()(r=w()(n=w()(i=w()(a=w()(o="/".concat(ve,"/")).call(o,t,"?")).call(a,be,"=")).call(i,s,"&")).call(n,Jt,"=")).call(r,c),{data:l}).then((function(t){return t.data})).catch((function(t){return jn.error(t),j().reject(t)}))}function Dn(t){var e,r,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tr.SOFT,o="";return Ue(t)?Tr[a]?cr(kt).delete(w()(e=w()(r=w()(n=w()(i="/".concat(ve,"/")).call(i,t,"/")).call(n,Kt,"?")).call(r,be,"=")).call(e,a)).then((function(t){return t.data})).catch((function(t){return jn.error(t),j().reject(t)})):(o='invalid parameter: "deleteType" must be a valid DeleteType',jn.error(o,a),j().reject(o)):(o='invalid parameter: "entitySetId" must be a valid UUID',jn.error(o,t),j().reject(o))}function An(t,e){var r,n="";return Ue(t)?Ue(e)?cr(kt).get(w()(r="/".concat(t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return jn.error(t),j().reject(t)})):(n='invalid parameter: "entityKeyId" must be a valid UUID',jn.error(n,e),j().reject(n)):(n='invalid parameter: "entitySetId" must be a valid UUID',jn.error(n,t),j().reject(n))}function kn(t,e,r){var n,i="";if(!Ue(t))return i="invalid parameter: entitySetId must be a valid UUID",jn.error(i,t),j().reject(i);var a={};if(De(e))a.properties=(0,K.Set)().withMutations((function(t){pn()(e).call(e,(function(e){t.add(e)}))})).toJS();else if(!ut()(e)&&!ht(e))return i="invalid parameter: propertyTypeIds must be a non-empty array of valid UUIDs",jn.error(i,e),j().reject(i);if(De(r))a.ids=(0,K.Set)().withMutations((function(t){pn()(r).call(r,(function(e){t.add(e)}))})).toJS();else if(!ut()(r)&&!ht(r))return i="invalid parameter: entityKeyIds must be a non-empty array of valid UUIDs",jn.error(i,r),j().reject(i);return cr(kt).post(w()(n="/".concat(ve,"/")).call(n,t),a).then((function(t){return t.data})).catch((function(t){return jn.error(t),j().reject(t)}))}function On(t){var e,r="";return Ue(t)?cr(kt).get(w()(e="/".concat(t,"/")).call(e,"count")).then((function(t){return t.data})).catch((function(t){return jn.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",jn.error(r,t),j().reject(r))}function xn(t,e,r){var n,i,a="";if(!Ue(t))return a="invalid parameter: entitySetId must be a valid UUID",jn.error(a,t),j().reject(a);var o={};if(De(e))o.properties=(0,K.Set)().withMutations((function(t){pn()(e).call(e,(function(e){t.add(e)}))})).toJS();else if(!ut()(e)&&!ht(e))return a="invalid parameter: propertyTypeIds must be a non-empty array of valid UUIDs",jn.error(a,e),j().reject(a);if(De(r))o.ids=(0,K.Set)().withMutations((function(t){pn()(r).call(r,(function(e){t.add(e)}))})).toJS();else if(!ut()(r)&&!ht(r))return a="invalid parameter: entityKeyIds must be a non-empty array of valid UUIDs",jn.error(a,r),j().reject(a);return cr(kt).post(w()(n=w()(i="/".concat(ve,"/")).call(i,t,"/")).call(n,"detailed"),o).then((function(t){return t.data})).catch((function(t){return jn.error(t),j().reject(t)}))}function Cn(t,e){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xr.PARTIAL_REPLACE,o="";if(!Ue(t))return o='invalid parameter: "entitySetId" must be a valid UUID',jn.error(o,t),j().reject(o);if(!vt(e))return o='invalid parameter: "entityData" must be a non-empty object',jn.error(o,t),j().reject(o);for(var s=we()(e),c=0;c2&&void 0!==arguments[2])||arguments[2],c="";return Ue(t)?Ue(e)?!0===s?cr(xt).get(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,e,"/")).call(n,ne,"/")).call(r,re)).then((function(t){return t.data})).catch((function(t){return Gn.error(t),j().reject(t)})):!1===s?cr(xt).get(w()(a=w()(o="/".concat(t,"/")).call(o,e,"/")).call(a,ne)).then((function(t){return t.data})).catch((function(t){return Gn.error(t),j().reject(t)})):(c='invalid parameter: "columns" must be a boolean',Gn.error(c,s),j().reject(c)):(c='invalid parameter: "dataSetId" must be a valid UUID',Gn.error(c,e),j().reject(c)):(c='invalid parameter: "organizationId" must be a valid UUID',Gn.error(c,t),j().reject(c))}function Hn(t){var e,r,n,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a="";return Ue(t)?!0===i?cr(xt).get(w()(e=w()(r="/".concat(t,"/")).call(r,ne,"/")).call(e,re)).then((function(t){return t.data})).catch((function(t){return Gn.error(t),j().reject(t)})):!1===i?cr(xt).get(w()(n="/".concat(t,"/")).call(n,ne)).then((function(t){return t.data})).catch((function(t){return Gn.error(t),j().reject(t)})):(a='invalid parameter: "columns" must be a boolean',Gn.error(a,i),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Gn.error(a,t),j().reject(a))}function Wn(t,e){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o="";return Ue(t)?Ue(e)?!Vn()(a)||a<=0?(o='invalid parameter: "count" must be a positive integer',Gn.error(o,e),j().reject(o)):cr(xt).get(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,e,"/")).call(n,a,"/")).call(r,$t)).then((function(t){return t.data})).catch((function(t){return Gn.error(t),j().reject(t)})):(o='invalid parameter: "dataSetId" must be a valid UUID',Gn.error(o,e),j().reject(o)):(o='invalid parameter: "organizationId" must be a valid UUID',Gn.error(o,t),j().reject(o))}function $n(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(xt).get(w()(r=w()(n="/".concat(t,"/")).call(n,e,"/")).call(r,me)).then((function(t){return t.data})).catch((function(t){return Gn.error(t),j().reject(t)})):(i='invalid parameter: "dataSetId" must be a valid UUID',Gn.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Gn.error(i,t),j().reject(i))}var Zn=r(2991),Xn=r.n(Zn);const Yn=require("lodash/has");var ti=r.n(Yn),ei=new et("EntityType"),ri=function(){function t(e){O(this,t),N(this,"baseType",void 0),N(this,"category",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"key",void 0),N(this,"properties",void 0),N(this,"propertyTags",void 0),N(this,"schemas",void 0),N(this,"title",void 0),N(this,"type",void 0),this.key=e.key,this.properties=e.properties,this.schemas=e.schemas,this.title=e.title,this.type=e.type,dt(e.baseType)&&(this.baseType=e.baseType),dt(e.category)&&(this.category=e.category),dt(e.description)&&(this.description=e.description),dt(e.id)&&(this.id=e.id),dt(e.propertyTags)&&(this.propertyTags=e.propertyTags)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t,e={key:this.key,properties:this.properties,schemas:Xn()(t=this.schemas).call(t,(function(t){return t.toObject()})),title:this.title,type:this.type.toObject()};return dt(this.id)&&(e.id=this.id),dt(this.description)&&(e.description=this.description),dt(this.baseType)&&(e.baseType=this.baseType),dt(this.category)&&(e.category=this.category),dt(this.propertyTags)&&(e.propertyTags=this.propertyTags),e}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),ni=function(){function t(e){O(this,t),N(this,"baseType",void 0),N(this,"category",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"key",void 0),N(this,"properties",void 0),N(this,"propertyTags",void 0),N(this,"schemas",void 0),N(this,"title",void 0),N(this,"type",void 0),(0,K.isImmutable)(e)?(this.setBaseType(e.get("baseType")),this.setCategory(e.get("category")),this.setDescription(e.get("description")),this.setId(e.get("id")),this.setKey(e.get("key")),this.setPropertyTags(e.get("propertyTags")),this.setPropertyTypes(e.get("properties")),this.setSchemas(e.get("schemas")),this.setTitle(e.get("title")),this.setType(e.get("type"))):dt(e)&&(this.setBaseType(e.baseType),this.setCategory(e.category),this.setDescription(e.description),this.setId(e.id),this.setKey(e.key),this.setPropertyTags(e.propertyTags),this.setPropertyTypes(e.properties),this.setSchemas(e.schemas),this.setTitle(e.title),this.setType(e.type))}return z(t,[{key:"setBaseType",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "baseType" must be a valid UUID');return this.baseType=t,this}},{key:"setCategory",value:function(t){if(!dt(t)||mt(t))return this;if(!kr[t])throw new Error('invalid parameter: "category" must be a valid SecurableType');return this.category=t,this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "entityTypeId" must be a valid UUID');return this.id=t,this}},{key:"setKey",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "key" must be an array');var e=(0,K.OrderedSet)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "key" must be a non-empty array of UUIDs');return this.key=e.toJS(),this}},{key:"setPropertyTags",value:function(t){if(!dt(t))return this;var e=t;if((0,K.isCollection)(e)&&(e=e.toJS()),ft(e))return this;if(!Ae(e,Ue))throw new Error('invalid parameter: "propertyTags" must be a valid multimap object');return this.propertyTags=e,this}},{key:"setPropertyTypes",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "propertyTypes" must be an array');var e=(0,K.OrderedSet)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "propertyTypes" must be a non-empty array of UUIDs');return this.properties=e.toJS(),this}},{key:"setSchemas",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "schemas" must be an array');try{var e;this.schemas=Xn()(e=(0,K.Set)(t)).call(e,(function(t){return Et.of(t)})).toJS()}catch(t){throw new Error('invalid parameter: "schemas" must be a non-empty array of valid FQNs')}return this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"setType",value:function(t){return this.type=Et.of(t),this}},{key:"build",value:function(){if(!this.type)throw new Error('missing property: "type" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');return this.key||(this.key=[]),this.properties||(this.properties=[]),this.propertyTags||(this.propertyTags={}),this.schemas||(this.schemas=[]),new ri({baseType:this.baseType,category:this.category,description:this.description,id:this.id,key:this.key,properties:this.properties,propertyTags:this.propertyTags,schemas:this.schemas,title:this.title,type:this.type})}}]),t}(),ii=new et("AssociationType"),ai=function(){function t(e){O(this,t),N(this,"bidirectional",void 0),N(this,"dst",void 0),N(this,"entityType",void 0),N(this,"src",void 0),this.bidirectional=e.bidirectional,this.entityType=e.entityType,this.dst=e.dst,this.src=e.src}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{bidirectional:this.bidirectional,dst:this.dst,entityType:this.entityType.toObject(),src:this.src}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),oi=function(){function t(e){O(this,t),N(this,"bidirectional",void 0),N(this,"destinationEntityTypeIds",void 0),N(this,"entityType",void 0),N(this,"sourceEntityTypeIds",void 0),(0,K.isImmutable)(e)?(this.setBidirectional(e.get("bidirectional")),this.setDestinationEntityTypeIds(e.get("dst")),this.setEntityType(e.get("entityType")),this.setSourceEntityTypeIds(e.get("src"))):dt(e)&&(this.setBidirectional(e.bidirectional),this.setDestinationEntityTypeIds(e.dst),this.setEntityType(e.entityType),this.setSourceEntityTypeIds(e.src))}return z(t,[{key:"setBidirectional",value:function(t){if(!hn()(t))throw new Error('invalid parameter: "bidirectional" must be a boolean');return this.bidirectional=t,this}},{key:"setEntityType",value:function(t){return this.entityType=new ni(t).build(),this}},{key:"setDestinationEntityTypeIds",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "destinationEntityTypeIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "destinationEntityTypeIds" must be a non-empty array of UUIDs');return this.destinationEntityTypeIds=e.toJS(),this}},{key:"setSourceEntityTypeIds",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "sourceEntityTypeIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "sourceEntityTypeIds" must be a non-empty array of UUIDs');return this.sourceEntityTypeIds=e.toJS(),this}},{key:"build",value:function(){if(null===this.bidirectional||void 0===this.bidirectional)throw new Error('missing property: "bidirectional" is a required property');if(!this.entityType)throw new Error('missing property: "entityType" is a required property');return this.destinationEntityTypeIds||(this.destinationEntityTypeIds=[]),this.sourceEntityTypeIds||(this.sourceEntityTypeIds=[]),new ai({bidirectional:this.bidirectional,dst:this.destinationEntityTypeIds,entityType:this.entityType,src:this.sourceEntityTypeIds})}}]),t}(),si=new et("PropertyType"),ci=function(){function t(e){O(this,t),N(this,"analyzer",void 0),N(this,"datatype",void 0),N(this,"description",void 0),N(this,"enumValues",void 0),N(this,"id",void 0),N(this,"indexType",void 0),N(this,"multiValued",void 0),N(this,"pii",void 0),N(this,"schemas",void 0),N(this,"title",void 0),N(this,"type",void 0),this.datatype=e.datatype,this.schemas=e.schemas,this.title=e.title,this.type=e.type,dt(e.analyzer)&&(this.analyzer=e.analyzer),dt(e.description)&&(this.description=e.description),dt(e.enumValues)&&(this.enumValues=e.enumValues),dt(e.id)&&(this.id=e.id),dt(e.indexType)&&(this.indexType=e.indexType),dt(e.multiValued)&&(this.multiValued=e.multiValued),dt(e.pii)&&(this.pii=e.pii)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t,e={datatype:this.datatype,schemas:Xn()(t=this.schemas).call(t,(function(t){return t.toObject()})),title:this.title,type:this.type.toObject()};return dt(this.analyzer)&&(e.analyzer=this.analyzer),dt(this.description)&&(e.description=this.description),dt(this.enumValues)&&(e.enumValues=this.enumValues),dt(this.id)&&(e.id=this.id),dt(this.indexType)&&(e.indexType=this.indexType),dt(this.multiValued)&&(e.multiValued=this.multiValued),dt(this.pii)&&(e.pii=this.pii),e}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),ui=function(){function t(e){O(this,t),N(this,"analyzer",void 0),N(this,"datatype",void 0),N(this,"description",void 0),N(this,"enumValues",void 0),N(this,"id",void 0),N(this,"indexType",void 0),N(this,"multiValued",void 0),N(this,"pii",void 0),N(this,"schemas",void 0),N(this,"title",void 0),N(this,"type",void 0),(0,K.isImmutable)(e)?(this.setAnalyzer(e.get("analyzer")),this.setDataType(e.get("datatype")),this.setDescription(e.get("description")),this.setEnumValues(e.get("enumValues")),this.setId(e.get("id")),this.setIndexType(e.get("indexType")),this.setMultiValued(e.get("multiValued")),this.setPII(e.get("pii")),this.setSchemas(e.get("schemas")),this.setTitle(e.get("title")),this.setType(e.get("type"))):dt(e)&&(this.setAnalyzer(e.analyzer),this.setDataType(e.datatype),this.setDescription(e.description),this.setEnumValues(e.enumValues),this.setId(e.id),this.setIndexType(e.indexType),this.setMultiValued(e.multiValued),this.setPII(e.pii),this.setSchemas(e.schemas),this.setTitle(e.title),this.setType(e.type))}return z(t,[{key:"setAnalyzer",value:function(t){if(!dt(t)||mt(t))return this;if(!jr[t])throw new Error("invalid parameter: analyzer must be a valid AnalyzerType");return this.analyzer=t,this}},{key:"setDataType",value:function(t){if(!gt(t))throw new Error("invalid parameter: datatype must be a non-empty string");return this.datatype=t,this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error("invalid parameter: description must be a non-empty string");return this.description=t,this}},{key:"setEnumValues",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "values" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "values" must be a non-empty array of non-empty strings');return this.enumValues=e.toJS(),this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error("invalid parameter: propertyTypeId must be a valid UUID");return this.id=t,this}},{key:"setIndexType",value:function(t){if(!dt(t)||mt(t))return this;if(!Sr[t])throw new Error("invalid parameter: indexType must be a valid IndexType");return this.indexType=t,this}},{key:"setMultiValued",value:function(t){if(!dt(t))return this;if(!0!==t&&!1!==t)throw new Error("invalid parameter: multiValued must be a boolean");return this.multiValued=t,this}},{key:"setPII",value:function(t){if(!dt(t))return this;if(!0!==t&&!1!==t)throw new Error("invalid parameter: pii must be a boolean");return this.pii=t,this}},{key:"setSchemas",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "schemas" must be an array');try{var e;this.schemas=Xn()(e=(0,K.Set)(t)).call(e,(function(t){return Et.of(t)})).toJS()}catch(t){throw new Error('invalid parameter: "schemas" must be a non-empty array of valid FQNs')}return this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"setType",value:function(t){return this.type=Et.of(t),this}},{key:"build",value:function(){if(!dt(this.datatype))throw new Error('missing property: "datatype" is a required property');if(!dt(this.title))throw new Error('missing property: "title" is a required property');if(!dt(this.type))throw new Error('missing property: "type" is a required property');return this.schemas||(this.schemas=[]),new ci({analyzer:this.analyzer,datatype:this.datatype,description:this.description,enumValues:this.enumValues,id:this.id,indexType:this.indexType,multiValued:this.multiValued,pii:this.pii,schemas:this.schemas,title:this.title,type:this.type})}}]),t}(),li=new et("Schema"),pi=function(){function t(e){O(this,t),N(this,"entityTypes",void 0),N(this,"fqn",void 0),N(this,"propertyTypes",void 0),this.entityTypes=e.entityTypes,this.fqn=e.fqn,this.propertyTypes=e.propertyTypes}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t,e;return{entityTypes:Xn()(t=this.entityTypes).call(t,(function(t){return t.toObject()})),fqn:this.fqn.toObject(),propertyTypes:Xn()(e=this.propertyTypes).call(e,(function(t){return t.toObject()}))}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),di=function(){function t(e){O(this,t),N(this,"entityTypes",void 0),N(this,"fqn",void 0),N(this,"propertyTypes",void 0),(0,K.isImmutable)(e)?(this.setEntityTypes(e.get("entityTypes")),this.setFQN(e.get("fqn")),this.setPropertyTypes(e.get("propertyTypes"))):dt(e)&&(this.setEntityTypes(e.entityTypes),this.setFQN(e.fqn),this.setPropertyTypes(e.propertyTypes))}return z(t,[{key:"setEntityTypes",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "entityTypes" must be an array');try{var e;this.entityTypes=Xn()(e=(0,K.Set)(t)).call(e,(function(t){return new ni(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "entityTypes" must be an array of EntityTypes')}return this}},{key:"setFQN",value:function(t){return this.fqn=Et.of(t),this}},{key:"setPropertyTypes",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "propertyTypes" must be an array');try{var e;this.propertyTypes=Xn()(e=(0,K.Set)(t)).call(e,(function(t){return new ui(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "propertyTypes" must be an array of PropertyTypes')}return this}},{key:"build",value:function(){if(!this.fqn)throw new Error('missing property: "fqn" is a required property');return this.entityTypes||(this.entityTypes=[]),this.propertyTypes||(this.propertyTypes=[]),new pi({entityTypes:this.entityTypes,fqn:this.fqn,propertyTypes:this.propertyTypes})}}]),t}(),hi=function(t){return ke(t,di,li)},fi=new et("EntityDataModelApi");function mi(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(zt).put(w()(r=w()(n=w()(i="/".concat(Ft,"/")).call(i,t,"/")).call(n,"dst","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fi.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fi.error(a,t),j().reject(a))}function yi(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(zt).put(w()(r=w()(n="/".concat(ee,"/")).call(n,t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(i='invalid parameter: "propertyTypeId" must be a valid UUID',fi.error(i,e),j().reject(i)):(i='invalid parameter: "entityTypeId" must be a valid UUID',fi.error(i,t),j().reject(i))}function vi(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(zt).put(w()(r=w()(n=w()(i="/".concat(Ft,"/")).call(i,t,"/")).call(n,"src","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fi.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fi.error(a,t),j().reject(a))}function gi(t){var e="";return ke(t,oi,ii)?cr(zt).post("/".concat(Ft),t).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(e='invalid parameter: "associationType" must be a valid AssociationType',fi.error(e,t),j().reject(e))}function bi(t){var e="";return ke(t,ni,ei)?cr(zt).post("/".concat(ee),t).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(e='invalid parameter: "entityType" must be a valid EntityType',fi.error(e,t),j().reject(e))}function Ii(t){var e="";return ke(t,ui,si)?cr(zt).post("/".concat(he),t).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(e='invalid parameter: "propertyType" must be a valid PropertyType',fi.error(e,t),j().reject(e))}function ji(t){var e="";return hi(t)?cr(zt).post("/".concat(me),t).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(e='invalid parameter: "schema" must be a valid Schema',fi.error(e,t),j().reject(e))}function Ti(t){var e,r="";return Ue(t)?cr(zt).delete(w()(e="/".concat(Ft,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(r='invalid parameter: "associationTypeId" must be a valid UUID',fi.error(r,t),j().reject(r))}function wi(t){var e,r="";return Ue(t)?cr(zt).delete(w()(e="/".concat(ee,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(r='invalid parameter: "entityTypeId" must be a valid UUID',fi.error(r,t),j().reject(r))}function Ei(t){var e,r="";return Ue(t)?cr(zt).delete(w()(e="/".concat(he,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(r='invalid parameter: "propertyTypeId" must be a valid UUID',fi.error(r,t),j().reject(r))}function Si(){var t;return cr(zt).get(w()(t="/".concat(Ft,"/")).call(t,ee)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)}))}function Ui(){return cr(zt).get("/".concat(Ft)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)}))}function Di(){return cr(zt).get("/".concat(ee)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)}))}function Ai(){return cr(zt).get("/".concat(he)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)}))}function ki(){return cr(zt).get("/".concat(me)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)}))}function Oi(t){var e,r="";return Ue(t)?cr(zt).get(w()(e="/".concat(Ft,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(r='invalid parameter: "associationTypeId" must be a valid UUID',fi.error(r,t),j().reject(r))}function xi(){return cr(zt).get("/").then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)}))}function Ci(t){var e="";return Se(t,vt)?cr(zt).post("/",t).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(e='invalid parameter: "projection" must be an array of objects',fi.error(e,t),j().reject(e))}function zi(t){var e,r="";return Ue(t)?cr(zt).get(w()(e="/".concat(ee,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(r='invalid parameter: "entityTypeId" must be a valid UUID',fi.error(r,t),j().reject(r))}function Ni(t){var e,r="";return Ue(t)?cr(zt).get(w()(e="/".concat(he,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(r='invalid parameter: "propertyTypeId" must be a valid UUID',fi.error(r,t),j().reject(r))}function Pi(t){var e,r,n="";if(!Et.isValid(t))return n='invalid parameter: "schemaFQN" must be a valid FQN',fi.error(n,t),j().reject(n);var i=t.namespace,a=t.name;return cr(zt).get(w()(e=w()(r="/".concat(me,"/")).call(r,i,"/")).call(e,a)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)}))}function Ri(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(zt).delete(w()(r=w()(n=w()(i="/".concat(Ft,"/")).call(i,t,"/")).call(n,"dst","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fi.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fi.error(a,t),j().reject(a))}function qi(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(zt).delete(w()(r=w()(n="/".concat(ee,"/")).call(n,t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(i="invalid parameter: propertyTypeId must be a valid UUID",fi.error(i,e),j().reject(i)):(i="invalid parameter: entityTypeId must be a valid UUID",fi.error(i,t),j().reject(i))}function _i(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(zt).delete(w()(r=w()(n=w()(i="/".concat(Ft,"/")).call(i,t,"/")).call(n,"src","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fi.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fi.error(a,t),j().reject(a))}function Mi(t,e){var r,n="";return Ue(t)?vt(e)?ti()(e,"type")&&!Et.isValid(e.type)?(n="invalid parameter: type must be a valid FQN",fi.error(n,e.type),j().reject(n)):ti()(e,"name")&&!gt(e.name)?(n="invalid parameter: name must be a non-empty string",fi.error(n,e.name),j().reject(n)):ti()(e,"title")&&!gt(e.title)?(n="invalid parameter: title must be a non-empty string",fi.error(n,e.title),j().reject(n)):ti()(e,"description")&&!gt(e.description)?(n="invalid parameter: description must be a non-empty string",fi.error(n,e.description),j().reject(n)):ti()(e,"contacts")&&!bt(e.contacts)?(n="invalid parameter: contacts must be a non-empty string",fi.error(n,e.contacts),j().reject(n)):cr(zt).patch(w()(r="/".concat(ee,"/")).call(r,t),e).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(n="invalid parameter: metadata must be a non-empty object",fi.error(n,e),j().reject(n)):(n="invalid parameter: entityTypeId must be a valid UUID",fi.error(n,t),j().reject(n))}function Li(t,e){var r,n="";return Ue(t)?vt(e)?ti()(e,"type")&&!Et.isValid(e.type)?(n="invalid parameter: type must be a valid FQN",fi.error(n,e.type),j().reject(n)):ti()(e,"name")&&!gt(e.name)?(n="invalid parameter: name must be a non-empty string",fi.error(n,e.name),j().reject(n)):ti()(e,"title")&&!gt(e.title)?(n="invalid parameter: title must be a non-empty string",fi.error(n,e.title),j().reject(n)):ti()(e,"description")&&!gt(e.description)?(n="invalid parameter: description must be a non-empty string",fi.error(n,e.description),j().reject(n)):ti()(e,"contacts")&&!bt(e.contacts)?(n="invalid parameter: contacts must be a non-empty string",fi.error(n,e.contacts),j().reject(n)):cr(zt).patch(w()(r="/".concat(he,"/")).call(r,t),e).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)})):(n="invalid parameter: metadata must be a non-empty object",fi.error(n,e),j().reject(n)):(n="invalid parameter: propertyTypeId must be a valid UUID",fi.error(n,t),j().reject(n))}function Ki(t){var e,r,n,i,a="";if(!hi(t))return a='invalid parameter: "schema" must be a valid Schema',fi.error(a,t),j().reject(a);var o={action:Ir.REPLACE,entityTypes:Xn()(e=t.entityTypes).call(e,(function(t){return t.id})),propertyTypes:Xn()(r=t.propertyTypes).call(r,(function(t){return t.id}))};return cr(zt).patch(w()(n=w()(i="/".concat(me,"/")).call(i,t.fqn.namespace,"/")).call(n,t.fqn.name),o).then((function(t){return t.data})).catch((function(t){return fi.error(t),j().reject(t)}))}var Fi=r(7175),Ji=r.n(Fi),Bi=new et("EntitySet"),Vi=function(){function t(e){O(this,t),N(this,"contacts",void 0),N(this,"description",void 0),N(this,"entityTypeId",void 0),N(this,"flags",void 0),N(this,"id",void 0),N(this,"linkedEntitySets",void 0),N(this,"name",void 0),N(this,"organizationId",void 0),N(this,"title",void 0),this.contacts=e.contacts,this.entityTypeId=e.entityTypeId,this.name=e.name,this.title=e.title,dt(e.description)&&(this.description=e.description),dt(Ji()(e))&&(this.flags=Ji()(e)),dt(e.id)&&(this.id=e.id),dt(e.linkedEntitySets)&&(this.linkedEntitySets=e.linkedEntitySets),dt(e.organizationId)&&(this.organizationId=e.organizationId)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t={contacts:this.contacts,entityTypeId:this.entityTypeId,name:this.name,title:this.title};return dt(this.description)&&(t.description=this.description),dt(Ji()(this))&&(t.flags=Ji()(this)),dt(this.id)&&(t.id=this.id),dt(this.linkedEntitySets)&&(t.linkedEntitySets=this.linkedEntitySets),dt(this.organizationId)&&(t.organizationId=this.organizationId),t}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),Gi=function(){function t(e){O(this,t),N(this,"contacts",void 0),N(this,"description",void 0),N(this,"entityTypeId",void 0),N(this,"flags",void 0),N(this,"id",void 0),N(this,"linkedEntitySets",void 0),N(this,"name",void 0),N(this,"organizationId",void 0),N(this,"title",void 0),(0,K.isImmutable)(e)?(this.setContacts(e.get("contacts")),this.setDescription(e.get("description")),this.setEntityTypeId(e.get("entityTypeId")),this.setFlags(e.get("flags")),this.setId(e.get("id")),this.setLinkedEntitySets(e.get("linkedEntitySets")),this.setName(e.get("name")),this.setOrganizationId(e.get("organizationId")),this.setTitle(e.get("title"))):dt(e)&&(this.setContacts(e.contacts),this.setDescription(e.description),this.setEntityTypeId(e.entityTypeId),this.setFlags(Ji()(e)),this.setId(e.id),this.setLinkedEntitySets(e.linkedEntitySets),this.setName(e.name),this.setOrganizationId(e.organizationId),this.setTitle(e.title))}return z(t,[{key:"setContacts",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "contacts" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "contacts" must be a non-empty array of non-empty strings');return this.contacts=e.toJS(),this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setEntityTypeId",value:function(t){if(!Ue(t))throw new Error('invalid parameter: "entityTypeId" must be a valid UUID');return this.entityTypeId=t,this}},{key:"setFlags",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "flags" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,(function(t){return gt(t)&&wr[t]})))throw new Error('invalid parameter: "flags" must be an array of EntitySetFlagTypes');return this.flags=e.toJS(),this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "entitySetId" must be a valid UUID');return this.id=t,this}},{key:"setLinkedEntitySets",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "entitySetIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "entitySetIds" must be a non-empty array of UUIDs');return this.linkedEntitySets=e.toJS(),this}},{key:"setName",value:function(t){if(!gt(t))throw new Error('invalid parameter: "name" must be a non-empty string');return this.name=t,this}},{key:"setOrganizationId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "organizationId" must be a valid UUID');return this.organizationId=t,this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"build",value:function(){if(!this.entityTypeId)throw new Error('missing property: "entityTypeId" is a required property');if(!this.name)throw new Error('missing property: "name" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');return this.contacts||(this.contacts=[]),new Vi({contacts:this.contacts,description:this.description,entityTypeId:this.entityTypeId,flags:Ji()(this),id:this.id,linkedEntitySets:this.linkedEntitySets,name:this.name,organizationId:this.organizationId,title:this.title})}}]),t}(),Qi=function(t){return ke(t,Gi,Bi)},Hi=new et("EntitySetsApi");function Wi(t){var e="";return yt(t)?vr()(t).call(t,Qi)?cr(Nt).post("/",t).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):(e="invalid parameter: entitySets must be a non-empty array of valid EntitySets",Hi.error(e,t),j().reject(e)):(e="invalid parameter: entitySets must be a non-empty array",Hi.error(e,t),j().reject(e))}function $i(t){var e,r="";return Ue(t)?cr(Nt).delete(w()(e="/".concat(Kt,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Hi.error(r,t),j().reject(r))}function Zi(){return cr(Nt).get("/").then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)}))}function Xi(t){var e,r="";return Ue(t)?cr(Nt).get(w()(e="/".concat(Kt,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Hi.error(r,t),j().reject(r))}function Yi(t){var e,r="";return gt(t)?cr(Nt).get(w()(e="/".concat(ie,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):(r="invalid parameter: entitySetName must be a non-empty string",Hi.error(r,t),j().reject(r))}function ta(t){var e="";return yt(t)?vr()(t).call(t,gt)?cr(Nt).post("/".concat(ie),t).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):(e='invalid parameter: "entitySetNames" must be an array of strings',Hi.error(e,t),j().reject(e)):(e='invalid parameter: "entitySetNames" must be a non-empty array',Hi.error(e,t),j().reject(e))}function ea(t){var e="";if(!yt(t))return e='invalid parameter: "idsOrNames" must be a non-empty array',Hi.error(e,t),j().reject(e);var r=(0,K.Set)(t);return vr()(r).call(r,Ue)?cr(Nt).post("/".concat("by-id"),r.toJS()).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):vr()(r).call(r,gt)?cr(Nt).post("/".concat("by-name"),r.toJS()).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):(e='invalid parameter: "idsOrNames" must be an array of EntitySet ids or names',Hi.error(e,t),j().reject(e))}function ra(t,e){var r,n,i,a,o,s="";return Ue(t)?dt(e)?dt(e)&&!Ue(e)?(s="invalid parameter: propertyTypeId must be a valid UUID",Hi.error(s,e),j().reject(s)):cr(Nt).get(w()(r=w()(n=w()(i="/".concat(Kt,"/")).call(i,t,"/")).call(n,"properties","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):cr(Nt).get(w()(a=w()(o="/".concat(Kt,"/")).call(o,t,"/")).call(a,ce)).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):(s="invalid parameter: entitySetId must be a valid UUID",Hi.error(s,t),j().reject(s))}function na(t){var e,r="";if(!De(t))return r="invalid parameter: entitySetIds must be a valid UUID array",Hi.error(r,t),j().reject(r);var n=(0,K.Set)(t).toJS();return cr(Nt).post(w()(e="/".concat(Kt,"/")).call(e,ce),n).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)}))}function ia(t,e){var r,n,i="";return Ue(t)?vt(e)?cr(Nt).patch(w()(r=w()(n="/".concat(Kt,"/")).call(n,t,"/")).call(r,ce),e).then((function(t){return t.data})).catch((function(t){return Hi.error(t),j().reject(t)})):(i="invalid parameter: update must be a non-empty object",Hi.error(i,e),j().reject(i)):(i="invalid parameter: entitySetId must be a valid UUID",Hi.error(i,t),j().reject(i))}var aa=new et("Principal"),oa=function(){function t(e){O(this,t),N(this,"id",void 0),N(this,"type",void 0),this.id=e.id,this.type=e.type}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{id:this.id,type:this.type}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),sa=function(){function t(e){O(this,t),N(this,"id",void 0),N(this,"type",void 0),(0,K.isImmutable)(e)?(this.setId(e.get("id")),this.setType(e.get("type"))):dt(e)&&(this.setId(e.id),this.setType(e.type))}return z(t,[{key:"setId",value:function(t){if(!gt(t))throw new Error('invalid parameter: "id" must be a non-empty string');return this.id=t,this}},{key:"setType",value:function(t){if(!Dr[t])throw new Error('invalid parameter: "type" must be a valid PrincipalType');return this.type=t,this}},{key:"build",value:function(){if(!this.id)throw new Error('missing property: "id" is a required property');if(!this.type)throw new Error('missing property: "type" is a required property');return new oa({id:this.id,type:this.type})}}]),t}(),ca=(new et("Ace"),function(){function t(e){O(this,t),N(this,"permissions",void 0),N(this,"principal",void 0),this.principal=e.principal,this.permissions=e.permissions}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{permissions:this.permissions,principal:this.principal.toObject()}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),ua=function(){function t(e){O(this,t),N(this,"permissions",void 0),N(this,"principal",void 0),(0,K.isImmutable)(e)?(this.setPermissions(e.get("permissions")),this.setPrincipal(e.get("principal"))):dt(e)&&(this.setPermissions(e.permissions),this.setPrincipal(e.principal))}return z(t,[{key:"setPermissions",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "permissions" must be an array');var e=(0,K.OrderedSet)(t);if(!vr()(e).call(e,(function(t){return Ur[t]})))throw new Error('invalid parameter: "permissions" must be an array of PermissionTypes');return this.permissions=e.toJS(),this}},{key:"setPrincipal",value:function(t){return this.principal=new sa(t).build(),this}},{key:"build",value:function(){if(this.permissions||(this.permissions=[]),!this.principal)throw new Error("missing property: principal is a required property");return new ca({permissions:this.permissions,principal:this.principal})}}]),t}(),la=(new et("Acl"),function(){function t(e){O(this,t),N(this,"aces",void 0),N(this,"aclKey",void 0),this.aces=e.aces,this.aclKey=e.aclKey}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t;return{aces:Xn()(t=this.aces).call(t,(function(t){return t.toObject()})),aclKey:this.aclKey}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),pa=function(){function t(e){O(this,t),N(this,"aces",void 0),N(this,"aclKey",void 0),(0,K.isImmutable)(e)?(this.setAces(e.get("aces")),this.setAclKey(e.get("aclKey"))):dt(e)&&(this.setAces(e.aces),this.setAclKey(e.aclKey))}return z(t,[{key:"setAces",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "aces" must be an array');try{var e;this.aces=Xn()(e=(0,K.List)(t)).call(e,(function(t){return new ua(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "aces" must be an array of Aces')}return this}},{key:"setAclKey",value:function(t){if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "aclKey" must be an array');var e=(0,K.OrderedSet)(t);if(e.isEmpty()||!vr()(e).call(e,Ue))throw new Error('invalid parameter: "aclKey" must be a non-empty array of UUIDs');return this.aclKey=e.toJS(),this}},{key:"build",value:function(){if(this.aces||(this.aces=[]),!this.aclKey)throw new Error('missing property: "aclKey" is a required property');return new la({aces:this.aces,aclKey:this.aclKey})}}]),t}(),da=new et("AclData"),ha=function(){function t(e){O(this,t),N(this,"acl",void 0),N(this,"action",void 0),this.acl=e.acl,this.action=e.action}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{acl:this.acl.toObject(),action:this.action}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),fa=function(){function t(e){O(this,t),N(this,"acl",void 0),N(this,"action",void 0),(0,K.isImmutable)(e)?(this.setAcl(e.get("acl")),this.setAction(e.get("action"))):dt(e)&&(this.setAcl(e.acl),this.setAction(e.action))}return z(t,[{key:"setAcl",value:function(t){return this.acl=new pa(t).build(),this}},{key:"setAction",value:function(t){if(!Ir[t])throw new Error('invalid parameter: "action" must be a valid ActionType');return this.action=t,this}},{key:"build",value:function(){if(!this.acl)throw new Error('missing property: "acl" is a required property');if(!this.action)throw new Error('missing property: "action" is a required property');return new ha({acl:this.acl,action:this.action})}}]),t}(),ma=function(t){return ke(t,fa,da)},ya=(new et("App"),function(){function t(e){O(this,t),N(this,"appTypeIds",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"name",void 0),N(this,"title",void 0),N(this,"url",void 0),this.appTypeIds=e.appTypeIds,this.name=e.name,this.title=e.title,this.url=e.url,dt(e.id)&&(this.id=e.id),dt(e.description)&&(this.description=e.description)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t={appTypeIds:this.appTypeIds,name:this.name,title:this.title,url:this.url};return dt(this.id)&&(t.id=this.id),dt(this.description)&&(t.description=this.description),t}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),va=function(){function t(e){O(this,t),N(this,"appTypeIds",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"name",void 0),N(this,"title",void 0),N(this,"url",void 0),(0,K.isImmutable)(e)?(this.setAppTypeIds(e.get("appTypeIds")),this.setDescription(e.get("description")),this.setId(e.get("id")),this.setName(e.get("name")),this.setTitle(e.get("title")),this.setUrl(e.get("url"))):dt(e)&&(this.setAppTypeIds(e.appTypeIds),this.setDescription(e.description),this.setId(e.id),this.setName(e.name),this.setTitle(e.title),this.setUrl(e.url))}return z(t,[{key:"setAppTypeIds",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "appTypeIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "appTypeIds" must be a non-empty array of UUIDs');return this.appTypeIds=e.toJS(),this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "id" must be a valid UUID');return this.id=t,this}},{key:"setName",value:function(t){if(!gt(t))throw new Error('invalid parameter: "name" must be a non-empty string');return this.name=t,this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"setUrl",value:function(t){if(!gt(t))throw new Error('invalid parameter: "url" must be a non-empty string');return this.url=t,this}},{key:"build",value:function(){if(this.appTypeIds||(this.appTypeIds=[]),!this.name)throw new Error('missing property: "name" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');if(!this.url)throw new Error('missing property: "url" is a required property');return new ya({appTypeIds:this.appTypeIds,description:this.description,id:this.id,name:this.name,title:this.title,url:this.url})}}]),t}(),ga=(new et("AppType"),function(){function t(e){O(this,t),N(this,"description",void 0),N(this,"entityTypeId",void 0),N(this,"id",void 0),N(this,"title",void 0),N(this,"type",void 0),this.entityTypeId=e.entityTypeId,this.title=e.title,this.type=e.type,dt(e.description)&&(this.description=e.description),dt(e.id)&&(this.id=e.id)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t={entityTypeId:this.entityTypeId,title:this.title,type:this.type.toObject()};return dt(this.description)&&(t.description=this.description),dt(this.id)&&(t.id=this.id),t}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),ba=function(){function t(e){O(this,t),N(this,"description",void 0),N(this,"entityTypeId",void 0),N(this,"id",void 0),N(this,"title",void 0),N(this,"type",void 0),(0,K.isImmutable)(e)?(this.setDescription(e.get("description")),this.setEntityTypeId(e.get("entityTypeId")),this.setId(e.get("id")),this.setTitle(e.get("title")),this.setType(e.get("type"))):dt(e)&&(this.setDescription(e.description),this.setEntityTypeId(e.entityTypeId),this.setId(e.id),this.setTitle(e.title),this.setType(e.type))}return z(t,[{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setEntityTypeId",value:function(t){if(!Ue(t))throw new Error('invalid parameter: "entityTypeId" must be a valid UUID');return this.entityTypeId=t,this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "appTypeId" must be a valid UUID');return this.id=t,this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"setType",value:function(t){return this.type=Et.of(t),this}},{key:"build",value:function(){if(!this.entityTypeId)throw new Error('missing property: "entityTypeId" is a required property');if(!this.type)throw new Error('missing property: "type" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');return new ga({description:this.description,entityTypeId:this.entityTypeId,id:this.id,title:this.title,type:this.type})}}]),t}(),Ia=(new et("EntityDataKey"),function(){function t(e){O(this,t),N(this,"entityKeyId",void 0),N(this,"entitySetId",void 0),this.entityKeyId=e.entityKeyId,this.entitySetId=e.entitySetId}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{entityKeyId:this.entityKeyId,entitySetId:this.entitySetId}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),ja=function(){function t(e){O(this,t),N(this,"entityKeyId",void 0),N(this,"entitySetId",void 0),(0,K.isImmutable)(e)?(this.setEntityKeyId(e.get("entityKeyId")),this.setEntitySetId(e.get("entitySetId"))):dt(e)&&(this.setEntityKeyId(e.entityKeyId),this.setEntitySetId(e.entitySetId))}return z(t,[{key:"setEntityKeyId",value:function(t){if(!Ue(t))throw new Error("invalid parameter: entityKeyId must be a valid UUID");return this.entityKeyId=t,this}},{key:"setEntitySetId",value:function(t){if(!Ue(t))throw new Error("invalid parameter: entitySetId must be a valid UUID");return this.entitySetId=t,this}},{key:"build",value:function(){if(!this.entityKeyId)throw new Error("missing property: entityKeyId is a required property");if(!this.entitySetId)throw new Error("missing property: entitySetId is a required property");return new Ia({entityKeyId:this.entityKeyId,entitySetId:this.entitySetId})}}]),t}(),Ta=r(8580),wa=r.n(Ta),Ea=r(455),Sa=r.n(Ea),Ua=new et("Grant"),Da=function(){function t(e){O(this,t),N(this,"attribute",void 0),N(this,"grantType",void 0),N(this,"mappings",void 0),this.attribute=e.attribute,this.grantType=e.grantType,this.mappings=e.mappings}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{attribute:this.attribute,grantType:this.grantType,mappings:this.mappings}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),Aa=function(){function t(e){O(this,t),N(this,"attribute",void 0),N(this,"grantType",void 0),N(this,"mappings",void 0),(0,K.isImmutable)(e)?(this.setAttribute(e.get("attribute")),this.setGrantType(e.get("grantType")),this.setMappings(e.get("mappings"))):dt(e)&&(this.setAttribute(e.attribute),this.setGrantType(e.grantType),this.setMappings(e.mappings))}return z(t,[{key:"setAttribute",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "attribute" must be a string');return this.attribute=t,this}},{key:"setGrantType",value:function(t){var e;if(!wa()(e=Sa()(Er)).call(e,t))throw new Error('invalid parameter: "grantType" must be a valid GrantType');return this.grantType=t,this}},{key:"setMappings",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "mappings" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "mappings" must be a non-empty array of non-empty strings');return this.mappings=e.toJS(),this}},{key:"build",value:function(){if(this.attribute||(this.attribute=""),!this.grantType)throw new Error("missing property: grantType is a required property");return this.mappings||(this.mappings=[]),new Da({attribute:this.attribute,grantType:this.grantType,mappings:this.mappings})}}]),t}();const ka=require("lodash/isFinite");var Oa=r.n(ka);const xa=require("lodash/mapValues");var Ca=r.n(xa),za=new et("Role"),Na="com.openlattice.organization.roles.Role",Pa=function(){function t(e){O(this,t),N(this,"aclKey",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"organizationId",void 0),N(this,"principal",void 0),N(this,"title",void 0),this.organizationId=e.organizationId,this.principal=e.principal,this.title=e.title,this[en]=Na,dt(e.description)&&(this.description=e.description),dt(e.id)&&(this.aclKey=[e.organizationId,e.id],this.id=e.id)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t={organizationId:this.organizationId,principal:this.principal.toObject(),title:this.title};return t[en]=Na,dt(this.description)&&(t.description=this.description),dt(this.id)&&(t.aclKey=[this.organizationId,this.id],t.id=this.id),t}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),Ra=function(){function t(e){O(this,t),N(this,"description",void 0),N(this,"id",void 0),N(this,"organizationId",void 0),N(this,"principal",void 0),N(this,"title",void 0),(0,K.isImmutable)(e)?(this.setDescription(e.get("description")),this.setId(e.get("id")),this.setOrganizationId(e.get("organizationId")),this.setPrincipal(e.get("principal")),this.setTitle(e.get("title"))):dt(e)&&(this.setDescription(e.description),this.setId(e.id),this.setOrganizationId(e.organizationId),this.setPrincipal(e.principal),this.setTitle(e.title))}return z(t,[{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "id" must be a valid UUID');return this.id=t,this}},{key:"setOrganizationId",value:function(t){if(!Ue(t))throw new Error('invalid parameter: "organizationId" must be a valid UUID');return this.organizationId=t,this}},{key:"setPrincipal",value:function(t){return this.principal=new sa(t).build(),this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"build",value:function(){if(!this.organizationId)throw new Error('missing property: "organizationId" is a required property');if(!this.principal)throw new Error('missing property: "principal" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');return new Pa({description:this.description,id:this.id,organizationId:this.organizationId,principal:this.principal,title:this.title})}}]),t}(),qa=new et("Organization"),_a=function(){function t(e){O(this,t),N(this,"apps",void 0),N(this,"connections",void 0),N(this,"description",void 0),N(this,"emailDomains",void 0),N(this,"grants",void 0),N(this,"id",void 0),N(this,"members",void 0),N(this,"metadataEntitySetIds",void 0),N(this,"partitions",void 0),N(this,"principal",void 0),N(this,"roles",void 0),N(this,"title",void 0),this.apps=e.apps,this.emailDomains=e.emailDomains,this.connections=e.connections,this.grants=e.grants,this.members=e.members,this.metadataEntitySetIds=e.metadataEntitySetIds,this.principal=e.principal,this.roles=e.roles,this.title=e.title,dt(e.description)&&(this.description=e.description),dt(e.id)&&(this.id=e.id),dt(e.partitions)&&(this.partitions=e.partitions)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t,e,r={apps:this.apps,connections:this.connections,emailDomains:this.emailDomains,grants:Ca()(this.grants,(function(t){return Ca()(t,(function(t){return t.toObject()}))})),members:Xn()(t=this.members).call(t,(function(t){return t.toObject()})),metadataEntitySetIds:this.metadataEntitySetIds,principal:this.principal.toObject(),roles:Xn()(e=this.roles).call(e,(function(t){return t.toObject()})),title:this.title};return dt(this.description)&&(r.description=this.description),dt(this.id)&&(r.id=this.id),dt(this.partitions)&&(r.partitions=this.partitions),r}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),Ma=function(){function t(e){O(this,t),N(this,"apps",void 0),N(this,"connections",void 0),N(this,"description",void 0),N(this,"emailDomains",void 0),N(this,"grants",void 0),N(this,"id",void 0),N(this,"members",void 0),N(this,"metadataEntitySetIds",void 0),N(this,"partitions",void 0),N(this,"principal",void 0),N(this,"roles",void 0),N(this,"title",void 0),(0,K.isImmutable)(e)?(this.setApps(e.get("apps")),this.setConnections(e.get("connections")),this.setDescription(e.get("description")),this.setEmailDomains(e.get("emailDomains")),this.setGrants(e.get("grants")),this.setId(e.get("id")),this.setMembers(e.get("members")),this.setMetaDataEntitySetIds(e.get("metadataEntitySetIds")),this.setPartitions(e.get("partitions")),this.setPrincipal(e.get("principal")),this.setRoles(e.get("roles")),this.setTitle(e.get("title"))):dt(e)&&(this.setApps(e.apps),this.setConnections(e.connections),this.setDescription(e.description),this.setEmailDomains(e.emailDomains),this.setGrants(e.grants),this.setId(e.id),this.setMembers(e.members),this.setMetaDataEntitySetIds(e.metadataEntitySetIds),this.setPartitions(e.partitions),this.setPrincipal(e.principal),this.setRoles(e.roles),this.setTitle(e.title))}return z(t,[{key:"setApps",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "appIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "appIds" must be a non-empty array of UUIDs');return this.apps=e.toJS(),this}},{key:"setConnections",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "connections" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "connections" must be a non-empty array of non-empty strings');return this.connections=e.toJS(),this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setEmailDomains",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "emailDomains" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "emailDomains" must be a non-empty array of non-empty strings');return this.emailDomains=e.toJS(),this}},{key:"setGrants",value:function(t){if(!dt(t))return this;if(!st()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "grants" must be an object');try{this.grants=(0,K.Map)().withMutations((function(e){var r;pn()(r=(0,K.fromJS)(t)).call(r,(function(t,r){if(!Ue(r))throw new Error('invalid parameter: "grants" must be a map where all keys are valid UUIDs');pn()(t).call(t,(function(t,n){e.setIn([r,n],new Aa(t).build())}))}))})).toJS()}catch(t){throw new Error('invalid parameter: "grants" must be a map where all values are a map of GrantType to Grant')}return this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "organizationId" must be a valid UUID');return this.id=t,this}},{key:"setMembers",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "members" must be an array');try{var e;this.members=Xn()(e=(0,K.Set)(t)).call(e,(function(t){return new sa(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "members" must be an array of Principals')}return this}},{key:"setMetaDataEntitySetIds",value:function(t){if(!dt(t))return this;if(!st()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "metadataEntitySetIds" must be an object');if(this.metadataEntitySetIds={},(0,K.has)(t,"columns")){var e=(0,K.get)(t,"columns");Ue(e)&&(this.metadataEntitySetIds.columns=e)}if((0,K.has)(t,"datasets")){var r=(0,K.get)(t,"datasets");Ue(r)&&(this.metadataEntitySetIds.datasets=r)}if((0,K.has)(t,"organization")){var n=(0,K.get)(t,"organization");Ue(n)&&(this.metadataEntitySetIds.organization=n)}return this}},{key:"setPartitions",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "partitions" must be an array');var e=(0,K.List)(t);if(!vr()(e).call(e,Oa()))throw new Error('invalid parameter: "partitions" must be a non-empty array of numbers');return this.partitions=e.toJS(),this}},{key:"setPrincipal",value:function(t){if(this.principal=new sa(t).build(),this.principal.type!==Dr.ORGANIZATION)throw new Error('invalid parameter: "principal" must be PrincipalType.ORGANIZATION');return this}},{key:"setRoles",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "roles" must be an array');try{var e;this.roles=Xn()(e=(0,K.Set)(t)).call(e,(function(t){return new Ra(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "roles" must be an array of Roles')}return this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"build",value:function(){if(!this.title)throw new Error('missing property: "title" is a required property');if(!this.principal)throw new Error('missing property: "principal" is a required property');return this.apps||(this.apps=[]),this.connections||(this.connections=[]),this.emailDomains||(this.emailDomains=[]),this.grants||(this.grants={}),this.members||(this.members=[]),this.metadataEntitySetIds||(this.metadataEntitySetIds={}),this.roles||(this.roles=[]),new _a({apps:this.apps,connections:this.connections,description:this.description,emailDomains:this.emailDomains,grants:this.grants,id:this.id,members:this.members,metadataEntitySetIds:this.metadataEntitySetIds,partitions:this.partitions,principal:this.principal,roles:this.roles,title:this.title})}}]),t}(),La=new et("PermissionsApi");function Ka(t){var e="";return yt(t)?vr()(t).call(t,Ue)?cr(Rt).post("/",t).then((function(t){return t.data})).catch((function(t){return La.error(t),j().reject(t)})):(e='invalid parameter: "aclKey" must be an array of valid UUIDs',La.error(e,t),j().reject(e)):(e='invalid parameter: "aclKey" must be a non-empty array',La.error(e,t),j().reject(e))}function Fa(t){var e="";return yt(t)?vr()(t).call(t,(function(t){return vr()(t).call(t,Ue)}))?cr(Rt).post("/".concat(Bt),t).then((function(t){return t.data})).catch((function(t){return La.error(t),j().reject(t)})):(e='invalid parameter: "aclKeys" is not valid UUID[][]',La.error(e,t),j().reject(e)):(e='invalid parameter: "aclKeys" must be a non-empty array',La.error(e,t),j().reject(e))}function Ja(t){var e="";return yt(t)?vr()(t).call(t,Ue)?cr(Rt).post("/".concat("explain"),t).then((function(t){return t.data})).catch((function(t){return La.error(t),j().reject(t)})):(e='invalid parameter: "aclKey" must be an array of valid UUIDs',La.error(e,t),j().reject(e)):(e='invalid parameter: "aclKey" must be a non-empty array',La.error(e,t),j().reject(e))}function Ba(t){var e="";return ma(t)?cr(Rt).patch("/",t).then((function(t){return t.data})).catch((function(t){return La.error(t),j().reject(t)})):(e="invalid parameter: aclData must be a valid AclData object",La.error(e,t),j().reject(e))}function Va(t){var e="";return yt(t)?vr()(t).call(t,ma)?cr(Rt).patch("/".concat(Ie),t).then((function(t){return t.data})).catch((function(t){return La.error(t),j().reject(t)})):(e="invalid parameter: aclData must be an array of valid AclData objects",La.error(e,t),j().reject(e)):(e="invalid parameter: aclData must be a non-empty array",La.error(e,t),j().reject(e))}var Ga=new et("OrganizationsApi"),Qa={headers:{"Content-Type":"text/plain"}};function Ha(t,e,r){var n="";if(!Ue(t))return n="invalid parameter: organizationId must be a valid UUID",Ga.error(n,t),j().reject(n);if(!gt(e))return n="invalid parameter: principalId must be a non-empty string",Ga.error(n,e),j().reject(n);if(!gt(r)||!Ir[r])return n="invalid parameter: action must be a valid ActionType",Ga.error(n,r),j().reject(n);var i=(new sa).setId(e).setType(Dr.ORGANIZATION).build(),a=(new ua).setPermissions([Ur.READ]).setPrincipal(i).build(),o=(new pa).setAclKey([t]).setAces([a]).build();return Ba((new fa).setAction(r).setAcl(o).build())}function Wa(t,e){var r,n,i="";if(!Ue(t))return i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i);if(!dt(e)||ht(e))n=[];else{if(!bt(e))return i='invalid parameter: "connections" must be an array of strings',Ga.error(i,e),j().reject(i);n=(0,K.Set)(e).toJS()}return cr(Pt).post(w()(r="/".concat(t,"/")).call(r,Gt),n).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function $a(t,e){var r,n,i="";if(!Ue(t))return i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i);if(!dt(e)||ht(e))n=[];else{if(!bt(e))return i='invalid parameter: "domains" must be an array of strings',Ga.error(i,e),j().reject(i);n=(0,K.Set)(e).toJS()}return cr(Pt).post(w()(r="/".concat(t,"/")).call(r,Yt),n).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Za(t,e){var r,n,i,a="";return Ue(t)?gt(e)?cr(Pt).put(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,pe,"/")).call(n,se,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(a='invalid parameter: "memberId" must be a non-empty string',Ga.error(a,e),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Ga.error(a,t),j().reject(a))}function Xa(t,e,r){var n,i,a,o,s,c="";return Ue(t)?Ue(e)?gt(r)?cr(Pt).put(w()(n=w()(i=w()(a=w()(o=w()(s="/".concat(t,"/")).call(s,pe,"/")).call(o,fe,"/")).call(a,e,"/")).call(i,se,"/")).call(n,r)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(c='invalid parameter: "memberId" must be a non-empty string',Ga.error(c,r),j().reject(c)):(c='invalid parameter: "roleId" must be a valid UUID',Ga.error(c,e),j().reject(c)):(c='invalid parameter: "organizationId" must be a valid UUID',Ga.error(c,t),j().reject(c))}function Ya(t){var e="";return ke(t,Ma,qa)?cr(Pt).post("/",t).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(e='invalid parameter: "organization" must be a valid Organization',Ga.error(e,t),j().reject(e))}function to(t){var e="";return ke(t,Ra,za)?cr(Pt).post("/".concat(fe),t).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(e='invalid parameter: "role" must be a valid Role',Ga.error(e,t),j().reject(e))}function eo(t){var e="";return Ue(t)?cr(Pt).delete("/".concat(t)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(e='invalid parameter: "organizationId" must be a valid UUID',Ga.error(e,t),j().reject(e))}function ro(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(Pt).delete(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,pe,"/")).call(n,fe,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(a='invalid parameter: "roleId" must be a valid UUID',Ga.error(a,e),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Ga.error(a,t),j().reject(a))}function no(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(Pt).get(w()(r=w()(n="/".concat(t,"/")).call(n,e,"/")).call(r,"destroy")).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(i='invalid parameter: "entitySetId" must be a valid UUID',Ga.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i))}function io(){return cr(Pt).get("/").then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function ao(t){var e="";return Ue(t)?cr(Pt).get("/".concat(t)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(e='invalid parameter: "organizationId" must be a valid UUID',Ga.error(e,t),j().reject(e))}function oo(t){var e,r="";return Ue(t)?cr(Pt).get(w()(e="/".concat(t,"/")).call(e,Ht)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(r='invalid parameter: "organizationId" must be a valid UUID',Ga.error(r,t),j().reject(r))}function so(t){var e,r="";return Ue(t)?cr(Pt).get(w()(e="/".concat(t,"/")).call(e,Qt)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(r='invalid parameter: "organizationId" must be a valid UUID',Ga.error(r,t),j().reject(r))}function co(t){var e,r="";return Ue(t)?cr(Pt).get(w()(e="/".concat(t,"/")).call(e,te)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(r="invalid parameter: organizationId must be a valid UUID",Ga.error(r,t),j().reject(r))}function uo(t){var e,r="";return Ue(t)?cr(Pt).get(w()(e="/".concat(t,"/")).call(e,ae)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(r="invalid parameter: organizationId must be a valid UUID",Ga.error(r,t),j().reject(r))}function lo(t){var e,r,n="";return Ue(t)?cr(Pt).get(w()(e=w()(r="/".concat(t,"/")).call(r,pe,"/")).call(e,se)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n="invalid parameter: organizationId must be a valid UUID",Ga.error(n,t),j().reject(n))}function po(t){var e,r,n="";return Ue(t)?cr(Pt).get(w()(e=w()(r="/".concat(t,"/")).call(r,pe,"/")).call(e,fe)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n="invalid parameter: organizationId must be a valid UUID",Ga.error(n,t),j().reject(n))}function ho(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(Pt).get(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,pe,"/")).call(n,fe,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(a="invalid parameter: roleId must be a valid UUID",Ga.error(a,e),j().reject(a)):(a="invalid parameter: organizationId must be a valid UUID",Ga.error(a,t),j().reject(a))}function fo(t,e){var r,n,i,a,o="";return Ue(t)?Ue(e)?cr(Pt).get(w()(r=w()(n=w()(i=w()(a="/".concat(t,"/")).call(a,pe,"/")).call(i,fe,"/")).call(n,e,"/")).call(r,se)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(o="invalid parameter: roleId must be a valid UUID",Ga.error(o,e),j().reject(o)):(o="invalid parameter: organizationId must be a valid UUID",Ga.error(o,t),j().reject(o))}function mo(t,e){return Ha(t,e,Ir.ADD)}function yo(t,e){var r,n="";return Ue(t)?vt(e)?cr(Pt).post(w()(r="/".concat(t,"/")).call(r,Ht),e).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n='invalid parameter: "dataSource" must be a non-empty object',Ga.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n))}function vo(t,e){var r,n,i="";if(!Ue(t))return i="invalid parameter: organizationId must be a valid UUID",Ga.error(i,t),j().reject(i);if(!dt(e)||ht(e))n=[];else{if(!bt(e))return i="invalid parameter: connections must be an array of strings",Ga.error(i,e),j().reject(i);n=(0,K.Set)(e).toJS()}return cr(Pt).delete(w()(r="/".concat(t,"/")).call(r,Gt),{data:n}).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function go(t,e){var r,n,i="";if(!Ue(t))return i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i);if(!dt(e)||ht(e))n=[];else{if(!bt(e))return i='invalid parameter: "domains" must be an array of strings',Ga.error(i,e),j().reject(i);n=(0,K.Set)(e).toJS()}return cr(Pt).delete(w()(r="/".concat(t,"/")).call(r,Yt),{data:n}).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function bo(t,e){var r,n="";return Ue(t)?gt(e)?cr(Pt).post(w()(r="/".concat("promote","/")).call(r,t),e,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n='invalid parameter: "tableName" must be a non-empty string',Ga.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n))}function Io(t,e){var r,n,i,a="";return Ue(t)?gt(e)?cr(Pt).delete(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,pe,"/")).call(n,se,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(a='invalid parameter: "memberId" must be a non-empty string',Ga.error(a,e),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Ga.error(a,t),j().reject(a))}function jo(t,e,r){var n,i,a,o,s,c="";return Ue(t)?Ue(e)?gt(r)?cr(Pt).delete(w()(n=w()(i=w()(a=w()(o=w()(s="/".concat(t,"/")).call(s,pe,"/")).call(o,fe,"/")).call(a,e,"/")).call(i,se,"/")).call(n,r)).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(c='invalid parameter: "memberId" must be a non-empty string',Ga.error(c,r),j().reject(c)):(c='invalid parameter: "roleId" must be a valid UUID',Ga.error(c,e),j().reject(c)):(c='invalid parameter: "organizationId" must be a valid UUID',Ga.error(c,t),j().reject(c))}function To(t,e){var r,n="";return Ue(t)?gt(e)?cr(Pt).patch(w()(r="/".concat(t,"/")).call(r,Qt),e,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n='invalid parameter: "databaseName" must be a non-empty string',Ga.error(n,t),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n))}function wo(t,e){return Ha(t,e,Ir.REMOVE)}function Eo(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(Pt).get(w()(r=w()(n="/".concat(t,"/")).call(n,e,"/")).call(r,"transport")).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(i='invalid parameter: "entitySetId" must be a valid UUID',Ga.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i))}function So(t,e,r){var n,i,a="";return Ue(t)?Ue(e)?vt(r)?cr(Pt).put(w()(n=w()(i="/".concat(t,"/")).call(i,Ht,"/")).call(n,e),r).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(a='invalid parameter: "dataSource" must be a non-empty object',Ga.error(a,r),j().reject(a)):(a='invalid parameter: "dataSourceId" must be a valid UUID',Ga.error(a,e),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Ga.error(a,t),j().reject(a))}function Uo(t,e){var r,n,i="";if(!Ue(t))return i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i);if(!dt(e)||mt(e))n="";else{if(!gt(e))return i='invalid parameter: "description" must be a non-empty string',Ga.error(i,e),j().reject(i);n=e}return cr(Pt).put(w()(r="/".concat(t,"/")).call(r,Xt),n,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Do(t,e){var r,n="";return Ue(t)?gt(e)?cr(Pt).put(w()(r="/".concat(t,"/")).call(r,ge),e,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n='invalid parameter: "title" must be a non-empty string',Ga.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n))}function Ao(t,e,r){var n,i,a,o,s,c="";if(!Ue(t))return c='invalid parameter: "organizationId" must be a valid UUID',Ga.error(c,t),j().reject(c);if(!Ue(e))return c='invalid parameter: "roleId" must be a valid UUID',Ga.error(c,e),j().reject(c);if(!dt(r)||mt(r))s="";else{if(!gt(r))return c='invalid parameter: "description" must be a non-empty string',Ga.error(c,r),j().reject(c);s=r}return cr(Pt).put(w()(n=w()(i=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(i,e,"/")).call(n,Xt),s,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function ko(t,e,r){var n,i,a,o,s="";return Ue(t)?Ue(e)?ke(r,Aa,Ua)?cr(Pt).put(w()(n=w()(i=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(i,e,"/")).call(n,"grant"),r).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(s='invalid parameter: "grant" must be a valid Grant',Ga.error(s,r),j().reject(s)):(s='invalid parameter: "roleId" must be a valid UUID',Ga.error(s,e),j().reject(s)):(s='invalid parameter: "organizationId" must be a valid UUID',Ga.error(s,t),j().reject(s))}function Oo(t,e,r){var n,i,a,o,s="";return Ue(t)?Ue(e)?gt(r)?cr(Pt).put(w()(n=w()(i=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(i,e,"/")).call(n,ge),r,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(s='invalid parameter: "title" must be a non-empty string',Ga.error(s,r),j().reject(s)):(s='invalid parameter: "roleId" must be a valid UUID',Ga.error(s,e),j().reject(s)):(s='invalid parameter: "organizationId" must be a valid UUID',Ga.error(s,t),j().reject(s))}var xo=new et("PersistentSearchApi");function Co(t){var e="";return vt(t)?cr(qt).post("",t).then((function(t){return t.data})).catch((function(t){return xo.error(t),j().reject(t)})):(e='invalid parameter: "persistentSearch" must be a non-empty object',xo.error(e,t),j().reject(e))}function zo(t){var e="";return Ue(t)?cr(qt).delete("/".concat(t)).then((function(t){return t.data})).catch((function(t){return xo.error(t),j().reject(t)})):(e='invalid parameter: "persistentSearchId" must be a valid UUID',xo.error(e,t),j().reject(e))}function No(t){var e="";return hn()(t)?cr(qt).get("?includeExpired=".concat(t)).then((function(t){return t.data})).catch((function(t){return xo.error(t),j().reject(t)})):(e='invalid parameter: "includeExpired" must be a boolean',xo.error(e,t),j().reject(e))}function Po(t,e){var r,n="";return Ue(t)?gt(e)?cr(qt).patch(w()(r="/".concat(t,"/")).call(r,"expiration"),e).then((function(t){return t.data})).catch((function(t){return xo.error(t),j().reject(t)})):(n='invalid parameter: "expiration" must be a valid string',xo.error(n,t),j().reject(n)):(n='invalid parameter: "persistentSearchId" must be a valid UUID',xo.error(n,t),j().reject(n))}var Ro=new et("PrincipalsApi");function qo(){return cr(_t).get("/".concat(fe)).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)}))}function _o(){return cr(_t).get("/".concat(je)).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)}))}function Mo(){return cr(_t).get("/".concat("db")).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)}))}function Lo(){var t;return cr(_t).get(w()(t="/".concat(fe,"/")).call(t,"current")).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)}))}function Ko(t){var e="";return ke(t,sa,aa)?cr(_t).post("/",t).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)})):(e="invalid parameter: principal must be a valid Principal",Ro.error(e,t),j().reject(e))}function Fo(t){var e,r="";return gt(t)?cr(_t).get(w()(e="/".concat(je,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)})):(r="invalid parameter: userId must be a non-empty string",Ro.error(r,t),j().reject(r))}function Jo(t){var e="";return yt(t)?vr()(t).call(t,gt)?cr(_t).post("/".concat(je),t).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)})):(e='invalid parameter: "userIds" must be an array of strings',Ro.error(e,t),j().reject(e)):(e='invalid parameter: "userIds" must be a non-empty array',Ro.error(e,t),j().reject(e))}function Bo(){var t;return cr(_t).post(w()(t="/".concat("db","/")).call(t,"credential")).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)}))}function Vo(t){var e,r="";return vt(t)?cr(_t).post(w()(e="/".concat(je,"/")).call(e,ye),t).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)})):(r='invalid parameter: "fields" must be a non-empty object',Ro.error(r,t),j().reject(r))}function Go(){return cr(_t).get("/".concat("sync")).then((function(t){return t.data})).catch((function(t){return Ro.error(t),j().reject(t)}))}var Qo=new et("SearchApi");function Ho(t){var e="";return vt(t)?cr(Mt).post("/".concat(Zt),t).then((function(t){return t.data})).catch((function(t){return Qo.error(t),j().reject(t)})):(e='invalid parameter: "searchOptions" must be a non-empty object',Qo.error(e,t),j().reject(e))}function Wo(t,e){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="",s={};if(!Ue(t))return o="invalid parameter: entitySetId must be a valid UUID",Qo.error(o,t),j().reject(o);if("boolean"!=typeof a)return o="invalid parameter: idsOnly must be a boolean",Qo.error(o,a),j().reject(o);if(!vt(e))return o="invalid parameter: filter must be a non-empty object",Qo.error(o,t),j().reject(o);if(!De(e.entityKeyIds))return o="invalid parameter: filter.".concat(yn," must be a non-empty set of valid UUIDs"),Qo.error(o,e.entityKeyIds),j().reject(o);var c,u,l,p=(0,K.Set)().withMutations((function(t){var r;return pn()(r=e.entityKeyIds).call(r,(function(e){return t.add(e)}))})).toJS();if(s.entityKeyIds=p,ht(e[fn])||De(e[fn]))c=(0,K.Set)().withMutations((function(t){var r;return pn()(r=e[fn]).call(r,(function(e){return t.add(e)}))})).toJS(),s.dst=c;else if(dt(e[fn]))return o="invalid parameter: filter.".concat(fn," must be a set of valid UUIDs"),Qo.error(o,e[fn]),j().reject(o);if(ht(e[mn])||De(e[mn]))u=(0,K.Set)().withMutations((function(t){var r;return pn()(r=e[mn]).call(r,(function(e){return t.add(e)}))})).toJS(),s.edge=u;else if(dt(e[mn]))return o="invalid parameter: filter.".concat(mn," must be a set of valid UUIDs"),Qo.error(o,e[mn]),j().reject(o);if(ht(e[vn])||De(e[vn]))l=(0,K.Set)().withMutations((function(t){var r;return pn()(r=e[vn]).call(r,(function(e){return t.add(e)}))})).toJS(),s.src=l;else if(dt(e[vn]))return o="invalid parameter: filter.".concat(vn," must be a set of valid UUIDs"),Qo.error(o,e[vn]),j().reject(o);var d=w()(r=w()(n="/".concat(t,"/")).call(n,ue,"/")).call(r,Lt),h=a?w()(i="".concat(d,"/")).call(i,ie):d;return cr(Mt).post(h,s).then((function(t){return t.data})).catch((function(t){return Qo.error(t),j().reject(t)}))}function $o(t){var e="";if(!vt(t))return e='invalid parameter: "searchConstraints" must be a non-empty object',Qo.error(e,t),j().reject(e);var r=t.entitySetIds,n=t.maxHits,i=t.start;return De(r)?!Oa()(i)||i<0?(e='invalid property: "start" must be a positive number',Qo.error(e,i),j().reject(e)):!Oa()(n)||n<0?(e='invalid property: "maxHits" must be a positive number',Qo.error(e,n),j().reject(e)):cr(Mt).patch("/",t).then((function(t){return t.data})).catch((function(t){return Qo.error(t),j().reject(t)})):(e='invalid parameter: "entitySetIds" must be a non-empty array of valid UUIDs',Qo.error(e,r),j().reject(e))}var Zo="v0.94.1";const Xo={AppApi:t,AuthorizationsApi:i,CodexApi:a,CollaborationsApi:o,DataApi:c,DataIntegrationApi:u,DataSetMetadataApi:l,DataSetsApi:p,EntityDataModelApi:d,EntitySetsApi:h,OrganizationsApi:y,PermissionsApi:m,PersistentSearchApi:v,PrincipalsApi:g,SearchApi:b,Constants:s,Models:f,Types:e,configure:Ye,version:Zo}})(),n})()})); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Lattice=e():t.Lattice=e()}(self,(function(){return(()=>{var t={7766:(t,e,r)=>{t.exports=r(3698)},4804:(t,e,r)=>{t.exports=r(384)},62:(t,e,r)=>{t.exports=r(4825)},7175:(t,e,r)=>{t.exports=r(8587)},8914:(t,e,r)=>{t.exports=r(9143)},8580:(t,e,r)=>{t.exports=r(1436)},3054:(t,e,r)=>{t.exports=r(2107)},2991:(t,e,r)=>{t.exports=r(3839)},9828:(t,e,r)=>{t.exports=r(6350)},6474:(t,e,r)=>{t.exports=r(140)},6902:(t,e,r)=>{t.exports=r(4486)},455:(t,e,r)=>{t.exports=r(5933)},3476:(t,e,r)=>{t.exports=r(3697)},1445:(t,e,r)=>{t.exports=r(2264)},4341:(t,e,r)=>{t.exports=r(8255)},9542:(t,e,r)=>{t.exports=r(8082)},3535:(t,e,r)=>{t.exports=r(4879)},9669:(t,e,r)=>{t.exports=r(1609)},5448:(t,e,r)=>{"use strict";var n=r(4867),i=r(6026),a=r(4372),o=r(5327),s=r(4097),c=r(4109),u=r(7985),l=r(5061);t.exports=function(t){return new Promise((function(e,r){var p=t.data,d=t.headers,h=t.responseType;n.isFormData(p)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+y)}var v=s(t.baseURL,t.url);function g(){if(f){var n="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,a={data:h&&"text"!==h&&"json"!==h?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};i(e,r,a),f=null}}if(f.open(t.method.toUpperCase(),o(v,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(r(l("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){r(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},n.isStandardBrowserEnv()){var b=(t.withCredentials||u(v))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}"setRequestHeader"in f&&n.forEach(d,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),h&&"json"!==h&&(f.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),r(t),f=null)})),p||(p=null),f.send(p)}))}},1609:(t,e,r)=>{"use strict";var n=r(4867),i=r(1849),a=r(321),o=r(7185);function s(t){var e=new a(t),r=i(a.prototype.request,e);return n.extend(r,a.prototype,e),n.extend(r,e),r}var c=s(r(5655));c.Axios=a,c.create=function(t){return s(o(c.defaults,t))},c.Cancel=r(5263),c.CancelToken=r(4972),c.isCancel=r(6502),c.all=function(t){return Promise.all(t)},c.spread=r(8713),c.isAxiosError=r(6268),t.exports=c,t.exports.default=c},5263:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:(t,e,r)=>{"use strict";var n=r(5263);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,r)=>{"use strict";var n=r(4867),i=r(5327),a=r(782),o=r(3572),s=r(7185),c=r(4875),u=c.validators;function l(t){this.defaults=t,this.interceptors={request:new a,response:new a}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!n){var l=[o,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(a),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var p=t;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(t){h(t);break}}try{i=o(p)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},l.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,r,n){return this.request(s(n||{},{method:t,url:e,data:r}))}})),t.exports=l},782:(t,e,r)=>{"use strict";var n=r(4867);function i(){this.handlers=[]}i.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},4097:(t,e,r)=>{"use strict";var n=r(1793),i=r(7303);t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},5061:(t,e,r)=>{"use strict";var n=r(481);t.exports=function(t,e,r,i,a){var o=new Error(t);return n(o,e,r,i,a)}},3572:(t,e,r)=>{"use strict";var n=r(4867),i=r(8527),a=r(6502),o=r(5655);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},7185:(t,e,r)=>{"use strict";var n=r(4867);t.exports=function(t,e){e=e||{};var r={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function u(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=c(void 0,t[i])):r[i]=c(t[i],e[i])}n.forEach(i,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(a,u),n.forEach(o,(function(i){n.isUndefined(e[i])?n.isUndefined(t[i])||(r[i]=c(void 0,t[i])):r[i]=c(void 0,e[i])})),n.forEach(s,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var l=i.concat(a).concat(o).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return n.forEach(p,u),r}},6026:(t,e,r)=>{"use strict";var n=r(5061);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8527:(t,e,r)=>{"use strict";var n=r(4867),i=r(5655);t.exports=function(t,e,r){var a=this||i;return n.forEach(r,(function(r){t=r.call(a,t,e)})),t}},5655:(t,e,r)=>{"use strict";var n=r(4867),i=r(6016),a=r(481),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=r(5448)),c),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,r){if(n.isString(t))try{return(e||JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,r=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||i&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw a(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(o)})),t.exports=u},1849:t=>{"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n{"use strict";var n=r(4867);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var a;if(r)a=r(e);else if(n.isURLSearchParams(e))a=e.toString();else{var o=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),o.push(i(e)+"="+i(t))})))})),a=o.join("&")}if(a){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+a}return t}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,r)=>{"use strict";var n=r(4867);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,a,o){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,r)=>{"use strict";var n=r(4867);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6016:(t,e,r)=>{"use strict";var n=r(4867);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},4109:(t,e,r)=>{"use strict";var n=r(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,a,o={};return t?(n.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=n.trim(t.substr(0,a)).toLowerCase(),r=n.trim(t.substr(a+1)),e){if(o[e]&&i.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}})),o):o}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,r)=>{"use strict";var n=r(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var a={},o=n.version.split(".");function s(t,e){for(var r=e?e.split("."):o,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]0;){var a=n[i],o=e[a];if(o){var s=t[a],c=void 0===s||o(s,a,t);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:i}},4867:(t,e,r)=>{"use strict";var n=r(1849),i=Object.prototype.toString;function a(t){return"[object Array]"===i.call(t)}function o(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var r=0,n=t.length;r=0&&r<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(a=r,!1!==n&&l(r),s.call(o,r,t),typeof console===e&&r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,n.default)(t),(e=(0,i.default)(e,o)).allow_trailing_dot&&"."===t[t.length-1]&&(t=t.substring(0,t.length-1));var r=t.split("."),a=r[r.length-1];if(e.require_tld){if(r.length<2)return!1;if(!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20\u00A9\uFFFD]/.test(a))return!1}if(!e.allow_numeric_tld&&/^\d+$/.test(a))return!1;return r.every((function(t){return!(t.length>63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(t)&&(!/[\uff01-\uff5e]/.test(t)&&(!/^-|-$/.test(t)&&!(!e.allow_underscores&&/_/.test(t)))))}))};var n=a(r(5571)),i=a(r(4808));function a(t){return t&&t.__esModule?t:{default:t}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1};t.exports=e.default,t.exports.default=e.default},1028:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,i.default)(e),!(r=String(r)))return t(e,4)||t(e,6);if("4"===r){if(!s.test(e))return!1;var n=e.split(".").sort((function(t,e){return t-e}));return n[3]<=255}if("6"===r)return!!u.test(e);return!1};var n,i=(n=r(5571))&&n.__esModule?n:{default:n};var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(a,"[.]){3}").concat(a),s=new RegExp("^".concat(o,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(o,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(o,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(o,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(o,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(o,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(o,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(o,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");t.exports=e.default,t.exports.default=e.default},2492:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,n.default)(t),!t||/[\s<>]/.test(t))return!1;if(0===t.indexOf("mailto:"))return!1;if((e=(0,o.default)(e,c)).validate_length&&t.length>=2083)return!1;var r,s,p,d,h,f,m,y;if(m=t.split("#"),t=m.shift(),m=t.split("?"),t=m.shift(),(m=t.split("://")).length>1){if(r=m.shift().toLowerCase(),e.require_valid_protocol&&-1===e.protocols.indexOf(r))return!1}else{if(e.require_protocol)return!1;if("//"===t.substr(0,2)){if(!e.allow_protocol_relative_urls)return!1;m[0]=t.substr(2)}}if(""===(t=m.join("://")))return!1;if(m=t.split("/"),""===(t=m.shift())&&!e.require_host)return!0;if((m=t.split("@")).length>1){if(e.disallow_auth)return!1;if(""===m[0]||":"===m[0].substr(0,1))return!1;if((s=m.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1}d=m.join("@"),f=null,y=null;var v=d.match(u);v?(p="",y=v[1],f=v[2]||null):(m=d.split(":"),p=m.shift(),m.length&&(f=m.join(":")));if(null!==f){if(h=parseInt(f,10),!/^[0-9]+$/.test(f)||h<=0||h>65535)return!1}else if(e.require_port)return!1;if(!((0,a.default)(p)||(0,i.default)(p,e)||y&&(0,a.default)(y,6)))return!1;if(p=p||y,e.host_whitelist&&!l(p,e.host_whitelist))return!1;if(e.host_blacklist&&l(p,e.host_blacklist))return!1;return!0};var n=s(r(5571)),i=s(r(221)),a=s(r(1028)),o=s(r(4808));function s(t){return t&&t.__esModule?t:{default:t}}var c={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,validate_length:!0},u=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(t,e){for(var r=0;r{"use strict";function r(t){return(r="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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!("string"==typeof t||t instanceof String)){var e=r(t);throw null===t?e="null":"object"===e&&(e=t.constructor.name),new TypeError("Expected a string but received a ".concat(e))}},t.exports=e.default,t.exports.default=e.default},4808:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;for(var r in e)void 0===t[r]&&(t[r]=e[r]);return t},t.exports=e.default,t.exports.default=e.default},2264:t=>{"use strict";t.exports=require("core-js-pure/features/instance/bind")},8255:t=>{"use strict";t.exports=require("core-js-pure/features/object/define-property")},8082:t=>{"use strict";t.exports=require("core-js-pure/features/object/set-prototype-of")},4879:t=>{"use strict";t.exports=require("core-js-pure/features/reflect/construct")},3698:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/concat")},384:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/ends-with")},4825:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/every")},8587:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/flags")},9143:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/for-each")},1436:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/includes")},2107:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/last-index-of")},3839:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/map")},6350:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/starts-with")},140:t=>{"use strict";t.exports=require("core-js-pure/stable/object/freeze")},4486:t=>{"use strict";t.exports=require("core-js-pure/stable/object/keys")},5933:t=>{"use strict";t.exports=require("core-js-pure/stable/object/values")},3697:t=>{"use strict";t.exports=require("core-js-pure/stable/promise")},8593:t=>{"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n].call(a.exports,a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{AppApi:()=>t,AuthorizationsApi:()=>i,CodexApi:()=>a,CollaborationsApi:()=>o,Constants:()=>s,DataApi:()=>c,DataIntegrationApi:()=>u,DataSetMetadataApi:()=>l,DataSetsApi:()=>p,EntityDataModelApi:()=>d,EntitySetsApi:()=>h,Models:()=>f,OrganizationsApi:()=>y,PermissionsApi:()=>m,PersistentSearchApi:()=>v,PrincipalsApi:()=>g,SearchApi:()=>b,Types:()=>e,configure:()=>Ye,default:()=>es,version:()=>ts});var t={};r.r(t),r.d(t,{getAllApps:()=>lr,getApp:()=>pr,getAppConfigs:()=>dr,getAppType:()=>hr,getAppTypes:()=>fr,installApp:()=>mr});var e={};r.r(e),r.d(e,{ActionTypes:()=>Ir,AnalyzerTypes:()=>jr,DeleteTypes:()=>Tr,EntitySetFlagTypes:()=>wr,GrantTypes:()=>Er,IndexTypes:()=>Sr,PermissionTypes:()=>Ur,PrincipalTypes:()=>Dr,RequestStateTypes:()=>Ar,SecurableTypes:()=>kr,SortTypes:()=>Or,UpdateTypes:()=>xr});var i={};r.r(i),r.d(i,{getAuthorizations:()=>qr});var a={};r.r(a),r.d(a,{sendOutgoingText:()=>Mr});var o={};r.r(o),r.d(o,{addDataSetToCollaboration:()=>Yr,addOrganizationsToCollaboration:()=>Wr,createCollaboration:()=>Qr,deleteCollaboration:()=>Hr,getAllCollaborations:()=>Jr,getCollaboration:()=>Vr,getCollaborationDataSets:()=>rn,getCollaborationDatabaseInfo:()=>Zr,getCollaborations:()=>Br,getCollaborationsWithDataSets:()=>nn,getCollaborationsWithOrganization:()=>Gr,getOrganizationCollaborationDataSets:()=>en,removeDataSetFromCollaboration:()=>tn,removeOrganizationsFromCollaboration:()=>$r,renameCollaborationDatabase:()=>Xr});var s={};r.r(s),r.d(s,{AT_CLASS:()=>an,AT_ID:()=>on,OPENLATTICE_COUNT_FQN:()=>sn,OPENLATTICE_ID_FQN:()=>cn,OPENLATTICE_LAST_INDEX_FQN:()=>un,OPENLATTICE_LAST_LINK_FQN:()=>ln,OPENLATTICE_LAST_WRITE_FQN:()=>pn,OPENLATTICE_VERSION_FQN:()=>dn});var c={};r.r(c),r.d(c,{createAssociations:()=>Sn,createEntityAndAssociationData:()=>Un,createOrMergeEntityData:()=>Dn,deleteEntityAndNeighborData:()=>An,deleteEntityData:()=>kn,deleteEntitySetData:()=>On,getBinaryProperties:()=>Rn,getEntityData:()=>xn,getEntitySetData:()=>Cn,getEntitySetSize:()=>zn,getLinkedEntitySetBreakdown:()=>Nn,updateEntityData:()=>Pn});var u={};r.r(u),r.d(u,{getEntityKeyIds:()=>_n});var l={};r.r(l),r.d(l,{getDataSetColumnMetadata:()=>Fn,getDataSetColumnsMetadata:()=>Jn,getDataSetMetadata:()=>Ln,getDataSetsMetadata:()=>Kn,getOrganizationDataSetsMetadata:()=>Bn,updateDataSetColumnMetadata:()=>Gn,updateDataSetMetadata:()=>Vn});var p={};r.r(p),r.d(p,{getOrganizationDataSet:()=>$n,getOrganizationDataSetData:()=>Xn,getOrganizationDataSetSchema:()=>Yn,getOrganizationDataSets:()=>Zn});var d={};r.r(d),r.d(d,{addDestinationEntityTypeToAssociationType:()=>gi,addPropertyTypeToEntityType:()=>bi,addSourceEntityTypeToAssociationType:()=>Ii,createAssociationType:()=>ji,createEntityType:()=>Ti,createPropertyType:()=>wi,createSchema:()=>Ei,deleteAssociationType:()=>Si,deleteEntityType:()=>Ui,deletePropertyType:()=>Di,getAllAssociationEntityTypes:()=>Ai,getAllAssociationTypes:()=>ki,getAllEntityTypes:()=>Oi,getAllPropertyTypes:()=>xi,getAllSchemas:()=>Ci,getAssociationType:()=>zi,getEntityDataModel:()=>Ni,getEntityDataModelProjection:()=>Pi,getEntityType:()=>Ri,getPropertyType:()=>qi,getSchema:()=>_i,removeDestinationEntityTypeFromAssociationType:()=>Mi,removePropertyTypeFromEntityType:()=>Li,removeSourceEntityTypeFromAssociationType:()=>Ki,updateEntityTypeMetaData:()=>Fi,updatePropertyTypeMetaData:()=>Ji,updateSchema:()=>Bi});var h={};r.r(h),r.d(h,{createEntitySets:()=>Xi,deleteEntitySet:()=>Yi,getAllEntitySets:()=>ta,getEntitySet:()=>ea,getEntitySetId:()=>ra,getEntitySetIds:()=>na,getEntitySets:()=>ia,getPropertyTypeMetaDataForEntitySet:()=>aa,getPropertyTypeMetaDataForEntitySets:()=>oa,updateEntitySetMetaData:()=>sa});var f={};r.r(f),r.d(f,{AccessCheckBuilder:()=>Nr,AceBuilder:()=>da,AclBuilder:()=>fa,AclDataBuilder:()=>va,AppBuilder:()=>Ia,AppTypeBuilder:()=>Ta,AssociationTypeBuilder:()=>ui,DataGraphBuilder:()=>wn,EntityDataKeyBuilder:()=>Ea,EntitySetBuilder:()=>Wi,EntityTypeBuilder:()=>oi,FQN:()=>Et,GrantBuilder:()=>xa,OrganizationBuilder:()=>Fa,PrincipalBuilder:()=>la,PropertyTypeBuilder:()=>di,RoleBuilder:()=>Ma,SchemaBuilder:()=>mi});var m={};r.r(m),r.d(m,{getAcl:()=>Ba,getAclExplanation:()=>Ga,getAcls:()=>Va,updateAcl:()=>Qa,updateAcls:()=>Ha});var y={};r.r(y),r.d(y,{addConnectionsToOrganization:()=>Xa,addDomainsToOrganization:()=>Ya,addMemberToOrganization:()=>to,addRoleToMember:()=>eo,createOrganization:()=>ro,createRole:()=>no,deleteOrganization:()=>io,deleteRole:()=>ao,destroyTransportedOrganizationEntitySet:()=>oo,getAllOrganizations:()=>so,getOrganization:()=>co,getOrganizationDataSources:()=>uo,getOrganizationDatabaseName:()=>lo,getOrganizationEntitySets:()=>po,getOrganizationIntegrationAccount:()=>ho,getOrganizationMembers:()=>fo,getOrganizationRoles:()=>mo,getRole:()=>yo,getUsersWithRole:()=>vo,grantTrustToOrganization:()=>go,promoteStagingTable:()=>To,registerOrganizationDataSource:()=>bo,removeConnectionsFromOrganization:()=>Io,removeDomainsFromOrganization:()=>jo,removeMemberFromOrganization:()=>wo,removeRoleFromMember:()=>Eo,renameOrganizationDatabase:()=>So,revokeTrustFromOrganization:()=>Uo,transportOrganizationEntitySet:()=>Do,updateOrganizationDataSource:()=>Ao,updateOrganizationDescription:()=>ko,updateOrganizationTitle:()=>Oo,updateRoleDescription:()=>xo,updateRoleGrant:()=>Co,updateRoleTitle:()=>zo});var v={};r.r(v),r.d(v,{createPersistentSearch:()=>Po,expirePersistentSearch:()=>Ro,getPersistentSearches:()=>qo,updatePersistentSearchExpiration:()=>_o});var g={};r.r(g),r.d(g,{getAllRoles:()=>Lo,getAllUsers:()=>Ko,getAtlasCredentials:()=>Fo,getCurrentRoles:()=>Jo,getSecurablePrincipal:()=>Bo,getUser:()=>Vo,getUsers:()=>Go,regenerateCredential:()=>Qo,searchUsers:()=>Ho,syncUser:()=>Wo});var b={};r.r(b),r.d(b,{searchDataSetMetadata:()=>Zo,searchEntityNeighborsWithFilter:()=>Xo,searchEntitySetData:()=>Yo});var I=r(3476),j=r.n(I),T=r(7766),w=r.n(T),E=r(3535),S=r(1445),U=r(9542);function D(t,e){return(D=U||function(t,e){return t.__proto__=e,t})(t,e)}function A(){if("undefined"==typeof Reflect||!E)return!1;if(E.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(E(Boolean,[],(function(){}))),!0}catch(t){return!1}}function k(t,e,r){return(k=A()?E:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(S(Function).apply(t,n));return r&&D(i,r.prototype),i}).apply(null,arguments)}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var x=r(4341);function C(t,e){for(var r=0;r2?a-2:0),s=2;s0&&(n=this.logger)[t].apply(n,o)}},{key:"trace",value:function(t){this.log(H,t)}},{key:"debug",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i2&&void 0!==arguments[2]&&arguments[2],n="";if(gt(t))if(gt(e)){var i,a=w()(i="".concat(t,".")).call(i,e);if(a.length<=63)return a;n="invalid FQN: FQNs must be <= ".concat(63," characters, got ").concat(a.length)}else n="invalid FQN: name must be a non-empty string";else n="invalid FQN: namespace must be a non-empty string";if(!0===r)throw It.error(n),new Error(n);return""}var Et=function(){function t(){if(O(this,t),N(this,"namespace",void 0),N(this,"name",void 0),1!==arguments.length&&2!==arguments.length){var e="invalid parameter count: FQN takes only 1 or 2 parameters, got ".concat(arguments.length);throw It.error(e),new Error(e)}var r=Tt.apply(void 0,arguments),n=r.namespace,i=r.name;wt(n,i,!0),this.namespace=n,this.name=i}return z(t,[{key:"getNamespace",value:function(){return this.namespace}},{key:"getName",value:function(){return this.name}},{key:"toObject",value:function(){var t=this.namespace,e=this.name;return""===wt(t,e)?{namespace:"",name:""}:{namespace:t,name:e}}},{key:"toString",value:function(){return wt(this.namespace,this.name)}},{key:"valueOf",value:function(){return this.toString()}}]),t}();N(Et,"of",(function(){for(var t=arguments.length,e=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:Tr.SOFT,s="",c={};if(!Ue(t))return s="invalid parameter: entitySetId must be a valid UUID",En.error(s,t),j().reject(s);if(!vt(e))return s="invalid parameter: filter must be a non-empty object",En.error(s,t),j().reject(s);if(!De(e.entityKeyIds))return s="invalid parameter: filter.".concat(bn," must be a non-empty set of valid UUIDs"),En.error(s,e.entityKeyIds),j().reject(s);var u,l,p=(0,K.Set)().withMutations((function(t){var r;return fn()(r=e.entityKeyIds).call(r,(function(e){return t.add(e)}))})).toJS();if(c.entityKeyIds=p,ht(e[vn])||De(e[vn]))u=(0,K.Set)().withMutations((function(t){var r;return fn()(r=e[vn]).call(r,(function(e){return t.add(e)}))})).toJS(),c.dst=u;else if(dt(e[vn]))return s="invalid parameter: filter.".concat(vn," must be a set of valid UUIDs"),En.error(s,e[vn]),j().reject(s);if(ht(e[In])||De(e[In]))l=(0,K.Set)().withMutations((function(t){var r;return fn()(r=e[In]).call(r,(function(e){return t.add(e)}))})).toJS(),c.src=l;else if(dt(e[In]))return s="invalid parameter: filter.".concat(In," must be a set of valid UUIDs"),En.error(s,e[In]),j().reject(s);return gt(o)&&Tr[o]?cr(kt).post(w()(r=w()(n=w()(i=w()(a="/".concat(ve,"/")).call(a,t,"/")).call(i,ue,"?")).call(n,be,"=")).call(r,o),c).then((function(t){return t.data})).catch((function(t){return En.error(t),j().reject(t)})):(s="invalid parameter: deleteType must be a valid DeleteType",En.error(s,o),j().reject(s))}function kn(t,e){var r,n,i,a,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tr.SOFT,c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u="";if(!Ue(t))return u="invalid parameter: entitySetId must be a valid UUID",En.error(u,t),j().reject(u);if(!Ue(e)&&!De(e))return u="invalid parameter: entityKeyIds must be a valid UUID or array of UUIDs",En.error(u,e),j().reject(u);if(!Tr[s])return u="invalid parameter: deleteType must be a valid DeleteType",En.error(u,s),j().reject(u);if(!yn()(c))return u="invalid parameter: block must be a boolean",En.error(u,c),j().reject(u);var l=e;return"string"==typeof e&&(l=[e]),cr(kt).delete(w()(r=w()(n=w()(i=w()(a=w()(o="/".concat(ve,"/")).call(o,t,"?")).call(a,be,"=")).call(i,s,"&")).call(n,Jt,"=")).call(r,c),{data:l}).then((function(t){return t.data})).catch((function(t){return En.error(t),j().reject(t)}))}function On(t){var e,r,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tr.SOFT,o="";return Ue(t)?Tr[a]?cr(kt).delete(w()(e=w()(r=w()(n=w()(i="/".concat(ve,"/")).call(i,t,"/")).call(n,Kt,"?")).call(r,be,"=")).call(e,a)).then((function(t){return t.data})).catch((function(t){return En.error(t),j().reject(t)})):(o='invalid parameter: "deleteType" must be a valid DeleteType',En.error(o,a),j().reject(o)):(o='invalid parameter: "entitySetId" must be a valid UUID',En.error(o,t),j().reject(o))}function xn(t,e){var r,n="";return Ue(t)?Ue(e)?cr(kt).get(w()(r="/".concat(t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return En.error(t),j().reject(t)})):(n='invalid parameter: "entityKeyId" must be a valid UUID',En.error(n,e),j().reject(n)):(n='invalid parameter: "entitySetId" must be a valid UUID',En.error(n,t),j().reject(n))}function Cn(t,e,r){var n,i="";if(!Ue(t))return i="invalid parameter: entitySetId must be a valid UUID",En.error(i,t),j().reject(i);var a={};if(De(e))a.properties=(0,K.Set)().withMutations((function(t){fn()(e).call(e,(function(e){t.add(e)}))})).toJS();else if(!ut()(e)&&!ht(e))return i="invalid parameter: propertyTypeIds must be a non-empty array of valid UUIDs",En.error(i,e),j().reject(i);if(De(r))a.ids=(0,K.Set)().withMutations((function(t){fn()(r).call(r,(function(e){t.add(e)}))})).toJS();else if(!ut()(r)&&!ht(r))return i="invalid parameter: entityKeyIds must be a non-empty array of valid UUIDs",En.error(i,r),j().reject(i);return cr(kt).post(w()(n="/".concat(ve,"/")).call(n,t),a).then((function(t){return t.data})).catch((function(t){return En.error(t),j().reject(t)}))}function zn(t){var e,r="";return Ue(t)?cr(kt).get(w()(e="/".concat(t,"/")).call(e,"count")).then((function(t){return t.data})).catch((function(t){return En.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",En.error(r,t),j().reject(r))}function Nn(t,e,r){var n,i,a="";if(!Ue(t))return a="invalid parameter: entitySetId must be a valid UUID",En.error(a,t),j().reject(a);var o={};if(De(e))o.properties=(0,K.Set)().withMutations((function(t){fn()(e).call(e,(function(e){t.add(e)}))})).toJS();else if(!ut()(e)&&!ht(e))return a="invalid parameter: propertyTypeIds must be a non-empty array of valid UUIDs",En.error(a,e),j().reject(a);if(De(r))o.ids=(0,K.Set)().withMutations((function(t){fn()(r).call(r,(function(e){t.add(e)}))})).toJS();else if(!ut()(r)&&!ht(r))return a="invalid parameter: entityKeyIds must be a non-empty array of valid UUIDs",En.error(a,r),j().reject(a);return cr(kt).post(w()(n=w()(i="/".concat(ve,"/")).call(i,t,"/")).call(n,"detailed"),o).then((function(t){return t.data})).catch((function(t){return En.error(t),j().reject(t)}))}function Pn(t,e){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xr.PARTIAL_REPLACE,o="";if(!Ue(t))return o='invalid parameter: "entitySetId" must be a valid UUID',En.error(o,t),j().reject(o);if(!vt(e))return o='invalid parameter: "entityData" must be a non-empty object',En.error(o,t),j().reject(o);for(var s=we()(e),c=0;c2&&void 0!==arguments[2])||arguments[2],c="";return Ue(t)?Ue(e)?!0===s?cr(xt).get(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,e,"/")).call(n,ne,"/")).call(r,re)).then((function(t){return t.data})).catch((function(t){return Wn.error(t),j().reject(t)})):!1===s?cr(xt).get(w()(a=w()(o="/".concat(t,"/")).call(o,e,"/")).call(a,ne)).then((function(t){return t.data})).catch((function(t){return Wn.error(t),j().reject(t)})):(c='invalid parameter: "columns" must be a boolean',Wn.error(c,s),j().reject(c)):(c='invalid parameter: "dataSetId" must be a valid UUID',Wn.error(c,e),j().reject(c)):(c='invalid parameter: "organizationId" must be a valid UUID',Wn.error(c,t),j().reject(c))}function Zn(t){var e,r,n,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a="";return Ue(t)?!0===i?cr(xt).get(w()(e=w()(r="/".concat(t,"/")).call(r,ne,"/")).call(e,re)).then((function(t){return t.data})).catch((function(t){return Wn.error(t),j().reject(t)})):!1===i?cr(xt).get(w()(n="/".concat(t,"/")).call(n,ne)).then((function(t){return t.data})).catch((function(t){return Wn.error(t),j().reject(t)})):(a='invalid parameter: "columns" must be a boolean',Wn.error(a,i),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Wn.error(a,t),j().reject(a))}function Xn(t,e){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o="";return Ue(t)?Ue(e)?!Hn()(a)||a<=0?(o='invalid parameter: "count" must be a positive integer',Wn.error(o,e),j().reject(o)):cr(xt).get(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,e,"/")).call(n,a,"/")).call(r,$t)).then((function(t){return t.data})).catch((function(t){return Wn.error(t),j().reject(t)})):(o='invalid parameter: "dataSetId" must be a valid UUID',Wn.error(o,e),j().reject(o)):(o='invalid parameter: "organizationId" must be a valid UUID',Wn.error(o,t),j().reject(o))}function Yn(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(xt).get(w()(r=w()(n="/".concat(t,"/")).call(n,e,"/")).call(r,me)).then((function(t){return t.data})).catch((function(t){return Wn.error(t),j().reject(t)})):(i='invalid parameter: "dataSetId" must be a valid UUID',Wn.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Wn.error(i,t),j().reject(i))}var ti=r(2991),ei=r.n(ti);const ri=require("lodash/has");var ni=r.n(ri),ii=new et("EntityType"),ai=function(){function t(e){O(this,t),N(this,"baseType",void 0),N(this,"category",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"key",void 0),N(this,"properties",void 0),N(this,"propertyTags",void 0),N(this,"schemas",void 0),N(this,"title",void 0),N(this,"type",void 0),this.key=e.key,this.properties=e.properties,this.schemas=e.schemas,this.title=e.title,this.type=e.type,dt(e.baseType)&&(this.baseType=e.baseType),dt(e.category)&&(this.category=e.category),dt(e.description)&&(this.description=e.description),dt(e.id)&&(this.id=e.id),dt(e.propertyTags)&&(this.propertyTags=e.propertyTags)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t,e={key:this.key,properties:this.properties,schemas:ei()(t=this.schemas).call(t,(function(t){return t.toObject()})),title:this.title,type:this.type.toObject()};return dt(this.id)&&(e.id=this.id),dt(this.description)&&(e.description=this.description),dt(this.baseType)&&(e.baseType=this.baseType),dt(this.category)&&(e.category=this.category),dt(this.propertyTags)&&(e.propertyTags=this.propertyTags),e}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),oi=function(){function t(e){O(this,t),N(this,"baseType",void 0),N(this,"category",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"key",void 0),N(this,"properties",void 0),N(this,"propertyTags",void 0),N(this,"schemas",void 0),N(this,"title",void 0),N(this,"type",void 0),(0,K.isImmutable)(e)?(this.setBaseType(e.get("baseType")),this.setCategory(e.get("category")),this.setDescription(e.get("description")),this.setId(e.get("id")),this.setKey(e.get("key")),this.setPropertyTags(e.get("propertyTags")),this.setPropertyTypes(e.get("properties")),this.setSchemas(e.get("schemas")),this.setTitle(e.get("title")),this.setType(e.get("type"))):dt(e)&&(this.setBaseType(e.baseType),this.setCategory(e.category),this.setDescription(e.description),this.setId(e.id),this.setKey(e.key),this.setPropertyTags(e.propertyTags),this.setPropertyTypes(e.properties),this.setSchemas(e.schemas),this.setTitle(e.title),this.setType(e.type))}return z(t,[{key:"setBaseType",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "baseType" must be a valid UUID');return this.baseType=t,this}},{key:"setCategory",value:function(t){if(!dt(t)||mt(t))return this;if(!kr[t])throw new Error('invalid parameter: "category" must be a valid SecurableType');return this.category=t,this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "entityTypeId" must be a valid UUID');return this.id=t,this}},{key:"setKey",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "key" must be an array');var e=(0,K.OrderedSet)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "key" must be a non-empty array of UUIDs');return this.key=e.toJS(),this}},{key:"setPropertyTags",value:function(t){if(!dt(t))return this;var e=t;if((0,K.isCollection)(e)&&(e=e.toJS()),ft(e))return this;if(!Ae(e,Ue))throw new Error('invalid parameter: "propertyTags" must be a valid multimap object');return this.propertyTags=e,this}},{key:"setPropertyTypes",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "propertyTypes" must be an array');var e=(0,K.OrderedSet)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "propertyTypes" must be a non-empty array of UUIDs');return this.properties=e.toJS(),this}},{key:"setSchemas",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "schemas" must be an array');try{var e;this.schemas=ei()(e=(0,K.Set)(t)).call(e,(function(t){return Et.of(t)})).toJS()}catch(t){throw new Error('invalid parameter: "schemas" must be a non-empty array of valid FQNs')}return this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"setType",value:function(t){return this.type=Et.of(t),this}},{key:"build",value:function(){if(!this.type)throw new Error('missing property: "type" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');return this.key||(this.key=[]),this.properties||(this.properties=[]),this.propertyTags||(this.propertyTags={}),this.schemas||(this.schemas=[]),new ai({baseType:this.baseType,category:this.category,description:this.description,id:this.id,key:this.key,properties:this.properties,propertyTags:this.propertyTags,schemas:this.schemas,title:this.title,type:this.type})}}]),t}(),si=new et("AssociationType"),ci=function(){function t(e){O(this,t),N(this,"bidirectional",void 0),N(this,"dst",void 0),N(this,"entityType",void 0),N(this,"src",void 0),this.bidirectional=e.bidirectional,this.entityType=e.entityType,this.dst=e.dst,this.src=e.src}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{bidirectional:this.bidirectional,dst:this.dst,entityType:this.entityType.toObject(),src:this.src}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),ui=function(){function t(e){O(this,t),N(this,"bidirectional",void 0),N(this,"destinationEntityTypeIds",void 0),N(this,"entityType",void 0),N(this,"sourceEntityTypeIds",void 0),(0,K.isImmutable)(e)?(this.setBidirectional(e.get("bidirectional")),this.setDestinationEntityTypeIds(e.get("dst")),this.setEntityType(e.get("entityType")),this.setSourceEntityTypeIds(e.get("src"))):dt(e)&&(this.setBidirectional(e.bidirectional),this.setDestinationEntityTypeIds(e.dst),this.setEntityType(e.entityType),this.setSourceEntityTypeIds(e.src))}return z(t,[{key:"setBidirectional",value:function(t){if(!yn()(t))throw new Error('invalid parameter: "bidirectional" must be a boolean');return this.bidirectional=t,this}},{key:"setEntityType",value:function(t){return this.entityType=new oi(t).build(),this}},{key:"setDestinationEntityTypeIds",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "destinationEntityTypeIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "destinationEntityTypeIds" must be a non-empty array of UUIDs');return this.destinationEntityTypeIds=e.toJS(),this}},{key:"setSourceEntityTypeIds",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "sourceEntityTypeIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "sourceEntityTypeIds" must be a non-empty array of UUIDs');return this.sourceEntityTypeIds=e.toJS(),this}},{key:"build",value:function(){if(null===this.bidirectional||void 0===this.bidirectional)throw new Error('missing property: "bidirectional" is a required property');if(!this.entityType)throw new Error('missing property: "entityType" is a required property');return this.destinationEntityTypeIds||(this.destinationEntityTypeIds=[]),this.sourceEntityTypeIds||(this.sourceEntityTypeIds=[]),new ci({bidirectional:this.bidirectional,dst:this.destinationEntityTypeIds,entityType:this.entityType,src:this.sourceEntityTypeIds})}}]),t}(),li=new et("PropertyType"),pi=function(){function t(e){O(this,t),N(this,"analyzer",void 0),N(this,"datatype",void 0),N(this,"description",void 0),N(this,"enumValues",void 0),N(this,"id",void 0),N(this,"indexType",void 0),N(this,"multiValued",void 0),N(this,"pii",void 0),N(this,"schemas",void 0),N(this,"title",void 0),N(this,"type",void 0),this.datatype=e.datatype,this.schemas=e.schemas,this.title=e.title,this.type=e.type,dt(e.analyzer)&&(this.analyzer=e.analyzer),dt(e.description)&&(this.description=e.description),dt(e.enumValues)&&(this.enumValues=e.enumValues),dt(e.id)&&(this.id=e.id),dt(e.indexType)&&(this.indexType=e.indexType),dt(e.multiValued)&&(this.multiValued=e.multiValued),dt(e.pii)&&(this.pii=e.pii)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t,e={datatype:this.datatype,schemas:ei()(t=this.schemas).call(t,(function(t){return t.toObject()})),title:this.title,type:this.type.toObject()};return dt(this.analyzer)&&(e.analyzer=this.analyzer),dt(this.description)&&(e.description=this.description),dt(this.enumValues)&&(e.enumValues=this.enumValues),dt(this.id)&&(e.id=this.id),dt(this.indexType)&&(e.indexType=this.indexType),dt(this.multiValued)&&(e.multiValued=this.multiValued),dt(this.pii)&&(e.pii=this.pii),e}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),di=function(){function t(e){O(this,t),N(this,"analyzer",void 0),N(this,"datatype",void 0),N(this,"description",void 0),N(this,"enumValues",void 0),N(this,"id",void 0),N(this,"indexType",void 0),N(this,"multiValued",void 0),N(this,"pii",void 0),N(this,"schemas",void 0),N(this,"title",void 0),N(this,"type",void 0),(0,K.isImmutable)(e)?(this.setAnalyzer(e.get("analyzer")),this.setDataType(e.get("datatype")),this.setDescription(e.get("description")),this.setEnumValues(e.get("enumValues")),this.setId(e.get("id")),this.setIndexType(e.get("indexType")),this.setMultiValued(e.get("multiValued")),this.setPII(e.get("pii")),this.setSchemas(e.get("schemas")),this.setTitle(e.get("title")),this.setType(e.get("type"))):dt(e)&&(this.setAnalyzer(e.analyzer),this.setDataType(e.datatype),this.setDescription(e.description),this.setEnumValues(e.enumValues),this.setId(e.id),this.setIndexType(e.indexType),this.setMultiValued(e.multiValued),this.setPII(e.pii),this.setSchemas(e.schemas),this.setTitle(e.title),this.setType(e.type))}return z(t,[{key:"setAnalyzer",value:function(t){if(!dt(t)||mt(t))return this;if(!jr[t])throw new Error("invalid parameter: analyzer must be a valid AnalyzerType");return this.analyzer=t,this}},{key:"setDataType",value:function(t){if(!gt(t))throw new Error("invalid parameter: datatype must be a non-empty string");return this.datatype=t,this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error("invalid parameter: description must be a non-empty string");return this.description=t,this}},{key:"setEnumValues",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "values" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "values" must be a non-empty array of non-empty strings');return this.enumValues=e.toJS(),this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error("invalid parameter: propertyTypeId must be a valid UUID");return this.id=t,this}},{key:"setIndexType",value:function(t){if(!dt(t)||mt(t))return this;if(!Sr[t])throw new Error("invalid parameter: indexType must be a valid IndexType");return this.indexType=t,this}},{key:"setMultiValued",value:function(t){if(!dt(t))return this;if(!0!==t&&!1!==t)throw new Error("invalid parameter: multiValued must be a boolean");return this.multiValued=t,this}},{key:"setPII",value:function(t){if(!dt(t))return this;if(!0!==t&&!1!==t)throw new Error("invalid parameter: pii must be a boolean");return this.pii=t,this}},{key:"setSchemas",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "schemas" must be an array');try{var e;this.schemas=ei()(e=(0,K.Set)(t)).call(e,(function(t){return Et.of(t)})).toJS()}catch(t){throw new Error('invalid parameter: "schemas" must be a non-empty array of valid FQNs')}return this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"setType",value:function(t){return this.type=Et.of(t),this}},{key:"build",value:function(){if(!dt(this.datatype))throw new Error('missing property: "datatype" is a required property');if(!dt(this.title))throw new Error('missing property: "title" is a required property');if(!dt(this.type))throw new Error('missing property: "type" is a required property');return this.schemas||(this.schemas=[]),new pi({analyzer:this.analyzer,datatype:this.datatype,description:this.description,enumValues:this.enumValues,id:this.id,indexType:this.indexType,multiValued:this.multiValued,pii:this.pii,schemas:this.schemas,title:this.title,type:this.type})}}]),t}(),hi=new et("Schema"),fi=function(){function t(e){O(this,t),N(this,"entityTypes",void 0),N(this,"fqn",void 0),N(this,"propertyTypes",void 0),this.entityTypes=e.entityTypes,this.fqn=e.fqn,this.propertyTypes=e.propertyTypes}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t,e;return{entityTypes:ei()(t=this.entityTypes).call(t,(function(t){return t.toObject()})),fqn:this.fqn.toObject(),propertyTypes:ei()(e=this.propertyTypes).call(e,(function(t){return t.toObject()}))}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),mi=function(){function t(e){O(this,t),N(this,"entityTypes",void 0),N(this,"fqn",void 0),N(this,"propertyTypes",void 0),(0,K.isImmutable)(e)?(this.setEntityTypes(e.get("entityTypes")),this.setFQN(e.get("fqn")),this.setPropertyTypes(e.get("propertyTypes"))):dt(e)&&(this.setEntityTypes(e.entityTypes),this.setFQN(e.fqn),this.setPropertyTypes(e.propertyTypes))}return z(t,[{key:"setEntityTypes",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "entityTypes" must be an array');try{var e;this.entityTypes=ei()(e=(0,K.Set)(t)).call(e,(function(t){return new oi(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "entityTypes" must be an array of EntityTypes')}return this}},{key:"setFQN",value:function(t){return this.fqn=Et.of(t),this}},{key:"setPropertyTypes",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "propertyTypes" must be an array');try{var e;this.propertyTypes=ei()(e=(0,K.Set)(t)).call(e,(function(t){return new di(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "propertyTypes" must be an array of PropertyTypes')}return this}},{key:"build",value:function(){if(!this.fqn)throw new Error('missing property: "fqn" is a required property');return this.entityTypes||(this.entityTypes=[]),this.propertyTypes||(this.propertyTypes=[]),new fi({entityTypes:this.entityTypes,fqn:this.fqn,propertyTypes:this.propertyTypes})}}]),t}(),yi=function(t){return ke(t,mi,hi)},vi=new et("EntityDataModelApi");function gi(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(zt).put(w()(r=w()(n=w()(i="/".concat(Ft,"/")).call(i,t,"/")).call(n,"dst","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",vi.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",vi.error(a,t),j().reject(a))}function bi(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(zt).put(w()(r=w()(n="/".concat(ee,"/")).call(n,t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(i='invalid parameter: "propertyTypeId" must be a valid UUID',vi.error(i,e),j().reject(i)):(i='invalid parameter: "entityTypeId" must be a valid UUID',vi.error(i,t),j().reject(i))}function Ii(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(zt).put(w()(r=w()(n=w()(i="/".concat(Ft,"/")).call(i,t,"/")).call(n,"src","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",vi.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",vi.error(a,t),j().reject(a))}function ji(t){var e="";return ke(t,ui,si)?cr(zt).post("/".concat(Ft),t).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(e='invalid parameter: "associationType" must be a valid AssociationType',vi.error(e,t),j().reject(e))}function Ti(t){var e="";return ke(t,oi,ii)?cr(zt).post("/".concat(ee),t).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(e='invalid parameter: "entityType" must be a valid EntityType',vi.error(e,t),j().reject(e))}function wi(t){var e="";return ke(t,di,li)?cr(zt).post("/".concat(he),t).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(e='invalid parameter: "propertyType" must be a valid PropertyType',vi.error(e,t),j().reject(e))}function Ei(t){var e="";return yi(t)?cr(zt).post("/".concat(me),t).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(e='invalid parameter: "schema" must be a valid Schema',vi.error(e,t),j().reject(e))}function Si(t){var e,r="";return Ue(t)?cr(zt).delete(w()(e="/".concat(Ft,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(r='invalid parameter: "associationTypeId" must be a valid UUID',vi.error(r,t),j().reject(r))}function Ui(t){var e,r="";return Ue(t)?cr(zt).delete(w()(e="/".concat(ee,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(r='invalid parameter: "entityTypeId" must be a valid UUID',vi.error(r,t),j().reject(r))}function Di(t){var e,r="";return Ue(t)?cr(zt).delete(w()(e="/".concat(he,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(r='invalid parameter: "propertyTypeId" must be a valid UUID',vi.error(r,t),j().reject(r))}function Ai(){var t;return cr(zt).get(w()(t="/".concat(Ft,"/")).call(t,ee)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)}))}function ki(){return cr(zt).get("/".concat(Ft)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)}))}function Oi(){return cr(zt).get("/".concat(ee)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)}))}function xi(){return cr(zt).get("/".concat(he)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)}))}function Ci(){return cr(zt).get("/".concat(me)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)}))}function zi(t){var e,r="";return Ue(t)?cr(zt).get(w()(e="/".concat(Ft,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(r='invalid parameter: "associationTypeId" must be a valid UUID',vi.error(r,t),j().reject(r))}function Ni(){return cr(zt).get("/").then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)}))}function Pi(t){var e="";return Se(t,vt)?cr(zt).post("/",t).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(e='invalid parameter: "projection" must be an array of objects',vi.error(e,t),j().reject(e))}function Ri(t){var e,r="";return Ue(t)?cr(zt).get(w()(e="/".concat(ee,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(r='invalid parameter: "entityTypeId" must be a valid UUID',vi.error(r,t),j().reject(r))}function qi(t){var e,r="";return Ue(t)?cr(zt).get(w()(e="/".concat(he,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(r='invalid parameter: "propertyTypeId" must be a valid UUID',vi.error(r,t),j().reject(r))}function _i(t){var e,r,n="";if(!Et.isValid(t))return n='invalid parameter: "schemaFQN" must be a valid FQN',vi.error(n,t),j().reject(n);var i=t.namespace,a=t.name;return cr(zt).get(w()(e=w()(r="/".concat(me,"/")).call(r,i,"/")).call(e,a)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)}))}function Mi(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(zt).delete(w()(r=w()(n=w()(i="/".concat(Ft,"/")).call(i,t,"/")).call(n,"dst","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",vi.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",vi.error(a,t),j().reject(a))}function Li(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(zt).delete(w()(r=w()(n="/".concat(ee,"/")).call(n,t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(i="invalid parameter: propertyTypeId must be a valid UUID",vi.error(i,e),j().reject(i)):(i="invalid parameter: entityTypeId must be a valid UUID",vi.error(i,t),j().reject(i))}function Ki(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(zt).delete(w()(r=w()(n=w()(i="/".concat(Ft,"/")).call(i,t,"/")).call(n,"src","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",vi.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",vi.error(a,t),j().reject(a))}function Fi(t,e){var r,n="";return Ue(t)?vt(e)?ni()(e,"type")&&!Et.isValid(e.type)?(n="invalid parameter: type must be a valid FQN",vi.error(n,e.type),j().reject(n)):ni()(e,"name")&&!gt(e.name)?(n="invalid parameter: name must be a non-empty string",vi.error(n,e.name),j().reject(n)):ni()(e,"title")&&!gt(e.title)?(n="invalid parameter: title must be a non-empty string",vi.error(n,e.title),j().reject(n)):ni()(e,"description")&&!gt(e.description)?(n="invalid parameter: description must be a non-empty string",vi.error(n,e.description),j().reject(n)):ni()(e,"contacts")&&!bt(e.contacts)?(n="invalid parameter: contacts must be a non-empty string",vi.error(n,e.contacts),j().reject(n)):cr(zt).patch(w()(r="/".concat(ee,"/")).call(r,t),e).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(n="invalid parameter: metadata must be a non-empty object",vi.error(n,e),j().reject(n)):(n="invalid parameter: entityTypeId must be a valid UUID",vi.error(n,t),j().reject(n))}function Ji(t,e){var r,n="";return Ue(t)?vt(e)?ni()(e,"type")&&!Et.isValid(e.type)?(n="invalid parameter: type must be a valid FQN",vi.error(n,e.type),j().reject(n)):ni()(e,"name")&&!gt(e.name)?(n="invalid parameter: name must be a non-empty string",vi.error(n,e.name),j().reject(n)):ni()(e,"title")&&!gt(e.title)?(n="invalid parameter: title must be a non-empty string",vi.error(n,e.title),j().reject(n)):ni()(e,"description")&&!gt(e.description)?(n="invalid parameter: description must be a non-empty string",vi.error(n,e.description),j().reject(n)):ni()(e,"contacts")&&!bt(e.contacts)?(n="invalid parameter: contacts must be a non-empty string",vi.error(n,e.contacts),j().reject(n)):cr(zt).patch(w()(r="/".concat(he,"/")).call(r,t),e).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)})):(n="invalid parameter: metadata must be a non-empty object",vi.error(n,e),j().reject(n)):(n="invalid parameter: propertyTypeId must be a valid UUID",vi.error(n,t),j().reject(n))}function Bi(t){var e,r,n,i,a="";if(!yi(t))return a='invalid parameter: "schema" must be a valid Schema',vi.error(a,t),j().reject(a);var o={action:Ir.REPLACE,entityTypes:ei()(e=t.entityTypes).call(e,(function(t){return t.id})),propertyTypes:ei()(r=t.propertyTypes).call(r,(function(t){return t.id}))};return cr(zt).patch(w()(n=w()(i="/".concat(me,"/")).call(i,t.fqn.namespace,"/")).call(n,t.fqn.name),o).then((function(t){return t.data})).catch((function(t){return vi.error(t),j().reject(t)}))}var Vi=r(7175),Gi=r.n(Vi),Qi=new et("EntitySet"),Hi=function(){function t(e){O(this,t),N(this,"contacts",void 0),N(this,"description",void 0),N(this,"entityTypeId",void 0),N(this,"flags",void 0),N(this,"id",void 0),N(this,"linkedEntitySets",void 0),N(this,"name",void 0),N(this,"organizationId",void 0),N(this,"title",void 0),this.contacts=e.contacts,this.entityTypeId=e.entityTypeId,this.name=e.name,this.title=e.title,dt(e.description)&&(this.description=e.description),dt(Gi()(e))&&(this.flags=Gi()(e)),dt(e.id)&&(this.id=e.id),dt(e.linkedEntitySets)&&(this.linkedEntitySets=e.linkedEntitySets),dt(e.organizationId)&&(this.organizationId=e.organizationId)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t={contacts:this.contacts,entityTypeId:this.entityTypeId,name:this.name,title:this.title};return dt(this.description)&&(t.description=this.description),dt(Gi()(this))&&(t.flags=Gi()(this)),dt(this.id)&&(t.id=this.id),dt(this.linkedEntitySets)&&(t.linkedEntitySets=this.linkedEntitySets),dt(this.organizationId)&&(t.organizationId=this.organizationId),t}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),Wi=function(){function t(e){O(this,t),N(this,"contacts",void 0),N(this,"description",void 0),N(this,"entityTypeId",void 0),N(this,"flags",void 0),N(this,"id",void 0),N(this,"linkedEntitySets",void 0),N(this,"name",void 0),N(this,"organizationId",void 0),N(this,"title",void 0),(0,K.isImmutable)(e)?(this.setContacts(e.get("contacts")),this.setDescription(e.get("description")),this.setEntityTypeId(e.get("entityTypeId")),this.setFlags(e.get("flags")),this.setId(e.get("id")),this.setLinkedEntitySets(e.get("linkedEntitySets")),this.setName(e.get("name")),this.setOrganizationId(e.get("organizationId")),this.setTitle(e.get("title"))):dt(e)&&(this.setContacts(e.contacts),this.setDescription(e.description),this.setEntityTypeId(e.entityTypeId),this.setFlags(Gi()(e)),this.setId(e.id),this.setLinkedEntitySets(e.linkedEntitySets),this.setName(e.name),this.setOrganizationId(e.organizationId),this.setTitle(e.title))}return z(t,[{key:"setContacts",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "contacts" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "contacts" must be a non-empty array of non-empty strings');return this.contacts=e.toJS(),this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setEntityTypeId",value:function(t){if(!Ue(t))throw new Error('invalid parameter: "entityTypeId" must be a valid UUID');return this.entityTypeId=t,this}},{key:"setFlags",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "flags" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,(function(t){return gt(t)&&wr[t]})))throw new Error('invalid parameter: "flags" must be an array of EntitySetFlagTypes');return this.flags=e.toJS(),this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "entitySetId" must be a valid UUID');return this.id=t,this}},{key:"setLinkedEntitySets",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "entitySetIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "entitySetIds" must be a non-empty array of UUIDs');return this.linkedEntitySets=e.toJS(),this}},{key:"setName",value:function(t){if(!gt(t))throw new Error('invalid parameter: "name" must be a non-empty string');return this.name=t,this}},{key:"setOrganizationId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "organizationId" must be a valid UUID');return this.organizationId=t,this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"build",value:function(){if(!this.entityTypeId)throw new Error('missing property: "entityTypeId" is a required property');if(!this.name)throw new Error('missing property: "name" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');return this.contacts||(this.contacts=[]),new Hi({contacts:this.contacts,description:this.description,entityTypeId:this.entityTypeId,flags:Gi()(this),id:this.id,linkedEntitySets:this.linkedEntitySets,name:this.name,organizationId:this.organizationId,title:this.title})}}]),t}(),$i=function(t){return ke(t,Wi,Qi)},Zi=new et("EntitySetsApi");function Xi(t){var e="";return yt(t)?vr()(t).call(t,$i)?cr(Nt).post("/",t).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):(e="invalid parameter: entitySets must be a non-empty array of valid EntitySets",Zi.error(e,t),j().reject(e)):(e="invalid parameter: entitySets must be a non-empty array",Zi.error(e,t),j().reject(e))}function Yi(t){var e,r="";return Ue(t)?cr(Nt).delete(w()(e="/".concat(Kt,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Zi.error(r,t),j().reject(r))}function ta(){return cr(Nt).get("/").then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)}))}function ea(t){var e,r="";return Ue(t)?cr(Nt).get(w()(e="/".concat(Kt,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Zi.error(r,t),j().reject(r))}function ra(t){var e,r="";return gt(t)?cr(Nt).get(w()(e="/".concat(ie,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):(r="invalid parameter: entitySetName must be a non-empty string",Zi.error(r,t),j().reject(r))}function na(t){var e="";return yt(t)?vr()(t).call(t,gt)?cr(Nt).post("/".concat(ie),t).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):(e='invalid parameter: "entitySetNames" must be an array of strings',Zi.error(e,t),j().reject(e)):(e='invalid parameter: "entitySetNames" must be a non-empty array',Zi.error(e,t),j().reject(e))}function ia(t){var e="";if(!yt(t))return e='invalid parameter: "idsOrNames" must be a non-empty array',Zi.error(e,t),j().reject(e);var r=(0,K.Set)(t);return vr()(r).call(r,Ue)?cr(Nt).post("/".concat("by-id"),r.toJS()).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):vr()(r).call(r,gt)?cr(Nt).post("/".concat("by-name"),r.toJS()).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):(e='invalid parameter: "idsOrNames" must be an array of EntitySet ids or names',Zi.error(e,t),j().reject(e))}function aa(t,e){var r,n,i,a,o,s="";return Ue(t)?dt(e)?dt(e)&&!Ue(e)?(s="invalid parameter: propertyTypeId must be a valid UUID",Zi.error(s,e),j().reject(s)):cr(Nt).get(w()(r=w()(n=w()(i="/".concat(Kt,"/")).call(i,t,"/")).call(n,"properties","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):cr(Nt).get(w()(a=w()(o="/".concat(Kt,"/")).call(o,t,"/")).call(a,ce)).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):(s="invalid parameter: entitySetId must be a valid UUID",Zi.error(s,t),j().reject(s))}function oa(t){var e,r="";if(!De(t))return r="invalid parameter: entitySetIds must be a valid UUID array",Zi.error(r,t),j().reject(r);var n=(0,K.Set)(t).toJS();return cr(Nt).post(w()(e="/".concat(Kt,"/")).call(e,ce),n).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)}))}function sa(t,e){var r,n,i="";return Ue(t)?vt(e)?cr(Nt).patch(w()(r=w()(n="/".concat(Kt,"/")).call(n,t,"/")).call(r,ce),e).then((function(t){return t.data})).catch((function(t){return Zi.error(t),j().reject(t)})):(i="invalid parameter: update must be a non-empty object",Zi.error(i,e),j().reject(i)):(i="invalid parameter: entitySetId must be a valid UUID",Zi.error(i,t),j().reject(i))}var ca=new et("Principal"),ua=function(){function t(e){O(this,t),N(this,"id",void 0),N(this,"type",void 0),this.id=e.id,this.type=e.type}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{id:this.id,type:this.type}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),la=function(){function t(e){O(this,t),N(this,"id",void 0),N(this,"type",void 0),(0,K.isImmutable)(e)?(this.setId(e.get("id")),this.setType(e.get("type"))):dt(e)&&(this.setId(e.id),this.setType(e.type))}return z(t,[{key:"setId",value:function(t){if(!gt(t))throw new Error('invalid parameter: "id" must be a non-empty string');return this.id=t,this}},{key:"setType",value:function(t){if(!Dr[t])throw new Error('invalid parameter: "type" must be a valid PrincipalType');return this.type=t,this}},{key:"build",value:function(){if(!this.id)throw new Error('missing property: "id" is a required property');if(!this.type)throw new Error('missing property: "type" is a required property');return new ua({id:this.id,type:this.type})}}]),t}(),pa=(new et("Ace"),function(){function t(e){O(this,t),N(this,"permissions",void 0),N(this,"principal",void 0),this.principal=e.principal,this.permissions=e.permissions}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{permissions:this.permissions,principal:this.principal.toObject()}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),da=function(){function t(e){O(this,t),N(this,"permissions",void 0),N(this,"principal",void 0),(0,K.isImmutable)(e)?(this.setPermissions(e.get("permissions")),this.setPrincipal(e.get("principal"))):dt(e)&&(this.setPermissions(e.permissions),this.setPrincipal(e.principal))}return z(t,[{key:"setPermissions",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "permissions" must be an array');var e=(0,K.OrderedSet)(t);if(!vr()(e).call(e,(function(t){return Ur[t]})))throw new Error('invalid parameter: "permissions" must be an array of PermissionTypes');return this.permissions=e.toJS(),this}},{key:"setPrincipal",value:function(t){return this.principal=new la(t).build(),this}},{key:"build",value:function(){if(this.permissions||(this.permissions=[]),!this.principal)throw new Error("missing property: principal is a required property");return new pa({permissions:this.permissions,principal:this.principal})}}]),t}(),ha=(new et("Acl"),function(){function t(e){O(this,t),N(this,"aces",void 0),N(this,"aclKey",void 0),this.aces=e.aces,this.aclKey=e.aclKey}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t;return{aces:ei()(t=this.aces).call(t,(function(t){return t.toObject()})),aclKey:this.aclKey}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),fa=function(){function t(e){O(this,t),N(this,"aces",void 0),N(this,"aclKey",void 0),(0,K.isImmutable)(e)?(this.setAces(e.get("aces")),this.setAclKey(e.get("aclKey"))):dt(e)&&(this.setAces(e.aces),this.setAclKey(e.aclKey))}return z(t,[{key:"setAces",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "aces" must be an array');try{var e;this.aces=ei()(e=(0,K.List)(t)).call(e,(function(t){return new da(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "aces" must be an array of Aces')}return this}},{key:"setAclKey",value:function(t){if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "aclKey" must be an array');var e=(0,K.OrderedSet)(t);if(e.isEmpty()||!vr()(e).call(e,Ue))throw new Error('invalid parameter: "aclKey" must be a non-empty array of UUIDs');return this.aclKey=e.toJS(),this}},{key:"build",value:function(){if(this.aces||(this.aces=[]),!this.aclKey)throw new Error('missing property: "aclKey" is a required property');return new ha({aces:this.aces,aclKey:this.aclKey})}}]),t}(),ma=new et("AclData"),ya=function(){function t(e){O(this,t),N(this,"acl",void 0),N(this,"action",void 0),this.acl=e.acl,this.action=e.action}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{acl:this.acl.toObject(),action:this.action}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),va=function(){function t(e){O(this,t),N(this,"acl",void 0),N(this,"action",void 0),(0,K.isImmutable)(e)?(this.setAcl(e.get("acl")),this.setAction(e.get("action"))):dt(e)&&(this.setAcl(e.acl),this.setAction(e.action))}return z(t,[{key:"setAcl",value:function(t){return this.acl=new fa(t).build(),this}},{key:"setAction",value:function(t){if(!Ir[t])throw new Error('invalid parameter: "action" must be a valid ActionType');return this.action=t,this}},{key:"build",value:function(){if(!this.acl)throw new Error('missing property: "acl" is a required property');if(!this.action)throw new Error('missing property: "action" is a required property');return new ya({acl:this.acl,action:this.action})}}]),t}(),ga=function(t){return ke(t,va,ma)},ba=(new et("App"),function(){function t(e){O(this,t),N(this,"appTypeIds",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"name",void 0),N(this,"title",void 0),N(this,"url",void 0),this.appTypeIds=e.appTypeIds,this.name=e.name,this.title=e.title,this.url=e.url,dt(e.id)&&(this.id=e.id),dt(e.description)&&(this.description=e.description)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t={appTypeIds:this.appTypeIds,name:this.name,title:this.title,url:this.url};return dt(this.id)&&(t.id=this.id),dt(this.description)&&(t.description=this.description),t}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),Ia=function(){function t(e){O(this,t),N(this,"appTypeIds",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"name",void 0),N(this,"title",void 0),N(this,"url",void 0),(0,K.isImmutable)(e)?(this.setAppTypeIds(e.get("appTypeIds")),this.setDescription(e.get("description")),this.setId(e.get("id")),this.setName(e.get("name")),this.setTitle(e.get("title")),this.setUrl(e.get("url"))):dt(e)&&(this.setAppTypeIds(e.appTypeIds),this.setDescription(e.description),this.setId(e.id),this.setName(e.name),this.setTitle(e.title),this.setUrl(e.url))}return z(t,[{key:"setAppTypeIds",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "appTypeIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "appTypeIds" must be a non-empty array of UUIDs');return this.appTypeIds=e.toJS(),this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "id" must be a valid UUID');return this.id=t,this}},{key:"setName",value:function(t){if(!gt(t))throw new Error('invalid parameter: "name" must be a non-empty string');return this.name=t,this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"setUrl",value:function(t){if(!gt(t))throw new Error('invalid parameter: "url" must be a non-empty string');return this.url=t,this}},{key:"build",value:function(){if(this.appTypeIds||(this.appTypeIds=[]),!this.name)throw new Error('missing property: "name" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');if(!this.url)throw new Error('missing property: "url" is a required property');return new ba({appTypeIds:this.appTypeIds,description:this.description,id:this.id,name:this.name,title:this.title,url:this.url})}}]),t}(),ja=(new et("AppType"),function(){function t(e){O(this,t),N(this,"description",void 0),N(this,"entityTypeId",void 0),N(this,"id",void 0),N(this,"title",void 0),N(this,"type",void 0),this.entityTypeId=e.entityTypeId,this.title=e.title,this.type=e.type,dt(e.description)&&(this.description=e.description),dt(e.id)&&(this.id=e.id)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t={entityTypeId:this.entityTypeId,title:this.title,type:this.type.toObject()};return dt(this.description)&&(t.description=this.description),dt(this.id)&&(t.id=this.id),t}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),Ta=function(){function t(e){O(this,t),N(this,"description",void 0),N(this,"entityTypeId",void 0),N(this,"id",void 0),N(this,"title",void 0),N(this,"type",void 0),(0,K.isImmutable)(e)?(this.setDescription(e.get("description")),this.setEntityTypeId(e.get("entityTypeId")),this.setId(e.get("id")),this.setTitle(e.get("title")),this.setType(e.get("type"))):dt(e)&&(this.setDescription(e.description),this.setEntityTypeId(e.entityTypeId),this.setId(e.id),this.setTitle(e.title),this.setType(e.type))}return z(t,[{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setEntityTypeId",value:function(t){if(!Ue(t))throw new Error('invalid parameter: "entityTypeId" must be a valid UUID');return this.entityTypeId=t,this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "appTypeId" must be a valid UUID');return this.id=t,this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"setType",value:function(t){return this.type=Et.of(t),this}},{key:"build",value:function(){if(!this.entityTypeId)throw new Error('missing property: "entityTypeId" is a required property');if(!this.type)throw new Error('missing property: "type" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');return new ja({description:this.description,entityTypeId:this.entityTypeId,id:this.id,title:this.title,type:this.type})}}]),t}(),wa=(new et("EntityDataKey"),function(){function t(e){O(this,t),N(this,"entityKeyId",void 0),N(this,"entitySetId",void 0),this.entityKeyId=e.entityKeyId,this.entitySetId=e.entitySetId}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{entityKeyId:this.entityKeyId,entitySetId:this.entitySetId}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}()),Ea=function(){function t(e){O(this,t),N(this,"entityKeyId",void 0),N(this,"entitySetId",void 0),(0,K.isImmutable)(e)?(this.setEntityKeyId(e.get("entityKeyId")),this.setEntitySetId(e.get("entitySetId"))):dt(e)&&(this.setEntityKeyId(e.entityKeyId),this.setEntitySetId(e.entitySetId))}return z(t,[{key:"setEntityKeyId",value:function(t){if(!Ue(t))throw new Error("invalid parameter: entityKeyId must be a valid UUID");return this.entityKeyId=t,this}},{key:"setEntitySetId",value:function(t){if(!Ue(t))throw new Error("invalid parameter: entitySetId must be a valid UUID");return this.entitySetId=t,this}},{key:"build",value:function(){if(!this.entityKeyId)throw new Error("missing property: entityKeyId is a required property");if(!this.entitySetId)throw new Error("missing property: entitySetId is a required property");return new wa({entityKeyId:this.entityKeyId,entitySetId:this.entitySetId})}}]),t}(),Sa=r(8580),Ua=r.n(Sa),Da=r(455),Aa=r.n(Da),ka=new et("Grant"),Oa=function(){function t(e){O(this,t),N(this,"attribute",void 0),N(this,"grantType",void 0),N(this,"mappings",void 0),this.attribute=e.attribute,this.grantType=e.grantType,this.mappings=e.mappings}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){return{attribute:this.attribute,grantType:this.grantType,mappings:this.mappings}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),xa=function(){function t(e){O(this,t),N(this,"attribute",void 0),N(this,"grantType",void 0),N(this,"mappings",void 0),(0,K.isImmutable)(e)?(this.setAttribute(e.get("attribute")),this.setGrantType(e.get("grantType")),this.setMappings(e.get("mappings"))):dt(e)&&(this.setAttribute(e.attribute),this.setGrantType(e.grantType),this.setMappings(e.mappings))}return z(t,[{key:"setAttribute",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "attribute" must be a string');return this.attribute=t,this}},{key:"setGrantType",value:function(t){var e;if(!Ua()(e=Aa()(Er)).call(e,t))throw new Error('invalid parameter: "grantType" must be a valid GrantType');return this.grantType=t,this}},{key:"setMappings",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "mappings" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "mappings" must be a non-empty array of non-empty strings');return this.mappings=e.toJS(),this}},{key:"build",value:function(){if(this.attribute||(this.attribute=""),!this.grantType)throw new Error("missing property: grantType is a required property");return this.mappings||(this.mappings=[]),new Oa({attribute:this.attribute,grantType:this.grantType,mappings:this.mappings})}}]),t}();const Ca=require("lodash/isFinite");var za=r.n(Ca);const Na=require("lodash/mapValues");var Pa=r.n(Na),Ra=new et("Role"),qa="com.openlattice.organization.roles.Role",_a=function(){function t(e){O(this,t),N(this,"aclKey",void 0),N(this,"description",void 0),N(this,"id",void 0),N(this,"organizationId",void 0),N(this,"principal",void 0),N(this,"title",void 0),this.organizationId=e.organizationId,this.principal=e.principal,this.title=e.title,this[an]=qa,dt(e.description)&&(this.description=e.description),dt(e.id)&&(this.aclKey=[e.organizationId,e.id],this.id=e.id)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t={organizationId:this.organizationId,principal:this.principal.toObject(),title:this.title};return t[an]=qa,dt(this.description)&&(t.description=this.description),dt(this.id)&&(t.aclKey=[this.organizationId,this.id],t.id=this.id),t}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),Ma=function(){function t(e){O(this,t),N(this,"description",void 0),N(this,"id",void 0),N(this,"organizationId",void 0),N(this,"principal",void 0),N(this,"title",void 0),(0,K.isImmutable)(e)?(this.setDescription(e.get("description")),this.setId(e.get("id")),this.setOrganizationId(e.get("organizationId")),this.setPrincipal(e.get("principal")),this.setTitle(e.get("title"))):dt(e)&&(this.setDescription(e.description),this.setId(e.id),this.setOrganizationId(e.organizationId),this.setPrincipal(e.principal),this.setTitle(e.title))}return z(t,[{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "id" must be a valid UUID');return this.id=t,this}},{key:"setOrganizationId",value:function(t){if(!Ue(t))throw new Error('invalid parameter: "organizationId" must be a valid UUID');return this.organizationId=t,this}},{key:"setPrincipal",value:function(t){return this.principal=new la(t).build(),this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"build",value:function(){if(!this.organizationId)throw new Error('missing property: "organizationId" is a required property');if(!this.principal)throw new Error('missing property: "principal" is a required property');if(!this.title)throw new Error('missing property: "title" is a required property');return new _a({description:this.description,id:this.id,organizationId:this.organizationId,principal:this.principal,title:this.title})}}]),t}(),La=new et("Organization"),Ka=function(){function t(e){O(this,t),N(this,"apps",void 0),N(this,"connections",void 0),N(this,"description",void 0),N(this,"emailDomains",void 0),N(this,"grants",void 0),N(this,"id",void 0),N(this,"members",void 0),N(this,"metadataEntitySetIds",void 0),N(this,"partitions",void 0),N(this,"principal",void 0),N(this,"roles",void 0),N(this,"title",void 0),this.apps=e.apps,this.emailDomains=e.emailDomains,this.connections=e.connections,this.grants=e.grants,this.members=e.members,this.metadataEntitySetIds=e.metadataEntitySetIds,this.principal=e.principal,this.roles=e.roles,this.title=e.title,dt(e.description)&&(this.description=e.description),dt(e.id)&&(this.id=e.id),dt(e.partitions)&&(this.partitions=e.partitions)}return z(t,[{key:"toImmutable",value:function(){return(0,K.fromJS)(this.toObject())}},{key:"toObject",value:function(){var t,e,r={apps:this.apps,connections:this.connections,emailDomains:this.emailDomains,grants:Pa()(this.grants,(function(t){return Pa()(t,(function(t){return t.toObject()}))})),members:ei()(t=this.members).call(t,(function(t){return t.toObject()})),metadataEntitySetIds:this.metadataEntitySetIds,principal:this.principal.toObject(),roles:ei()(e=this.roles).call(e,(function(t){return t.toObject()})),title:this.title};return dt(this.description)&&(r.description=this.description),dt(this.id)&&(r.id=this.id),dt(this.partitions)&&(r.partitions=this.partitions),r}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),Fa=function(){function t(e){O(this,t),N(this,"apps",void 0),N(this,"connections",void 0),N(this,"description",void 0),N(this,"emailDomains",void 0),N(this,"grants",void 0),N(this,"id",void 0),N(this,"members",void 0),N(this,"metadataEntitySetIds",void 0),N(this,"partitions",void 0),N(this,"principal",void 0),N(this,"roles",void 0),N(this,"title",void 0),(0,K.isImmutable)(e)?(this.setApps(e.get("apps")),this.setConnections(e.get("connections")),this.setDescription(e.get("description")),this.setEmailDomains(e.get("emailDomains")),this.setGrants(e.get("grants")),this.setId(e.get("id")),this.setMembers(e.get("members")),this.setMetaDataEntitySetIds(e.get("metadataEntitySetIds")),this.setPartitions(e.get("partitions")),this.setPrincipal(e.get("principal")),this.setRoles(e.get("roles")),this.setTitle(e.get("title"))):dt(e)&&(this.setApps(e.apps),this.setConnections(e.connections),this.setDescription(e.description),this.setEmailDomains(e.emailDomains),this.setGrants(e.grants),this.setId(e.id),this.setMembers(e.members),this.setMetaDataEntitySetIds(e.metadataEntitySetIds),this.setPartitions(e.partitions),this.setPrincipal(e.principal),this.setRoles(e.roles),this.setTitle(e.title))}return z(t,[{key:"setApps",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "appIds" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,Ue))throw new Error('invalid parameter: "appIds" must be a non-empty array of UUIDs');return this.apps=e.toJS(),this}},{key:"setConnections",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "connections" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "connections" must be a non-empty array of non-empty strings');return this.connections=e.toJS(),this}},{key:"setDescription",value:function(t){if(!dt(t)||mt(t))return this;if(!gt(t))throw new Error('invalid parameter: "description" must be a non-empty string');return this.description=t,this}},{key:"setEmailDomains",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "emailDomains" must be an array');var e=(0,K.Set)(t);if(!vr()(e).call(e,gt))throw new Error('invalid parameter: "emailDomains" must be a non-empty array of non-empty strings');return this.emailDomains=e.toJS(),this}},{key:"setGrants",value:function(t){if(!dt(t))return this;if(!st()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "grants" must be an object');try{this.grants=(0,K.Map)().withMutations((function(e){var r;fn()(r=(0,K.fromJS)(t)).call(r,(function(t,r){if(!Ue(r))throw new Error('invalid parameter: "grants" must be a map where all keys are valid UUIDs');fn()(t).call(t,(function(t,n){e.setIn([r,n],new xa(t).build())}))}))})).toJS()}catch(t){throw new Error('invalid parameter: "grants" must be a map where all values are a map of GrantType to Grant')}return this}},{key:"setId",value:function(t){if(!dt(t)||mt(t))return this;if(!Ue(t))throw new Error('invalid parameter: "organizationId" must be a valid UUID');return this.id=t,this}},{key:"setMembers",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "members" must be an array');try{var e;this.members=ei()(e=(0,K.Set)(t)).call(e,(function(t){return new la(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "members" must be an array of Principals')}return this}},{key:"setMetaDataEntitySetIds",value:function(t){if(!dt(t))return this;if(!st()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "metadataEntitySetIds" must be an object');if(this.metadataEntitySetIds={},(0,K.has)(t,"columns")){var e=(0,K.get)(t,"columns");Ue(e)&&(this.metadataEntitySetIds.columns=e)}if((0,K.has)(t,"datasets")){var r=(0,K.get)(t,"datasets");Ue(r)&&(this.metadataEntitySetIds.datasets=r)}if((0,K.has)(t,"organization")){var n=(0,K.get)(t,"organization");Ue(n)&&(this.metadataEntitySetIds.organization=n)}return this}},{key:"setPartitions",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "partitions" must be an array');var e=(0,K.List)(t);if(!vr()(e).call(e,za()))throw new Error('invalid parameter: "partitions" must be a non-empty array of numbers');return this.partitions=e.toJS(),this}},{key:"setPrincipal",value:function(t){if(this.principal=new la(t).build(),this.principal.type!==Dr.ORGANIZATION)throw new Error('invalid parameter: "principal" must be PrincipalType.ORGANIZATION');return this}},{key:"setRoles",value:function(t){if(!dt(t))return this;if(!nt()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "roles" must be an array');try{var e;this.roles=ei()(e=(0,K.Set)(t)).call(e,(function(t){return new Ma(t).build()})).toJS()}catch(t){throw new Error('invalid parameter: "roles" must be an array of Roles')}return this}},{key:"setTitle",value:function(t){if(!gt(t))throw new Error('invalid parameter: "title" must be a non-empty string');return this.title=t,this}},{key:"build",value:function(){if(!this.title)throw new Error('missing property: "title" is a required property');if(!this.principal)throw new Error('missing property: "principal" is a required property');return this.apps||(this.apps=[]),this.connections||(this.connections=[]),this.emailDomains||(this.emailDomains=[]),this.grants||(this.grants={}),this.members||(this.members=[]),this.metadataEntitySetIds||(this.metadataEntitySetIds={}),this.roles||(this.roles=[]),new Ka({apps:this.apps,connections:this.connections,description:this.description,emailDomains:this.emailDomains,grants:this.grants,id:this.id,members:this.members,metadataEntitySetIds:this.metadataEntitySetIds,partitions:this.partitions,principal:this.principal,roles:this.roles,title:this.title})}}]),t}(),Ja=new et("PermissionsApi");function Ba(t){var e="";return yt(t)?vr()(t).call(t,Ue)?cr(Rt).post("/",t).then((function(t){return t.data})).catch((function(t){return Ja.error(t),j().reject(t)})):(e='invalid parameter: "aclKey" must be an array of valid UUIDs',Ja.error(e,t),j().reject(e)):(e='invalid parameter: "aclKey" must be a non-empty array',Ja.error(e,t),j().reject(e))}function Va(t){var e="";return yt(t)?vr()(t).call(t,(function(t){return vr()(t).call(t,Ue)}))?cr(Rt).post("/".concat(Bt),t).then((function(t){return t.data})).catch((function(t){return Ja.error(t),j().reject(t)})):(e='invalid parameter: "aclKeys" is not valid UUID[][]',Ja.error(e,t),j().reject(e)):(e='invalid parameter: "aclKeys" must be a non-empty array',Ja.error(e,t),j().reject(e))}function Ga(t){var e="";return yt(t)?vr()(t).call(t,Ue)?cr(Rt).post("/".concat("explain"),t).then((function(t){return t.data})).catch((function(t){return Ja.error(t),j().reject(t)})):(e='invalid parameter: "aclKey" must be an array of valid UUIDs',Ja.error(e,t),j().reject(e)):(e='invalid parameter: "aclKey" must be a non-empty array',Ja.error(e,t),j().reject(e))}function Qa(t){var e="";return ga(t)?cr(Rt).patch("/",t).then((function(t){return t.data})).catch((function(t){return Ja.error(t),j().reject(t)})):(e="invalid parameter: aclData must be a valid AclData object",Ja.error(e,t),j().reject(e))}function Ha(t){var e="";return yt(t)?vr()(t).call(t,ga)?cr(Rt).patch("/".concat(Ie),t).then((function(t){return t.data})).catch((function(t){return Ja.error(t),j().reject(t)})):(e="invalid parameter: aclData must be an array of valid AclData objects",Ja.error(e,t),j().reject(e)):(e="invalid parameter: aclData must be a non-empty array",Ja.error(e,t),j().reject(e))}var Wa=new et("OrganizationsApi"),$a={headers:{"Content-Type":"text/plain"}};function Za(t,e,r){var n="";if(!Ue(t))return n="invalid parameter: organizationId must be a valid UUID",Wa.error(n,t),j().reject(n);if(!gt(e))return n="invalid parameter: principalId must be a non-empty string",Wa.error(n,e),j().reject(n);if(!gt(r)||!Ir[r])return n="invalid parameter: action must be a valid ActionType",Wa.error(n,r),j().reject(n);var i=(new la).setId(e).setType(Dr.ORGANIZATION).build(),a=(new da).setPermissions([Ur.READ]).setPrincipal(i).build(),o=(new fa).setAclKey([t]).setAces([a]).build();return Qa((new va).setAction(r).setAcl(o).build())}function Xa(t,e){var r,n,i="";if(!Ue(t))return i='invalid parameter: "organizationId" must be a valid UUID',Wa.error(i,t),j().reject(i);if(!dt(e)||ht(e))n=[];else{if(!bt(e))return i='invalid parameter: "connections" must be an array of strings',Wa.error(i,e),j().reject(i);n=(0,K.Set)(e).toJS()}return cr(Pt).post(w()(r="/".concat(t,"/")).call(r,Gt),n).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)}))}function Ya(t,e){var r,n,i="";if(!Ue(t))return i='invalid parameter: "organizationId" must be a valid UUID',Wa.error(i,t),j().reject(i);if(!dt(e)||ht(e))n=[];else{if(!bt(e))return i='invalid parameter: "domains" must be an array of strings',Wa.error(i,e),j().reject(i);n=(0,K.Set)(e).toJS()}return cr(Pt).post(w()(r="/".concat(t,"/")).call(r,Yt),n).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)}))}function to(t,e){var r,n,i,a="";return Ue(t)?gt(e)?cr(Pt).put(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,pe,"/")).call(n,se,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(a='invalid parameter: "memberId" must be a non-empty string',Wa.error(a,e),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Wa.error(a,t),j().reject(a))}function eo(t,e,r){var n,i,a,o,s,c="";return Ue(t)?Ue(e)?gt(r)?cr(Pt).put(w()(n=w()(i=w()(a=w()(o=w()(s="/".concat(t,"/")).call(s,pe,"/")).call(o,fe,"/")).call(a,e,"/")).call(i,se,"/")).call(n,r)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(c='invalid parameter: "memberId" must be a non-empty string',Wa.error(c,r),j().reject(c)):(c='invalid parameter: "roleId" must be a valid UUID',Wa.error(c,e),j().reject(c)):(c='invalid parameter: "organizationId" must be a valid UUID',Wa.error(c,t),j().reject(c))}function ro(t){var e="";return ke(t,Fa,La)?cr(Pt).post("/",t).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(e='invalid parameter: "organization" must be a valid Organization',Wa.error(e,t),j().reject(e))}function no(t){var e="";return ke(t,Ma,Ra)?cr(Pt).post("/".concat(fe),t).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(e='invalid parameter: "role" must be a valid Role',Wa.error(e,t),j().reject(e))}function io(t){var e="";return Ue(t)?cr(Pt).delete("/".concat(t)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(e='invalid parameter: "organizationId" must be a valid UUID',Wa.error(e,t),j().reject(e))}function ao(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(Pt).delete(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,pe,"/")).call(n,fe,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(a='invalid parameter: "roleId" must be a valid UUID',Wa.error(a,e),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Wa.error(a,t),j().reject(a))}function oo(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(Pt).get(w()(r=w()(n="/".concat(t,"/")).call(n,e,"/")).call(r,"destroy")).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(i='invalid parameter: "entitySetId" must be a valid UUID',Wa.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Wa.error(i,t),j().reject(i))}function so(){return cr(Pt).get("/").then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)}))}function co(t){var e="";return Ue(t)?cr(Pt).get("/".concat(t)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(e='invalid parameter: "organizationId" must be a valid UUID',Wa.error(e,t),j().reject(e))}function uo(t){var e,r="";return Ue(t)?cr(Pt).get(w()(e="/".concat(t,"/")).call(e,Ht)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(r='invalid parameter: "organizationId" must be a valid UUID',Wa.error(r,t),j().reject(r))}function lo(t){var e,r="";return Ue(t)?cr(Pt).get(w()(e="/".concat(t,"/")).call(e,Qt)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(r='invalid parameter: "organizationId" must be a valid UUID',Wa.error(r,t),j().reject(r))}function po(t){var e,r="";return Ue(t)?cr(Pt).get(w()(e="/".concat(t,"/")).call(e,te)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(r="invalid parameter: organizationId must be a valid UUID",Wa.error(r,t),j().reject(r))}function ho(t){var e,r="";return Ue(t)?cr(Pt).get(w()(e="/".concat(t,"/")).call(e,ae)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(r="invalid parameter: organizationId must be a valid UUID",Wa.error(r,t),j().reject(r))}function fo(t){var e,r,n="";return Ue(t)?cr(Pt).get(w()(e=w()(r="/".concat(t,"/")).call(r,pe,"/")).call(e,se)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(n="invalid parameter: organizationId must be a valid UUID",Wa.error(n,t),j().reject(n))}function mo(t){var e,r,n="";return Ue(t)?cr(Pt).get(w()(e=w()(r="/".concat(t,"/")).call(r,pe,"/")).call(e,fe)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(n="invalid parameter: organizationId must be a valid UUID",Wa.error(n,t),j().reject(n))}function yo(t,e){var r,n,i,a="";return Ue(t)?Ue(e)?cr(Pt).get(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,pe,"/")).call(n,fe,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(a="invalid parameter: roleId must be a valid UUID",Wa.error(a,e),j().reject(a)):(a="invalid parameter: organizationId must be a valid UUID",Wa.error(a,t),j().reject(a))}function vo(t,e){var r,n,i,a,o="";return Ue(t)?Ue(e)?cr(Pt).get(w()(r=w()(n=w()(i=w()(a="/".concat(t,"/")).call(a,pe,"/")).call(i,fe,"/")).call(n,e,"/")).call(r,se)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(o="invalid parameter: roleId must be a valid UUID",Wa.error(o,e),j().reject(o)):(o="invalid parameter: organizationId must be a valid UUID",Wa.error(o,t),j().reject(o))}function go(t,e){return Za(t,e,Ir.ADD)}function bo(t,e){var r,n="";return Ue(t)?vt(e)?cr(Pt).post(w()(r="/".concat(t,"/")).call(r,Ht),e).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(n='invalid parameter: "dataSource" must be a non-empty object',Wa.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Wa.error(n,t),j().reject(n))}function Io(t,e){var r,n,i="";if(!Ue(t))return i="invalid parameter: organizationId must be a valid UUID",Wa.error(i,t),j().reject(i);if(!dt(e)||ht(e))n=[];else{if(!bt(e))return i="invalid parameter: connections must be an array of strings",Wa.error(i,e),j().reject(i);n=(0,K.Set)(e).toJS()}return cr(Pt).delete(w()(r="/".concat(t,"/")).call(r,Gt),{data:n}).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)}))}function jo(t,e){var r,n,i="";if(!Ue(t))return i='invalid parameter: "organizationId" must be a valid UUID',Wa.error(i,t),j().reject(i);if(!dt(e)||ht(e))n=[];else{if(!bt(e))return i='invalid parameter: "domains" must be an array of strings',Wa.error(i,e),j().reject(i);n=(0,K.Set)(e).toJS()}return cr(Pt).delete(w()(r="/".concat(t,"/")).call(r,Yt),{data:n}).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)}))}function To(t,e){var r,n="";return Ue(t)?gt(e)?cr(Pt).post(w()(r="/".concat("promote","/")).call(r,t),e,$a).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(n='invalid parameter: "tableName" must be a non-empty string',Wa.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Wa.error(n,t),j().reject(n))}function wo(t,e){var r,n,i,a="";return Ue(t)?gt(e)?cr(Pt).delete(w()(r=w()(n=w()(i="/".concat(t,"/")).call(i,pe,"/")).call(n,se,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(a='invalid parameter: "memberId" must be a non-empty string',Wa.error(a,e),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Wa.error(a,t),j().reject(a))}function Eo(t,e,r){var n,i,a,o,s,c="";return Ue(t)?Ue(e)?gt(r)?cr(Pt).delete(w()(n=w()(i=w()(a=w()(o=w()(s="/".concat(t,"/")).call(s,pe,"/")).call(o,fe,"/")).call(a,e,"/")).call(i,se,"/")).call(n,r)).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(c='invalid parameter: "memberId" must be a non-empty string',Wa.error(c,r),j().reject(c)):(c='invalid parameter: "roleId" must be a valid UUID',Wa.error(c,e),j().reject(c)):(c='invalid parameter: "organizationId" must be a valid UUID',Wa.error(c,t),j().reject(c))}function So(t,e){var r,n="";return Ue(t)?gt(e)?cr(Pt).patch(w()(r="/".concat(t,"/")).call(r,Qt),e,$a).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(n='invalid parameter: "databaseName" must be a non-empty string',Wa.error(n,t),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Wa.error(n,t),j().reject(n))}function Uo(t,e){return Za(t,e,Ir.REMOVE)}function Do(t,e){var r,n,i="";return Ue(t)?Ue(e)?cr(Pt).get(w()(r=w()(n="/".concat(t,"/")).call(n,e,"/")).call(r,"transport")).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(i='invalid parameter: "entitySetId" must be a valid UUID',Wa.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Wa.error(i,t),j().reject(i))}function Ao(t,e,r){var n,i,a="";return Ue(t)?Ue(e)?vt(r)?cr(Pt).put(w()(n=w()(i="/".concat(t,"/")).call(i,Ht,"/")).call(n,e),r).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(a='invalid parameter: "dataSource" must be a non-empty object',Wa.error(a,r),j().reject(a)):(a='invalid parameter: "dataSourceId" must be a valid UUID',Wa.error(a,e),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Wa.error(a,t),j().reject(a))}function ko(t,e){var r,n,i="";if(!Ue(t))return i='invalid parameter: "organizationId" must be a valid UUID',Wa.error(i,t),j().reject(i);if(!dt(e)||mt(e))n="";else{if(!gt(e))return i='invalid parameter: "description" must be a non-empty string',Wa.error(i,e),j().reject(i);n=e}return cr(Pt).put(w()(r="/".concat(t,"/")).call(r,Xt),n,$a).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)}))}function Oo(t,e){var r,n="";return Ue(t)?gt(e)?cr(Pt).put(w()(r="/".concat(t,"/")).call(r,ge),e,$a).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(n='invalid parameter: "title" must be a non-empty string',Wa.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Wa.error(n,t),j().reject(n))}function xo(t,e,r){var n,i,a,o,s,c="";if(!Ue(t))return c='invalid parameter: "organizationId" must be a valid UUID',Wa.error(c,t),j().reject(c);if(!Ue(e))return c='invalid parameter: "roleId" must be a valid UUID',Wa.error(c,e),j().reject(c);if(!dt(r)||mt(r))s="";else{if(!gt(r))return c='invalid parameter: "description" must be a non-empty string',Wa.error(c,r),j().reject(c);s=r}return cr(Pt).put(w()(n=w()(i=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(i,e,"/")).call(n,Xt),s,$a).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)}))}function Co(t,e,r){var n,i,a,o,s="";return Ue(t)?Ue(e)?ke(r,xa,ka)?cr(Pt).put(w()(n=w()(i=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(i,e,"/")).call(n,"grant"),r).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(s='invalid parameter: "grant" must be a valid Grant',Wa.error(s,r),j().reject(s)):(s='invalid parameter: "roleId" must be a valid UUID',Wa.error(s,e),j().reject(s)):(s='invalid parameter: "organizationId" must be a valid UUID',Wa.error(s,t),j().reject(s))}function zo(t,e,r){var n,i,a,o,s="";return Ue(t)?Ue(e)?gt(r)?cr(Pt).put(w()(n=w()(i=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(i,e,"/")).call(n,ge),r,$a).then((function(t){return t.data})).catch((function(t){return Wa.error(t),j().reject(t)})):(s='invalid parameter: "title" must be a non-empty string',Wa.error(s,r),j().reject(s)):(s='invalid parameter: "roleId" must be a valid UUID',Wa.error(s,e),j().reject(s)):(s='invalid parameter: "organizationId" must be a valid UUID',Wa.error(s,t),j().reject(s))}var No=new et("PersistentSearchApi");function Po(t){var e="";return vt(t)?cr(qt).post("",t).then((function(t){return t.data})).catch((function(t){return No.error(t),j().reject(t)})):(e='invalid parameter: "persistentSearch" must be a non-empty object',No.error(e,t),j().reject(e))}function Ro(t){var e="";return Ue(t)?cr(qt).delete("/".concat(t)).then((function(t){return t.data})).catch((function(t){return No.error(t),j().reject(t)})):(e='invalid parameter: "persistentSearchId" must be a valid UUID',No.error(e,t),j().reject(e))}function qo(t){var e="";return yn()(t)?cr(qt).get("?includeExpired=".concat(t)).then((function(t){return t.data})).catch((function(t){return No.error(t),j().reject(t)})):(e='invalid parameter: "includeExpired" must be a boolean',No.error(e,t),j().reject(e))}function _o(t,e){var r,n="";return Ue(t)?gt(e)?cr(qt).patch(w()(r="/".concat(t,"/")).call(r,"expiration"),e).then((function(t){return t.data})).catch((function(t){return No.error(t),j().reject(t)})):(n='invalid parameter: "expiration" must be a valid string',No.error(n,t),j().reject(n)):(n='invalid parameter: "persistentSearchId" must be a valid UUID',No.error(n,t),j().reject(n))}var Mo=new et("PrincipalsApi");function Lo(){return cr(_t).get("/".concat(fe)).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)}))}function Ko(){return cr(_t).get("/".concat(je)).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)}))}function Fo(){return cr(_t).get("/".concat("db")).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)}))}function Jo(){var t;return cr(_t).get(w()(t="/".concat(fe,"/")).call(t,"current")).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)}))}function Bo(t){var e="";return ke(t,la,ca)?cr(_t).post("/",t).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)})):(e="invalid parameter: principal must be a valid Principal",Mo.error(e,t),j().reject(e))}function Vo(t){var e,r="";return gt(t)?cr(_t).get(w()(e="/".concat(je,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)})):(r="invalid parameter: userId must be a non-empty string",Mo.error(r,t),j().reject(r))}function Go(t){var e="";return yt(t)?vr()(t).call(t,gt)?cr(_t).post("/".concat(je),t).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)})):(e='invalid parameter: "userIds" must be an array of strings',Mo.error(e,t),j().reject(e)):(e='invalid parameter: "userIds" must be a non-empty array',Mo.error(e,t),j().reject(e))}function Qo(){var t;return cr(_t).post(w()(t="/".concat("db","/")).call(t,"credential")).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)}))}function Ho(t){var e,r="";return vt(t)?cr(_t).post(w()(e="/".concat(je,"/")).call(e,ye),t).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)})):(r='invalid parameter: "fields" must be a non-empty object',Mo.error(r,t),j().reject(r))}function Wo(){return cr(_t).get("/".concat("sync")).then((function(t){return t.data})).catch((function(t){return Mo.error(t),j().reject(t)}))}var $o=new et("SearchApi");function Zo(t){var e="";return vt(t)?cr(Mt).post("/".concat(Zt),t).then((function(t){return t.data})).catch((function(t){return $o.error(t),j().reject(t)})):(e='invalid parameter: "searchOptions" must be a non-empty object',$o.error(e,t),j().reject(e))}function Xo(t,e){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="",s={};if(!Ue(t))return o="invalid parameter: entitySetId must be a valid UUID",$o.error(o,t),j().reject(o);if("boolean"!=typeof a)return o="invalid parameter: idsOnly must be a boolean",$o.error(o,a),j().reject(o);if(!vt(e))return o="invalid parameter: filter must be a non-empty object",$o.error(o,t),j().reject(o);if(!De(e.entityKeyIds))return o="invalid parameter: filter.".concat(bn," must be a non-empty set of valid UUIDs"),$o.error(o,e.entityKeyIds),j().reject(o);var c,u,l,p=(0,K.Set)().withMutations((function(t){var r;return fn()(r=e.entityKeyIds).call(r,(function(e){return t.add(e)}))})).toJS();if(s.entityKeyIds=p,ht(e[vn])||De(e[vn]))c=(0,K.Set)().withMutations((function(t){var r;return fn()(r=e[vn]).call(r,(function(e){return t.add(e)}))})).toJS(),s.dst=c;else if(dt(e[vn]))return o="invalid parameter: filter.".concat(vn," must be a set of valid UUIDs"),$o.error(o,e[vn]),j().reject(o);if(ht(e[gn])||De(e[gn]))u=(0,K.Set)().withMutations((function(t){var r;return fn()(r=e[gn]).call(r,(function(e){return t.add(e)}))})).toJS(),s.edge=u;else if(dt(e[gn]))return o="invalid parameter: filter.".concat(gn," must be a set of valid UUIDs"),$o.error(o,e[gn]),j().reject(o);if(ht(e[In])||De(e[In]))l=(0,K.Set)().withMutations((function(t){var r;return fn()(r=e[In]).call(r,(function(e){return t.add(e)}))})).toJS(),s.src=l;else if(dt(e[In]))return o="invalid parameter: filter.".concat(In," must be a set of valid UUIDs"),$o.error(o,e[In]),j().reject(o);var d=w()(r=w()(n="/".concat(t,"/")).call(n,ue,"/")).call(r,Lt),h=a?w()(i="".concat(d,"/")).call(i,ie):d;return cr(Mt).post(h,s).then((function(t){return t.data})).catch((function(t){return $o.error(t),j().reject(t)}))}function Yo(t){var e="";if(!vt(t))return e='invalid parameter: "searchConstraints" must be a non-empty object',$o.error(e,t),j().reject(e);var r=t.entitySetIds,n=t.maxHits,i=t.start;return De(r)?!za()(i)||i<0?(e='invalid property: "start" must be a positive number',$o.error(e,i),j().reject(e)):!za()(n)||n<0?(e='invalid property: "maxHits" must be a positive number',$o.error(e,n),j().reject(e)):cr(Mt).patch("/",t).then((function(t){return t.data})).catch((function(t){return $o.error(t),j().reject(t)})):(e='invalid parameter: "entitySetIds" must be a non-empty array of valid UUIDs',$o.error(e,r),j().reject(e))}var ts="v0.95.0";const es={AppApi:t,AuthorizationsApi:i,CodexApi:a,CollaborationsApi:o,DataApi:c,DataIntegrationApi:u,DataSetMetadataApi:l,DataSetsApi:p,EntityDataModelApi:d,EntitySetsApi:h,OrganizationsApi:y,PermissionsApi:m,PersistentSearchApi:v,PrincipalsApi:g,SearchApi:b,Constants:s,Models:f,Types:e,configure:Ye,version:ts}})(),n})()})); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ec7519f3..1a59d706 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lattice", - "version": "0.94.1", + "version": "0.95.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lattice", - "version": "0.94.1", + "version": "0.95.0", "license": "Apache-2.0", "dependencies": { "@babel/runtime-corejs3": "~7.15.3", diff --git a/package.json b/package.json index aaf74b7a..66ebb22b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lattice", - "version": "0.94.1", + "version": "0.95.0", "homepage": "https://github.com/openlattice/lattice-js", "description": "JavaScript SDK for all OpenLattice REST APIs", "author": {