io.parrots
Version:
Parrots.io App
1 lines • 154 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("com.phloxui"),require("@angular/core"),require("@angular/http"),require("@angular/platform-browser"),require("@angular/forms"),require("@angular/router"),require("@angular/platform-browser/animations"),require("angular2-loaders-css")):"function"==typeof define&&define.amd?define("io.parrots",["exports","com.phloxui","@angular/core","@angular/http","@angular/platform-browser","@angular/forms","@angular/router","@angular/platform-browser/animations","angular2-loaders-css"],e):e((t.io=t.io||{},t.io.parrots={}),null,t.ng.core,t.ng.http,t.ng.platformBrowser,t.ng.forms,t.ng.router,t.ng.platformBrowser.animations,null)}(this,function(t,v,h,m,e,n,r,o,i){"use strict";var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function u(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(o=t[s])&&(a=(i<3?o(a):3<i?o(e,n,a):o(e,n))||a);return 3<i&&a&&Object.defineProperty(e,n,a),a}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function w(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}var f=function(a){function t(t,e,n,r,o){var i=a.call(this,t,e,n)||this;return i.testMode=r,i.testData=o,i}return u(t,a),t.prototype.isTestMode=function(){return this.testMode},t.prototype.getTestData=function(){return this.testData},t}(v.DefaultConnectionManager),l=new h.InjectionToken("TEST_MODE"),d=new h.InjectionToken("TEST_DATA"),p=function(){function t(t,e,n,r,o){this.seletedInstanceId="",this.http=e,this.bgProcessMgr=n,this.connectionManager=t,this.instanceConnectionManagerMap={},this.testMode=r,this.testData=o,this.seletedInstanceId="TEST",this.instanceConnectionManagerMap[this.seletedInstanceId]=new f(null,this.http,this.bgProcessMgr,r,o)}return t.prototype.getNodes=function(t){if(null!==this.connectionManager&&"undefined"!=typeof this.connectionManager){var e="http://10.1.0.22/api/instance/"+t+"/node",n=new m.RequestOptions;return this.connectionManager.getWithHttpInfo(e,n)}return Promise.reject(null)},t.prototype.setUpInstance=function(d,p){var h=this;return new Promise(function(l,c){h.getNodes(d).then(function(t){var e,n,r=JSON.parse(t._body).items,o=!1,i=function(t){if("RUNNING"===t.status){o=!0;var n=new f(null,h.http,h.bgProcessMgr,h.testMode,h.testData);n.setName(t._uuid);var e="localhost"==t.serverNode.hostName?"http://10.1.0.22":t.serverNode.hostName;e+=":"+t.servicePort+"/api",n.addBaseURLs(e),p!==undefined?(e+="/user/login",h.connectionManager.postWithHttpInfo(e,p,new m.RequestOptions).then(function(t){var e=JSON.parse(t._body).sessionId;n.setDefaultHeader("Session-Id",e),h.instanceConnectionManagerMap[d]=n,l(r)})["catch"](function(t){h.instanceConnectionManagerMap[d]=n,c(t)})):h.instanceConnectionManagerMap[d]=n}};try{for(var a=w(r),s=a.next();!s.done;s=a.next()){i(s.value)}}catch(u){e={error:u}}finally{try{s&&!s.done&&(n=a["return"])&&n.call(a)}finally{if(e)throw e.error}}p===undefined&&(o&&l(r),c(r))})["catch"](function(t){c(t)})})},t.prototype.setUpInstances=function(t){if(t===undefined||null===t)return Promise.resolve([]);var e=[];for(var n in t)null!==n&&n!==undefined&&e.push(this.setUpInstance(n,t[n]));return Promise.all(e)},t.prototype.tearDownInstance=function(t){delete this.instanceConnectionManagerMap[t]},t.prototype.getInstanceConnectionManager=function(t){return t!==undefined&&null!==t&&""!==t?this.instanceConnectionManagerMap[t]:this.seletedInstanceId===undefined||null===this.seletedInstanceId?null:this.instanceConnectionManagerMap[this.seletedInstanceId]},t.prototype.selectInstance=function(t){this.seletedInstanceId=t},t.prototype.get=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().get(t,e)},t.prototype.getWithHttpInfo=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().getWithHttpInfo(t,e)},t.prototype.post=function(t,e,n){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().post(t,e,n)},t.prototype.postWithHttpInfo=function(t,e,n){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().postWithHttpInfo(t,e,n)},t.prototype.put=function(t,e,n){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().put(t,e,n)},t.prototype.putWithHttpInfo=function(t,e,n){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().putWithHttpInfo(t,e,n)},t.prototype["delete"]=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager()["delete"](t,e)},t.prototype.deleteWithHttpInfo=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().deleteWithHttpInfo(t,e)},t.prototype.patch=function(t,e,n){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().patch(t,e,n)},t.prototype.patchWithHttpInfo=function(t,e,n){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().patchWithHttpInfo(t,e,n)},t.prototype.head=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().head(t,e)},t.prototype.headWithHttpInfo=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().headWithHttpInfo(t,e)},t.prototype.options=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().options(t,e)},t.prototype.optionsWithHttpInfo=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().optionsWithHttpInfo(t,e)},t.prototype.request=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().request(t,e)},t.prototype.requestWithHttpInfo=function(t,e){return null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined?Promise.reject("Connection Manager is not setup yet."):this.getInstanceConnectionManager().requestWithHttpInfo(t,e)},t.prototype.getRunningProcessesCount=function(){return null===this.seletedInstanceId||this.seletedInstanceId===undefined?null:(null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&this.bgProcessMgr.getRunningProcessesCount(v.CONNECTION_DATA,this.seletedInstanceId),0)},t.prototype.getRunningProcesses=function(){return null===this.seletedInstanceId||this.seletedInstanceId===undefined?null:(null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&this.bgProcessMgr.getRunningProcesses(v.CONNECTION_DATA,this.seletedInstanceId),[])},t.prototype.getConnectionQuality=function(){return this.connectionManager.getConnectionQuality()},t.prototype.setBaseURLs=function(t){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().setBaseURLs(t)},t.prototype.resetBaseURLs=function(){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().resetBaseURLs()},t.prototype.setDefaultHeader=function(t,e){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().setDefaultHeader(t,e)},t.prototype.removeDefaultHeader=function(t){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().removeDefaultHeader(t)},t.prototype.resetDefaultHeaders=function(){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().resetDefaultHeaders()},t.prototype.setSearch=function(t,e){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().setSearch(t,e)},t.prototype.removeSearch=function(t){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().removeSearch(t)},t.prototype.resetSearch=function(){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().resetSearch()},t.prototype.setParam=function(t,e){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().setParam(t,e)},t.prototype.removeParam=function(t){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().removeParam(t)},t.prototype.resetParams=function(){if(null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().resetParams()},t.prototype.getName=function(){return this.name},t.prototype.setName=function(t){if(this.name=t,null===this.getInstanceConnectionManager()||this.getInstanceConnectionManager()===undefined)throw"Connection Manager is not setup yet.";this.getInstanceConnectionManager().setName(t)},t.prototype.createResource=function(t){return this.getInstanceConnectionManager().createResource(t)},t.decorators=[{type:h.Injectable}],t.ctorParameters=function(){return[{type:v.ConnectionManager},{type:m.Http},{type:v.BackgroundProcessManager},{type:undefined,decorators:[{type:h.Inject,args:[l]}]},{type:undefined,decorators:[{type:h.Inject,args:[d]}]}]},t}(),g=function(){function e(t){this.instanceConnectionManager=t}return e.prototype.setInstanceSessionId=function(t){sessionStorage.setItem(e.SESSION_ID_KEY,t)},e.prototype.getInstanceSessionId=function(){return sessionStorage.getItem(e.SESSION_ID_KEY)},e.prototype.addingHeaderRequestOptionsArgs=function(t,e,n){if(null==t&&(t=new m.RequestOptions),null!=e)if(null!==t.headers&&"undefined"!=typeof t.headers)for(var r in e)t.headers.set(r,e[r]);else t.headers=new m.Headers(e);var o=this.getInstanceSessionId();return o!==undefined&&null!==o&&(t.headers["delete"]("Session-Id"),t.headers.set("Session-Id",o)),n?(t.headers.set("Accept","application/xml"),t.headers.set("Content-Type","application/xml")):t.headers.set("Content-Type","application/json"),t},e.prototype.getListJob=function(){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var t=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.postWithHttpInfo("admin/job/query",{filter:""},t)}return Promise.reject(null)},e.prototype.interruptJob=function(t){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var e="admin/job/"+t+"/interrupt",n=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.postWithHttpInfo(e,{},n)}return Promise.reject(null)},e.prototype.createJob=function(t){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var e=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.postWithHttpInfo("admin/job",t,e)}return Promise.reject(null)},e.prototype.getListSchedule=function(){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var t=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.postWithHttpInfo("admin/job/schedule/query",{filter:""},t)}return Promise.reject(null)},e.prototype.createSchedule=function(t){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var e=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.postWithHttpInfo("admin/job/schedule",t,e)}return Promise.reject(null)},e.prototype.editSchedule=function(t){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var e="admin/job/schedule/"+t.uuid,n=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.putWithHttpInfo(e,t,n)}return Promise.reject(null)},e.prototype.enableSchedule=function(t){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var e="admin/job/schedule/"+t+"/enable",n=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.putWithHttpInfo(e,{},n)}return Promise.reject(null)},e.prototype.disableSchedule=function(t){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var e="admin/job/schedule/"+t+"/disable",n=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.putWithHttpInfo(e,{},n)}return Promise.reject(null)},e.prototype.getTrigger=function(t){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var e="admin/job/schedule/"+t+"/trigger",n=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.getWithHttpInfo(e,n)}return Promise.reject(null)},e.prototype.addTrigger=function(t,e){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var n="admin/job/schedule/"+e+"/trigger",r=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.postWithHttpInfo(n,t,r)}return Promise.reject(null)},e.prototype.removeTrigger=function(t,e){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var n="admin/job/schedule/"+t+"/trigger/"+e,r=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.deleteWithHttpInfo(n,r)}return Promise.reject(null)},e.prototype.createCron=function(t,e){if(null!==this.instanceConnectionManager&&"undefined"!=typeof this.instanceConnectionManager){var n="admin/job/schedule/"+e+"/trigger/cron",r=this.addingHeaderRequestOptionsArgs(new m.RequestOptions,{"Increment-Version":"false"});return this.instanceConnectionManager.postWithHttpInfo(n,t,r)}return Promise.reject(null)},e.SESSION_ID_KEY="Instance-Session-Id",e.decorators=[{type:h.Injectable}],e.ctorParameters=function(){return[{type:p}]},e}(),y=function(){function n(t,e){var n=this;this.obsMgr=t,null!=e&&e.getAppInfo().then(function(t){n.phloxAppInfo=t})}return n.prototype.loadAccessibleApp=function(){return null},n.prototype.validateConnectionTimeout=function(){var e=this;this.timeout=setTimeout(function(){null!==e.userSession&&e.userSession!==undefined&&e.userSession.checkTimeout().then(function(t){t||e.obsMgr.publish(n.TIMEOUT_TOPIC,t),e.validateConnectionTimeout()})["catch"](function(t){e.obsMgr.publish(n.ERROR_TOPIC,t),e.validateConnectionTimeout()})},this.phloxAppInfo.settings.DEFAULT_TIME_OUT_LOGIN_USER_SESSION)},n.prototype.isLoggedOn=function(){var e=this;return null===this.userSession||this.userSession===undefined?Promise.resolve(!1):this.userSession.load().then(function(t){return e.userSession.getSessionId()!==undefined&&null!==e.userSession.getSessionId()&&""!==e.userSession.getSessionId()&&e.userSession.checkTimeout().then(function(t){return!!t&&(null!==e.timeout&&e.timeout!==undefined||e.validateConnectionTimeout(),!0)})})},n.prototype.reloadAccessibleApp=function(){return this.accessibleApps=null,this.getAccessibleApp()},n.prototype.getAccessibleApp=function(){var e=this;if(null!==this.accessibleApps&&"undefined"!=typeof this.accessibleApps)return Promise.resolve(this.accessibleApps);var t=this.loadAccessibleApp();return null!==t&&t!==undefined?this.loadAccessibleApp().then(function(t){return e.accessibleApps=t,Promise.resolve(e.accessibleApps)}):Promise.resolve(null)},n.prototype.login=function(t){var e=this;if(null===this.userSession||this.userSession===undefined)return Promise.reject(null);var n=this.userSession.login(t);return n.then(function(t){return 200===t.status?(null!==e.timeout&&e.timeout!==undefined&&(clearTimeout(e.timeout),e.timeout=null),e.validateConnectionTimeout(),Promise.resolve(t)):Promise.reject(t)}),n},n.prototype.logout=function(){var e=this;if(null===this.userSession||this.userSession===undefined)return Promise.reject(null);var t=this.userSession.logout();return t.then(function(t){return 200===t.status?(null!==e.timeout&&e.timeout!==undefined&&(clearTimeout(e.timeout),e.timeout=null),Promise.resolve(t)):Promise.reject(t)}),t},n.prototype.getObservableManager=function(){return this.obsMgr},n.prototype.initialize=function(t){null!==this.timeout&&this.timeout!==undefined&&(clearTimeout(this.timeout),this.timeout=null),this.userSession=t},n.prototype.deinitialize=function(){null!==this.timeout&&this.timeout!==undefined&&(clearTimeout(this.timeout),this.timeout=null),this.userSession=null},n.prototype.getUserSession=function(){return this.userSession},n.TIMEOUT_TOPIC="user-service.session.timeout",n.ERROR_TOPIC="user-service.session.error",n.decorators=[{type:h.Injectable}],n.ctorParameters=function(){return[{type:v.ObservableManager},{type:v.PhloxAppInfoService}]},n}(),M=function(){function t(t,e,n){this.className=t,this.baseURL=e,this.connectionManager=n}return t.prototype.loadSettings=function(){return Promise.resolve(null)},t.prototype.saveSettings=function(t){return Promise.resolve(!0)},t}(),I=function(){function t(t,e,n,r,o){this.className=t,this.baseURL=e,this.userConfigResource=n,this.viewType=r,this.configName=o,this.VIEW_CONFIG_NAME=(null!=o?o:"")+"."+(null!=r?r:""),this.VIEW_CONFIG_NAME.endsWith(".")&&(this.VIEW_CONFIG_NAME=this.VIEW_CONFIG_NAME.substring(0,this.VIEW_CONFIG_NAME.length-1))}return t.prototype.loadSettings=function(){var t=this;return this.VIEW_CONFIG_NAME!==undefined&&""!==this.VIEW_CONFIG_NAME?new Promise(function(n,e){t.userConfigResource.getUserConfigWithName(t.VIEW_CONFIG_NAME).then(function(t){var e=JSON.parse(t);n(e)},function(t){e(t)})})["catch"](function(t){return Promise.reject(t)}):Promise.resolve(null)},t.prototype.saveSettings=function(t){var r=this;return null!=t?new Promise(function(n,e){r.userConfigResource.saveUserConfigWithName(r.VIEW_CONFIG_NAME,t).then(function(t){var e=JSON.parse(t);n(e)},function(t){e(t)})})["catch"](function(t){return Promise.reject(t)}):Promise.resolve(null)},t}(),P=function(n){function t(t){var e=n.call(this,t)||this;return e.basePath="./me/config",e.defaultHeaders=new m.Headers,e.defaultHeaders.set("Content-Type","application/json"),e}return u(t,n),t.prototype.getUserConfig=function(){var t=new m.Headers(this.defaultHeaders.toJSON()),e=new m.RequestOptions({method:m.RequestMethod.Get,headers:t});return this.connectionMgr.get(this.basePath,e)},t.prototype.getUserConfigWithName=function(t){var e=this.basePath+"/"+t,n=new m.Headers(this.defaultHeaders.toJSON()),r=new m.RequestOptions({method:m.RequestMethod.Get,headers:n});return this.connectionMgr.get(e,r)},t.prototype.deleteUserConfigWithName=function(t){var e=this.basePath+"/"+t,n=new m.Headers(this.defaultHeaders.toJSON()),r=new m.RequestOptions({method:m.RequestMethod.Delete,headers:n});return this.connectionMgr["delete"](e,r)},t.prototype.saveUserConfigWithName=function(t,e){var n=this.basePath+"/"+t,r=new m.Headers(this.defaultHeaders.toJSON()),o=new m.RequestOptions({method:m.RequestMethod.Put,headers:r}),i=e;return this.connectionMgr.put(n,i,o)},t.prototype.getUserConfigWithNameDefaultNull=function(t){var e=this.basePath+"/"+t+"/default",n=new m.Headers(this.defaultHeaders.toJSON()),r=new m.RequestOptions({method:m.RequestMethod.Get,headers:n});return this.connectionMgr.get(e,r)},t.prototype.getUserConfigWithNameDefault=function(t,e){var n=this.basePath+"/"+t+"/default",r=new m.Headers(this.defaultHeaders.toJSON()),o=new m.RequestOptions({method:m.RequestMethod.Post,headers:r}),i=e;return this.connectionMgr.post(n,i,o)},t}(v.AbstractServerResource),R="http://localhost:8080/hello/",b=function(){function t(t){this.connectionManager=t,this.userConfigResource=new P(t)}return t.prototype.createViewSettingService=function(t,e){if(null==t)return null;if(null===t.getDataClassName()||void 0===t.getDataClassName())return null;var n=t.getConfigName();if(null==n)return null;var r=new I(t.getDataClassName(),R+t.getDataClassName(),this.userConfigResource,e,n);return Promise.resolve(r)},t.prototype.createEditorSettingService=function(t){if(null==t)return null;var e=new M(t.getDataClassName(),R+t.getDataClassName(),this.connectionManager);return Promise.resolve(e)},t.decorators=[{type:h.Injectable}],t.ctorParameters=function(){return[{type:v.ConnectionManager}]},t}(),S=function(i){function t(t,e,n,r){var o=i.call(this,e,n,r)||this;return o.className=t,o}return u(t,i),t}(v.DataSchema),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.isTestMode=function(){return"function"==typeof this.connectionMgr.isTestMode&&this.connectionMgr.isTestMode()},e.prototype.getTestData=function(){return"function"==typeof this.connectionMgr.getTestData?this.connectionMgr.getTestData():undefined},e}(v.AbstractServerResource),E=function(r){function t(t,e){var n=r.call(this,t)||this;return n.basePath="./classes",n.defaultHeaders=new m.Headers,null!==e&&e!==undefined&&""!==e&&(n.basePath=e),n}return u(t,r),t.prototype.uuid4Generate=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},t.prototype.findTestData=function(t,e){var n,r,o=this.getTestData(),i=null!==o&&o!==undefined?o[t]:[];try{for(var a=w(i),s=a.next();!s.done;s=a.next()){var u=s.value;if(u._uuid===e)return u}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a["return"])&&r.call(a)}finally{if(n)throw n.error}}return null},t.prototype.findTestDataSchema=function(t){var e=t+"-schema",n=this.getTestData();return null!==n&&n!==undefined?n[e]:{}},t.prototype.configure=function(t,r,o,i){var a=this;return new Promise(function(e,n){a.configureWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.create=function(t,r,o,i){var a=this;if(this.isTestMode()){if(null!==t&&t!==undefined){t._uuid=this.uuid4Generate();var e=this.getTestData(),n=null!==e&&e!==undefined?e[r]:[];0==n.length&&(e[r]=n),n.push(t)}return Promise.resolve(t)}return new Promise(function(e,n){a.createWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.createLang=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.createLangWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.createUUIDLang=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.createUUIDLangWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype["delete"]=function(t,r,o,i,a){var s=this;return this.isTestMode()?Promise.resolve(this.findTestData(r,t)):new Promise(function(e,n){s.deleteWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.deleteLang=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.deleteLangWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.destroyLangVersion=function(t,r,o,i,a,s,u){var l=this;return new Promise(function(e,n){l.destroyLangVersionWithHttpInfo(t,r,o,i,a,s,u).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.destroyVersion=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.destroyVersionWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.find=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.findWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.findLang=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.findLangWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.findLangVersion=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.findLangVersionWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.findVersion=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.findVersionWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getActions=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.getActionsWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getClassInfo=function(t,r,o){var i=this;return new Promise(function(e,n){i.getClassInfoWithHttpInfo(t,r,o).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getLangActions=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.getLangActionsWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getLangState=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.getLangStateWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getLangVersions=function(t,r,o,i,a,s,u,l){var c=this;return new Promise(function(e,n){c.getLangVersionsWithHttpInfo(t,r,o,i,a,s,u,l).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getMetadata=function(t,r,o){var i=this;return new Promise(function(e,n){i.getMetadataWithHttpInfo(t,r,o).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getSchemaInfo=function(t,r,o){var i=this;return this.isTestMode()?Promise.resolve(this.findTestDataSchema(t)):new Promise(function(e,n){i.getSchemaInfoWithHttpInfo(t,r,o).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getState=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.getStateWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.getVersions=function(t,r,o,i,a,s,u){var l=this;if(this.isTestMode()){var e=this.findTestData(r,t),n=[];if(null!==e&&e!==undefined){e._version!==undefined&&null!==e._version||(e._version=0,e._created=new Date),n.push(e);for(var c=1;c<=3;c++){var d=JSON.parse(JSON.stringify(e));d._version=c,d._created=new Date,n.push(d)}}var p={items:n};return Promise.resolve(p)}return new Promise(function(e,n){l.getVersionsWithHttpInfo(t,r,o,i,a,s,u).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.listClassNames=function(t){var r=this;return new Promise(function(e,n){r.listClassNamesWithHttpInfo(t).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.makeLangStateful=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.makeLangStatefulWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.makeLangStatefulActivity=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.makeLangStatefulActivityWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.makeLangStateless=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.makeLangStatelessWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.makeStateful=function(t,r,o,i){var a=this;return new Promise(function(e,n){a.makeStatefulWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.makeStateful1=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.makeStatefulActivityWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.makeStateless=function(t,r,o,i){var a=this;return new Promise(function(e,n){a.makeStatelessWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.patchUpdate=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.patchUpdateWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.patchUpdateLang=function(t,r,o,i,a,s,u){var l=this;return new Promise(function(e,n){l.patchUpdateLangWithHttpInfo(t,r,o,i,a,s,u).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.patchUpdateLangVersion=function(t,r,o,i,a,s,u){var l=this;return new Promise(function(e,n){l.patchUpdateLangVersionWithHttpInfo(t,r,o,i,a,s,u).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.patchUpdateVersion=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.patchUpdateVersionWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.promoteLangVersion=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.promoteLangVersionWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.promoteVersion=function(t,r,o,i,a){var s=this;if(this.isTestMode()){var e=this.findTestData(o,r),n=[];if(null!==e&&e!==undefined){e._version!==undefined&&null!==e._version||(e._version=0);var u=JSON.parse(JSON.stringify(e));n.push(u)}var l={items:n};return Promise.resolve(l)}return new Promise(function(e,n){s.promoteVersionWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.query=function(t,r,o,i,a,s,u){var e,n,l=this;if(this.isTestMode()){var c=this.getTestData(),d=[];if(null!==c&&c!==undefined&&null!==c[t]&&c[t]!==undefined)try{for(var p=w(c[t]),h=p.next();!h.done;h=p.next()){var f=h.value;d.push(f)}}catch(y){e={error:y}}finally{try{h&&!h.done&&(n=p["return"])&&n.call(p)}finally{if(e)throw e.error}}var g={items:d};return Promise.resolve(g)}return new Promise(function(e,n){l.queryWithHttpInfo(t,r,o,i,a,s,u).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryCount=function(t,r,o){var i=this;return new Promise(function(e,n){i.queryCountWithHttpInfo(t,r,o).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryCountWithFilter=function(t,r,o,i){var a=this;return new Promise(function(e,n){a.queryCountWithFilterWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryDelete=function(t,r,o,i,a,s,u,l){var c=this;return new Promise(function(e,n){c.queryDeleteWithHttpInfo(t,r,o,i,a,s,u,l).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryDeleteWithFilter=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.queryDeleteWithFilterWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryLang=function(t,r,o,i,a,s,u){var l=this;return new Promise(function(e,n){l.queryLangWithHttpInfo(t,r,o,i,a,s,u).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryLangCount=function(t,r,o,i){var a=this;return new Promise(function(e,n){a.queryLangCountWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryLangCountWithFilter=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.queryLangCountWithFilterWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryLangDelete=function(t,r,o,i,a,s,u,l){var c=this;return new Promise(function(e,n){c.queryLangDeleteWithHttpInfo(t,r,o,i,a,s,u,l).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryLangDeleteWithFilter=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.queryLangDeleteWithFilterWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryLangWithFilter=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.queryLangWithFilterWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.queryWithFilter=function(t,r,o,i){var a=this;return new Promise(function(e,n){a.queryWithFilterWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.recycle=function(t,r,o,i){var a=this;return new Promise(function(e,n){a.recycleWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.recycleLang=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.recycleLangWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.refresh=function(t,r,o,i){var a=this;return new Promise(function(e,n){a.refreshWithHttpInfo(t,r,o,i).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.refreshLang=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.refreshLangWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.trigger=function(t,r,o,i,a){var s=this;return new Promise(function(e,n){s.triggerWithHttpInfo(t,r,o,i,a).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.triggerLang=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.triggerLangWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.update=function(t,r,o,i,a,s){var u=this;return this.isTestMode()?Promise.resolve(o):new Promise(function(e,n){u.updateWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.updateLang=function(t,r,o,i,a,s,u){var l=this;return new Promise(function(e,n){l.updateLangWithHttpInfo(t,r,o,i,a,s,u).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.updateLangVersion=function(t,r,o,i,a,s,u){var l=this;return new Promise(function(e,n){l.updateLangVersionWithHttpInfo(t,r,o,i,a,s,u).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.updateVersion=function(t,r,o,i,a,s){var u=this;return new Promise(function(e,n){u.updateVersionWithHttpInfo(t,r,o,i,a,s).then(function(t){e(t.json())},function(t){n(t)})})},t.prototype.configureWithHttpInfo=function(t,e,n,r){var o=this.basePath+"/"+e+"/configure",i=new m.URLSearchParams,a=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter body was null or undefined when calling configure.");if(null===e||e===undefined)throw new Error("Required parameter classname was null or undefined when calling configure.");a.set("Lang-Preference",String(n)),a.set("Content-Type","application/json");var s=new m.RequestOptions({method:m.RequestMethod.Put,headers:a,body:null==t?"":JSON.stringify(t),search:i});return r&&(s=Object.assign(s,r)),this.connectionMgr.putWithHttpInfo(o,t,s)},t.prototype.createWithHttpInfo=function(t,e,n,r){var o=this.basePath+"/"+e,i=new m.URLSearchParams,a=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter body was null or undefined when calling create1.");if(null===e||e===undefined)throw new Error("Required parameter classname was null or undefined when calling create1.");a.set("Lang-Preference",String(n)),a.set("Content-Type","application/json");var s=new m.RequestOptions({method:m.RequestMethod.Post,headers:a,body:null==t?"":JSON.stringify(t),search:i});return r&&(s=Object.assign(s,r)),this.connectionMgr.postWithHttpInfo(o,t,s)},t.prototype.createLangWithHttpInfo=function(t,e,n,r,o){var i=this.basePath+"/"+n+"/"+t,a=new m.URLSearchParams,s=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling createLang0.");if(null===e||e===undefined)throw new Error("Required parameter body was null or undefined when calling createLang0.");if(null===n||n===undefined)throw new Error("Required parameter classname was null or undefined when calling createLang0.");s.set("Lang-Preference",String(r)),s.set("Content-Type","application/json");var u=new m.RequestOptions({method:m.RequestMethod.Post,headers:s,body:null==e?"":JSON.stringify(e),search:a});return o&&(u=Object.assign(u,o)),this.connectionMgr.postWithHttpInfo(i,e,u)},t.prototype.createUUIDLangWithHttpInfo=function(t,e,n,r,o,i){var a=this.basePath+"/"+r+"/"+n+"/"+t,s=new m.URLSearchParams,u=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling createLang1.");if(null===e||e===undefined)throw new Error("Required parameter body was null or undefined when calling createLang1.");if(null===n||n===undefined)throw new Error("Required parameter uuid was null or undefined when calling createLang1.");if(null===r||r===undefined)throw new Error("Required parameter classname was null or undefined when calling createLang1.");u.set("Lang-Preference",String(o)),u.set("Content-Type","application/json");var l=new m.RequestOptions({method:m.RequestMethod.Post,headers:u,body:null==e?"":JSON.stringify(e),search:s});return i&&(l=Object.assign(l,i)),this.connectionMgr.postWithHttpInfo(a,e,l)},t.prototype.deleteWithHttpInfo=function(t,e,n,r,o){var i=this.basePath+"/"+e+"/"+t,a=new m.URLSearchParams,s=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter uuid was null or undefined when calling delete1.");if(null===e||e===undefined)throw new Error("Required parameter classname was null or undefined when calling delete1.");s.set("Permanent",String(n)),s.set("Lang-Preference",String(r));var u=new m.RequestOptions({method:m.RequestMethod.Delete,headers:s,search:a});return o&&(u=Object.assign(u,o)),this.connectionMgr.deleteWithHttpInfo(i,u)},t.prototype.deleteLangWithHttpInfo=function(t,e,n,r,o,i){var a=this.basePath+"/"+n+"/"+e+"/"+t,s=new m.URLSearchParams,u=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling deleteLang.");if(null===e||e===undefined)throw new Error("Required parameter uuid was null or undefined when calling deleteLang.");if(null===n||n===undefined)throw new Error("Required parameter classname was null or undefined when calling deleteLang.");u.set("Permanent",String(r)),u.set("Lang-Preference",String(o));var l=new m.RequestOptions({method:m.RequestMethod.Delete,headers:u,search:s});return i&&(l=Object.assign(l,i)),this.connectionMgr.deleteWithHttpInfo(a,l)},t.prototype.destroyLangVersionWithHttpInfo=function(t,e,n,r,o,i,a){var s=this.basePath+"/"+o+"/"+r+"/"+t+"/"+e,u=new m.URLSearchParams,l=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling destroyLangVersion.");if(null===e||e===undefined)throw new Error("Required parameter version was null or undefined when calling destroyLangVersion.");if(null===n||n===undefined)throw new Error("Required parameter permanent was null or undefined when calling destroyLangVersion.");if(null===r||r===undefined)throw new Error("Required parameter uuid was null or undefined when calling destroyLangVersion.");if(null===o||o===undefined)throw new Error("Required parameter classname was null or undefined when calling destroyLangVersion.");l.set("Permanent",String(n)),l.set("Lang-Preference",String(i));var c=new m.RequestOptions({method:m.RequestMethod.Delete,headers:l,search:u});return a&&(c=Object.assign(c,a)),this.connectionMgr.deleteWithHttpInfo(s,c)},t.prototype.destroyVersionWithHttpInfo=function(t,e,n,r,o,i){var a=this.basePath+"/"+r+"/"+n+"/"+t,s=new m.URLSearchParams,u=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter version was null or undefined when calling destroyVersion.");if(null===e||e===undefined)throw new Error("Required parameter permanent was null or undefined when calling destroyVersion.");if(null===n||n===undefined)throw new Error("Required parameter uuid was null or undefined when calling destroyVersion.");if(null===r||r===undefined)throw new Error("Required parameter classname was null or undefined when calling destroyVersion.");u.set("Permanent",String(e)),u.set("Lang-Preference",String(o));var l=new m.RequestOptions({method:m.RequestMethod.Delete,headers:u,search:s});return i&&(l=Object.assign(l,i)),this.connectionMgr.deleteWithHttpInfo(a,l)},t.prototype.findWithHttpInfo=function(t,e,n,r,o){var i=this.basePath+"/"+e+"/"+t,a=new m.URLSearchParams,s=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter uuid was null or undefined when calling find1.");if(null===e||e===undefined)throw new Error("Required parameter classname was null or undefined when calling find1.");s.set("Deleted",String(n)),s.set("Lang-Preference",String(r));var u=new m.RequestOptions({method:m.RequestMethod.Get,headers:s,search:a});return o&&(u=Object.assign(u,o)),this.connectionMgr.getWithHttpInfo(i,u)},t.prototype.findLangWithHttpInfo=function(t,e,n,r,o,i){var a=this.basePath+"/"+n+"/"+e+"/"+t,s=new m.URLSearchParams,u=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling findLang.");if(null===e||e===undefined)throw new Error("Required parameter uuid was null or undefined when calling findLang.");if(null===n||n===undefined)throw new Error("Required parameter classname was null or undefined when calling findLang.");u.set("Deleted",String(r)),u.set("Lang-Preference",String(o));var l=new m.RequestOptions({method:m.RequestMethod.Get,headers:u,search:s});return i&&(l=Object.assign(l,i)),this.connectionMgr.getWithHttpInfo(a,l)},t.prototype.findLangVersionWithHttpInfo=function(t,e,n,r,o,i){var a=this.basePath+"/"+r+"/"+n+"/"+t+"/"+e,s=new m.URLSearchParams,u=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling findLangVersion.");if(null===e||e===undefined)throw new Error("Required parameter version was null or undefined when calling findLangVersion.");if(null===n||n===undefined)throw new Error("Required parameter uuid was null or undefined when calling findLangVersion.");if(null===r||r===undefined)throw new Error("Required parameter classname was null or undefined when calling findLangVersion.");u.set("Lang-Preference",String(o));var l=new m.RequestOptions({method:m.RequestMethod.Get,headers:u,search:s});return i&&(l=Object.assign(l,i)),this.connectionMgr.getWithHttpInfo(a,l)},t.prototype.findVersionWithHttpInfo=function(t,e,n,r,o){var i=this.basePath+"/"+n+"/"+e+"/"+t,a=new m.URLSearchParams,s=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter version was null or undefined when calling findVersion.");if(null===e||e===undefined)throw new Error("Required parameter uuid was null or undefined when calling findVersion.");if(null===n||n===undefined)throw new Error("Required parameter classname was null or undefined when calling findVersion.");s.set("Lang-Preference",String(r));var u=new m.RequestOptions({method:m.RequestMethod.Get,headers:s,search:a});return o&&(u=Object.assign(u,o)),this.connectionMgr.getWithHttpInfo(i,u)},t.prototype.getActionsWithHttpInfo=function(t,e,n,r,o){var i=this.basePath+"/"+e+"/"+t+"/state/trigger",a=new m.URLSearchParams,s=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter uuid was null or undefined when calling getActions.");if(null===e||e===undefined)throw new Error("Required parameter classname was null or undefined when calling getActions.");s.set("Deleted",String(n)),s.set("Lang-Preference",String(r));var u=new m.RequestOptions({method:m.RequestMethod.Options,headers:s,search:a});return o&&(u=Object.assign(u,o)),this.connectionMgr.optionsWithHttpInfo(i,u)},t.prototype.getClassInfoWithHttpInfo=function(t,e,n){var r=this.basePath+"/"+t,o=new m.URLSearchParams,i=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter classname was null or undefined when calling getClassInfo.");i.set("Lang-Preference",String(e));var a=new m.RequestOptions({method:m.RequestMethod.Options,headers:i,search:o});return n&&(a=Object.assign(a,n)),this.connectionMgr.request(r,a)},t.prototype.getLangActionsWithHttpInfo=function(t,e,n,r,o,i){var a=this.basePath+"/"+n+"/"+e+"/"+t+"/state/trigger",s=new m.URLSearchParams,u=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling getLangActions.");if(null===e||e===undefined)throw new Error("Required parameter uuid was null or undefined when calling getLangActions.");if(null===n||n===undefined)throw new Error("Required parameter classname was null or undefined when calling getLangActions.");u.set("Deleted",String(r)),u.set("Lang-Preference",String(o));var l=new m.RequestOptions({method:m.RequestMethod.Options,headers:u,search:s});return i&&(l=Object.assign(l,i)),this.connectionMgr.optionsWithHttpInfo(a,l)},t.prototype.getLangStateWithHttpInfo=function(t,e,n,r,o,i){var a=this.basePath+"/"+n+"/"+e+"/"+t+"/state",s=new m.URLSearchParams,u=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling getLangState.");if(null===e||e===undefined)throw new Error("Required parameter uuid was null or undefined when calling getLangState.");if(null===n||n===undefined)throw new Error("Required parameter classname was null or undefined when calling getLangState.");u.set("Deleted",String(r)),u.set("Lang-Preference",String(o));var l=new m.RequestOptions({method:m.RequestMethod.Get,headers:u,search:s});return i&&(l=Object.assign(l,i)),this.connectionMgr.getWithHttpInfo(a,l)},t.prototype.getLangVersionsWithHttpInfo=function(t,e,n,r,o,i,a,s){var u=this.basePath+"/"+n+"/"+e+"/"+t+"/versions",l=new m.URLSearchParams,c=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter lang was null or undefined when calling getLangVersions.");if(null===e||e===undefined)throw new Error("Required parameter uuid was null or undefined when calling getLangVersions.");if(null===n||n===undefined)throw new Error("Required parameter classname was null or undefined when calling getLangVersions.");r!==undefined&&l.set("startIndex",r),o!==undefined&&l.set("endIndex",o),i!==undefined&&l.set("sortDescending",i),c.set("Lang-Preference",String(a));var d=new m.RequestOptions({method:m.RequestMethod.Get,headers:c,search:l});return s&&(d=Object.assign(d,s)),this.connectionMgr.getWithHttpInfo(u,d)},t.prototype.getMetadataWithHttpInfo=function(t,e,n){var r=this.basePath+"/"+t+"/metadata",o=new m.URLSearchParams,i=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter classname was null or undefined when calling getMetadata.");i.set("Lang-Preference",String(e));var a=new m.RequestOptions({method:m.RequestMethod.Get,headers:i,search:o});return n&&(a=Object.assign(a,n)),this.connectionMgr.getWithHttpInfo(r,a)},t.prototype.getSchemaInfoWithHttpInfo=function(t,e,n){var r=this.basePath+"/"+t+"/schema",o=new m.URLSearchParams,i=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter classname was null or undefined when calling getSchemaInfo.");i.set("Lang-Preference",String(e));var a=new m.RequestOptions({method:m.RequestMethod.Get,headers:i,search:o});return n&&(a=Object.assign(a,n)),this.connectionMgr.getWithHttpInfo(r,a)},t.prototype.getStateWithHttpInfo=function(t,e,n,r,o){var i=this.basePath+"/"+e+"/"+t+"/state",a=new m.URLSearchParams,s=new m.Headers(this.defaultHeaders.toJSON());if(null===t||t===undefined)throw new Error("Required parameter uuid was null or undefined when calling getState.");if(null===e||e===undefined)throw new Error("Required parameter classname was null or undefined when calling getState.");s.set("Deleted",String(n)),s.set("Lang-Preference",String