Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vipera-npm-registry / @wa-motif-open-api/info-service   js

Repository URL to install this package:

Version: 0.6.0 

/ bundles / wa-motif-open-api-info-service.umd.min.js

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("web-console-core"),require("@angular/core"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@wa-motif-open-api/info-service",["exports","web-console-core","@angular/core","@angular/common/http"],e):e((t["wa-motif-open-api"]=t["wa-motif-open-api"]||{},t["wa-motif-open-api"]["info-service"]={}),t.WebConsoleCore,t.ng.core,t.ng.common.http)}(this,function(t,e,i,o){"use strict";var n=(r.prototype.selectHeaderContentType=function(t){var e=this;if(0===t.length)return undefined;var i=t.find(function(t){return e.isJsonMime(t)});return i===undefined?t[0]:i},r.prototype.selectHeaderAccept=function(t){var e=this;if(0===t.length)return undefined;var i=t.find(function(t){return e.isJsonMime(t)});return i===undefined?t[0]:i},r.prototype.isJsonMime=function(t){var e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())},r);function r(t){void 0===t&&(t={}),this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials}var s=(a.prototype.canConsumeForm=function(t){var e,i;try{for(var o=function r(t){var e="function"==typeof Symbol&&t[Symbol.iterator],i=0;return e?e.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}}(t),n=o.next();!n.done;n=o.next())if("multipart/form-data"===n.value)return!0}catch(s){e={error:s}}finally{try{n&&!n.done&&(i=o["return"])&&i.call(o)}finally{if(e)throw e.error}}return!1},a.prototype.getChannelInfo=function(t,e,i){if(void 0===e&&(e="body"),void 0===i&&(i=!1),null===t||t===undefined)throw new Error("Required parameter channel was null or undefined when calling getChannelInfo.");var o=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return r!==undefined&&(o=o.set("Accept",r)),this.httpClient.get(this.configuration.basePath+"/info/realtime/channel/"+encodeURIComponent(String(t)),{withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})},a.prototype.getOAuth2Info=function(t,e){void 0===t&&(t="body"),void 0===e&&(e=!1);var i=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+o)}var n=this.configuration.selectHeaderAccept(["application/json"]);return n!==undefined&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/info/realtime/oauth2",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})},a.prototype.getServerInfo=function(t,e){void 0===t&&(t="body"),void 0===e&&(e=!1);var i=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+o)}var n=this.configuration.selectHeaderAccept(["application/json"]);return n!==undefined&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/info/server",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})},a.prototype.getServerStatus=function(t,e){void 0===t&&(t="body"),void 0===e&&(e=!1);var i=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+o)}var n=this.configuration.selectHeaderAccept(["application/json"]);return n!==undefined&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/info/realtime/status",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})},a.prototype.getSessionsInfo=function(t,e){void 0===t&&(t="body"),void 0===e&&(e=!1);var i=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+o)}var n=this.configuration.selectHeaderAccept(["application/json"]);return n!==undefined&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/info/realtime/sessions",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})},a.prototype.getUsersInfo=function(t,e){void 0===t&&(t="body"),void 0===e&&(e=!1);var i=this.defaultHeaders;if((this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+o)}var n=this.configuration.selectHeaderAccept(["application/json"]);return n!==undefined&&(i=i.set("Accept",n)),this.httpClient.get(this.configuration.basePath+"/info/realtime/users",{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})},a.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[{type:o.HttpClient},{type:String,decorators:[{type:i.Optional},{type:i.Inject,args:[e.WC_API_BASE_PATH]}]},{type:n,decorators:[{type:i.Optional}]}]},a.ngInjectableDef=i.defineInjectable({factory:function(){return new a(i.inject(o.HttpClient),i.inject(e.WC_API_BASE_PATH,8),i.inject(n,8))},token:a,providedIn:"root"}),a);function a(t,e,i){this.httpClient=t,this.basePath="http://localhost:8080/rest/v2",this.defaultHeaders=new o.HttpHeaders,this.configuration=new n,i?(this.configuration=i,this.configuration.basePath=i.basePath||e||this.basePath):this.configuration.basePath=e||this.basePath}var c=[s],u=new i.InjectionToken("basePath"),f=(h.forRoot=function(t){return{ngModule:h,providers:[{provide:n,useFactory:t}]}},h.decorators=[{type:i.NgModule,args:[{imports:[],declarations:[],exports:[],providers:[s]}]}],h.ctorParameters=function(){return[{type:h,decorators:[{type:i.Optional},{type:i.SkipSelf}]},{type:o.HttpClient,decorators:[{type:i.Optional}]}]},h);function h(t,e){if(t)throw new Error("InfoServiceModule is already loaded. Import in your base AppModule only.");if(!e)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}t.APIS=c,t.InfoService=s,t.BASE_PATH=u,t.COLLECTION_FORMATS={csv:",",tsv:"   ",ssv:" ",pipes:"|"},t.Configuration=n,t.InfoServiceModule=f,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=wa-motif-open-api-info-service.umd.min.js.map