From a3853903f736d96acb443bb264c5e4a4fa4ac822 Mon Sep 17 00:00:00 2001 From: Hristo Oskov Date: Thu, 17 Jun 2021 11:24:12 -0700 Subject: [PATCH] releasing v0.93.4 --- 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 6ab5e486..161f7a26 100644 --- a/build/index.js +++ b/build/index.js @@ -1,10 +1,10 @@ /*! * - * lattice - v0.93.3 + * lattice - v0.93.4 * 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(7010)},4804:(t,e,r)=>{t.exports=r(2118)},62:(t,e,r)=>{t.exports=r(973)},7175:(t,e,r)=>{t.exports=r(477)},8914:(t,e,r)=>{t.exports=r(2142)},8580:(t,e,r)=>{t.exports=r(5001)},3054:(t,e,r)=>{t.exports=r(9582)},2991:(t,e,r)=>{t.exports=r(3919)},9828:(t,e,r)=>{t.exports=r(6214)},6474:(t,e,r)=>{t.exports=r(9568)},6902:(t,e,r)=>{t.exports=r(6986)},455:(t,e,r)=>{t.exports=r(9027)},3476:(t,e,r)=>{t.exports=r(9863)},1445:(t,e,r)=>{t.exports=r(9548)},4341:(t,e,r)=>{t.exports=r(9219)},9542:(t,e,r)=>{t.exports=r(9402)},3535:(t,e,r)=>{t.exports=r(5829)},9669:(t,e,r)=>{t.exports=r(1609)},5448:(t,e,r)=>{"use strict";var i=r(4867),n=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;i.isFormData(p)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(f+":"+m)}var y=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),o(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:t,request:h};n(e,r,a),h=null}},h.onabort=function(){h&&(r(l("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(l("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,"ECONNABORTED",h)),h=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||u(y))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(d[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&i.forEach(d,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},1609:(t,e,r)=>{"use strict";var i=r(4867),n=r(1849),a=r(321),o=r(7185);function s(t){var e=new a(t),r=n(a.prototype.request,e);return i.extend(r,a.prototype,e),i.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 i=r(5263);function n(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 i(t),e(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n((function(e){t=e})),cancel:t}},t.exports=n},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,r)=>{"use strict";var i=r(4867),n=r(5327),a=r(782),o=r(3572),s=r(7185);function c(t){this.defaults=t,this.interceptors={request:new a,response:new a}}c.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=[o,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},c.prototype.getUri=function(t){return t=s(this.defaults,t),n(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,r,i){return this.request(s(i||{},{method:t,url:e,data:r}))}})),t.exports=c},782:(t,e,r)=>{"use strict";var i=r(4867);function n(){this.handlers=[]}n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=n},4097:(t,e,r)=>{"use strict";var i=r(1793),n=r(7303);t.exports=function(t,e){return t&&!i(e)?n(t,e):e}},5061:(t,e,r)=>{"use strict";var i=r(481);t.exports=function(t,e,r,n,a){var o=new Error(t);return i(o,e,r,n,a)}},3572:(t,e,r)=>{"use strict";var i=r(4867),n=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=n(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.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=n(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(s(t),e&&e.response&&(e.response.data=n(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,r,i,n){return t.config=e,r&&(t.code=r),t.request=i,t.response=n,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 i=r(4867);t.exports=function(t,e){e=e||{};var r={},n=["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 i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(n){i.isUndefined(e[n])?i.isUndefined(t[n])||(r[n]=c(void 0,t[n])):r[n]=c(t[n],e[n])}i.forEach(n,(function(t){i.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),i.forEach(a,u),i.forEach(o,(function(n){i.isUndefined(e[n])?i.isUndefined(t[n])||(r[n]=c(void 0,t[n])):r[n]=c(void 0,e[n])})),i.forEach(s,(function(i){i in e?r[i]=c(t[i],e[i]):i in t&&(r[i]=c(void 0,t[i]))}));var l=n.concat(a).concat(o).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return i.forEach(p,u),r}},6026:(t,e,r)=>{"use strict";var i=r(5061);t.exports=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(i("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8527:(t,e,r)=>{"use strict";var i=r(4867);t.exports=function(t,e,r){return i.forEach(r,(function(r){t=r(t,e)})),t}},5655:(t,e,r)=>{"use strict";var i=r(4867),n=r(6016),a={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=r(5448)),s),transformRequest:[function(t,e){return n(e,"Accept"),n(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(a)})),t.exports=c},1849:t=>{"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),i=0;i{"use strict";var i=r(4867);function n(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(i.isURLSearchParams(e))a=e.toString();else{var o=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),o.push(n(e)+"="+n(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 i=r(4867);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,r,n,a,o){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),i.isString(n)&&s.push("path="+n),i.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 i=r(4867);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var i=t;return e&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{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=n(window.location.href),function(e){var r=i.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6016:(t,e,r)=>{"use strict";var i=r(4867);t.exports=function(t,e){i.forEach(t,(function(r,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[i])}))}},4109:(t,e,r)=>{"use strict";var i=r(4867),n=["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?(i.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=i.trim(t.substr(0,a)).toLowerCase(),r=i.trim(t.substr(a+1)),e){if(o[e]&&n.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)}}},4867:(t,e,r)=>{"use strict";var i=r(1849),n=Object.prototype.toString;function a(t){return"[object Array]"===n.call(t)}function o(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===n.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var r=0,i=t.length;r=0&&r<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(a=r,!1!==i&&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,i.default)(t),(e=(0,n.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 i=a(r(5571)),n=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,n.default)(e),!(r=String(r)))return t(e,4)||t(e,6);if("4"===r){if(!s.test(e))return!1;var i=e.split(".").sort((function(t,e){return t-e}));return i[3]<=255}if("6"===r)return!!u.test(e);return!1};var i,n=(i=r(5571))&&i.__esModule?i:{default:i};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,i.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,n.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 i=s(r(5571)),n=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},9548:t=>{"use strict";t.exports=require("core-js-pure/features/instance/bind")},9219:t=>{"use strict";t.exports=require("core-js-pure/features/object/define-property")},9402:t=>{"use strict";t.exports=require("core-js-pure/features/object/set-prototype-of")},5829:t=>{"use strict";t.exports=require("core-js-pure/features/reflect/construct")},7010:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/concat")},2118:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/ends-with")},973:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/every")},477:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/flags")},2142:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/for-each")},5001:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/includes")},9582:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/last-index-of")},3919:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/map")},6214:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/starts-with")},9568:t=>{"use strict";t.exports=require("core-js-pure/stable/object/freeze")},6986:t=>{"use strict";t.exports=require("core-js-pure/stable/object/keys")},9027:t=>{"use strict";t.exports=require("core-js-pure/stable/object/values")},9863:t=>{"use strict";t.exports=require("core-js-pure/stable/promise")}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var a=e[i]={exports:{}};return t[i].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 i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},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 i={};return(()=>{"use strict";r.r(i),r.d(i,{AppApi:()=>t,AuthorizationsApi:()=>n,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:()=>Ur,PermissionTypes:()=>Sr,PrincipalTypes:()=>Dr,RequestStateTypes:()=>Ar,SecurableTypes:()=>Or,SortTypes:()=>kr,UpdateTypes:()=>Cr});var n={};r.r(n),r.d(n,{getAuthorizations:()=>qr});var a={};r.r(a),r.d(a,{sendOutgoingText:()=>Mr});var o={};r.r(o),r.d(o,{addDataSetToCollaboration:()=>Wr,addOrganizationsToCollaboration:()=>Gr,createCollaboration:()=>Br,deleteCollaboration:()=>Vr,getCollaboration:()=>Fr,getCollaborationDataSets:()=>Yr,getCollaborationDatabaseInfo:()=>Hr,getCollaborations:()=>Kr,getCollaborationsWithDataSets:()=>ti,getCollaborationsWithOrganization:()=>Jr,getOrganizationCollaborationDataSets:()=>Xr,removeDataSetFromCollaboration:()=>Zr,removeOrganizationsFromCollaboration:()=>Qr,renameCollaborationDatabase:()=>$r});var s={};r.r(s),r.d(s,{AT_CLASS:()=>ei,AT_ID:()=>ri,OPENLATTICE_COUNT_FQN:()=>ii,OPENLATTICE_ID_FQN:()=>ni,OPENLATTICE_LAST_INDEX_FQN:()=>ai,OPENLATTICE_LAST_LINK_FQN:()=>oi,OPENLATTICE_LAST_WRITE_FQN:()=>si,OPENLATTICE_VERSION_FQN:()=>ci});var c={};r.r(c),r.d(c,{createAssociations:()=>ji,createEntityAndAssociationData:()=>Ti,createOrMergeEntityData:()=>wi,deleteEntityAndNeighborData:()=>Ei,deleteEntityData:()=>Ui,deleteEntitySetData:()=>Si,getBinaryProperties:()=>xi,getEntityData:()=>Di,getEntitySetData:()=>Ai,getEntitySetSize:()=>Oi,getLinkedEntitySetBreakdown:()=>ki,updateEntityData:()=>Ci});var u={};r.r(u),r.d(u,{getEntityKeyIds:()=>Ni});var l={};r.r(l),r.d(l,{getDataSetColumnMetadata:()=>Li,getDataSetColumnsMetadata:()=>Mi,getDataSetMetadata:()=>Pi,getDataSetsMetadata:()=>qi,getOrganizationDataSetsMetadata:()=>_i,updateDataSetColumnMetadata:()=>Fi,updateDataSetMetadata:()=>Ki});var p={};r.r(p),r.d(p,{getOrganizationDataSet:()=>Gi,getOrganizationDataSetData:()=>Hi,getOrganizationDataSetSchema:()=>$i,getOrganizationDataSets:()=>Qi});var d={};r.r(d),r.d(d,{addDestinationEntityTypeToAssociationType:()=>mn,addPropertyTypeToEntityType:()=>yn,addSourceEntityTypeToAssociationType:()=>vn,createAssociationType:()=>gn,createEntityType:()=>bn,createPropertyType:()=>In,createSchema:()=>jn,deleteAssociationType:()=>Tn,deleteEntityType:()=>wn,deletePropertyType:()=>En,getAllAssociationEntityTypes:()=>Un,getAllAssociationTypes:()=>Sn,getAllEntityTypes:()=>Dn,getAllPropertyTypes:()=>An,getAllSchemas:()=>On,getAssociationType:()=>kn,getEntityDataModel:()=>Cn,getEntityDataModelProjection:()=>xn,getEntityType:()=>zn,getPropertyType:()=>Nn,getSchema:()=>Rn,removeDestinationEntityTypeFromAssociationType:()=>Pn,removePropertyTypeFromEntityType:()=>qn,removeSourceEntityTypeFromAssociationType:()=>Ln,updateEntityTypeMetaData:()=>Mn,updatePropertyTypeMetaData:()=>_n,updateSchema:()=>Kn});var h={};r.r(h),r.d(h,{createEntitySets:()=>$n,deleteEntitySet:()=>Wn,getAllEntitySets:()=>Zn,getEntitySet:()=>Xn,getEntitySetId:()=>Yn,getEntitySetIds:()=>ta,getEntitySets:()=>ea,getPropertyTypeMetaDataForEntitySet:()=>ra,getPropertyTypeMetaDataForEntitySets:()=>ia,updateEntitySetMetaData:()=>na});var f={};r.r(f),r.d(f,{AccessCheckBuilder:()=>Nr,AceBuilder:()=>ua,AclBuilder:()=>pa,AclDataBuilder:()=>fa,AppBuilder:()=>va,AppTypeBuilder:()=>ba,AssociationTypeBuilder:()=>on,DataGraphBuilder:()=>bi,EntityDataKeyBuilder:()=>ja,EntitySetBuilder:()=>Gn,EntityTypeBuilder:()=>rn,FQN:()=>Et,GrantBuilder:()=>Aa,OrganizationBuilder:()=>Ma,PrincipalBuilder:()=>sa,PropertyTypeBuilder:()=>un,RoleBuilder:()=>Pa,SchemaBuilder:()=>dn});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:()=>$a,addDomainsToOrganization:()=>Wa,addMemberToOrganization:()=>Za,addRoleToMember:()=>Xa,createOrganization:()=>Ya,createRole:()=>to,deleteOrganization:()=>eo,deleteRole:()=>ro,destroyTransportedOrganizationEntitySet:()=>io,getAllOrganizations:()=>no,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:()=>Uo,updateOrganizationDescription:()=>So,updateOrganizationTitle:()=>Do,updateRoleDescription:()=>Ao,updateRoleGrant:()=>Oo,updateRoleTitle:()=>ko});var v={};r.r(v),r.d(v,{createPersistentSearch:()=>xo,expirePersistentSearch:()=>zo,getPersistentSearches:()=>No,updatePersistentSearchExpiration:()=>Ro});var g={};r.r(g),r.d(g,{getAllRoles:()=>qo,getAllUsers:()=>Lo,getAtlasCredentials:()=>Mo,getCurrentRoles:()=>_o,getSecurablePrincipal:()=>Ko,getUser:()=>Fo,getUsers:()=>Jo,regenerateCredential:()=>Bo,searchUsers:()=>Vo,syncUser:()=>Go});var b={};r.r(b),r.d(b,{searchDataSetMetadata:()=>Ho,searchEntityNeighborsWithFilter:()=>$o,searchEntitySetData:()=>Wo});var I=r(3476),j=r.n(I),T=r(7766),w=r.n(T),E=r(3535),U=r(1445),S=r(9542);function D(t,e){return(D=S||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 O(t,e,r){return(O=A()?E:function(t,e,r){var i=[null];i.push.apply(i,e);var n=new(U(Function).apply(t,i));return r&&D(n,r.prototype),n}).apply(null,arguments)}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var C=r(4341);function x(t,e){for(var r=0;r2?a-2:0),s=2;s0&&(i=this.logger)[t].apply(i,o)}},{key:"trace",value:function(t){this.log(H,t)}},{key:"debug",value:function(t){for(var e,r=arguments.length,i=new Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n2&&void 0!==arguments[2]&&arguments[2],i="";if(gt(t))if(gt(e)){var n,a=w()(n="".concat(t,".")).call(n,e);if(a.length<=63)return a;i="invalid FQN: FQNs must be <= ".concat(63," characters, got ").concat(a.length)}else i="invalid FQN: name must be a non-empty string";else i="invalid FQN: namespace must be a non-empty string";if(!0===r)throw It.error(i),new Error(i);return""}var Et=function(){function t(){if(k(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),i=r.namespace,n=r.name;wt(i,n,!0),this.namespace=i,this.name=n}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(!Se(t))return s="invalid parameter: entitySetId must be a valid UUID",Ii.error(s,t),j().reject(s);if(!vt(e))return s="invalid parameter: filter must be a non-empty object",Ii.error(s,t),j().reject(s);if(!De(e.entityKeyIds))return s="invalid parameter: filter.".concat(mi," must be a non-empty set of valid UUIDs"),Ii.error(s,e.entityKeyIds),j().reject(s);var u,l,p=(0,K.Set)().withMutations((function(t){var r;return li()(r=e.entityKeyIds).call(r,(function(e){return t.add(e)}))})).toJS();if(c.entityKeyIds=p,ht(e[hi])||De(e[hi]))u=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[hi]).call(r,(function(e){return t.add(e)}))})).toJS(),c.dst=u;else if(dt(e[hi]))return s="invalid parameter: filter.".concat(hi," must be a set of valid UUIDs"),Ii.error(s,e[hi]),j().reject(s);if(ht(e[yi])||De(e[yi]))l=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[yi]).call(r,(function(e){return t.add(e)}))})).toJS(),c.src=l;else if(dt(e[yi]))return s="invalid parameter: filter.".concat(yi," must be a set of valid UUIDs"),Ii.error(s,e[yi]),j().reject(s);return gt(o)&&Tr[o]?cr(Ot).post(w()(r=w()(i=w()(n=w()(a="/".concat(ve,"/")).call(a,t,"/")).call(n,ue,"?")).call(i,be,"=")).call(r,o),c).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)})):(s="invalid parameter: deleteType must be a valid DeleteType",Ii.error(s,o),j().reject(s))}function Ui(t,e){var r,i,n,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(!Se(t))return u="invalid parameter: entitySetId must be a valid UUID",Ii.error(u,t),j().reject(u);if(!Se(e)&&!De(e))return u="invalid parameter: entityKeyIds must be a valid UUID or array of UUIDs",Ii.error(u,e),j().reject(u);if(!Tr[s])return u="invalid parameter: deleteType must be a valid DeleteType",Ii.error(u,s),j().reject(u);if(!di()(c))return u="invalid parameter: block must be a boolean",Ii.error(u,c),j().reject(u);var l=e;return"string"==typeof e&&(l=[e]),cr(Ot).delete(w()(r=w()(i=w()(n=w()(a=w()(o="/".concat(ve,"/")).call(o,t,"?")).call(a,be,"=")).call(n,s,"&")).call(i,Jt,"=")).call(r,c),{data:l}).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)}))}function Si(t){var e,r,i,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tr.SOFT,o="";return Se(t)?Tr[a]?cr(Ot).delete(w()(e=w()(r=w()(i=w()(n="/".concat(ve,"/")).call(n,t,"/")).call(i,Kt,"?")).call(r,be,"=")).call(e,a)).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)})):(o='invalid parameter: "deleteType" must be a valid DeleteType',Ii.error(o,a),j().reject(o)):(o='invalid parameter: "entitySetId" must be a valid UUID',Ii.error(o,t),j().reject(o))}function Di(t,e){var r,i="";return Se(t)?Se(e)?cr(Ot).get(w()(r="/".concat(t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)})):(i='invalid parameter: "entityKeyId" must be a valid UUID',Ii.error(i,e),j().reject(i)):(i='invalid parameter: "entitySetId" must be a valid UUID',Ii.error(i,t),j().reject(i))}function Ai(t,e,r){var i,n="";if(!Se(t))return n="invalid parameter: entitySetId must be a valid UUID",Ii.error(n,t),j().reject(n);var a={};if(De(e))a.properties=(0,K.Set)().withMutations((function(t){li()(e).call(e,(function(e){t.add(e)}))})).toJS();else if(!ut()(e)&&!ht(e))return n="invalid parameter: propertyTypeIds must be a non-empty array of valid UUIDs",Ii.error(n,e),j().reject(n);if(De(r))a.ids=(0,K.Set)().withMutations((function(t){li()(r).call(r,(function(e){t.add(e)}))})).toJS();else if(!ut()(r)&&!ht(r))return n="invalid parameter: entityKeyIds must be a non-empty array of valid UUIDs",Ii.error(n,r),j().reject(n);return cr(Ot).post(w()(i="/".concat(ve,"/")).call(i,t),a).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)}))}function Oi(t){var e,r="";return Se(t)?cr(Ot).get(w()(e="/".concat(t,"/")).call(e,"count")).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Ii.error(r,t),j().reject(r))}function ki(t,e,r){var i,n,a="";if(!Se(t))return a="invalid parameter: entitySetId must be a valid UUID",Ii.error(a,t),j().reject(a);var o={};if(De(e))o.properties=(0,K.Set)().withMutations((function(t){li()(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",Ii.error(a,e),j().reject(a);if(De(r))o.ids=(0,K.Set)().withMutations((function(t){li()(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",Ii.error(a,r),j().reject(a);return cr(Ot).post(w()(i=w()(n="/".concat(ve,"/")).call(n,t,"/")).call(i,"detailed"),o).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)}))}function Ci(t,e){var r,i,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cr.PARTIAL_REPLACE,o="";if(!Se(t))return o='invalid parameter: "entitySetId" must be a valid UUID',Ii.error(o,t),j().reject(o);if(!vt(e))return o='invalid parameter: "entityData" must be a non-empty object',Ii.error(o,t),j().reject(o);for(var s=we()(e),c=0;c2&&void 0!==arguments[2])||arguments[2],c="";return Se(t)?Se(e)?!0===s?cr(Ct).get(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,e,"/")).call(i,ie,"/")).call(r,re)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):!1===s?cr(Ct).get(w()(a=w()(o="/".concat(t,"/")).call(o,e,"/")).call(a,ie)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):(c='invalid parameter: "columns" must be a boolean',Vi.error(c,s),j().reject(c)):(c='invalid parameter: "dataSetId" must be a valid UUID',Vi.error(c,e),j().reject(c)):(c='invalid parameter: "organizationId" must be a valid UUID',Vi.error(c,t),j().reject(c))}function Qi(t){var e,r,i,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a="";return Se(t)?!0===n?cr(Ct).get(w()(e=w()(r="/".concat(t,"/")).call(r,ie,"/")).call(e,re)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):!1===n?cr(Ct).get(w()(i="/".concat(t,"/")).call(i,ie)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):(a='invalid parameter: "columns" must be a boolean',Vi.error(a,n),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Vi.error(a,t),j().reject(a))}function Hi(t,e){var r,i,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o="";return Se(t)?Se(e)?!Bi()(a)||a<=0?(o='invalid parameter: "count" must be a positive integer',Vi.error(o,e),j().reject(o)):cr(Ct).get(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,e,"/")).call(i,a,"/")).call(r,Wt)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):(o='invalid parameter: "dataSetId" must be a valid UUID',Vi.error(o,e),j().reject(o)):(o='invalid parameter: "organizationId" must be a valid UUID',Vi.error(o,t),j().reject(o))}function $i(t,e){var r,i,n="";return Se(t)?Se(e)?cr(Ct).get(w()(r=w()(i="/".concat(t,"/")).call(i,e,"/")).call(r,me)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):(n='invalid parameter: "dataSetId" must be a valid UUID',Vi.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Vi.error(n,t),j().reject(n))}var Wi=r(2991),Zi=r.n(Wi);const Xi=require("lodash/has");var Yi=r.n(Xi),tn=new et("EntityType"),en=function(){function t(e){k(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:Zi()(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}(),rn=function(){function t(e){k(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(!Se(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(!Or[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(!Se(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(!it()(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,Se))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,Se))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(!it()(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,Se))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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "schemas" must be an array');try{var e;this.schemas=Zi()(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 en({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}(),nn=new et("AssociationType"),an=function(){function t(e){k(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}(),on=function(){function t(e){k(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(!di()(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 rn(t).build(),this}},{key:"setDestinationEntityTypeIds",value:function(t){if(!dt(t))return this;if(!it()(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,Se))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(!it()(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,Se))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 an({bidirectional:this.bidirectional,dst:this.destinationEntityTypeIds,entityType:this.entityType,src:this.sourceEntityTypeIds})}}]),t}(),sn=new et("PropertyType"),cn=function(){function t(e){k(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:Zi()(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}(),un=function(){function t(e){k(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(!it()(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(!Se(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(!Ur[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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "schemas" must be an array');try{var e;this.schemas=Zi()(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 cn({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}(),ln=new et("Schema"),pn=function(){function t(e){k(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:Zi()(t=this.entityTypes).call(t,(function(t){return t.toObject()})),fqn:this.fqn.toObject(),propertyTypes:Zi()(e=this.propertyTypes).call(e,(function(t){return t.toObject()}))}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),dn=function(){function t(e){k(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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "entityTypes" must be an array');try{var e;this.entityTypes=Zi()(e=(0,K.Set)(t)).call(e,(function(t){return new rn(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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "propertyTypes" must be an array');try{var e;this.propertyTypes=Zi()(e=(0,K.Set)(t)).call(e,(function(t){return new un(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 pn({entityTypes:this.entityTypes,fqn:this.fqn,propertyTypes:this.propertyTypes})}}]),t}(),hn=function(t){return Oe(t,dn,ln)},fn=new et("EntityDataModelApi");function mn(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(zt).put(w()(r=w()(i=w()(n="/".concat(Ft,"/")).call(n,t,"/")).call(i,"dst","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fn.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fn.error(a,t),j().reject(a))}function yn(t,e){var r,i,n="";return Se(t)?Se(e)?cr(zt).put(w()(r=w()(i="/".concat(ee,"/")).call(i,t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(n='invalid parameter: "propertyTypeId" must be a valid UUID',fn.error(n,e),j().reject(n)):(n='invalid parameter: "entityTypeId" must be a valid UUID',fn.error(n,t),j().reject(n))}function vn(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(zt).put(w()(r=w()(i=w()(n="/".concat(Ft,"/")).call(n,t,"/")).call(i,"src","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fn.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fn.error(a,t),j().reject(a))}function gn(t){var e="";return Oe(t,on,nn)?cr(zt).post("/".concat(Ft),t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "associationType" must be a valid AssociationType',fn.error(e,t),j().reject(e))}function bn(t){var e="";return Oe(t,rn,tn)?cr(zt).post("/".concat(ee),t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "entityType" must be a valid EntityType',fn.error(e,t),j().reject(e))}function In(t){var e="";return Oe(t,un,sn)?cr(zt).post("/".concat(he),t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "propertyType" must be a valid PropertyType',fn.error(e,t),j().reject(e))}function jn(t){var e="";return hn(t)?cr(zt).post("/".concat(me),t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "schema" must be a valid Schema',fn.error(e,t),j().reject(e))}function Tn(t){var e,r="";return Se(t)?cr(zt).delete(w()(e="/".concat(Ft,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "associationTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function wn(t){var e,r="";return Se(t)?cr(zt).delete(w()(e="/".concat(ee,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "entityTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function En(t){var e,r="";return Se(t)?cr(zt).delete(w()(e="/".concat(he,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "propertyTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function Un(){var t;return cr(zt).get(w()(t="/".concat(Ft,"/")).call(t,ee)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function Sn(){return cr(zt).get("/".concat(Ft)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function Dn(){return cr(zt).get("/".concat(ee)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function An(){return cr(zt).get("/".concat(he)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function On(){return cr(zt).get("/".concat(me)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function kn(t){var e,r="";return Se(t)?cr(zt).get(w()(e="/".concat(Ft,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "associationTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function Cn(){return cr(zt).get("/").then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function xn(t){var e="";return Ue(t,vt)?cr(zt).post("/",t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "projection" must be an array of objects',fn.error(e,t),j().reject(e))}function zn(t){var e,r="";return Se(t)?cr(zt).get(w()(e="/".concat(ee,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "entityTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function Nn(t){var e,r="";return Se(t)?cr(zt).get(w()(e="/".concat(he,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "propertyTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function Rn(t){var e,r,i="";if(!Et.isValid(t))return i='invalid parameter: "schemaFQN" must be a valid FQN',fn.error(i,t),j().reject(i);var n=t.namespace,a=t.name;return cr(zt).get(w()(e=w()(r="/".concat(me,"/")).call(r,n,"/")).call(e,a)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function Pn(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(zt).delete(w()(r=w()(i=w()(n="/".concat(Ft,"/")).call(n,t,"/")).call(i,"dst","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fn.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fn.error(a,t),j().reject(a))}function qn(t,e){var r,i,n="";return Se(t)?Se(e)?cr(zt).delete(w()(r=w()(i="/".concat(ee,"/")).call(i,t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(n="invalid parameter: propertyTypeId must be a valid UUID",fn.error(n,e),j().reject(n)):(n="invalid parameter: entityTypeId must be a valid UUID",fn.error(n,t),j().reject(n))}function Ln(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(zt).delete(w()(r=w()(i=w()(n="/".concat(Ft,"/")).call(n,t,"/")).call(i,"src","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fn.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fn.error(a,t),j().reject(a))}function Mn(t,e){var r,i="";return Se(t)?vt(e)?Yi()(e,"type")&&!Et.isValid(e.type)?(i="invalid parameter: type must be a valid FQN",fn.error(i,e.type),j().reject(i)):Yi()(e,"name")&&!gt(e.name)?(i="invalid parameter: name must be a non-empty string",fn.error(i,e.name),j().reject(i)):Yi()(e,"title")&&!gt(e.title)?(i="invalid parameter: title must be a non-empty string",fn.error(i,e.title),j().reject(i)):Yi()(e,"description")&&!gt(e.description)?(i="invalid parameter: description must be a non-empty string",fn.error(i,e.description),j().reject(i)):Yi()(e,"contacts")&&!bt(e.contacts)?(i="invalid parameter: contacts must be a non-empty string",fn.error(i,e.contacts),j().reject(i)):cr(zt).patch(w()(r="/".concat(ee,"/")).call(r,t),e).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(i="invalid parameter: metadata must be a non-empty object",fn.error(i,e),j().reject(i)):(i="invalid parameter: entityTypeId must be a valid UUID",fn.error(i,t),j().reject(i))}function _n(t,e){var r,i="";return Se(t)?vt(e)?Yi()(e,"type")&&!Et.isValid(e.type)?(i="invalid parameter: type must be a valid FQN",fn.error(i,e.type),j().reject(i)):Yi()(e,"name")&&!gt(e.name)?(i="invalid parameter: name must be a non-empty string",fn.error(i,e.name),j().reject(i)):Yi()(e,"title")&&!gt(e.title)?(i="invalid parameter: title must be a non-empty string",fn.error(i,e.title),j().reject(i)):Yi()(e,"description")&&!gt(e.description)?(i="invalid parameter: description must be a non-empty string",fn.error(i,e.description),j().reject(i)):Yi()(e,"contacts")&&!bt(e.contacts)?(i="invalid parameter: contacts must be a non-empty string",fn.error(i,e.contacts),j().reject(i)):cr(zt).patch(w()(r="/".concat(he,"/")).call(r,t),e).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(i="invalid parameter: metadata must be a non-empty object",fn.error(i,e),j().reject(i)):(i="invalid parameter: propertyTypeId must be a valid UUID",fn.error(i,t),j().reject(i))}function Kn(t){var e,r,i,n,a="";if(!hn(t))return a='invalid parameter: "schema" must be a valid Schema',fn.error(a,t),j().reject(a);var o={action:Ir.REPLACE,entityTypes:Zi()(e=t.entityTypes).call(e,(function(t){return t.id})),propertyTypes:Zi()(r=t.propertyTypes).call(r,(function(t){return t.id}))};return cr(zt).patch(w()(i=w()(n="/".concat(me,"/")).call(n,t.fqn.namespace,"/")).call(i,t.fqn.name),o).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}var Fn=r(7175),Jn=r.n(Fn),Bn=new et("EntitySet"),Vn=function(){function t(e){k(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(Jn()(e))&&(this.flags=Jn()(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(Jn()(this))&&(t.flags=Jn()(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}(),Gn=function(){function t(e){k(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(Jn()(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(!it()(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(!Se(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(!it()(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(!Se(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(!it()(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,Se))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(!Se(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 Vn({contacts:this.contacts,description:this.description,entityTypeId:this.entityTypeId,flags:Jn()(this),id:this.id,linkedEntitySets:this.linkedEntitySets,name:this.name,organizationId:this.organizationId,title:this.title})}}]),t}(),Qn=function(t){return Oe(t,Gn,Bn)},Hn=new et("EntitySetsApi");function $n(t){var e="";return yt(t)?vr()(t).call(t,Qn)?cr(Nt).post("/",t).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(e="invalid parameter: entitySets must be a non-empty array of valid EntitySets",Hn.error(e,t),j().reject(e)):(e="invalid parameter: entitySets must be a non-empty array",Hn.error(e,t),j().reject(e))}function Wn(t){var e,r="";return Se(t)?cr(Nt).delete(w()(e="/".concat(Kt,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Hn.error(r,t),j().reject(r))}function Zn(){return cr(Nt).get("/").then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)}))}function Xn(t){var e,r="";return Se(t)?cr(Nt).get(w()(e="/".concat(Kt,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Hn.error(r,t),j().reject(r))}function Yn(t){var e,r="";return gt(t)?cr(Nt).get(w()(e="/".concat(ne,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(r="invalid parameter: entitySetName must be a non-empty string",Hn.error(r,t),j().reject(r))}function ta(t){var e="";return yt(t)?vr()(t).call(t,gt)?cr(Nt).post("/".concat(ne),t).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(e='invalid parameter: "entitySetNames" must be an array of strings',Hn.error(e,t),j().reject(e)):(e='invalid parameter: "entitySetNames" must be a non-empty array',Hn.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',Hn.error(e,t),j().reject(e);var r=(0,K.Set)(t);return vr()(r).call(r,Se)?cr(Nt).post("/".concat("by-id"),r.toJS()).then((function(t){return t.data})).catch((function(t){return Hn.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 Hn.error(t),j().reject(t)})):(e='invalid parameter: "idsOrNames" must be an array of EntitySet ids or names',Hn.error(e,t),j().reject(e))}function ra(t,e){var r,i,n,a,o,s="";return Se(t)?dt(e)?dt(e)&&!Se(e)?(s="invalid parameter: propertyTypeId must be a valid UUID",Hn.error(s,e),j().reject(s)):cr(Nt).get(w()(r=w()(i=w()(n="/".concat(Kt,"/")).call(n,t,"/")).call(i,"properties","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Hn.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 Hn.error(t),j().reject(t)})):(s="invalid parameter: entitySetId must be a valid UUID",Hn.error(s,t),j().reject(s))}function ia(t){var e,r="";if(!De(t))return r="invalid parameter: entitySetIds must be a valid UUID array",Hn.error(r,t),j().reject(r);var i=(0,K.Set)(t).toJS();return cr(Nt).post(w()(e="/".concat(Kt,"/")).call(e,ce),i).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)}))}function na(t,e){var r,i,n="";return Se(t)?vt(e)?cr(Nt).patch(w()(r=w()(i="/".concat(Kt,"/")).call(i,t,"/")).call(r,ce),e).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(n="invalid parameter: update must be a non-empty object",Hn.error(n,e),j().reject(n)):(n="invalid parameter: entitySetId must be a valid UUID",Hn.error(n,t),j().reject(n))}var aa=new et("Principal"),oa=function(){function t(e){k(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){k(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){k(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){k(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(!it()(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 Sr[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){k(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:Zi()(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){k(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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "aces" must be an array');try{var e;this.aces=Zi()(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(!it()(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,Se))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){k(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){k(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 Oe(t,fa,da)},ya=(new et("App"),function(){function t(e){k(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){k(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(!it()(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,Se))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(!Se(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){k(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){k(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(!Se(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(!Se(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){k(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){k(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(!Se(t))throw new Error("invalid parameter: entityKeyId must be a valid UUID");return this.entityKeyId=t,this}},{key:"setEntitySetId",value:function(t){if(!Se(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),Ua=r.n(Ea),Sa=new et("Grant"),Da=function(){function t(e){k(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){k(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=Ua()(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(!it()(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 Oa=require("lodash/isFinite");var ka=r.n(Oa);const Ca=require("lodash/mapValues");var xa=r.n(Ca),za=new et("Role"),Na="com.openlattice.organization.roles.Role",Ra=function(){function t(e){k(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[ei]=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[ei]=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}(),Pa=function(){function t(e){k(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(!Se(t))throw new Error('invalid parameter: "id" must be a valid UUID');return this.id=t,this}},{key:"setOrganizationId",value:function(t){if(!Se(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 Ra({description:this.description,id:this.id,organizationId:this.organizationId,principal:this.principal,title:this.title})}}]),t}(),qa=new et("Organization"),La=function(){function t(e){k(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:xa()(this.grants,(function(t){return xa()(t,(function(t){return t.toObject()}))})),members:Zi()(t=this.members).call(t,(function(t){return t.toObject()})),metadataEntitySetIds:this.metadataEntitySetIds,principal:this.principal.toObject(),roles:Zi()(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){k(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(!it()(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,Se))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(!it()(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(!it()(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;li()(r=(0,K.fromJS)(t)).call(r,(function(t,r){if(!Se(r))throw new Error('invalid parameter: "grants" must be a map where all keys are valid UUIDs');li()(t).call(t,(function(t,i){e.setIn([r,i],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(!Se(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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "members" must be an array');try{var e;this.members=Zi()(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");Se(e)&&(this.metadataEntitySetIds.columns=e)}if((0,K.has)(t,"datasets")){var r=(0,K.get)(t,"datasets");Se(r)&&(this.metadataEntitySetIds.datasets=r)}if((0,K.has)(t,"organization")){var i=(0,K.get)(t,"organization");Se(i)&&(this.metadataEntitySetIds.organization=i)}return this}},{key:"setPartitions",value:function(t){if(!dt(t))return this;if(!it()(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,ka()))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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "roles" must be an array');try{var e;this.roles=Zi()(e=(0,K.Set)(t)).call(e,(function(t){return new Pa(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 La({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}(),_a=new et("PermissionsApi");function Ka(t){var e="";return yt(t)?vr()(t).call(t,Se)?cr(Pt).post("/",t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e='invalid parameter: "aclKey" must be an array of valid UUIDs',_a.error(e,t),j().reject(e)):(e='invalid parameter: "aclKey" must be a non-empty array',_a.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,Se)}))?cr(Pt).post("/".concat(Bt),t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e='invalid parameter: "aclKeys" is not valid UUID[][]',_a.error(e,t),j().reject(e)):(e='invalid parameter: "aclKeys" must be a non-empty array',_a.error(e,t),j().reject(e))}function Ja(t){var e="";return yt(t)?vr()(t).call(t,Se)?cr(Pt).post("/".concat("explain"),t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e='invalid parameter: "aclKey" must be an array of valid UUIDs',_a.error(e,t),j().reject(e)):(e='invalid parameter: "aclKey" must be a non-empty array',_a.error(e,t),j().reject(e))}function Ba(t){var e="";return ma(t)?cr(Pt).patch("/",t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e="invalid parameter: aclData must be a valid AclData object",_a.error(e,t),j().reject(e))}function Va(t){var e="";return yt(t)?vr()(t).call(t,ma)?cr(Pt).patch("/".concat(Ie),t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e="invalid parameter: aclData must be an array of valid AclData objects",_a.error(e,t),j().reject(e)):(e="invalid parameter: aclData must be a non-empty array",_a.error(e,t),j().reject(e))}var Ga=new et("OrganizationsApi"),Qa={headers:{"Content-Type":"text/plain"}};function Ha(t,e,r){var i="";if(!Se(t))return i="invalid parameter: organizationId must be a valid UUID",Ga.error(i,t),j().reject(i);if(!gt(e))return i="invalid parameter: principalId must be a non-empty string",Ga.error(i,e),j().reject(i);if(!gt(r)||!Ir[r])return i="invalid parameter: action must be a valid ActionType",Ga.error(i,r),j().reject(i);var n=(new sa).setId(e).setType(Dr.ORGANIZATION).build(),a=(new ua).setPermissions([Sr.READ]).setPrincipal(n).build(),o=(new pa).setAclKey([t]).setAces([a]).build();return Ba((new fa).setAction(r).setAcl(o).build())}function $a(t,e){var r,i,n="";if(!Se(t))return n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n);if(!dt(e)||ht(e))i=[];else{if(!bt(e))return n='invalid parameter: "connections" must be an array of strings',Ga.error(n,e),j().reject(n);i=(0,K.Set)(e).toJS()}return cr(Rt).post(w()(r="/".concat(t,"/")).call(r,Gt),i).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Wa(t,e){var r,i,n="";if(!Se(t))return n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n);if(!dt(e)||ht(e))i=[];else{if(!bt(e))return n='invalid parameter: "domains" must be an array of strings',Ga.error(n,e),j().reject(n);i=(0,K.Set)(e).toJS()}return cr(Rt).post(w()(r="/".concat(t,"/")).call(r,Yt),i).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Za(t,e){var r,i,n,a="";return Se(t)?gt(e)?cr(Rt).put(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,pe,"/")).call(i,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 i,n,a,o,s,c="";return Se(t)?Se(e)?gt(r)?cr(Rt).put(w()(i=w()(n=w()(a=w()(o=w()(s="/".concat(t,"/")).call(s,pe,"/")).call(o,fe,"/")).call(a,e,"/")).call(n,se,"/")).call(i,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 Oe(t,Ma,qa)?cr(Rt).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 Oe(t,Pa,za)?cr(Rt).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 Se(t)?cr(Rt).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,i,n,a="";return Se(t)?Se(e)?cr(Rt).delete(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,pe,"/")).call(i,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 io(t,e){var r,i,n="";return Se(t)?Se(e)?cr(Rt).get(w()(r=w()(i="/".concat(t,"/")).call(i,e,"/")).call(r,"destroy")).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n='invalid parameter: "entitySetId" must be a valid UUID',Ga.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n))}function no(){return cr(Rt).get("/").then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function ao(t){var e="";return Se(t)?cr(Rt).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 Se(t)?cr(Rt).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 Se(t)?cr(Rt).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 Se(t)?cr(Rt).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 Se(t)?cr(Rt).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,i="";return Se(t)?cr(Rt).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)})):(i="invalid parameter: organizationId must be a valid UUID",Ga.error(i,t),j().reject(i))}function po(t){var e,r,i="";return Se(t)?cr(Rt).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)})):(i="invalid parameter: organizationId must be a valid UUID",Ga.error(i,t),j().reject(i))}function ho(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(Rt).get(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,pe,"/")).call(i,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,i,n,a,o="";return Se(t)?Se(e)?cr(Rt).get(w()(r=w()(i=w()(n=w()(a="/".concat(t,"/")).call(a,pe,"/")).call(n,fe,"/")).call(i,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,i="";return Se(t)?vt(e)?cr(Rt).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)})):(i='invalid parameter: "dataSource" must be a non-empty object',Ga.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i))}function vo(t,e){var r,i,n="";if(!Se(t))return n="invalid parameter: organizationId must be a valid UUID",Ga.error(n,t),j().reject(n);if(!dt(e)||ht(e))i=[];else{if(!bt(e))return n="invalid parameter: connections must be an array of strings",Ga.error(n,e),j().reject(n);i=(0,K.Set)(e).toJS()}return cr(Rt).delete(w()(r="/".concat(t,"/")).call(r,Gt),{data:i}).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function go(t,e){var r,i,n="";if(!Se(t))return n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n);if(!dt(e)||ht(e))i=[];else{if(!bt(e))return n='invalid parameter: "domains" must be an array of strings',Ga.error(n,e),j().reject(n);i=(0,K.Set)(e).toJS()}return cr(Rt).delete(w()(r="/".concat(t,"/")).call(r,Yt),{data:i}).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function bo(t,e){var r,i="";return Se(t)?gt(e)?cr(Rt).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)})):(i='invalid parameter: "tableName" must be a non-empty string',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(t,e){var r,i,n,a="";return Se(t)?gt(e)?cr(Rt).delete(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,pe,"/")).call(i,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 i,n,a,o,s,c="";return Se(t)?Se(e)?gt(r)?cr(Rt).delete(w()(i=w()(n=w()(a=w()(o=w()(s="/".concat(t,"/")).call(s,pe,"/")).call(o,fe,"/")).call(a,e,"/")).call(n,se,"/")).call(i,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,i="";return Se(t)?gt(e)?cr(Rt).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)})):(i='invalid parameter: "databaseName" must be a non-empty string',Ga.error(i,t),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i))}function wo(t,e){return Ha(t,e,Ir.REMOVE)}function Eo(t,e){var r,i,n="";return Se(t)?Se(e)?cr(Rt).get(w()(r=w()(i="/".concat(t,"/")).call(i,e,"/")).call(r,"transport")).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n='invalid parameter: "entitySetId" must be a valid UUID',Ga.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n))}function Uo(t,e,r){var i,n,a="";return Se(t)?Se(e)?vt(r)?cr(Rt).put(w()(i=w()(n="/".concat(t,"/")).call(n,Ht,"/")).call(i,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 So(t,e){var r,i,n="";if(!Se(t))return n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n);if(!dt(e)||mt(e))i="";else{if(!gt(e))return n='invalid parameter: "description" must be a non-empty string',Ga.error(n,e),j().reject(n);i=e}return cr(Rt).put(w()(r="/".concat(t,"/")).call(r,Xt),i,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Do(t,e){var r,i="";return Se(t)?gt(e)?cr(Rt).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)})):(i='invalid parameter: "title" must be a non-empty string',Ga.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i))}function Ao(t,e,r){var i,n,a,o,s,c="";if(!Se(t))return c='invalid parameter: "organizationId" must be a valid UUID',Ga.error(c,t),j().reject(c);if(!Se(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(Rt).put(w()(i=w()(n=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(n,e,"/")).call(i,Xt),s,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Oo(t,e,r){var i,n,a,o,s="";return Se(t)?Se(e)?Oe(r,Aa,Sa)?cr(Rt).put(w()(i=w()(n=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(n,e,"/")).call(i,"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 ko(t,e,r){var i,n,a,o,s="";return Se(t)?Se(e)?gt(r)?cr(Rt).put(w()(i=w()(n=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(n,e,"/")).call(i,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 Co=new et("PersistentSearchApi");function xo(t){var e="";return vt(t)?cr(qt).post("",t).then((function(t){return t.data})).catch((function(t){return Co.error(t),j().reject(t)})):(e='invalid parameter: "persistentSearch" must be a non-empty object',Co.error(e,t),j().reject(e))}function zo(t){var e="";return Se(t)?cr(qt).delete("/".concat(t)).then((function(t){return t.data})).catch((function(t){return Co.error(t),j().reject(t)})):(e='invalid parameter: "persistentSearchId" must be a valid UUID',Co.error(e,t),j().reject(e))}function No(t){var e="";return di()(t)?cr(qt).get("?includeExpired=".concat(t)).then((function(t){return t.data})).catch((function(t){return Co.error(t),j().reject(t)})):(e='invalid parameter: "includeExpired" must be a boolean',Co.error(e,t),j().reject(e))}function Ro(t,e){var r,i="";return Se(t)?gt(e)?cr(qt).patch(w()(r="/".concat(t,"/")).call(r,"expiration"),e).then((function(t){return t.data})).catch((function(t){return Co.error(t),j().reject(t)})):(i='invalid parameter: "expiration" must be a valid string',Co.error(i,t),j().reject(i)):(i='invalid parameter: "persistentSearchId" must be a valid UUID',Co.error(i,t),j().reject(i))}var Po=new et("PrincipalsApi");function qo(){return cr(Lt).get("/".concat(fe)).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function Lo(){return cr(Lt).get("/".concat(je)).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function Mo(){return cr(Lt).get("/".concat("db")).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function _o(){var t;return cr(Lt).get(w()(t="/".concat(fe,"/")).call(t,"current")).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function Ko(t){var e="";return Oe(t,sa,aa)?cr(Lt).post("/",t).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)})):(e="invalid parameter: principal must be a valid Principal",Po.error(e,t),j().reject(e))}function Fo(t){var e,r="";return gt(t)?cr(Lt).get(w()(e="/".concat(je,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)})):(r="invalid parameter: userId must be a non-empty string",Po.error(r,t),j().reject(r))}function Jo(t){var e="";return yt(t)?vr()(t).call(t,gt)?cr(Lt).post("/".concat(je),t).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)})):(e='invalid parameter: "userIds" must be an array of strings',Po.error(e,t),j().reject(e)):(e='invalid parameter: "userIds" must be a non-empty array',Po.error(e,t),j().reject(e))}function Bo(){var t;return cr(Lt).post(w()(t="/".concat("db","/")).call(t,"credential")).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function Vo(t){var e,r="";return vt(t)?cr(Lt).post(w()(e="/".concat(je,"/")).call(e,ye),t).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)})):(r='invalid parameter: "fields" must be a non-empty object',Po.error(r,t),j().reject(r))}function Go(){return cr(Lt).get("/".concat("sync")).then((function(t){return t.data})).catch((function(t){return Po.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 $o(t,e){var r,i,n,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="",s={};if(!Se(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(mi," 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 li()(r=e.entityKeyIds).call(r,(function(e){return t.add(e)}))})).toJS();if(s.entityKeyIds=p,ht(e[hi])||De(e[hi]))c=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[hi]).call(r,(function(e){return t.add(e)}))})).toJS(),s.dst=c;else if(dt(e[hi]))return o="invalid parameter: filter.".concat(hi," must be a set of valid UUIDs"),Qo.error(o,e[hi]),j().reject(o);if(ht(e[fi])||De(e[fi]))u=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[fi]).call(r,(function(e){return t.add(e)}))})).toJS(),s.edge=u;else if(dt(e[fi]))return o="invalid parameter: filter.".concat(fi," must be a set of valid UUIDs"),Qo.error(o,e[fi]),j().reject(o);if(ht(e[yi])||De(e[yi]))l=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[yi]).call(r,(function(e){return t.add(e)}))})).toJS(),s.src=l;else if(dt(e[yi]))return o="invalid parameter: filter.".concat(yi," must be a set of valid UUIDs"),Qo.error(o,e[yi]),j().reject(o);var d=w()(r=w()(i="/".concat(t,"/")).call(i,ue,"/")).call(r,_t),h=a?w()(n="".concat(d,"/")).call(n,ne):d;return cr(Mt).post(h,s).then((function(t){return t.data})).catch((function(t){return Qo.error(t),j().reject(t)}))}function Wo(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,i=t.maxHits,n=t.start;return De(r)?!ka()(n)||n<0?(e='invalid property: "start" must be a positive number',Qo.error(e,n),j().reject(e)):!ka()(i)||i<0?(e='invalid property: "maxHits" must be a positive number',Qo.error(e,i),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.93.3";const Xo={AppApi:t,AuthorizationsApi:n,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}})(),i})()})); \ 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(7010)},4804:(t,e,r)=>{t.exports=r(2118)},62:(t,e,r)=>{t.exports=r(973)},7175:(t,e,r)=>{t.exports=r(477)},8914:(t,e,r)=>{t.exports=r(2142)},8580:(t,e,r)=>{t.exports=r(5001)},3054:(t,e,r)=>{t.exports=r(9582)},2991:(t,e,r)=>{t.exports=r(3919)},9828:(t,e,r)=>{t.exports=r(6214)},6474:(t,e,r)=>{t.exports=r(9568)},6902:(t,e,r)=>{t.exports=r(6986)},455:(t,e,r)=>{t.exports=r(9027)},3476:(t,e,r)=>{t.exports=r(9863)},1445:(t,e,r)=>{t.exports=r(9548)},4341:(t,e,r)=>{t.exports=r(9219)},9542:(t,e,r)=>{t.exports=r(9402)},3535:(t,e,r)=>{t.exports=r(5829)},9669:(t,e,r)=>{t.exports=r(1609)},5448:(t,e,r)=>{"use strict";var i=r(4867),n=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;i.isFormData(p)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(f+":"+m)}var y=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),o(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:t,request:h};n(e,r,a),h=null}},h.onabort=function(){h&&(r(l("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(l("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,"ECONNABORTED",h)),h=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||u(y))&&t.xsrfCookieName?a.read(t.xsrfCookieName):void 0;v&&(d[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&i.forEach(d,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},1609:(t,e,r)=>{"use strict";var i=r(4867),n=r(1849),a=r(321),o=r(7185);function s(t){var e=new a(t),r=n(a.prototype.request,e);return i.extend(r,a.prototype,e),i.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 i=r(5263);function n(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 i(t),e(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n((function(e){t=e})),cancel:t}},t.exports=n},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,r)=>{"use strict";var i=r(4867),n=r(5327),a=r(782),o=r(3572),s=r(7185);function c(t){this.defaults=t,this.interceptors={request:new a,response:new a}}c.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=[o,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},c.prototype.getUri=function(t){return t=s(this.defaults,t),n(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),i.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,r,i){return this.request(s(i||{},{method:t,url:e,data:r}))}})),t.exports=c},782:(t,e,r)=>{"use strict";var i=r(4867);function n(){this.handlers=[]}n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=n},4097:(t,e,r)=>{"use strict";var i=r(1793),n=r(7303);t.exports=function(t,e){return t&&!i(e)?n(t,e):e}},5061:(t,e,r)=>{"use strict";var i=r(481);t.exports=function(t,e,r,n,a){var o=new Error(t);return i(o,e,r,n,a)}},3572:(t,e,r)=>{"use strict";var i=r(4867),n=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=n(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.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=n(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(s(t),e&&e.response&&(e.response.data=n(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,r,i,n){return t.config=e,r&&(t.code=r),t.request=i,t.response=n,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 i=r(4867);t.exports=function(t,e){e=e||{};var r={},n=["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 i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function u(n){i.isUndefined(e[n])?i.isUndefined(t[n])||(r[n]=c(void 0,t[n])):r[n]=c(t[n],e[n])}i.forEach(n,(function(t){i.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),i.forEach(a,u),i.forEach(o,(function(n){i.isUndefined(e[n])?i.isUndefined(t[n])||(r[n]=c(void 0,t[n])):r[n]=c(void 0,e[n])})),i.forEach(s,(function(i){i in e?r[i]=c(t[i],e[i]):i in t&&(r[i]=c(void 0,t[i]))}));var l=n.concat(a).concat(o).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return i.forEach(p,u),r}},6026:(t,e,r)=>{"use strict";var i=r(5061);t.exports=function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(i("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8527:(t,e,r)=>{"use strict";var i=r(4867);t.exports=function(t,e,r){return i.forEach(r,(function(r){t=r(t,e)})),t}},5655:(t,e,r)=>{"use strict";var i=r(4867),n=r(6016),a={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=r(5448)),s),transformRequest:[function(t,e){return n(e,"Accept"),n(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(a)})),t.exports=c},1849:t=>{"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),i=0;i{"use strict";var i=r(4867);function n(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(i.isURLSearchParams(e))a=e.toString();else{var o=[];i.forEach(e,(function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),o.push(n(e)+"="+n(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 i=r(4867);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,r,n,a,o){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),i.isString(n)&&s.push("path="+n),i.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 i=r(4867);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var i=t;return e&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{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=n(window.location.href),function(e){var r=i.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6016:(t,e,r)=>{"use strict";var i=r(4867);t.exports=function(t,e){i.forEach(t,(function(r,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[i])}))}},4109:(t,e,r)=>{"use strict";var i=r(4867),n=["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?(i.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=i.trim(t.substr(0,a)).toLowerCase(),r=i.trim(t.substr(a+1)),e){if(o[e]&&n.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)}}},4867:(t,e,r)=>{"use strict";var i=r(1849),n=Object.prototype.toString;function a(t){return"[object Array]"===n.call(t)}function o(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==n.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===n.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(var r=0,i=t.length;r=0&&r<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(a=r,!1!==i&&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,i.default)(t),(e=(0,n.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 i=a(r(5571)),n=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,n.default)(e),!(r=String(r)))return t(e,4)||t(e,6);if("4"===r){if(!s.test(e))return!1;var i=e.split(".").sort((function(t,e){return t-e}));return i[3]<=255}if("6"===r)return!!u.test(e);return!1};var i,n=(i=r(5571))&&i.__esModule?i:{default:i};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,i.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,n.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 i=s(r(5571)),n=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},9548:t=>{"use strict";t.exports=require("core-js-pure/features/instance/bind")},9219:t=>{"use strict";t.exports=require("core-js-pure/features/object/define-property")},9402:t=>{"use strict";t.exports=require("core-js-pure/features/object/set-prototype-of")},5829:t=>{"use strict";t.exports=require("core-js-pure/features/reflect/construct")},7010:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/concat")},2118:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/ends-with")},973:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/every")},477:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/flags")},2142:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/for-each")},5001:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/includes")},9582:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/last-index-of")},3919:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/map")},6214:t=>{"use strict";t.exports=require("core-js-pure/stable/instance/starts-with")},9568:t=>{"use strict";t.exports=require("core-js-pure/stable/object/freeze")},6986:t=>{"use strict";t.exports=require("core-js-pure/stable/object/keys")},9027:t=>{"use strict";t.exports=require("core-js-pure/stable/object/values")},9863:t=>{"use strict";t.exports=require("core-js-pure/stable/promise")}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var a=e[i]={exports:{}};return t[i].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 i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},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 i={};return(()=>{"use strict";r.r(i),r.d(i,{AppApi:()=>t,AuthorizationsApi:()=>n,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:()=>Ur,PermissionTypes:()=>Sr,PrincipalTypes:()=>Dr,RequestStateTypes:()=>Ar,SecurableTypes:()=>Or,SortTypes:()=>kr,UpdateTypes:()=>Cr});var n={};r.r(n),r.d(n,{getAuthorizations:()=>qr});var a={};r.r(a),r.d(a,{sendOutgoingText:()=>Mr});var o={};r.r(o),r.d(o,{addDataSetToCollaboration:()=>Wr,addOrganizationsToCollaboration:()=>Gr,createCollaboration:()=>Br,deleteCollaboration:()=>Vr,getCollaboration:()=>Fr,getCollaborationDataSets:()=>Yr,getCollaborationDatabaseInfo:()=>Hr,getCollaborations:()=>Kr,getCollaborationsWithDataSets:()=>ti,getCollaborationsWithOrganization:()=>Jr,getOrganizationCollaborationDataSets:()=>Xr,removeDataSetFromCollaboration:()=>Zr,removeOrganizationsFromCollaboration:()=>Qr,renameCollaborationDatabase:()=>$r});var s={};r.r(s),r.d(s,{AT_CLASS:()=>ei,AT_ID:()=>ri,OPENLATTICE_COUNT_FQN:()=>ii,OPENLATTICE_ID_FQN:()=>ni,OPENLATTICE_LAST_INDEX_FQN:()=>ai,OPENLATTICE_LAST_LINK_FQN:()=>oi,OPENLATTICE_LAST_WRITE_FQN:()=>si,OPENLATTICE_VERSION_FQN:()=>ci});var c={};r.r(c),r.d(c,{createAssociations:()=>ji,createEntityAndAssociationData:()=>Ti,createOrMergeEntityData:()=>wi,deleteEntityAndNeighborData:()=>Ei,deleteEntityData:()=>Ui,deleteEntitySetData:()=>Si,getBinaryProperties:()=>xi,getEntityData:()=>Di,getEntitySetData:()=>Ai,getEntitySetSize:()=>Oi,getLinkedEntitySetBreakdown:()=>ki,updateEntityData:()=>Ci});var u={};r.r(u),r.d(u,{getEntityKeyIds:()=>Ni});var l={};r.r(l),r.d(l,{getDataSetColumnMetadata:()=>Li,getDataSetColumnsMetadata:()=>Mi,getDataSetMetadata:()=>Pi,getDataSetsMetadata:()=>qi,getOrganizationDataSetsMetadata:()=>_i,updateDataSetColumnMetadata:()=>Fi,updateDataSetMetadata:()=>Ki});var p={};r.r(p),r.d(p,{getOrganizationDataSet:()=>Gi,getOrganizationDataSetData:()=>Hi,getOrganizationDataSetSchema:()=>$i,getOrganizationDataSets:()=>Qi});var d={};r.r(d),r.d(d,{addDestinationEntityTypeToAssociationType:()=>mn,addPropertyTypeToEntityType:()=>yn,addSourceEntityTypeToAssociationType:()=>vn,createAssociationType:()=>gn,createEntityType:()=>bn,createPropertyType:()=>In,createSchema:()=>jn,deleteAssociationType:()=>Tn,deleteEntityType:()=>wn,deletePropertyType:()=>En,getAllAssociationEntityTypes:()=>Un,getAllAssociationTypes:()=>Sn,getAllEntityTypes:()=>Dn,getAllPropertyTypes:()=>An,getAllSchemas:()=>On,getAssociationType:()=>kn,getEntityDataModel:()=>Cn,getEntityDataModelProjection:()=>xn,getEntityType:()=>zn,getPropertyType:()=>Nn,getSchema:()=>Rn,removeDestinationEntityTypeFromAssociationType:()=>Pn,removePropertyTypeFromEntityType:()=>qn,removeSourceEntityTypeFromAssociationType:()=>Ln,updateEntityTypeMetaData:()=>Mn,updatePropertyTypeMetaData:()=>_n,updateSchema:()=>Kn});var h={};r.r(h),r.d(h,{createEntitySets:()=>$n,deleteEntitySet:()=>Wn,getAllEntitySets:()=>Zn,getEntitySet:()=>Xn,getEntitySetId:()=>Yn,getEntitySetIds:()=>ta,getEntitySets:()=>ea,getPropertyTypeMetaDataForEntitySet:()=>ra,getPropertyTypeMetaDataForEntitySets:()=>ia,updateEntitySetMetaData:()=>na});var f={};r.r(f),r.d(f,{AccessCheckBuilder:()=>Nr,AceBuilder:()=>ua,AclBuilder:()=>pa,AclDataBuilder:()=>fa,AppBuilder:()=>va,AppTypeBuilder:()=>ba,AssociationTypeBuilder:()=>on,DataGraphBuilder:()=>bi,EntityDataKeyBuilder:()=>ja,EntitySetBuilder:()=>Gn,EntityTypeBuilder:()=>rn,FQN:()=>Et,GrantBuilder:()=>Aa,OrganizationBuilder:()=>Ma,PrincipalBuilder:()=>sa,PropertyTypeBuilder:()=>un,RoleBuilder:()=>Pa,SchemaBuilder:()=>dn});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:()=>$a,addDomainsToOrganization:()=>Wa,addMemberToOrganization:()=>Za,addRoleToMember:()=>Xa,createOrganization:()=>Ya,createRole:()=>to,deleteOrganization:()=>eo,deleteRole:()=>ro,destroyTransportedOrganizationEntitySet:()=>io,getAllOrganizations:()=>no,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:()=>Uo,updateOrganizationDescription:()=>So,updateOrganizationTitle:()=>Do,updateRoleDescription:()=>Ao,updateRoleGrant:()=>Oo,updateRoleTitle:()=>ko});var v={};r.r(v),r.d(v,{createPersistentSearch:()=>xo,expirePersistentSearch:()=>zo,getPersistentSearches:()=>No,updatePersistentSearchExpiration:()=>Ro});var g={};r.r(g),r.d(g,{getAllRoles:()=>qo,getAllUsers:()=>Lo,getAtlasCredentials:()=>Mo,getCurrentRoles:()=>_o,getSecurablePrincipal:()=>Ko,getUser:()=>Fo,getUsers:()=>Jo,regenerateCredential:()=>Bo,searchUsers:()=>Vo,syncUser:()=>Go});var b={};r.r(b),r.d(b,{searchDataSetMetadata:()=>Ho,searchEntityNeighborsWithFilter:()=>$o,searchEntitySetData:()=>Wo});var I=r(3476),j=r.n(I),T=r(7766),w=r.n(T),E=r(3535),U=r(1445),S=r(9542);function D(t,e){return(D=S||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 O(t,e,r){return(O=A()?E:function(t,e,r){var i=[null];i.push.apply(i,e);var n=new(U(Function).apply(t,i));return r&&D(n,r.prototype),n}).apply(null,arguments)}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var C=r(4341);function x(t,e){for(var r=0;r2?a-2:0),s=2;s0&&(i=this.logger)[t].apply(i,o)}},{key:"trace",value:function(t){this.log(H,t)}},{key:"debug",value:function(t){for(var e,r=arguments.length,i=new Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n2&&void 0!==arguments[2]&&arguments[2],i="";if(gt(t))if(gt(e)){var n,a=w()(n="".concat(t,".")).call(n,e);if(a.length<=63)return a;i="invalid FQN: FQNs must be <= ".concat(63," characters, got ").concat(a.length)}else i="invalid FQN: name must be a non-empty string";else i="invalid FQN: namespace must be a non-empty string";if(!0===r)throw It.error(i),new Error(i);return""}var Et=function(){function t(){if(k(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),i=r.namespace,n=r.name;wt(i,n,!0),this.namespace=i,this.name=n}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(!Se(t))return s="invalid parameter: entitySetId must be a valid UUID",Ii.error(s,t),j().reject(s);if(!vt(e))return s="invalid parameter: filter must be a non-empty object",Ii.error(s,t),j().reject(s);if(!De(e.entityKeyIds))return s="invalid parameter: filter.".concat(mi," must be a non-empty set of valid UUIDs"),Ii.error(s,e.entityKeyIds),j().reject(s);var u,l,p=(0,K.Set)().withMutations((function(t){var r;return li()(r=e.entityKeyIds).call(r,(function(e){return t.add(e)}))})).toJS();if(c.entityKeyIds=p,ht(e[hi])||De(e[hi]))u=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[hi]).call(r,(function(e){return t.add(e)}))})).toJS(),c.dst=u;else if(dt(e[hi]))return s="invalid parameter: filter.".concat(hi," must be a set of valid UUIDs"),Ii.error(s,e[hi]),j().reject(s);if(ht(e[yi])||De(e[yi]))l=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[yi]).call(r,(function(e){return t.add(e)}))})).toJS(),c.src=l;else if(dt(e[yi]))return s="invalid parameter: filter.".concat(yi," must be a set of valid UUIDs"),Ii.error(s,e[yi]),j().reject(s);return gt(o)&&Tr[o]?cr(Ot).post(w()(r=w()(i=w()(n=w()(a="/".concat(ve,"/")).call(a,t,"/")).call(n,ue,"?")).call(i,be,"=")).call(r,o),c).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)})):(s="invalid parameter: deleteType must be a valid DeleteType",Ii.error(s,o),j().reject(s))}function Ui(t,e){var r,i,n,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(!Se(t))return u="invalid parameter: entitySetId must be a valid UUID",Ii.error(u,t),j().reject(u);if(!Se(e)&&!De(e))return u="invalid parameter: entityKeyIds must be a valid UUID or array of UUIDs",Ii.error(u,e),j().reject(u);if(!Tr[s])return u="invalid parameter: deleteType must be a valid DeleteType",Ii.error(u,s),j().reject(u);if(!di()(c))return u="invalid parameter: block must be a boolean",Ii.error(u,c),j().reject(u);var l=e;return"string"==typeof e&&(l=[e]),cr(Ot).delete(w()(r=w()(i=w()(n=w()(a=w()(o="/".concat(ve,"/")).call(o,t,"?")).call(a,be,"=")).call(n,s,"&")).call(i,Jt,"=")).call(r,c),{data:l}).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)}))}function Si(t){var e,r,i,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tr.SOFT,o="";return Se(t)?Tr[a]?cr(Ot).delete(w()(e=w()(r=w()(i=w()(n="/".concat(ve,"/")).call(n,t,"/")).call(i,Kt,"?")).call(r,be,"=")).call(e,a)).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)})):(o='invalid parameter: "deleteType" must be a valid DeleteType',Ii.error(o,a),j().reject(o)):(o='invalid parameter: "entitySetId" must be a valid UUID',Ii.error(o,t),j().reject(o))}function Di(t,e){var r,i="";return Se(t)?Se(e)?cr(Ot).get(w()(r="/".concat(t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)})):(i='invalid parameter: "entityKeyId" must be a valid UUID',Ii.error(i,e),j().reject(i)):(i='invalid parameter: "entitySetId" must be a valid UUID',Ii.error(i,t),j().reject(i))}function Ai(t,e,r){var i,n="";if(!Se(t))return n="invalid parameter: entitySetId must be a valid UUID",Ii.error(n,t),j().reject(n);var a={};if(De(e))a.properties=(0,K.Set)().withMutations((function(t){li()(e).call(e,(function(e){t.add(e)}))})).toJS();else if(!ut()(e)&&!ht(e))return n="invalid parameter: propertyTypeIds must be a non-empty array of valid UUIDs",Ii.error(n,e),j().reject(n);if(De(r))a.ids=(0,K.Set)().withMutations((function(t){li()(r).call(r,(function(e){t.add(e)}))})).toJS();else if(!ut()(r)&&!ht(r))return n="invalid parameter: entityKeyIds must be a non-empty array of valid UUIDs",Ii.error(n,r),j().reject(n);return cr(Ot).post(w()(i="/".concat(ve,"/")).call(i,t),a).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)}))}function Oi(t){var e,r="";return Se(t)?cr(Ot).get(w()(e="/".concat(t,"/")).call(e,"count")).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Ii.error(r,t),j().reject(r))}function ki(t,e,r){var i,n,a="";if(!Se(t))return a="invalid parameter: entitySetId must be a valid UUID",Ii.error(a,t),j().reject(a);var o={};if(De(e))o.properties=(0,K.Set)().withMutations((function(t){li()(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",Ii.error(a,e),j().reject(a);if(De(r))o.ids=(0,K.Set)().withMutations((function(t){li()(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",Ii.error(a,r),j().reject(a);return cr(Ot).post(w()(i=w()(n="/".concat(ve,"/")).call(n,t,"/")).call(i,"detailed"),o).then((function(t){return t.data})).catch((function(t){return Ii.error(t),j().reject(t)}))}function Ci(t,e){var r,i,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cr.PARTIAL_REPLACE,o="";if(!Se(t))return o='invalid parameter: "entitySetId" must be a valid UUID',Ii.error(o,t),j().reject(o);if(!vt(e))return o='invalid parameter: "entityData" must be a non-empty object',Ii.error(o,t),j().reject(o);for(var s=we()(e),c=0;c2&&void 0!==arguments[2])||arguments[2],c="";return Se(t)?Se(e)?!0===s?cr(Ct).get(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,e,"/")).call(i,ie,"/")).call(r,re)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):!1===s?cr(Ct).get(w()(a=w()(o="/".concat(t,"/")).call(o,e,"/")).call(a,ie)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):(c='invalid parameter: "columns" must be a boolean',Vi.error(c,s),j().reject(c)):(c='invalid parameter: "dataSetId" must be a valid UUID',Vi.error(c,e),j().reject(c)):(c='invalid parameter: "organizationId" must be a valid UUID',Vi.error(c,t),j().reject(c))}function Qi(t){var e,r,i,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a="";return Se(t)?!0===n?cr(Ct).get(w()(e=w()(r="/".concat(t,"/")).call(r,ie,"/")).call(e,re)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):!1===n?cr(Ct).get(w()(i="/".concat(t,"/")).call(i,ie)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):(a='invalid parameter: "columns" must be a boolean',Vi.error(a,n),j().reject(a)):(a='invalid parameter: "organizationId" must be a valid UUID',Vi.error(a,t),j().reject(a))}function Hi(t,e){var r,i,n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o="";return Se(t)?Se(e)?!Bi()(a)||a<=0?(o='invalid parameter: "count" must be a positive integer',Vi.error(o,e),j().reject(o)):cr(Ct).get(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,e,"/")).call(i,a,"/")).call(r,Wt)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):(o='invalid parameter: "dataSetId" must be a valid UUID',Vi.error(o,e),j().reject(o)):(o='invalid parameter: "organizationId" must be a valid UUID',Vi.error(o,t),j().reject(o))}function $i(t,e){var r,i,n="";return Se(t)?Se(e)?cr(Ct).get(w()(r=w()(i="/".concat(t,"/")).call(i,e,"/")).call(r,me)).then((function(t){return t.data})).catch((function(t){return Vi.error(t),j().reject(t)})):(n='invalid parameter: "dataSetId" must be a valid UUID',Vi.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Vi.error(n,t),j().reject(n))}var Wi=r(2991),Zi=r.n(Wi);const Xi=require("lodash/has");var Yi=r.n(Xi),tn=new et("EntityType"),en=function(){function t(e){k(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:Zi()(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}(),rn=function(){function t(e){k(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(!Se(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(!Or[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(!Se(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(!it()(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,Se))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,Se))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(!it()(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,Se))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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "schemas" must be an array');try{var e;this.schemas=Zi()(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 en({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}(),nn=new et("AssociationType"),an=function(){function t(e){k(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}(),on=function(){function t(e){k(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(!di()(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 rn(t).build(),this}},{key:"setDestinationEntityTypeIds",value:function(t){if(!dt(t))return this;if(!it()(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,Se))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(!it()(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,Se))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 an({bidirectional:this.bidirectional,dst:this.destinationEntityTypeIds,entityType:this.entityType,src:this.sourceEntityTypeIds})}}]),t}(),sn=new et("PropertyType"),cn=function(){function t(e){k(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:Zi()(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}(),un=function(){function t(e){k(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(!it()(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(!Se(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(!Ur[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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "schemas" must be an array');try{var e;this.schemas=Zi()(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 cn({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}(),ln=new et("Schema"),pn=function(){function t(e){k(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:Zi()(t=this.entityTypes).call(t,(function(t){return t.toObject()})),fqn:this.fqn.toObject(),propertyTypes:Zi()(e=this.propertyTypes).call(e,(function(t){return t.toObject()}))}}},{key:"valueOf",value:function(){return this.toImmutable().hashCode()}}]),t}(),dn=function(){function t(e){k(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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "entityTypes" must be an array');try{var e;this.entityTypes=Zi()(e=(0,K.Set)(t)).call(e,(function(t){return new rn(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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "propertyTypes" must be an array');try{var e;this.propertyTypes=Zi()(e=(0,K.Set)(t)).call(e,(function(t){return new un(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 pn({entityTypes:this.entityTypes,fqn:this.fqn,propertyTypes:this.propertyTypes})}}]),t}(),hn=function(t){return Oe(t,dn,ln)},fn=new et("EntityDataModelApi");function mn(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(zt).put(w()(r=w()(i=w()(n="/".concat(Ft,"/")).call(n,t,"/")).call(i,"dst","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fn.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fn.error(a,t),j().reject(a))}function yn(t,e){var r,i,n="";return Se(t)?Se(e)?cr(zt).put(w()(r=w()(i="/".concat(ee,"/")).call(i,t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(n='invalid parameter: "propertyTypeId" must be a valid UUID',fn.error(n,e),j().reject(n)):(n='invalid parameter: "entityTypeId" must be a valid UUID',fn.error(n,t),j().reject(n))}function vn(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(zt).put(w()(r=w()(i=w()(n="/".concat(Ft,"/")).call(n,t,"/")).call(i,"src","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fn.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fn.error(a,t),j().reject(a))}function gn(t){var e="";return Oe(t,on,nn)?cr(zt).post("/".concat(Ft),t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "associationType" must be a valid AssociationType',fn.error(e,t),j().reject(e))}function bn(t){var e="";return Oe(t,rn,tn)?cr(zt).post("/".concat(ee),t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "entityType" must be a valid EntityType',fn.error(e,t),j().reject(e))}function In(t){var e="";return Oe(t,un,sn)?cr(zt).post("/".concat(he),t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "propertyType" must be a valid PropertyType',fn.error(e,t),j().reject(e))}function jn(t){var e="";return hn(t)?cr(zt).post("/".concat(me),t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "schema" must be a valid Schema',fn.error(e,t),j().reject(e))}function Tn(t){var e,r="";return Se(t)?cr(zt).delete(w()(e="/".concat(Ft,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "associationTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function wn(t){var e,r="";return Se(t)?cr(zt).delete(w()(e="/".concat(ee,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "entityTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function En(t){var e,r="";return Se(t)?cr(zt).delete(w()(e="/".concat(he,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "propertyTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function Un(){var t;return cr(zt).get(w()(t="/".concat(Ft,"/")).call(t,ee)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function Sn(){return cr(zt).get("/".concat(Ft)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function Dn(){return cr(zt).get("/".concat(ee)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function An(){return cr(zt).get("/".concat(he)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function On(){return cr(zt).get("/".concat(me)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function kn(t){var e,r="";return Se(t)?cr(zt).get(w()(e="/".concat(Ft,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "associationTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function Cn(){return cr(zt).get("/").then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function xn(t){var e="";return Ue(t,vt)?cr(zt).post("/",t).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(e='invalid parameter: "projection" must be an array of objects',fn.error(e,t),j().reject(e))}function zn(t){var e,r="";return Se(t)?cr(zt).get(w()(e="/".concat(ee,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "entityTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function Nn(t){var e,r="";return Se(t)?cr(zt).get(w()(e="/".concat(he,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(r='invalid parameter: "propertyTypeId" must be a valid UUID',fn.error(r,t),j().reject(r))}function Rn(t){var e,r,i="";if(!Et.isValid(t))return i='invalid parameter: "schemaFQN" must be a valid FQN',fn.error(i,t),j().reject(i);var n=t.namespace,a=t.name;return cr(zt).get(w()(e=w()(r="/".concat(me,"/")).call(r,n,"/")).call(e,a)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}function Pn(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(zt).delete(w()(r=w()(i=w()(n="/".concat(Ft,"/")).call(n,t,"/")).call(i,"dst","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fn.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fn.error(a,t),j().reject(a))}function qn(t,e){var r,i,n="";return Se(t)?Se(e)?cr(zt).delete(w()(r=w()(i="/".concat(ee,"/")).call(i,t,"/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(n="invalid parameter: propertyTypeId must be a valid UUID",fn.error(n,e),j().reject(n)):(n="invalid parameter: entityTypeId must be a valid UUID",fn.error(n,t),j().reject(n))}function Ln(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(zt).delete(w()(r=w()(i=w()(n="/".concat(Ft,"/")).call(n,t,"/")).call(i,"src","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(a="invalid parameter: entityTypeId must be a valid UUID",fn.error(a,e),j().reject(a)):(a="invalid parameter: associationTypeId must be a valid UUID",fn.error(a,t),j().reject(a))}function Mn(t,e){var r,i="";return Se(t)?vt(e)?Yi()(e,"type")&&!Et.isValid(e.type)?(i="invalid parameter: type must be a valid FQN",fn.error(i,e.type),j().reject(i)):Yi()(e,"name")&&!gt(e.name)?(i="invalid parameter: name must be a non-empty string",fn.error(i,e.name),j().reject(i)):Yi()(e,"title")&&!gt(e.title)?(i="invalid parameter: title must be a non-empty string",fn.error(i,e.title),j().reject(i)):Yi()(e,"description")&&!gt(e.description)?(i="invalid parameter: description must be a non-empty string",fn.error(i,e.description),j().reject(i)):Yi()(e,"contacts")&&!bt(e.contacts)?(i="invalid parameter: contacts must be a non-empty string",fn.error(i,e.contacts),j().reject(i)):cr(zt).patch(w()(r="/".concat(ee,"/")).call(r,t),e).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(i="invalid parameter: metadata must be a non-empty object",fn.error(i,e),j().reject(i)):(i="invalid parameter: entityTypeId must be a valid UUID",fn.error(i,t),j().reject(i))}function _n(t,e){var r,i="";return Se(t)?vt(e)?Yi()(e,"type")&&!Et.isValid(e.type)?(i="invalid parameter: type must be a valid FQN",fn.error(i,e.type),j().reject(i)):Yi()(e,"name")&&!gt(e.name)?(i="invalid parameter: name must be a non-empty string",fn.error(i,e.name),j().reject(i)):Yi()(e,"title")&&!gt(e.title)?(i="invalid parameter: title must be a non-empty string",fn.error(i,e.title),j().reject(i)):Yi()(e,"description")&&!gt(e.description)?(i="invalid parameter: description must be a non-empty string",fn.error(i,e.description),j().reject(i)):Yi()(e,"contacts")&&!bt(e.contacts)?(i="invalid parameter: contacts must be a non-empty string",fn.error(i,e.contacts),j().reject(i)):cr(zt).patch(w()(r="/".concat(he,"/")).call(r,t),e).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)})):(i="invalid parameter: metadata must be a non-empty object",fn.error(i,e),j().reject(i)):(i="invalid parameter: propertyTypeId must be a valid UUID",fn.error(i,t),j().reject(i))}function Kn(t){var e,r,i,n,a="";if(!hn(t))return a='invalid parameter: "schema" must be a valid Schema',fn.error(a,t),j().reject(a);var o={action:Ir.REPLACE,entityTypes:Zi()(e=t.entityTypes).call(e,(function(t){return t.id})),propertyTypes:Zi()(r=t.propertyTypes).call(r,(function(t){return t.id}))};return cr(zt).patch(w()(i=w()(n="/".concat(me,"/")).call(n,t.fqn.namespace,"/")).call(i,t.fqn.name),o).then((function(t){return t.data})).catch((function(t){return fn.error(t),j().reject(t)}))}var Fn=r(7175),Jn=r.n(Fn),Bn=new et("EntitySet"),Vn=function(){function t(e){k(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(Jn()(e))&&(this.flags=Jn()(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(Jn()(this))&&(t.flags=Jn()(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}(),Gn=function(){function t(e){k(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(Jn()(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(!it()(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(!Se(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(!it()(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(!Se(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(!it()(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,Se))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(!Se(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 Vn({contacts:this.contacts,description:this.description,entityTypeId:this.entityTypeId,flags:Jn()(this),id:this.id,linkedEntitySets:this.linkedEntitySets,name:this.name,organizationId:this.organizationId,title:this.title})}}]),t}(),Qn=function(t){return Oe(t,Gn,Bn)},Hn=new et("EntitySetsApi");function $n(t){var e="";return yt(t)?vr()(t).call(t,Qn)?cr(Nt).post("/",t).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(e="invalid parameter: entitySets must be a non-empty array of valid EntitySets",Hn.error(e,t),j().reject(e)):(e="invalid parameter: entitySets must be a non-empty array",Hn.error(e,t),j().reject(e))}function Wn(t){var e,r="";return Se(t)?cr(Nt).delete(w()(e="/".concat(Kt,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Hn.error(r,t),j().reject(r))}function Zn(){return cr(Nt).get("/").then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)}))}function Xn(t){var e,r="";return Se(t)?cr(Nt).get(w()(e="/".concat(Kt,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(r="invalid parameter: entitySetId must be a valid UUID",Hn.error(r,t),j().reject(r))}function Yn(t){var e,r="";return gt(t)?cr(Nt).get(w()(e="/".concat(ne,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(r="invalid parameter: entitySetName must be a non-empty string",Hn.error(r,t),j().reject(r))}function ta(t){var e="";return yt(t)?vr()(t).call(t,gt)?cr(Nt).post("/".concat(ne),t).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(e='invalid parameter: "entitySetNames" must be an array of strings',Hn.error(e,t),j().reject(e)):(e='invalid parameter: "entitySetNames" must be a non-empty array',Hn.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',Hn.error(e,t),j().reject(e);var r=(0,K.Set)(t);return vr()(r).call(r,Se)?cr(Nt).post("/".concat("by-id"),r.toJS()).then((function(t){return t.data})).catch((function(t){return Hn.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 Hn.error(t),j().reject(t)})):(e='invalid parameter: "idsOrNames" must be an array of EntitySet ids or names',Hn.error(e,t),j().reject(e))}function ra(t,e){var r,i,n,a,o,s="";return Se(t)?dt(e)?dt(e)&&!Se(e)?(s="invalid parameter: propertyTypeId must be a valid UUID",Hn.error(s,e),j().reject(s)):cr(Nt).get(w()(r=w()(i=w()(n="/".concat(Kt,"/")).call(n,t,"/")).call(i,"properties","/")).call(r,e)).then((function(t){return t.data})).catch((function(t){return Hn.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 Hn.error(t),j().reject(t)})):(s="invalid parameter: entitySetId must be a valid UUID",Hn.error(s,t),j().reject(s))}function ia(t){var e,r="";if(!De(t))return r="invalid parameter: entitySetIds must be a valid UUID array",Hn.error(r,t),j().reject(r);var i=(0,K.Set)(t).toJS();return cr(Nt).post(w()(e="/".concat(Kt,"/")).call(e,ce),i).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)}))}function na(t,e){var r,i,n="";return Se(t)?vt(e)?cr(Nt).patch(w()(r=w()(i="/".concat(Kt,"/")).call(i,t,"/")).call(r,ce),e).then((function(t){return t.data})).catch((function(t){return Hn.error(t),j().reject(t)})):(n="invalid parameter: update must be a non-empty object",Hn.error(n,e),j().reject(n)):(n="invalid parameter: entitySetId must be a valid UUID",Hn.error(n,t),j().reject(n))}var aa=new et("Principal"),oa=function(){function t(e){k(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){k(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){k(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){k(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(!it()(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 Sr[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){k(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:Zi()(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){k(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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "aces" must be an array');try{var e;this.aces=Zi()(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(!it()(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,Se))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){k(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){k(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 Oe(t,fa,da)},ya=(new et("App"),function(){function t(e){k(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){k(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(!it()(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,Se))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(!Se(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){k(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){k(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(!Se(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(!Se(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){k(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){k(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(!Se(t))throw new Error("invalid parameter: entityKeyId must be a valid UUID");return this.entityKeyId=t,this}},{key:"setEntitySetId",value:function(t){if(!Se(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),Ua=r.n(Ea),Sa=new et("Grant"),Da=function(){function t(e){k(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){k(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=Ua()(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(!it()(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 Oa=require("lodash/isFinite");var ka=r.n(Oa);const Ca=require("lodash/mapValues");var xa=r.n(Ca),za=new et("Role"),Na="com.openlattice.organization.roles.Role",Ra=function(){function t(e){k(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[ei]=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[ei]=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}(),Pa=function(){function t(e){k(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(!Se(t))throw new Error('invalid parameter: "id" must be a valid UUID');return this.id=t,this}},{key:"setOrganizationId",value:function(t){if(!Se(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 Ra({description:this.description,id:this.id,organizationId:this.organizationId,principal:this.principal,title:this.title})}}]),t}(),qa=new et("Organization"),La=function(){function t(e){k(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:xa()(this.grants,(function(t){return xa()(t,(function(t){return t.toObject()}))})),members:Zi()(t=this.members).call(t,(function(t){return t.toObject()})),metadataEntitySetIds:this.metadataEntitySetIds,principal:this.principal.toObject(),roles:Zi()(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){k(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(!it()(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,Se))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(!it()(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(!it()(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;li()(r=(0,K.fromJS)(t)).call(r,(function(t,r){if(!Se(r))throw new Error('invalid parameter: "grants" must be a map where all keys are valid UUIDs');li()(t).call(t,(function(t,i){e.setIn([r,i],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(!Se(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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "members" must be an array');try{var e;this.members=Zi()(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");Se(e)&&(this.metadataEntitySetIds.columns=e)}if((0,K.has)(t,"datasets")){var r=(0,K.get)(t,"datasets");Se(r)&&(this.metadataEntitySetIds.datasets=r)}if((0,K.has)(t,"organization")){var i=(0,K.get)(t,"organization");Se(i)&&(this.metadataEntitySetIds.organization=i)}return this}},{key:"setPartitions",value:function(t){if(!dt(t))return this;if(!it()(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,ka()))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(!it()(t)&&!(0,K.isCollection)(t))throw new Error('invalid parameter: "roles" must be an array');try{var e;this.roles=Zi()(e=(0,K.Set)(t)).call(e,(function(t){return new Pa(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 La({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}(),_a=new et("PermissionsApi");function Ka(t){var e="";return yt(t)?vr()(t).call(t,Se)?cr(Pt).post("/",t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e='invalid parameter: "aclKey" must be an array of valid UUIDs',_a.error(e,t),j().reject(e)):(e='invalid parameter: "aclKey" must be a non-empty array',_a.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,Se)}))?cr(Pt).post("/".concat(Bt),t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e='invalid parameter: "aclKeys" is not valid UUID[][]',_a.error(e,t),j().reject(e)):(e='invalid parameter: "aclKeys" must be a non-empty array',_a.error(e,t),j().reject(e))}function Ja(t){var e="";return yt(t)?vr()(t).call(t,Se)?cr(Pt).post("/".concat("explain"),t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e='invalid parameter: "aclKey" must be an array of valid UUIDs',_a.error(e,t),j().reject(e)):(e='invalid parameter: "aclKey" must be a non-empty array',_a.error(e,t),j().reject(e))}function Ba(t){var e="";return ma(t)?cr(Pt).patch("/",t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e="invalid parameter: aclData must be a valid AclData object",_a.error(e,t),j().reject(e))}function Va(t){var e="";return yt(t)?vr()(t).call(t,ma)?cr(Pt).patch("/".concat(Ie),t).then((function(t){return t.data})).catch((function(t){return _a.error(t),j().reject(t)})):(e="invalid parameter: aclData must be an array of valid AclData objects",_a.error(e,t),j().reject(e)):(e="invalid parameter: aclData must be a non-empty array",_a.error(e,t),j().reject(e))}var Ga=new et("OrganizationsApi"),Qa={headers:{"Content-Type":"text/plain"}};function Ha(t,e,r){var i="";if(!Se(t))return i="invalid parameter: organizationId must be a valid UUID",Ga.error(i,t),j().reject(i);if(!gt(e))return i="invalid parameter: principalId must be a non-empty string",Ga.error(i,e),j().reject(i);if(!gt(r)||!Ir[r])return i="invalid parameter: action must be a valid ActionType",Ga.error(i,r),j().reject(i);var n=(new sa).setId(e).setType(Dr.ORGANIZATION).build(),a=(new ua).setPermissions([Sr.READ]).setPrincipal(n).build(),o=(new pa).setAclKey([t]).setAces([a]).build();return Ba((new fa).setAction(r).setAcl(o).build())}function $a(t,e){var r,i,n="";if(!Se(t))return n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n);if(!dt(e)||ht(e))i=[];else{if(!bt(e))return n='invalid parameter: "connections" must be an array of strings',Ga.error(n,e),j().reject(n);i=(0,K.Set)(e).toJS()}return cr(Rt).post(w()(r="/".concat(t,"/")).call(r,Gt),i).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Wa(t,e){var r,i,n="";if(!Se(t))return n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n);if(!dt(e)||ht(e))i=[];else{if(!bt(e))return n='invalid parameter: "domains" must be an array of strings',Ga.error(n,e),j().reject(n);i=(0,K.Set)(e).toJS()}return cr(Rt).post(w()(r="/".concat(t,"/")).call(r,Yt),i).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Za(t,e){var r,i,n,a="";return Se(t)?gt(e)?cr(Rt).put(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,pe,"/")).call(i,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 i,n,a,o,s,c="";return Se(t)?Se(e)?gt(r)?cr(Rt).put(w()(i=w()(n=w()(a=w()(o=w()(s="/".concat(t,"/")).call(s,pe,"/")).call(o,fe,"/")).call(a,e,"/")).call(n,se,"/")).call(i,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 Oe(t,Ma,qa)?cr(Rt).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 Oe(t,Pa,za)?cr(Rt).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 Se(t)?cr(Rt).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,i,n,a="";return Se(t)?Se(e)?cr(Rt).delete(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,pe,"/")).call(i,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 io(t,e){var r,i,n="";return Se(t)?Se(e)?cr(Rt).get(w()(r=w()(i="/".concat(t,"/")).call(i,e,"/")).call(r,"destroy")).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n='invalid parameter: "entitySetId" must be a valid UUID',Ga.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n))}function no(){return cr(Rt).get("/").then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function ao(t){var e="";return Se(t)?cr(Rt).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 Se(t)?cr(Rt).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 Se(t)?cr(Rt).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 Se(t)?cr(Rt).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 Se(t)?cr(Rt).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,i="";return Se(t)?cr(Rt).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)})):(i="invalid parameter: organizationId must be a valid UUID",Ga.error(i,t),j().reject(i))}function po(t){var e,r,i="";return Se(t)?cr(Rt).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)})):(i="invalid parameter: organizationId must be a valid UUID",Ga.error(i,t),j().reject(i))}function ho(t,e){var r,i,n,a="";return Se(t)?Se(e)?cr(Rt).get(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,pe,"/")).call(i,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,i,n,a,o="";return Se(t)?Se(e)?cr(Rt).get(w()(r=w()(i=w()(n=w()(a="/".concat(t,"/")).call(a,pe,"/")).call(n,fe,"/")).call(i,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,i="";return Se(t)?vt(e)?cr(Rt).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)})):(i='invalid parameter: "dataSource" must be a non-empty object',Ga.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i))}function vo(t,e){var r,i,n="";if(!Se(t))return n="invalid parameter: organizationId must be a valid UUID",Ga.error(n,t),j().reject(n);if(!dt(e)||ht(e))i=[];else{if(!bt(e))return n="invalid parameter: connections must be an array of strings",Ga.error(n,e),j().reject(n);i=(0,K.Set)(e).toJS()}return cr(Rt).delete(w()(r="/".concat(t,"/")).call(r,Gt),{data:i}).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function go(t,e){var r,i,n="";if(!Se(t))return n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n);if(!dt(e)||ht(e))i=[];else{if(!bt(e))return n='invalid parameter: "domains" must be an array of strings',Ga.error(n,e),j().reject(n);i=(0,K.Set)(e).toJS()}return cr(Rt).delete(w()(r="/".concat(t,"/")).call(r,Yt),{data:i}).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function bo(t,e){var r,i="";return Se(t)?gt(e)?cr(Rt).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)})):(i='invalid parameter: "tableName" must be a non-empty string',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(t,e){var r,i,n,a="";return Se(t)?gt(e)?cr(Rt).delete(w()(r=w()(i=w()(n="/".concat(t,"/")).call(n,pe,"/")).call(i,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 i,n,a,o,s,c="";return Se(t)?Se(e)?gt(r)?cr(Rt).delete(w()(i=w()(n=w()(a=w()(o=w()(s="/".concat(t,"/")).call(s,pe,"/")).call(o,fe,"/")).call(a,e,"/")).call(n,se,"/")).call(i,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,i="";return Se(t)?gt(e)?cr(Rt).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)})):(i='invalid parameter: "databaseName" must be a non-empty string',Ga.error(i,t),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i))}function wo(t,e){return Ha(t,e,Ir.REMOVE)}function Eo(t,e){var r,i,n="";return Se(t)?Se(e)?cr(Rt).get(w()(r=w()(i="/".concat(t,"/")).call(i,e,"/")).call(r,"transport")).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)})):(n='invalid parameter: "entitySetId" must be a valid UUID',Ga.error(n,e),j().reject(n)):(n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n))}function Uo(t,e,r){var i,n,a="";return Se(t)?Se(e)?vt(r)?cr(Rt).put(w()(i=w()(n="/".concat(t,"/")).call(n,Ht,"/")).call(i,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 So(t,e){var r,i,n="";if(!Se(t))return n='invalid parameter: "organizationId" must be a valid UUID',Ga.error(n,t),j().reject(n);if(!dt(e)||mt(e))i="";else{if(!gt(e))return n='invalid parameter: "description" must be a non-empty string',Ga.error(n,e),j().reject(n);i=e}return cr(Rt).put(w()(r="/".concat(t,"/")).call(r,Xt),i,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Do(t,e){var r,i="";return Se(t)?gt(e)?cr(Rt).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)})):(i='invalid parameter: "title" must be a non-empty string',Ga.error(i,e),j().reject(i)):(i='invalid parameter: "organizationId" must be a valid UUID',Ga.error(i,t),j().reject(i))}function Ao(t,e,r){var i,n,a,o,s,c="";if(!Se(t))return c='invalid parameter: "organizationId" must be a valid UUID',Ga.error(c,t),j().reject(c);if(!Se(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(Rt).put(w()(i=w()(n=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(n,e,"/")).call(i,Xt),s,Qa).then((function(t){return t.data})).catch((function(t){return Ga.error(t),j().reject(t)}))}function Oo(t,e,r){var i,n,a,o,s="";return Se(t)?Se(e)?Oe(r,Aa,Sa)?cr(Rt).put(w()(i=w()(n=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(n,e,"/")).call(i,"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 ko(t,e,r){var i,n,a,o,s="";return Se(t)?Se(e)?gt(r)?cr(Rt).put(w()(i=w()(n=w()(a=w()(o="/".concat(t,"/")).call(o,pe,"/")).call(a,fe,"/")).call(n,e,"/")).call(i,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 Co=new et("PersistentSearchApi");function xo(t){var e="";return vt(t)?cr(qt).post("",t).then((function(t){return t.data})).catch((function(t){return Co.error(t),j().reject(t)})):(e='invalid parameter: "persistentSearch" must be a non-empty object',Co.error(e,t),j().reject(e))}function zo(t){var e="";return Se(t)?cr(qt).delete("/".concat(t)).then((function(t){return t.data})).catch((function(t){return Co.error(t),j().reject(t)})):(e='invalid parameter: "persistentSearchId" must be a valid UUID',Co.error(e,t),j().reject(e))}function No(t){var e="";return di()(t)?cr(qt).get("?includeExpired=".concat(t)).then((function(t){return t.data})).catch((function(t){return Co.error(t),j().reject(t)})):(e='invalid parameter: "includeExpired" must be a boolean',Co.error(e,t),j().reject(e))}function Ro(t,e){var r,i="";return Se(t)?gt(e)?cr(qt).patch(w()(r="/".concat(t,"/")).call(r,"expiration"),e).then((function(t){return t.data})).catch((function(t){return Co.error(t),j().reject(t)})):(i='invalid parameter: "expiration" must be a valid string',Co.error(i,t),j().reject(i)):(i='invalid parameter: "persistentSearchId" must be a valid UUID',Co.error(i,t),j().reject(i))}var Po=new et("PrincipalsApi");function qo(){return cr(Lt).get("/".concat(fe)).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function Lo(){return cr(Lt).get("/".concat(je)).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function Mo(){return cr(Lt).get("/".concat("db")).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function _o(){var t;return cr(Lt).get(w()(t="/".concat(fe,"/")).call(t,"current")).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function Ko(t){var e="";return Oe(t,sa,aa)?cr(Lt).post("/",t).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)})):(e="invalid parameter: principal must be a valid Principal",Po.error(e,t),j().reject(e))}function Fo(t){var e,r="";return gt(t)?cr(Lt).get(w()(e="/".concat(je,"/")).call(e,t)).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)})):(r="invalid parameter: userId must be a non-empty string",Po.error(r,t),j().reject(r))}function Jo(t){var e="";return yt(t)?vr()(t).call(t,gt)?cr(Lt).post("/".concat(je),t).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)})):(e='invalid parameter: "userIds" must be an array of strings',Po.error(e,t),j().reject(e)):(e='invalid parameter: "userIds" must be a non-empty array',Po.error(e,t),j().reject(e))}function Bo(){var t;return cr(Lt).post(w()(t="/".concat("db","/")).call(t,"credential")).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)}))}function Vo(t){var e,r="";return vt(t)?cr(Lt).post(w()(e="/".concat(je,"/")).call(e,ye),t).then((function(t){return t.data})).catch((function(t){return Po.error(t),j().reject(t)})):(r='invalid parameter: "fields" must be a non-empty object',Po.error(r,t),j().reject(r))}function Go(){return cr(Lt).get("/".concat("sync")).then((function(t){return t.data})).catch((function(t){return Po.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 $o(t,e){var r,i,n,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="",s={};if(!Se(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(mi," 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 li()(r=e.entityKeyIds).call(r,(function(e){return t.add(e)}))})).toJS();if(s.entityKeyIds=p,ht(e[hi])||De(e[hi]))c=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[hi]).call(r,(function(e){return t.add(e)}))})).toJS(),s.dst=c;else if(dt(e[hi]))return o="invalid parameter: filter.".concat(hi," must be a set of valid UUIDs"),Qo.error(o,e[hi]),j().reject(o);if(ht(e[fi])||De(e[fi]))u=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[fi]).call(r,(function(e){return t.add(e)}))})).toJS(),s.edge=u;else if(dt(e[fi]))return o="invalid parameter: filter.".concat(fi," must be a set of valid UUIDs"),Qo.error(o,e[fi]),j().reject(o);if(ht(e[yi])||De(e[yi]))l=(0,K.Set)().withMutations((function(t){var r;return li()(r=e[yi]).call(r,(function(e){return t.add(e)}))})).toJS(),s.src=l;else if(dt(e[yi]))return o="invalid parameter: filter.".concat(yi," must be a set of valid UUIDs"),Qo.error(o,e[yi]),j().reject(o);var d=w()(r=w()(i="/".concat(t,"/")).call(i,ue,"/")).call(r,_t),h=a?w()(n="".concat(d,"/")).call(n,ne):d;return cr(Mt).post(h,s).then((function(t){return t.data})).catch((function(t){return Qo.error(t),j().reject(t)}))}function Wo(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,i=t.maxHits,n=t.start;return De(r)?!ka()(n)||n<0?(e='invalid property: "start" must be a positive number',Qo.error(e,n),j().reject(e)):!ka()(i)||i<0?(e='invalid property: "maxHits" must be a positive number',Qo.error(e,i),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.93.4";const Xo={AppApi:t,AuthorizationsApi:n,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}})(),i})()})); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b2b83f1d..a1c9c6e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lattice", - "version": "0.93.3", + "version": "0.93.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lattice", - "version": "0.93.3", + "version": "0.93.4", "license": "Apache-2.0", "dependencies": { "@babel/runtime-corejs3": "~7.14.0", diff --git a/package.json b/package.json index e3f681c6..d20db464 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lattice", - "version": "0.93.3", + "version": "0.93.4", "homepage": "https://github.com/openlattice/lattice-js", "description": "JavaScript SDK for all OpenLattice REST APIs", "author": {