@nebulateam/jarvis-sdk 0.0.0-stage → 5.57.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ var c=class{config;constructor(e){this.config=e}transformOptions=e=>{let{jarvisToken:n,jarvisCallInfoHeader:r}=this.config;return e.headers={...e.headers,...n&&{"jarvis-auth-token":n},...r&&{"X-Jarvis-Call-Info":r}},Promise.resolve(e)}},P=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}getDetail(e,n){let r=this.baseUrl+"/accounts/api/public/account/detail?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetDetail(i))}processGetDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/accounts/api/public/account/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},Q=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}getJarvisAppConfiguration(e){let n=this.baseUrl+"/api/public/jarvis-app-configuration/get?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processGetJarvisAppConfiguration(t))}processGetJarvisAppConfiguration(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},K=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}getActualCheckpoint(e){let n=this.baseUrl+"/auth/api/public/notifications/get-actual-checkpoint?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processGetActualCheckpoint(t))}processGetActualCheckpoint(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getNotificationList(e){let n=this.baseUrl+"/auth/api/public/notifications/get-notification-list?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processGetNotificationList(t))}processGetNotificationList(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}poll(e,n){let r=this.baseUrl+"/auth/api/public/notifications/poll?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processPoll(i))}processPoll(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},Y=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}ping(e){let n=this.baseUrl+"/auth/api/public/proxy/ping?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/octet-stream"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processPing(t))}processPing(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}reportLoginEvent(e,n){let r=this.baseUrl+"/auth/api/public/proxy/report-login-event?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processReportLoginEvent(i))}processReportLoginEvent(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}suspendSignalr(e,n){let r=this.baseUrl+"/auth/api/public/proxy/suspend-signalr?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSuspendSignalr(i))}processSuspendSignalr(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}generateTemporaryToken(e,n){let r=this.baseUrl+"/auth/api/public/proxy/temporary-token?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGenerateTemporaryToken(i))}processGenerateTemporaryToken(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}validateAdCredentials(e,n){let r=this.baseUrl+"/auth/api/public/proxy/validate-ad-credentials?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processValidateAdCredentials(i))}processValidateAdCredentials(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}validateToken(e,n){let r=this.baseUrl+"/auth/api/public/proxy/validate-token?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processValidateToken(i))}processValidateToken(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},X=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}getById(e,n){let r=this.baseUrl+"/auth/api/public/teams/detail?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetById(i))}processGetById(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}update(e,n){let r=this.baseUrl+"/auth/api/public/teams/update?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpdate(i))}processUpdate(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},O=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}current(e){let n=this.baseUrl+"/auth/api/public/users/current?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processCurrent(t))}processCurrent(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getEmails(e,n){let r=this.baseUrl+"/auth/api/public/users/get-emails?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetEmails(i))}processGetEmails(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchUsers(e,n){let r=this.baseUrl+"/auth/api/public/users/search-users?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchUsers(i))}processSearchUsers(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}translateIdList(e,n){let r=this.baseUrl+"/auth/api/public/users/translate-id-list?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTranslateIdList(i))}processTranslateIdList(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},x=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}getAvatar(e,n,r){let t=this.baseUrl+"/collaboration/api/public/avatar/{id}/{fullName}?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");if(t=t.replace("{id}",encodeURIComponent(""+n)),r==null)throw new globalThis.Error("The parameter 'fullName' must be defined.");t=t.replace("{fullName}",encodeURIComponent(""+r)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"application/octet-stream"}};return this.transformOptions(s).then(i=>this.http.fetch(t,i)).then(i=>this.processGetAvatar(i))}processGetAvatar(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}},I=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}detail(e,n){let r=this.baseUrl+"/contacts/api/public/contact/detail?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDetail(i))}processDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/contacts/api/public/contact/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},C=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}deleteItemsBlock(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/delete-items?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDeleteItemsBlock(i))}processDeleteItemsBlock(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsertDatasetByTypeOrId(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/detail/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsertDatasetByTypeOrId(i))}processUpsertDatasetByTypeOrId(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getDatasetByTypeOrId(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/detail/{datasetIdOrDatasetType}?";if(n==null)throw new globalThis.Error("The parameter 'datasetIdOrDatasetType' must be defined.");r=r.replace("{datasetIdOrDatasetType}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGetDatasetByTypeOrId(s))}processGetDatasetByTypeOrId(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getFacetFieldConfig(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/facet-config?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetFacetFieldConfig(i))}processGetFacetFieldConfig(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}itemInfo(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/item-info?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processItemInfo(i))}processItemInfo(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}itemInfoOmnisearch(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/item-info-omnisearchitem?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processItemInfoOmnisearch(i))}processItemInfoOmnisearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}listFacets(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/list/facets?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processListFacets(i))}processListFacets(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}list(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/list/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processList(i))}processList(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}saveItemsBlock(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/save-items?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSaveItemsBlock(i))}processSaveItemsBlock(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchGroupedItems(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/search-grouped-items?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchGroupedItems(i))}processSearchGroupedItems(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchItems(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/search-items?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchItems(i))}processSearchItems(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}truncateType(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/truncate?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTruncateType(i))}processTruncateType(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}uploadDatasetFromExcelFile(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/upload-dataset-from-excelfile?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUploadDatasetFromExcelFile(i))}processUploadDatasetFromExcelFile(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchItemsV2(e,n,r){let t=this.baseUrl+"/dataset/api/public/dataset/{datasetId}/search-items?";if(n==null)throw new globalThis.Error("The parameter 'datasetId' must be defined.");t=t.replace("{datasetId}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processSearchItemsV2(d))}processSearchItemsV2(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getDatasetConfigById(e,n){let r=this.baseUrl+"/dataset/api/public/dataset/{id}/config?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGetDatasetConfigById(s))}processGetDatasetConfigById(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},Z=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}getList(e){let n=this.baseUrl+"/dms/api/public/aces/list?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processGetList(t))}processGetList(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getAce(e,n){let r=this.baseUrl+"/dms/api/public/aces/{id}?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGetAce(s))}processGetAce(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},S=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}archiveContainerV2(e,n){let r=this.baseUrl+"/dms/api/public/container/2/{id}/archive?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processArchiveContainerV2(s))}processArchiveContainerV2(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}copy(e,n){let r=this.baseUrl+"/dms/api/public/container/copy?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processCopy(i))}processCopy(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}createFromPath(e,n){let r=this.baseUrl+"/dms/api/public/container/create-from-path?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processCreateFromPath(i))}processCreateFromPath(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}pathExists(e,n){let r=this.baseUrl+"/dms/api/public/container/path-exist?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processPathExists(i))}processPathExists(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}search(e,n){let r=this.baseUrl+"/dms/api/public/container/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearch(i))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}setFavourite(e,n){let r=this.baseUrl+"/dms/api/public/container/set-favourite?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSetFavourite(i))}processSetFavourite(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/dms/api/public/container/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}get(e,n){let r=this.baseUrl+"/dms/api/public/container/{id}?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGet(s))}processGet(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}archiveContainer(e,n){let r=this.baseUrl+"/dms/api/public/container/{id}/archive?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processArchiveContainer(s))}processArchiveContainer(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}browseContainer(e,n){let r=this.baseUrl+"/dms/api/public/container/{id}/browse?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processBrowseContainer(s))}processBrowseContainer(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}createChildContainer(e,n,r){let t=this.baseUrl+"/dms/api/public/container/{id}/create-child-container?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processCreateChildContainer(d))}processCreateChildContainer(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}deleteContainer(e,n){let r=this.baseUrl+"/dms/api/public/container/{id}/delete?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processDeleteContainer(s))}processDeleteContainer(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}editContainerProperties(e,n,r){let t=this.baseUrl+"/dms/api/public/container/{id}/edit-properties?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processEditContainerProperties(d))}processEditContainerProperties(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getFullPath(e,n){let r=this.baseUrl+"/dms/api/public/container/{id}/full-path?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGetFullPath(s))}processGetFullPath(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}moveContainer(e,n,r){let t=this.baseUrl+"/dms/api/public/container/{id}/move?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processMoveContainer(d))}processMoveContainer(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}renameContainer(e,n,r){let t=this.baseUrl+"/dms/api/public/container/{id}/rename?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processRenameContainer(d))}processRenameContainer(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}unarchiveContainer(e,n,r){let t=this.baseUrl+"/dms/api/public/container/{id}/unarchive?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processUnarchiveContainer(d))}processUnarchiveContainer(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}updateCustomProperties(e,n,r){let t=this.baseUrl+"/dms/api/public/container/{id}/update-custom-properties?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processUpdateCustomProperties(d))}processUpdateCustomProperties(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}updateContainerMetadata(e,n,r){let t=this.baseUrl+"/dms/api/public/container/{id}/update-metadata?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processUpdateContainerMetadata(d))}processUpdateContainerMetadata(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},q=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}searchV2(e,n){let r=this.baseUrl+"/dms/api/public/dms-search/2/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchV2(i))}processSearchV2(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}search(e,n){let r=this.baseUrl+"/dms/api/public/dms-search/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearch(i))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},k=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}list(e){let n=this.baseUrl+"/dms/api/public/document-type/list?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processList(t))}processList(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},T=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}copy(e,n){let r=this.baseUrl+"/dms/api/public/document/copy?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processCopy(i))}processCopy(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}detail(e,n){let r=this.baseUrl+"/dms/api/public/document/detail?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDetail(i))}processDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}import(e,n){let r=this.baseUrl+"/dms/api/public/document/import?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processImport(i))}processImport(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}search(e,n){let r=this.baseUrl+"/dms/api/public/document/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearch(i))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}update(e,n){let r=this.baseUrl+"/dms/api/public/document/update?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpdate(i))}processUpdate(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/dms/api/public/document/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}preview(e,n,r,t){let s=this.baseUrl+"/dms/api/public/document/{documentId}/preview/{blobId}?";if(n==null)throw new globalThis.Error("The parameter 'documentId' must be defined.");if(s=s.replace("{documentId}",encodeURIComponent(""+n)),r==null)throw new globalThis.Error("The parameter 'blobId' must be defined.");s=s.replace("{blobId}",encodeURIComponent(""+r)),e!=null&&(s+="api-version="+encodeURIComponent(""+e)+"&"),t!=null&&(s+="size="+encodeURIComponent(""+t)+"&"),s=s.replace(/[?&]$/,"");let i={method:"GET",headers:{Accept:"application/octet-stream"}};return this.transformOptions(i).then(d=>this.http.fetch(s,d)).then(d=>this.processPreview(d))}processPreview(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}setMetadataValues(e,n,r){let t=this.baseUrl+"/dms/api/public/document/{documentId}/set-metadata-values?";if(n==null)throw new globalThis.Error("The parameter 'documentId' must be defined.");t=t.replace("{documentId}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processSetMetadataValues(d))}processSetMetadataValues(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}get(e,n,r,t){let s=this.baseUrl+"/dms/api/public/document/{id}?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");if(s=s.replace("{id}",encodeURIComponent(""+n)),e!=null&&(s+="api-version="+encodeURIComponent(""+e)+"&"),r===null)throw new globalThis.Error("The parameter 'history' cannot be null.");if(r!==void 0&&(s+="history="+encodeURIComponent(""+r)+"&"),t===null)throw new globalThis.Error("The parameter 'includeNestedFields' cannot be null.");t!==void 0&&(s+="includeNestedFields="+encodeURIComponent(""+t)+"&"),s=s.replace(/[?&]$/,"");let i={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(s,d)).then(d=>this.processGet(d))}processGet(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}addRevision(e,n,r){let t=this.baseUrl+"/dms/api/public/document/{id}/add-revision?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processAddRevision(d))}processAddRevision(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}approveRevision(e,n,r){let t=this.baseUrl+"/dms/api/public/document/{id}/approve-revision?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processApproveRevision(d))}processApproveRevision(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}archive(e,n){let r=this.baseUrl+"/dms/api/public/document/{id}/archive?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processArchive(s))}processArchive(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}delete(e,n){let r=this.baseUrl+"/dms/api/public/document/{id}/delete?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processDelete(s))}processDelete(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}download(e,n,r){let t=this.baseUrl+"/dms/api/public/document/{id}/download?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),r!=null&&(t+="fileName="+encodeURIComponent(""+r)+"&"),t=t.replace(/[?&]$/,"");let s={method:"GET",headers:{Accept:"application/octet-stream"}};return this.transformOptions(s).then(i=>this.http.fetch(t,i)).then(i=>this.processDownload(i))}processDownload(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}downloadBlob(e,n,r,t,s){let i=this.baseUrl+"/dms/api/public/document/{id}/download/{fileIdOrBlobId}?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+n)),r==null)throw new globalThis.Error("The parameter 'fileIdOrBlobId' must be defined.");i=i.replace("{fileIdOrBlobId}",encodeURIComponent(""+r)),e!=null&&(i+="api-version="+encodeURIComponent(""+e)+"&"),t!=null&&(i+="fileName="+encodeURIComponent(""+t)+"&"),s!=null&&(i+="format="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let d={method:"GET",headers:{Accept:"application/octet-stream"}};return this.transformOptions(d).then(p=>this.http.fetch(i,p)).then(p=>this.processDownloadBlob(p))}processDownloadBlob(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}setAbstract(e,n,r){let t=this.baseUrl+"/dms/api/public/document/{id}/set-abstract?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processSetAbstract(d))}processSetAbstract(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}setTags(e,n,r){let t=this.baseUrl+"/dms/api/public/document/{id}/set-tags?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processSetTags(d))}processSetTags(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}setTitle(e,n,r){let t=this.baseUrl+"/dms/api/public/document/{id}/set-title?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processSetTitle(d))}processSetTitle(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}unarchive(e,n){let r=this.baseUrl+"/dms/api/public/document/{id}/unarchive?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processUnarchive(s))}processUnarchive(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},H=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}convertToPdf(e,n){let r=this.baseUrl+"/dms/api/public/file-manipulator/pdf-convert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/octet-stream"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processConvertToPdf(i))}processConvertToPdf(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}mergeInPdf(e,n){let r=this.baseUrl+"/dms/api/public/file-manipulator/pdf-merge?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/octet-stream"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processMergeInPdf(i))}processMergeInPdf(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}},ee=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}create(e,n){let r=this.baseUrl+"/dms/api/public/permalink/create?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processCreate(i))}processCreate(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}navigate(e,n){let r=this.baseUrl+"/dms/api/public/permalink/{id}?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processNavigate(s))}processNavigate(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},te=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}search(e,n){let r=this.baseUrl+"/dms/api/public/search/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearch(i))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchByOwner(e,n){let r=this.baseUrl+"/dms/api/public/search/search-by-owner?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchByOwner(i))}processSearchByOwner(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},ne=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}create(e,n){let r=this.baseUrl+"/planning/api/public/workcalendar?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processCreate(i))}processCreate(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getDefault(e){let n=this.baseUrl+"/planning/api/public/workcalendar/default?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processGetDefault(t))}processGetDefault(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}search(e,n,r,t){let s=this.baseUrl+"/planning/api/public/workcalendar/search?";if(e!=null&&(s+="api-version="+encodeURIComponent(""+e)+"&"),n!=null&&(s+="name="+encodeURIComponent(""+n)+"&"),r===null)throw new globalThis.Error("The parameter 'pageSize' cannot be null.");if(r!==void 0&&(s+="pageSize="+encodeURIComponent(""+r)+"&"),t===null)throw new globalThis.Error("The parameter 'startIndex' cannot be null.");t!==void 0&&(s+="startIndex="+encodeURIComponent(""+t)+"&"),s=s.replace(/[?&]$/,"");let i={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(s,d)).then(d=>this.processSearch(d))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getById(e,n){let r=this.baseUrl+"/planning/api/public/workcalendar/{id}?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGetById(s))}processGetById(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}update(e,n,r){let t=this.baseUrl+"/planning/api/public/workcalendar/{id}?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");t=t.replace("{id}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processUpdate(d))}processUpdate(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},re=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}archiveRoom(e,n){let r=this.baseUrl+"/system/api/public/chat/archive?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processArchiveRoom(i))}processArchiveRoom(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}changeRoomTitle(e,n){let r=this.baseUrl+"/system/api/public/chat/change-room-title?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processChangeRoomTitle(i))}processChangeRoomTitle(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}clearAllMessages(e,n){let r=this.baseUrl+"/system/api/public/chat/clear-all-messages?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processClearAllMessages(i))}processClearAllMessages(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}createRoom(e,n){let r=this.baseUrl+"/system/api/public/chat/create?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processCreateRoom(i))}processCreateRoom(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}createChatBot(e,n){let r=this.baseUrl+"/system/api/public/chat/create-chat-bot?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processCreateChatBot(i))}processCreateChatBot(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}deleteMessage(e,n){let r=this.baseUrl+"/system/api/public/chat/delete-message?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDeleteMessage(i))}processDeleteMessage(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}editMessage(e,n){let r=this.baseUrl+"/system/api/public/chat/edit-message?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processEditMessage(i))}processEditMessage(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getMessages(e,n){let r=this.baseUrl+"/system/api/public/chat/get-messages?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetMessages(i))}processGetMessages(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getUndeliveredMessages(e,n){let r=this.baseUrl+"/system/api/public/chat/get-undelivered-messages?";if(e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),n===null)throw new globalThis.Error("The parameter 'limit' cannot be null.");n!==void 0&&(r+="limit="+encodeURIComponent(""+n)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGetUndeliveredMessages(s))}processGetUndeliveredMessages(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getUserRooms(e){let n=this.baseUrl+"/system/api/public/chat/get-user-rooms?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processGetUserRooms(t))}processGetUserRooms(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}markMessagesAsDelivered(e,n){let r=this.baseUrl+"/system/api/public/chat/mark-messages-as-delivered?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processMarkMessagesAsDelivered(i))}processMarkMessagesAsDelivered(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}sendMessage(e,n){let r=this.baseUrl+"/system/api/public/chat/send-message?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSendMessage(i))}processSendMessage(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},A=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}downloadFieldFiles(e,n,r,t,s){let i=this.baseUrl+"/system/api/public/fields/download/{aggregateId}/{fieldId}?";if(n==null)throw new globalThis.Error("The parameter 'aggregateId' must be defined.");if(i=i.replace("{aggregateId}",encodeURIComponent(""+n)),r==null)throw new globalThis.Error("The parameter 'fieldId' must be defined.");if(i=i.replace("{fieldId}",encodeURIComponent(""+r)),e!=null&&(i+="api-version="+encodeURIComponent(""+e)+"&"),t===null)throw new globalThis.Error("The parameter 'format' cannot be null.");t!==void 0&&(i+="format="+encodeURIComponent(""+t)+"&"),s!=null&&(i+="fileName="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");let d={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(d).then(p=>this.http.fetch(i,p)).then(p=>this.processDownloadFieldFiles(p))}processDownloadFieldFiles(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("Access denied",n,t,r,s)}):n===404?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("Field not found or contains no files",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}downloadFile(e,n,r,t,s){let i=this.baseUrl+"/system/api/public/fields/download/{aggregateId}/{fieldId}/{fileId}?";if(n==null)throw new globalThis.Error("The parameter 'aggregateId' must be defined.");if(i=i.replace("{aggregateId}",encodeURIComponent(""+n)),r==null)throw new globalThis.Error("The parameter 'fieldId' must be defined.");if(i=i.replace("{fieldId}",encodeURIComponent(""+r)),t==null)throw new globalThis.Error("The parameter 'fileId' must be defined.");if(i=i.replace("{fileId}",encodeURIComponent(""+t)),s==null)throw new globalThis.Error("The parameter 'format' must be defined.");i=i.replace("{format}",encodeURIComponent(""+s)),e!=null&&(i+="api-version="+encodeURIComponent(""+e)+"&"),i=i.replace(/[?&]$/,"");let d={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(d).then(p=>this.http.fetch(i,p)).then(p=>this.processDownloadFile(p))}processDownloadFile(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("Access denied",n,t,r,s)}):n===404?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("File not found",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}downloadFile2(e,n,r,t,s){let i=this.baseUrl+"/system/api/public/fields/download/{aggregateId}/{fieldId}/{fileId}/{format}?";if(n==null)throw new globalThis.Error("The parameter 'aggregateId' must be defined.");if(i=i.replace("{aggregateId}",encodeURIComponent(""+n)),r==null)throw new globalThis.Error("The parameter 'fieldId' must be defined.");if(i=i.replace("{fieldId}",encodeURIComponent(""+r)),t==null)throw new globalThis.Error("The parameter 'fileId' must be defined.");if(i=i.replace("{fileId}",encodeURIComponent(""+t)),s==null)throw new globalThis.Error("The parameter 'format' must be defined.");i=i.replace("{format}",encodeURIComponent(""+s)),e!=null&&(i+="api-version="+encodeURIComponent(""+e)+"&"),i=i.replace(/[?&]$/,"");let d={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(d).then(p=>this.http.fetch(i,p)).then(p=>this.processDownloadFile2(p))}processDownloadFile2(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("Access denied",n,t,r,s)}):n===404?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("File not found",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}ensureFieldDefinition(e,n){let r=this.baseUrl+"/system/api/public/fields/ensure-field-definition?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processEnsureFieldDefinition(i))}processEnsureFieldDefinition(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}ensureFieldDefinitions(e,n){let r=this.baseUrl+"/system/api/public/fields/ensure-field-definitions?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processEnsureFieldDefinitions(i))}processEnsureFieldDefinitions(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}get(e,n){let r=this.baseUrl+"/system/api/public/fields/getlist?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGet(i))}processGet(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchSelection(e,n){let r=this.baseUrl+"/system/api/public/fields/search-selection?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchSelection(i))}processSearchSelection(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},U=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}uploadMultipartV2(e,n){let r=this.baseUrl+"/system/api/public/files/2/upload-multipart?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t=new FormData;n?.forEach(i=>t.append("Files",i.data,i.fileName?i.fileName:"Files"));let s={body:t,method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUploadMultipartV2(i))}processUploadMultipartV2(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upload(e){let n=this.baseUrl+"/system/api/public/files/upload?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processUpload(t))}processUpload(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}uploadMultipart(e,n){let r=this.baseUrl+"/system/api/public/files/upload-multipart?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t=new FormData;n?.forEach(i=>t.append("Files",i.data,i.fileName?i.fileName:"Files"));let s={body:t,method:"POST",headers:{Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUploadMultipart(i))}processUploadMultipart(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},se=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}reserve(e,n){let r=this.baseUrl+"/system/api/public/identities-manager/reserve?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processReserve(i))}processReserve(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},ie=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}testDeprecated(e){let n=this.baseUrl+"/system/api/public/idtranslation/testdeprecated?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processTestDeprecated(t))}processTestDeprecated(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}testDeprecatedFields(e,n){let r=this.baseUrl+"/system/api/public/idtranslation/testdeprecatedfields?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTestDeprecatedFields(i))}processTestDeprecatedFields(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}testPreview(e){let n=this.baseUrl+"/system/api/public/idtranslation/testpreview?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processTestPreview(t))}processTestPreview(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}translate(e,n){let r=this.baseUrl+"/system/api/public/idtranslation/translate?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTranslate(i))}processTranslate(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}translateDictionary(e,n){let r=this.baseUrl+"/system/api/public/idtranslation/translate-dictionary?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTranslateDictionary(i))}processTranslateDictionary(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},E=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}mapSymbolicName(e,n){let r=this.baseUrl+"/system/api/public/integration/omni-mapper?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processMapSymbolicName(i))}processMapSymbolicName(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}resolveText(e,n){let r=this.baseUrl+"/system/api/public/integration/omni-mapper/resolve-text?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processResolveText(i))}processResolveText(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}tryMapSymbolicName(e,n){let r=this.baseUrl+"/system/api/public/integration/omni-mapper/try?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTryMapSymbolicName(i))}processTryMapSymbolicName(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}refreshIndex(e,n){let r=this.baseUrl+"/system/api/public/integration/refresh-index?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processRefreshIndex(i))}processRefreshIndex(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getReindexStatus(e){let n=this.baseUrl+"/system/api/public/integration/reindex-status?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processGetReindexStatus(t))}processGetReindexStatus(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchPercolators(e,n){let r=this.baseUrl+"/system/api/public/integration/search-percolators?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchPercolators(i))}processSearchPercolators(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}updatePercolator(e,n){let r=this.baseUrl+"/system/api/public/integration/update-percolator?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpdatePercolator(i))}processUpdatePercolator(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},oe=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}trace(e,n){let r=this.baseUrl+"/system/api/public/logger/trace?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTrace(i))}processTrace(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},w=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}getStatusDetail(e,n){let r=this.baseUrl+"/system/api/public/lrj/{id}/detail?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGetStatusDetail(s))}processGetStatusDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}startLongRunningJob(e,n){let r=this.baseUrl+"/system/api/public/lrj/{id}/start?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processStartLongRunningJob(s))}processStartLongRunningJob(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getStatus(e,n){let r=this.baseUrl+"/system/api/public/lrj/{id}/status?";if(n==null)throw new globalThis.Error("The parameter 'id' must be defined.");r=r.replace("{id}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processGetStatus(s))}processGetStatus(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},N=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}search(e,n){let r=this.baseUrl+"/system/api/public/properties/definition/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearch(i))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getDefinitions(e,n){let r=this.baseUrl+"/system/api/public/properties/definitions-by-ids?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetDefinitions(i))}processGetDefinitions(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchSelection(e,n){let r=this.baseUrl+"/system/api/public/properties/search-selection?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchSelection(i))}processSearchSelection(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},j=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}detail(e,n){let r=this.baseUrl+"/tickets/api/public/ticket/detail?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDetail(i))}processDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getAttachment(e,n){let r=this.baseUrl+"/tickets/api/public/ticket/get-attachment?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/octet-stream"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetAttachment(i))}processGetAttachment(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}getContentAsString(e,n){let r=this.baseUrl+"/tickets/api/public/ticket/get-content?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetContentAsString(i))}processGetContentAsString(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}received(e,n){let r=this.baseUrl+"/tickets/api/public/ticket/received/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processReceived(i))}processReceived(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchV2(e,n){let r=this.baseUrl+"/tickets/api/public/ticket/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchV2(i))}processSearchV2(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}sent(e,n){let r=this.baseUrl+"/tickets/api/public/ticket/sent/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSent(i))}processSent(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/tickets/api/public/ticket/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},J=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}detail(e,n){let r=this.baseUrl+"/workspaces/api/public/planning/detail?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDetail(i))}processDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/workspaces/api/public/planning/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsertMany(e,n){let r=this.baseUrl+"/workspaces/api/public/planning/upsert-many?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsertMany(i))}processUpsertMany(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},V=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}detail(e,n){let r=this.baseUrl+"/workspaces/api/public/tasktypes/detail?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDetail(i))}processDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}search(e,n){let r=this.baseUrl+"/workspaces/api/public/tasktypes/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearch(i))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/workspaces/api/public/tasktypes/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},W=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}searchAllWorkspaces(e,n){let r=this.baseUrl+"/workspaces/api/public/workspace/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchAllWorkspaces(i))}processSearchAllWorkspaces(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}superNewFunction(e){let n=this.baseUrl+"/workspaces/api/public/workspace/super-new-function?";e!=null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processSuperNewFunction(t))}processSuperNewFunction(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/workspaces/api/public/workspace/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}settings(e,n){let r=this.baseUrl+"/workspaces/api/public/workspace/{workspaceId}/settings?";if(n==null)throw new globalThis.Error("The parameter 'workspaceId' must be defined.");r=r.replace("{workspaceId}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processSettings(s))}processSettings(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchUsers(e,n,r){let t=this.baseUrl+"/workspaces/api/public/workspace/{workspaceId}/users/search?";if(n==null)throw new globalThis.Error("The parameter 'workspaceId' must be defined.");t=t.replace("{workspaceId}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processSearchUsers(d))}processSearchUsers(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},M=class extends c{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}ai(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/ai?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processAi(i))}processAi(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}detailNew(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/detail?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDetailNew(i))}processDetailNew(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}detailList(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/detail-list?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDetailList(i))}processDetailList(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getAttachment(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/get-content?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/octet-stream"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetAttachment(i))}processGetAttachment(e){let n=e.status,r={};if(e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200||n===206){let t=e.headers?e.headers.get("content-disposition"):void 0,s=t?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(t):void 0,i=s&&s.length>1?s[3]||s[2]:void 0;return i?i=decodeURIComponent(i):(s=t?/filename="?([^"]*?)"?(;|$)/g.exec(t):void 0,i=s&&s.length>1?s[1]:void 0),e.blob().then(d=>({fileName:i,data:d,status:n,headers:r}))}else if(n!==200&&n!==204)return e.text().then(t=>o("An unexpected server error occurred.",n,t,r));return Promise.resolve(null)}search(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearch(i))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchAllWorkspaces(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/search-all-workspaces?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchAllWorkspaces(i))}processSearchAllWorkspaces(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchTodoItems(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/todoitems/search?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchTodoItems(i))}processSearchTodoItems(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/upsert?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsertMany(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/upsert-many?";e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsertMany(i))}processUpsertMany(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchV2(e,n,r){let t=this.baseUrl+"/workspaces/api/public/worktask/{workspaceId}/search?";if(n==null)throw new globalThis.Error("The parameter 'workspaceId' must be defined.");t=t.replace("{workspaceId}",encodeURIComponent(""+n)),e!=null&&(t+="api-version="+encodeURIComponent(""+e)+"&"),t=t.replace(/[?&]$/,"");let i={body:JSON.stringify(r),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(i).then(d=>this.http.fetch(t,d)).then(d=>this.processSearchV2(d))}processSearchV2(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===403?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}detail(e,n){let r=this.baseUrl+"/workspaces/api/public/worktask/{workTaskId}?";if(n==null)throw new globalThis.Error("The parameter 'workTaskId' must be defined.");r=r.replace("{workTaskId}",encodeURIComponent(""+n)),e!=null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let t={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(t).then(s=>this.http.fetch(r,s)).then(s=>this.processDetail(s))}processDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),o("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>o("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}},pe=(t=>(t.None="None",t.Info="Info",t.Warning="Warning",t.Error="Error",t))(pe||{}),he=(r=>(r[r.Unknown=0]="Unknown",r[r.MachineEncrypted=1]="MachineEncrypted",r[r.PublicKeyEncrypted=2]="PublicKeyEncrypted",r))(he||{}),Re=(n=>(n[n.And=0]="And",n[n.Or=1]="Or",n))(Re||{}),me=(t=>(t[t.Received=0]="Received",t[t.Cc=1]="Cc",t[t.Sent=2]="Sent",t[t.AllConfirmed=3]="AllConfirmed",t))(me||{}),ge=(s=>(s[s.String=0]="String",s[s.Numeric=1]="Numeric",s[s.DateTime=2]="DateTime",s[s.Boolean=3]="Boolean",s[s.DateWithoutTime=4]="DateWithoutTime",s))(ge||{}),ye=(r=>(r[r.String=0]="String",r[r.Numeric=1]="Numeric",r[r.DateTime=2]="DateTime",r))(ye||{}),be=(u=>(u[u.Unknown=0]="Unknown",u[u.IsNull=1]="IsNull",u[u.IsNotNull=2]="IsNotNull",u[u.OneOf=4]="OneOf",u[u.Contains=8]="Contains",u[u.DoesNotContain=16]="DoesNotContain",u[u.StartsWith=32]="StartsWith",u[u.EndsWith=64]="EndsWith",u[u.Equals=128]="Equals",u[u.NotEqual=256]="NotEqual",u[u.GreaterThan=512]="GreaterThan",u[u.GreaterThanOrEqualTo=1024]="GreaterThanOrEqualTo",u[u.LessThan=2048]="LessThan",u[u.LessThanOrEqualTo=4096]="LessThanOrEqualTo",u[u.NotOneOf=8192]="NotOneOf",u[u.Between=16384]="Between",u))(be||{}),De=(n=>(n[n.And=0]="And",n[n.Or=1]="Or",n))(De||{}),ve=(t=>(t[t.Unknown=0]="Unknown",t[t.String=1]="String",t[t.Numeric=2]="Numeric",t[t.DateTime=3]="DateTime",t))(ve||{}),Pe=(s=>(s[s.Unknown=0]="Unknown",s[s.Sum=1]="Sum",s[s.Average=2]="Average",s[s.Max=3]="Max",s[s.Min=4]="Min",s))(Pe||{}),Oe=(u=>(u.Unknown="unknown",u.String="string",u.Number="number",u.Boolean="boolean",u.Date="date",u.DateTime="dateTime",u.Time="time",u.Currency="currency",u.Percent="percent",u.Hyperlink="hyperlink",u.Entity="entity",u.Enum="enum",u.Integer="integer",u.File="file",u.RTE="rte",u.Counter="counter",u))(Oe||{}),xe=(m=>(m.Unknown="unknown",m.NoSearch="no-search",m.Custom="custom",m.ByFacet="by-facet",m.ByFacetId="by-facet-id",m.ByUDVL="by-user-defined-value-list",m.ByUser="by-user",m.ByUserAndGroup="by-user-and-group",m.ByAvailableValues="by-available-values",m.Disabled="disabled",m))(xe||{}),Ie=(g=>(g.Unknown="unknown",g.Selection="selection",g.AutoComplete="auto-complete",g.TranslatedAutoComplete="translated-auto-complete",g.DateRange="date-range",g.SearchText="string",g.Custom="custom",g.Users="users",g.Enum="enum",g))(Ie||{}),Ce=(s=>(s.Unknown="unknown",s.Standard="standard",s.ExternalLink="external-link",s.Link="link",s.InlineRichText="inline-rich-text",s))(Ce||{}),Se=(d=>(d.Unknown="unknown",d.Grid="grid",d.Board="board",d.Gantt="gantt",d.Gallery="gallery",d.List="list",d.Planning="planning",d))(Se||{}),qe=(n=>(n.Block="block",n.Skip="skip",n))(qe||{}),ke=(t=>(t[t.None=0]="None",t[t.Contextual=1]="Contextual",t[t.Readonly=2]="Readonly",t[t.Hidden=4]="Hidden",t))(ke||{}),Te=(r=>(r[r.Undefined=0]="Undefined",r[r.Container=1]="Container",r[r.Document=2]="Document",r))(Te||{}),Ae=(r=>(r[r.Optional=0]="Optional",r[r.Automatic=1]="Automatic",r[r.Required=2]="Required",r))(Ae||{}),Ue=(i=>(i[i.Unknown=0]="Unknown",i[i.Default=1]="Default",i[i.FormDataString=2]="FormDataString",i[i.FormDataInt=3]="FormDataInt",i[i.FormDataDate=4]="FormDataDate",i[i.FormDataUdt=5]="FormDataUdt",i))(Ue||{}),Ee=(h=>(h.Unknown="Unknown",h.Integer="integer",h.Number="number",h.String="string",h.DateTime="datetime",h.Date="date",h.Boolean="bool",h.OmniSearchDataSource="omnisearch-data-source",h.Hyperlink="hyperlink",h.Counter="counter",h.Enum="enum",h.File="file",h.RTE="rte",h))(Ee||{}),we=(t=>(t.Original="original",t.Thumbnail="thumbnail",t.LargeThumbnail="largethumbnail",t.Pdf="pdf",t))(we||{}),Ne=(a=>(a[a.Continue=100]="Continue",a[a.SwitchingProtocols=101]="SwitchingProtocols",a[a.Processing=102]="Processing",a[a.EarlyHints=103]="EarlyHints",a[a.OK=200]="OK",a[a.Created=201]="Created",a[a.Accepted=202]="Accepted",a[a.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",a[a.NoContent=204]="NoContent",a[a.ResetContent=205]="ResetContent",a[a.PartialContent=206]="PartialContent",a[a.MultiStatus=207]="MultiStatus",a[a.AlreadyReported=208]="AlreadyReported",a[a.IMUsed=226]="IMUsed",a[a.MultipleChoices=300]="MultipleChoices",a[a.Ambiguous=300]="Ambiguous",a[a.MovedPermanently=301]="MovedPermanently",a[a.Moved=301]="Moved",a[a.Found=302]="Found",a[a.Redirect=302]="Redirect",a[a.SeeOther=303]="SeeOther",a[a.RedirectMethod=303]="RedirectMethod",a[a.NotModified=304]="NotModified",a[a.UseProxy=305]="UseProxy",a[a.Unused=306]="Unused",a[a.TemporaryRedirect=307]="TemporaryRedirect",a[a.RedirectKeepVerb=307]="RedirectKeepVerb",a[a.PermanentRedirect=308]="PermanentRedirect",a[a.BadRequest=400]="BadRequest",a[a.Unauthorized=401]="Unauthorized",a[a.PaymentRequired=402]="PaymentRequired",a[a.Forbidden=403]="Forbidden",a[a.NotFound=404]="NotFound",a[a.MethodNotAllowed=405]="MethodNotAllowed",a[a.NotAcceptable=406]="NotAcceptable",a[a.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",a[a.RequestTimeout=408]="RequestTimeout",a[a.Conflict=409]="Conflict",a[a.Gone=410]="Gone",a[a.LengthRequired=411]="LengthRequired",a[a.PreconditionFailed=412]="PreconditionFailed",a[a.RequestEntityTooLarge=413]="RequestEntityTooLarge",a[a.RequestUriTooLong=414]="RequestUriTooLong",a[a.UnsupportedMediaType=415]="UnsupportedMediaType",a[a.RequestedRangeNotSatisfiable=416]="RequestedRangeNotSatisfiable",a[a.ExpectationFailed=417]="ExpectationFailed",a[a.MisdirectedRequest=421]="MisdirectedRequest",a[a.UnprocessableEntity=422]="UnprocessableEntity",a[a.UnprocessableContent=422]="UnprocessableContent",a[a.Locked=423]="Locked",a[a.FailedDependency=424]="FailedDependency",a[a.UpgradeRequired=426]="UpgradeRequired",a[a.PreconditionRequired=428]="PreconditionRequired",a[a.TooManyRequests=429]="TooManyRequests",a[a.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",a[a.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",a[a.InternalServerError=500]="InternalServerError",a[a.NotImplemented=501]="NotImplemented",a[a.BadGateway=502]="BadGateway",a[a.ServiceUnavailable=503]="ServiceUnavailable",a[a.GatewayTimeout=504]="GatewayTimeout",a[a.HttpVersionNotSupported=505]="HttpVersionNotSupported",a[a.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",a[a.InsufficientStorage=507]="InsufficientStorage",a[a.LoopDetected=508]="LoopDetected",a[a.NotExtended=510]="NotExtended",a[a.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",a))(Ne||{}),je=(d=>(d[d.Sunday=0]="Sunday",d[d.Monday=1]="Monday",d[d.Tuesday=2]="Tuesday",d[d.Wednesday=3]="Wednesday",d[d.Thursday=4]="Thursday",d[d.Friday=5]="Friday",d[d.Saturday=6]="Saturday",d))(je||{}),Je=(s=>(s.Minutes="Minutes",s.Hours="Hours",s.Days="Days",s.Weeks="Weeks",s.Months="Months",s))(Je||{}),Ve=(n=>(n.Activity="Activity",n.Milestone="Milestone",n))(Ve||{}),We=(n=>(n.Open="Open",n.Closed="Closed",n))(We||{}),Me=(r=>(r.None="None",r.MustStartOn="MustStartOn",r.MustFinishOn="MustFinishOn",r))(Me||{}),Fe=(t=>(t.FinishToStart="FinishToStart",t.StartToStart="StartToStart",t.FinishToFinish="FinishToFinish",t.StartToFinish="StartToFinish",t))(Fe||{}),_e=(t=>(t.Grid="grid",t.Board="board",t.Gantt="gantt",t.Planning="planning",t))(_e||{}),Le=(r=>(r.String="string",r.Numeric="numeric",r.DateTime="datetime",r))(Le||{}),Be=(t=>(t.Unknown="Unknown",t.String="string",t.Numeric="numeric",t.DateTime="datetime",t))(Be||{}),$e=(s=>(s.Unknown="Unknown",s.Sum="sum",s.Average="average",s.Max="max",s.Min="min",s))($e||{}),Ge=(u=>(u[u.Unknown=0]="Unknown",u[u.IsNull=1]="IsNull",u[u.IsNotNull=2]="IsNotNull",u[u.OneOf=4]="OneOf",u[u.Contains=8]="Contains",u[u.DoesNotContain=16]="DoesNotContain",u[u.StartsWith=32]="StartsWith",u[u.EndsWith=64]="EndsWith",u[u.Equals=128]="Equals",u[u.NotEqual=256]="NotEqual",u[u.GreaterThan=512]="GreaterThan",u[u.GreaterThanOrEqualTo=1024]="GreaterThanOrEqualTo",u[u.LessThan=2048]="LessThan",u[u.LessThanOrEqualTo=4096]="LessThanOrEqualTo",u[u.NotOneOf=8192]="NotOneOf",u[u.Between=16384]="Between",u))(Ge||{}),ze=(s=>(s.Month="month",s.Day="day",s.Week="week",s.Quarter="quarter",s.Year="year",s))(ze||{}),Qe=(r=>(r.Large="large",r.Medium="medium",r.Small="small",r))(Qe||{}),Ke=(s=>(s.Month="month",s.Day="day",s.Week="week",s.Quarter="quarter",s.Year="year",s))(Ke||{}),Ye=(r=>(r.Unknown="Unknown",r.Http="Http",r.Modal="Modal",r))(Ye||{}),Xe=(t=>(t.Unknown="Unknown",t.Action="Action",t.GroupLabel="GroupLabel",t.Divider="Divider",t))(Xe||{}),Ze=(r=>(r.Unknown="Unknown",r.MultiSelectionMenu="MultiSelectionMenu",r.SelectionBar="SelectionBar",r))(Ze||{}),He=(r=>(r.Unknown="Unknown",r.Edit="Edit",r.Read="Read",r))(He||{}),et=(n=>(n.OnlyActivity="OnlyActivity",n.Subtree="Subtree",n))(et||{}),tt=(u=>(u.Unknown="Unknown",u.IsNull="IsNull",u.IsNotNull="IsNotNull",u.OneOf="OneOf",u.Contains="Contains",u.DoesNotContain="DoesNotContain",u.StartsWith="StartsWith",u.EndsWith="EndsWith",u.Equals="Equals",u.NotEqual="NotEqual",u.GreaterThan="GreaterThan",u.GreaterThanOrEqualTo="GreaterThanOrEqualTo",u.LessThan="LessThan",u.LessThanOrEqualTo="LessThanOrEqualTo",u.NotOneOf="NotOneOf",u.Between="Between",u))(tt||{}),B=class extends Error{message;status;response;headers;result;constructor(e,n,r,t,s){super(),this.message=e,this.status=n,this.response=r,this.headers=t,this.result=s}isApiException=!0;static isApiException(e){return e.isApiException===!0}};function o(l,e,n,r,t){throw t??new B(l,e,n,r,null)}var ae=class{constructor(){}},de=class{constructor(e,n){this.jarvisToken=e;this.jarvisCallInfoHeader=n}};var D=class{config;constructor(e){this.config=e}transformOptions=e=>{let{jarvisToken:n,jarvisCallInfoHeader:r}=this.config;return e.headers={...e.headers,...n&&{"jarvis-auth-token":n},...r&&{"X-Jarvis-Call-Info":r}},Promise.resolve(e)}};var F=class extends D{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}detail(e,n){let r=this.baseUrl+"/contacts/api/public/contact/detail?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processDetail(i))}processDetail(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}upsert(e,n){let r=this.baseUrl+"/contacts/api/public/contact/upsert?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processUpsert(i))}processUpsert(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}};var _=class extends D{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}testDeprecated(e){let n=this.baseUrl+"/system/api/public/idtranslation/testdeprecated?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processTestDeprecated(t))}processTestDeprecated(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}testDeprecatedFields(e,n){let r=this.baseUrl+"/system/api/public/idtranslation/testdeprecatedfields?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTestDeprecatedFields(i))}processTestDeprecatedFields(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}testPreview(e){let n=this.baseUrl+"/system/api/public/idtranslation/testpreview?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(n+="api-version="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");let r={method:"GET",headers:{Accept:"application/json"}};return this.transformOptions(r).then(t=>this.http.fetch(n,t)).then(t=>this.processTestPreview(t))}processTestPreview(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}translate(e,n){let r=this.baseUrl+"/system/api/public/idtranslation/translate?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTranslate(i))}processTranslate(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}translateDictionary(e,n){let r=this.baseUrl+"/system/api/public/idtranslation/translate-dictionary?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processTranslateDictionary(i))}processTranslateDictionary(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}};var L=class extends D{http;baseUrl;jsonParseReviver=void 0;constructor(e,n,r){super(e),this.http=r||window,this.baseUrl=n??""}search(e,n){let r=this.baseUrl+"/system/api/public/properties/definition/search?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearch(i))}processSearch(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}getDefinitions(e,n){let r=this.baseUrl+"/system/api/public/properties/definitions-by-ids?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processGetDefinitions(i))}processGetDefinitions(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}searchSelection(e,n){let r=this.baseUrl+"/system/api/public/properties/search-selection?";if(e===void 0)throw new globalThis.Error("The parameter 'api_version' must be defined.");e!==null&&(r+="api-version="+encodeURIComponent(""+e)+"&"),r=r.replace(/[?&]$/,"");let s={body:JSON.stringify(n),method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"}};return this.transformOptions(s).then(i=>this.http.fetch(r,i)).then(i=>this.processSearchSelection(i))}processSearchSelection(e){let n=e.status,r={};return e.headers&&e.headers.forEach&&e.headers.forEach((t,s)=>r[s]=t),n===200?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),s}):n===400?e.text().then(t=>{let s=null;return s=t===""?null:JSON.parse(t,this.jsonParseReviver),R("A server side error occurred.",n,t,r,s)}):n!==200&&n!==204?e.text().then(t=>R("An unexpected server error occurred.",n,t,r)):Promise.resolve(null)}};var $=class extends Error{message;status;response;headers;result;constructor(e,n,r,t,s){super(),this.message=e,this.status=n,this.response=r,this.headers=t,this.result=s}isApiException=!0;static isApiException(e){return e.isApiException===!0}};function R(l,e,n,r,t){throw t??new $(l,e,n,r,null)}var G=class l{constructor(e="it-IT"){this._locale=e}static longDate={weekday:"long",year:"numeric",month:"long",day:"numeric"};static shortDate={year:"numeric",month:"numeric",day:"numeric"};dateTime=(e,n)=>new Intl.DateTimeFormat(this._locale,n||l.shortDate).format(e);toAPIDateOnly=e=>[e.getFullYear(),(e.getMonth()+1).toString().padStart(2,"0"),e.getDate().toString().padStart(2,"0")].join("")},z=class{constructor(e,n,r){this.root=e;this.token=n;this.callInfo=r;this.root=e||"",this.token=n,this.callInfo=r,this.root.endsWith("/")&&(this.root=this.root.substring(0,this.root.length-1)),this.format=new G}format;isLocalHost(){return this.root.indexOf("localhost")>-1||this.root.indexOf("127.0.0.1")>-1}createTicketClient=e=>new f(j,this.root,this.token,e??this.callInfo).createClient();createWorkspaceClient=e=>new f(W,this.root,this.token,e??this.callInfo).createClient();createWorkspacePlanningClient=e=>new f(J,this.root,this.token,e??this.callInfo).createClient();createWorkTaskClient=e=>new f(M,this.root,this.token,e??this.callInfo).createClient();createDatasetClient=e=>new f(C,this.root,this.token,e??this.callInfo).createClient();createDocumentClient=e=>new f(T,this.root,this.token,e??this.callInfo).createClient();createContainerClient=e=>new f(S,this.root,this.token,e??this.callInfo).createClient();createDocumentTypeClient=e=>new f(k,this.root,this.token,e??this.callInfo).createClient();createDmsSearchClient=e=>new f(q,this.root,this.token,e??this.callInfo).createClient();createUsersClient=e=>new f(O,this.root,this.token,e??this.callInfo).createClient();createFileUploadClient=e=>new f(U,this.root,this.token,e??this.callInfo).createClient();createContactV1Client=e=>new f(F,this.root,this.token,e??this.callInfo).createClient();createContactV2Client=e=>new f(I,this.root,this.token,e??this.callInfo).createClient();createAccountV2Client=e=>new f(P,this.root,this.token,e??this.callInfo).createClient();createPropertiesClient=e=>new f(N,this.root,this.token,e??this.callInfo).createClient();createFieldsClient=e=>new f(A,this.root,this.token,e??this.callInfo).createClient();createPropertiesV1Client=e=>new f(L,this.root,this.token,e??this.callInfo).createClient();createIdTranslationV1Client=e=>new f(_,this.root,this.token,e??this.callInfo).createClient();createLongRunningJobClient=e=>new f(w,this.root,this.token,e??this.callInfo).createClient();createTaskTypeV2Client=e=>new f(V,this.root,this.token,e??this.callInfo).createClient();createAvatarClient=e=>new f(x,this.root,this.token,e??this.callInfo).createClient();createIntegrationClient=e=>new f(E,this.root,this.token,e??this.callInfo).createClient()},f=class{constructor(e,n,r,t){this.clientType=e;this.baseUrl=n;this.token=r;this.jarvisCallInfoHeader=t}createClient(e){return new this.clientType({jarvisToken:this.token,jarvisCallInfoHeader:this.jarvisCallInfoHeader},this.baseUrl)}},ue=class l{static CreateClient=(e,n,r)=>new z(e,n,r?.callInfoHeader);static Autodiscover=(e,n,r)=>(n=n||window.location,n.hostname==="localhost"||n.hostname==="127.0.0.1"?l.CreateDevClient(e):l.ConnectTo(n,e?.token,r));static CreateDevClient=(e,n)=>l.CreateClient(e?.url??JARVIS_URI,e?.token??token,n);static ConnectTo=(e,n,r)=>{let t=e.hostname,s=e.port,i=e.protocol;return l.CreateClient(`${i}//${t}:${s}`,n,r)}};var y="JARVIS_EVENT",le=(u=>(u.Navigate="navigate",u.NavigateById="navigateById",u.ReloadById="reloadById",u.OpenDetail="openDetail",u.ShowToast="showToast",u.ShowDialog="showDialog",u.ShowDialogResponse="showDialogResponse",u.Subscription="subscription",u.Notification="notification",u.GetConfiguration="getConfiguration",u.ConfigurationResponse="configurationResponse",u.ShowContextMenu="showContextMenu",u.ShowContextMenuResponse="showContextMenuResponse",u.DeleteItem="deleteItem",u.CloneItem="cloneItem",u.EditItem="editItem",u))(le||{}),nt=(t=>(t.Open="open",t.Edit="edit",t.Delete="delete",t.Clone="clone",t))(nt||{});var ce=class{_targetOrigin="*";INIT_ERROR_MESSAGE=`JarvisShell not initialized correctly. Some functions may not work correctly.
2
+ Please initialize it before using it, e.g.:
3
+ const jarvisShell = new JarvisShell();
4
+ jarvisShell.init(() => /* do stuff */);
5
+
6
+ `;subscriptions={};dialogCallbacks={};contextMenuCallbacks={};configuration=null;tempConfigSubscription=null;htmlElement=null;constructor(){this.subscriptions={},window.parent===window?(window.addEventListener(`${y}:${"configurationResponse"}`,e=>{let n=e;this.reactToMessage(n?.detail)}),window.addEventListener(`${y}:${"notification"}`,e=>{let n=e;this.reactToMessage(n?.detail)}),window.addEventListener(`${y}:${"showDialogResponse"}`,e=>{let n=e;this.reactToMessage(n?.detail)}),window.addEventListener(`${y}:${"showContextMenuResponse"}`,e=>{let n=e;this.reactToMessage(n?.detail)})):window.addEventListener("message",e=>{this.reactToMessage(e?.data)})}reactToMessage(e){if(e.kind==="configurationResponse"){let n=e.data;this.tempConfigSubscription!=null&&(this.tempConfigSubscription(n),this.tempConfigSubscription=null)}if(e.kind==="notification"){let n=e.data,r=this.subscriptions[n.notification.event];r&&r(n.notification)}if(e.kind==="showDialogResponse"){let n=e.data,r=this.dialogCallbacks[n.id];r&&(r(n.response),delete this.dialogCallbacks[n.id])}if(e.kind==="showContextMenuResponse"){let n=e.data,r=this.contextMenuCallbacks[n.requestId];r&&(r(n.actionId,n.contextData),delete this.dialogCallbacks[n.requestId])}}init(e,n=null){this.htmlElement=n,this.getConfiguration(r=>{this.configuration=r,e(this,r)})}on=(e,n)=>{if(!this.configuration)console.error(this.INIT_ERROR_MESSAGE);else{if(!this.configuration?.capabilities.includes("subscription"))throw new Error(`${"subscription"} capability not supported by this host`);let[r,...t]=e.split(".");this.configuration?.events[r]?.includes(e)||console.warn(`${"subscription"} for event ${e} is not supported by this host.`)}this.sendMessage({kind:"subscription",data:{event:e}}),this.subscriptions[e]=n};getConfiguration=e=>{this.tempConfigSubscription=e,this.sendMessage({kind:"getConfiguration",data:{}})};openDetail(e){if(!this.configuration)console.error(this.INIT_ERROR_MESSAGE);else if(!this.configuration?.capabilities.includes("openDetail"))throw new Error(`${"openDetail"} capability not supported by this host`);let n={id:e};this.sendMessage({kind:"openDetail",data:n})}navigate(e,n,r){if(!this.configuration)console.error(this.INIT_ERROR_MESSAGE);else if(!this.configuration?.capabilities.includes("openDetail"))throw new Error(`${"openDetail"} capability not supported by this host`);let t={url:e,openNewTab:n,external:r};this.sendMessage({kind:"navigate",data:t})}navigateById(e,n,r){if(!this.configuration)console.error(this.INIT_ERROR_MESSAGE);else if(!this.configuration?.capabilities.includes("navigateById"))throw new Error(`${"navigateById"} capability not supported by this host`);let t={id:e,parentId:n,openNewTab:r};this.sendMessage({kind:"navigateById",data:t})}showToast=(e,n,r)=>{if(!this.configuration)console.error(this.INIT_ERROR_MESSAGE);else if(!this.configuration?.capabilities.includes("showToast"))throw new Error(`${"showToast"} capability not supported by this host`);let t={title:e,message:n,kind:r};this.sendMessage({kind:"showToast",data:t})};showDialog=(e,n)=>{if(!this.configuration)console.error(this.INIT_ERROR_MESSAGE);else if(!this.configuration?.capabilities.includes("showDialog"))throw new Error(`${"showDialog"} capability not supported by this host`);let r=Math.random().toString()+new Date().getTime().toString(),t={id:r,kind:e.kind,subtitle:e.subtitle,title:e.title,body:e.body,isDanger:e.isDanger};this.sendMessage({kind:"showDialog",data:t}),this.dialogCallbacks[r]=n};showContextMenu=(e,n,r)=>{if(!this.configuration)console.error(this.INIT_ERROR_MESSAGE);else if(!this.configuration?.capabilities.includes("showContextMenu"))throw new Error(`${"showContextMenu"} capability not supported by this host`);let t=Math.random().toString()+new Date().getTime().toString(),s={x:e.x,y:e.y,requestId:t,entries:n};this.sendMessage({kind:"showContextMenu",data:s}),this.contextMenuCallbacks[t]=r};sendMessage(e){window.parent===window?this.htmlElement?.dispatchEvent(new CustomEvent(`${y}:message_from_web_component`,{bubbles:!0,composed:!0,detail:{id:y,kind:e.kind,data:e.data}})):window.parent?.postMessage({id:y,kind:e.kind,data:e.data},this._targetOrigin)}};var b=class extends Error{message;status;constructor(e,n){super(),this.message=e,this.status=n}};var v=class l{ok=!0;json={};static create(e,n,r){let t=new l;return t.ok=e,t.json={body:n,errorMessage:r},t}},fe=class{baseUrl="/automation/v1";workflowActivationBaseUrl="/automation/workflows";async getWorkflowInstance(e){let n=`${this.baseUrl}/workflow-instances/${e}`,r=await this.fetchGet(n);if(r.status===200)return await r.json();throw new b(`Error getting workflow instance with id ${e}`,r.status)}async getWorkflowInstances(e){let{status:n,orderBy:r,pageSize:t,workflow:s}=e,i=`${this.baseUrl}/workflow-instances?orderBy=${r}&pageSize=${t}&workflow=${s}`;n&&(i+=`&status=${n}`);let d=await this.fetchGet(i);if(d.status===200)return await d.json();throw new b("Error getting workflow instances",d.status)}async dispatchSignal(e,n){let r=`${this.baseUrl}/signals/${e}/dispatch`,t={input:n},s=await this.fetchPost(r,t);if(s.status===200)return await s.json();throw new b("Error dispatching signal",s.status)}async triggerWorkflow(e,n,r){let t=`${this.workflowActivationBaseUrl}/${n.replace(/^\//,"")}`;try{if(!r&&e==="POST")return v.create(!1,void 0,"Missing post body");let s;e==="POST"?s=await this.fetchPost(t,r):s=await this.fetchGet(t,r||void 0);let i=await s.json();return v.create(s.ok,i,i.errorMessage)}catch(s){return console.error(s),v.create(!1,void 0,s?.message??"Unknown error")}}async fetchGet(e,n){let r=n?`?${new URLSearchParams(n).toString()}`:"";return fetch(`${e}${r}`,{method:"GET"})}async fetchPost(e,n){return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:n?JSON.stringify(n):void 0})}};export{P as AccountV2Client,Z as AcesV2Client,he as AnswerType,B as ApiException,Y as AuthProxyV2Client,b as AutomationApiException,fe as AutomationClient,x as AvatarV2Client,re as ChatV2Client,I as ContactV2Client,S as ContainerV2Client,C as DatasetV2Client,je as DayOfWeek,q as DmsSearchV2Client,k as DocumentTypeV2Client,T as DocumentV2Client,Je as DueDateReminderUnit,Te as EContainerChildInfo,me as ETicketListRequestType,Ge as FieldFilterPublicType,tt as FieldFilterPublicType2,be as FieldFilterType,we as FileFormat,H as FileManipulatorV2Client,U as FileUploadV2Client,De as FilteringLogic,G as Formatters,ze as GantZoomLevels,Pe as GroupOmniSearchAggregationType,Ne as HttpStatusCode,ie as IdTranslationV2Client,se as IdentitiesManagerV2Client,E as IntegrationV2Client,y as JARVIS_COMMAND_EVENT_ID,ue as Jarvis,Me as JarvisActivityConstraintTypePublic,c as JarvisApiBase,ae as JarvisApiBaseClient,de as JarvisApiConfig,Q as JarvisAppConfigurationV2Client,z as JarvisClient,nt as JarvisExternalContextMenuAction,le as JarvisExternalMessageKind,Ee as JarvisFieldType,A as JarvisFieldsV2Client,Fe as JarvisProjectActivityLinkTypePublic,We as JarvisProjectActivityStatusPublic,Ve as JarvisProjectActivityTypePublic,ce as JarvisShell,f as JarvisTsClient,oe as LoggerV2Client,w as LongRunningJobPublicV2Client,Ce as OmniSearchFieldCellTemplate,Ie as OmniSearchItemConfigurationFilterColumnTemplate,xe as OmniSearchItemConfigurationFilterStrategy,Oe as OmniSearchItemGridColumnDataType,ve as OmniSearchItemPropertyType,Qe as OmnisearchItemSize,ee as PermalinkV2Client,et as PlanningCopyModePublic,Ke as PlanningZoomLevels,N as PropertiesV2Client,ke as PropertyDefinitionReferenceFlags,Ae as ProtocolNumberType,He as PublicActionPermission,Ze as PublicActionSurface,Ye as PublicCtaType,Xe as PublicDropDownItemType,Re as PublicFilteringLogic,K as PublicNotificationClient,Se as PublicOmniSearchViewDisplayMode,Le as PublicSearchableDataType,$e as PublicWorkspaceAggregationType,Be as PublicWorkspaceItemPropertyType,qe as RequiredProtocolNumberCopyPolicy,v as ResponseDto,pe as ResponseLogSeverity,Ue as SearchResultFacetType,te as SearchV2Client,ge as SearchableDataType,ye as SearchableDataType2,V as TaskTypeV2Client,X as TeamsV2Client,j as TicketV2Client,O as UsersV2Client,ne as WorkCalendarV2Client,M as WorkTaskV2Client,J as WorkspacePlanningV2Client,_e as WorkspacePublicViewDisplayMode,W as WorkspaceV2Client};
package/package.json CHANGED
@@ -1,6 +1,36 @@
1
1
  {
2
2
  "name": "@nebulateam/jarvis-sdk",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "description": "JavaScript/TypeScript SDK for the Jarvis public API (ESM)",
4
+ "version": "5.57.9",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "jarvis": {
10
+ "version": "5.57.9"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "files": [
20
+ "dist/**/*.js",
21
+ "dist/**/*.d.ts",
22
+ "README.md"
23
+ ],
24
+ "keywords": [
25
+ "jarvis",
26
+ "sdk",
27
+ "api",
28
+ "client",
29
+ "typescript",
30
+ "esm"
31
+ ],
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "registry": "https://registry.npmjs.org/"
35
+ }
36
+ }